/* processingtimes.ca, direction B: Type and nothing else. Combo bottle green and ivory, gold
   (combo-bottle-ivory-gold, owner change 7).
   Light theme: an ivory ground with whole bottle-green fields. Dark theme: the fields stay bottle on a
   deeper green ground #0a2419 (ivory 14.2:1, muted 8.5:1, gold 8.3:1), so a dark-theme visitor never
   gets a bright first screen (orchestrator, 2026-11-17).
   Measured: gold on bottle 7.0:1 (text allowed), bottle on ivory 12.0:1, gold on ivory 1.7:1, so on
   ivory gold is a fill with bottle text and a 2 px bottle edge, never text.
   Muted inks: #4b6157 on ivory 5.8:1, #a9c0b3 on bottle 7.2:1.
   The accent goes only on the pinpoint and on what the visitor selects (the selects, the pressed chip). */
/* Fonts from the site itself, one static file for each weight.
   Zodiak: Indian Type Foundry, Fontshare Free Font License (self-hosting allowed, clause 01).
   Hanken Grotesk: SIL Open Font License 1.1; static 400 and 500 made from the variable font
   with tools/fonts/static_instance.py. Sources: data/raw/fonts-2026-11-17/. */
@font-face { font-family: "Zodiak"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/zodiak-300.woff2") format("woff2"); }
@font-face { font-family: "Zodiak"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/zodiak-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/hanken-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/hanken-grotesk-500.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --bottle: #0f3325; --ivory: #efefea; --gold: #e2b13c;
  --deep: #0a2419; /* dark ground: the bottle field stays bottle in dark, so the first screen stays dark */
  --muted-on-ivory: #4b6157; --muted-on-bottle: #a9c0b3;
  --bg: var(--ivory); --ink: var(--bottle); --muted: var(--muted-on-ivory);
  --f-bg: var(--bottle); --f-ink: var(--ivory); --f-muted: var(--muted-on-bottle);
  --accent: var(--gold); --accent-ink: var(--bottle);
  --serif: "Zodiak", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  /* five steps */
  --step-small: clamp(1rem, 0.96rem + 0.1vw, 1.0625rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  --step-display: clamp(3.5rem, 11vw, 10.5rem);
  --m: 24px;
  --gap: clamp(72px, 8vw, 128px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--deep); --ink: var(--ivory); --muted: var(--muted-on-bottle);
    --f-bg: var(--bottle); --f-ink: var(--ivory); --f-muted: var(--muted-on-bottle);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--deep); --ink: var(--ivory); --muted: var(--muted-on-bottle);
  --f-bg: var(--bottle); --f-ink: var(--ivory); --f-muted: var(--muted-on-bottle);
}
@media (max-width: 599px) { :root { --m: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--sans); overflow-x: clip; }
/* a short page (404) keeps its footer at the bottom of the screen */
body { min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3 { text-wrap: balance; font-weight: 300; }
p, li, td, dd { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.soft { color: var(--muted); }
.block { display: block; overflow-wrap: anywhere; }

/* a field: the second large colour, with its own ink */
.fld { --bg: var(--f-bg); --ink: var(--f-ink); --muted: var(--f-muted); background: var(--bg); color: var(--ink); }
/* owner, 2026-11-17: "dark/light on B does nothing on the landing page". The first screen follows the theme. */
:root:not([data-theme="dark"]) .hero.fld { --bg: var(--ivory); --ink: var(--bottle); --muted: var(--muted-on-ivory); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero.fld { --bg: var(--bottle); --ink: var(--ivory); --muted: var(--muted-on-bottle); }
}
.section { padding-block: var(--gap); }

/* ---------- top corner */
.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 20px var(--m) 20px; font-size: var(--step-small);
  --bg: var(--bottle); --ink: var(--ivory); --muted: var(--muted-on-bottle); background: var(--bg); color: var(--ink); }
/* The lock-up (brand/USE.md): 20 px tall or more (1.105 em), so 19 px or more here; clear space 0.55 em. */
.top .brand { display: flex; flex-direction: column; gap: 10px; align-self: center; --slogan-accent: #ff8a2a; }
.top .mark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 28px; padding-right: 0.55em; }
.top .slogan { font-size: var(--step-lead); line-height: 1.25; }
.top h1, .top .title { font: 400 var(--step-small)/1.4 var(--sans); }
.top .indep { font-weight: 500; }
.top nav { margin-left: auto; order: 5; display: flex; gap: 20px; align-items: baseline; font-size: var(--step-body); }
.top nav a { text-decoration: none; padding: 10px 0; }
.top nav a:hover { text-decoration: underline; }
.theme { font: inherit; color: inherit; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
@media (max-width: 599px) {
  .top { padding-top: 8px; padding-bottom: 14px; gap: 0 16px; }
  .top nav { order: 2; gap: 16px; font-size: var(--step-small); }
  .top nav a { padding: 12px 0; }
  .top .brand { display: contents; }
  .top .mark { order: 1; font-size: 22px; }
  .top .slogan { order: 3; flex-basis: 100%; }
  .top h1, .top .title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top .indep { order: 4; flex-basis: 100%; }
  .top .more { display: none; }
}

/* ---------- the first screen: the questions, the result for the visitor's month as the statement,
   and the month among the others beside it (owner, 2026-11-17: the visitor's application first) */
.hero { padding-bottom: clamp(36px, 5vw, 72px); }
.ask { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; gap: 24px; padding: 0 var(--m); margin-top: clamp(20px, 4vh, 48px); align-items: start; }
.ask-q { grid-column: 1 / span 6; display: grid; gap: 14px; align-content: start; }
.ask label { display: grid; gap: 8px; justify-items: start; }
.ask .lab { font: 400 var(--step-lead)/1.3 var(--sans); }
.sel { position: relative; display: inline-block; max-width: 100%; }
.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 14px; height: 9px; background: var(--accent-ink); clip-path: polygon(0 0, 50% 64%, 100% 0, 100% 36%, 50% 100%, 0 36%); transform: translateY(-50%); pointer-events: none; }
.select {
  font: 500 var(--step-lead)/1.25 var(--sans); color: var(--accent-ink); background: var(--accent); min-height: 52px;
  border: 2px solid var(--accent-ink); border-radius: 0; padding: 8px 44px 8px 14px;
  max-width: 100%; cursor: pointer; appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
  transition: background-color 160ms ease;
}
.select:hover { background: var(--ivory); }
.select option { color: #0f3325; background: #efefea; }
.ask .sel { max-width: min(100%, 36rem); }
.ask .sel .select { width: 100%; }
.readout { grid-column: 1 / span 6; display: grid; gap: 12px; align-content: start; padding-top: 8px; }
.statement {
  white-space: normal; font: 300 var(--fit)/0.92 var(--serif); letter-spacing: -0.02em; margin-bottom: 8px;
  --fit: min(var(--step-display), calc((50vw - 2 * var(--m)) / (var(--len, 8) * 0.54)));
}
.statement .l { display: block; white-space: nowrap; }
.readout .pair { font: 400 clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem)/1.15 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.readout .for { font-size: var(--step-small); }
.readout .before { font-size: var(--step-small); }
.readout .before[hidden] { display: none; }
[data-after-pick][hidden], .prompt[hidden] { display: none !important; }
.ask .prompt { grid-column: 7 / -1; grid-row: 1 / span 2; font-size: var(--step-lead); line-height: 1.35; }
/* the longest word is "application." (12 characters): the fit rule of the statement (--len 12) */
.ask .prompt-big { font: 300 min(var(--step-display), calc((50vw - 2 * var(--m)) / (12 * 0.6)))/0.95 var(--serif); letter-spacing: -0.02em; margin-bottom: 16px; }
@media (max-width: 899px) { .ask .prompt { grid-column: 1 / -1; grid-row: auto; } .ask .prompt-big { font-size: clamp(2.75rem, 11vw, 4.5rem); } }
.readout .note { font-size: var(--step-body); font-weight: 500; }
.tl-side { grid-column: 7 / -1; grid-row: 1 / span 2; min-width: 0; }
.tl-h { font: 300 var(--step-lead)/1.2 var(--serif); margin-bottom: 12px; }
@media (max-width: 899px) {
  .ask-q, .readout, .tl-side { grid-column: 1 / -1; }
  .tl-side { grid-row: auto; margin-top: 16px; }
  .statement { --fit: min(var(--step-display), calc((100vw - 2 * var(--m)) / (var(--len, 8) * 0.54))); }
}
@media (max-width: 599px) {
  .ask { gap: 16px; margin-top: 16px; }
  .ask-q { gap: 10px; }
  .statement { font-weight: 400; line-height: 0.95; --fit: min(26vw, calc((100vw - 32px) / (var(--len, 8) * 0.58))); }
  .ask .lab { font-size: 19px; }
  .select { font-size: 18px; min-height: 48px; width: 100%; }
  .ask .sel { width: 100%; }
  .readout .pair { font-size: 24px; }
}

/* ---------- after the result: how the figures for the month moved, and the type as a whole */
.after-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; padding: 0 var(--m); align-items: start; }
.after-grid .mh-wrap { grid-column: 1 / span 7; min-width: 0; }
.tq { grid-column: 9 / -1; display: grid; gap: 12px; align-content: start; }
.tq-v { font: 300 var(--step-lead)/1.25 var(--serif); }
.tq-v b { font-weight: 500; }
.tq-m { font-size: var(--step-small); }
/* which number is which (user test 1, fix 1) */
.tq-o { font-size: var(--step-body); font-weight: 500; max-width: 40ch; }
.ppl-sfx { display: none; }
.ask-m[hidden], .tl-h[hidden] { display: none; }
.tl-none { font-size: var(--step-body); max-width: 32ch; }
.tq-go[hidden] { display: none; }
@media (max-width: 899px) { .after-grid { row-gap: 88px; } .after-grid .mh-wrap, .tq { grid-column: 1 / -1; } }
.all-go { padding: 24px var(--m) 0; }
.all-go [hidden] { display: none; }

/* ---------- section frame */
.h2 { font: 300 var(--step-head)/1.05 var(--serif); letter-spacing: -0.01em; }
.lede { font-size: var(--step-lead); max-width: 40ch; }
.mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; padding-top: 0.06em; margin-top: -0.06em; }
.mask > span { display: block; }

/* ---------- the timeline of application months */
.lookup-grid { display: grid; gap: 32px; padding: 0 var(--m); }
.tl-cap { font-size: var(--step-body); margin-bottom: 16px; max-width: 70ch; }
.tw-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tw-range { font-size: var(--step-body); font-weight: 500; text-align: center; }
.tw-range .w6 { display: none; }
.tw-go {
  font: 500 var(--step-small)/1.2 var(--sans); color: inherit; background: transparent; border: 2px solid currentColor; border-radius: 0;
  min-height: 48px; padding: 10px 16px; cursor: pointer; flex: none;
}
.tw-go:hover { background: var(--ink); color: var(--bg); }
.tw-go:disabled { border-style: dashed; cursor: default; background: transparent; color: inherit; }
.tw { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; }
.tw-y { grid-column: 1; grid-row: 2; position: relative; height: 240px; font-size: 15px; color: var(--muted); }
.tw-y span { position: absolute; right: 12px; transform: translateY(50%); white-space: nowrap; }
.tw-grid { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-rows: subgrid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); }
.tw-pin {
  grid-row: 1; grid-column: var(--c); justify-self: var(--j); max-width: min(26rem, 100%);
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent-ink);
  padding: 8px 12px; font-size: var(--step-small); font-weight: 500; line-height: 1.35;
}
.tw-bar {
  grid-row: 2; position: relative; display: grid; grid-template-rows: 240px auto; justify-items: center;
  min-width: 48px; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
.tw-fill { grid-row: 1; align-self: end; width: 64%; min-width: 16px; height: max(2px, var(--h)); background: currentColor; }
.tw-bar.past .tw-fill { background: transparent; border: 2px solid currentColor; height: max(6px, var(--h)); }
.tw-bar.lt .tw-fill { height: 6px; width: 40%; }
.tw-bar.none .tw-fill { display: none; }
.tw-bar.on::before { content: ""; grid-row: 1; grid-column: 1; align-self: stretch; width: 2px; background: currentColor; }
.tw-bar.on .tw-fill { grid-column: 1; background: var(--accent); border: 2px solid var(--accent-ink); min-height: 8px; }
.tw-bar:hover .tw-fill { outline: 2px solid currentColor; outline-offset: 2px; }
.tw-m { grid-row: 2; padding-top: 8px; font-size: 15px; line-height: 1.3; color: var(--muted); text-align: center; }
.tw-m .yr { display: block; }
.tw-bar.on .tw-m { color: inherit; font-weight: 500; }
.tw-bar:focus-visible { outline-offset: -3px; }
.ov { margin-top: 32px; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto 64px auto; }
.ov-cap { grid-column: 1 / -1; font-size: var(--step-body); color: var(--muted); margin-bottom: 10px; }
.ov-y { grid-column: 1; grid-row: 2; position: relative; font-size: 15px; color: var(--muted); }
.ov-y span { position: absolute; right: 12px; transform: translateY(50%); white-space: nowrap; }
.ov-plot { grid-column: 2; grid-row: 2; position: relative; }
.ov-plot svg { display: block; width: 100%; height: 100%; }
.ov-plot rect { fill: currentColor; }
.ov-plot rect.on { fill: var(--accent); }
.ov-win { position: absolute; top: -6px; bottom: -6px; border: 2px solid currentColor; }
.ov-x { grid-column: 2; grid-row: 3; display: flex; justify-content: space-between; padding-top: 6px; font-size: 15px; color: var(--muted); }
.tl-key { margin-top: 20px; font-size: var(--step-body); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; }
.tl-key .k { display: inline-block; width: 16px; vertical-align: baseline; margin: 0 8px 0 0; border: 2px solid var(--ink); }
.tl-key .k-out { height: 16px; }
.tl-key .k-lt { height: 6px; background: var(--ink); }
.tl-table { margin-top: 20px; }
.tl-table summary, .all summary { cursor: pointer; font-weight: 500; min-height: 44px; padding: 10px 0; }
.tl-tbox { max-height: 28rem; overflow-y: auto; font-size: var(--step-small); margin-top: 8px; }
.mh { margin-top: 8px; }
.mh-h { font: 300 var(--step-lead)/1.2 var(--serif); }
.mh-k { font-size: var(--step-small); color: var(--muted); margin: 4px 0 16px; }
.mh-list { display: grid; gap: 6px; }
.mh-list li { display: grid; grid-template-columns: 11rem 1fr 18rem 16rem; gap: 16px; align-items: center; font-size: var(--step-small); }
.mh-bar { height: 12px; display: block; position: relative; }
.mh-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: currentColor; }
.mh-bar.lt::before { width: 4px; }
.mh-ph { display: none; }
@media (max-width: 899px) {
  .mh-ph { display: inline; }
  .mh-list { gap: 10px; }
  .mh-list li { grid-template-columns: 1fr auto; grid-template-areas: "d l" "b a"; gap: 2px 16px; }
  .mh-d { grid-area: d; } .mh-l { grid-area: l; text-align: right; }
  .mh-bar { grid-area: b; align-self: center; } .mh-a { grid-area: a; text-align: right; font-weight: 500; }
  .mh-sfx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 599px) {
  .tw, .ov { grid-template-columns: 48px 1fr; }
  .tw-y span, .ov-y span { right: 8px; }
  .tw-bar { min-width: 44px; }
  .tw-nav { flex-wrap: wrap; }
  .tw-range { order: -1; flex-basis: 100%; text-align: left; }
  .tw-go { flex: 1 1 0; }
  .tw-y, .tw-bar { height: auto; }
  .tw-y { height: 200px; }
  .tw-bar { grid-template-rows: 200px auto; }
  .tw-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tw-bar.far { display: none; }
  .tw-pin { grid-column: var(--c6); justify-self: var(--j6); }
  .tw-range:has(.w6) .w12 { display: none; }
  .tw-range .w6 { display: inline; }
  .tw-range { font-size: var(--step-small); }
  .tw-go { padding: 10px 12px; }
}

