/* AI Governance Accelerator: design system. Light editorial surface, one accent, reserved status colors. */
:root {
  --paper: #f6f4ee; --surface: #ffffff; --sunken: #efece3; --ink: #14171c; --ink-2: #434954; --ink-3: #69707b;
  --rule: #d9d5c8; --rule-2: #e8e5da; --accent: #1f3a8a; --accent-ink: #16296a; --accent-soft: #e7ebf7;
  --ok: #1c6b45; --ok-bg: #e2f0e7; --warn: #855600; --warn-bg: #f7ecd0; --crit: #a12222; --crit-bg: #f7e2df;
  --t-low: #c7d1ea; --t-mod: #8c9fd6; --t-high: #4862b6; --t-crit: #1a2968;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --r: 6px; --wrap: 1180px; --shadow: 0 1px 2px rgba(20, 23, 28, .05), 0 8px 24px -12px rgba(20, 23, 28, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h1, h2, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.018em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.14; }
h3 { font-size: 1.05rem; } h4 { font-size: .92rem; }
p { margin: 0 0 .9em; } p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 1.15em; } li { margin-bottom: .3em; }
code, .mono { font-family: var(--mono); font-size: .86em; }
pre { font: 12.5px/1.6 var(--mono); background: #171a21; color: #e6e3d8; padding: 16px 18px; border-radius: var(--r); overflow-x: auto; margin: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.wide { width: min(1400px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); } .quiet { color: var(--ink-3); } .small { font-size: 13px; } .xs { font-size: 12px; }
.eyebrow { font: 500 11.5px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.lede { font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.measure { max-width: 68ch; }

/* header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(246, 244, 238, .93); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 58px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand b { font: 500 1.08rem var(--serif); letter-spacing: -.01em; }
.brand span { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { white-space: nowrap; padding: 7px 9px; border-radius: var(--r); font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav a:hover { background: var(--sunken); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.site-head .nav-toggle { display: none; margin-left: auto; }
.demo-bar { background: var(--ink); color: #d8d5c9; font: 500 11.5px/1.4 var(--mono); letter-spacing: .03em; padding: 7px 0; }
.demo-bar a { color: #fff; }

/* buttons, pills, inputs */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 600 13.5px/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: var(--ink-3); color: var(--ink); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; } .btn.primary:hover { background: #2a2f38; color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.accent:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; } .btn.sm { padding: 6px 10px; font-size: 12.5px; } .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font: 600 11.5px/1.6 var(--sans); background: var(--sunken); color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.plain::before { display: none; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.crit { background: var(--crit-bg); color: var(--crit); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.tier { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.pill.tier::before { border-radius: 2px; width: 9px; height: 9px; }
.pill.tier.Low::before { background: var(--t-low); } .pill.tier.Moderate::before { background: var(--t-mod); } .pill.tier.High::before { background: var(--t-high); } .pill.tier.Critical::before { background: var(--t-crit); }
.tag { font: 500 11px var(--mono); padding: 2px 6px; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink-2); background: var(--surface); white-space: nowrap; }
select, input[type=text], input[type=search], input[type=number], textarea { font: 14px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px 10px; width: 100%; }
select:hover, input:hover { border-color: var(--ink-3); }
label.field { display: block; } label.field > span, .field-label { display: block; font: 600 12px var(--sans); color: var(--ink-2); margin-bottom: 5px; }
.seg { display: inline-flex; background: var(--sunken); border-radius: var(--r); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 4px; font: 600 12.5px var(--sans); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

/* layout */
.section { padding: 72px 0; } .section.tight { padding: 44px 0; } .section + .section { border-top: 1px solid var(--rule); }
.page-head { padding: 52px 0 30px; } .page-head h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); max-width: 26ch; } .page-head .lede { margin-top: 16px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.grid { display: grid; gap: 20px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split.wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; }
.card.flat { background: transparent; } .card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 1rem; } .card-head p { font-size: 12.5px; color: var(--ink-3); margin: 3px 0 0; }
.stack > * + * { margin-top: 14px; } .stack-lg > * + * { margin-top: 28px; }
.notice { border-left: 3px solid var(--ink); background: var(--sunken); padding: 12px 16px; font-size: 13px; color: var(--ink-2); border-radius: 0 var(--r) var(--r) 0; }
.notice strong { color: var(--ink); }
.rule-list { list-style: none; padding: 0; margin: 0; } .rule-list > li { padding: 14px 0; border-top: 1px solid var(--rule-2); margin: 0; } .rule-list > li:first-child { border-top: 0; padding-top: 0; }
.num-list { counter-reset: n; list-style: none; padding: 0; } .num-list > li { counter-increment: n; position: relative; padding: 0 0 18px 44px; margin: 0; }
.num-list > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 500 12px var(--mono); color: var(--ink-3); }
dl.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
dl.kv dt { color: var(--ink-3); } dl.kv dd { margin: 0; font-weight: 500; }

