/* Saira, self-hosted (SIL Open Font Licence, see fonts/OFL-Saira.txt). One variable file per subset covers every weight and width. */
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url(../fonts/saira-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url(../fonts/saira-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
  Spectrum Colour Code.
  Cloudbase white, with each section coded by an officer's colour.
  One family (Saira) at three widths: condensed for signage and labels,
  expanded for display, normal for reading.
*/

:root {
  --ground: #edeff0;
  --panel: #f9fafa;
  --ink: #15171c;
  --ink-2: #474c56;
  --rule: #c5cad0;
  --rule-strong: #9aa1aa;

  --scarlet: #c8102e;
  --scarlet-deep: #9e0c24;
  --blue: #1d5fa3;
  --green: #1d7636;
  --ochre: #d39a1a;

  /* The Spectrum emblem's six colours, left to right. */
  --sp-1: #5b2d8e;
  --sp-2: #1d5fa3;
  --sp-3: #1f9447;
  --sp-4: #f2c318;
  --sp-5: #e8741b;
  --sp-6: #c8102e;

  --focus: #1d5fa3;
  --piece-shadow: 0 16px 18px rgb(21 23 28 / .34);

  --gutter: clamp(16px, 3vw, 48px);
  --bar-h: 76px;

  /* A light page by design: "only" stops browsers' automatic dark modes from
     recolouring it, which dulls the scans and the officer colours. */
  color-scheme: only light;
  accent-color: var(--scarlet);
  scrollbar-color: var(--rule-strong) var(--ground);
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Saira", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--scarlet); color: #fff; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip { font-stretch: 75%; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Shared parts ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-stretch: 75%;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.btn svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: rgb(21 23 28 / .07); }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.btn-primary { background: var(--scarlet); border-color: var(--scarlet); color: #fff; }
.btn-primary:hover { background: var(--scarlet-deep); border-color: var(--scarlet-deep); }
.btn-primary[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.segmented {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}
.segmented button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-left: 1.5px solid var(--ink);
  background: transparent;
  font-stretch: 75%;
  font-weight: 650;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.segmented button:first-child { border-left: 0; }
.segmented button:hover { background: rgb(21 23 28 / .07); }
.segmented button[aria-pressed="true"] { background: var(--code, var(--ink)); color: var(--code-ink, #fff); }

h3 {
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.gloss { color: var(--ink-2); font-size: 1rem; }

/* ---------- Rank bar ---------- */

.rankbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--panel);
}
.rankbar-inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  max-width: 1680px;
  margin: 0 auto;
}

.mark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-right: auto;
}
.mark-emblem {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff url(../img/spectrum-emblem.jpg) no-repeat;
  background-size: 77px auto;
  background-position: -15.6px -11.4px;
  box-shadow: 0 0 0 1.5px var(--ink);
}
.mark-words { display: grid; line-height: 1; }
.mark-name {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--scarlet);
}
.mark-sub {
  margin-top: 6px;
  font-stretch: 75%;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.ranks ul {
  display: flex;
  height: 100%;
  margin: 0; padding: 0;
  list-style: none;
}
.ranks a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 18px;
  text-decoration: none;
  font-stretch: 75%;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.ranks a::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--code);
  transition: transform .25s var(--ease-out);
}
.ranks a:hover { background: color-mix(in srgb, var(--code) 12%, var(--panel)); }
.ranks a[aria-current] { background: var(--code); color: var(--code-ink); }
.ranks a[aria-current]::before { background: var(--code-ink); transform: scale(.6); }


/* The Spectrum emblem's six bands, laid flat as a colour key. */
.spectrum-rule { display: flex; height: 4px; }
.spectrum-rule i { flex: 1; }
.spectrum-rule i:nth-child(1) { background: var(--sp-1); }
.spectrum-rule i:nth-child(2) { background: var(--sp-2); }
.spectrum-rule i:nth-child(3) { background: var(--sp-3); }
.spectrum-rule i:nth-child(4) { background: var(--sp-4); }
.spectrum-rule i:nth-child(5) { background: var(--sp-5); }
.spectrum-rule i:nth-child(6) { background: var(--sp-6); }

/* ---------- The console: briefing, poster, readout ---------- */

.console {
  --poster-h: calc(100svh - var(--bar-h) - 4px - 64px);
  --poster-w: clamp(300px, calc(var(--poster-h) * .7636), 760px);
  display: grid;
  grid-template-columns: minmax(250px, 1fr) var(--poster-w) minmax(250px, 1fr);
  gap: clamp(24px, 3vw, 64px);
  align-items: start;
  max-width: 1680px;
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  scroll-margin-top: calc(var(--bar-h) + 6px);
}

.briefing { padding-top: 8px; max-width: 420px; justify-self: end; }
.briefing h1 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 1.9vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.lede { margin-top: 22px; font-size: 1.15rem; }
.controls { display: grid; justify-items: start; gap: 12px; margin-top: 28px; }
.hint { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 1rem; }
.hint-touch { display: none; }
html:not(.can-hover) .hint-hover { display: none; }
html:not(.can-hover) .hint-touch { display: inline; }

.board-frame {
  position: relative;
  padding: 10px;
  background: var(--ink);
  box-shadow: 0 30px 50px -30px rgb(21 23 28 / .55);
}
.board .face-jigsaw { box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .14); }
.board.is-turned .face-picture { box-shadow: inset 0 0 0 .5px rgb(21 23 28 / .25); }
.piece-num {
  min-width: 1.7em;
  padding: 1px 4px;
  background: var(--ink);
  color: #fff;
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(.7rem, .4rem + .5vw, .95rem);
  line-height: 1.25;
  text-align: center;
}