/* ---------- board: line-up at one type size, with a bar for each wait on one scale */
.board-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; padding: 0 var(--m); align-items: end; }
.board-head .h2 { grid-column: 1 / span 7; }
.board-head .lede { grid-column: 8 / span 5; }
.tools { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; padding: 40px var(--m) 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 var(--step-body)/1 var(--sans); color: var(--ink); background: transparent;
  border: 2px solid currentColor; border-radius: 0; padding: 12px 18px; min-height: 48px; cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out);
}
.chip:hover { background: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent-ink); color: var(--accent-ink); }
.chip:active { transform: translateY(1px); }
/* board tools of the site build (src/site/board-tools.mjs): the sort button and the countries that match */
.bt-sort { margin: 0; }
.cfind { flex: 1 1 100%; font-size: var(--step-small); }
.cfind-h { margin: 0 0 8px; font-weight: 600; }
.cfind-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 65ch; }
.cfind-name { font-weight: 600; }
.search { display: grid; gap: 6px; flex: 1 1 280px; max-width: 520px; font-size: var(--step-small); }
.field { -webkit-appearance: none; appearance: none; font: 400 var(--step-body)/1.3 var(--sans); color: inherit; background: transparent; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; padding: 10px 0; width: 100%; min-height: 48px; }
.field::placeholder { color: var(--muted); opacity: 1; }
.empty-note { padding: 24px var(--m) 0; font-size: var(--step-lead); }
.group { padding: 0 var(--m); }
.group[hidden] { display: none; }
.group h3 { font: 300 var(--step-lead)/1.2 var(--serif); margin: 64px 0 4px; }
.group .src { font-size: var(--step-small); margin-bottom: 16px; max-width: 80ch; }
.lineup { width: 100%; border-collapse: collapse; font-size: var(--step-body); table-layout: fixed; }
.lineup thead th { font: 400 var(--step-small)/1.3 var(--sans); color: var(--muted); text-align: left; padding: 0 16px 10px 0; vertical-align: bottom; }
.lineup th[scope="row"] { text-align: left; font-weight: 400; }
.lineup td, .lineup th[scope="row"] { padding: 0 16px 0 0; vertical-align: middle; }
.lineup tr[data-row] > * { padding-block: 2px; }
.lineup thead th:nth-child(1) { width: 36%; }
.lineup thead th:nth-child(2) { width: 20%; }
.lineup thead th:nth-child(3) { width: 30%; }
.lineup thead th:nth-child(4) { width: 14%; }
/* a table with no people column keeps the same bar width (30%): "One scale for every bar" (panel site round 1) */
.lineup.two thead th:nth-child(1) { width: 50%; }
.lineup.two thead th:nth-child(3) { width: 30%; }
.lineup .app, .lineup .wait { font-size: var(--step-lead); line-height: 1.25; }
.ax { position: relative; display: block; height: 1.4em; font-size: 13px; color: var(--muted); }
.ax span { position: absolute; top: 0; white-space: nowrap; }
.ax span:nth-child(1) { left: 0; }
.ax span:nth-child(2) { left: 50%; transform: translateX(-50%); }
.ax span:nth-child(3) { right: 0; }
.ax-phone { display: none; }
.rowbtn, .rowname {
  display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-radius: 0;
  padding: 10px 0; min-height: 48px; cursor: pointer;
}
.rowname { cursor: default; }
.rowbtn:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.rowbtn[aria-expanded="true"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.lineup .reg { display: block; font-size: var(--step-small); color: var(--muted); }
.lineup .chg { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.readout .diff { font-size: var(--step-small); font-weight: 500; }
.readout .diff:empty { display: none; }
.lineup .ppl { font-size: var(--step-body); }
.wb { display: block; height: 14px; position: relative; }
.wb > span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: currentColor; }
.wb.open > span { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.lineup tr[hidden] { display: none; }
.lineup tr.more td { padding: 4px 0 24px; }
.lineup tr.more p { font-size: var(--step-body); }
.d-ppl { font-weight: 500; }
.d-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2px 24px; margin-top: 8px; font-size: var(--step-small); }
.d-hist li { display: flex; flex-wrap: wrap; gap: 0 10px; }
@media (max-width: 899px) {
  .board-head .h2, .board-head .lede { grid-column: 1 / -1; }
  .ax-phone { display: grid; grid-template-columns: 1fr 96px; gap: 0 12px; margin-bottom: 4px; }
  .lineup { table-layout: auto; }
  .lineup thead { display: none; }
  .lineup, .lineup tbody { display: block; }
  .lineup tr[data-row] { display: grid; grid-template-columns: 1fr 112px; gap: 0 12px; padding: 4px 0 8px; }
  .lineup tr.more:not([hidden]) { display: block; }
  .lineup tr.more td { display: block; }
  .lineup tr[data-row] > * { padding: 0; width: auto; }
  .lineup .app { grid-column: 1 / -1; font-size: 20px; }
  .lineup .wait { grid-column: 1; font-size: var(--step-body); font-weight: 500; }
  .lineup .bar { grid-column: 1; }
  .lineup .ppl { grid-column: 2; grid-row: 2 / 4; text-align: right; font-size: var(--step-small); }
  /* the column head is hidden on a phone, so the cell says what the number is (user test 1, fix 7) */
  .lineup .ppl-sfx { display: block; }
  .rowbtn, .rowname { min-height: 44px; padding: 8px 0; }
}

/* ---------- where the numbers come from: three steps, call and response */
.method { padding-inline: var(--m); }
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.ex { display: grid; gap: 16px; align-content: start; }
.ex .say { font: 300 var(--step-lead)/1.25 var(--serif); }
.ex .call { background: var(--ink); color: var(--bg); padding: 16px 20px; font-size: var(--step-small); overflow-wrap: anywhere; }
.ex .resp { font-size: var(--step-body); line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }

/* ---------- one word is the button */
.alerts form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: var(--gap) var(--m) 0; }
.alerts .intro { grid-column: 1 / span 5; }
.alerts .inputs { grid-column: 7 / span 6; display: grid; gap: 20px; align-content: start; }
.alerts label { display: grid; gap: 6px; font-size: var(--step-small); }
.alerts .tick { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-body); min-height: 44px; }
.alerts .tick input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.alerts .off { font-size: var(--step-body); }
.alerts .al-go { grid-column: 7 / span 6; justify-self: start; }
@media (max-width: 899px) {
  .alerts .intro, .alerts .inputs, .alerts .al-go { grid-column: 1 / -1; }
}

