:root {
  color-scheme: light dark;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: #f7f8fc;
  --surface: #ffffff;
  --inset: #eff1f7;
  --ink: #151925;
  --secondary: #46536a;
  --rule: #d6dce8;
  --control-rule: #838ba0;
  --accent: #5c35bb;
  --accent-hover: #48269c;
  --accent-ink: #ffffff;
  --active: #eee8ff;
  --stage: #111323;
  --stage-raised: #1b1a31;
  --stage-ink: #f4f3ff;
  --stage-secondary: #b8bfd7;
  --stage-accent: #c7b6ff;
  --stage-rule: #3d3d56;
  --gutter: clamp(1rem, 4.5vw, 3.25rem);
  --section-space: clamp(3.5rem, 8.7vw, 7.25rem);
  --header-offset: 4.5rem;
  --good: #166544;
  --bad: #a02c45;
  --radius: 0.65rem;
  scroll-padding-top: var(--header-offset);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0c0e18;
    --surface: #121522;
    --inset: #1a1f30;
    --ink: #f2f4ff;
    --secondary: #b8bfd4;
    --rule: #30364a;
    --control-rule: #7f89a1;
    --accent: #c6b4ff;
    --accent-hover: #daccff;
    --accent-ink: #1e113d;
    --active: #29213e;
    --good: #85dab1;
    --bad: #ff9bb1;
  }
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.56 var(--sans);
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }

h1, h2, h3, h4 { line-height: 1.13; }

h1 {
  font-size: clamp(2.125rem, 5.25vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.25rem);
  font-weight: 730;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.q, .opts, .reveal, .refs, .doc-card, .topic-list, .pack-card, a { overflow-wrap: anywhere; }

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.vh, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  z-index: 5;
  top: 0.6rem;
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--surface);
  font-weight: 700;
}