/* home hero */
.hero { background: var(--ink); color: #f1eee4; padding: 84px 0 0; overflow: hidden; }
.hero .eyebrow { color: #a9ad9f; } .hero h1 { max-width: 15ch; } .hero .lede { color: #c9c6ba; margin: 22px 0 30px; }
.hero .btn { background: transparent; border-color: #4a4f59; color: #f1eee4; } .hero .btn:hover { border-color: #f1eee4; }
.hero .btn.primary { background: #f1eee4; border-color: #f1eee4; color: var(--ink); } .hero .btn.primary:hover { background: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.hero-panel { background: var(--paper); color: var(--ink); border-radius: 10px 10px 0 0; padding: 22px 22px 26px; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5); margin-top: 20px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; padding: 18px 0 44px; border-top: 1px solid #343842; font-size: 12.5px; color: #a9ad9f; }
.hero-meta b { display: block; font: 500 1.5rem var(--serif); color: #f1eee4; }
.chain { display: grid; gap: 0; } .chain-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule-2); font-size: 13.5px; }
.chain-row:first-child { border-top: 0; }
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.five > div { padding: 18px 18px 6px 0; border-right: 1px solid var(--rule); margin-right: 18px; } .five > div:last-child { border-right: 0; margin-right: 0; }
.five h3 { font: 500 11.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.five p { font: 500 1.08rem/1.35 var(--serif); }
.module { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; transition: padding .2s; }
.module:hover { padding-left: 8px; color: inherit; } .module:hover h3 { color: var(--accent); }
.module .n { font: 500 12px var(--mono); color: var(--ink-3); } .module h3 { font: 500 1.35rem var(--serif); } .module p { color: var(--ink-2); font-size: 14px; margin: 4px 0 0; max-width: 62ch; }
.module .go { font: 600 13px var(--sans); color: var(--accent); white-space: nowrap; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.kpi { padding: 16px 18px; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); text-align: left; background: none; border-top: 0; border-left: 0; font: inherit; color: inherit; cursor: pointer; position: relative; }
.kpi:hover { background: #fbfaf6; } .kpi:hover .kpi-drill { opacity: 1; }
.kpi-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: block; }
.kpi-value { font: 500 2rem/1.15 var(--serif); display: block; margin: 6px 0 2px; letter-spacing: -.02em; }
.kpi-sub { font-size: 12px; color: var(--ink-3); display: block; }
.kpi-drill { position: absolute; right: 12px; top: 14px; font: 500 10.5px var(--mono); color: var(--accent); opacity: 0; transition: opacity .15s; }
.kpi.alert .kpi-value { color: var(--crit); }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font: 600 11.5px var(--sans); color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
table.data th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; } table.data th button:hover { color: var(--ink); }
table.data th[aria-sort] button::after { content: "↕"; opacity: .35; font-size: 10px; } table.data th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; } table.data th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tr.clickable { cursor: pointer; } table.data tr.clickable:hover td { background: #fbfaf6; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td .sub { display: block; font-size: 12px; color: var(--ink-3); }
table.matrix th, table.matrix td { text-align: center; } table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
.raci { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; font: 600 11.5px var(--mono); }
.raci.A { background: var(--ink); color: #fff; } .raci.R { background: var(--accent-soft); color: var(--accent); } .raci.C { border: 1px solid var(--rule); color: var(--ink-2); } .raci.I { color: var(--ink-3); }
.meter { height: 6px; background: var(--sunken); border-radius: 3px; overflow: hidden; min-width: 60px; } .meter > i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .35s ease; }
.meter.accent > i { background: var(--accent); }
.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: 96px; } .triple i { height: 6px; border-radius: 2px; background: var(--sunken); position: relative; overflow: hidden; } .triple i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--ink); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); font-size: 14px; } .empty b { display: block; color: var(--ink); font: 500 1.1rem var(--serif); margin-bottom: 4px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; } .toolbar .field { min-width: 150px; flex: 1 1 150px; max-width: 230px; } .toolbar .grow { flex: 2 1 220px; max-width: none; }

