/* yylx.tv design system — answer-card layout, generated to assets/site.css by src/build.mjs */

:root {
  color-scheme: light dark;

  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --surface-2: #FFF4EC;
  --border: #F0E0D6;
  --border-strong: #E8CFC0;
  --text: #5D4E4E;
  --muted: #8B7B7B;
  --accent: #D9537E;
  --accent-hover: #C44268;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFE4EC;
  --warn-bg: #FFF4E0;
  --warn-border: #E8C9A0;
  --warn-ink: #8B6B3A;
  --code-bg: #FFF0F4;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem;

  --t-display: clamp(1.45rem, 1.15rem + 1.3vw, 1.95rem);
  --t-h2: clamp(1.05rem, .98rem + .35vw, 1.2rem);
  --t-lead: clamp(1rem, .96rem + .25vw, 1.08rem);
  --t-body: 1rem;
  --t-sm: .875rem;
  --t-xs: .78rem;

  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16, 32, 24, .04), 0 2px 10px rgba(16, 32, 24, .035);
  --sh-2: 0 2px 6px rgba(16, 32, 24, .05), 0 14px 40px rgba(16, 32, 24, .07);

  --shell: 74rem;
  --measure: 47rem;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

[data-theme="dark"] {
  --bg: #1A1416;
  --surface: #241C1F;
  --surface-2: #2E2327;
  --border: #3D2F34;
  --border-strong: #554049;
  --text: #F5EAEC;
  --muted: #B89AA2;
  --accent: #F48FB1;
  --accent-hover: #FFA8C4;
  --accent-ink: #2A1A1F;
  --accent-soft: #3A252E;
  --warn-bg: #2E2618;
  --warn-border: #554527;
  --warn-ink: #E8C98A;
  --code-bg: #2E2327;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 40px rgba(0, 0, 0, .4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1416; --surface: #241C1F; --surface-2: #2E2327; --border: #3D2F34;
    --border-strong: #554049; --text: #F5EAEC; --muted: #B89AA2; --accent: #F48FB1;
    --accent-hover: #FFA8C4; --accent-ink: #2A1A1F; --accent-soft: #3A252E;
    --warn-bg: #2E2618; --warn-border: #554527; --warn-ink: #E8C98A; --code-bg: #2E2327;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
    --sh-2: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 40px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--t-body) / 1.75 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.35; letter-spacing: -.01em; margin: 0; font-weight: 700; }
p { margin: var(--s3) 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
b, strong { font-weight: 650; }
svg { flex: none; }
code {
  background: var(--code-bg); padding: .1rem .38rem; border-radius: 6px;
  font-size: .88em; font-family: ui-monospace, "SF Mono", Consolas, monospace; word-break: break-all;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--s4); top: -3rem; z-index: 30;
  background: var(--surface); color: var(--text); padding: var(--s2) var(--s4);
  border: 1px solid var(--border); border-radius: var(--r-sm); transition: top .15s var(--ease);
}
.skip:focus { top: var(--s4); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--s5); }
.band { background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 78%); border-bottom: 1px solid var(--border); }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.masthead .row { display: flex; align-items: center; gap: var(--s4); min-height: 3.5rem; }
.logo { display: flex; align-items: baseline; gap: .5rem; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; }
.logo .mark {
  display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800; align-self: center;
}
.logo em { font-style: normal; color: var(--muted); font-weight: 550; font-size: .85rem; }
.masthead nav { margin-left: auto; display: flex; gap: var(--s4); font-size: var(--t-sm); overflow-x: auto; scrollbar-width: none; }
.masthead nav::-webkit-scrollbar { display: none; }
.masthead nav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: .35rem 0; border-bottom: 2px solid transparent; }
.masthead nav a:hover { color: var(--text); border-bottom-color: var(--accent); }
.themetoggle {
  flex: none; width: 2rem; height: 2rem; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .85rem; line-height: 1;
}
.themetoggle:hover { border-color: var(--border-strong); color: var(--text); }
.langlink {
  flex: none; font-size: var(--t-xs); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: .25rem .65rem; color: var(--muted); text-decoration: none; background: var(--surface);
}
.langlink:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- question + answer card ---------- */
.hero { padding: var(--s6) 0; }
.ask { display: flex; align-items: flex-start; gap: .65rem; max-width: var(--measure); margin-bottom: var(--s4); }
.ask-i { width: 1.35rem; height: 1.35rem; margin-top: .3rem; color: var(--accent); }
.ask p { margin: 0; font-size: var(--t-lead); font-weight: 600; line-height: 1.7; }