.container { width: min(1100px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.kicker {
  color: var(--secondary);
  font: 680 0.78rem/1.45 var(--mono);
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.kicker + h1, .kicker + h2 { margin-top: 0.65rem; }

.lead, .section-intro {
  color: var(--secondary);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin-top: 0.9rem;
}

.section { padding-block: var(--section-space); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.arrow { flex: none; font-size: 1.05em; line-height: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--page);
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.5rem);
  min-height: 64px;
}

.brand, .site-nav a, .header-download, .foot-links a, .crumbs a, .text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand, .header-download, .site-nav a, .foot-links a { text-decoration: none; }

.brand {
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.brand img { flex: none; border-radius: 0.4rem; }

.site-nav { display: flex; justify-content: center; }

.site-nav a {
  padding: 0 0.8rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 620;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }

.header-download {
  gap: 0.65rem;
  padding: 0 0.75rem;
  border: 1px solid var(--control-rule);
  border-radius: 0.4rem;
  color: var(--ink);
  font: 650 0.77rem/1 var(--mono);
}

.header-download:hover { background: var(--active); }

.hero {
  padding-top: clamp(2.25rem, 6vw, 5.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(1.75rem, 4.6vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(2rem, 4.5vw, 4rem);
}

.hero-copy .lead { max-width: 46ch; margin-top: 1.2rem; }

.cta-row { display: grid; justify-items: start; gap: 0.75rem; margin-top: 1.55rem; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.3;
}

.cta small { display: block; margin-top: 0.2rem; }
a.cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
a.cta:active { transform: translateY(1px); }
.hero-copy > p.cta { margin-top: 1.55rem; }
.price-note { color: var(--secondary); font-size: 0.875rem; }

.showcase {
  background: var(--stage);
  color: var(--stage-ink);
  border: 1px solid var(--stage-rule);
}

.hero-display, .results-display, .topic-preview { overflow: hidden; border-radius: var(--radius); }

.product-views, .task-views, .result-view, .topic-preview {
  background:
    linear-gradient(90deg, #b7a3ff13 1px, transparent 1px) center / 28px 28px,
    linear-gradient(#b7a3ff13 1px, transparent 1px) center / 28px 28px,
    radial-gradient(ellipse at 52% 100%, #352755, var(--stage) 74%);
}

.product-views {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.21;
}

.device {
  overflow: hidden;
  padding: 4px;
  border: 1px solid #7b719f;
  border-radius: clamp(0.65rem, 1.65vw, 1.15rem);
  background: #0a0a12;
  box-shadow: 0 0 0 1px #a593e81a, 0 14px 28px #05050a88;
}

.device img { width: 100%; border-radius: 0.68em; }

.study-screen, .map-screen { position: absolute; }

.study-screen { width: 43%; inset: 30% auto auto 7%; }
.map-screen { width: 47%; inset: 7% 7% auto auto; }

.showcase-caption {
  display: flex;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  color: var(--stage-secondary);
  background: var(--stage);
  border-top: 1px solid var(--stage-rule);
  font: 0.76rem/1.45 var(--mono);
}

.showcase-caption strong { color: var(--stage-ink); font-weight: 650; }

.facts, .foot-links, .private, .tags, .question-index ol, .opts, .refs, .steps {
  padding: 0;
  list-style: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-bottom: 0;
  background: var(--page);
  font: 620 0.82rem/1.4 var(--mono);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
}

.facts li + li { border-inline-start: 1px solid var(--rule); }
.facts li::before {
  content: "";
  flex: 0 0 0.36rem;
  height: 0.36rem;
  background: var(--accent);
}

.proof .section-heading { padding-top: 0.5rem; }
.text-action { gap: 0.65rem; margin-top: 1rem; font-weight: 650; }

.features, .private-section, .closing {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 2rem;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.feature {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--page);
}

.feature p, .steps p { margin-top: 0.65rem; color: var(--secondary); }
.feature p { max-width: 41ch; }
.feature.topic {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.25rem;
  align-items: center;
}

.topic-preview { height: clamp(15rem, 27vw, 19rem); }
.topic-preview .device { width: min(83%, 285px); margin: -3% auto 0; }

.hands-on { border-inline: 0; border-top: 0; }

.hands-on .split { align-items: center; }
.hands-on .kicker { color: var(--stage-accent); }
.hands-on .section-intro { color: var(--stage-secondary); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: var(--stage-secondary);
  font: 0.75rem/1.35 var(--mono);
}

.tags li { padding: 0.45em 0.62em; border: 1px solid var(--stage-rule); border-radius: 0.25rem; }

.task-display {
  overflow: hidden;
  border: 1px solid var(--stage-rule);
  border-radius: var(--radius);
}

.task-views {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.28;
}

.task-screen, .drill-screen { position: absolute; }
.task-screen { inset: 8% auto auto 10%; width: 44%; }
.drill-screen { inset: 30% 7% auto auto; width: 42%; }

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(1.75rem, 6vw, 5rem);
  align-items: start;
  margin-top: 2rem;
}

.steps { counter-reset: step; border-top: 1px solid var(--rule); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--accent);
  font: 650 0.84rem/1.6 var(--mono);
}

.result-view { overflow: hidden; padding-block: 4%; }
.result-screen { width: min(65%, 255px); margin-inline: auto; }

.private { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.private li { padding: 1.15rem; background: var(--page); }
.private span { display: block; margin-top: 0.35rem; color: var(--secondary); }

details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 44px;
  padding: 0.8rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 660;
  line-height: 1.4;
}

summary::-webkit-details-marker { display: none; }

details > summary::after {
  content: "";
  flex: 0 0 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-inline-end: 0.2rem;
}

details[open] > summary::after { transform: translateY(2px) rotate(225deg); }

details > summary:hover { color: var(--accent); }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details > div { padding-bottom: 1rem; color: var(--secondary); max-width: 61ch; }

.closing .split { align-items: center; }
.closing .cta-row { margin-top: 0; }

.site-footer { padding-block: 1.25rem 2rem; }
.practice-page .site-footer { border-top: 1px solid var(--rule); }
.foot-links { display: flex; gap: 0 1.35rem; flex-wrap: wrap; }
.foot-links a { color: var(--ink); font-size: 0.875rem; font-weight: 630; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { margin-top: 0.6rem; color: var(--secondary); font-size: 0.875rem; }

.doc { padding-block: clamp(1.8rem, 5.5vw, 4.5rem) var(--section-space); }
.practice-intro { max-width: 49rem; padding-bottom: 1.75rem; }
.practice-intro .lead { max-width: 64ch; }
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  margin-bottom: 0.65rem;
  color: var(--secondary);
  font: 0.8rem/1.45 var(--mono);
}

.small-note { max-width: 71ch; margin-top: 1.15rem; color: var(--secondary); font-size: 0.9rem; }

.practice-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.question-index {
  position: sticky;
  top: calc(var(--header-offset) + 0.25rem);
  padding: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.question-index ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(44px, 1fr));
  gap: 0.25rem;
  margin-top: 0.6rem;
}
.question-index a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--control-rule);
  border-radius: 0.3rem;
  color: var(--ink);
  text-decoration: none;
  font: 0.83rem/1 var(--mono);
}
.question-index a:hover { color: var(--accent); background: var(--active); }

.question-list { display: grid; gap: 1.1rem; min-width: 0; }

.q {
  --q-pad: clamp(0.9rem, 2.5vw, 1.65rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  scroll-margin-top: 0.65rem;
}

.q:has(h2:target) { border-color: var(--accent); }
.q h2 { scroll-margin-top: 0.55rem; }

.q > h2, .q > h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.8rem var(--q-pad);
  background: var(--inset);
  font: 700 0.82rem/1.45 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.q-kind { color: var(--secondary); text-transform: none; letter-spacing: 0; font-weight: 550; }
.q fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.q legend { max-inline-size: 100%; padding: 1rem var(--q-pad) 0; }

.opts {
  display: grid;
  gap: 0.45rem;
  margin: 1rem var(--q-pad);
}

.opts li, .opt-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  font-size: 0.95rem;
}

.opt-l {
  align-self: start;
  min-width: 1.4rem;
  padding: 0.15rem 0.3rem;
  border: 1px solid var(--rule);
  border-radius: 0.2rem;
  text-align: center;
  color: var(--secondary);
  font: 680 0.76rem/1.35 var(--mono);
}

.opts li { grid-template-columns: auto minmax(0, 1fr); }

.q details { border-top: 1px solid var(--rule); }
.q details > summary { padding-inline: var(--q-pad); color: var(--accent); border-radius: 0 0 var(--radius) var(--radius); }
.q details > summary:hover { background: var(--active); }
.q details[open] > summary { border-radius: 0; }

.reveal {
  padding: 0 var(--q-pad) var(--q-pad);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.reveal p { max-width: 72ch; }
.reveal p + p { margin-top: 1rem; }
.reveal .answer {
  padding: 0.75rem 0.85rem;
  border-inline-start: 2px solid var(--accent);
  background: var(--active);
}

.reveal h3, .reveal h4 { margin: 1.25rem 0 0.45rem; font-size: 1rem; }
.why { display: grid; gap: 0.5rem; padding-inline-start: 1.3rem; }

.refs {
  display: grid;
  border-top: 1px solid var(--rule);
  font: 0.8rem/1.45 var(--mono);
}

.refs li { padding: 0.1rem 0 0.65rem; border-bottom: 1px solid var(--rule); }
.refs a { display: flex; align-items: center; min-height: 44px; width: fit-content; max-width: 100%; padding-block: 0.35rem; }
.ref-loc { display: block; color: var(--secondary); }

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.pager a {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 0.75rem 0.9rem;
  min-height: 44px;
  border: 1px solid var(--control-rule);
  border-radius: 0.4rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.pager a:hover { background: var(--active); color: var(--accent); }
.pager small { color: var(--secondary); font: 0.75rem/1.45 var(--mono); }

.app-note { padding: clamp(0.85rem, 2.2vw, 1.25rem); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.app-note .cta-row { margin-top: 0; }
.app-note .cta small { max-width: 48ch; }

@media (max-width: 760px) {
  .split, .hero-grid, .flow-grid, .practice-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-grid, .flow-grid { gap: 1.75rem; }
  .hero-grid { align-items: start; }
  .hero-copy .lead { max-width: 50ch; }
  .hero-display { max-width: 35rem; }
  .results-display { max-width: 35rem; }
  .question-index { position: static; }
  .question-index ol { grid-template-columns: repeat(6, minmax(44px, 1fr)); }
}

@media (max-width: 580px) {
  :root { --header-offset: 1rem; }
  .site-header { position: static; }
  .site-header .container { grid-template-columns: minmax(0, 1fr) auto; gap: 0; min-height: 0; }
  .brand, .header-download { min-height: 44px; margin-block: 0.25rem; }
  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    border-top: 1px solid var(--rule);
  }
  .site-nav a { padding-inline: 0.65rem; }
  .hero-copy .lead { font-size: 1rem; }
  .product-views, .task-views { aspect-ratio: auto; padding-block: 5%; }
  .study-screen, .drill-screen, .desktop-caption { display: none; }
  .map-screen, .task-screen { position: static; width: min(76%, 255px); margin-inline: auto; }
  .map-screen { aspect-ratio: 0.76; }
  .task-screen { aspect-ratio: 0.70; }
  .result-screen { width: min(76%, 255px); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 0.8rem 0.65rem; }
  .facts li:nth-child(3) { border-inline-start: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .bento, .feature.topic, .private { grid-template-columns: minmax(0, 1fr); }
  .feature.topic { grid-column: auto; }
  .question-index ol { grid-template-columns: repeat(4, minmax(44px, 1fr)); }
  .pager { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .cta, .header-download, .question-index a, .opt-btn {
    transition: background-color 120ms ease, border-color 120ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.cta:active { transform: none; }
}

.narrow { max-width: 49rem; }
.document-page .site-header .container { grid-template-columns: auto 1fr; }
.doc-card, .topic-group, .table-wrap, .result {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.doc-card { padding: clamp(1rem, 4vw, 2.5rem); }
.doc-card h2, .study-aid > h2 { margin-top: 1.75rem; font-size: clamp(1.35rem, 3.3vw, 1.65rem); }
.doc-card p, .doc-card ul, .study-aid > ul { margin-top: 0.65rem; }
.doc-card .lead, .doc-mark { margin-bottom: 1rem; }
.doc-card ul, .study-aid > ul { padding-inline-start: 1.3rem; }
.doc-card li + li, .study-aid li + li { margin-top: 0.5rem; }
.document-page .site-footer { border-top: 1px solid var(--rule); }
.doc-card .lead { margin-top: 0.8rem; }

.packs-section { padding-bottom: 0; }
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.pack-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: clamp(0.9rem, 2.5vw, 1.45rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.pack-card h3 { font-size: 1.13rem; }
.pack-status, .weight, .topic-list span { color: var(--secondary); font: 0.8rem/1.45 var(--mono); }
.pack-status { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.pack-price { color: var(--accent); font-weight: 700; }
.pack-card a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; }

.topic-group { margin: 1rem 0; }
.topic-group h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--inset);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 1.2rem;
}
.topic-list { padding: 0; list-style: none; }
.topic-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 0.8rem;
  border-top: 1px solid var(--rule);
  padding: 0.2rem 1rem;
}
.topic-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 640; }
.table-wrap { margin: 1rem 0; overflow-x: auto; }
.ports, .weights { width: 100%; table-layout: fixed; border-collapse: collapse; }
.table-wrap caption { text-align: left; padding: 0.85rem; color: var(--secondary); font: 0.8rem/1.45 var(--mono); }
.table-wrap th, .table-wrap td {
  padding: 0.6rem clamp(0.35rem, 2vw, 0.85rem);
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.table-wrap thead { background: var(--inset); }
.ports th:nth-child(1) { width: 4.25rem; }
.ports th:nth-child(2) { width: 6.5rem; }
.ports th:nth-child(3) { width: 24%; }
.weights th:first-child { width: 50%; }
.weights th:nth-child(2) { width: 18%; }
.study-aid .app-note { margin-top: 1.75rem; }

.score, .result { padding: 0.85rem 1rem; }
.score { margin-top: 0.85rem; border-radius: var(--radius); background: var(--active); font-weight: 650; }
.result h2 { margin-bottom: 0.5rem; font-size: 1.45rem; }
.cta.pack-note { flex-direction: column; align-items: start; background: var(--active); color: var(--ink); }
.quiz .opts li { display: block; padding: 0; border: 0; }
.opt-btn {
  width: 100%;
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr);
  border-color: var(--control-rule);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.opt-btn:hover, .opt-btn.is-picked { border-color: var(--accent); background: var(--active); }
.opt-btn[aria-disabled="true"], .check-btn[aria-disabled="true"] { cursor: default; }
.opt-btn.is-right { border-color: var(--good); }
.opt-btn.is-wrong { border-color: var(--bad); }
.opt-tag { grid-column: 2; font-size: 0.85rem; font-weight: 700; }
.is-right .opt-tag, .verdict.is-right { color: var(--good); }
.is-wrong .opt-tag, .verdict.is-wrong { color: var(--bad); }
.verdict { margin: 0 var(--q-pad) 0.8rem; font-weight: 680; }
.check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 var(--q-pad) 1rem; }
.check-btn {
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.check-btn[aria-disabled="true"] { background: var(--inset); color: var(--secondary); border-color: var(--control-rule); }
.check-hint { color: var(--secondary); font-size: 0.9rem; }

@media (max-width: 580px) {
  .document-page .site-header .container { grid-template-columns: 1fr; }
  .table-wrap table { font-size: 0.875rem; }
  .ports { table-layout: auto; }
  .ports tr > :nth-child(-n + 2) { width: auto; white-space: nowrap; }
}

@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  .opt-btn.is-picked, .opt-btn.is-right, .opt-btn.is-wrong { outline: 1px solid Highlight; }
}
