/* ============================================================================
   Best By Users — editorial answers theme
   Clean, content-first (minimal / Swiss), light + dark from one token set.
   Signature: the consensus meter on every pick (.rn-data, width from --pct).
   Fonts are self-hosted: Schibsted Grotesk (headings), Atkinson Hyperlegible
   Next (body — built for legibility; many readers are non-native speakers).
   ui-ux-pro-max rules: WCAG AA text contrast in BOTH themes, visible focus,
   44px targets, no emoji icons (inline SVG), reduced motion, no h-scroll.
   Never hardcode a colour outside the token blocks: a light-only value turns
   into invisible "hidden text" in dark mode.
   ========================================================================== */

@font-face { font-family:"Schibsted Grotesk"; src:url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight:400 900; font-style:normal; font-display:swap; }
@font-face { font-family:"Atkinson Hyperlegible Next"; src:url("/assets/fonts/atkinson-next.woff2") format("woff2"); font-weight:200 800; font-style:normal; font-display:swap; }
@font-face { font-family:"Atkinson Hyperlegible Next"; src:url("/assets/fonts/atkinson-next-italic.woff2") format("woff2"); font-weight:200 800; font-style:italic; font-display:swap; }

:root {
  --bg:#f3f5f5; --surface:#ffffff; --surface-2:#f5f7f7; --surface-3:#e9eeee;
  --border:#dfe5e5; --border-strong:#c5cfcf; --field-border:#7f8c8e;
  --text:#141c1f; --text-2:#435258; --text-3:#56646a;
  --accent:#0f766e; --accent-2:#115e59; --accent-soft:#e3f1ef; --on-accent:#ffffff;
  --data:#0f766e; --track:#e2e9e9;
  --ok:#166534; --ok-soft:#e6f4ea; --err:#b91c1c; --err-soft:#fbeaea; --warn:#92400e; --warn-soft:#fbf1dc;
  --foot-bg:#11191c; --foot-fg:#d3dcdf; --foot-fg-2:#9eacb1; --foot-fg-strong:#ffffff;
  --scrim:rgba(6,10,12,.92); --scrim-fg:#ffffff; --scrim-btn:rgba(255,255,255,.14); --scrim-btn-hover:rgba(255,255,255,.26);
  --avatar-fg:#ffffff;
  --shadow-sm:0 1px 2px rgba(16,28,32,.05);
  --shadow:0 1px 2px rgba(16,28,32,.04), 0 8px 24px rgba(16,28,32,.07);
  --shadow-lg:0 2px 8px rgba(16,28,32,.06), 0 18px 44px rgba(16,28,32,.11);
  --r-xs:6px; --r-sm:8px; --r:12px; --r-lg:16px; --pill:999px;
  --font-display:"Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:"Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head:var(--font-display); --font-title:var(--font-display); /* legacy aliases used inline */
  --measure:1180px; --read:72ch;
  --ease:cubic-bezier(.2,.6,.2,1); --dur:.18s;
  color-scheme:light;
}
/* dark palette: once for the OS setting, once for the manual toggle (which wins either way) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0b1113; --surface:#121a1d; --surface-2:#172124; --surface-3:#1d292d;
    --border:#243136; --border-strong:#33444b; --field-border:#5b6f76;
    --text:#e5eef0; --text-2:#b0bec3; --text-3:#94a3a9;
    --accent:#2dd4bf; --accent-2:#5eead4; --accent-soft:#0f2e2b; --on-accent:#04201d;
    --data:#2dd4bf; --track:#26363b;
    --ok:#4ade80; --ok-soft:#0f2a1a; --err:#f87171; --err-soft:#331516; --warn:#fbbf24; --warn-soft:#302209;
    --foot-bg:#070b0d; --foot-fg:#cdd7da; --foot-fg-2:#93a2a8; --foot-fg-strong:#ffffff;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4);
    --shadow:0 1px 3px rgba(0,0,0,.4), 0 10px 26px rgba(0,0,0,.45);
    --shadow-lg:0 6px 14px rgba(0,0,0,.5), 0 24px 56px rgba(0,0,0,.55);
    color-scheme:dark;
  }
}
:root[data-theme="dark"] {
  --bg:#0b1113; --surface:#121a1d; --surface-2:#172124; --surface-3:#1d292d;
  --border:#243136; --border-strong:#33444b; --field-border:#5b6f76;
  --text:#e5eef0; --text-2:#b0bec3; --text-3:#94a3a9;
  --accent:#2dd4bf; --accent-2:#5eead4; --accent-soft:#0f2e2b; --on-accent:#04201d;
  --data:#2dd4bf; --track:#26363b;
  --ok:#4ade80; --ok-soft:#0f2a1a; --err:#f87171; --err-soft:#331516; --warn:#fbbf24; --warn-soft:#302209;
  --foot-bg:#070b0d; --foot-fg:#cdd7da; --foot-fg-2:#93a2a8; --foot-fg-strong:#ffffff;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow:0 1px 3px rgba(0,0,0,.4), 0 10px 26px rgba(0,0,0,.45);
  --shadow-lg:0 6px 14px rgba(0,0,0,.5), 0 24px 56px rgba(0,0,0,.55);
  color-scheme:dark;
}
:root[data-theme="light"] { color-scheme:light; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-padding-top:64px; } /* in-page jumps clear the sticky nav */
body { margin:0; min-height:100vh; display:flex; flex-direction:column; background:var(--bg); color:var(--text); font-family:var(--font-body); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
body > main { flex:1 0 auto; width:100%; } /* short pages: the footer stays at the bottom (auto margins switch off stretch) */
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
h1, h2, h3, h4 { text-wrap:balance; }
::selection { background:color-mix(in srgb, var(--accent) 24%, transparent); }
.ico { width:1em; height:1em; flex:none; vertical-align:-.125em; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- shells (one gutter per breakpoint, everywhere) ---------- */
.mast-inner { max-width:var(--measure); margin:0 auto; padding:0 24px; }
.wrap { max-width:var(--measure); margin:28px auto 80px; padding:0 24px; }
@media (max-width:600px) { .mast-inner, .wrap { padding:0 16px; } .wrap { margin-top:18px; } }

/* ---------- header ---------- */
.site-header { background:var(--surface); border-bottom:1px solid var(--border); }
.site-header .mast-inner { display:flex; align-items:center; gap:16px; min-height:68px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--text); flex:none; }
.brand .mark { width:36px; height:36px; border-radius:10px; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; flex:none; }
.brand .mark svg { display:block; width:22px; height:22px; }
.brand .brandname { font-family:var(--font-display); font-weight:800; font-size:22px; letter-spacing:-.025em; line-height:1; white-space:nowrap; }
.header-tag { margin-left:auto; color:var(--text-3); font-size:13.5px; }
.theme-toggle { margin-left:12px; width:44px; height:44px; border-radius:10px; border:1px solid var(--border); background:var(--surface-2); color:var(--text-2); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex:none; transition:background var(--dur) var(--ease), color var(--dur) var(--ease); }
.theme-toggle:hover { background:var(--surface-3); color:var(--text); }
.theme-toggle svg { width:19px; height:19px; }
.theme-toggle .ico-sun { display:none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display:block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display:none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display:block; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display:none; }
}

