:root { color-scheme: light; --ink: #172d2b; --muted: #4f625d; --line: #cbd6d0; --accent: #185f4b; --clean: #1f6b45; --clean-bg: #e9f5ee; --block: #9c2f1f; --block-bg: #fff0ec; --adv: #7a5a08; --adv-bg: #fff7e0; --inc: #5b3a8c; --inc-bg: #f4eefc; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f2f5f0; color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #226eae; outline-offset: 3px; }
.shell { max-width: 1180px; margin: auto; padding: 0 1.5rem; }
header { background: white; border-bottom: 1px solid var(--line); }
.bar, .section-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.bar { min-height: 68px; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-size: 1.15rem; letter-spacing: -.03em; }
.brand span { background: var(--ink); color: white; padding: .25rem .5rem; border-radius: 7px; font-size: .85rem; }
.bar-end { display: flex; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; font-size: .9rem; }
.tag { display: inline-block; font-size: .78rem; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 20px; background: white; }
.intro { padding: 2rem 0 1rem; max-width: 880px; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -.04em; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 1rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: .5rem 0 1rem; }
.lead { font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--accent); }
.notice { background: #fff9e8; border-left: 3px solid #b38b27; padding: .8rem 1rem; font-size: .93rem; }
.scoreboard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin: .5rem 0 1.25rem; }
.scoreboard div { background: white; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.scoreboard strong { display: block; font-size: 1.6rem; letter-spacing: -.03em; }
.scoreboard span { font-size: .82rem; color: var(--muted); }
.scoreboard div:nth-child(1) strong { color: var(--block); }
.scoreboard div:nth-child(2) strong { color: var(--clean); }
.scoreboard div:nth-child(3) strong { color: var(--clean); }
.scoreboard div:nth-child(4) strong { color: var(--inc); }
.evidence { margin-bottom: 1.25rem; }
.evidence-summary { font-size: .95rem; font-weight: 600; margin: 0 0 .75rem; }
.strip { display: flex; flex-wrap: wrap; gap: .5rem 3px; }
.strip-col { display: flex; flex-direction: column; gap: .3rem; }
.cell { width: 24px; height: 24px; padding: 0; font: 700 .76rem/1 system-ui, sans-serif; border: 1px solid currentColor; border-radius: 6px; cursor: pointer; }
.cell.block { color: var(--block); background: var(--block-bg); }
.cell.clean { color: var(--clean); background: var(--clean-bg); }
.cell.advisory { color: var(--adv); background: var(--adv-bg); }
.cell.incomplete { color: var(--inc); background: var(--inc-bg); }
.cell[aria-pressed="true"] { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--ink); }
.card-how { font-size: .76rem; color: var(--muted); }
.how-label { font-size: .78rem; color: var(--muted); align-self: center; }
.filter-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .6rem 0 .3rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
#workbench > .panel { margin-bottom: 1.25rem; }
.workspace { margin-bottom: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; margin: .25rem 0 1rem; }
.filter { min-height: 44px; font: inherit; font-size: .84rem; color: var(--ink); background: white; border: 1px solid #80988d; border-radius: 22px; padding: .3rem .85rem; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.pair { border: 1px solid var(--line); border-radius: 12px; padding: .55rem .6rem .6rem; background: #fbfcfa; }
.pair .channel { display: block; margin: 0 0 .4rem .15rem; }
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.pair.single .halves { grid-template-columns: minmax(0, 1fr); }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; width: 100%; min-height: 44px; text-align: left; font: inherit; color: var(--ink); background: #f8faf7; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: .6rem .75rem; cursor: pointer; }
.card:hover { background: #eef4ef; }
.card[aria-pressed="true"] { background: #e6f0ea; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.card.detection { border-left-color: var(--block); }
.card.control { border-left-color: var(--clean); }
.card.failure { border-left-color: var(--inc); }
.channel { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.card-title { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.chips { display: flex; gap: .25rem; flex-wrap: wrap; }
.card-kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card.detection .card-kind { color: var(--block); }
.card.control .card-kind { color: var(--clean); }
.card.failure .card-kind { color: var(--inc); }
.chip { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 5px; padding: .05rem .4rem; border: 1px solid currentColor; }
.chip.clean { color: var(--clean); background: var(--clean-bg); }
.chip.block { color: var(--block); background: var(--block-bg); }
.chip.advisory { color: var(--adv); background: var(--adv-bg); }
.chip.incomplete { color: var(--inc); background: var(--inc-bg); }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.segment { min-height: 44px; font: inherit; font-size: .85rem; text-align: left; color: var(--ink); background: white; border: 1px solid #80988d; border-radius: 8px; padding: .45rem .6rem; cursor: pointer; display: flex; flex-direction: column; }
.segment code { font-size: .74rem; color: var(--muted); }
.segment[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.segment[aria-pressed="true"] code { color: #d9ece3; }
.policy-help { border-left: 3px solid #70a78d; background: #f0f6f2; padding: .65rem .8rem; font-size: .88rem; margin-top: .75rem; }
.example-title { font-size: 1.1rem; margin-top: 1.1rem; }
.meta { display: flex; gap: .4rem; flex-wrap: wrap; margin: .3rem 0 .4rem; }
.kind-detection { border-color: var(--block); color: var(--block); }
.kind-control { border-color: var(--clean); color: var(--clean); }
.kind-failure { border-color: var(--inc); color: var(--inc); }
.help, dl { font-size: .86rem; color: var(--muted); }
.divider { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: .55rem .3rem; border-bottom: 1px solid var(--line); }
tr.selected { background: #edf4ef; }
.section-head { margin-bottom: .5rem; }
.section-head h2 { margin-bottom: .5rem; }
.decision { padding: 1rem; border-radius: 10px; background: var(--clean-bg); border: 1px solid #b1ceba; }
.decision h3 { font-size: 1.3rem; line-height: 1.3; margin: .6rem 0; }
.decision p { font-size: .9rem; margin-bottom: 0; }
.decision.block { background: var(--block-bg); border-color: #e3b2a9; }
.decision.advisory { background: var(--adv-bg); border-color: #dcc68b; }
.decision.incomplete { background: var(--inc-bg); border-color: #cbb7e3; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; border-radius: 5px; padding: .1rem .4rem; margin-right: .5rem; }
.badge.block { color: var(--block); }
.badge.advisory { color: var(--adv); }
.badge.note { color: var(--accent); }
.findings { list-style: none; margin: 0; padding: 0; }
.findings li { border-top: 1px solid var(--line); padding: .7rem 0; }
.findings p { font-size: .85rem; color: var(--muted); margin: .25rem 0 0; }
.finding-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.findings .finding-head { color: var(--ink); }
.finding-head code { font-weight: 650; }
.twin { border: 1px dashed #9cb5a8; border-radius: 10px; padding: .9rem 1rem; margin: 1rem 0; }
.twin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.twin-col { background: #f8faf7; border-radius: 8px; padding: .6rem .7rem; border-top: 3px solid var(--line); }
.twin-col.detection { border-top-color: var(--block); }
.twin-col.control { border-top-color: var(--clean); }
.twin-col.current { box-shadow: inset 0 0 0 1px var(--accent); }
.twin-col strong { display: block; font-size: .9rem; margin: .35rem 0 .2rem; line-height: 1.3; }
.twin-col p { margin: .25rem 0; font-size: .82rem; }
.link-button { margin-top: .6rem; min-height: 44px; font: inherit; font-size: .9rem; color: var(--accent); background: none; border: 0; padding: .4rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0; }
.metrics div { background: #f5f7f4; border-radius: 8px; padding: .65rem; }
.metrics strong { font-size: 1.25rem; display: block; }
.metrics span { font-size: .78rem; color: var(--muted); }
code, pre { font: .85rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; background: #f2f5f0; padding: 1rem; border-radius: 8px; max-height: 24rem; overflow: auto; }
details { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; }
dt { font-weight: 650; margin-top: .65rem; }
dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.guide { margin: 1.25rem 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.guide-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.guide p { font-size: .9rem; }
footer { color: var(--muted); font-size: .8rem; padding-bottom: 2rem !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: white; padding: 1rem; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 960px) { .pairs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .workspace, .guide-grid, .guide-grid.two { grid-template-columns: 1fr; } .scoreboard { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .twin-grid { grid-template-columns: 1fr; } .segmented { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .halves { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .shell { padding: 0 .8rem; } .panel { padding: .85rem; } .intro { padding-top: 1.5rem; } th, td { font-size: .78rem; } .scoreboard strong { font-size: 1.3rem; } }

.stories { margin: 1.5rem 0 1rem; }
.story-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.story-button { min-height: 52px; padding: .7rem; font: inherit; font-size: .9rem; font-weight: 650; border: 1px solid #80988d; border-radius: 9px; background: white; color: var(--ink); cursor: pointer; }
.story-button:hover { background: #e6f0ea; }
.story-button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.story-context { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.story-context h2 { font-size: 1.45rem; line-height: 1.25; }
.story-context > p { font-size: .92rem; }
.story-context dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; background: #f2f5f0; padding: .8rem; border-radius: 8px; }
.story-context dt, .story-context dd { margin: 0; }
.catalog { margin: 1.25rem 0; }
.catalog > summary { padding: .25rem 0; }
.catalog[open] > summary { margin-bottom: 1.25rem; }
@media (max-width: 1040px) { .story-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); } .scoreboard { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .story-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .story-context dl { grid-template-columns: 1fr; gap: .15rem; } .story-context dd { margin-bottom: .4rem; } }

.depth-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.depth-card { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; text-align: left; font: inherit; color: var(--ink); background: #f8faf7; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; padding: .8rem .85rem; cursor: pointer; }
.depth-card:hover { background: #eef4ef; }
.depth-name { font-weight: 700; font-size: .98rem; line-height: 1.25; }
.depth-count { font-size: .8rem; font-weight: 650; color: var(--accent); }
.depth-text { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.depth-views { font: .72rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); overflow-wrap: anywhere; margin-top: auto; }
.mini { display: flex; flex-direction: column; gap: 3px; }
.mini-row { display: flex; flex-wrap: wrap; gap: 3px; }
.mark { width: 12px; height: 12px; border-radius: 3px; border: 1px solid currentColor; }
.mark.block { color: var(--block); background: var(--block); }
.mark.clean { color: var(--clean); background: var(--clean-bg); }
.mark.advisory { color: var(--adv); background: var(--adv-bg); }
.mark.incomplete { color: var(--inc); background: var(--inc-bg); }
@media (max-width: 1040px) { .depth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .depth-grid { grid-template-columns: minmax(0, 1fr); } }
.seen { margin-bottom: 1.25rem; }
.seen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: .5rem; }
.seen-grid article { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; background: #fbfcfa; }
.seen-grid h3 { min-height: 3em; }
.seen-label { margin: .35rem 0 .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seen-code { margin: 0; padding: .6rem .7rem; max-height: none; font-size: .78rem; background: var(--block-bg); border: 1px solid #e7c4bb; color: var(--ink); }
.seen-shown { margin: 0 0 .6rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: .95rem; }
.seen-grid .help { flex: 1; margin-bottom: 0; }
@media (max-width: 960px) { .seen-grid { grid-template-columns: minmax(0, 1fr); } .seen-grid h3 { min-height: 0; } }

.gate-flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding: 0; margin: 1rem 0 1.5rem; }
.gate-flow li { border-top: 3px solid var(--accent); padding: .7rem .8rem; background: white; border-radius: 0 0 8px 8px; }
.gate-flow strong, .gate-flow span { display: block; }
.gate-flow span { font-size: .85rem; margin-top: .4rem; }
@media (max-width: 800px) { .gate-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .gate-flow { grid-template-columns: 1fr; } }