.answer {
  position: relative; max-width: var(--measure); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-2);
  padding: var(--s5) var(--s5) var(--s4); overflow: hidden;
}
.answer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--surface)));
}
.answer-h { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-pill); padding: .25rem .7rem; font-size: var(--t-xs); font-weight: 650; letter-spacing: .02em;
}
.badge-i { width: .9rem; height: .9rem; }
.answer-meta { margin-left: auto; font-size: var(--t-xs); color: var(--muted); }
.answer-meta a { color: var(--muted); }
.answer-meta a:hover { color: var(--accent); }
h1.display { font-size: var(--t-display); margin: var(--s4) 0 var(--s3); max-width: 34ch; }
.answer-lead {
  margin: 0; font-size: var(--t-lead); line-height: 1.85;
  background: var(--surface-2); border-radius: var(--r-md); padding: var(--s4);
}
.points { list-style: none; counter-reset: p; padding: 0; margin: var(--s4) 0 0; }
.points li {
  counter-increment: p; position: relative; padding-left: 1.85rem; margin: var(--s3) 0;
  font-size: .95rem; line-height: 1.8;
}
.points li::before {
  content: counter(p); position: absolute; left: 0; top: .28rem; width: 1.3rem; height: 1.3rem;
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent);
  font-size: .72rem; font-weight: 750; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.answer-f {
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center;
  margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border);
}
.answer-note { margin: var(--s3) 0 0; font-size: var(--t-xs); color: var(--muted); line-height: 1.75; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px;
  margin-top: var(--s4); background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.fact { background: var(--surface); padding: var(--s3) var(--s4); }
.fact .l { font-size: var(--t-xs); letter-spacing: .04em; color: var(--muted); }
.fact .v { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .1rem; word-break: break-all; }
.fact .n { font-size: var(--t-xs); color: var(--muted); }

/* ---------- buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.15rem; border-radius: var(--r-sm); font-weight: 650; font-size: .92rem;
  text-decoration: none; border: 1px solid var(--accent); cursor: pointer; font-family: inherit;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-i { width: 1rem; height: 1rem; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn.small { padding: .5rem .9rem; font-size: var(--t-sm); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding: var(--s6) 0 var(--s7); }
@media (min-width: 68rem) { .layout { grid-template-columns: minmax(0, var(--measure)) 15rem; } }
main { min-width: 0; max-width: var(--measure); }
body.doc main { max-width: 50rem; margin-inline: auto; padding: var(--s6) var(--s5) var(--s7); }

.toc { display: none; }
@media (min-width: 68rem) {
  .toc { display: block; }
  .toc .inner { position: sticky; top: 5.5rem; font-size: var(--t-sm); }
  .toc .h { display: flex; align-items: center; gap: .4rem; font-size: var(--t-xs); letter-spacing: .04em; color: var(--muted); margin-bottom: var(--s2); }
  .toc-i { width: .95rem; height: .95rem; }
  .toc a { display: block; color: var(--muted); text-decoration: none; padding: .32rem 0 .32rem var(--s3); border-left: 2px solid var(--border); }
  .toc a:hover { color: var(--text); border-left-color: var(--accent); }
  .keycard { margin-top: var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s4); box-shadow: var(--sh-1); }
  .keycard p { margin: 0; font-size: .82rem; line-height: 1.95; }
}

/* ---------- answer sub-cards ---------- */
.acard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); overflow: hidden; margin: 0 0 var(--s4); scroll-margin-top: 5rem;
}
.acard-h {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--border);
}
.acard-i {
  width: 2rem; height: 2rem; padding: .42rem; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}
