/* ============================================================
   THE INTERNATIONAL BUREAU OF USELESS ANALYTICS
   House style: vintage statistical bulletin. Aged paper, ink
   hairlines, stamp red, serif headlines, mono for every number.
   ============================================================ */

:root {
  --bg: #f3edde;
  --card: #f9f4e7;
  --ink: #221d15;
  --muted: #635c4c;
  --line: #d4cab3;
  --accent: #b02e1d;
  --accent-soft: rgba(176, 46, 29, 0.08);
  --map-empty: #e4dcc7;
  --map-hatch: #cdc4ab;
  --map-stroke: #f3edde;
  --hard-shadow: 4px 4px 0 var(--ink);

  --serif: 'Old Standard TT', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171410;
    --card: #221d13;
    --ink: #ede5d1;
    --muted: #aa9e85;
    --line: #463d2b;
    --accent: #e25840;
    --accent-soft: rgba(226, 88, 64, 0.13);
    --map-empty: #282217;
    --map-hatch: #403823;
    --map-stroke: #171410;
    --hard-shadow: 4px 4px 0 rgba(237, 229, 209, 0.85);
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain over everything, like a cheaply printed bulletin. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

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

/* ---------- type utilities ---------- */

.kicker,
.mast-kicker,
.mast-motto,
.fig-label,
.filter-label,
.card-no,
.card-votes,
.card-answered,
.ballot-note,
.results-meta,
.colophon {
  font-family: var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  padding: 14px 20px 7px;
  text-align: center;
  border-bottom: 3px double var(--ink);
}

/* A thin utility strip at the top of the masthead, right-aligned. Static (not
   absolute) so it can never collide with the centred masthead. */
.account-bar {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
}
.account-bar:empty { display: none; }

.account-id {
  color: var(--muted);
  letter-spacing: 0.06em;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.link-btn { text-decoration: none; }

.mast-kicker {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}

.logo {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.logo:hover { color: var(--accent); }

.mast-motto {
  margin: 3px 0 0;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- layout ---------- */

#app {
  max-width: 1020px;
  margin: 0 auto;
  padding: 8px 20px 28px;
  min-height: 55vh;
}

.splash {
  padding: 90px 0;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.site-footer {
  border-top: 3px double var(--ink);
  max-width: 1020px;
  margin: 0 auto;
  padding: 13px 20px 16px;
}

.colophon {
  margin: 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
}

.build-stamp {
  margin: 7px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- shared atoms ---------- */

.kicker {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.fig-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  margin: 26px 0 12px;
}
.fig-label::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fdf9ee; }

/* ghost = a text action, not a box */
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  padding-left: 2px;
  padding-right: 2px;
}
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: transparent; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* form fields are underlined, not boxed — like blanks on a paper form */
select {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 7px 22px 7px 4px;
}
select:hover { border-bottom-color: var(--accent); }

/* ---------- home ---------- */

.strapline {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  margin: 22px auto 0;
  max-width: 58ch;
}

.strapline em { color: var(--accent); }

/* ---------- the daily ---------- */

.daily-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.streak {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.streak.done { color: var(--ink); }
.streak.warn { color: var(--accent); }

.daily-head { margin: 12px 0 4px; }

.daily-title {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 2px 0 4px;
}

.daily-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 8px;
}

/* On a wide screen the findings sit in two columns: numbers left, cartography
   right — the whole verdict in one glance. Applies to the daily and to any
   survey page (both render the same .results block). */
@media (min-width: 980px) {
  .results {
    display: grid;
    grid-template-columns: minmax(320px, 430px) 1fr;
    column-gap: 36px;
    align-items: start;
  }
  .results > .map-section {
    grid-column: 2;
    grid-row: 1 / 6;
    margin-top: 0;
  }
  .results > .fig-label { margin-top: 2px; }
  /* stamp overlays the empty top-right of the map column — no vertical cost */
  .stamp { position: absolute; top: -4px; right: 0; margin: 0; z-index: 2; }
}

/* archive filter chips */

/* division filters: underlined tabs, not pills */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 16px 0 2px;
}

.chip {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 5px 1px;
  cursor: pointer;
}

.chip:hover { color: var(--ink); }

.chip.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 40px 0 0;
  padding: 8px 2px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.index-head span { color: var(--muted); font-weight: 400; }

.division-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 30px 0 0;
  padding: 7px 2px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.division-head span:last-child { font-weight: 400; }

.question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.card-donate { border-style: dashed; }
.card-donate .card-votes:last-child { color: var(--accent); }

/* identification */

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
  margin: 18px 0;
}

.auth-btn { text-align: center; }

.auth-email { display: flex; gap: 10px; }

.auth-email input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
}
.auth-email input:hover { border-color: var(--ink); }

