/* Celeb Fact Check: site stylesheet (design 2026-10-26, hierarchy redesign 2026-11-10).
   One file, no build step. Everything it needs is on this host.

   Type: Bricolage Grotesque 800 (wordmark, headings, stamps, buttons) and
   Newsreader 400 (answers and body copy). Two woff2 files, 44 KB in all.
   Colours are CSS variables; dark mode follows the device setting.
   Reading pages (answers, celebrities, topics, A–Z) sit straight on the paper: no cards.
   Cards are for the home game only, and the home page's rules are unchanged by the redesign.
   Contents: tokens · base · layout (with room for ads) · header · footer ·
   stamp & pill · buttons · vote bars · home games · answer page ·
   celebrity page · quick answers · A–Z · search · 404 · motion. */

/* ---------- Tokens ---------- */
:root, :root[data-theme="light"] {
  --paper: #f6f1e6;        /* page background: warm paper */
  --surface: #fffdf8;      /* cards, inputs */
  --ink: #1c1f2a;          /* text */
  --muted: #5e6372;
  --rule: #e2dbc9;         /* hairlines */
  --rule-strong: #c9c0a8;
  --brand: #2443c4;        /* stamp-pad blue: links, primary button, focus */
  --brand-ink: #ffffff;    /* text on brand */
  --brand-soft: #e4e9ff;
  --yes: #157347;  --yes-bg: #dff2e5;
  --no: #c1281f;   --no-bg: #fbe3df;
  --maybe: #9a5a00; --maybe-bg: #fbe9c6;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 720px;
  --stamp-blend: multiply;  /* the answer page's stamp is inked onto the paper in light mode */
}
@media (prefers-color-scheme: dark) {
  :root {
    --stamp-blend: normal;
    --paper: #14161b;
    --surface: #1d2027;
    --ink: #ede7d9;
    --muted: #a7a398;
    --rule: #2e323c;
    --rule-strong: #434857;
    --brand: #98a9ff;
    --brand-ink: #10131c;
    --brand-soft: #242b47;
    --yes: #62cf8d;  --yes-bg: #15301f;
    --no: #ff8e83;   --no-bg: #3b1916;
    --maybe: #f1be5a; --maybe-bg: #35270c;
  }
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-800.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-400.woff2") format("woff2");
}
/* A manual switch (data-theme="dark" on <html>) for review pages and, later, a user setting.
   The site itself only follows the device. */
:root[data-theme="dark"] {
  --stamp-blend: normal;
  --paper: #14161b; --surface: #1d2027; --ink: #ede7d9; --muted: #a7a398; --rule: #2e323c; --rule-strong: #434857;
  --brand: #98a9ff; --brand-ink: #10131c; --brand-soft: #242b47;
  --yes: #62cf8d; --yes-bg: #15301f; --no: #ff8e83; --no-bg: #3b1916; --maybe: #f1be5a; --maybe-bg: #35270c;
}
:root[data-theme="dark"] body { background-image: radial-gradient(rgba(255, 255, 255, .035) .6px, transparent .7px); }
:root[data-theme="light"] { --stamp-blend: multiply; }
:root[data-theme="light"] body { background-image: radial-gradient(rgba(0, 0, 0, .035) .6px, transparent .7px); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.5 var(--font-body);
  /* a whisper of paper grain, no image file */
  background-image: radial-gradient(rgba(0, 0, 0, .035) .6px, transparent .7px);
  background-size: 5px 5px;
}
@media (prefers-color-scheme: dark) {
  body { background-image: radial-gradient(rgba(255, 255, 255, .035) .6px, transparent .7px); }
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 16px; }