.readout {
  position: sticky;
  top: calc(var(--bar-h) + 38px);
  max-width: 360px;
  padding: 0 24px 24px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 0;
  box-shadow: inset 0 8px 0 var(--scarlet);
  padding-top: 28px;
}
.ro-pic {
  display: grid;
  place-items: center;
  aspect-ratio: 1.15;
  margin: 0 0 20px;
  background: var(--ground);
}
.ro-pic img { display: none; width: 100%; height: auto; box-shadow: 0 1px 2px rgb(21 23 28 / .18), 0 14px 24px -14px rgb(21 23 28 / .5); }
.ro-pic.is-portrait img { width: auto; height: 100%; }
.ro-pic.has-img { background: transparent; }
.ro-pic.has-img img { display: block; }
.ro-pic.has-img .ro-pic-empty { display: none; }
.ro-pic-empty {
  max-width: 22ch;
  padding: 20px;
  text-align: center;
  font-stretch: 75%;
  font-weight: 650;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ro-label, .ro-facts dt {
  font-stretch: 75%;
  font-weight: 650;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ro-num {
  margin-top: 2px;
  font-stretch: 62.5%;
  font-weight: 800;
  font-size: clamp(4.5rem, 2rem + 4vw, 7rem);
  line-height: .86;
  letter-spacing: -.02em;
  color: var(--scarlet);
}
.ro-title {
  min-height: 2.4em;
  margin-top: 12px;
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  text-wrap: balance;
}
.ro-facts { display: grid; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.ro-facts dd { margin: 2px 0 0; font-size: 1.05rem; }
.readout:not(.is-live) .ro-num { color: var(--ink); }

/* ---------- Visitor counter: the Spectrum badge ----------
   The badge is card 64's own printed Spectrum emblem, cut from the scan along
   its circular edge (centre 190.5, 181 and radius 135 in the 377 x 523 scan).
   The number drums sit across its middle on a bar outlined like the badge's
   S. The badge always shows at full colour; the drums ticking over and the
   lamp turning green mark the moment a visit is logged. */

.counter { margin-top: 16px; }
.counter-label {
  font-stretch: 75%;
  font-weight: 650;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.badge {
  --d: 196px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--d);
  height: var(--d);
  margin-top: 10px;
}
.badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url(../img/cards/card-64.jpg) no-repeat;
  background-size: calc(var(--d) * 377 / 270) auto;
  background-position: calc(var(--d) * -55.5 / 270) calc(var(--d) * -46 / 270);
  /* The 1967 inks have faded on the card; bring the badge back to full
     strength here. Card 64 itself is still shown untouched everywhere else. */
  filter: saturate(1.6) contrast(1.18) brightness(1.03);
}
.counter-plate {
  position: relative;
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: var(--scarlet);
  /* White then black, like the outlined stroke of the badge's S. */
  box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--ink), 0 10px 16px -8px rgb(21 23 28 / .6);
}
.drum {
  position: relative;
  display: block;
  width: .8em;
  height: 1.3em;
  overflow: hidden;
  background: var(--ink);
  color: #f9fafa;
  font-stretch: 62.5%;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* The drum curves away at the top and bottom of its window. */
.drum::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 7px 6px -5px rgb(0 0 0 / .75), inset 0 -7px 6px -5px rgb(0 0 0 / .75);
  pointer-events: none;
}
.drum-strip {
  display: block;
  transform: translateY(calc(var(--p, 0) * -1.3em));
}
.drum-strip span { display: block; height: 1.3em; }
.counter.is-rolling .drum-strip { transition: transform 1.9s cubic-bezier(.2, .75, .2, 1); }
.counter.is-rolling .drum:nth-last-child(n + 3) .drum-strip { transition-duration: 1.3s; }
.counter.is-ticking .drum-strip { transition: transform .45s cubic-bezier(.34, 1.45, .55, 1); }
.counter-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-stretch: 75%;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* The all-clear: unlit while the drums turn, green once the visit is logged. */
.counter-lamp {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rule-strong);
  box-shadow: inset 0 0 0 1.5px rgb(21 23 28 / .2);
  transition: background-color .35s var(--ease-out);
}
.counter.is-green .counter-lamp { background: #22a04c; }
.counter-since {
  font-stretch: 100%;
  font-weight: 400;
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}

/* ---------- Duty sections: a full band in the officer's colour ---------- */

.duty { scroll-margin-top: calc(var(--bar-h) + 6px); }
.band { background: var(--code); color: var(--code-ink); }
.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 44px var(--gutter) 40px;
}
.band h2 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.band p { font-size: 1.15rem; max-width: 40ch; }