/* drawer */
.drawer-back { position: fixed; inset: 0; background: rgba(20, 23, 28, .38); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--paper); z-index: 61; transform: translateX(102%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .35); }
.drawer.open { transform: none; }
.drawer-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.drawer-head h2 { font-size: 1.45rem; } .drawer-body { padding: 20px 24px 40px; overflow-y: auto; flex: 1; }
.drawer-body h3 { margin: 26px 0 10px; font: 500 11.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); } .drawer-body h3:first-child { margin-top: 0; }
.def { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; font-size: 13px; } .def dt { font-weight: 600; margin-top: 8px; } .def dt:first-child { margin-top: 0; } .def dd { margin: 2px 0 0; color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-size: 13.5px; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* charts */
.chart { position: relative; } .chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 11px var(--sans); fill: var(--ink-3); } .chart .grid-line { stroke: var(--rule-2); } .chart .axis { stroke: var(--rule); }
.chart .hit { fill: transparent; cursor: pointer; } .chart .bar-seg { transition: opacity .15s; } .chart .col:hover .bar-seg, .chart .col.focus .bar-seg { opacity: .82; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 5px; font-size: 12px; line-height: 1.5; white-space: nowrap; z-index: 5; opacity: 0; transition: opacity .12s; transform: translate(-50%, calc(-100% - 10px)); }
.tip.show { opacity: 1; } .tip b { display: block; } .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); margin-top: 10px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; width: 100%; background: none; border: 0; border-top: 1px solid var(--rule-2); text-align: left; color: inherit; font-family: inherit; cursor: pointer; }
.hbar:first-child { border-top: 0; } .hbar:hover .hbar-label { color: var(--accent); } .hbar-track { height: 10px; background: var(--sunken); border-radius: 0 4px 4px 0; overflow: hidden; } .hbar-fill { height: 100%; border-radius: 0 4px 4px 0; transition: width .4s ease; }
.hbar-val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 44px; text-align: right; }
.tierbar { display: flex; height: 26px; border-radius: 4px; overflow: hidden; gap: 2px; } .tierbar button { border: 0; padding: 0; cursor: pointer; min-width: 3px; transition: opacity .15s; } .tierbar button:hover { opacity: .8; }
.bg-Low { background: var(--t-low); } .bg-Moderate { background: var(--t-mod); } .bg-High { background: var(--t-high); } .bg-Critical { background: var(--t-crit); }

