/* WikiDrift — institutional reference direction (mockups 2a–2d). */

:root {
  --ink: #141414;
  --ink-2: #3D3D3D;
  --ink-3: #595959;
  --muted: #6B6B6B;
  --rule-strong: #8C8C8C;
  --rule-dash: #B3B3B3;
  --rule: #D9D9D9;
  --panel: #F6F5F2;
  --paper: #FFFFFF;
  --navy: #0E1A2B;
  --navy-2: #1B2A40;
  --blue: #2B5C9E;
  --blue-dark: #1F4677;
  --blue-light: #A9C4EA;
  --mark: #FBEFB8;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shared bits ---------- */

.logo {
  font: 600 32px/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo i { font-style: italic; font-weight: 500; color: var(--blue); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}

.h2 { font: 700 26px/1.2 var(--serif); margin: 0 0 18px; }

.qlink {
  font: 400 19px/1.35 var(--serif);
  color: var(--blue);
  text-decoration: none;
  background: none; border: 0; padding: 0; text-align: left;
}
.qlink:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong); background: var(--paper);
  padding: 8px 14px; border-radius: 2px; font-size: 14.5px; font-weight: 500;
  color: var(--ink); text-decoration: none; min-height: 40px;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.chain { display: inline-flex; align-items: center; flex: none; }
.chain .d { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--navy); }
.chain .d.on { background: var(--navy); }
.chain .l { width: 10px; height: 1.5px; background: var(--rule-strong); }

/* ---------- ask box (rectangular, 2a) ---------- */

.askbox {
  display: flex; background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
}
.askbox input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 18px 20px; font-size: 17px; color: var(--ink);
}
.askbox input::placeholder { color: var(--muted); opacity: 1; }
.askbox input:focus { outline: none; }
.askbox:focus-within { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.askbox button {
  flex: none; border: 0; background: var(--navy); color: #fff;
  padding: 0 26px; font-size: 15px; font-weight: 600;
}
.askbox button:hover { background: var(--navy-2); }

/* ---------- home header (2a) ---------- */

.banner {
  text-align: center; padding: 9px 16px; font-size: 13.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}
.site-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter) 18px; border-bottom: 1px solid var(--rule);
}
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.site-nav summary { padding: 6px 0; }
.eyebrow-link { display: block; width: fit-content; padding: 3px 0; text-decoration: none; color: var(--blue); }
.recent-all { padding: 3px 0; }
.popular-list .qlink, .starter .qlink, .hub-list .qlink { display: inline-block; padding: 2px 0; }
.eyebrow-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.menu-btn {
  display: none; width: 44px; height: 44px; margin: -8px -10px -8px 0;
  border: 0; background: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.menu-btn span { width: 18px; height: 2px; background: currentColor; }

.topics { position: relative; }
.topics summary { list-style: none; cursor: pointer; }
.topics summary::-webkit-details-marker { display: none; }
.topics-panel {
  position: absolute; right: 0; top: calc(100% + 14px); z-index: 30;
  width: 560px; background: var(--paper); border: 1px solid var(--rule);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.25);
  padding: 20px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px;
}
.topics-panel .eyebrow { margin-bottom: 6px; }
.topics-panel .qlink { display: block; font-size: 16px; padding: 4px 0; }
.topics-panel .eyebrow { display: block; }

/* ---------- home (2a / 2c) ---------- */

.hero { padding: 60px 120px 36px; }
.hero-kicker { font: italic 400 21px/1.3 var(--serif); color: var(--blue); margin: 0 0 12px; }
.hero h1 { font: 400 50px/1.1 var(--serif); letter-spacing: -0.018em; margin: 0; max-width: 960px; text-wrap: balance; }

