/* AutoAuctionZone design system v4 - the settlement desk
   Dark only: cool graphite stock, one blue accent. Mono is reserved for money and
   figures only, so the numbers are the one monospaced thing on the page.
   Radius encodes kind: documents 4px, cards 10px, controls 8px, pills 3px. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #10151c;
  --card: #171d26;
  --raised: #202833;
  --text: #e6ecf4;
  --text-2: #a3b1c2;
  --muted: #8493a6;
  --line: rgba(230, 236, 244, .1);
  --line-strong: rgba(230, 236, 244, .2);

  --accent: #74a9f5;
  --accent-hover: #9cc2f8;
  --accent-ink: #0d1420;
  --accent-soft: rgba(116, 169, 245, .13);
  --pos: #57c08a;
  --pos-soft: rgba(87, 192, 138, .13);
  --neg: #f0837f;

  /* legacy aliases used by generated markup */
  --paper: var(--bg); --surface: var(--card); --surface-2: var(--raised);
  --ink: var(--text); --ink-2: var(--text-2);
  --star: var(--accent);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --hdr: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text-2);
  font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
main { flex: 1; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--text); margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
b, strong { font-weight: 500; color: var(--text); }
a { color: var(--accent); text-decoration: none; transition: color 150ms var(--ease); }
a:hover { color: var(--accent-hover); }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 16px; height: 16px; stroke-width: 1.5; }

/* ---------- Header: pill nav left, wordmark centred, actions right ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: var(--hdr); }
.hdr-left { display: flex; align-items: center; gap: 8px; justify-self: start; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: center; color: var(--text); font-weight: 700; font-size: 19px; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.brand-mark svg { width: 15px; height: 15px; stroke-width: 2.25; }
.brand small { font-weight: 400; color: var(--muted); font-size: inherit; }
/* nav reads as a row of pills, like a segmented control */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text-2); font-size: 14px; line-height: 20px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/20px var(--font); height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--text-2); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--raised); color: var(--text); }
.btn-sm { height: 36px; padding: 0 18px; border-radius: 999px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 1px solid var(--line); color: var(--text-2); cursor: pointer; display: grid; place-items: center; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; stroke-width: 1.5; }

/* ---------- Type helpers ---------- */
.eyebrow { font: 500 14px/20px var(--font); color: var(--accent); }
.lede { font-size: 18px; line-height: 28px; color: var(--text-2); max-width: 36rem; }
.page-head { padding: 80px 0 40px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 16px 0; max-width: 20ch; letter-spacing: -.02em; }
.page-head .lede { max-width: 36rem; }

