: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: 12px;
  --radius-lg: 18px;
  --shadow: 0 18px 46px rgba(20, 33, 61, .09);
  --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:
    radial-gradient(circle at 12% 0%, rgba(63, 102, 167, .08), transparent 28rem),
    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 {
  position: sticky;
  z-index: 20;
  top: 0;
  color: white;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(16px);
}
.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: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px rgba(255,255,255,.1);
  font-weight: 850;
}
.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); }
.site-nav__more { position: relative; color: #d8e1ee; }
.site-nav__more > summary { padding: 24px 0; cursor: pointer; font-size: .78rem; font-weight: 700; list-style: none; white-space: nowrap; }
.site-nav__more > summary::-webkit-details-marker { display: none; }
.site-nav__more > summary::after { content: "⌄"; display: inline-block; margin-left: 5px; color: #aebbd0; transition: transform .18s ease; }
.site-nav__more[open] > summary::after { transform: rotate(180deg); }
.site-nav__more:hover, .site-nav__more:focus-within, .site-nav__more[open], .site-nav__more.is-current { color: white; }
.site-nav__more.is-current > summary::before { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--gold); }
.site-nav__panel { position: absolute; z-index: 25; top: calc(100% - 1px); right: 0; display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 18px; width: min(720px, calc(100vw - 32px)); padding: 17px; color: #d8e1ee; background: #0c1628; border: 1px solid rgba(255,255,255,.16); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px rgba(8, 16, 31, .28); }
.site-nav__group { display: grid; align-content: start; gap: 3px; min-width: 0; }
.site-nav__group > span { padding: 0 8px 5px; color: #8fa1bb; font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.site-nav__panel a { display: block; padding: 7px 8px; border-radius: 6px; color: #d8e1ee; font-size: .69rem; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.site-nav__panel a:hover, .site-nav__panel a:focus-visible, .site-nav__panel a[aria-current="page"] { background: rgba(255,255,255,.08); color: white; }
.site-nav__panel a[aria-current="page"]::after { display: none; }
.header-action { padding: 9px 13px; color: var(--navy); background: white; border-radius: 9px; 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: 72px 24px 0; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr); gap: 42px; 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(2.25rem, 4.6vw, 4.25rem); line-height: .98; letter-spacing: -.035em; }
.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: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: transparent; font-size: .76rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(20, 33, 61, .12); }
.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: 30px;
  color: white;
  background:
    linear-gradient(145deg, rgba(75, 116, 187, .22), transparent 42%),
    linear-gradient(160deg, var(--navy-2), #0c162a 72%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.live-panel .eyebrow { color: #b9c6da; }
.live-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.live-panel__head h2 { max-width: 17ch; margin: 0; font-size: 1.5rem; line-height: 1.15; }
.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; }
.product-flow { display: grid; gap: 0; margin: 22px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.15); list-style: none; }
.product-flow li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.product-flow li > span { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; color: #aebbd0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .64rem; font-weight: 800; }
.product-flow strong, .product-flow small { display: block; }
.product-flow strong { font-size: .82rem; }
.product-flow small { margin-top: 3px; color: #b9c6da; font-size: .68rem; line-height: 1.45; }

.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; }
.evidence-sections--compact { margin-top: 38px; }
.candidate-source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.surface-grid { padding-top: 76px; }

.task-entry { max-width: var(--content); margin: 0 auto; padding: 58px 24px 0; }
.task-entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.task-entry-grid a { min-width: 0; display: flex; flex-direction: column; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.task-entry-grid a:nth-child(2) { border-top-color: var(--teal); }
.task-entry-grid a:nth-child(3) { border-top-color: var(--navy); }
.task-entry-grid a:nth-child(4) { border-top-color: var(--red); }
.task-entry-grid a:hover, .task-entry-grid a:focus-visible { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.task-entry-grid strong { font-size: .86rem; }
.task-entry-grid span { margin-top: 8px; color: var(--muted); font-size: .72rem; }
.task-entry-grid em { margin-top: auto; padding-top: 16px; color: var(--navy); font-size: .68rem; font-weight: 850; font-style: normal; }

.audience-band { max-width: var(--content); margin: 0 auto; padding: 64px 24px 0; }
.audience-band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 19px; }
.audience-band__grid article { min-width: 0; padding: 21px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius); }
.audience-band__grid article:nth-child(2) { border-left-color: var(--gold); }
.audience-band__grid article:nth-child(3) { border-left-color: var(--navy); }
.audience-band__grid span { display: block; color: var(--muted); font-size: .64rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.audience-band__grid strong { display: block; margin-top: 10px; font-size: .94rem; line-height: 1.25; }
.audience-band__grid p { margin: 7px 0 0; color: var(--muted); font-size: .74rem; }
.conversion-band { max-width: var(--content); margin: 64px auto 0; padding: 27px 30px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 28px; align-items: center; color: white; background: linear-gradient(135deg, var(--navy), #263d65); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.conversion-band h2 { max-width: 24ch; margin: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.08; }
.conversion-band p:not(.eyebrow) { max-width: 70ch; margin: 10px 0 0; color: #c4d0e0; font-size: .78rem; }
.conversion-band .actions { justify-content: flex-end; margin-top: 0; }
.conversion-band .button--primary { color: var(--navy); background: white; border-color: white; }
.conversion-band .text-link { color: #dbe5f2; }

.pilot-callout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; margin-top: 44px; padding: 25px; color: white; background: linear-gradient(135deg, var(--navy), #263d65); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pilot-callout h2 { max-width: 22ch; margin: 0; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.12; }
.pilot-callout .eyebrow { color: #b8c6da; }
.pilot-callout > p { margin: 0; color: #d0dae8; font-size: .8rem; }
.pilot-grid, .pilot-delivery, .pilot-boundary { margin-top: 50px; }
.pilot-grid__items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); }
.pilot-grid__items article { min-width: 0; padding: 19px 16px; background: var(--surface); }
.pilot-grid__items span { display: grid; width: 27px; height: 27px; place-items: center; color: white; background: var(--navy); border-radius: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .61rem; font-weight: 850; }
.pilot-grid__items h3 { margin: 13px 0 0; font-size: .84rem; line-height: 1.2; }
.pilot-grid__items p { margin: 7px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.pilot-delivery__grid, .pilot-boundary__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.pilot-delivery__grid article, .pilot-boundary__grid article { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pilot-delivery__grid article { border-top: 3px solid var(--teal); }
.pilot-delivery__grid article:nth-child(2) { border-top-color: var(--gold); }
.pilot-delivery__grid article:nth-child(3) { border-top-color: var(--navy); }
.pilot-delivery__grid strong, .pilot-boundary__grid strong { display: block; font-size: .86rem; }
.pilot-delivery__grid p, .pilot-boundary__grid p { margin: 7px 0 0; color: var(--muted); font-size: .73rem; }
.pilot-boundary { padding: 22px; color: #24324a; background: #fff9ed; border: 1px solid #ead9b3; border-radius: var(--radius-lg); }
.pilot-boundary .eyebrow { color: #7a6844; }
.pilot-boundary__grid article { background: color-mix(in srgb, #ffffff 78%, #fff9ed); border-color: #ead9b3; }
.pilot-boundary__grid p { color: #5c4a27; }
.pilot-boundary .text-link { margin-top: 20px; color: var(--navy); }
.surface-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 22px; }
.surface-list--core { grid-template-columns: repeat(3, 1fr); }
.surface {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
  color: inherit;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 33, 61, .045);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.surface:hover, .surface:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--navy) 30%, var(--line)); box-shadow: var(--shadow); }
.surface--knowledge { border-top-color: var(--gold); }
.surface--operations { border-top-color: var(--teal); }
.surface--communications { border-top-color: #62718a; }
.surface__index { position: absolute; top: 18px; right: 20px; color: color-mix(in srgb, var(--muted) 48%, transparent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; font-weight: 800; }
.surface__kind { color: var(--muted); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.surface strong { margin-top: 24px; font-size: 1.22rem; letter-spacing: -.015em; }
.surface > span:not(.surface__kind):not(.surface__action):not(.surface__index) { margin-top: 8px; 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); }
.wide-context-rail { display: none; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.wide-context-rail h2 { margin: 0; font-size: 1.05rem; line-height: 1.2; }
.wide-context-rail > p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.wide-context-rail__links { display: grid; gap: 8px; margin-top: 18px; }
.wide-context-rail__links a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 11px; color: var(--navy); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; font-size: .68rem; font-weight: 850; text-decoration: none; }
.wide-context-rail__links a:hover, .wide-context-rail__links a:focus-visible { border-color: var(--gold); text-decoration: underline; }
.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; }
.quality-board__legend, .source-summary__metric-note, .case-contract__metric-note { margin: 14px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.coverage-contract, .timestamp-legend, .contract-catalog, .claim-card { margin-top: 28px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.coverage-contract__grid, .timestamp-legend__grid, .contract-catalog__grid, .claim-card__grid { display: grid; gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); }
.coverage-contract__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coverage-contract__grid article, .timestamp-legend__grid span, .contract-catalog__grid a, .claim-card__grid article { min-width: 0; padding: 14px; background: var(--surface-soft); }
.coverage-contract__grid strong, .coverage-contract__grid span, .timestamp-legend__grid strong, .timestamp-legend__grid small, .contract-catalog__grid strong, .contract-catalog__grid span, .contract-catalog__grid small, .claim-card__grid strong, .claim-card__grid span { display: block; }
.coverage-contract__grid strong, .contract-catalog__grid strong, .claim-card__grid strong { font-size: .74rem; }
.coverage-contract__grid span, .timestamp-legend__grid small, .contract-catalog__grid span, .claim-card__grid span { margin-top: 6px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.coverage-contract__grid code, .timestamp-legend__grid code { font-size: .62rem; overflow-wrap: anywhere; }
.coverage-contract__note, .timestamp-legend > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.45; }
.timestamp-legend { display: grid; grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr); gap: 20px; align-items: start; background: var(--surface-soft); }
.timestamp-legend h2 { margin: 0; font-size: 1.05rem; }
.timestamp-legend__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.timestamp-legend__grid strong { font-size: .68rem; }
.contract-catalog { margin-top: 34px; }
.contract-catalog__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.contract-catalog__grid a { text-decoration: none; }
.contract-catalog__grid a:hover, .contract-catalog__grid a:focus-visible { outline: 1px solid var(--gold); outline-offset: -1px; }
.contract-catalog__grid small { margin-top: 9px; color: var(--muted); font-size: .58rem; line-height: 1.35; }
.claim-card { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: 22px; align-items: start; background: var(--surface-soft); }
.claim-card h2 { margin: 0; font-size: 1.05rem; }
.claim-card p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.claim-card__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.claim-card__grid article:first-child { border-top: 3px solid var(--green); }
.claim-card__grid article:last-child { border-top: 3px solid var(--red); }
.claim-card__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px 18px; }
.case-identity-boundary { margin: 22px 0 0; padding: 13px 15px; color: var(--muted); background: var(--surface-soft); border-left: 3px solid var(--gold); border-radius: 3px; font-size: .7rem; line-height: 1.5; }
.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); }
.trajectory-section { margin-top: 48px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trajectory-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(440px, .75fr); gap: 24px; margin-top: 20px; align-items: start; }
.trajectory-chart-panel { min-width: 0; padding: 18px; background: var(--surface-soft); border-radius: calc(var(--radius) - 2px); }
.trajectory-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-size: .68rem; }
.trajectory-legend span { display: inline-flex; align-items: center; gap: 7px; }
.trajectory-legend i { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--navy); }
.trajectory-legend i[data-trajectory-key="sss"] { background: var(--teal); }
.trajectory-chart { display: block; width: 100%; height: auto; min-height: 250px; margin-top: 10px; overflow: visible; }
.trajectory-chart text { fill: var(--muted); font-family: inherit; font-size: 12px; }
.trajectory-chart line[data-grid] { stroke: var(--line); stroke-width: 1; }
.trajectory-chart polyline[data-series="prs"] { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trajectory-chart polyline[data-series="sss"] { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trajectory-chart circle[data-series="prs"] { fill: var(--navy); }
.trajectory-chart circle[data-series="sss"] { fill: var(--teal); }
.trajectory-chart__caption { margin: 10px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.trajectory-table-wrap { min-width: 0; overflow-x: auto; }
.trajectory-table { min-width: 560px; }
.trajectory-table caption { padding-bottom: 10px; text-align: left; font-size: .72rem; font-weight: 850; }
.trajectory-table th, .trajectory-table td { font-variant-numeric: tabular-nums; }
.trajectory-table td:nth-child(2), .trajectory-table td:nth-child(3), .trajectory-table td:nth-child(5) { white-space: nowrap; }
.trajectory-note { margin-top: 18px; padding: 13px 15px; color: var(--muted); background: var(--surface-soft); border-left: 3px solid var(--gold); border-radius: 3px; font-size: .72rem; line-height: 1.5; }
.trajectory-section[data-trajectory-state="error"] .trajectory-note { border-left-color: var(--red); }
.trajectory-section .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
.source-section { margin-top: 48px; }
.source-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); }
.source-summary > div { min-width: 0; padding: 14px 15px; background: var(--surface-soft); }
.source-summary span, .source-summary strong { display: block; }
.source-summary span { color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.source-summary strong { margin-top: 7px; font-size: .76rem; line-height: 1.35; }
.source-summary__note { margin: 10px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.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, .source-list small { display: block; }
.source-list strong { font-size: .75rem; }
.source-list span { color: var(--muted); font-size: .67rem; }
.source-list small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.source-registry-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 18px; padding: 16px 18px; background: var(--surface-soft); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 4px; }
.source-registry-note .eyebrow { margin: 0; }
.source-registry-note strong, .source-registry-note p { display: block; }
.source-registry-note strong { margin-top: 5px; font-size: .78rem; line-height: 1.35; }
.source-registry-note p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.45; }
.source-registry-note .text-link { white-space: nowrap; }
.source-registry-note[data-source-registry-state="error"] { border-left-color: var(--red); }
.freshness-matrix-panel { margin-top: 24px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.freshness-matrix-panel[data-freshness-state="error"] { border-color: var(--red); }
.freshness-matrix__legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; color: var(--muted); font-size: .65rem; }
.freshness-matrix__legend span { display: inline-flex; align-items: center; gap: 7px; }
.freshness-matrix__legend i, .freshness-matrix__cell i { width: 8px; height: 8px; flex: 0 0 auto; display: inline-block; border-radius: 50%; background: var(--amber); }
.freshness-matrix__legend i[data-timestamp-legend="present"], .freshness-matrix__cell[data-timestamp-state="present"] i { background: var(--green); }
.freshness-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 15px; background: var(--line); border: 1px solid var(--line); }
.freshness-matrix__item { min-width: 0; padding: 14px 15px; background: var(--surface-soft); }
.freshness-matrix__heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.freshness-matrix__heading strong { min-width: 0; font-size: .74rem; }
.freshness-matrix__heading span { flex: 0 0 auto; color: var(--muted); font-size: .61rem; text-align: right; }
.freshness-matrix__cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.freshness-matrix__cell { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 7px; align-items: center; min-width: 0; padding: 8px 9px; background: var(--page); border-left: 2px solid var(--amber); border-radius: 3px; }
.freshness-matrix__cell[data-timestamp-state="present"] { border-left-color: var(--green); }
.freshness-matrix__cell small, .freshness-matrix__cell strong { grid-column: 2; display: block; min-width: 0; }
.freshness-matrix__cell i { grid-row: 1 / span 2; grid-column: 1; }
.freshness-matrix__cell small { color: var(--muted); font-size: .58rem; }
.freshness-matrix__cell strong { margin-top: 2px; overflow-wrap: anywhere; font-size: .65rem; font-variant-numeric: tabular-nums; line-height: 1.25; }
.freshness-matrix__note { margin: 12px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.revision-timeline-panel { margin-top: 24px; padding: 20px; background: var(--surface-soft); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.revision-timeline-panel[data-revision-state="error"] { border-left-color: var(--red); }
.revision-timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.revision-timeline__item { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 10px; min-width: 0; padding: 12px 13px; background: var(--page); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 4px; }
.revision-timeline__item[data-revision-state="observed_and_retrieved"] { border-left-color: var(--green); }
.revision-timeline__item[data-revision-state="missing"] { border-left-color: var(--red); }
.revision-timeline__item > i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--amber); }
.revision-timeline__item[data-revision-state="observed_and_retrieved"] > i { background: var(--green); }
.revision-timeline__item[data-revision-state="missing"] > i { background: var(--red); }
.revision-timeline__item strong, .revision-timeline__item span, .revision-timeline__item small { display: block; min-width: 0; }
.revision-timeline__item strong { font-size: .72rem; }
.revision-timeline__item span { margin-top: 4px; font-size: .65rem; font-variant-numeric: tabular-nums; }
.revision-timeline__item small { margin-top: 3px; color: var(--muted); font-size: .59rem; line-height: 1.35; }
.revision-timeline__note { margin: 12px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.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; }

.case-workflow { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.8fr); gap: 26px; align-items: stretch; margin-top: 48px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case-workflow__intro { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.case-workflow__intro h2 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
.case-workflow__intro > p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); font-size: .76rem; }
.case-workflow__note { margin-top: 18px; padding: 12px 13px; background: var(--surface-soft); border-left: 3px solid var(--gold); border-radius: 4px; }
.case-workflow__note strong, .case-workflow__note span { display: block; }
.case-workflow__note strong { font-size: .68rem; }
.case-workflow__note span { margin-top: 4px; color: var(--muted); font-size: .66rem; }
.case-workflow__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-workflow__steps li { min-width: 0; padding: 15px 13px 14px; border-left: 1px solid var(--line); }
.case-workflow__steps li:first-child { border-left: 0; }
.case-workflow__steps li > span { width: 27px; height: 27px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; font-weight: 850; }
.case-workflow__steps strong, .case-workflow__steps p, .case-workflow__steps a { display: block; }
.case-workflow__steps strong { margin-top: 11px; font-size: .75rem; }
.case-workflow__steps p { min-height: 4.7em; margin: 5px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.case-workflow__steps a { margin-top: 12px; color: var(--navy); font-size: .64rem; font-weight: 850; text-decoration: none; }
.case-workflow__steps a:hover, .case-workflow__steps a:focus-visible { text-decoration: underline; }
.case-compare { margin-top: 42px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case-compare__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.case-compare__grid article { min-width: 0; padding: 16px 14px; background: var(--surface-soft); }
.case-compare__grid span, .case-compare__grid strong, .case-compare__grid small { display: block; }
.case-compare__grid span { color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.case-compare__grid strong { margin-top: 9px; font-size: .92rem; line-height: 1.2; }
.case-compare__grid small { margin-top: 7px; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.case-compare__note { margin: 18px 0 0; padding: 13px 15px; color: var(--muted); background: var(--surface-soft); border-left: 3px solid var(--gold); border-radius: 3px; font-size: .72rem; line-height: 1.5; }
.case-compare[data-case-compare-state="error"] .case-compare__note { border-left-color: var(--red); }
.case-compare .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
.case-contract { margin-top: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case-contract[data-case-contract-state="error"] { border-color: var(--red); }
.case-contract__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.case-contract__grid article { min-width: 0; padding: 15px 14px; background: var(--surface-soft); }
.case-contract__grid span, .case-contract__grid strong, .case-contract__grid small { display: block; }
.case-contract__grid span { color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.case-contract__grid strong { margin-top: 8px; font-size: .82rem; line-height: 1.25; overflow-wrap: anywhere; }
.case-contract__grid small { margin-top: 6px; color: var(--muted); font-size: .63rem; line-height: 1.4; }
.case-contract__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 22px; margin-top: 22px; }
.case-contract__body h3 { margin: 0; font-size: .78rem; }
.case-contract__refs { display: grid; gap: 7px; margin-top: 10px; }
.case-contract__refs a { color: var(--navy); font-size: .68rem; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.case-contract__refs a:hover, .case-contract__refs a:focus-visible { text-decoration: underline; }
.case-contract__refs span { color: var(--muted); font-size: .68rem; }
.case-contract__note { margin: 10px 0 0; padding: 13px 15px; color: var(--muted); background: var(--surface-soft); border-left: 3px solid var(--gold); border-radius: 3px; font-size: .7rem; line-height: 1.5; }
.case-contract .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.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; }
.case-evidence-refs { display: grid; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.case-evidence-refs strong { color: var(--muted); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.case-evidence-refs a { color: var(--navy); font-size: .68rem; font-weight: 800; text-decoration: none; }
.case-evidence-refs a:hover, .case-evidence-refs a:focus-visible { text-decoration: underline; }
.case-evidence-refs small { color: var(--muted); font-size: .63rem; line-height: 1.45; }

.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, .site-nav__more > summary { padding: 7px 0; }
  .header-action { margin-left: auto; }
  .workbench { grid-template-columns: 1fr; }
  .workbench__intro { padding-bottom: 0; }
  .conversion-band, .pilot-callout { grid-template-columns: 1fr; }
  .conversion-band .actions { justify-content: flex-start; margin-top: 4px; }
  .pilot-grid__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .surface-list--core { grid-template-columns: 1fr 1fr; }
  .task-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-current, .evidence-preview__grid, .version-grid, .pack-summary, .trajectory-layout, .timestamp-legend, .claim-card { grid-template-columns: 1fr; }
  .source-summary, .freshness-matrix, .revision-timeline { grid-template-columns: 1fr; }
  .coverage-contract__grid, .timestamp-legend__grid, .contract-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim-card__grid { margin-top: 0; }
  .claim-card__actions { grid-column: auto; }
  .source-registry-note { grid-template-columns: 1fr; }
  .source-registry-note .text-link { white-space: normal; }
  .case-workflow { grid-template-columns: 1fr; }
  .case-workflow__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; }
  .case-workflow__steps li { border-top: 1px solid var(--line); }
  .case-workflow__steps li:nth-child(4) { border-left: 0; }
  .case-compare__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-contract__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-contract__body { 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, .site-nav__more > summary { padding: 4px 0; }
  .site-nav__panel { position: absolute; left: 0; right: auto; grid-template-columns: repeat(2, minmax(130px, 1fr)); width: min(620px, calc(100vw - 30px)); }
  .workbench, .change-band, .drivers, .role-band, .surface-grid, .evidence-preview, .kb-entry-grid, .task-entry { padding-right: 15px; padding-left: 15px; }
  .audience-band { padding-right: 15px; padding-left: 15px; }
  .conversion-band { margin-right: 15px; margin-left: 15px; padding: 22px; }
  .task-entry-grid { grid-template-columns: 1fr; }
  .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, .surface-list--core, .method-grid, .glossary dl, .source-list, .policy-grid, .link-card-grid, .case-list { grid-template-columns: 1fr; }
  .audience-band__grid, .pilot-grid__items, .pilot-delivery__grid, .pilot-boundary__grid { grid-template-columns: 1fr; }
  .pilot-callout { padding: 20px; }
  .pilot-boundary { padding: 18px; }
  .candidate-source-grid { grid-template-columns: 1fr; }
  .case-workflow__steps { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .case-workflow__steps li, .case-workflow__steps li:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .case-workflow__steps li:first-child { border-top: 0; }
  .case-workflow__steps p { min-height: 0; }
  .case-compare { padding: 18px; }
  .case-compare__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-contract { padding: 18px; }
  .case-contract__grid { grid-template-columns: 1fr 1fr; }
  .coverage-contract, .timestamp-legend, .contract-catalog, .claim-card { padding: 18px; }
  .coverage-contract__grid, .timestamp-legend__grid, .contract-catalog__grid, .claim-card__grid { 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; }
  .trajectory-section { padding: 18px; }
  .trajectory-chart-panel { padding: 13px; }
  .trajectory-chart { min-height: 220px; }
  .trajectory-table-wrap { margin-right: -2px; }
  .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; }
  .case-compare__grid { grid-template-columns: 1fr; }
  .case-contract__grid { 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; }
  .case-evidence-refs a { color: #c8d7ea; }
}

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

/* Wide composition: give large canvases their own reading rhythm instead of
   enlarging the 1180px desktop stage indefinitely. */
@media (min-width: 961px) and (max-width: 1199px) {
  .workbench { grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr); gap: 28px; }
  .workbench__intro { padding-top: 12px; }
  h1 { max-width: 21ch; font-size: clamp(2.7rem, 4.2vw, 3.35rem); }
  .live-panel { padding: 24px; }
}

@media (min-width: 701px) and (max-width: 960px) {
  h1 { max-width: 24ch; font-size: clamp(2.6rem, 6vw, 3.65rem); }
  .workbench { padding-top: 56px; }
  .candidate-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .workbench { gap: 56px; }
  .workbench__intro { padding-top: 16px; }
  .live-panel { padding: 32px; }
}

@media (min-width: 1440px) {
  :root { --content: min(1600px, calc(100vw - 96px)); }
  .site-header__inner { gap: 36px; }
  .workbench { grid-template-columns: minmax(0, 1.16fr) minmax(480px, .84fr); gap: 72px; padding-top: 92px; }
  .workbench__intro { padding: 12px 0 18px; }
  h1 { max-width: 22ch; font-size: clamp(3.5rem, 4vw, 5.35rem); }
  .lede { max-width: 72ch; font-size: 1.05rem; }
  .change-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .driver-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .evidence-preview__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .surface-list--core { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .link-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .candidate-source-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .version-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .article-shell:not(.article-shell--wide) { max-width: min(1440px, calc(100vw - 96px)); }
  .article-shell:not(.article-shell--wide) .page-header { max-width: 1120px; }
  .article-shell--wide .page-header { max-width: min(1800px, 100%); }
  .article-shell--wide .page-header h1 { max-width: 30ch; }
  .article-shell--wide .page-header .lede { max-width: 96ch; }
  .article-shell--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); column-gap: 32px; align-items: start; }
  .article-shell--wide > .page-header { grid-column: 1; grid-row: 1; max-width: none; }
  .article-shell--wide > .wide-context-rail { display: block; grid-column: 2; grid-row: 1; margin-top: 66px; }
  .article-shell--wide > :not(.page-header):not(.wide-context-rail) { grid-column: 1 / -1; }
}

@media (min-width: 2200px) {
  :root { --content: min(2800px, calc(100vw - 128px)); }
  .site-header__inner { min-height: 78px; }
  .site-nav { gap: 28px; }
  .site-nav a, .site-nav__more > summary { padding-top: 28px; padding-bottom: 28px; }
  .workbench { grid-template-columns: minmax(0, 1.22fr) minmax(560px, .78fr); gap: 96px; padding-top: 112px; }
  h1 { max-width: 24ch; font-size: clamp(4rem, 4.1vw, 6rem); }
  .live-panel__head h2 { font-size: 1.7rem; }
  .product-flow li { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 17px 0; }
  .surface-list--core { gap: 22px; }
  .surface { min-height: 270px; padding: 28px; }
  .link-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .candidate-source-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .link-card-grid a, .link-card-grid article { padding: 20px; }
  .article-shell:not(.article-shell--wide) { max-width: min(2400px, calc(100vw - 128px)); }
  .article-shell:not(.article-shell--wide) .method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
  .article-shell:not(.article-shell--wide) .glossary dl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
  .article-shell:not(.article-shell--wide) .policy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
  .article-shell--wide .page-header { max-width: min(2400px, 100%); }
  .article-shell--wide .page-header h1 { max-width: 34ch; }
  .article-shell--wide .page-header .lede { max-width: 110ch; }
  .article-shell--wide { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); column-gap: 48px; }
  .article-shell--wide > .wide-context-rail { margin-top: 82px; }
  .site-footer { gap: 48px; }
  .pilot-page { max-width: min(2000px, calc(100vw - 128px)); }
  .pilot-page .page-header h1 { max-width: 25ch; }
  .pilot-page .pilot-callout { grid-template-columns: minmax(0, .72fr) minmax(0, .9fr); }
}