/* ---------- type page */
.t-title { margin-top: clamp(64px, 7vh, 88px); padding: 0 var(--m); font: 300 clamp(2.25rem, 1.6rem + 3.3vw, 5rem)/1 var(--serif); letter-spacing: -0.015em; }
.t-title .mask { display: inline-block; vertical-align: top; }
@media (max-width: 599px) {
  /* each of the two lines fits one phone line: the size follows the longer line (--len, in
     characters; Zodiak at weight 300 is about 0.52 em for each character) */
  .t-title { font-size: clamp(1.5rem, calc((100vw - 2 * var(--m)) / (var(--len, 12) * 0.52)), 2.25rem); }
  .t-title .mask { display: block; }
}
.t-hero > .back { padding: 16px var(--m) 0; font-size: var(--step-body); }
.t-hero > .back a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 4px; }
.hist-grid > .all { grid-column: 1 / -1; }
.hist-lead { grid-column: 1 / span 8; font-size: var(--step-lead); max-width: 48ch; margin-top: -12px; }
@media (max-width: 899px) { .hist-lead { grid-column: 1 / -1; } }
.ht-go { display: none; }
@media (max-width: 599px) {
  .ht-go { display: flex; align-items: center; min-height: 48px; padding: 10px 0; background: none; border: 0; color: inherit; font: 500 var(--step-body)/1.3 var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
  .js .htable:not(.open) table { display: none; }
}
.hist-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; padding-inline: var(--m); }
.hist-grid .h2 { grid-column: 1 / -1; }
.charts { grid-column: 1 / span 7; display: grid; gap: 40px; }
.chart h3 { font: 500 var(--step-body)/1.3 var(--sans); }
.chart .plot { position: relative; margin-top: 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; color: currentColor; touch-action: pan-y; }
.chart .grid line { stroke: currentColor; stroke-opacity: 0.25; stroke-width: 1; }
.chart .axis text { fill: currentColor; font: 400 14px var(--sans); }
.chart .tip { position: absolute; top: 0; left: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 8px 12px; font-size: var(--step-small); white-space: nowrap; transform: translate(-50%, -110%); }
.chart .tip[hidden] { display: none; }
.htable { grid-column: 9 / span 4; font-size: var(--step-small); }
.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data caption { text-align: left; font: 500 var(--step-body)/1.3 var(--sans); padding-bottom: 12px; }
.data th { text-align: left; font-weight: 500; padding: 8px 12px 8px 0; border-bottom: 2px solid currentColor; vertical-align: bottom; }
.data td { padding: 7px 12px 7px 0; border-bottom: 2px solid color-mix(in srgb, currentColor 22%, transparent); }
@media (max-width: 899px) { .charts, .htable { grid-column: 1 / -1; } }
/* desktop (panel site round 1: the right half was empty for four screens): when the table is folded
   under the charts, the charts use the full width, two side by side; a single chart uses 9 columns */
