:root {
  color-scheme: light dark;
  --navy: #14213d;
  --navy-2: #213456;
  --gold: #c8a84b;
  --teal: #087f73;
  --ink: #162033;
  --muted: #62718a;
  --line: #d8e0e8;
  --surface: #ffffff;
  --surface-soft: #f2f5f8;
  --page: #edf1f5;
  --green: #26724a;
  --amber: #986800;
  --red: #a33a36;
  --content: 1180px;
  --reading: 860px;
  --radius: 6px;
  --font: Onest, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: var(--font); line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p, td, th { overflow-wrap: anywhere; }
h1, h2, h3 { letter-spacing: 0; }

.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 9px 12px; color: white; background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { color: white; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.15); }
.site-header__inner { max-width: var(--content); min-height: 70px; display: flex; align-items: center; gap: 28px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { color: #bac7da; font-size: .69rem; }
.site-nav { display: flex; align-items: center; gap: 21px; margin-left: auto; }
.site-nav a { position: relative; padding: 24px 0; color: #d8e1ee; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: white; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--gold); }
.header-action { padding: 8px 11px; color: var(--navy); background: white; border-radius: 4px; font-size: .75rem; font-weight: 800; text-decoration: none; white-space: nowrap; }

main:not(.article-shell) { padding-bottom: 76px; }
.workbench, .change-band, .drivers, .role-band, .surface-grid, .evidence-preview, .kb-entry-grid { max-width: var(--content); margin: 0 auto; padding: 64px 24px 0; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 30px; align-items: stretch; }
.workbench__intro { display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: .69rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
h1 { max-width: 18ch; margin: 0; font-size: clamp(2rem, 4.1vw, 3.55rem); line-height: 1.02; }
.lede { max-width: 66ch; margin: 18px 0 0; color: #405069; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); background: transparent; font-size: .76rem; font-weight: 800; text-decoration: none; }
.button--primary { color: white; background: var(--navy); border-color: var(--navy); }
.button--secondary { background: var(--surface); }
.text-link { display: inline-flex; margin-top: 17px; color: var(--navy); font-size: .78rem; font-weight: 800; }

.live-panel { min-width: 0; padding: 26px; color: white; background: var(--navy); border-radius: var(--radius); }
.live-panel .eyebrow { color: #b9c6da; }
.live-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.live-panel__head h2 { margin: 0; font-size: 1.36rem; line-height: 1.2; }
.health-pill { padding: 4px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #dce5f0; font-size: .65rem; font-weight: 800; }
.health-pill[data-state="ok"] { color: #b7f0cb; border-color: rgba(99,210,141,.45); }
.health-pill[data-state="limited"] { color: #f4dda0; border-color: rgba(232,190,81,.45); }
.health-pill[data-state="error"] { color: #ffc0ba; border-color: rgba(228,99,88,.45); }
.live-panel__summary { margin: 12px 0 0; color: #d7e1ef; font-size: .84rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.metric { min-width: 0; padding: 15px 10px 15px 0; }
.metric span, .metric strong { display: block; }
.metric span { color: #aebbd0; font-size: .66rem; }
.metric strong { margin-top: 5px; font-size: 1.25rem; }
.live-panel__quality { margin-top: 18px; padding-left: 12px; border-left: 3px solid #8fa1bb; }
.live-panel__quality[data-quality-state="complete"] { border-left-color: #61cc89; }
.live-panel__quality[data-quality-state="limited"] { border-left-color: #e0b949; }
.live-panel__quality[data-quality-state="unavailable"] { border-left-color: #e46b61; }
.live-panel__quality strong, .live-panel__quality span { display: block; }
.live-panel__quality strong { font-size: .8rem; }
.live-panel__quality span { margin-top: 2px; color: #b9c6da; font-size: .68rem; }
.live-panel__note { margin: 14px 0 0; color: #aebbd0; font-size: .65rem; }

.section-heading { max-width: 720px; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem, 2.3vw, 2.05rem); line-height: 1.15; }
.section-heading > p:not(.eyebrow) { margin: 11px 0 0; color: var(--muted); font-size: .82rem; }
.section-heading--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading--row > p { max-width: 54ch; margin: 0 !important; text-align: right; }
.change-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 17px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.change-list article { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.change-list article:last-child { border-right: 0; }
.change-list span, .change-list strong { display: block; }
.change-list span { color: var(--muted); font-size: .68rem; }
.change-list strong { margin-top: 5px; font-size: .84rem; }
[data-delta="unfavorable"] { color: var(--red); }
[data-delta="favorable"] { color: var(--green); }

.driver-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 17px; }
.driver-list article { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy-2); border-radius: var(--radius); }
.driver-list article > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.driver-list article span { padding: 3px 7px; color: var(--muted); background: var(--surface-soft); border-radius: 3px; font-size: .64rem; font-weight: 800; }
.driver-list article p { margin: 11px 0 0; color: var(--muted); font-size: .77rem; }
.driver-list article small { display: block; margin-top: 13px; color: var(--muted); font-size: .66rem; }
.empty-note { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }

.evidence-preview { padding-top: 70px; }
.evidence-preview__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 18px; }
.evidence-preview__grid article { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--radius); }
.evidence-preview__grid article:nth-child(2) { border-top-color: var(--gold); }
.evidence-preview__grid article:nth-child(3) { border-top-color: var(--navy); }
.evidence-preview__grid span { color: var(--muted); font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.evidence-preview__grid strong { display: block; margin-top: 11px; font-size: .95rem; line-height: 1.25; }
.evidence-preview__grid p { margin: 8px 0 0; color: var(--muted); font-size: .76rem; }
.evidence-preview__grid a { display: inline-flex; margin-top: 16px; color: var(--navy); font-size: .74rem; font-weight: 850; text-decoration: none; }

.role-band { padding-top: 70px; }
.role-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 17px; border-top: 1px solid var(--line); }
.role-list article { padding: 20px 22px 0 0; }
.role-list strong { font-size: .86rem; }
.role-list p { margin: 7px 0 0; color: var(--muted); font-size: .74rem; }

.kb-entry-grid { padding-top: 76px; }
.link-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 18px; }
.link-card-grid a, .link-card-grid article { min-width: 0; padding: 17px; color: inherit; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: var(--radius); text-decoration: none; }
.link-card-grid a:hover, .link-card-grid a:focus-visible { border-left-color: var(--gold); }
.link-card-grid strong, .link-card-grid span { display: block; }
.link-card-grid strong { font-size: .84rem; }
.link-card-grid span { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.link-card-grid article > span { width: fit-content; margin: 0 0 10px; padding: 2px 7px; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); border-radius: 999px; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.link-card-grid article > span[data-status="template"] { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.link-card-grid article > span[data-status="blocked"] { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.link-card-grid article p { margin: 6px 0 0; color: var(--muted); font-size: .68rem; }
.link-card-grid--three { margin-top: 42px; }

.surface-grid { padding-top: 76px; }
.surface-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 19px; }
.surface { min-width: 0; display: flex; flex-direction: column; min-height: 205px; padding: 22px; color: inherit; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); text-decoration: none; }
.surface--knowledge { border-top-color: var(--gold); }
.surface--operations { border-top-color: var(--teal); }
.surface--communications { border-top-color: #62718a; }
.surface__kind { color: var(--muted); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.surface strong { margin-top: 14px; font-size: 1.08rem; }
.surface > span:not(.surface__kind):not(.surface__action) { margin-top: 7px; color: var(--muted); font-size: .77rem; }
.surface__action { margin-top: auto; padding-top: 24px; color: var(--navy); font-size: .75rem; font-weight: 850; }

.article-shell { max-width: var(--reading); margin: 0 auto; padding: 66px 24px 80px; }
.article-shell--wide { max-width: var(--content); }
.page-header h1 { max-width: 22ch; }
.page-header .actions { margin-top: 23px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 46px; border-top: 1px solid var(--line); }
.method-grid article { position: relative; padding: 24px 0 24px 42px; border-bottom: 1px solid var(--line); }
.method-grid article > span { position: absolute; left: 0; top: 24px; width: 26px; height: 26px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 50%; font-size: .65rem; font-weight: 850; }
.method-grid h2 { margin: 0; font-size: .98rem; }
.method-grid p { margin: 7px 0 0; color: var(--muted); font-size: .76rem; }
.example-band, .reading-band, .correction-band { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-top: 50px; padding: 26px; border-radius: var(--radius); }
.example-band { background: var(--surface); border: 1px solid var(--line); }
.example-band h2, .reading-band h2, .correction-band h2 { margin: 0; font-size: 1.28rem; }
.example-band > p, .reading-band p, .correction-band p { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }
.glossary { margin-top: 50px; }
.glossary dl { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; border-top: 1px solid var(--line); }
.glossary dl div { padding: 17px 18px 17px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 850; }
.glossary dd { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }
.reading-band { color: white; background: var(--navy); }
.reading-band .eyebrow, .reading-band p { color: #b8c6da; }
.reading-band .button { justify-self: end; color: var(--navy); background: white; border-color: white; }
.limitations { margin-top: 50px; }
.limitations h2 { font-size: 1.25rem; }
.limitations ul { margin: 15px 0 0; padding-left: 20px; }
.limitations li { margin-top: 8px; color: var(--muted); font-size: .78rem; }

.architecture-map { display: grid; grid-template-columns: 1fr .92fr 1fr; gap: 16px; align-items: stretch; margin-top: 46px; }
.architecture-map > div { min-width: 0; padding: 22px; border-radius: var(--radius); }
.architecture-map span, .architecture-map strong { display: block; }
.architecture-map span { font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.architecture-map strong { margin-top: 15px; font-size: 1.08rem; }
.architecture-map p { margin: 7px 0 0; font-size: .76rem; }
.architecture-map__source { color: var(--navy); background: #e1e8f1; }
.architecture-map__core { color: white; background: var(--navy); }
.architecture-map__outputs { display: grid; gap: 6px; padding: 0 !important; }
.architecture-map__outputs > div { padding: 12px 15px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius); }
.architecture-map__outputs strong { margin-top: 3px; font-size: .88rem; }
.architecture-map__outputs p { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.boundary-table { margin-top: 54px; }
.table-wrap { margin-top: 17px; overflow-x: auto; }
.boundary-table table { min-width: 720px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .72rem; }
th { color: var(--muted); font-size: .64rem; text-transform: uppercase; }

.quality-board { margin-top: 42px; padding: 26px; color: white; background: var(--navy); border-radius: var(--radius); }
.quality-board h2 { margin: 0; font-size: 1.32rem; }
.quality-board > div:first-child > p:not(.eyebrow) { color: #b8c6da; font-size: .78rem; }
.quality-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.quality-metrics article { padding: 15px 12px 15px 0; }
.quality-metrics span, .quality-metrics strong { display: block; }
.quality-metrics span { color: #b8c6da; font-size: .66rem; }
.quality-metrics strong { margin-top: 5px; font-size: 1.25rem; }
.quality-board__time { margin: 14px 0 0; color: #b8c6da; font-size: .68rem; }
.pack-summary { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; margin-top: 42px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pack-summary h2 { margin: 0; font-size: 1.24rem; }
.pack-summary p { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }
.pack-score { padding: 18px; color: white; background: var(--navy); border-radius: var(--radius); }
.pack-score span, .pack-score strong, .pack-score small { display: block; }
.pack-score span { color: #b8c6da; font-size: .64rem; font-weight: 850; text-transform: uppercase; }
.pack-score strong { margin-top: 7px; font-size: 2rem; line-height: 1; }
.pack-score small { margin-top: 7px; color: #b8c6da; font-size: .65rem; }
.evidence-sections { margin-top: 52px; }
.evidence-current { display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: 22px; align-items: stretch; margin-top: 42px; padding: 26px; color: white; background: var(--navy); border-radius: var(--radius); }
.evidence-current .eyebrow { color: #b8c6da; }
.evidence-current h2 { margin: 0; font-size: 1.48rem; }
.evidence-current p { margin: 9px 0 0; color: #d7e1ef; font-size: .82rem; }
.evidence-current__time { color: #b8c6da !important; font-size: .68rem !important; }
.evidence-current .quality-metrics { margin-top: 0; border-top-color: rgba(255,255,255,.16); border-bottom-color: rgba(255,255,255,.16); }
.source-section { margin-top: 48px; }
.source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 16px; }
.source-list article { display: grid; grid-template-columns: 10px 1fr; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.source-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.source-list article[data-source-state="limited"] i { background: var(--amber); }
.source-list article[data-source-state="failed"] i { background: var(--red); }
.source-list strong, .source-list span { display: block; }
.source-list strong { font-size: .75rem; }
.source-list span { color: var(--muted); font-size: .67rem; }
.limitations-panel { margin-top: 34px; padding: 22px; background: #fff9ed; border: 1px solid #ead9b3; border-radius: var(--radius); }
.limitations-panel h2 { margin: 0; font-size: 1.02rem; }
.limitations-panel ul { margin: 13px 0 0; padding-left: 18px; }
.limitations-panel li { margin-top: 6px; color: #5c4a27; font-size: .75rem; }
.technical-details { margin-top: 36px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.technical-details summary { cursor: pointer; font-size: .78rem; font-weight: 800; }
.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.link-list a { padding: 13px; background: var(--surface-soft); border-radius: 4px; text-decoration: none; }
.link-list strong, .link-list span { display: block; }
.link-list strong { font-size: .74rem; }
.link-list span { margin-top: 3px; color: var(--muted); font-size: .66rem; }

.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; margin-top: 46px; border-top: 1px solid var(--line); }
.policy-grid article { padding: 22px 0; border-bottom: 1px solid var(--line); }
.policy-grid h2 { margin: 0; font-size: .95rem; }
.policy-grid p { margin: 7px 0 0; color: var(--muted); font-size: .76rem; }
.correction-band { background: var(--surface); border: 1px solid var(--line); }
.correction-band .button { justify-self: end; }

.worked-cases { margin-top: 54px; }
.case-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 18px; }
.case-list article { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.case-list span { display: inline-flex; padding: 3px 7px; color: var(--navy); background: var(--surface-soft); border-radius: 3px; font-size: .65rem; font-weight: 850; }
.case-list h3 { margin: 13px 0 0; font-size: 1rem; }
.case-list p { margin: 8px 0 0; color: var(--muted); font-size: .76rem; }
.case-list ul { margin: 12px 0 0; padding-left: 18px; }
.case-list li { margin-top: 5px; color: var(--muted); font-size: .72rem; }

.version-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 46px; }
.version-grid article { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); }
.version-grid article:nth-child(2) { border-top-color: var(--gold); }
.version-grid article:nth-child(3) { border-top-color: var(--teal); }
.version-grid article:nth-child(4) { border-top-color: var(--amber); }
.version-grid span { color: var(--muted); font-size: .64rem; font-weight: 850; text-transform: uppercase; }
.version-grid h2 { margin: 13px 0 0; font-size: 1.03rem; }
.version-grid p { margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
.version-grid strong { display: block; margin-top: 14px; font-size: .72rem; }

.site-footer { display: grid; grid-template-columns: 1fr 2fr auto; gap: 30px; align-items: start; padding: 28px max(24px, calc((100vw - var(--content)) / 2)); color: #c8d2e1; background: #0c1628; }
.site-footer strong, .site-footer span { display: block; }
.site-footer span, .site-footer p { margin: 3px 0 0; color: #9eacc0; font-size: .68rem; }
.site-footer__brand a { display: inline-flex; margin-top: 9px; color: #d5deeb; font-size: .68rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer nav a { color: #d5deeb; font-size: .68rem; }
.not-found { max-width: 660px; min-height: 70vh; margin: 0 auto; padding: 90px 24px; }

@media (max-width: 960px) {
  .site-header__inner { flex-wrap: wrap; gap: 10px 18px; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { order: 3; width: 100%; gap: 17px; overflow-x: auto; }
  .site-nav a { padding: 7px 0; }
  .header-action { margin-left: auto; }
  .workbench { grid-template-columns: 1fr; }
  .workbench__intro { padding-bottom: 0; }
  .evidence-current, .evidence-preview__grid, .version-grid, .pack-summary { grid-template-columns: 1fr; }
  .role-list { grid-template-columns: 1fr 1fr; gap: 24px; }
  .architecture-map { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .site-nav { flex-wrap: wrap; justify-content: flex-start; gap: 6px 18px; overflow: visible; }
  .site-nav a { padding: 4px 0; }
  .workbench, .change-band, .drivers, .role-band, .surface-grid, .evidence-preview, .kb-entry-grid { padding-right: 15px; padding-left: 15px; }
  .article-shell { padding: 44px 16px 64px; }
  .change-list, .quality-metrics { grid-template-columns: 1fr 1fr; }
  .change-list article:nth-child(2), .quality-metrics article:nth-child(2) { border-right: 0; }
  .change-list article:nth-child(-n+2), .quality-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .driver-list, .surface-list, .method-grid, .glossary dl, .source-list, .policy-grid, .link-card-grid, .case-list { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: visible; }
  .boundary-table table { min-width: 0; table-layout: fixed; }
  th, td { padding: 11px 9px; font-size: .66rem; word-break: break-word; }
  .section-heading--row { display: block; }
  .section-heading--row > p { margin-top: 8px !important; text-align: left; }
  .example-band, .reading-band, .correction-band { grid-template-columns: 1fr; }
  .reading-band .button, .correction-band .button { justify-self: start; }
  .site-footer { grid-template-columns: 1fr; gap: 14px; }
  .site-footer nav { grid-column: auto; }
}

@media (max-width: 430px) {
  h1 { font-size: 2rem; }
  .metric-grid, .change-list, .quality-metrics, .role-list { grid-template-columns: 1fr; }
  .metric { border-bottom: 1px solid rgba(255,255,255,.15); }
  .metric:last-child { border-bottom: 0; }
  .change-list article, .quality-metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #e8edf5; --muted: #a3b0c2; --line: #334057; --surface: #172238; --surface-soft: #202d45; --page: #0f1828; }
  .lede { color: #c6d0df; }
  .text-link,
  .surface__action,
  .evidence-preview__grid a { color: #c8d7ea; }
  [data-delta="unfavorable"] { color: #ffaaa2; }
  [data-delta="favorable"] { color: #92d6a8; }
  .architecture-map__source { color: #dfe9f6; background: #20314d; }
  .limitations-panel { background: #2a251b; border-color: #5e4c2c; }
  .limitations-panel li { color: #e3d3ae; }
  .button--secondary { color: var(--ink); }
  .case-list span { color: #dfe9f6; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