.band { position: relative; padding: 56px 120px 250px; }
.band-art { margin: 0; position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; background: #8a8f86; }
.band-art picture { display: block; width: 100%; height: 100%; }
.band-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.band-art figcaption {
  position: absolute; right: 12px; bottom: 10px; max-width: calc(100% - 24px);
  font-size: 12.5px; color: #fff; background: rgba(14,26,43,.66); padding: 5px 10px;
}
.band-art figcaption a { color: #fff; }
.band .askbox { position: relative; margin: 0; max-width: 820px; box-shadow: 0 14px 36px -12px rgba(14,26,43,.55); border-color: var(--navy); }

/* what WikiDrift is + a sample answer */
.intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; padding: 60px 120px 8px; align-items: start; }
.intro-text p { font: 400 18px/1.62 var(--serif); color: var(--ink-2); margin: 0 0 14px; }
.sample { margin: 0; padding: 22px 24px 20px; background: var(--panel); border-top: 2px solid var(--navy); }
.sample-q { font: 700 22px/1.25 var(--serif); margin: 8px 0 10px; }
.sample-a { font: 400 16.5px/1.6 var(--serif); margin: 0; }
.sample-hl { background: var(--mark); box-shadow: 0 0 0 2px var(--mark); }
.sample-term { color: var(--blue); }
.sample-cite { font: 600 12px/1 var(--sans); color: #fff; background: var(--blue); padding: 2px 4px; vertical-align: super; }
.sample-src { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.sample-src p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-3); }
.sample-src mark { background: var(--mark); box-shadow: 0 0 0 2px var(--mark); color: var(--ink); }
.sample .recent-all { margin-top: 14px; }

/* how it works (home aside) */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 14px/28px var(--sans); text-align: center; }
.steps strong { color: var(--ink); }

/* topic cards */
.home-topics { padding: 0 120px 64px; }
.topic-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.topic-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--rule); border-top: 2px solid var(--blue); color: var(--ink); text-decoration: none; }
.topic-card:hover { border-color: var(--rule-strong); border-top-color: var(--blue); color: var(--ink); }
.topic-card:hover .topic-card-title { color: var(--blue); }
.topic-card-title { font: 600 22px/1.2 var(--serif); }
.topic-card-desc { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.topic-card-meta { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--blue); }

.home-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 64px;
  padding: 52px 120px 64px;
}
.starters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.starter { padding: 14px 0; border-top: 1px solid var(--rule); }
.starter .eyebrow { margin-bottom: 6px; }