.mainnav { background:var(--surface); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:30; }
.mainnav .mast-inner { display:flex; align-items:stretch; gap:2px; overflow-x:auto; scrollbar-width:none; }
.mainnav .mast-inner::-webkit-scrollbar { display:none; }
.mainnav a { flex:none; white-space:nowrap; display:inline-flex; align-items:center; height:48px; padding:0 14px; color:var(--text-2); font-weight:600; font-size:15px; transition:color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.mainnav a:hover { color:var(--text); }
.mainnav a.on { color:var(--accent); box-shadow:inset 0 -2px 0 var(--accent); }
.mainnav a:focus-visible { outline-offset:-3px; }
.mainnav .nav-auth { margin-left:auto; }

@media (max-width:640px) {
  .site-header .mast-inner { min-height:60px; gap:10px; }
  .brand .brandname { font-size:20px; }
  .header-tag { display:none; }
  .theme-toggle { margin-left:auto; }
  .mainnav a { height:46px; padding:0 12px; font-size:14.5px; }
}

/* ---------- footer ---------- */
.sitefoot { background:var(--foot-bg); color:var(--foot-fg-2); font-size:14px; margin-top:0; border-top:1px solid var(--border); } /* main's bottom margin no longer collapses into it */
.sitefoot .mast-inner { padding-top:32px; padding-bottom:40px; }
.foot-links { display:flex; gap:8px 22px; flex-wrap:wrap; margin-bottom:14px; }
.foot-links a { color:var(--foot-fg); font-weight:600; font-size:14px; }
.foot-links a:hover { color:var(--foot-fg-strong); }
.foot-copy { color:var(--foot-fg-2); font-size:13px; }

/* ---------- section headings ---------- */
.results-head, .block-head { font-family:var(--font-display); font-weight:750; font-size:23px; line-height:1.25; letter-spacing:-.015em; color:var(--text); margin:40px 0 14px; }
.block-head { font-size:19px; margin:0 0 16px; }
h1.block-head { font-size:28px; letter-spacing:-.02em; }
.count a { color:var(--accent); font-weight:600; }
.widget h2, .widget h4 { margin:0 0 14px; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); }
.rh-n { display:inline-block; margin-left:8px; padding:1px 9px; border-radius:var(--pill); background:var(--surface-3); color:var(--text-2); font-family:var(--font-body); font-size:13px; font-weight:700; letter-spacing:0; vertical-align:3px; }

.hint { color:var(--text-3); font-size:13px; }
code { background:var(--surface-3); padding:1px 6px; border-radius:5px; font-size:.88em; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
.empty { color:var(--text-2); text-align:center; padding:60px 20px; font-size:16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); }
.empty a { color:var(--accent); font-weight:600; }