h1, h2, h3, .display {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.015em; line-height: 1.1;
  text-wrap: balance; margin: 0;
}
h1 { font-size: clamp(1.9rem, 2.2vw + 1.3rem, 2.7rem); margin-bottom: 10px; }
h2 { font-size: 1.35rem; margin-bottom: 10px; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; }
.fine { color: var(--muted); font-size: .85rem; }
/* small labels: section headings, kickers, counts */
.label, h2.sub {
  font-family: var(--font-display); font-weight: 800; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
h2.sub { margin: 24px 0 8px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main { padding: 24px 0 40px; }
main.wrap { padding: 24px 16px 40px; }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px; margin: 0 0 20px;
}
@media (max-width: 420px) { .card { padding: 20px 16px; } }

/* Ads (from 2027): a bottom banner and, on wide screens, text ads beside the
   content. Nothing is rendered until the .ad-* elements exist, and neither
   slot sits above the verdict. */
.ad-bottom { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--rule); text-align: center; }
@media (min-width: 1180px) {
  .page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--wrap)) minmax(0, 1fr); column-gap: 24px; }
  .page > main { grid-column: 2; }
  .ad-side { grid-column: 3; max-width: 200px; margin-top: 24px; }
  .ad-side:first-child { grid-column: 1; justify-self: end; }
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 20px;
  min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