.recent-item { padding: 14px 0; border-top: 1px solid var(--rule); }
.recent-item .qlink { font-size: 17px; line-height: 1.4; }
.recent-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.recent-empty { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.recent-all { display: inline-block; margin-top: 12px; font-size: 14.5px; font-weight: 600; }

.site-footer {
  padding: 20px 120px 24px; border-top: 1px solid var(--rule);
  font-size: 13.5px; line-height: 1.5; color: var(--muted);
}
.footer-note { margin: 0 0 8px; }
.footer-links a { display: inline-block; padding: 4px 0; }
.footer-sep { margin: 0 8px; color: var(--rule-strong); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- answer header (2b / 2d) ---------- */

.nav-header { background: var(--navy); color: #fff; padding: 16px 32px 18px; }
.nav-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav-left {
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px;
  color: #fff; text-decoration: none; background: none; border: 0; padding: 6px 0; justify-self: start;
}
.nav-left:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.burger { display: inline-flex; flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 2px; background: currentColor; }
.nav-header .logo { font-size: 30px; color: #fff; }
.nav-header .logo i { color: var(--blue-light); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font-size: 15px; }
.btn-ghost {
  border: 1.5px solid #fff; border-radius: 6px; padding: 8px 16px; font-weight: 600;
  color: #fff; text-decoration: none; background: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.pill {
  max-width: 560px; margin: 14px auto 0; display: flex; align-items: center;
  background: var(--paper); border-radius: 999px; padding: 0 8px 0 18px;
}
.pill input { flex: 1; min-width: 0; border: 0; background: none; padding: 11px 0; font-size: 15.5px; color: var(--ink); }
.pill input::placeholder { color: var(--muted); opacity: 1; }
.pill input:focus { outline: none; }
.pill:focus-within { box-shadow: 0 0 0 2px var(--blue-light); }
.pill button { border: 0; background: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.lens { width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 50%; position: relative; display: inline-block; }
.lens::after { content: ''; position: absolute; width: 2px; height: 6px; background: var(--muted); right: -4px; bottom: -5px; transform: rotate(-45deg); }
.nav-search { display: none; }
.nav-search .lens { border-color: #fff; }
.nav-search .lens::after { background: #fff; }

/* "More" menu in the answer header */
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; font-weight: 500; padding: 8px 4px; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.3); padding: 8px 0; display: flex; flex-direction: column;
}
.more-panel a { display: block; padding: 9px 18px; color: var(--ink); text-decoration: none; font-size: 15px; }
.more-panel a:hover { background: var(--panel); color: var(--blue); }
.more-sep { display: block; height: 1px; background: var(--rule); margin: 6px 0; }

/* ---------- answer page (2b) ---------- */

.answer-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 64px;
  max-width: 1120px; margin: 0 auto; padding: 40px 40px 72px;
}
.kicker { font-size: 14px; font-weight: 700; color: var(--blue); }
.answer-title { font: 700 40px/1.12 var(--serif); letter-spacing: -0.012em; margin: 8px 0 22px; text-wrap: balance; }
.prose p { font: 400 18.5px/1.62 var(--serif); margin: 0 0 18px; text-wrap: pretty; }
.prose a.term { color: var(--blue); text-decoration: none; }
.prose a.term:hover { text-decoration: underline; text-underline-offset: 3px; }
.seg.is-active { background: var(--mark); box-shadow: 0 0 0 2px var(--mark); }
.cite {
  font: 600 12px/1 var(--sans); color: var(--blue); background: none; border: 0;
  padding: 2px 2px; margin-left: 2px; vertical-align: super; border-radius: 2px;
}
.cite:hover { text-decoration: underline; }
.cite[aria-pressed="true"] { color: #fff; background: var(--blue); padding: 2px 4px; margin-left: 3px; text-decoration: none; }

.worth { margin-top: 26px; padding: 16px 20px; background: var(--panel); }
.worth .eyebrow { color: var(--ink-2); margin-bottom: 6px; }
.worth p { margin: 0; font: 400 16px/1.55 var(--serif); color: var(--ink-2); }

.disclosure {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.disclosure-text { font-size: 14px; color: var(--ink-2); }
.disclosure-text a { color: var(--ink); text-underline-offset: 2px; }
.variants { display: flex; gap: 8px; flex: none; }
.variants .btn-outline { white-space: nowrap; }

.drift-title { font: 700 26px/1.2 var(--serif); margin: 40px 0 6px; }
.drift {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink); width: 100%; background: none; border-top: 0; border-left: 0; border-right: 0; text-align: left;
}
.drift:hover { color: var(--ink); }
.drift:hover .drift-q { color: var(--blue); }
.drift-text { display: block; }
.drift-text > span { display: block; }
.drift-label { font-size: 14px; font-weight: 700; color: var(--blue); }
.drift-q { font: 400 21px/1.3 var(--serif); margin: 4px 0; }
.drift-from { font-size: 13px; color: var(--muted); }
.drift-arrow { flex: none; font-size: 20px; color: var(--blue); }
.badge {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--rule); padding: 5px 9px;
}

.bottom-ask { margin-top: 32px; }

/* ---------- sidebar: source + route ---------- */

.side { position: relative; }
.side-inner { position: sticky; top: 24px; }
.src-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.src-head h2 { font: 700 24px/1.2 var(--serif); margin: 0; }
.src-nav { display: flex; gap: 6px; font-size: 14px; font-weight: 500; }
.src-nav button { border: 0; background: none; padding: 4px 4px; color: var(--ink); }
.src-nav button:disabled { color: var(--rule-strong); cursor: default; }
.src-nav .x { color: var(--muted); }
.src-article { margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--blue); }
.src-section { font-size: 13px; color: var(--muted); margin-top: 2px; }
.src-label { margin-top: 18px; }
.src-label-says { color: var(--ink); }
.src-wrote { margin: 6px 0 0; font: italic 400 16px/1.5 var(--serif); color: var(--ink-2); }
.src-says { margin: 6px 0 0; font-size: 14.5px; line-height: 1.65; }
.src-says .ctx { color: var(--ink-3); }
.src-says mark { background: var(--mark); box-shadow: 0 0 0 2px var(--mark); color: var(--ink); }
.src-open { display: inline-block; margin-top: 14px; font-size: 14.5px; font-weight: 600; text-underline-offset: 3px; }
.src-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.src-warn { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #7A4B00; background: #FFF6E0; padding: 8px 10px; }

.route-title { font: 700 24px/1.2 var(--serif); margin: 0 0 14px; }
.side-inner > .src + .route-block { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.route-hint { font-size: 14px; color: var(--muted); margin: -6px 0 16px; }

.rt { display: flex; }
.rt-rail { flex: none; width: 34px; position: relative; }
.rt-body { padding: 2px 0 14px 4px; font: 400 15px/1.35 var(--serif); min-width: 0; }
.rt-body .qlink { font-size: 15px; }
.rt-body .sub { font: 600 12.5px/1.4 var(--sans); color: var(--blue); margin-top: 3px; }
.rt-body .dim { font: 400 12.5px/1.4 var(--sans); color: var(--muted); margin-top: 3px; }
.rt.here .rt-body { padding: 0 0 16px; font-weight: 600; font-size: 16px; }
.rt.anc .rt-body { padding: 0 0 12px; }
.rt.sug .rt-body .qlink { color: var(--muted); }
.rt.sug .rt-body .qlink:hover { color: var(--blue); }

.dot-here { position: absolute; left: 3px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.dot-anc { position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--navy); }
.stem { position: absolute; left: 8px; top: 20px; bottom: 0; border-left: 1.5px solid var(--rule-strong); }
.stem.full { top: 0; }
.trunk { position: absolute; left: 8px; top: 0; bottom: 0; border-left: 1.5px dashed var(--rule-dash); }
.elbow { position: absolute; left: 8px; top: 0; width: 14px; height: 13px; border-left: 1.5px solid var(--rule-strong); border-bottom: 1.5px solid var(--rule-strong); border-bottom-left-radius: 8px; }
.elbow.dash { border-left-style: dashed; border-bottom-style: dashed; border-color: var(--rule-dash); }
.dot-vis { position: absolute; left: 21px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--navy); }
.dot-sug { position: absolute; left: 21px; top: 8px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px dashed var(--rule-strong); }
.rt.child .rt-body { padding-left: 4px; }

/* route strip (2d) */
.route-strip {
  display: none; align-items: center; padding: 11px 20px; background: var(--panel);
  border-bottom: 1px solid var(--rule); white-space: nowrap; overflow-x: auto; font-size: 13px;
  scrollbar-width: none;
}
.route-strip::-webkit-scrollbar { display: none; }
.route-strip .eyebrow { font-size: 11.5px; color: var(--ink-2); margin-right: 12px; }
.rs-stop { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); text-decoration: none; }
.rs-stop.here { color: var(--ink); font-weight: 600; }
.rs-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--navy); flex: none; }
.rs-stop.here .rs-dot { background: var(--navy); }
.rs-line { width: 16px; height: 1.5px; background: var(--rule-strong); margin: 0 8px; flex: none; }
.rs-dash { width: 16px; border-top: 1.5px dashed var(--rule-dash); margin: 0 8px; flex: none; }
.rs-more { color: var(--muted); }

/* ---------- loading / retrieval state ---------- */

.progress { margin: 6px 0 28px; padding: 0; list-style: none; }
.progress li { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.progress li:first-child { border-top: 1px solid var(--rule); }
.progress .pk { flex: none; width: 84px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.progress .pv { font-family: var(--serif); font-size: 16.5px; color: var(--ink); }
.progress li.live .pv::after { content: '…'; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.skel { height: 18px; background: linear-gradient(90deg, #F1F0EC 0%, #F8F7F4 50%, #F1F0EC 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; margin: 0 0 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel, .progress li.live .pv::after { animation: none; }
}
.skels { margin-top: 4px; }
.skel:nth-child(2) { width: 96%; } .skel:nth-child(4) { width: 72%; margin-bottom: 30px; }
.skel:nth-child(6) { width: 94%; } .skel:nth-child(7) { width: 98%; } .skel:nth-child(8) { width: 60%; }
.wait-note { font-size: 14px; color: var(--muted); margin: 0 0 22px; }

.error-box { padding: 18px 20px; background: var(--panel); border-left: 3px solid var(--navy); margin: 8px 0 24px; }
.error-box p { margin: 0 0 12px; font: 400 17px/1.5 var(--serif); }

/* ---------- plain pages ---------- */

.page { max-width: 760px; margin: 0 auto; padding: 48px 40px 80px; }
.page h1 { font: 700 40px/1.12 var(--serif); letter-spacing: -0.012em; margin: 0 0 20px; }
.page h2 { font: 700 24px/1.2 var(--serif); margin: 36px 0 10px; }
.page p, .page li { font: 400 18px/1.62 var(--serif); }
.page p { margin: 0 0 16px; }
.xp-list { margin-top: 12px; }
.xp { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); }
.xp:last-child { border-bottom: 1px solid var(--rule); }
.xp .qlink { font-size: 20px; }
.xp-steps { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.xp-steps li { font: 400 14px/1.5 var(--sans); }
.xp-del { flex: none; border: 0; background: none; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; padding: 4px; }
.xp-del:hover { color: var(--ink); }
.page-actions { margin-top: 24px; display: flex; gap: 10px; }

/* popular this week (home) */
.popular { padding: 0 120px 64px; }
.popular-note { margin: -10px 0 14px; font-size: 14px; color: var(--muted); }
.popular-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 32px; }
.popular-list li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.popular-n { flex: none; font: 600 14px/1 var(--sans); color: var(--muted); min-width: 16px; }
.popular-list .qlink { font-size: 18px; }
.popular.weekly .qlink { font-size: 17px; }

.btn-copy.is-done { border-color: var(--navy); background: var(--panel); }

/* stories */
.home-stories { padding: 0 120px 64px; }
.story-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.story-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--panel); border-top: 2px solid var(--navy); color: var(--ink); text-decoration: none; }
.story-card:hover { color: var(--ink); background: #EFEDE8; }
.story-card:hover .story-card-title { color: var(--blue); }
.story-card-title { font: 600 19px/1.3 var(--serif); }
.story-card-desc { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.story-card-meta { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.stories .story-list, .story .story-list, .hub .story-list { grid-template-columns: 1fr 1fr; }
.story-card.is-featured { grid-column: 1 / -1; }
.story-card.is-featured .story-card-title { font-size: 25px; }
.story-card-img { display: block; margin: -18px -20px 6px; aspect-ratio: 16 / 7; overflow: hidden; background: var(--rule); }
.story-card-img picture, .story-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stories-credit { font: 400 15px/1.55 var(--sans) !important; color: var(--muted); margin-top: 28px !important; }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.story-standfirst { font: italic 400 21px/1.4 var(--serif) !important; color: var(--ink-2); margin: -6px 0 14px !important; }
.quick { margin: 4px 0 28px; padding: 18px 22px; background: #EEF3FA; border-left: 3px solid var(--blue); }
.quick .eyebrow { color: var(--blue-dark); margin-bottom: 6px; }
.quick p { margin: 0 !important; font-size: 17.5px !important; }
.story-fig { margin: 4px 0 24px; }
.story-fig picture, .story-fig img { display: block; width: 100%; height: auto; }
.story-fig figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.story-fig figcaption a { color: var(--muted); }
.myths { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 15.5px; line-height: 1.5; }
.myths th, .myths td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--rule); }
.myths thead th { padding-top: 0; border-top: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.myths td:first-child { width: 40%; font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.timeline { list-style: none; padding: 0 !important; margin: 6px 0 12px 6px !important; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 16px 22px; margin: 0 !important; font: 400 16px/1.5 var(--sans) !important; color: var(--ink-2); }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); }
.tl-date { display: block; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .02em; }
.story-sources li { font: 400 15.5px/1.55 var(--sans) !important; }
.story-note { font: 400 14px/1.55 var(--sans) !important; color: var(--muted); }

/* topic hubs */
.hub .askbox { margin: 28px 0 8px; }
.hub-note { font: 400 15.5px/1.55 var(--sans) !important; color: var(--muted); margin: -4px 0 10px !important; }
.hub-list { list-style: none; padding: 0 !important; margin: 0 0 8px !important; }
.hub-list li { padding: 12px 0; border-top: 1px solid var(--rule); margin: 0 !important; }
.hub-list li:last-child { border-bottom: 1px solid var(--rule); }
.hub-list .qlink { font-size: 19px; }
.hub .topic-cards { grid-template-columns: 1fr 1fr; }
.story .kicker { margin-bottom: 4px; }
.story-meta { font: 500 14px/1.5 var(--sans) !important; color: var(--muted); margin: -8px 0 20px !important; }
.story-lead { font-size: 21px !important; line-height: 1.5 !important; color: var(--ink-2); }
.story-more { margin: 36px 0 8px; padding: 20px 24px; background: var(--panel); border-left: 3px solid var(--navy); }
.story-more .eyebrow { margin-bottom: 8px; }
.story-more p { font-size: 16.5px; margin-bottom: 10px; }
.story-more p:last-child { margin-bottom: 0; }
.story-ask-note { font: 400 15px/1.5 var(--sans) !important; color: var(--muted); margin: -2px 0 12px !important; }
.story-asks { display: flex; flex-direction: column; }
.story-asks .qlink { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 19px; }
.story-asks .qlink:last-child { border-bottom: 1px solid var(--rule); }
.story .drift-title { margin-top: 36px; }

/* contact + legal pages */
.page ul { margin: 0 0 16px; padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page code { font: 500 0.9em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); padding: 2px 5px; }
.contact-card { margin: 8px 0 12px; padding: 22px 24px; background: var(--panel); border-left: 3px solid var(--navy); }
.contact-email { display: inline-block; margin-top: 6px; font: 600 26px/1.2 var(--serif); color: var(--blue); text-decoration: none; word-break: break-all; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-note { margin: 10px 0 0 !important; font: 400 14.5px/1.5 var(--sans) !important; color: var(--muted); }
.contact-list li { margin-bottom: 12px; }
.legal-date { font: 500 13.5px/1.5 var(--sans) !important; color: var(--muted); margin: -8px 0 24px !important; }
.legal h2 { margin-top: 32px; }

/* ---------- menu drawer + source sheet (mobile) ---------- */

.scrim { position: fixed; inset: 0; background: rgba(14,26,43,.38); z-index: 40; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 41; overflow-y: auto;
  background: var(--paper); padding: 20px 24px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 12px 0 40px -12px rgba(0,0,0,.3);
}
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer .logo { font-size: 25px; }
.drawer a.dl { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }
.drawer-topics { margin-top: 18px; }
.drawer-topics > .eyebrow { margin-bottom: 4px; }
.drawer-topics .dt summary { list-style: none; cursor: pointer; padding: 10px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; }
.drawer-topics .dt summary::-webkit-details-marker { display: none; }
.drawer-topics .dt summary::after { content: '+'; color: var(--muted); }
.drawer-topics .dt[open] summary::after { content: '–'; }
.drawer-topics .dt .qlink { display: block; font-size: 15.5px; padding: 8px 0 8px 12px; border-bottom: 1px solid var(--rule); }
.drawer-topics .dt .dt-hub { font-family: var(--sans); font-weight: 600; font-size: 14.5px; }
.drawer-foot { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--muted); }
.drawer-foot a { color: var(--muted); }
.icon-x { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--ink-2); margin-right: -10px; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 78vh; overflow-y: auto;
  background: var(--paper); border-radius: 14px 14px 0 0; padding: 10px 22px 28px;
  box-shadow: 0 -12px 40px -12px rgba(0,0,0,.3);
}
.sheet-grip { display: block; margin: 0 auto 8px; width: 40px; height: 4px; border-radius: 2px; background: var(--rule); }
.sheet .src-nav button { min-width: 44px; min-height: 44px; }
.sheet-open-row { margin-top: 18px; }
.sheet-open-row a {
  display: flex; height: 48px; align-items: center; justify-content: center; background: var(--navy);
  color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
}

.mobile-ask { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .hero, .band, .intro, .home-grid, .popular, .home-topics, .home-stories, .site-footer { padding-left: 64px; padding-right: 64px; }
  .popular-list { grid-template-columns: 1fr 1fr; }
  .intro { gap: 40px; }
}

@media (max-width: 960px) {
  :root { --gutter: 20px; }

  .site-header { align-items: center; padding: 14px 20px; }
  .site-header .logo { font-size: 25px; }
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { padding: 30px 20px 20px; }
  .hero-kicker { font-size: 17px; margin-bottom: 8px; }
  .hero h1 { font-size: 31px; line-height: 1.12; letter-spacing: -0.012em; }
  .band { display: flex; flex-direction: column; padding: 0 20px; }
  .band .askbox { order: 1; box-shadow: 0 2px 0 rgba(0,0,0,.04); }
  .band-art { order: 2; position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 20px -20px 0; aspect-ratio: 2400 / 1458; }
  .band-art figcaption { font-size: 12px; right: 8px; bottom: 6px; }
  .intro { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px 0; }
  .intro-text p { font-size: 17px; }
  .home-topics { padding: 0 20px 40px; }
  .topic-cards, .hub .topic-cards { grid-template-columns: 1fr; gap: 14px; }
  .myths td:first-child { width: 42%; }
  .story-card.is-featured .story-card-title { font-size: 21px; }
  .askbox input { padding: 15px 14px; font-size: 16px; }
  .askbox button { padding: 0 18px; font-size: 14.5px; }
  .home-grid { grid-template-columns: 1fr; gap: 36px; padding: 26px 20px 40px; }
  .h2 { font-size: 21px; margin-bottom: 8px; }
  .starters { grid-template-columns: 1fr; }
  .starter { padding: 12px 0; }
  .starter .eyebrow { display: block; margin-bottom: 4px; }
  .starter:last-child { border-bottom: 1px solid var(--rule); }
  .qlink { font-size: 17px; }
  .site-footer { padding: 20px 20px 28px; font-size: 14px; }
  .topics-panel { display: none; }
  .popular { padding: 0 20px 40px; }
  .home-stories { padding: 0 20px 40px; }
  .story-list, .stories .story-list, .story .story-list, .hub .story-list { grid-template-columns: 1fr; gap: 14px; }
  .story-lead { font-size: 18.5px !important; }
  .popular-list { grid-template-columns: 1fr; }
  .popular-list .qlink { font-size: 17px; }

  .nav-header { padding: 4px 10px 8px; }
  .nav-row { grid-template-columns: 44px 1fr 44px; }
  .nav-left { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .nav-left .t { display: none; }
  .nav-header .logo { font-size: 24px; text-align: center; }
  .nav-right .btn-ghost, .nav-right .more { display: none; }
  .nav-search { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; }
  .nav-header .pill { display: none; }

  .route-strip { display: flex; }

  .answer-grid { grid-template-columns: 1fr; gap: 0; padding: 24px 20px 20px; }
  .kicker { font-size: 13px; }
  .answer-title { font-size: 30px; margin: 6px 0 18px; }
  .prose p { font-size: 17.5px; line-height: 1.6; margin-bottom: 16px; }
  .cite { font-size: 12px; padding: 4px 3px; }
  .worth { margin-top: 18px; padding: 14px 16px; }
  .worth p { font-size: 15px; }
  .disclosure { flex-direction: column; align-items: stretch; border: 0; padding: 0; margin-top: 18px; gap: 10px; }
  .disclosure-text { font-size: 13.5px; }
  .variants { display: grid; grid-template-columns: 1fr 1fr; }
  .variants .btn-copy { grid-column: 1 / -1; }
  .variants .btn-outline { height: 44px; }
  .drift-title { font-size: 22px; margin-top: 32px; }
  .drift { padding: 14px 0; }
  .drift-text { display: block; }
.drift-text > span { display: block; }
.drift-label { font-size: 13px; }
  .drift-q { font-size: 18.5px; }
  .drift-from, .drift-arrow { display: none; }
  .side { display: none; }
  .bottom-ask { display: none; }
  .mobile-ask {
    display: block; position: sticky; bottom: 0; z-index: 20;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper);
  }
  .mobile-ask .askbox input { padding: 13px 14px; font-size: 16px; }

  .page { padding: 32px 20px 60px; }
  .page h1 { font-size: 30px; }
  .page p, .page li { font-size: 17px; }
  .contact-card { padding: 18px; }
  .contact-email { font-size: 21px; }
}

@media (min-width: 961px) {
  .sheet, .sheet-scrim { display: none; }
}

/* explainers */
.disambig { font: 400 15px/1.5 var(--sans) !important; color: var(--ink-2); padding: 10px 14px; border: 1px dashed var(--rule-strong); margin: 0 0 18px !important; }
.sourcing-note { font: 400 14.5px/1.55 var(--sans) !important; color: var(--ink-2); background: #FFF6E0; padding: 12px 16px; margin: -12px 0 24px !important; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 4px 0 8px; padding: 6px 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--rule); }
.facts > div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 400 16px/1.45 var(--serif); }
.table-wrap { overflow-x: auto; margin: 6px 0 4px; }
.bench caption { caption-side: top; text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.bench th[scope="row"] { font-weight: 600; font-family: var(--sans); padding-right: 16px; }
.bench td, .bench th[scope="row"] { white-space: nowrap; }
.bench td:first-child { width: auto; font-style: normal; font-family: var(--sans); }
.bench tbody td:nth-child(2) { font-weight: 700; color: var(--navy); }
@media (max-width: 960px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .bench { font-size: 14px; }
}
