:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --white: #fff;
  --ink: #1d302c;
  --muted: #606d66;
  --green: #143e37;
  --accent: #d4efcf;
  --line: #dbe1d6;
  --soft: #edf1e7;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #2d795c; outline-offset: 5px; border-radius: 3px; }
button { font: inherit; }
[hidden] { display: none !important; }
.page-width { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 20px; background: var(--white); z-index: 10; }
.skip-link:focus { top: 12px; }
.masthead { background: var(--green); color: var(--white); }
.masthead-inner { width: min(1216px, calc(100% - 96px)); margin: auto; display: flex; align-items: center; gap: 30px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-weight: 700; font-size: 19px; letter-spacing: -.6px; text-decoration: none; min-height: 48px; }
.brand-suffix { color: var(--accent); font-weight: 400; margin-left: 3px; }
.masthead-label { margin-left: auto; font-size: 10px; letter-spacing: 2px; color: #c0d0c9; }
.repository-link { display: flex; align-items: center; gap: 18px; color: var(--white); font-size: 13px; text-decoration: none; min-height: 48px; border-left: 1px solid #426159; padding-left: 28px; }
.hero { padding-top: 46px; }
.edition { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 750; line-height: 1.5; }
.edition-date { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.1px; }
.edition-date span { margin: 0 12px; color: #849087; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: center; padding: 40px 0 42px; }
h1 { font-size: clamp(42px, 4.2vw, 62px); line-height: 1.12; font-weight: 520; letter-spacing: -2.7px; margin: 0 0 24px; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -2.3px; }
.hero-deck { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 13px 18px; font-size: 12px; font-weight: 650; min-height: 48px; text-decoration: none; border-radius: 5px; transition: background .15s; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: #22584b; }
.button.secondary { padding-inline: 6px; }
.verdict-card { background: var(--green); color: #e0e9df; padding: 30px; border-radius: 8px; }
.verdict-card > .eyebrow { color: var(--accent); }
.verdict-card .verdict-title { font: 400 30px/1.18 Georgia, "Times New Roman", serif; letter-spacing: -.5px; margin: 17px 0; color: #fff; }
.verdict-card > p:not(.verdict-title) { font-size: 13px; line-height: 1.75; margin: 0; }
.next-move { border-top: 1px solid #47665a; padding-top: 18px; margin-top: 22px; }
.next-move .eyebrow { color: var(--accent); font-size: 9px; }
.next-move p { font-size: 12px; line-height: 1.65; margin: 9px 0 0; }
.audit-stats { display: grid; grid-template-columns: 1fr 1.15fr 1.15fr; border-block: 1px solid var(--line); padding: 25px 0; }
.audit-stats > div { display: flex; align-items: center; gap: 19px; padding: 0 24px; border-left: 1px solid var(--line); }
.audit-stats > div:first-child { padding-left: 0; border: 0; }
.audit-stats > div:last-child { padding-right: 0; }
.audit-stats strong { font-size: 42px; font-weight: 500; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.audit-stats p { font-size: 12px; font-weight: 650; margin: 0; }
.audit-stats p span { display: block; font-weight: 400; font-size: 10px; color: var(--muted); margin-top: 4px; }
.snapshot-note { display: flex; align-items: baseline; gap: 8px; font-size: 10px; color: var(--muted); margin-top: 13px; }
.snapshot-dot { flex: 0 0 5px; width: 5px; height: 5px; background: #9b7425; border-radius: 50%; }
.reading-layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 68px; align-items: start; padding-top: 54px; }
.contents { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; }
.contents summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: 1.8px; font-weight: 700; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
.contents summary::-webkit-details-marker { display: none; }
.contents-toggle { font-size: 18px; font-weight: 400; }
.contents-panel[open] .contents-toggle { transform: rotate(45deg); }
.contents nav { display: grid; gap: 3px; margin-top: 13px; }
.contents nav a { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: center; font-size: 12px; line-height: 1.45; padding: 9px 9px 9px 0; min-height: 40px; text-decoration: none; color: var(--muted); border-radius: 4px; }
.toc-number { font-size: 10px; color: #7a877e; font-variant-numeric: tabular-nums; }
.contents nav a:hover, .contents nav a[aria-current] { color: var(--green); background: var(--soft); }
.contents nav a[aria-current] { font-weight: 650; }
.report-tools { display: grid; border-top: 1px solid var(--line); margin-top: 21px; padding-top: 12px; }
.report-tools a, .report-tools button { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 11px; background: none; border: 0; padding: 0; text-decoration: none; color: var(--green); cursor: pointer; }
.report { min-width: 0; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.report-opening { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); min-height: 48px; margin-bottom: 24px; }
.report-opening a { font-size: 11px; }
.report p { margin: 0 0 20px; }
.report > p:first-of-type { color: var(--muted); }
.report strong { font-weight: 650; }
.report h2 { font-size: 29px; font-weight: 550; letter-spacing: -1px; line-height: 1.25; padding-top: 37px; border-top: 1px solid var(--line); margin: 48px 0 24px; scroll-margin-top: 24px; text-wrap: balance; }
.report h3 { font-size: 19px; font-weight: 600; line-height: 1.45; margin: 34px 0 17px; letter-spacing: -.35px; }
.report ul, .report ol { padding-left: 23px; margin: 0 0 24px; }
.report li { margin-bottom: 13px; padding-left: 5px; }
.report code { font: .85em/1.6 ui-monospace, "SFMono-Regular", Consolas, monospace; background: var(--soft); padding: 2px 4px; border-radius: 3px; word-break: break-word; }
.report pre { overflow: auto; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; }
.report pre code { background: none; padding: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin: 25px 0; }
table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.75; background: #fbfcf8; }
th { text-align: left; color: var(--green); background: #eaf0e4; font-size: 11px; font-weight: 700; }
th, td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 115px; }
tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 143px; }
tbody tr:nth-child(even) { background: #f2f5ed; }
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.workflow { background: var(--soft); border: 1px solid var(--line); padding: 24px; border-radius: 8px; margin: 30px 0; font-size: 12px; }
.workflow figcaption { font-weight: 650; font-size: 15px; text-align: center; margin-bottom: 22px; }
.flow-step { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 11px 12px; text-align: center; }
.flow-step strong { display: block; }
.flow-arrow { text-align: center; color: var(--muted); font-size: 11px; padding: 5px; }
.flow-policy { padding: 13px; border: 1px dashed #7d947e; border-radius: 5px; text-align: center; }
.flow-policy span { display: block; color: var(--muted); font-size: 11px; }
.flow-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flow-build { border-color: #8dba8b; background: #e2efdc; }
.flow-observer { background: var(--green); color: var(--white); border: none; }
.flow-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flow-outcomes > div { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 14px 10px; font-size: 11px; }
.flow-outcomes p { margin: 8px 0; line-height: 1.6; }
.flow-outcomes span { display: block; color: var(--muted); font-size: 10px; }
.diagram-source { margin-top: 20px; font-size: 11px; }
.diagram-source summary { cursor: pointer; min-height: 44px; padding-top: 12px; }
.diagram-source pre { font-size: 12px; white-space: pre; }
.evidence-box { background: var(--green); color: #e0e9df; border-radius: 7px; padding: 30px; margin-top: 50px; }
.evidence-box .eyebrow { color: var(--accent); }
.evidence-box h2 { border: none; padding: 0; color: white; margin: 16px 0; font-size: 26px; }
.evidence-box p { font-size: 13px; }
.evidence-links { display: grid; }
.evidence-links a { color: white; display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-top: 1px solid #426157; text-decoration: none; font-size: 13px; }
.evidence-links span { color: var(--accent); font-size: 9px; letter-spacing: .8px; }
footer { border-top: 1px solid var(--line); margin-top: 70px !important; padding-block: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); }
footer a { display: inline-flex; align-items: center; min-height: 48px; }
.footer-divider { margin-inline: 12px; }
@media (min-width: 1500px) { .hero-grid { gap: 90px; } }
@media (max-width: 1100px) {
  .page-width, .masthead-inner { width: calc(100% - 64px); }
  .hero-grid { gap: 28px; grid-template-columns: 1.4fr 1fr; }
  h1 { font-size: 46px; }
  .verdict-card { padding: 25px; }
  .reading-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .audit-stats > div { gap: 12px; padding-inline: 17px; }
  .audit-stats strong { font-size: 34px; }
}
@media (max-width: 900px) {
  .reading-layout { display: block; padding-top: 25px; }
  .contents { position: relative; top: auto; max-height: none; overflow: visible; margin-bottom: 38px; background: var(--soft); padding: 6px 18px; border: 1px solid var(--line); border-radius: 6px; }
  .contents:not(:has([open])) summary { border: none; }
  .contents nav a { min-height: 48px; }
  .report-tools a, .report-tools button { min-height: 48px; }
  .report { font-size: 16px; }
  .hero-grid { gap: 28px; }
  h1 { font-size: 42px; }
  .hero-deck { font-size: 16px; }
  .verdict-card .verdict-title { font-size: 27px; }
  .hero-actions { gap: 4px; }
  .audit-stats { grid-template-columns: 1fr 1fr 1fr; }
  .audit-stats > div { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 640px) {
  .page-width, .masthead-inner { width: calc(100% - 40px); }
  .masthead-inner { min-height: 70px; gap: 12px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .masthead-label { display: none; }
  .repository-link { margin-left: auto; padding-left: 0; border: 0; font-size: 11px; gap: 8px; }
  .hero { padding-top: 28px; }
  .edition { align-items: flex-start; flex-direction: column; padding-bottom: 20px; gap: 9px; }
  .edition-date { font-size: 9px; }
  .edition-date span { margin-inline: 7px; }
  .hero-grid { display: block; padding-top: 28px; padding-bottom: 28px; }
  h1 { font-size: clamp(34px, 9vw, 48px); letter-spacing: -1.7px; margin-bottom: 20px; }
  h1 em { letter-spacing: -1.7px; }
  .hero-deck { font-size: 16px; margin-bottom: 24px; }
  .hero-actions { gap: 6px 12px; margin-bottom: 28px; }
  .button { font-size: 11px; gap: 14px; }
  .verdict-card { padding: 25px; }
  .verdict-card .verdict-title { font-size: 30px; }
  .verdict-card > p:not(.verdict-title) { font-size: 14px; }
  .next-move p { font-size: 13px; }
  .audit-stats { gap: 0; padding-block: 22px; }
  .audit-stats > div { padding-inline: 12px; }
  .audit-stats strong { font-size: 33px; letter-spacing: -1px; }
  .audit-stats p { font-size: 11px; line-height: 1.5; }
  .audit-stats p span { font-size: 9px; line-height: 1.5; }
  .snapshot-note { font-size: 9px; line-height: 1.65; }
  .report-opening { gap: 12px; }
  .report-opening .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
  .report-opening a { white-space: nowrap; font-size: 10px; }
  .report h2 { font-size: 27px; margin-top: 37px; padding-top: 28px; }
  .report h3 { font-size: 19px; }
  table { min-width: 630px; font-size: 12px; }
  th, td { padding: 12px; }
  .workflow { padding: 17px 12px; }
  .flow-lanes { gap: 9px; }
  .flow-outcomes { grid-template-columns: 1fr; }
  .flow-outcomes > div { padding: 13px; font-size: 12px; }
  .flow-outcomes p { margin-block: 3px; }
  .evidence-box { padding: 24px 20px; }
  .evidence-box h2 { font-size: 25px; }
  footer { flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 40px !important; }
}
@media print {
  @page { size: A4; margin: 17mm; }
  body { font-size: 11pt; color: #111; background: white; }
  .page-width, .masthead-inner { width: 100%; }
  .masthead { background: white; color: #111; border-bottom: 1px solid #aaa; }
  .brand, .brand-suffix { color: #111; }
  .masthead-inner { min-height: 50px; }
  .masthead-label, .repository-link, .contents, .hero-actions, .skip-link, .report-opening a, .diagram-source, footer a { display: none; }
  .hero { padding-top: 18px; }
  .hero-grid { display: block; padding-block: 20px; }
  h1 { font-size: 34pt; }
  .hero-deck { font-size: 13pt; }
  .verdict-card, .evidence-box { background: white; color: #111; border: 1px solid #aaa; margin-top: 22px; padding: 18px; }
  .verdict-card *, .evidence-box *, .flow-observer { color: #111 !important; }
  .audit-stats > div { flex-direction: row; }
  .reading-layout { display: block; padding-top: 15px; }
  .report { font-size: 10pt; line-height: 1.6; }
  .report h2 { font-size: 19pt; break-after: avoid; }
  .report h3 { font-size: 13pt; break-after: avoid; }
  .table-scroll { overflow: visible; border: 0; }
  table { min-width: 0; width: 100%; font-size: 8pt; }
  td, th { padding: 7px; min-width: 0 !important; }
  tr { break-inside: avoid; }
  .workflow, .audit-stats { break-inside: avoid; }
  .flow-outcomes { grid-template-columns: repeat(3, 1fr); }
  .flow-observer { background: white; border: 1px solid #aaa; }
  a { color: #143e37; }
  footer { margin-top: 24px !important; padding-block: 10px; }
}
