:root {
  --navy: #17283b;
  --navy-soft: #243a50;
  --ink: #1d2a36;
  --muted: #64717d;
  --muted-dark: #485865;
  --paper: #fffefa;
  --canvas: #f3f1ea;
  --canvas-deep: #e9e6dd;
  --line: #d8d5ca;
  --line-strong: #bbb9b0;
  --blue: #236a9f;
  --blue-soft: #e5f1f8;
  --green: #28775f;
  --green-soft: #e5f2ec;
  --amber: #b66c18;
  --amber-soft: #fff0d8;
  --purple: #6d4e8a;
  --purple-soft: #eee8f4;
  --red: #a64036;
  --shadow: 0 18px 50px rgba(30, 43, 54, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -0.025em; line-height: 1.16; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h2, h3, h4 { font-weight: 720; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  color: #fff;
  background: var(--navy);
  border-radius: 5px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 64px);
  color: #f7fafc;
  background: var(--navy);
  border-bottom: 1px solid #31495f;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffd99e;
  border: 1px solid #667889;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}
.brand > span:last-child { display: grid; line-height: 1.12; }
.brand strong { font-size: 0.94rem; letter-spacing: 0.01em; }
.brand small { margin-top: 3px; color: #b8c6d2; font-size: 0.72rem; }
.header-status { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 4px 10px;
  border: 1px solid #53697d;
  border-radius: 999px;
  color: #d9e3ec;
  font-size: 0.72rem;
  font-weight: 750;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #66c29c; }
.status-pill.ungraded { color: #ffe0a9; border-color: #745e3b; }

.view-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(255, 254, 250, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.view-nav-inner {
  max-width: 1440px;
  min-height: 54px;
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 64px);
  overflow-x: auto;
}
.view-tab {
  position: relative;
  min-width: max-content;
  padding: 13px 15px 11px;
  color: var(--muted-dark);
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  font-weight: 750;
}
.view-tab::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
}
.view-tab:hover { color: var(--blue); }
.view-tab.active { color: var(--navy); }
.view-tab.active::after { background: var(--blue); }
.nav-count {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  margin-left: 4px;
  padding: 0 5px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.68rem;
}

main { min-height: calc(100vh - 180px); }
.view-panel { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px) 80px; }
.view-panel.active { animation: enter 180ms ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.state-card {
  width: min(620px, calc(100% - 32px));
  min-height: 160px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 80px auto;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.state-card p { margin: 4px 0 0; color: var(--muted); }
.state-card.error { border-color: #d8a59e; }
.loader {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 3px solid #dbe3e8;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50%; font-weight: 850; }

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  min-height: 520px;
  padding: clamp(48px, 8vw, 110px) 0 72px;
}
.kicker, .eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-copy h1 { max-width: 860px; margin: 0 0 24px; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 0.98; }
.hero-subtitle { max-width: 760px; margin-bottom: 30px; color: var(--muted-dark); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.primary-button, .secondary-button, .dark-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 780;
  text-decoration: none;
}
.primary-button { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.primary-button:hover { background: #195985; }
.secondary-button { color: var(--navy); background: var(--paper); border: 1px solid var(--line-strong); }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }
.dark-button { color: #fff; background: var(--navy); border: 1px solid var(--navy); }
.dark-button:hover { background: var(--navy-soft); }
.hero-source { margin: 20px 0 0; color: var(--muted); font-size: 0.75rem; }

.plain-note {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  color: #eef5fa;
  background: var(--navy);
  border-radius: 2px 32px 2px 2px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plain-note::before { content: ""; position: absolute; inset: 18px; border: 1px solid #405a71; border-radius: 1px 22px 1px 1px; }
.plain-note > div { position: relative; z-index: 1; }
.plain-note .eyebrow { color: #8dbddd; }
.plain-note h2 { max-width: 360px; margin-bottom: 14px; color: #fff; font: 500 1.65rem/1.17 Georgia, serif; }
.plain-note p:last-child { margin: 0; color: #bfceda; font-size: 0.86rem; }
.note-number { position: absolute; z-index: 0; top: -34px; right: 18px; color: #223b51; font: 500 8rem/1 Georgia, serif; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 82px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.metric-strip > div { min-height: 102px; padding: 19px 20px; background: var(--paper); }
.metric-strip strong { display: block; color: var(--navy); font: 500 2rem/1 Georgia, serif; }
.metric-strip span { display: block; margin-top: 9px; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.metric-strip .metric-caution { background: var(--amber-soft); }
.metric-strip .metric-caution strong { color: var(--amber); }

.content-section { margin: 0 0 88px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 20px; }
.paper-card, .detail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(30, 43, 54, 0.04);
}
.problem-card { padding: clamp(24px, 4vw, 42px); }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.section-heading h2 { margin: 0; font-size: 1.55rem; }
.outline-pill, .mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-dark);
  font-size: 0.66rem;
  font-weight: 770;
  white-space: nowrap;
}
.problem-text { margin: 36px 0 24px; color: var(--navy); font: 500 clamp(1.14rem, 2vw, 1.45rem)/1.7 Georgia, serif; }
.text-link, .footer-link {
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  font-weight: 780;
}
.text-link:hover, .footer-link:hover { text-decoration: underline; }

.checklist-card { padding: 30px; background: #f9f8f2; }
.checklist-card h2 { margin-bottom: 24px; font-size: 1.35rem; }
.proof-checklist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.proof-checklist li { display: grid; grid-template-columns: 33px 1fr; gap: 13px; padding: 18px 0; border-top: 1px solid var(--line); }
.proof-checklist > li > span { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: 0.7rem; font-weight: 850; }
.checklist-title { display: flex; justify-content: space-between; gap: 12px; }
.checklist-title small { color: var(--blue); font-size: 0.67rem; font-weight: 800; white-space: nowrap; }
.proof-checklist p { margin: 7px 0 0; color: var(--muted); font-size: 0.79rem; }

.section-intro { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 24px; }
.section-intro h2 { margin: 0; font: 500 clamp(1.9rem, 3vw, 2.7rem)/1.1 Georgia, serif; }
.section-intro > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 0.84rem; }
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 0; padding: 0; background: var(--line); border: 1px solid var(--line); list-style: none; }
.workflow li { min-height: 205px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 22px; background: var(--paper); }
.workflow li > span { color: var(--blue); font: 500 1.55rem/1 Georgia, serif; }
.workflow strong { color: var(--navy); font-size: 0.9rem; }
.workflow p { margin: 8px 0 0; color: var(--muted); font-size: 0.74rem; }

.split-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 20px; }
.review-card { padding: clamp(28px, 4vw, 48px); color: #f0f5f8; background: var(--navy); border-radius: var(--radius); }
.review-card h2 { max-width: 720px; margin: 24px 0 18px; color: #fff; font: 500 clamp(1.8rem, 3vw, 2.6rem)/1.12 Georgia, serif; }
.review-card > p { max-width: 800px; color: #c9d6df; }
.review-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #a9bdcc; font-size: 0.7rem; font-weight: 750; text-transform: uppercase; }
.warning-badge { display: inline-flex; padding: 5px 9px; color: #753f05; background: #ffd89d; border-radius: 999px; font-size: 0.67rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; }
.review-card blockquote, .inline-review blockquote { margin: 24px 0; padding: 14px 18px; color: #fff; border-left: 3px solid #e7aa54; font-family: Georgia, serif; font-size: 1.05rem; }
.review-card .small-note { color: #9fb2c0; font-size: 0.75rem; }
.review-card .dark-button { margin-top: 8px; color: var(--navy); background: #fff; border-color: #fff; }
.glossary-card { padding: clamp(28px, 4vw, 42px); background: #e8edf0; border-radius: var(--radius); }
.glossary-card h2 { margin-bottom: 22px; font: 500 1.8rem/1.1 Georgia, serif; }
.glossary { margin: 0; }
.glossary > div { padding: 14px 0; border-top: 1px solid #cbd3d8; }
.glossary dt { color: var(--navy); font-size: 0.78rem; font-weight: 820; }
.glossary dd { margin: 4px 0 0; color: var(--muted-dark); font-size: 0.75rem; }

.page-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; padding: 70px 0 36px; }
.page-heading h1 { margin: 0 0 12px; font-size: clamp(2.4rem, 5vw, 4.5rem); }
.page-heading p:last-child { max-width: 760px; margin: 0; color: var(--muted-dark); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 5px; color: var(--muted); font-size: 0.7rem; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-dot.displayed { background: var(--blue); }
.legend-dot.sampled { background: var(--green); }
.legend-dot.not-sampled { background: #a4a9aa; }
.legend-dot.control { background: var(--purple); }
.meaning-callout { margin-bottom: 18px; padding: 13px 16px; color: #65420f; background: var(--amber-soft); border: 1px solid #e8c38e; border-radius: 8px; font-size: 0.78rem; }

.exploration-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 28px; }
.segmented { display: flex; padding: 3px; background: #deddd6; border-radius: 8px; }
.segmented button { min-height: 34px; padding: 5px 12px; color: var(--muted-dark); background: transparent; border: 0; border-radius: 6px; font-size: 0.74rem; font-weight: 750; }
.segmented button.active { color: var(--navy); background: var(--paper); box-shadow: 0 1px 4px rgba(20, 30, 40, 0.12); }
.search-box { width: min(300px, 100%); position: relative; }
.search-box svg { position: absolute; top: 11px; left: 12px; width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-box input, .round-select select { width: 100%; min-height: 40px; padding: 8px 12px 8px 38px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 7px; }

.journey { display: grid; gap: 34px; }
.journey-round { background: rgba(255, 254, 250, 0.42); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.round-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 28px; color: #fff; background: var(--navy); }
.round-header h2 { margin: 3px 0 0; color: #fff; font: 500 1.55rem/1.2 Georgia, serif; }
.round-number { color: #94b8d1; font-size: 0.67rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.round-summary { color: #b9c8d3; font-size: 0.7rem; text-align: right; }
.journey-stage { display: grid; grid-template-columns: 58px 1fr; }
.stage-rail { position: relative; display: flex; justify-content: center; padding-top: 27px; }
.stage-rail::after { content: ""; position: absolute; top: 54px; bottom: -27px; left: 50%; width: 1px; background: var(--line-strong); }
.journey-stage:last-child .stage-rail::after { display: none; }
.stage-rail span { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--blue); border: 4px solid var(--canvas); border-radius: 50%; font-size: 0.66rem; font-weight: 850; }
.stage-body { min-width: 0; padding: 26px 28px 30px 0; }
.stage-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 15px; }
.stage-heading .eyebrow { margin-bottom: 3px; }
.stage-heading h3 { margin: 0; font-size: 1.08rem; }
.stage-stat { color: var(--muted); font-size: 0.68rem; font-weight: 720; white-space: nowrap; }
.mini-badge.displayed { color: var(--blue); background: var(--blue-soft); border-color: #afd1e5; }
.mini-badge.control { color: var(--purple); background: var(--purple-soft); border-color: #c7b6d6; }
.mini-badge.neutral { color: var(--muted-dark); background: #f0f0ec; }
.reasoning-paper { padding: 20px 23px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 7px; }
.reasoning-paper p:last-child { margin-bottom: 0; }
.candidate-grid, .investigation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.candidate-card, .investigation-card { min-width: 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid #9fa7aa; border-radius: 8px; }
.candidate-card.displayed { border-top-color: var(--blue); background: #f9fcfe; }
.candidate-card.sampled { border-top-color: var(--green); }
.candidate-card.not_sampled { color: var(--muted); background: #f2f1ed; border-top-color: #a8aaab; }
.candidate-card.is-control { border-top-color: var(--purple); }
.candidate-topline { min-height: 25px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; color: var(--muted); font-size: 0.65rem; }
.candidate-alias { min-width: 28px; color: var(--navy); font-weight: 850; }
.candidate-parent { padding-right: 7px; border-right: 1px solid var(--line); }
.decision-label { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 750; }
.displayed .decision-label { color: var(--blue); }
.sampled .decision-label { color: var(--green); }
.candidate-card h4, .investigation-card h4 { margin: 0 0 9px; font-size: 0.9rem; }
.candidate-direction { max-height: 130px; overflow: auto; color: var(--muted-dark); font-size: 0.73rem; }
.candidate-direction p:last-child { margin-bottom: 0; }
.unsampled-group { margin-top: 12px; background: #e8e7e1; border: 1px solid var(--line); border-radius: 8px; }
.unsampled-group > summary, .summary-details > summary, .technical-details > summary { cursor: pointer; list-style: none; }
.unsampled-group > summary::-webkit-details-marker, .summary-details > summary::-webkit-details-marker, .technical-details > summary::-webkit-details-marker { display: none; }
.unsampled-group > summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 15px; }
.unsampled-group > summary span { color: var(--navy); font-size: 0.75rem; font-weight: 800; }
.unsampled-group > summary small { color: var(--muted); font-size: 0.66rem; }
.unsampled-group[open] > summary { border-bottom: 1px solid var(--line); }
.candidate-grid.compact { padding: 12px; }
.investigation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.investigation-card { border-top-color: var(--green); }
.investigation-card.expanded { grid-column: 1 / -1; }
.card-label { margin: 0 0 5px; color: var(--green); font-size: 0.6rem; font-weight: 820; letter-spacing: 0.06em; text-transform: uppercase; }
.investigation-card .takeaway { color: var(--muted-dark); font-size: 0.72rem; }
.investigation-card .takeaway p { margin-bottom: 8px; }
.model-output-note { margin: 11px 0 0; padding: 8px 10px; color: var(--muted); background: #f1f1ed; border-radius: 5px; font-size: 0.64rem; }
.summary-details { margin-top: 12px; border-top: 1px solid var(--line); }
.summary-details > summary { padding-top: 10px; color: var(--blue); font-size: 0.69rem; font-weight: 750; }
.summary-details > div { max-height: 440px; overflow: auto; margin-top: 11px; padding: 13px; background: #f4f4f0; border-radius: 5px; font-size: 0.72rem; }
.answer-chip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.answer-chip { min-height: 100px; display: flex; flex-direction: column; align-items: flex-start; padding: 13px; text-align: left; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
.answer-chip:hover { border-color: var(--purple); }
.answer-chip.displayed { background: var(--blue-soft); border-color: var(--blue); }
.answer-chip span { color: var(--muted); font-size: 0.64rem; }
.answer-chip strong { margin: 6px 0 auto; font-size: 0.75rem; }
.answer-chip small { color: var(--blue); font-size: 0.62rem; font-weight: 750; }
.empty-state { padding: 34px; color: var(--muted); background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 8px; text-align: center; }
.search-empty { margin-bottom: 14px; }

.round-select { width: 190px; display: grid; gap: 5px; color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.round-select select { padding-left: 11px; }
.answers-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.answer-index-panel { position: sticky; top: 72px; max-height: calc(100vh - 95px); padding: 8px; overflow-y: auto; background: #e5e3dc; border: 1px solid var(--line); border-radius: 10px; }
.answer-list { display: grid; gap: 6px; }
.answer-index-item { width: 100%; padding: 13px; text-align: left; color: var(--ink); background: var(--paper); border: 1px solid transparent; border-radius: 7px; }
.answer-index-item:hover { border-color: var(--line-strong); }
.answer-index-item.active { border-color: var(--blue); box-shadow: inset 3px 0 var(--blue); }
.answer-index-item.displayed { background: #f5fbfe; }
.answer-index-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 0.64rem; }
.answer-index-top i { color: var(--blue); font-style: normal; font-weight: 800; }
.answer-index-item strong { display: block; margin: 5px 0 10px; font-size: 0.75rem; }
.answer-index-item small { color: var(--muted); font-size: 0.61rem; }
.token-track { width: 100%; height: 3px; display: block; margin-bottom: 5px; background: #e1e1dc; border-radius: 3px; overflow: hidden; }
.token-track i { height: 100%; display: block; background: var(--purple); }
.answer-detail { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.answer-detail-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding: 26px 30px 22px; border-bottom: 1px solid var(--line); }
.answer-detail-header h2 { margin: 0; font: 500 2rem/1.05 Georgia, serif; }
.answer-origin { margin: 8px 0 0; color: var(--muted); font-size: 0.73rem; }
.inline-review { margin: 24px 30px 0; padding: 22px; background: var(--amber-soft); border: 1px solid #e8c38e; border-radius: 8px; }
.inline-review h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.inline-review p { color: #5f4b2e; font-size: 0.79rem; }
.inline-review blockquote { margin: 14px 0; color: #5f3b0e; border-left-color: var(--amber); }
.inline-review small { color: #765f3d; }
.neutral-notice { margin: 24px 30px 0; padding: 13px 15px; color: var(--muted-dark); background: #f0f0ec; border-radius: 6px; font-size: 0.75rem; }
.answer-metadata { display: flex; gap: 1px; margin: 24px 30px 0; background: var(--line); border: 1px solid var(--line); }
.answer-metadata span { flex: 1; padding: 10px 12px; color: var(--muted); background: #f8f8f4; font-size: 0.65rem; }
.answer-metadata strong { display: block; color: var(--navy); font-size: 0.78rem; }
.token-footnote { margin: 7px 30px 0; color: var(--muted); font-size: 0.63rem; }
.answer-paper { max-width: 920px; margin: 0 auto; padding: 42px clamp(28px, 6vw, 76px) 70px; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.75; }
.answer-paper h3, .answer-paper h4 { margin-top: 2em; font-family: Inter, sans-serif; }

.download-link { white-space: nowrap; }
.details-grid, .transparency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.detail-card { padding: 26px; }
.detail-card h2 { margin-bottom: 20px; font-size: 1.25rem; }
.fact-list { display: grid; gap: 0; margin: 0; }
.fact-list > div { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr); gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.fact-list dt { color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.fact-list dd { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 0.74rem; font-weight: 670; text-align: right; }
.diagnostic-card { display: flex; gap: 18px; align-items: flex-start; margin: 18px 0; padding: 24px 28px; background: var(--amber-soft); border: 1px solid #e4be82; border-radius: 10px; }
.diagnostic-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; color: #fff; background: var(--amber); border-radius: 50%; font-weight: 850; }
.diagnostic-card h2 { margin: 0 0 7px; font-size: 1.05rem; }
.diagnostic-card p:last-child { margin: 0; color: #6a5432; font-size: 0.77rem; }
.transparency-grid { margin-top: 18px; }
.safe-card { border-top: 4px solid var(--green); }
.privacy-card { border-top: 4px solid var(--purple); }
.check-list, .privacy-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li, .privacy-list li { position: relative; padding-left: 24px; color: var(--muted-dark); font-size: 0.75rem; }
.check-list li::before, .privacy-list li::before { position: absolute; top: 0; left: 0; font-weight: 850; }
.check-list li::before { content: "✓"; color: var(--green); }
.privacy-list li::before { content: "–"; color: var(--purple); }
.rubric-card { margin-top: 18px; padding: 30px; }
.rubric-card .rendered-markdown { max-width: 960px; margin-top: 30px; color: var(--muted-dark); font-size: 0.82rem; }
.technical-details { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.technical-details > summary { padding: 15px 18px; color: var(--navy); font-size: 0.75rem; font-weight: 800; }
.technical-details[open] > summary { border-bottom: 1px solid var(--line); }
.technical-details .fact-list { padding: 10px 18px 18px; }

.rendered-markdown p { margin: 0 0 1em; }
.rendered-markdown ul, .rendered-markdown ol { margin: 0 0 1em; padding-left: 1.45em; }
.rendered-markdown li { margin: 0.35em 0; }
.rendered-markdown blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--line-strong); }
.rendered-markdown code { padding: 1px 4px; background: #ecece7; border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
.rendered-markdown hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.math-block { max-width: 100%; margin: 1.2em 0; overflow-x: auto; text-align: center; }
mjx-container { max-width: 100%; overflow-x: auto; overflow-y: hidden; }

.site-footer { min-height: 78px; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px clamp(18px, 4vw, 64px); color: #b8c6d1; background: var(--navy); }
.site-footer p { margin: 0; font-size: 0.72rem; }
.site-footer .footer-link { color: #c9ddeb; }

@media (max-width: 1120px) {
  .investigation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .metric-strip > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .hero-shell { grid-template-columns: 1fr; min-height: 0; padding-top: 58px; }
  .hero-copy h1 { font-size: clamp(2.7rem, 13vw, 4.8rem); }
  .plain-note { min-height: 260px; }
  .overview-grid, .split-feature, .details-grid, .transparency-grid { grid-template-columns: 1fr; }
  .section-intro, .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading { padding-top: 48px; }
  .legend { justify-content: flex-start; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .answers-layout { grid-template-columns: 1fr; }
  .answer-index-panel { position: static; max-height: none; }
  .answer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { min-height: 64px; padding: 9px 14px; }
  .brand-mark { width: 37px; height: 37px; }
  .header-status { gap: 4px; }
  .status-pill { padding-right: 7px; padding-left: 7px; font-size: 0.64rem; }
  .view-nav-inner { padding: 0 7px; }
  .view-tab { padding-right: 10px; padding-left: 10px; font-size: 0.75rem; }
  .nav-count { display: none; }
  .view-panel { padding-right: 13px; padding-left: 13px; }
  .hero-shell { padding-top: 40px; padding-bottom: 45px; }
  .hero-copy h1 { font-size: 2.75rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 58px; }
  .metric-strip > div { min-height: 88px; padding: 14px; }
  .content-section { margin-bottom: 58px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .workflow { grid-template-columns: 1fr; }
  .workflow li { min-height: 150px; }
  .exploration-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .round-header { align-items: flex-start; flex-direction: column; }
  .round-summary { text-align: left; }
  .journey-stage { grid-template-columns: 42px 1fr; }
  .stage-body { padding-right: 13px; }
  .stage-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .candidate-grid, .investigation-grid, .answer-chip-grid { grid-template-columns: 1fr; }
  .unsampled-group > summary { align-items: flex-start; flex-direction: column; }
  .answers-heading { align-items: stretch; }
  .round-select { width: 100%; }
  .answer-list { grid-template-columns: 1fr; }
  .answer-detail-header { align-items: flex-start; flex-direction: column; padding: 22px; }
  .inline-review, .neutral-notice, .answer-metadata, .token-footnote { margin-right: 18px; margin-left: 18px; }
  .answer-metadata { flex-direction: column; }
  .answer-paper { padding: 32px 22px 50px; font-size: 0.94rem; }
  .fact-list > div { grid-template-columns: 1fr; gap: 3px; }
  .fact-list dd { text-align: left; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