/* Wordmark: "Fact" wears a small stamp. */
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: .22em; white-space: nowrap;
}
.logo-fact {
  display: inline-block; color: var(--brand); border: .11em solid currentColor; border-radius: .22em;
  padding: 0 .22em; line-height: 1.15; transform: rotate(-4deg) translateY(-.04em);
  box-shadow: inset 0 0 0 .07em var(--paper), inset 0 0 0 .14em currentColor;
}
.logo:hover .logo-fact { transform: rotate(-7deg) translateY(-.06em); }
.logo-check { color: var(--ink); }
.site-nav ul { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }
/* "Play" is the one call to action in the nav: a small outlined pill */
.site-nav a.nav-play { color: var(--brand); border: 2px solid currentColor; border-radius: 999px; padding: 5px 12px; }
.site-nav a.nav-play:hover, .site-nav a.nav-play[aria-current="page"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
@media (max-width: 480px) {
  .site-header .wrap { gap: 6px 12px; }
  .site-nav ul { gap: 4px 10px; }
  .site-nav a { font-size: .72rem; letter-spacing: .04em; }
  .site-nav a.nav-play { padding: 4px 9px; }
  .site-nav .nav-hide-sm { display: none; }   /* "Celebrities" and Topics drop out on phones; Topics stays in the footer */
}

/* Dev site strip (js/alist.js sets .is-dev on dev. and localhost) */
.dev-banner { display: none; background: var(--maybe-bg); color: var(--ink); font-size: .85rem; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.dev-banner strong { font-family: var(--font-display); color: var(--no); font-weight: normal; }
.is-dev .dev-banner { display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; padding: 24px 0 36px; margin-top: 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.site-footer .logo { font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: inherit; }

/* About and Privacy */
.prose h2 { margin-top: 28px; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose code { font-size: .9em; }
.report-line { margin: 0 0 20px; }

/* ---------- The verdict stamp ---------- */
/* .stamp is the big one (answer page, game reveal). .pill is the small one
   (lists, search results). Both take .verdict-yes / -no / -maybe.
   The word is always there: colour only adds to it. */
.stamp {
  display: inline-block; position: relative;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 3.8rem); line-height: 1; letter-spacing: .06em;
  padding: .2em .5em .14em .56em;
  border: .11em solid currentColor; border-radius: .22em;
  box-shadow: inset 0 0 0 .08em var(--surface), inset 0 0 0 .15em currentColor;
  transform: rotate(-4deg);
  /* ink that didn't quite take at the edges */
  -webkit-mask-image: radial-gradient(ellipse at 55% 45%, #000 52%, rgba(0, 0, 0, .82) 100%);
          mask-image: radial-gradient(ellipse at 55% 45%, #000 52%, rgba(0, 0, 0, .82) 100%);
  margin: 10px 8px 16px;
}
.stamp-sm { font-size: 1.6rem; margin: 0; }
.verdict-yes { color: var(--yes); }
.verdict-no { color: var(--no); }
.verdict-maybe { color: var(--maybe); }
.stamp.verdict-yes { background: var(--yes-bg); }
.stamp.verdict-no { background: var(--no-bg); }
.stamp.verdict-maybe { background: var(--maybe-bg); }
.pill {
  flex: none; display: inline-block; min-width: 4.4em; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: .7rem; letter-spacing: .12em; line-height: 1;
  text-transform: uppercase; padding: 5px 7px 4px; border-radius: 5px; border: 1.5px solid currentColor;
  vertical-align: .15em;
}
.pill.verdict-yes { background: var(--yes-bg); }
.pill.verdict-no { background: var(--no-bg); }
.pill.verdict-maybe { background: var(--maybe-bg); }
.pill-quick { color: var(--muted); border-style: dashed; }

/* ---------- Buttons ---------- */
.vote-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  min-width: 108px; min-height: 54px; padding: 10px 18px;
  border: 2px solid currentColor; border-radius: 10px;
  background: var(--surface); cursor: pointer;
  transition: transform .08s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
/* A subtle tint of each verdict colour at rest; a little stronger on hover */
.btn-yes { color: var(--yes); background: var(--yes-bg); }
.btn-no { color: var(--no); background: var(--no-bg); }
.btn-maybe { color: var(--maybe); background: var(--maybe-bg); }
.btn-yes:hover { background: color-mix(in srgb, var(--yes) 22%, var(--yes-bg)); }
.btn-no:hover { background: color-mix(in srgb, var(--no) 22%, var(--no-bg)); }
.btn-maybe:hover { background: color-mix(in srgb, var(--maybe) 22%, var(--maybe-bg)); }
.btn[aria-pressed="true"] { color: var(--surface); }
.btn-yes[aria-pressed="true"] { background: var(--yes); }
.btn-no[aria-pressed="true"] { background: var(--no); }
.btn-maybe[aria-pressed="true"] { background: var(--maybe); }
.btn[aria-pressed="true"]::after { content: " \2713"; }
.btn-plain, a.btn-plain {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-ink); background: var(--brand); text-decoration: none;
  border: 0; border-radius: 10px; padding: 13px 24px; min-height: 50px; cursor: pointer;
  transition: transform .08s ease, filter .15s ease;
}
.btn-plain:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-plain:active { transform: translateY(1px); }
.btn-ghost, a.btn-ghost { background: transparent; color: var(--brand); border: 2px solid currentColor; }
.link-button { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px; }

/* ---------- Vote bars (percentages only) ---------- */
.bars { list-style: none; padding: 0; margin: 12px 0 0; }
.bar-row { display: grid; grid-template-columns: 5.2em 1fr 3.2em; gap: 10px; align-items: center; margin: 8px 0; }
.bar-label { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.bar-track { height: 16px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; width: 0; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.bar-yes { background: var(--yes); } .bar-no { background: var(--no); } .bar-maybe { background: var(--maybe); }
.bar-pct { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
/* the visitor's own choice */
.bar-row.is-mine .bar-label::after {
  content: "you"; display: inline-block; margin-left: 6px; padding: 2px 5px 1px; border-radius: 4px;
  font-size: .62rem; letter-spacing: .08em; background: var(--ink); color: var(--paper);
}
.bar-row.is-mine .bar-track { outline: 2px solid var(--ink); outline-offset: 1px; }
.bars-heading { margin: 20px 0 0; }

/* ---------- Home: the games ---------- */
.menu-button {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: none; border: 2px solid var(--ink); border-radius: 10px; color: var(--ink);
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2.5px; background: currentColor; border-radius: 2px; content: ""; }
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6.5px; }
.menu-icon::after { position: absolute; top: 6.5px; }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.menu { flex-basis: 100%; padding: 8px 0 12px; display: grid; gap: 16px; }
.menu[hidden] { display: none; }
/* order: game, filters, then search (rarely used) and links. The game form's parts are laid out as menu items. */
.menu #filters { display: contents; }
.menu .menu-games { order: 1; }
.menu .menu-row { order: 2; }
.menu .menu-search { order: 3; border-top: 1px solid var(--rule); padding-top: 14px; }
.menu nav { order: 4; }
.menu fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.menu legend { padding: 0; margin-bottom: 8px; }
/* game switch: two big tabs, the chosen one filled */
.menu .menu-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.menu-games label {
  display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer;
  min-height: 56px; padding: 10px 14px; border: 2px solid var(--brand); border-radius: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; color: var(--brand);
  transition: background-color .15s ease, color .15s ease;
}
.menu-games label:hover { background: var(--brand-soft); }
.menu-games label:has(input:checked) { background: var(--brand); color: var(--brand-ink); }
.menu-games label:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
.menu-games input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.menu-field { display: grid; gap: 6px; }
.menu-field[hidden] { display: none; }
.menu select, .menu-search input, .search-row input, .az-filter input {
  width: 100%; min-width: 0; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--rule-strong); border-radius: 10px; padding: 9px 12px; min-height: 44px;
}
.menu nav { border-top: 1px solid var(--rule); padding-top: 12px; }
.menu nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.menu nav a { font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

.game { text-align: center; padding: 42px 20px 32px; }
@media (min-width: 600px) { .game { padding: 44px 40px 48px; } }
.game[hidden] { display: none; }
.mode-line { margin: 0 0 6px; color: var(--brand); }
.mode-line[hidden] { display: none; }
/* The score is a small chip in the card's top corner, hidden until the first answer. */
.game { position: relative; }
.score {
  position: absolute; top: 12px; right: 12px; margin: 0;
  color: var(--muted); font-size: .8rem; line-height: 1.3;
  padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
}
.score:empty { display: none; }
.score strong { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: .9rem; }
.mode-line { padding: 0 64px; }
.game-question { font-size: clamp(1.75rem, 6.5vw, 3rem); margin: 6px auto 30px; max-width: 15em; }
.game .vote-buttons .btn { min-width: 120px; min-height: 64px; font-size: 1.2rem; flex: 1 1 100px; max-width: 180px; }
/* three in a row down to 320 px */
@media (max-width: 420px) {
  .vote-buttons { gap: 8px; }
  .vote-buttons .btn, .game .vote-buttons .btn { min-width: 0; flex: 1 1 80px; padding: 10px 6px; font-size: 1rem; letter-spacing: .06em; }
}

/* reveal */
.reveal { text-align: left; }
.reveal[hidden] { display: none; }
.reveal-result { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-align: center; margin: 0 0 4px; }
.reveal .stamp-wrap { text-align: center; }
.reveal .stamp { animation: stamp-in .34s cubic-bezier(.2, .9, .3, 1.25) both; }
.reveal .explanation { font-size: 1.1rem; max-width: 34em; margin: 0 auto 8px; text-align: center; }
.reveal-actions { display: flex; gap: 12px 20px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.share-status { text-align: center; margin: 10px 0 0; min-height: 1.4em; overflow-wrap: anywhere; }
@keyframes stamp-in {
  from { transform: rotate(-4deg) scale(2.1); opacity: 0; }
  55% { transform: rotate(-4deg) scale(.95); opacity: 1; }
  to { transform: rotate(-4deg) scale(1); opacity: 1; }
}
/* the card gives a little under the stamp */
.reveal.just-stamped { animation: thump .34s ease-out; }
@keyframes thump { 55% { transform: translateY(2px); } }

/* guess the generation */
.gen-photo { margin: 4px auto 14px; width: 180px; }
.gen-photo img { width: 180px; height: 270px; object-fit: cover; object-position: 50% 20%; border-radius: 12px; background: var(--rule); display: block; }
.gen-photo figcaption, .celeb-photo figcaption { color: var(--muted); font-size: .72rem; line-height: 1.3; margin-top: 6px; font-family: var(--font-body); }
.gen-photo figcaption a, .celeb-photo figcaption a { color: inherit; }
.gen-hint { color: var(--muted); margin: -18px 0 24px; }
.gen-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 440px; margin: 0 auto; }
.btn-gen { color: var(--brand); min-width: 0; line-height: 1.15; letter-spacing: .04em; text-transform: none; font-size: 1.1rem; padding: 12px 10px; }
.btn-gen:hover { background: var(--brand-soft); }
.btn-gen small { display: block; font-family: var(--font-body); font-size: .85rem; color: var(--muted); letter-spacing: 0; text-transform: none; margin-top: 2px; }
.gen-answer { font-size: 1.15rem; text-align: center; margin: 8px 0 0; }
.gen-answer strong { font-family: var(--font-display); font-weight: 800; }

/* ---------- Answer page: the answer sits on the paper, no card ----------
   Order: kicker, question, the stamp with its trust line, the answer, sources, the vote, related links,
   one play line. The page is the same for every visitor: nothing is hidden or blurred. */
.answer { padding-top: 8px; }
.kicker { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kicker a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.kicker .sep { color: var(--rule-strong); }
.answer-q { font-size: clamp(1.8rem, 5.5vw, 2.5rem); margin-bottom: 6px; }
/* verdict row: the stamp, and beside it (under it on phones) the checked line and Jev's second opinion */
.verdict { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; margin: 4px 0 10px; }
.answer .stamp {
  font-size: clamp(2.5rem, 8.5vw, 3.6rem); margin: 6px 10px 6px 4px;
  box-shadow: inset 0 0 0 .08em var(--paper), inset 0 0 0 .15em currentColor;   /* the ring shows paper, not a card */
  mix-blend-mode: var(--stamp-blend);
}
.verdict-meta { flex: 1 1 220px; min-width: 0; }
.verdict-meta p { margin: 0 0 4px; }
.second-opinion { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.second-opinion .pill { font-size: .62rem; min-width: 0; }
.second-opinion .label { font-size: .68rem; }
/* The answer text: the first paragraph is the biggest text after the question; detail paragraphs are body size */
.answer-text { max-width: 36em; }
.answer-text > p { margin: 0 0 .9em; }
.answer-text > p:first-child { font-size: 1.3rem; line-height: 1.4; }
.answer-text.short > p:first-child { font-size: 1.55rem; line-height: 1.3; }
.sources-block { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.sources-block h2.sub { margin: 0 0 8px; }
.sources { padding-left: 1.3em; margin: 0; font-size: .95rem; }
.sources li { margin: 4px 0; }
.sources li::marker { color: var(--muted); font-family: var(--font-display); font-weight: 800; font-size: .8rem; }
/* The vote, after the sources, in a dashed box */
.audience { margin-top: 22px; padding: 18px 20px 16px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); }
.audience h2.sub { margin: 0 0 12px; }
.audience .vote-buttons { justify-content: flex-start; align-items: center; }
.audience .btn { min-width: 96px; min-height: 48px; font-size: .95rem; }
.audience .fine { margin: 10px 0 0; }
.audience .results-line { margin: 12px 0 0; font-size: 1rem; color: var(--ink); }
.audience a.btn-next { margin-left: auto; align-self: center; }
.audience a.btn-next[hidden] { display: none; }
@media (max-width: 660px) { .audience a.btn-next { flex: 1 1 100%; margin-left: 0; text-align: center; } }
@media (max-width: 420px) { .audience { padding: 16px 14px 14px; } .audience .btn { min-width: 0; flex: 1 1 70px; padding: 10px 6px; letter-spacing: .05em; } }
.checked { margin: 14px 0 0; }
/* Related: one compact section, two columns from 600 px, a few links each plus an "All N" link */
.related { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 22px; }
@media (min-width: 600px) { .related { grid-template-columns: 1fr 1fr; gap: 28px; } }
.related h2.sub { margin: 0 0 8px; }
.qlist { list-style: none; padding: 0; margin: 0; }
.qlist li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.35; }
.qlist li:first-child { border-top: 0; padding-top: 0; }
.qlist a { color: var(--ink); }
.qlist a:hover { color: var(--brand); }
.qlist .more { padding-top: 8px; }
.qlist .more a { color: var(--brand); font-family: var(--font-display); font-weight: 800; font-size: .85rem; letter-spacing: .02em; text-decoration: none; }
.qlist .more a:hover { text-decoration: underline; }
/* one play line at the end of the page, not a strip of its own */
.play-line { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.play-line p { margin: 0; color: var(--muted); font-size: 1rem; }
.play-line .btn-plain { padding: 10px 18px; min-height: 44px; font-size: .9rem; }

/* ---------- Celebrity page ---------- */
.celeb-head { display: flex; gap: 22px; align-items: flex-start; margin: 4px 0 26px; }
.celeb-head h1 { margin: 2px 0 6px; }
.celeb-photo { margin: 0; flex: 0 0 150px; }
.celeb-photo img { width: 150px; height: 225px; object-fit: cover; object-position: 50% 20%; border-radius: 12px; background: var(--rule); display: block; }
/* phones: a small photo beside the name, with the credit on its own line under both */
@media (max-width: 520px) {
  .celeb-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 16px; }
  .celeb-photo { display: contents; }
  .celeb-photo img { width: 96px; height: 144px; border-radius: 10px; }
  .celeb-photo figcaption { grid-column: 1 / -1; margin-top: 0; }
  .celeb-head > div { grid-row: 1; grid-column: 2; }
  .celeb-head h1 { margin-top: 0; font-size: 1.7rem; }
}
/* the lede is the Wikidata description ("Canadian actor and musician, born 1964."), in ink, not muted */
.celeb-head .lede, .lede.celeb-lede { margin: 0 0 8px; color: var(--ink); font-size: 1.15rem; }
.celeb-facts { margin: 0; }
.celeb-tag { margin: 0 0 8px; }
/* Sections on the paper (celebrity, topic and topics pages): a small heading over a hairline */
.celeb-section { margin: 0 0 26px; }
.celeb-section > h2.sub { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.celeb-section > h2.sub .pill { vertical-align: .15em; margin-right: 4px; }
.celeb-section > h2.sub .count { font-size: .9rem; letter-spacing: 0; font-weight: 400; font-family: var(--font-body); text-transform: none; }
.celeb-section .qlist li { font-size: 1.05rem; padding: 9px 0; }
.celeb-section .qlist li:first-child { padding-top: 9px; border-top: 0; }
.celeb-section > .az-list, .celeb-section > .topic-list { padding-top: 8px; }
.celeb-section .search-form { padding-top: 12px; }

/* ---------- Quick answers: question, answer, one source line ---------- */
.quick { padding: 14px 0; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.quick:first-of-type { border-top: 0; }
.quick h3 { margin-bottom: 4px; }
.quick p { margin: 0 0 4px; }
.quick .short { font-size: 1.3rem; }
.quick .fine { margin: 0; }

/* ---------- Celebrities A–Z ---------- */
.az-filter { display: block; margin: 0 0 14px; }
.az-filter input { margin-top: 6px; }
.az-letters-nav { position: sticky; top: 0; background: var(--paper); padding: 8px 0; z-index: 5; }
.az-letters { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.az-letters a, .az-letters span {
  display: inline-block; min-width: 2em; padding: 5px 0; text-align: center; border-radius: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule);
}
.az-letters a:hover { border-color: var(--brand); color: var(--brand); }
.az-letters span { color: var(--muted); opacity: .45; }
.az-group { scroll-margin-top: 60px; padding-top: 18px; }
.az-group h2 { font-size: 2rem; color: var(--brand); margin-bottom: 4px; }
.az-list { list-style: none; padding: 0; margin: 0; columns: 2 200px; column-gap: 24px; }
.az-list li { padding: 5px 0; break-inside: avoid; }
.az-list a { color: var(--ink); }
.az-list .count { font-family: var(--font-display); font-weight: 800; color: var(--muted); font-size: .72rem; margin-left: 4px; vertical-align: .25em; }
.az-none { color: var(--muted); }
.az-letters-nav[hidden], .az-filter[hidden] { display: none; }

/* ---------- Search ---------- */
.search-form label { display: block; margin-bottom: 8px; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-row input { flex: 1 1 200px; font-size: 1.1rem; }
.search-status { color: var(--muted); font-size: .95rem; margin: 14px 0 6px; min-height: 1.4em; }
.search-results li a { overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 40px 0 20px; }
.notfound .stamp { color: var(--muted); background: var(--surface); font-size: clamp(2rem, 8vw, 3rem); }

/* ---------- Small shared rules ---------- */
.card > h2.sub:first-child { margin-top: 0; }
.bars-heading { text-align: center; }
.home-lede { text-align: center; }
.notfound-search { max-width: 480px; margin: 0 auto 24px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .btn:hover, .btn:active, .btn-plain:hover { transform: none; }
}

/* Topic pages (/topics/<slug>/): every answer on one topic, grouped by verdict. */
.topic-list { list-style: none; padding: 0; margin: 0; }
.topic-list li { padding: 10px 0; border-top: 1px solid var(--rule); }
.topic-list li:first-child { border-top: 0; padding-top: 0; }
.topic-list a { font-weight: 700; }
.topic-list .snip { display: block; color: var(--muted); }
.footer-follow { margin-top: 4px; }