@media (min-width: 900px) {
  .hist-grid:has(> .all) .charts { grid-column: 1 / span 9; }
  .hist-grid:has(> .all) .charts:has(> .chart + .chart) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
/* the sections of the site: half the gap above and under each, so that two sections are one gap apart */
.hist-grid, .months, .sources, .prose, .log-sec, .svc { padding-block: calc(var(--gap) / 2); }
@media (max-width: 599px) { .chart .axis text { font-size: 22px; } }
.months { padding-inline: var(--m); display: grid; gap: 24px; }
.months .src { font-size: var(--step-small); max-width: 70ch; }
.months .mt { font-size: var(--step-body); max-width: 60rem; }
.all { max-width: 60rem; }
.mtable { margin-top: 12px; }
.all:not([open]) .mtable, .tl-table:not([open]) .tl-tbox { display: none; }
.sources { padding-inline: var(--m); display: grid; gap: 20px; }
.sources p { max-width: 70ch; }

/* ---------- footer: the lock-up and the slogan first, places under it. No giant name in live text
   (brand/BRAND.md section 6, and the giant-wordmark footer is the look of the outreach mock-ups). */
.foot { --bg: var(--f-bg); --ink: var(--f-ink); --muted: var(--f-muted); background: var(--bg); color: var(--ink); padding: 40px var(--m) 28px; }
.foot .brand { display: flex; flex-direction: column; gap: 12px; --slogan-accent: #ff8a2a; }
.foot .mark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 28px; padding-right: 0.55em; }
@media (max-width: 599px) { .foot .mark { font-size: 22px; } }
.foot .slogan { font-size: var(--step-lead); line-height: 1.2; }
.foot .row { margin-top: 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
.foot .places { grid-column: 1 / span 6; display: grid; gap: 6px; font-size: var(--step-lead); }
.foot .places .sm { display: block; font-size: var(--step-small); }
.foot .links { grid-column: 8 / span 5; display: grid; gap: 10px; font-size: var(--step-body); align-content: start; }
.foot .notice { margin-top: 24px; font-size: var(--step-body); line-height: 1.4; max-width: 52ch; }
.how { margin-top: 40px; max-width: 70ch; font-size: var(--step-body); }
.how summary { cursor: pointer; font-weight: 500; min-height: 44px; padding: 10px 0; }
.how-body { display: grid; gap: 12px; padding-top: 8px; }
.foot .legal { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step-small); }
@media (max-width: 899px) {
  .foot .places, .foot .links { grid-column: 1 / -1; }
}

/* ---------- motion: headings without digits only; numbers and charts never move */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; }
  .js .rv.in { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 80ms); }
  .js .lines .mask > span { transform: translateY(105%); }
  .js .lines.in .mask > span { animation: line-up 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }
}
/* the history line of an in-Canada service, in its open row */
.d-svc { max-width: 60ch; margin-bottom: 12px; }
.dspark { display: block; width: 100%; max-width: 32rem; height: 60px; overflow: visible; }
.dspark path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- pages of the site (step 5): service, country, text, log, sources */
.t-ircc, .t-lede { padding: 12px var(--m) 0; font-size: var(--step-body); max-width: calc(60ch + 2 * var(--m)); }
.t-lede { font-size: var(--step-lead); }
.t-hero > .readout { padding: 24px var(--m) 0; }
.svc, .sources, .prose, .log-sec { padding-inline: var(--m); display: grid; gap: 20px; justify-items: start; }
.svc .dspark { max-width: 40rem; height: 120px; }
.sources .src-list { display: grid; gap: 10px; font-size: var(--step-body); padding-left: 1.2em; }
.sources .src-list a { overflow-wrap: anywhere; }
/* the file name on its own line: one long word, not left alone at the end of a line */
.src-list .src-file { display: block; width: fit-content; }
.sources .src, .svc .src { font-size: var(--step-small); max-width: 60ch; }
.prose { max-width: calc(68ch + 2 * var(--m)); font-size: var(--step-body); }
.prose .h2 { margin-top: 24px; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 1.2em; }
.prose table { font-size: var(--step-small); }
.log-sec h3 { font: 400 var(--step-lead)/1.2 var(--serif); margin-top: 12px; }
.log-sec .log { display: grid; gap: 8px; padding-left: 1.2em; font-size: var(--step-body); max-width: 68ch; }
.months table th[scope="row"] { text-align: left; font-weight: 400; }
.months .scroll { max-width: 100%; overflow-x: auto; }
.d-go { margin-top: 12px; }
.foot .foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 24px; font-size: var(--step-body); }
.foot .foot-links a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }

/* phone: each row of the month table is one block (panel site round 1: the cells wrapped to five
   lines). Line 1: the month and the time left. Line 2: the IRCC words of the people ahead. */
@media (max-width: 599px) {
  .section table.mt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .section table.mt, .section table.mt tbody { display: block; width: 100%; }
  .section table.mt tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; }
  .section table.mt td { padding: 0; }
  .section table.mt td:nth-child(1) { grid-area: 1 / 1; font-weight: 600; }
  .section table.mt td:nth-child(3) { grid-area: 1 / 2; text-align: right; }
  .section table.mt td:nth-child(2) { grid-area: 2 / 1 / 3 / 3; }
}