/* ---------- Surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.card-pad { padding: 24px; }
.card h2 { font-size: 20px; line-height: 28px; }
.card h3 { font-size: 16px; line-height: 24px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font: 400 12px/16px var(--font); padding: 3px 8px; border-radius: 3px; background: var(--raised); color: var(--text-2); }
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.score { font: 500 13px/16px var(--mono); padding: 4px 8px; border-radius: 6px; background: var(--raised); color: var(--text); white-space: nowrap; }

/* ---------- Ticket (signature) ---------- */
.ticket {
  --cut: 96px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 4px; position: relative;
  -webkit-mask: radial-gradient(circle 8px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 8px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 8px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket-head { height: var(--cut); padding: 24px 24px 0; }
.ticket-body { padding: 24px; border-top: 1px dashed var(--line-strong); }
.ticket-label { font: 400 13px/20px var(--font); color: var(--muted); }
.ticket-figure { font: 500 40px/48px var(--mono); color: var(--text); letter-spacing: -.02em; }
.ticket-rows { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ticket-rows li { display: flex; justify-content: space-between; gap: 16px; font: 400 14px/20px var(--mono); color: var(--text-2); }
.ticket-rows li b { font-weight: 500; color: var(--text); }
.ticket-rows li.best { color: var(--text); }
.ticket-rows li.best b { color: var(--pos); }
.ticket-note { margin-top: 20px; font: 400 13px/18px var(--font); color: var(--muted); }

/* ---------- Home hero ---------- */
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.03em; margin: 16px 0 24px; max-width: 14ch; }
.hero .lede { margin-bottom: 32px; }
.search { position: relative; max-width: 36rem; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 52px; padding: 0 120px 0 44px; font: 400 15px/20px var(--font); color: var(--text); background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .btn { position: absolute; right: 4px; top: 4px; height: 44px; border-radius: 999px; }
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.statbar > div { padding: 24px 24px 0 0; }
.statbar > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.statbar b { display: block; font: 600 32px/32px var(--font); letter-spacing: -.02em; }
.statbar span { display: block; margin-top: 8px; font: 400 13px/20px var(--font); color: var(--muted); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 32px; align-items: start; padding: 0 0 8px; }
.stack { display: grid; gap: 24px; }
.stack-sm { display: grid; gap: 16px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.section-title h2 { font-size: 24px; line-height: 32px; }
.section-title span { font: 400 13px/20px var(--font); color: var(--muted); }

/* ---------- Boards / threads ---------- */
.board { overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.board-head h2 { font-size: 16px; line-height: 24px; display: flex; align-items: center; gap: 12px; }
.board-ico { color: var(--muted); display: grid; }
.board-ico svg { width: 16px; height: 16px; stroke-width: 1.5; }
.board-head > span { font: 400 13px/20px var(--font); color: var(--muted); }
.thread { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); color: inherit; transition: background-color 150ms var(--ease); }
.board-head + .thread { border-top: 0; }
.thread:hover { background: var(--raised); color: inherit; }
.thread-top { margin-bottom: 8px; }
.thread h3 { font-size: 16px; line-height: 24px; transition: color 150ms var(--ease); }
.thread:hover h3 { color: var(--accent); }
.thread p { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.thread-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font: 400 13px/18px var(--font); color: var(--muted); }
.thread-meta strong { color: var(--text-2); font-weight: 400; }
.thread-go { color: var(--muted); display: grid; transition: color 150ms var(--ease); }
.thread:hover .thread-go { color: var(--accent); }
.thread-go svg { width: 16px; height: 16px; stroke-width: 1.5; }
.tag { font: 500 12px/16px var(--font); padding: 4px 8px; border-radius: 6px; background: var(--raised); color: var(--text-2); }
.empty { display: none; padding: 40px 24px; text-align: center; color: var(--muted); }

/* ---------- Sidebar ---------- */
.aside { display: grid; gap: 16px; position: sticky; top: 84px; }
.aside .card { padding: 24px; }
.aside h3 { margin-bottom: 8px; }
.aside p { font-size: 14px; line-height: 20px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; font-size: 14px; line-height: 20px; }
.checks li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.checks svg { width: 16px; height: 16px; color: var(--muted); stroke-width: 1.5; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags a { font: 400 13px/20px var(--font); padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--text-2); transition: border-color 150ms var(--ease), color 150ms var(--ease); }
.tags a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Forms / calculator ---------- */
label.lbl { display: block; font: 400 13px/20px var(--font); color: var(--text-2); margin: 16px 0 8px; }
.field, select.field, textarea.field { width: 100%; font: 400 15px/20px var(--font); color: var(--text); background: var(--card); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; height: 44px; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.field { resize: vertical; min-height: 120px; height: auto; }
.field.num { font-family: var(--mono); }
.readout { margin-top: 16px; padding: 16px; border-radius: 8px; background: var(--raised); display: grid; gap: 8px; font: 400 14px/20px var(--mono); }
.readout div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.readout div b { color: var(--text); font-weight: 500; }
.readout .total { padding-top: 12px; margin-top: 4px; border-top: 1px dashed var(--line-strong); color: var(--text); }
.readout .total b { color: var(--accent); }
.range { width: 100%; accent-color: var(--accent); height: 24px; margin: 16px 0 0; }

/* ---------- Rankings ---------- */
.rank-list { display: grid; gap: 12px; padding-bottom: 8px; }
.rank { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px; }
.rank-n { font: 400 32px/32px var(--mono); color: var(--muted); }
.rank.first { border-color: var(--accent); }
.rank.first .rank-n { color: var(--accent); }
.rank h2 { font-size: 20px; line-height: 28px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.rank p { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 8px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; min-width: 720px; }
table.data th { text-align: left; font: 400 13px/20px var(--font); color: var(--muted); padding: 16px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.data td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.n { font: 400 14px/20px var(--mono); color: var(--text); white-space: nowrap; text-align: right; }
table.data th.n { text-align: right; }
table.data td.name { font-weight: 500; color: var(--text); }
table.data tr.best td { background: var(--accent-soft); }
table.data .good { color: var(--pos); }

/* ---------- Compare ---------- */
.bid-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.bid-figure { font: 500 clamp(40px, 6vw, 56px)/1.1 var(--mono); color: var(--text); letter-spacing: -.03em; margin-top: 8px; }
.bid-input { width: 176px; }
.range-scale { display: flex; justify-content: space-between; font: 400 12px/16px var(--mono); color: var(--muted); }
.footnote { font: 400 13px/18px var(--font); color: var(--muted); }

/* ---------- Guides ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 240px; }
.guide .pill { align-self: flex-start; }
.guide h2 { font-size: 20px; line-height: 28px; }
.guide p { color: var(--muted); font-size: 14px; line-height: 20px; }
.guide .num { margin-top: auto; font: 400 13px/18px var(--font); color: var(--muted); }

/* ---------- Dossier (auction pages) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 400 13px/20px var(--font); color: var(--muted); padding: 32px 0 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs b { font-weight: 400; color: var(--text); }
.dossier-hero { padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.dossier-id { display: flex; align-items: center; gap: 20px; }
.logo-tile { width: 64px; height: 64px; border-radius: 12px; background: var(--raised); color: var(--text); display: grid; place-items: center; font: 500 28px/1 var(--font); }
.dossier-hero h1 { font-size: clamp(28px, 4vw, 36px); line-height: 40px; letter-spacing: -.02em; }
.dossier-hero .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.dossier-hero .sub { font-size: 14px; line-height: 20px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts > div { padding: 16px; }
.facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.facts > div:nth-child(even) { border-left: 1px solid var(--line); }
.facts span { display: block; font: 400 13px/20px var(--font); color: var(--muted); }
.facts b { display: block; margin-top: 4px; font: 500 16px/24px var(--font); }
.facts b.g { color: var(--pos); } .facts b.w { color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two h3 { font: 500 14px/20px var(--font); margin-bottom: 12px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; line-height: 20px; }
.list li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.list svg { width: 16px; height: 16px; margin-top: 2px; stroke-width: 1.5; }
.pro .list svg { color: var(--pos); } .con .list svg { color: var(--neg); }
.prose { font-size: 16px; line-height: 24px; }
.prose p + p { margin-top: 16px; }
.related { display: grid; gap: 4px; margin-top: 12px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 36px; padding: 0 12px; border-radius: 8px; color: var(--text); font-size: 14px; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.related a:hover { background: var(--raised); color: var(--accent); }
.related span { font: 400 12px/16px var(--mono); color: var(--muted); }

/* ---------- Thread page (dealer) ---------- */
.thread-hero { padding: 32px; }
.thread-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.thread-hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 16px 0; }
.thread-hero .lede { font-size: 16px; line-height: 24px; }
.thread-hero .meta-line { font: 400 13px/18px var(--font); color: var(--muted); margin-top: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.scorebox { --cut: 160px; }
.scorebox .ticket-head { text-align: center; padding-top: 24px; }
.scorebox .big { font: 500 56px/56px var(--mono); letter-spacing: -.04em; color: var(--text); margin: 8px 0; }
.scorebox .big small { font-size: 20px; color: var(--muted); letter-spacing: 0; }
.scorebox .ticket-body { text-align: center; display: grid; gap: 4px; }
.scorebox .meta { font: 400 13px/20px var(--font); color: var(--text-2); }
.scorebox .btn { margin-top: 16px; width: 100%; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; line-height: 16px; }
.stars .off { opacity: .3; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; border-top: 1px solid var(--line); }
.metrics > div { padding: 24px 16px 0 0; }
.metrics > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.metrics span { display: block; font: 400 13px/20px var(--font); color: var(--muted); }
.metrics b { display: block; margin-top: 4px; font: 500 20px/28px var(--font); letter-spacing: -.01em; }
.metrics b.g { color: var(--pos); }
.jump { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; margin: 16px 0 24px; }
.jump nav { display: flex; flex-wrap: wrap; gap: 4px; }
.jump a.chip { font: 400 14px/20px var(--font); padding: 8px 12px; border-radius: 8px; color: var(--text-2); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.jump a.chip:hover { background: var(--raised); color: var(--text); }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--font); background: var(--raised); color: var(--text-2); flex: none; }
.avatar.staff { background: var(--text); color: var(--bg); }
.avatar.new { background: var(--accent-soft); color: var(--accent); }
.who { display: flex; align-items: center; gap: 12px; }
.who b { font-size: 14px; line-height: 20px; }
.who .pill { margin-left: 8px; }
.post-no { font: 400 13px/18px var(--font); color: var(--muted); }
.post-body { padding: 32px 24px 24px; }
.post-body h2 { font-size: 24px; line-height: 32px; letter-spacing: -.01em; margin-bottom: 16px; }
.verdict { margin-top: 16px; padding: 16px; background: var(--raised); border-radius: 8px; color: var(--text); }
.callout { margin-top: 32px; padding: 24px; background: var(--raised); border-radius: 12px; }
.callout h3 { margin-bottom: 8px; }
.callout > p { font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 16px; }
.callout .card { background: var(--card); border-radius: 8px; }
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.tone { padding: 20px; border-radius: 12px; }
.tone h4 { font: 500 14px/20px var(--font); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tone h4 svg { width: 16px; height: 16px; stroke-width: 1.5; }
.tone ul { margin: 0; padding-left: 16px; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.tone.good { background: var(--pos-soft); } .tone.good h4 svg { color: var(--pos); }
.tone.tip { background: var(--accent-soft); } .tone.tip h4 svg { color: var(--accent); }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.post-foot .left { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.vote { font: 500 13px/16px var(--font); display: inline-flex; gap: 8px; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease); }
.vote svg { width: 14px; height: 14px; stroke-width: 1.5; }
.vote:hover { background: var(--raised); color: var(--text); }
.vote:active { transform: scale(.97); }
.vote.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.review { padding: 24px; }
.review .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.review h3 { font-size: 16px; line-height: 24px; margin: 16px 0 8px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.review p { font-size: 15px; line-height: 24px; }
.review .foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; font: 400 13px/18px var(--font); color: var(--pos); flex-wrap: wrap; }
.review.fresh { border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 24px; }
.form-foot span { font-size: 13px; line-height: 20px; color: var(--muted); }
.notice { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 8px; background: var(--pos-soft); color: var(--pos); font-size: 14px; line-height: 20px; }
.notice.show { display: block; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 500 16px/24px var(--font); color: var(--text); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 200ms var(--ease); margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 32px 16px 0; font-size: 15px; line-height: 24px; }
.topbar { border-bottom: 1px solid var(--line); font: 400 13px/18px var(--font); color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar b { font-weight: 500; color: var(--text); }

/* ---------- Legal / contact ---------- */
.narrow { max-width: 720px; }
.legal section { padding: 24px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 18px; line-height: 28px; margin-bottom: 8px; }
.legal p { font-size: 16px; line-height: 24px; }

/* ---------- Modal ---------- */
dialog.modal { border: 1px solid var(--line-strong); border-radius: 16px; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--card); color: var(--text-2); }
dialog.modal::backdrop { background: rgba(4, 7, 12, .66); }
.modal-in { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.modal-head h3 { font-size: 18px; line-height: 28px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.site-footer p { font-size: 14px; line-height: 20px; margin-top: 16px; max-width: 28rem; color: var(--muted); }
.site-footer h4 { font: 500 13px/20px var(--font); color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--accent); }
.foot-base { padding-top: 24px; border-top: 1px solid var(--line); font: 400 13px/18px var(--font); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Motion: one entrance on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 400ms var(--ease) both; }
  .reveal.d1 { animation-delay: 60ms; } .reveal.d2 { animation-delay: 120ms; } .reveal.d3 { animation-delay: 180ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .thread-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .scorebox { max-width: 320px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .icon-btn.menu-btn { display: grid; }
  .nav { position: absolute; top: var(--hdr); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 16px; line-height: 24px; }
  .header-actions .btn { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 48px; }
  .page-head { padding: 48px 0 32px; }
  .statbar { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .statbar > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .statbar > div:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
  .thread { grid-template-columns: 1fr; }
  .thread-go { display: none; }
  .rank { grid-template-columns: 32px 1fr; gap: 16px; }
  .rank .btn { grid-column: 1 / -1; }
  .rank-n { font-size: 24px; line-height: 32px; }
  .two, .tone-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .metrics > div:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
  .dossier-hero, .thread-hero { padding: 24px; }
  .search input { padding-right: 16px; }
  .search .btn { position: static; margin-top: 8px; width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