/* stepper (scenario, playbook) */
.stepper { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: start; }
.stepper > *, .gate > *, .lab > *, .doc > *, .split > *, .grid > * { min-width: 0; }
.steps { position: sticky; top: 76px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { margin: 0; } .steps button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 30px 1fr; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--r); cursor: pointer; font-size: 13.5px; color: var(--ink-2); align-items: baseline; }
.steps button:hover { background: var(--sunken); } .steps button:focus-visible { outline: 2px solid var(--accent); }
.steps button .n { font: 500 11.5px var(--mono); color: var(--ink-3); }
.steps button[aria-current="step"] { background: var(--ink); color: #fff; } .steps button[aria-current="step"] .n { color: #b9b6aa; }
.steps .phase { font: 500 10.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: 14px 10px 4px; }
.stage { animation: rise .3s ease both; } @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.stage-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 0 0 16px; margin: 0; position: relative; font-size: 13.5px; }
.timeline time { font: 500 11.5px var(--mono); color: var(--ink-3); padding-top: 3px; } .timeline li > div { border-left: 1px solid var(--rule); padding-left: 18px; position: relative; }
.timeline li > div::before { content: ""; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.timeline li.crit > div::before { background: var(--crit); box-shadow: 0 0 0 3px var(--crit-bg); } .timeline li.ok > div::before { background: var(--ok); }
.timeline b { display: block; } .timeline span { color: var(--ink-2); }

/* gate */
.gate { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.gate-side { position: sticky; top: 76px; }
.factor { padding: 16px 0; border-top: 1px solid var(--rule-2); } .factor:first-child { border-top: 0; padding-top: 0; }
.factor legend, .factor .q { padding: 0; font-weight: 600; font-size: 14px; } .factor .q small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin: 2px 0 9px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.levels label { position: relative; display: block; cursor: pointer; }
.levels input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.levels span { display: block; height: 100%; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); font-size: 12.5px; line-height: 1.35; color: var(--ink-2); transition: .12s; }
.levels span b { display: block; font: 500 10.5px var(--mono); color: var(--ink-3); margin-bottom: 2px; }
.levels label:hover span { border-color: var(--ink-3); } .levels input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; } .levels input:checked + span b { color: #b9b6aa; }
.levels input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.decision { border-radius: var(--r); padding: 16px 18px; border: 1px solid; }
.decision h3 { font: 500 1.3rem/1.2 var(--serif); margin-bottom: 6px; } .decision p { font-size: 13px; }
.decision.blocked { background: var(--crit-bg); border-color: #e2b6b0; color: #5e1414; } .decision.hold { background: var(--warn-bg); border-color: #e4cf97; color: #523600; }
.decision.conditional { background: var(--accent-soft); border-color: #c1cbe8; color: #14235a; } .decision.ready { background: var(--ok-bg); border-color: #b5d6c2; color: #0f4229; }
.tier-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 10px 0 4px; } .tier-scale i { height: 8px; border-radius: 2px; opacity: .25; } .tier-scale i.on { opacity: 1; }
.contrib { display: grid; grid-template-columns: 1fr 90px 34px; gap: 10px; align-items: center; font-size: 12.5px; padding: 4px 0; }
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule-2); } .ev-row:first-child { border-top: 0; }
.ev-row b { font-size: 13.5px; } .ev-row small { display: block; color: var(--ink-3); font-size: 12px; }
.ev-row .seg button[aria-pressed="true"][data-v="verified"] { background: var(--ok); color: #fff; } .ev-row .seg button[aria-pressed="true"][data-v="missing"] { background: var(--surface); color: var(--crit); }

/* lab */
.lab { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.scn { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); cursor: pointer; margin-bottom: 8px; transition: .12s; }
.scn:hover { border-color: var(--ink-3); } .scn:focus-visible { outline: 2px solid var(--accent); } .scn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.scn b { display: block; font-size: 13.5px; } .scn small { color: var(--ink-3); font-size: 12px; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.flow > div { padding: 16px; border-right: 1px solid var(--rule-2); position: relative; opacity: .28; transition: opacity .3s, background .3s; min-width: 0; } .flow > div:last-child { border-right: 0; }
.flow > div.on { opacity: 1; } .flow h4 { font: 500 10.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.flow p { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; } .flow .big { font: 500 1.05rem/1.25 var(--serif); margin-bottom: 4px; }
.flow > div.allow { background: var(--ok-bg); } .flow > div.approve { background: var(--warn-bg); } .flow > div.block, .flow > div.deny { background: var(--crit-bg); }
.msg { background: var(--sunken); border-radius: 10px 10px 10px 2px; padding: 10px 14px; font-size: 13.5px; max-width: 60ch; } .msg.inject { border: 1px dashed var(--crit); background: #fff; }
.trace { font: 12.5px/1.5 var(--mono); } .trace div { display: grid; grid-template-columns: 62px 74px 1fr; gap: 10px; padding: 5px 8px; border-radius: 4px; } .trace .hit { background: var(--ink); color: #fff; } .trace .skip { color: var(--ink-3); text-decoration: line-through; }

#t-controls td:first-child { min-width: 270px; } #t-controls td:nth-child(2), #t-controls td:nth-child(3) { min-width: 170px; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: 44px 0 56px; margin-top: 40px; font-size: 13px; color: var(--ink-2); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)); gap: 40px; }
.site-foot h4 { font: 500 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; } .site-foot a { color: var(--ink-2); text-decoration: none; } .site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* prose pages */
.prose h2 { margin: 56px 0 16px; } .prose h2:first-child { margin-top: 0; } .prose h3 { margin: 28px 0 8px; } .prose p, .prose li { color: var(--ink-2); max-width: 70ch; } .prose strong { color: var(--ink); }
.toc { position: sticky; top: 76px; font-size: 13.5px; } .toc a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--ink); border-color: var(--ink); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.claims { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.claims div { padding: 14px; border-right: 1px solid var(--rule-2); font-size: 12.5px; color: var(--ink-2); } .claims div:last-child { border-right: 0; } .claims b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.claims .yes { box-shadow: inset 0 3px 0 var(--ok); } .claims .no { box-shadow: inset 0 3px 0 var(--rule); }

@media (max-width: 1100px) {
  .site-head .nav-toggle { display: inline-flex; } .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 10px 20px 16px; flex-direction: column; }
  .nav.open { display: flex; } .nav a { padding: 10px 8px; } .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ink); }
  .site-head .wrap { position: relative; }
}
@media (max-width: 1020px) {
  .gate, .lab, .stepper, .doc { grid-template-columns: 1fr; } .gate-side, .steps, .toc { position: static; }
  .steps { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px; } .steps .phase { display: none; } .steps button { white-space: nowrap; grid-template-columns: auto auto; border: 1px solid var(--rule); background: var(--surface); }
  .split, .split.even, .split.wide-left, .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .g4, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .five { grid-template-columns: 1fr; border-top: 0; } .five > div { border-right: 0; border-top: 1px solid var(--rule); margin: 0; padding: 14px 0; }
  .toc { display: none; } .claims { grid-template-columns: 1fr; } .claims div { border-right: 0; border-bottom: 1px solid var(--rule-2); }
}
@media (max-width: 640px) {
  body { font-size: 15px; } .section { padding: 48px 0; } .g2, .g3 { grid-template-columns: 1fr; } .hero { padding-top: 52px; }
  .flow { grid-template-columns: 1fr; } .flow > div { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .module { grid-template-columns: 34px 1fr; } .module .go { grid-column: 2; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; } .timeline li > div { margin-top: 4px; } .site-foot .wrap { grid-template-columns: 1fr; gap: 24px; }
  .ev-row { grid-template-columns: 1fr; } .kpi-value { font-size: 1.6rem; } .brand span { display: none; } .trace div { grid-template-columns: 56px 1fr; } .trace div span:nth-child(2) { display: none; }
  .drawer-head, .drawer-body { padding-left: 16px; padding-right: 16px; } .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .demo-bar, .btn, .steps, .toast { display: none !important; } body { background: #fff; } .card { break-inside: avoid; } }

table.matrix td:first-child { min-width: 250px; }