/* Cards are filed entries under a rule (a ledger), not boxes. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: transparent;
  border: none;
  border-top: 2px solid var(--ink);
  padding: 13px 2px 4px;
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-top-color: var(--accent);
}
.card:hover h3 { color: var(--accent); }

.card-no {
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--muted);
}

/* Fixed-width slot so an emoji aligns as a column, never as loose text. */
.t-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  flex-shrink: 0;
  line-height: 1;
  font-style: normal;
}

.card h3 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

/* center the icon on the first line of a (possibly wrapping) title */
.card h3 .t-emoji { height: 1.25em; font-size: 0.95em; }

.card-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
  flex-grow: 1;
}

.card-votes {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}

.leader {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-3px);
}

.top-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.top-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12ch;
}

.card-answered {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 6px;
  transform: rotate(4deg);
  background: var(--accent-soft);
}

/* ---------- question page ---------- */

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin: 18px 0 8px;
}
.back-link:hover { color: var(--accent); }

.q-head { margin-bottom: 8px; }

.q-head-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

/* the survey's specimen seal: icon in a filed cell, not floating in a headline */
.q-seal {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  background: var(--card);
  border: 1px solid var(--line);
}

.q-head-text { flex: 1; min-width: 0; }

.q-head h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 6px 0 4px;
}

.q-head-text .q-sub {
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

.q-rule { border: none; border-top: 3px double var(--ink); margin: 0; }

/* ballot */

/* A ballot is a ruled list, not a wall of boxes: each option is a row with a
   hairline under it; hover/selected wash with the accent tint. */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 26px;
  margin: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.option-btn {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 6px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.08s ease, padding-left 0.08s ease;
}

.option-grid.with-icons .option-btn {
  grid-template-columns: 16px 24px minmax(0, 1fr);
}

.opt-label { min-width: 0; }

.option-btn:hover {
  background: var(--accent-soft);
  padding-left: 12px;
}
.option-btn.selected { background: var(--accent-soft); }

.ballot-box {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
  position: relative;
}

.option-btn:hover .ballot-box { border-color: var(--accent); }

.option-btn.selected .ballot-box::after,
.ballot-box.checked::after {
  content: '✕';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.option-btn .opt-emoji {
  font-size: 1.15rem;
  line-height: 1;
  justify-self: center;
}

.ballot-note {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 14px;
}

.ballot-note.sealed {
  color: var(--accent);
  margin-top: -10px;
}

/* response line */

.your-vote {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}

.your-vote .kicker { color: var(--muted); }

/* the filed answer: a marked ballot line, underlined in accent — no box */
.answer-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent);
  padding: 0 2px 3px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* census supplement */

.demo-banner {
  background: var(--card);
  border: none;
  border-left: 4px solid var(--accent);
  margin: 0 0 14px;
}

.demo-banner .demo-head {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
  margin: 0;
}

.demo-banner .demo-body {
  padding: 12px 14px 14px;
}

.demo-banner p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
}

.demo-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* findings */

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 18px;
}

.filter-label {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
}

.results { position: relative; margin-top: 4px; }

/* A rubber stamp slapped at the top-right of the findings. A right-aligned
   static block (not absolute) so it never overlaps content at any width. */