.acard-h h2 { font-size: var(--t-h2); flex: 1; min-width: 0; }
.acard-h .idx {
  flex: none; font-size: .7rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums;
  letter-spacing: .06em; border: 1px solid var(--border); border-radius: var(--r-pill); padding: .1rem .5rem; background: var(--surface);
}
.acard-b { padding: var(--s4) var(--s4) var(--s5); }
.acard-b > :first-child { margin-top: 0; }
.acard-b > :last-child { margin-bottom: 0; }
.acard-b p { font-size: .95rem; line-height: 1.85; }
h3 { font-size: .98rem; margin: var(--s5) 0 var(--s2); }
h3 + p { margin-top: 0; }

/* ---------- icon tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s3); margin: var(--s4) 0 0; }
.tile {
  display: flex; gap: .7rem; align-items: flex-start; padding: var(--s3) var(--s4);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
}
.tile-i {
  width: 1.9rem; height: 1.9rem; padding: .4rem; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent);
}
.tile > div { min-width: 0; }
.tile .t { font-weight: 650; font-size: .95rem; line-height: 1.5; }
.tile .d { font-size: var(--t-sm); color: var(--muted); line-height: 1.7; margin-top: .1rem; }

/* ---------- metric cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.stat { position: relative; padding: var(--s4); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.stat-i { position: absolute; top: .7rem; right: .7rem; width: 1.1rem; height: 1.1rem; color: var(--accent); opacity: .5; }
.stat .v { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .u { font-size: var(--t-sm); }
.stat .n { font-size: var(--t-xs); color: var(--muted); margin-top: .15rem; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: var(--s4) 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 var(--s5) 2.9rem; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .1rem;
  width: 2rem; height: 2rem; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent);
  font-size: var(--t-xs); font-weight: 750; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.steps li::after { content: ""; position: absolute; left: 1rem; top: 2.4rem; bottom: .6rem; width: 1px; background: var(--border); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps .st { font-weight: 650; display: block; margin-bottom: .15rem; font-size: .95rem; }
.steps p { margin: 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.8; }

/* ---------- invite-page preview ---------- */
.device { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); margin: var(--s4) 0 0; }
.device .bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.device .bar .nm { font-weight: 700; font-size: var(--t-sm); white-space: nowrap; }
.device .bar .tg { font-size: var(--t-xs); color: var(--muted); line-height: 1.4; }
.device .bar .rt { margin-left: auto; display: flex; gap: var(--s2); flex: none; }
.pill { font-size: var(--t-xs); border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: .18rem .6rem; color: var(--muted); background: var(--surface); white-space: nowrap; }
.thread { padding: var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; background: var(--bg); }
.bubble { max-width: 92%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); border-top-left-radius: 4px; padding: var(--s3) var(--s4); font-size: var(--t-sm); line-height: 1.8; box-shadow: var(--sh-1); }
.bubble b { color: var(--accent); font-variant-numeric: tabular-nums; }
.bubble .sub { display: block; margin-top: .35rem; color: var(--muted); font-size: var(--t-xs); }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
figcaption, .caption { font-size: var(--t-xs); color: var(--muted); line-height: 1.75; margin-top: var(--s3); }

/* ---------- verdict & tables ---------- */
.verdict {
  display: flex; gap: .7rem; align-items: flex-start; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: var(--r-md);
  padding: var(--s4); margin-bottom: var(--s4);
}
.verdict-i { width: 1.3rem; height: 1.3rem; margin-top: .25rem; color: var(--accent); }
.verdict p { margin: 0; font-size: .95rem; line-height: 1.8; }

table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); margin: var(--s4) 0; }
th, td { padding: .7rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.7; }
thead th { font-size: var(--t-xs); letter-spacing: .04em; color: var(--muted); font-weight: 650; border-bottom-color: var(--border-strong); }
tbody th { font-weight: 650; white-space: nowrap; width: 9.5rem; }
td.src { color: var(--muted); font-size: var(--t-xs); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
@media (max-width: 40rem) { tbody th { white-space: normal; width: auto; } }

/* ---------- callouts ---------- */
.note { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-sm); padding: var(--s4); font-size: var(--t-sm); line-height: 1.85; margin: var(--s4) 0 0; }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); border-left: 3px solid var(--warn-ink); border-radius: var(--r-sm); padding: var(--s4); font-size: var(--t-sm); line-height: 1.85; margin: var(--s4) 0 0; color: var(--warn-ink); }
.note p, .warn p { margin: 0; }
.note p + p, .warn p + p { margin-top: var(--s2); }

