/* Q: white page, black type, everything bold caps 12. One layout: the content
   sits vertically centred and left aligned on the same edge as the logo. */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --mute: #a3a3a3;
  --rec: #e00000;
  --font: "Akzidenz-Grotesk Pro", "Akzidenz-Grotesk BQ", "AkzidenzGrotesk",
          "Akzidenz Grotesk", "Berthold Akzidenz Grotesk BE", "Helvetica Neue",
          Helvetica, Arial, sans-serif;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

/* Licensed webfont: put the file at public/fonts/akzidenz-bold.woff2 and it is used everywhere. */
@font-face {
  font-family: "Akzidenz-Grotesk Pro";
  src: url("fonts/akzidenz-bold.woff2") format("woff2"),
       local("Akzidenz-Grotesk Pro Bold"), local("AkzidenzGroteskPro-Bd"),
       local("Akzidenz-Grotesk BQ Bold"), local("AkzidenzGroteskBQ-Bold");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 700 12px/1.5 var(--font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

header {
  position: fixed;
  top: 0; left: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 24px);
  padding-left: var(--gutter);
  z-index: 2;
}
.logo { display: block; line-height: 0; }
.logo img { height: 28px; width: auto; }

main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(env(safe-area-inset-top, 0px) + 96px) calc(env(safe-area-inset-bottom, 0px) + 64px);
  padding-left: var(--gutter);
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.view, .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.view[hidden], .stack[hidden], [hidden] { display: none !important; }
.row { display: flex; flex-wrap: wrap; gap: 4px 20px; }

a, button, label.drop {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a:hover, button:hover, label.drop:hover { opacity: 0.55; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.grey, .opt { color: var(--mute); }
.opt.on { color: var(--ink); }
p { margin: 0; }

input[type="text"] {
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 4px 0;
  width: 320px;
  max-width: 100%;
  background: transparent;
  border-radius: 0;
}
input::placeholder { color: var(--mute); }
input:focus { outline: none; }

/* PDF */
body.dragging main::after {
  content: "SLÄPP";
  position: fixed; inset: 0;
  display: flex; align-items: center;
  padding-left: var(--gutter);
  background: var(--bg);
  z-index: 3;
}
.list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.list li { display: flex; flex-wrap: wrap; gap: 0 16px; }
.list .name { max-width: 100%; overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; }

/* MINUTES */
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--rec); margin-right: 10px; vertical-align: 1px;
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.live { max-width: 46ch; min-height: 4.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.dots::after { content: ""; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.error { color: var(--rec); margin-top: 12px; max-width: 46ch; }

.doc { max-width: 62ch; display: flex; flex-direction: column; gap: 4px; margin: 20px 0; }
.doc h2, .doc h3 { font: inherit; margin: 0; }
.doc h3 { color: var(--mute); margin-top: 16px; }
.doc ul { margin: 0; padding: 0; list-style: none; }
.doc li { padding-left: 14px; text-indent: -14px; }
.doc li::before { content: "– "; }

@media (prefers-reduced-motion: reduce) {
  .dot, .dots::after { animation: none; }
}

/* iOS zooms into inputs under 16px; keep the look at 12px elsewhere. */
@media (hover: none) { input[type="text"] { font-size: 16px; } }