.stamp {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 0 6px auto;
  transform: rotate(3deg);
  transform-origin: center right;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  color: var(--accent);
  border: 2px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  padding: 6px 11px;
  opacity: 0.82;
  pointer-events: none;
}

/* pull-quote style: one accent rule, no box */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  margin: 0 0 6px;
  font-size: 1rem;
}

/* flag (or letter-pair fallback) lives in a filed cell beside the finding */
.geo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--accent-soft);
  padding: 7px 8px;
  line-height: 1.2;
}

.callout-text { flex: 1; min-width: 0; }

.callout .mono-n,
.bar-n {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* bars */

.bars { display: grid; gap: 9px; margin: 4px 0; }

.bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr 110px;
  align-items: center;
  gap: 12px;
}

.bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  min-width: 0;
}

.bar-label .label-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border: 1px solid var(--ink);
}

.bar-track {
  display: block;
  background: var(--accent-soft);
  background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line) 3px 4px);
  border: 1px solid var(--line);
  height: 15px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-right: 1px solid var(--ink);
  transition: width 0.5s ease;
}

.bar-pct {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

/* map */

.map-section { margin: 4px 0 10px; }

/* the map floats on the sheet; the crop marks alone frame it */
.map-wrap {
  position: relative;
  background: var(--card);
  padding: 10px;
}

/* crop marks, like a proof sheet */
.map-wrap::before,
.map-wrap::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.map-wrap::before {
  top: -8px;
  left: -8px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.map-wrap::after {
  bottom: -8px;
  right: -8px;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.world-map { display: block; width: 100%; height: auto; }

.map-sphere { fill: transparent; stroke: var(--line); stroke-width: 1; }

.map-country {
  stroke: var(--map-stroke);
  stroke-width: 0.6;
  cursor: pointer;
}
.map-country:hover { stroke: var(--ink); stroke-width: 1; }

.hatch-bg { fill: var(--map-empty); }
.hatch-line { stroke: var(--map-hatch); }

.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(33, 29, 22, 0.25);
  padding: 10px 13px;
  font-size: 0.82rem;
  min-width: 160px;
  z-index: 5;
  display: none;
}

.map-tooltip h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.map-tooltip .tip-n {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.tip-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.9;
}

.tip-opt-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.tip-pct { font-weight: 600; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 12px 2px 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legend-item { display: flex; align-items: center; gap: 7px; }

.results-meta {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.9;
  margin: 14px 2px 20px;
}

.share-row { margin: 14px 0 2px; }

/* toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  border-left: 4px solid var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 12px 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1000;
}
.toast.show { opacity: 1; }

/* ---------- exhibits ---------- */
/* Physical evidence stays paper-coloured, even when the archive is dark. */

/* Exhibit + ballot side-by-side so the space beside the image isn't wasted. */
.ballot-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 6px;
}
.ballot-layout .exhibit { flex: 0 0 300px; margin: 0; }
.ballot-col { flex: 1; min-width: 0; }

.exhibit {
  margin: 16px 0 2px;
  max-width: 300px;
}

.exhibit-card {
  background: #f3ecd9;
  border: 1px solid var(--ink);
  padding: 12px;
}

.exhibit-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46vh;
  object-fit: contain;
}

@media (max-width: 700px) {
  .ballot-layout { flex-direction: column; gap: 6px; }
  .ballot-layout .exhibit { flex: none; max-width: 290px; }
}

.exhibit-caption {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--muted);
  margin: 9px 2px 0;
}

.end-matter {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 38px 0 6px;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar-row { grid-template-columns: 112px 1fr 92px; gap: 9px; }
  .bar-label { font-size: 0.86rem; gap: 6px; }
  .bar-label .t-emoji { display: none; } /* dot + text is enough at this width */
  .option-grid { grid-template-columns: 1fr 1fr; }
  .q-head-row { gap: 13px; }
  .q-seal { width: 52px; height: 52px; font-size: 25px; }
  .callout { gap: 11px; }
  .strapline { text-align: left; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