/* ---------- search ---------- */
.search { margin-bottom:24px; }
.search input { -webkit-appearance:none; appearance:none; width:100%; height:50px; background:var(--surface); color:var(--text); border:1px solid var(--field-border); border-radius:var(--r); padding:0 18px; font:inherit; font-size:16px; transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.search input::placeholder { color:var(--text-3); }
.search input:focus { outline:2px solid transparent; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.count { color:var(--text-3); font-size:13.5px; margin:0 0 16px; }

/* ---------- layout ---------- */
.layout { display:grid; grid-template-columns:minmax(0,1fr) 316px; gap:40px; align-items:start; }
.layout .main { min-width:0; }
.sidebar { display:flex; flex-direction:column; gap:20px; }
@media (max-width:1000px) { .layout { grid-template-columns:minmax(0,1fr); gap:28px; } }
.block { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:22px 24px; margin-bottom:24px; }
.block .block-head { margin-top:0; }

/* ---------- featured + post rows ---------- */
.featured { display:grid; grid-template-columns:1.2fr 1fr; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; margin-bottom:28px; transition:box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.featured:hover { box-shadow:var(--shadow); border-color:var(--border-strong); }
.featured .thumb { border-radius:0; aspect-ratio:auto; min-height:300px; align-self:stretch; }
.featured .thumb img { object-fit:contain; background:var(--surface-3); } /* covers carry the AI-drawn headline: never crop it */
.featured .thumb.has-photo img { object-fit:cover; } /* a text-free photo can fill the frame */
.featured .pbody { padding:28px 32px; align-self:center; }
.featured .ptitle { font-size:30px; line-height:1.15; letter-spacing:-.025em; font-weight:800; }
@media (max-width:760px) { .featured { grid-template-columns:1fr; } .featured .thumb { min-height:0; aspect-ratio:3/2; } .featured .pbody { padding:20px; } .featured .ptitle { font-size:24px; } }

.postlist { display:flex; flex-direction:column; }
.post { display:grid; grid-template-columns:220px minmax(0,1fr); gap:20px; padding:20px 0; border-bottom:1px solid var(--border); }
.post:first-child { padding-top:4px; }
.post:last-child { border-bottom:0; padding-bottom:4px; }
.thumb { display:block; position:relative; aspect-ratio:3/2; overflow:hidden; background:var(--surface-3); border-radius:var(--r); }
.thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s var(--ease); }
.post:hover .thumb img, .featured:hover .thumb img { transform:scale(1.03); }
.thumb.placeholder { display:grid; place-items:center; background:var(--accent-soft); }
.thumb.placeholder span { font-family:var(--font-display); font-size:38px; font-weight:800; color:var(--accent); }
.pbody { display:flex; flex-direction:column; gap:8px; min-width:0; }
.ptags { display:flex; gap:10px; flex-wrap:wrap; }
.ptags span { font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); }
.ptitle { font-family:var(--font-display); font-weight:750; font-size:20px; line-height:1.25; letter-spacing:-.015em; margin:0; color:var(--text); }
.ptitle a { color:inherit; }
.post:hover .ptitle, .featured:hover .ptitle, .ptitle a:hover { color:var(--accent); }
.pexcerpt { color:var(--text-2); font-size:15px; line-height:1.55; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pcat { margin-bottom:6px; }
.pmeta { margin-top:auto; padding-top:4px; color:var(--text-3); font-size:13px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pmeta .pm-replies, .thread-meta .tm-replies { display:inline-flex; align-items:center; gap:5px; font-weight:600; color:var(--text-2); }
.dot-sep { width:3px; height:3px; border-radius:50%; background:currentColor; opacity:.55; flex:none; }
@media (max-width:560px) { .post { grid-template-columns:1fr; gap:12px; } }

/* ---------- pagination ---------- */
.pager { display:flex; align-items:center; justify-content:center; gap:10px; margin:28px 0 4px; }
.pager a, .pager span.cur { min-width:44px; height:44px; padding:0 16px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:var(--pill); background:var(--surface); color:var(--text); font-size:14px; font-weight:700; transition:background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.pager a:hover { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
.pager span.cur { color:var(--text-3); font-weight:500; }
.pager .disabled { color:var(--text-3); background:transparent; cursor:default; pointer-events:none; }

/* ---------- article ---------- */
.arthead { margin:0 0 22px; }
.kicker { font-size:12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); margin-bottom:12px; }
.crumbs { font-size:13px; color:var(--text-3); margin-bottom:18px; line-height:1.5; }
.crumbs a { color:var(--text-2); font-weight:600; }
.crumbs a:hover { color:var(--accent); }
.crumbs > * + *::before { content:"/"; margin:0 9px; color:var(--border-strong); font-weight:400; }
.crumbs .cur { color:var(--text-3); font-weight:500; }
.headline { font-family:var(--font-display); font-weight:800; font-size:clamp(30px, 4.4vw, 46px); line-height:1.08; letter-spacing:-.03em; margin:0 0 14px; color:var(--text); }
.dek { font-size:16px; line-height:1.5; color:var(--text-2); margin:0 0 20px; max-width:var(--read); }
.dek-k { margin-right:8px; font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); }
.cat-badge { display:inline-flex; align-items:center; background:var(--accent-soft); color:var(--accent); font-weight:700; font-size:12px; letter-spacing:.05em; text-transform:uppercase; padding:4px 10px; border-radius:var(--pill); transition:background var(--dur) var(--ease), color var(--dur) var(--ease); }
.cat-badge:hover { background:var(--accent); color:var(--on-accent); }
.thread-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:var(--text-3); font-size:13.5px; }
.answer-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:24px 0 18px; }
.ans-badge { display:inline-flex; align-items:center; gap:6px; background:var(--ok-soft); color:var(--ok); font-weight:700; font-size:13px; padding:4px 11px; border-radius:var(--pill); white-space:nowrap; }
.ans-by { font-size:13.5px; color:var(--text-3); }
.ans-by a { color:var(--text-2); font-weight:600; }
.ans-by a:hover { color:var(--accent); }
.byline { display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:var(--text-3); font-size:13.5px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:12px 0; }
.byline .adminbar { margin-left:auto; }
.shortlink { display:inline-flex; align-items:center; gap:5px; min-height:24px; background:none; border:0; padding:0; margin:0; font:inherit; font-size:13.5px; font-weight:600; color:var(--text-2); cursor:pointer; }
.shortlink:hover { color:var(--accent); }
.shortlink.copied::after { content:" · copied"; color:var(--ok); font-weight:600; }
.post-full { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:36px 44px 40px; }
@media (max-width:760px) { .post-full { padding:24px 20px 28px; border-radius:var(--r); } }
@media (max-width:420px) { .post-full { padding:20px 16px 24px; } }

.cover { margin:24px 0; border-radius:var(--r); overflow:hidden; background:var(--surface-3); }
.cover img { width:100%; height:auto; max-height:min(64vh, 620px); object-fit:contain; } /* a square cover can no longer push the answer below the fold */

/* ---------- prose ---------- */
.prose { font-size:18px; line-height:1.75; color:var(--text); }
.prose p { margin:0 0 20px; }
.prose a:not([class]) { color:var(--accent); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.prose h2:not(.results-head), .prose h3 { font-family:var(--font-display); font-weight:750; font-size:23px; line-height:1.25; letter-spacing:-.015em; margin:36px 0 12px; }
.prose h3 { font-size:19px; }
.prose .li { position:relative; margin:8px 0 8px 22px; }
.prose .li::before { content:""; position:absolute; left:-17px; top:.72em; width:6px; height:6px; border-radius:50%; background:var(--accent); }
.prose img.hero, .hero { width:100%; height:auto; border-radius:var(--r); margin:24px 0; background:var(--surface-3); }
.lead { font-size:21px; line-height:1.6; color:var(--text); margin:24px 0; }
.conclusion { font-size:17px; line-height:1.7; color:var(--text); background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r); padding:16px 20px; margin:12px 0 28px; }

/* ---------- the rundown: ranked picks with the consensus meter ---------- */
.rundown { margin:8px 0 28px; padding:0; list-style:none; counter-reset:rd; }
.rundown li { position:relative; padding:16px 0 16px 54px; border-bottom:1px solid var(--border); line-height:1.55; }
.rundown li:last-child { border-bottom:0; }
.rundown li::before { counter-increment:rd; content:counter(rd); position:absolute; left:0; top:14px; width:36px; height:36px; border-radius:10px; background:var(--accent-soft); color:var(--accent); font-family:var(--font-display); font-weight:800; font-size:16px; display:flex; align-items:center; justify-content:center; font-variant-numeric:tabular-nums; }
.rundown li:first-child::before { background:var(--accent); color:var(--on-accent); }
.rundown .rn-name { font-family:var(--font-display); font-weight:750; font-size:18px; letter-spacing:-.01em; color:var(--text); margin-right:8px; }
.rundown .rn-note { display:block; margin-top:2px; color:var(--text-2); }
.rn-price { display:inline-block; padding:1px 8px; border-radius:var(--pill); border:1px solid var(--border); background:var(--surface-2); color:var(--text); font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; vertical-align:2px; }
.rn-data { display:flex; align-items:center; gap:10px; margin-top:10px; font-size:13.5px; line-height:1.4; color:var(--text-2); }
.rn-data[style]::before { content:""; flex:0 0 clamp(72px, 24%, 170px); height:6px; border-radius:var(--pill); background:linear-gradient(90deg, var(--data) var(--pct, 0%), var(--track) var(--pct, 0%)); }
.rn-data b { color:var(--text); font-weight:700; font-variant-numeric:tabular-nums; }
.cdata-sum { margin:0 0 16px; padding:12px 16px; border-radius:var(--r); background:var(--surface-2); border:1px solid var(--border); color:var(--text-2); font-size:15px; line-height:1.55; }
.cdata-sum strong { color:var(--text); font-weight:700; font-variant-numeric:tabular-nums; }

/* ---------- evidence-backed sections (warnings / tips / disagree / who / missing) ---------- */
.asec { margin:36px 0 8px; }
.asec-list { list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.asec-list li { position:relative; padding:12px 16px 12px 40px; border:1px solid var(--border); border-radius:var(--r); background:var(--surface); line-height:1.55; font-size:16.5px; }
.asec-list li::before { content:""; position:absolute; left:16px; top:20px; width:10px; height:10px; border-radius:3px; background:var(--text-3); }
.asec[data-type="warnings"] .asec-list li::before { background:var(--err); }
.asec[data-type="tips"] .asec-list li::before { background:var(--ok); }
.asec[data-type="disagree"] .asec-list li::before { background:var(--warn); border-radius:1px; transform:rotate(45deg) scale(.9); }
.asec[data-type="missing"] .asec-list li::before { background:transparent; box-shadow:inset 0 0 0 2px var(--accent); }
.asec-n { display:inline-block; margin-left:6px; font-size:13px; font-weight:700; color:var(--text-3); white-space:nowrap; }

/* ---------- community answers ---------- */
.voices-intro { color:var(--text-3); font-size:14px; margin:0 0 14px; }
.voices { display:flex; flex-direction:column; gap:12px; margin-bottom:28px; }
.voice { display:flex; gap:12px; padding:16px 18px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); }
.voice-av { flex:0 0 34px; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:var(--avatar-fg); }
.voice-main { flex:1 1 auto; min-width:0; }
.voice-head { font-size:13px; margin-bottom:4px; }
.voice-meta { color:var(--text-3); }
.voice-b { font-size:15.5px; line-height:1.62; color:var(--text); overflow-wrap:anywhere; }
.voice-b p { margin:0 0 8px; }
.voice-b p:last-child { margin-bottom:0; }
.voice-b ul, .voice-b ol { margin:6px 0; padding-left:20px; }
.voice-b { counter-reset:v; }
.voice-b ol:has(> li:only-child) { list-style:none; padding-left:0; counter-increment:v; }
.voice-b ol:has(> li:only-child) > li::before { content:counter(v) ". "; }
.voice-b blockquote { margin:6px 0; padding-left:12px; border-left:3px solid var(--border-strong); color:var(--text-2); }
.voice-b code { font-size:13px; }
.voice-b a { color:var(--accent); }
.voice-media { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.voice-media a { display:block; line-height:0; cursor:zoom-in; }
.voice-media img { max-width:min(100%, 460px); max-height:400px; border-radius:var(--r); }

/* related media (moved here from an inline <style>): never wider than the screen */
.related-media { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap:8px; margin:6px 0 4px; }
.related-media a { display:block; line-height:0; cursor:zoom-in; }
.related-media img { width:100%; height:160px; object-fit:cover; border-radius:var(--r); background:var(--surface-3); }
.related-media.big { grid-template-columns:repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.related-media.big img { height:auto; aspect-ratio:auto 4/3; max-height:min(62vh, 540px); object-fit:contain; background:var(--surface-3); } /* a box before it loads */
/* lightbox: a dark scrim in both themes, on purpose */
.rm-lb { position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; background:var(--scrim); display:none; align-items:center; justify-content:center; z-index:9999; }
.rm-lb[open] { display:flex; }
.rm-lb::backdrop { background:transparent; }
.rm-lb img { max-width:94vw; max-height:92vh; object-fit:contain; border-radius:var(--r-sm); }
.rm-lb button { position:absolute; background:var(--scrim-btn); color:var(--scrim-fg); border:0; cursor:pointer; line-height:1; width:52px; height:52px; border-radius:50%; font-size:30px; }
.rm-lb button:hover { background:var(--scrim-btn-hover); }
.rm-lb .rm-lb-close { top:14px; right:14px; }
.rm-lb .rm-lb-prev { left:14px; top:50%; transform:translateY(-50%); font-size:38px; }
.rm-lb .rm-lb-next { right:14px; top:50%; transform:translateY(-50%); font-size:38px; }

/* ---------- people also asked ---------- */
.paa { margin:8px 0 28px; padding:0; list-style:none; }
.paa li { border-bottom:1px solid var(--border); }
.paa li:last-child { border-bottom:0; }
.paa a { display:flex; gap:10px; padding:13px 2px; color:var(--text); font-weight:650; font-size:16px; line-height:1.4; transition:color var(--dur) var(--ease); }
.paa a::before { content:"→"; color:var(--accent); flex:none; }
.paa a:hover { color:var(--accent); }

/* ---------- faq ---------- */
.faq { border-top:1px solid var(--border); }
.faqitem { padding:18px 0; border-bottom:1px solid var(--border); }
.faqq { font-family:var(--font-display); font-weight:750; font-size:18px; letter-spacing:-.01em; line-height:1.35; margin:0 0 6px; color:var(--text); }
.faqa { color:var(--text-2); font-size:16px; line-height:1.65; }

/* ---------- tags + chips ---------- */
.tags { display:flex; gap:8px; flex-wrap:wrap; margin:28px 0 4px; }
.tag, .tagcloud a, .chip { display:inline-flex; align-items:center; min-height:34px; padding:5px 13px; border-radius:var(--pill); background:var(--surface-2); border:1px solid var(--border); color:var(--text-2); font-size:13.5px; font-weight:600; transition:background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.tag:hover, .tagcloud a:hover, .chip:hover { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
.tagcloud, .chips { display:flex; flex-wrap:wrap; gap:8px; }
.empty .chips { justify-content:center; margin-top:14px; }
.block .empty { border:0; padding:40px 0; }
.tagcloud.biglist { gap:10px; }
.tagcloud.biglist a { font-size:15px; padding:8px 15px; }
.tagcloud a .tc-n { margin-left:7px; padding-left:7px; border-left:1px solid var(--border-strong); color:var(--text-3); font-size:12px; }
.tagcloud a:hover .tc-n { color:var(--accent); }

/* ---------- sidebar widgets ---------- */
.widget { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:18px 20px; }
.wlist { display:flex; flex-direction:column; }
.wlist a { display:block; padding:11px 0; border-bottom:1px solid var(--border); color:var(--text); font-size:14.5px; line-height:1.4; font-weight:650; transition:color var(--dur) var(--ease); }
.wlist a:first-child { padding-top:0; }
.wlist a:last-child { border-bottom:0; padding-bottom:0; }
.wlist a:hover { color:var(--accent); }
.wlist a .n { color:var(--accent); font-family:var(--font-display); font-weight:800; margin-right:10px; font-variant-numeric:tabular-nums; }
.pop a { display:grid; grid-template-columns:72px 1fr; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid var(--border); }
.pop a:first-child { padding-top:0; }
.pop a:last-child { border-bottom:0; padding-bottom:0; }
.pop .pthumb { width:72px; height:48px; border-radius:var(--r-xs); object-fit:cover; background:var(--surface-3); }
.pop .ptx { display:flex; flex-direction:column; gap:3px; min-width:0; }
.pop .pt { font-size:14px; font-weight:650; line-height:1.3; color:var(--text); transition:color var(--dur) var(--ease); }
.pop .pv { font-size:12px; color:var(--text-3); font-weight:600; }
.pop a:hover .pt { color:var(--accent); }
.recent { display:flex; flex-direction:column; }
.recent .ritem { display:flex; gap:11px; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); color:var(--text); }
.recent .ritem:first-child { padding-top:0; }
.recent .ritem:last-child { border-bottom:0; padding-bottom:0; }
.recent .rthumb { width:72px; height:48px; border-radius:var(--r-xs); object-fit:cover; background:var(--surface-3); flex:none; }
.recent .rtx { display:flex; flex-direction:column; gap:3px; min-width:0; }
.recent .rt { font-size:14px; font-weight:650; line-height:1.3; color:var(--text); transition:color var(--dur) var(--ease); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.recent .ritem:hover .rt { color:var(--accent); }
.recent .rd { font-size:12px; color:var(--text-3); font-weight:600; }

/* ---------- table of contents ---------- */
.toc { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r); padding:16px 20px; margin:24px 0; }
.toc-h { font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); margin-bottom:10px; }
.toc ol { margin:0; padding-left:20px; }
.toc li { margin:2px 0; font-size:15.5px; line-height:1.4; }
.toc a { display:inline-block; padding:4px 0; color:var(--text-2); } /* 29px tall: a comfortable tap target */
.toc a:hover { color:var(--accent); }

/* ---------- comments ---------- */
.comments { margin-top:36px; }
.comment { padding:16px 0; border-bottom:1px solid var(--border); }
.comment:first-of-type { border-top:1px solid var(--border); }
.cmeta { font-size:13px; color:var(--text-3); margin-bottom:5px; }
.cmeta .cname { color:var(--text); font-weight:700; }
.cbody { font-size:15.5px; line-height:1.6; color:var(--text); overflow-wrap:anywhere; }
.chint { color:var(--text-3); font-size:14.5px; }
.cform { display:flex; flex-direction:column; gap:10px; margin-top:22px; }
.cinput { background:var(--surface); color:var(--text); border:1px solid var(--field-border); border-radius:var(--r-sm); padding:11px 13px; font:inherit; font-size:16px; min-height:44px; }
.cinput:focus { outline:2px solid transparent; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
textarea.cinput { min-height:96px; resize:vertical; }
.cform .go { align-self:start; }
.hp { position:absolute !important; left:-9999px; width:1px; height:1px; opacity:0; }

/* ---------- home + static pages ---------- */
.home-intro { color:var(--text-2); font-family:var(--font-body); font-weight:400; font-size:15.5px; line-height:1.55; letter-spacing:0; margin:0 2px 20px; }
.home-about { margin:36px 0 8px; max-width:760px; }
.home-about h2 { font-family:var(--font-display); font-size:21px; letter-spacing:-.015em; margin:0 0 12px; color:var(--text); }
.home-about p { color:var(--text-2); line-height:1.65; margin:0 0 12px; font-size:16px; }
.page-page .wrap { max-width:820px; }
.hmap-sections { margin:10px 0 22px; color:var(--text-2); line-height:2; font-size:14.5px; }
.hmap-sections a { color:var(--accent); }
.hmap-cat { font-family:var(--font-display); font-size:20px; margin:28px 0 12px; border-bottom:1px solid var(--border); padding-bottom:8px; }
.hmap-cat .hmap-n { color:var(--text-3); font-size:14px; font-weight:400; }
.hmap-list { columns:2; column-gap:34px; list-style:none; padding:0; margin:0; }
@media (max-width:640px) { .hmap-list { columns:1; } }
.hmap-list li { margin:0 0 9px; break-inside:avoid; line-height:1.45; text-wrap:pretty; }
.hmap-list a { color:var(--accent); }
.hmap-list a:hover { text-decoration:underline; }

/* ---------- forms, buttons, auth ---------- */
label { font-size:13.5px; color:var(--text-2); font-weight:700; }
textarea, input[type=password], .login input[type=text] { width:100%; background:var(--surface); color:var(--text); border:1px solid var(--field-border); border-radius:var(--r-sm); padding:12px 14px; font:inherit; font-size:16px; transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
textarea { resize:vertical; min-height:72px; }
textarea:focus, input[type=password]:focus, .login input[type=text]:focus { outline:2px solid transparent; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
button.go { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--accent); color:var(--on-accent); border:0; border-radius:10px; padding:0 22px; min-height:46px; font:inherit; font-size:15.5px; font-weight:700; cursor:pointer; justify-self:start; transition:background var(--dur) var(--ease), transform var(--dur) var(--ease); }
button.go:hover { background:var(--accent-2); }
button.go:active { transform:translateY(1px); }
.authwrap { display:flex; justify-content:center; padding:8px 0 40px; }
.authcard { width:100%; max-width:420px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:28px 26px 24px; }
.authform { display:flex; flex-direction:column; gap:14px; margin-top:16px; }
.authform label { display:flex; flex-direction:column; gap:6px; font-size:13.5px; font-weight:700; color:var(--text-2); }
.authform input:not(.hp) { background:var(--surface); color:var(--text); border:1px solid var(--field-border); border-radius:var(--r-sm); padding:11px 13px; min-height:44px; font:inherit; font-size:16px; transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.authform input:focus { outline:2px solid transparent; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.authform .go { margin-top:6px; width:100%; }
.authalt { text-align:center; margin:16px 0 0; font-size:14px; color:var(--text-3); }
.authalt a { color:var(--accent); font-weight:600; }
.login { max-width:400px; margin:30px auto; }
.captcha-box { display:inline-flex; align-items:center; background:var(--surface-2); border:1px dashed var(--border-strong); border-radius:var(--r-xs); padding:9px 18px; width:max-content; font-family:var(--font-display); font-weight:800; font-size:24px; line-height:1; letter-spacing:6px; color:var(--text); user-select:all; -webkit-user-select:all; cursor:text; }

/* ---------- admin ---------- */
.status { display:flex; gap:16px; flex-wrap:wrap; align-items:center; font-size:13px; margin:0 0 22px; padding:14px 18px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); }
.status span { display:inline-flex; align-items:center; gap:7px; }
.status a { color:var(--accent); }
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:18px 20px; margin-bottom:14px; }
form.card, form.login { display:grid; gap:12px; }
.error { color:var(--err); background:var(--err-soft); border-color:color-mix(in srgb, var(--err) 40%, var(--border)); }
.okmsg { color:var(--ok); background:var(--ok-soft); border-color:color-mix(in srgb, var(--ok) 40%, var(--border)); }
.err-text { color:var(--err); font-size:13px; }
.row, .qrow { display:flex; align-items:center; gap:12px; padding:12px 18px; }
.rowq { flex:1; font-weight:700; font-size:15px; color:var(--text); min-width:0; }
.rowq:hover { color:var(--accent); }
.row form, .qrow form, .adminbar form { margin:0; }
.qrow .qtext { flex:1; font-size:14.5px; }
.badge { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--pill); padding:2px 10px; font-size:12px; color:var(--text-2); font-weight:700; }
.del { background:transparent; border:1px solid var(--border); color:var(--text-3); border-radius:var(--r-xs); padding:6px 10px; cursor:pointer; min-height:36px; transition:color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.del:hover { color:var(--err); border-color:var(--err); }
.mini { background:var(--surface-2); border:1px solid var(--border); color:var(--text); border-radius:var(--r-xs); padding:7px 13px; cursor:pointer; font:inherit; font-size:13px; font-weight:700; white-space:nowrap; min-height:36px; transition:border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.mini:hover { border-color:var(--border-strong); }
.mini.add:hover { color:var(--ok); border-color:var(--ok); }
.mini.rej:hover { color:var(--err); border-color:var(--err); }
.adminbar { margin-left:auto; display:flex; gap:7px; align-items:center; }
.imgmodels { margin:14px 0; }
.mtable { width:100%; border-collapse:collapse; font-size:13.5px; }
.mtable th { text-align:left; font-weight:700; color:var(--text-3); font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; padding:4px 10px; border-bottom:1px solid var(--border); white-space:nowrap; }
.mtable td { padding:6px 10px; border-bottom:1px solid var(--border); vertical-align:middle; }
.mtable .mname { font-weight:700; color:var(--text); }
.mtable .mprice { font-variant-numeric:tabular-nums; color:var(--text-2); white-space:nowrap; }
.mtable .mstatus { color:var(--text-3); }
.mtable .using { color:var(--accent); font-weight:700; white-space:nowrap; }
.mtable .ready { color:var(--ok); }
.mactions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:10px; }
.lvlhead { margin-top:18px; }
.lvlbadge { display:inline-block; min-width:24px; text-align:center; font-size:11px; font-weight:700; color:var(--on-accent); background:var(--accent); border-radius:5px; padding:1px 6px; margin-right:7px; vertical-align:middle; }

/* ---------- reading progress ---------- */
.progress-bar { position:fixed; top:0; left:0; height:3px; width:0; background:var(--accent); z-index:60; transition:width .08s linear; }

/* ---------- a11y / motion ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, .post:focus-visible, .chip:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
button, .chip, .tag, a { cursor:pointer; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .post:hover .thumb img, .featured:hover .thumb img { transform:none; }
}

/* admin status dot (always next to a text label) */
.pill { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--border-strong); }
.pill.ok { background:var(--ok); }
.pill.no { background:var(--err); }

/* section illustration, the editor's background box, curated quotes, and the toggle for the full comment list */
.asec-fig { margin:14px 0 4px; }
.asec-fig img { width:100%; height:auto; max-height:440px; object-fit:cover; border-radius:var(--r); background:var(--surface-3); }
.asec-fig figcaption, .quote figcaption { margin-top:6px; font-size:12.5px; color:var(--text-3); }
.bg-box { margin:36px 0 8px; padding:20px 22px; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--surface-2); }
.prose .bg-box h2 { margin:0 0 12px; font-size:19px; }
.bg-box dl { margin:0; }
.bg-box dt { margin-top:12px; font-family:var(--font-display); font-weight:750; font-size:16px; color:var(--text); }
.bg-box dt:first-child { margin-top:0; }
.bg-box dd { margin:2px 0 0; font-size:16px; line-height:1.6; color:var(--text-2); }
.prose .bg-note { margin:14px 0 0; font-size:13px; color:var(--text-3); }
.quotes { display:grid; gap:12px; margin-bottom:16px; }
.quote { margin:0; padding:16px 18px; background:var(--surface-2); border-radius:var(--r); }
.quote blockquote { margin:0; font-size:16.5px; line-height:1.62; color:var(--text); overflow-wrap:anywhere; }
.all-voices { margin:0 0 28px; }
.all-voices > summary { display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border:1px solid var(--field-border); border-radius:var(--pill); font-weight:700; font-size:14.5px; color:var(--text-2); cursor:pointer; list-style:none; }
.all-voices > summary::-webkit-details-marker { display:none; }
.all-voices > summary:hover { border-color:var(--accent); color:var(--accent); }
.all-voices[open] > summary { margin-bottom:14px; }

/* phone nav: a fade on the edge that still has tabs beyond it (classes set by the footer script) */
.mainnav .mast-inner.more-r { -webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.mainnav .mast-inner.more-l { -webkit-mask-image:linear-gradient(90deg, transparent, #000 48px); mask-image:linear-gradient(90deg, transparent, #000 48px); }
.mainnav .mast-inner.more-l.more-r { -webkit-mask-image:linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image:linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

/* a very long community reply opens on demand */
.voice-more summary { cursor:pointer; list-style:none; font-size:15.5px; line-height:1.62; color:var(--text); }
.voice-more summary::-webkit-details-marker { display:none; }
.voice-more .vm-btn::after { content:"Read the full comment"; color:var(--accent); font-weight:700; white-space:nowrap; }
.voice-more[open] .vm-btn::after { content:"Show less"; }
.voice-more[open] .vm-cut { display:none; }
.voice-more[open] summary { margin-bottom:8px; }

/* phones — kept LAST so these overrides win over the base rules above (same specificity, later wins) */
@media (max-width:600px) {
  .prose { font-size:17px; } .lead { font-size:19px; } .dek { font-size:15px; } /* ~40-55 chars per line */
  .page-article .crumbs .cur, .byline .dot-sep, .byline .shortlink { display:none; } /* the article h1 repeats the crumb; wrapped rows left orphan dots */
  .byline { gap:6px 14px; }
  .rn-data { flex-wrap:wrap; gap:6px 10px; }
  .rn-data[style]::before { flex:0 0 100%; height:8px; }
  .voice { padding:14px; } .voice-av { display:none; }
  .voice-b, .voice-more summary, .cbody, .cdata-sum, .pexcerpt { font-size:16px; }
}