/* ---------- faq ---------- */
.faq { margin-top: calc(var(--s2) * -1); }
.faq details { border-bottom: 1px solid var(--border); scroll-margin-top: 6rem; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; font-weight: 650; font-size: .95rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--accent); }
.faq details > div { padding: 0 0 var(--s4); font-size: var(--t-sm); color: var(--muted); line-height: 1.9; }
.faq details > div p { margin: 0; }
.faq details:target { background: var(--accent-soft); border-radius: var(--r-sm); padding-inline: var(--s3); }

ul.ticks { list-style: none; padding: 0; margin: var(--s4) 0 0; }
ul.ticks li { position: relative; padding-left: 1.6rem; margin: var(--s3) 0; font-size: var(--t-sm); color: var(--muted); line-height: 1.85; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .68rem; width: .5rem; height: .5rem; border-radius: 3px; background: var(--accent); }
ul.ticks li b { color: var(--text); }

/* ---------- citations ---------- */
.cites { list-style: none; padding: 0; margin: var(--s4) 0 0; }
.cites li { display: flex; gap: .7rem; align-items: flex-start; padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.cites li:last-child { border-bottom: 0; padding-bottom: 0; }
.cites .n {
  flex: none; width: 1.5rem; height: 1.5rem; border-radius: 7px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--muted); font-size: .72rem; font-weight: 700;
  display: grid; place-items: center; font-variant-numeric: tabular-nums; margin-top: .15rem;
}
.cites li > div { min-width: 0; flex: 1; }
.cites a { font-size: .9rem; line-height: 1.65; }
.cites code { display: inline-block; margin-top: .25rem; font-size: .75rem; }

/* ---------- next step + follow-ups ---------- */
.next {
  margin-top: var(--s5); padding: var(--s5); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); box-shadow: var(--sh-1);
}
.next-t { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1rem; line-height: 1.6; }
.next-i { width: 1.3rem; height: 1.3rem; color: var(--accent); }
.next p { font-size: var(--t-sm); color: var(--muted); line-height: 1.85; margin: var(--s3) 0 0; }
.next .ctas { margin-top: var(--s4); }

.followups { margin-top: var(--s5); }
.fh { display: flex; align-items: center; gap: .45rem; font-size: var(--t-xs); color: var(--muted); letter-spacing: .04em; margin-bottom: var(--s3); }
.fh-i { width: 1rem; height: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: var(--t-sm); line-height: 1.5;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.chip span { color: var(--accent); opacity: .65; }
.chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: var(--s6) 0 var(--s7); font-size: var(--t-sm); color: var(--muted); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--s5); }
footer .h { font-size: var(--t-xs); letter-spacing: .04em; color: var(--text); margin-bottom: var(--s2); }
footer p { margin: 0 0 var(--s3); line-height: 1.85; }
footer a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong); }
footer a:hover { color: var(--accent); }
footer .rule { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); font-size: var(--t-xs); display: flex; flex-wrap: wrap; gap: var(--s4); }

@media (max-width: 40rem) {
  .shell { padding-inline: var(--s4); }
  body.doc main { padding: var(--s5) var(--s4) var(--s6); }
  .masthead { position: sticky; top: 0; z-index: 20; }
  .masthead .row { flex-wrap: wrap; gap: .35rem var(--s3); padding-block: .5rem; }
  .logo em { display: none; }
  .masthead nav { order: 3; flex: 1 0 100%; margin-left: 0; flex-wrap: wrap; gap: .05rem var(--s4); padding-bottom: .15rem; }
  .device .bar { flex-wrap: wrap; }
  .device .bar .tg { order: 3; flex: 1 0 100%; }
  .hero { padding: var(--s5) 0; }
  .answer { padding: var(--s4); border-radius: var(--r-lg); }
  .acard-b { padding: var(--s4) var(--s3); }
  .answer-meta { margin-left: 0; }
  .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .masthead, .toc, .themetoggle, .answer-f, .chips, .next .ctas, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main, .answer { max-width: none; }
  .acard, .answer { box-shadow: none; break-inside: avoid; }
  .band { background: none; }
}
/* anchor offset vs sticky header */
[id]{scroll-margin-top:96px}
@media (max-width:40rem){[id]{scroll-margin-top:72px}}