.duty-body {
  max-width: 1680px;
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
}

/* All 66 cards */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 40px; }
#cards .segmented { --code: var(--blue); }
.count { color: var(--ink-2); font-size: 1rem; }

.index { gap: 36px 28px; }
.index-frame { place-items: end center; }
.index-card { position: relative; }
.index-frame img {
  box-shadow: 0 1px 2px rgb(21 23 28 / .18), 0 10px 20px -12px rgb(21 23 28 / .4);
}
.index-card:hover .index-frame img,
.index-card:focus-visible .index-frame img {
  transform: translateY(-5px);
  box-shadow: 0 1px 2px rgb(21 23 28 / .18), 0 22px 30px -14px rgb(21 23 28 / .5);
}
.index-card:focus-visible { outline-offset: 6px; }
.index-num {
  display: inline-block;
  margin-top: 14px;
  font-stretch: 62.5%;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--blue);
}
.index-title { font-size: 1rem; line-height: 1.35; }
.index-card:hover .index-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* The wrapper */
.wrapper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.wrapper-stage { display: grid; justify-items: center; gap: 24px; padding: clamp(24px, 4vw, 56px); background: var(--panel); border: 1px solid var(--rule); }
.wrapper-figure { width: min(100%, 460px); }
.wrapper-figure img { width: 100%; height: auto; box-shadow: 0 1px 2px rgb(21 23 28 / .15), 0 18px 30px -16px rgb(21 23 28 / .45); }
.wrapper-copy { max-width: 60ch; }
.wrapper-copy h3 { margin-top: 36px; color: var(--green); }
.wrapper-copy h3:first-child { margin-top: 0; }
.printed {
  margin-top: 10px;
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
}
.wrapper-copy .gloss { margin-top: 14px; }

/* The story */
.story { display: grid; gap: 80px; }
.story-quote {
  max-width: 34em;
  font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem);
  line-height: 1.5;
}
.story-quote p + p { margin-top: .9em; }
.story-quote a { color: var(--scarlet-deep); font-weight: 700; }

.fit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.fit-copy { max-width: 60ch; }
.fit-copy p { margin-top: 12px; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  aspect-ratio: 8.4 / 11;
  background: url(../img/poster.jpg) center / 100% 100%;
  border: 6px solid var(--ink);
}
.mini-grid span {
  display: grid;
  place-items: center;
  border: .5px solid rgb(255 255 255 / .55);
  background: rgb(21 23 28 / .42);
  color: #fff;
  font-stretch: 75%;
  font-weight: 700;
  font-size: .85rem;
}

.dutch { padding-top: 48px; border-top: 1px solid var(--rule); }
.dutch > p { max-width: 60ch; margin-top: 12px; }
.pairs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
  margin: 32px 0 0; padding: 0;
  list-style: none;
}
.pair { display: block; text-decoration: none; }
.pair-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.pair-cards img { width: 100%; height: auto; box-shadow: 0 8px 16px -10px rgb(21 23 28 / .5); }
.pair-label {
  display: block;
  margin-top: 12px;
  font-stretch: 75%;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pair:hover .pair-label { text-decoration: underline; }

/* ---------- Footer ---------- */

.foot { background: var(--ink); color: #d9dce0; }
.foot-inner {
  display: grid;
  gap: 8px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  font-size: 1rem;
}

/* ---------- Card file ---------- */

.file {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  background: transparent;
  color: var(--ink);
}
.file::backdrop { background: rgb(21 23 28 / .78); }

.file { --file-code: var(--scarlet); }
.file[data-from="cards"] { --file-code: var(--blue); }
.file[data-from="wrapper"] { --file-code: var(--green); }
.file[data-from="story"] { --file-code: var(--ochre); }
.file-sheet { background: var(--panel); box-shadow: inset 0 8px 0 var(--file-code), 0 40px 80px -30px rgb(0 0 0 / .6); padding-top: 8px; }
.file-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.file-step, .file-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-stretch: 75%;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.file-step svg, .file-close svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.file-step:hover, .file-close:hover { border-color: var(--ink); }
.file-close { margin-left: auto; }
.file-ref + .file-close { margin-left: 0; }

.file-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(20px, 3vw, 40px);
}
.file-left { display: grid; gap: 20px; justify-items: center; }
.file-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.file-card:focus-visible { outline-offset: 8px; }

.file-num {
  font-stretch: 62.5%;
  font-weight: 800;
  font-size: clamp(5rem, 3rem + 5vw, 8.5rem);
  line-height: .85;
  letter-spacing: -.02em;
  color: var(--scarlet);
}
.file-of {
  margin-left: 10px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.file-ref {
  flex: 1;
  align-self: center;
  text-align: center;
  font-stretch: 75%;
  font-weight: 650;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.file-ref span { color: var(--file-code); font-weight: 800; }
.file[data-from="story"] .file-ref span { color: var(--ink); }
.file-info h2 {
  margin-top: 14px;
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  line-height: 1.1;
  text-wrap: balance;
}
.file-caption { margin-top: 14px; max-width: 46ch; font-size: 1.15rem; }
.file-note {
  margin-top: 18px;
  max-width: 46ch;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--ochre) 22%, var(--panel));
  font-weight: 600;
}

.file-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.ticket { display: grid; gap: 12px; }
.ticket dt {
  font-stretch: 75%;
  font-weight: 650;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ticket dd { margin: 1px 0 0; font-size: 1.05rem; }
.locator { border: 3px solid var(--ink); }
.locator img { opacity: .45; }
.locator-mark { outline: 2px solid var(--scarlet); background: rgb(200 16 46 / .45); }
.file-help { margin-top: 24px; color: var(--ink-2); font-size: .95rem; }
html:not(.can-hover) .file-help { display: none; }

/* ---------- Narrower screens ---------- */

@media (max-width: 1180px) {
  .console {
    grid-template-columns: var(--poster-w) minmax(220px, 1fr);
    --poster-w: clamp(300px, calc(var(--poster-h) * .7636), 620px);
  }
  .briefing { grid-column: 1 / -1; max-width: 62ch; justify-self: start; }
  .briefing h1 { font-size: clamp(2rem, 1rem + 2.6vw, 2.8rem); }
  .controls { grid-auto-flow: column; justify-content: start; }
  .readout { justify-self: start; }
}

@media (max-width: 1020px) {
  .ranks a { padding: 0 12px; }
  .mark-sub { display: none; }
  .file-body { grid-template-columns: 1fr; }
  .file-info { max-width: 62ch; }
}

@media (max-width: 860px) {
  :root { --bar-h: 64px; }
  .rankbar-inner { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 10px 16px; }
  .mark { margin-right: auto; }
  .mark-emblem { width: 40px; height: 40px; background-size: 64px auto; background-position: -13px -9.5px; }
  .mark-name { font-size: 1.1rem; }
  .ranks { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
  .ranks ul { height: 48px; }
  .ranks a { font-size: .95rem; }
  .ranks ul { justify-content: space-between; }
  .rankbar { position: static; }
  .console { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  /* On a phone the poster follows the headline straight away. */
  .briefing { display: contents; }
  .briefing h1 { order: 1; }
  .board-frame { order: 2; margin: 4px 0 8px; }
  .lede { order: 3; margin-top: 0; }
  .controls { order: 4; margin-top: 0; }
  .hint { order: 5; margin-top: 0; }
  .counter { order: 6; margin-top: 4px; display: grid; justify-items: center; text-align: center; }
  .counter-status { justify-content: center; }
  .board-frame { width: min(100%, 560px); justify-self: center; padding: 6px; }
  .readout { display: none; }
  .wrapper-layout, .fit { grid-template-columns: 1fr; }
  .mini-grid { max-width: 340px; }
  .controls { grid-auto-flow: row; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .ranks .long { display: none; }
  .ranks a { padding: 0 10px; gap: 7px; }
  .ranks a::before { width: 10px; height: 10px; }
  .briefing h1 { font-size: 1.75rem; }
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .index-num { font-size: 1.35rem; }
  .index-title { font-size: .95rem; }
  .file { width: 100vw; max-height: 100svh; height: 100svh; margin: 0; }
  .file-body { padding: 16px; }
  .file-facts { grid-template-columns: 1fr 88px; }
  .file-step span { font-size: .95rem; }
  .file-close span { display: none; }
  .file-ref { display: none; }
  .file-ref + .file-close { margin-left: auto; }
  .band-inner { padding: 32px var(--gutter) 28px; }
  .duty-body { padding-top: 32px; padding-bottom: 72px; }
}
