:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --ink: #1e302d;
  --muted: #52635c;
  --line: #d6dcd3;
  --accent: #a24429;
  --green: #245c49;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }
::selection { background: #ecd9b4; color: var(--ink); }
.shell { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow, .masthead, figcaption, .comparison-cell h4, .point-heading h3 span {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.eyebrow { font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
.skip-link { position: fixed; z-index: 60; top: 10px; left: 12px; padding: 12px 18px; transform: translateY(-180%); background: #fff; }
.skip-link:focus { transform: translateY(0); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 19px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .06em; }
.masthead p { color: var(--muted); }
.masthead p span { margin-inline: 6px; }
.hero { padding-block: 23px 26px; }
.scenario-label { color: var(--accent); margin-bottom: 13px; }
h1 { font-size: clamp(38px, 4.5vw, 58px); font-weight: 650; line-height: 1.06; letter-spacing: -.045em; }
h1 em, .punchline em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.wrong-number { color: var(--accent); }
h1 em { color: var(--green); }
.wrong-number, .right-number { white-space: nowrap; }
.opening { max-width: 100ch; margin-top: 17px; font-size: 16px; line-height: 1.55; }
h2 { font-size: 29px; font-weight: 650; line-height: 1.13; letter-spacing: -.03em; text-wrap: balance; }
.reconciliation { margin-top: 23px; border: 1px solid #cdd3c9; background: #fffdf8; }
figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 12px 18px; font-size: 11px; line-height: 1.5; font-weight: 600; }
figcaption span { color: var(--muted); font-size: 10px; font-weight: 400; }
.calculation-pair { display: grid; grid-template-columns: 1fr 1fr; }
.calculation { padding: 15px 20px 12px; }
.draft { background: #f1e8df; color: #873820; }
.corrected { background: #e6eee4; color: var(--green); }
.calculation h2 { font-size: 15px; line-height: 1.4; letter-spacing: -.015em; text-wrap: initial; }
.numerator { display: flex; align-items: center; gap: 17px; min-height: 82px; padding-block: 10px; }
.term { display: flex; flex-direction: column; gap: 3px; }
.term > span { font-size: 11px; line-height: 1.4; }
.term b { font-size: 23px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.15; }
.operator { font-size: 23px; }
.mistaken-term { padding: 6px 10px; border: 1px dashed currentColor; }
.quotient { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid #c2b6a8; padding-top: 9px; }
.corrected .quotient { border-color: #b6c8b7; }
.quotient > span { font-size: 13px; }
.quotient strong { font-size: 34px; line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.near-miss { margin-top: 16px; font-size: 14px; line-height: 1.6; }
.runtime { padding-block: 27px 22px; background: var(--ink); color: #fffdf8; }
.runtime-heading .eyebrow { margin-bottom: 9px; color: #e2c493; }
.runtime-roles { max-width: 105ch; margin-top: 12px; color: #d8e1d8; font-size: 14px; line-height: 1.6; }
.runtime-assessment { max-width: 105ch; margin-top: 12px; padding: 10px 14px; border: 1px solid #53645c; border-left: 2px solid #e2c493; background: #263a35; color: #d8e1d8; font-size: 13px; line-height: 1.6; }
.runtime-assessment strong { color: #e2c493; font-weight: 600; }
.runtime a:focus-visible, .design-body a:focus-visible { outline-color: #e2c493; }
.comparison-note a, .design-body a { overflow-wrap: anywhere; }
.comparison { margin-top: 22px; }
.comparison-point { border-top: 1px solid #53645c; padding-block: 16px; }
.comparison-point:last-child { padding-bottom: 0; }
.point-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.point-heading h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.point-heading h3 span { margin-right: 9px; color: #e2c493; font-size: 11px; letter-spacing: 0; }
.point-heading > p { color: #e2c493; font-size: 12px; line-height: 1.5; text-align: right; }
.comparison-pair { display: grid; grid-template-columns: 1fr 1fr; }
.comparison-cell { padding: 12px 18px; background: #263a35; }
.comparison-cell.with-runtime { background: #30483e; border-left: 2px solid #b9cfb5; }
.comparison-cell h4 { color: #e2c493; font-size: 11px; line-height: 1.5; margin-bottom: 6px; }
.comparison-cell p { font-size: 13px; line-height: 1.6; color: #d8e1d8; }
.comparison-cell strong { color: #fffdf8; font-weight: 600; }
.comparison-note { margin-top: 8px; color: #d8e1d8; font-size: 12px; line-height: 1.5; }
.runtime-rule { border-top: 1px solid #53645c; margin-top: 19px; padding-top: 13px; font-size: 12px; line-height: 1.6; color: #d8e1d8; }
.runtime-rule strong { color: #e2c493; margin-right: 5px; }
.technical-design-frame { margin-top: 18px; border: 1px solid #53645c; }
.technical-design summary { padding: 14px 18px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; line-height: 1.5; }
.design-summary { display: flex; align-items: center; gap: 14px; }
.technical-design summary::-webkit-details-marker { display: none; }
.technical-design summary:hover { background: #30483e; }
.technical-design summary:focus-visible { outline: 3px solid #e2c493; outline-offset: 3px; }
.design-status { margin-left: auto; color: #e2c493; font-size: 11px; font-weight: 400; }
.disclosure-mark { width: 8px; height: 8px; margin: 0 2px 4px; flex-shrink: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.technical-design[open] .disclosure-mark { transform: rotate(225deg); margin-bottom: -4px; }
/* Keep the single content block outside the native closed-details slot for print. */
.design-body { display: none; padding: 0 18px 18px; color: #d8e1d8; font-size: 13px; line-height: 1.6; }
.technical-design[open] + .design-body { display: block; }
.system-plot { margin-bottom: 16px; border: 1px solid #53645c; background: #20362f; }
.system-plot figcaption { padding: 14px 18px 8px; font-size: 13px; }
.system-plot figcaption span { color: #e2c493; font-size: 11px; }
.diagram-definitions { position: absolute; overflow: hidden; pointer-events: none; }
.system-diagram { display: block; width: 100%; height: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.diagram-narrow { display: none; }
.plot-column { fill: #b9c9be; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; }
.plot-lane-title { fill: #e2c493; font-size: 18px; font-weight: 600; }
.plot-node { fill: #2b4439; stroke: #8fa99a; stroke-width: 1.25; }
.plot-node-title { fill: #fffdf8; font-size: 17px; font-weight: 600; }
.plot-node-copy { fill: #d8e1d8; font-size: 15px; }
.plot-outcome { fill: #354d3d; }
.plot-unproven { fill: #e2c493; font-size: 15px; font-weight: 650; letter-spacing: .5px; }
.plot-arrow, .plot-divider { fill: none; stroke: #b9cfb5; stroke-width: 1.5; }
.plot-arrow-tip { fill: #b9cfb5; }
.plot-gate { fill: #e2c493; font-size: 14px; }
.plot-note { margin: 0 18px; padding-block: 10px 14px; border-top: 1px solid #53645c; font-size: 12px; line-height: 1.5; }
.design-intro { padding-top: 14px; border-top: 1px solid #53645c; }
.design-part { margin-top: 16px; }
.design-part h3 { margin-bottom: 5px; color: #fffdf8; font-size: 15px; line-height: 1.4; }
.design-part p, .design-intro { max-width: 105ch; }
.design-cue { margin-top: 9px; color: #b9cfb5; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.design-points { max-width: 105ch; margin: 3px 0 0; padding-left: 17px; list-style: disc; }
.design-points li { margin-top: 3px; }
.design-points li::marker { color: #7f9a84; }
.punchline { padding-block: 24px; border-bottom: 1px solid var(--line); }
.punchline p { font-size: clamp(25px, 2.8vw, 33px); font-weight: 550; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.punchline em { color: var(--green); }
.ask { display: grid; grid-template-columns: 215px 1fr; gap: 28px; padding-block: 24px; }
.ask > .eyebrow { color: var(--muted); padding-top: 5px; }
.ask h2 { font-size: 23px; text-wrap: initial; }
.ask div > p { max-width: 90ch; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.55; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95em; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  figcaption { flex-direction: column; gap: 3px; }
  .point-heading { display: block; }
  .point-heading > p { margin-top: 5px; text-align: left; }
  .ask { grid-template-columns: 175px 1fr; gap: 20px; }
  .diagram-wide { display: none; }
  .diagram-narrow { display: block; max-width: 360px; margin-inline: auto; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 36px); }
  .masthead { gap: 10px; font-size: 9px; padding-block: 17px; }
  .masthead p span { margin-inline: 3px; }
  .hero { padding-block: 21px 23px; }
  .scenario-label { max-width: 40ch; font-size: 9px; }
  h1 { font-size: clamp(30px, 8.7vw, 48px); }
  .opening { font-size: 16px; margin-top: 15px; }
  h2 { font-size: 27px; }
  .reconciliation { margin-top: 20px; }
  figcaption { padding: 12px 15px; }
  .calculation-pair { grid-template-columns: 1fr; }
  .calculation { padding: 13px 15px 12px; }
  .calculation h2 { font-size: 15px; }
  .numerator { min-height: 69px; gap: 14px; }
  .term b { font-size: 22px; }
  .term > span { font-size: 11px; }
  .mistaken-term { padding: 5px 8px; }
  .quotient strong { font-size: 32px; }
  .near-miss { font-size: 15px; }
  .runtime { padding-block: 24px; }
  .runtime-roles { font-size: 15px; }
  .runtime-assessment { padding: 10px 12px; font-size: 14px; }
  .comparison { margin-top: 20px; }
  .comparison-pair { grid-template-columns: 1fr; }
  .comparison-cell { padding: 12px 14px; }
  .comparison-cell.with-runtime { border-left: 0; border-top: 2px solid #b9cfb5; }
  .comparison-cell p { font-size: 14px; }
  .comparison-note, .point-heading > p { font-size: 13px; }
  .runtime-rule { font-size: 13px; }
  .runtime-rule strong { display: block; margin-bottom: 3px; }
  .technical-design summary { padding: 13px 14px; font-size: 14px; }
  .design-summary { gap: 10px; }
  .design-status { font-size: 10px; }
  .design-body { padding-inline: 14px; font-size: 14px; }
  .system-plot figcaption { padding-inline: 14px; font-size: 13px; }
  .plot-note { margin-inline: 14px; font-size: 12px; }
  .punchline { padding-block: 22px; }
  .punchline p { font-size: 28px; text-wrap: initial; }
  .ask { grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
  .ask h2 { font-size: 25px; }
  .ask div > p { font-size: 15px; }
}

@media print {
  @page { margin: 12mm; }
  :root { background: #fff; }
  .shell { width: 100%; }
  .skip-link { display: none; }
  .masthead { padding-block: 8px; }
  .hero { padding-block: 12px 16px; }
  h1 { font-size: 29pt; }
  .opening { font-size: 10pt; }
  .reconciliation { margin-top: 14px; }
  figcaption { padding-block: 8px; }
  .calculation { padding-block: 10px; }
  .numerator { min-height: 60px; padding-block: 6px; }
  .near-miss { font-size: 10pt; margin-top: 11px; }
  .runtime { background: #fff; color: #000; border-block: 1px solid #aaa; padding-block: 15px; }
  .runtime-heading h2 { font-size: 19pt; }
  .runtime-heading .eyebrow, .runtime-roles, .runtime-assessment, .runtime-assessment strong, .comparison-cell p, .comparison-cell h4, .comparison-cell strong, .point-heading h3 span, .point-heading > p, .comparison-note, .runtime-rule, .runtime-rule strong { color: #333; }
  .runtime-roles, .comparison-cell p { font-size: 9pt; line-height: 1.45; }
  .runtime-assessment { padding: 6px 10px; border-color: #aaa; border-left-color: #333; background: #fff; font-size: 8.5pt; line-height: 1.4; }
  .comparison { margin-top: 12px; }
  .comparison-point { padding-block: 10px; border-color: #aaa; break-inside: avoid; }
  .point-heading { display: block; margin-bottom: 8px; }
  .point-heading h3 { font-size: 12pt; }
  .point-heading > p { margin-top: 3px; text-align: left; font-size: 8pt; }
  .comparison-pair { grid-template-columns: 1fr 1fr; }
  .comparison-cell, .comparison-cell.with-runtime { background: #fff; padding: 8px 12px; border-left: 1px solid #aaa; }
  .comparison-cell.with-runtime { border-top: 0; }
  .comparison-cell h4, .comparison-note { font-size: 8pt; }
  .runtime-rule { border-color: #aaa; margin-top: 12px; padding-top: 9px; font-size: 8pt; }
  .technical-design-frame { margin-top: 12px; border-color: #aaa; }
  /* The adjacent body prints without relying on native details-content support. */
  .technical-design-frame .design-body {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    content-visibility: visible !important;
    overflow: visible !important;
  }
  /* Progressive enhancement for the native disclosure; not the print fallback. */
  .technical-design::details-content {
    content-visibility: visible !important;
  }
  .technical-design summary { padding: 8px 12px; font-size: 11pt; break-after: avoid; }
  .design-status, .design-body, .design-part h3 { color: #333; }
  .design-status { font-size: 8pt; }
  .disclosure-mark { display: none; }
  .design-body { padding: 0 12px 8px; font-size: 8.5pt; line-height: 1.35; }
  .system-plot { background: #fff; border-color: #888; margin-bottom: 12px; break-inside: avoid; }
  .system-plot figcaption { padding: 8px 12px 4px; font-size: 10pt; }
  .system-plot figcaption span { color: #333; font-size: 8pt; }
  .diagram-wide { display: block; }
  .diagram-narrow { display: none; }
  .plot-column, .plot-lane-title, .plot-node-title, .plot-node-copy, .plot-unproven, .plot-gate { fill: #111; }
  .plot-node, .plot-outcome { fill: #fff; stroke: #555; }
  .plot-arrow, .plot-divider { stroke: #333; }
  .plot-arrow-tip { fill: #333; }
  .plot-note { margin-inline: 12px; padding-block: 6px 8px; border-color: #888; color: #333; font-size: 8pt; }
  .design-part p, .design-intro { max-width: none; }
  .design-points { max-width: none; padding-left: 14px; }
  .design-cue { margin-top: 6px; color: #333; font-size: 7.5pt; }
  .design-points li::marker { color: #666; }
  .design-intro { padding-top: 8px; border-color: #aaa; }
  .design-part { margin-top: 8px; break-inside: avoid; }
  .design-part h3 { font-size: 10pt; }
  .punchline, .ask { padding-block: 8px; }
  .punchline p { font-size: 18pt; }
  .ask h2 { font-size: 14pt; }
  .ask div > p { font-size: 9pt; }
  .reconciliation, .runtime-heading, .ask { break-inside: avoid; }
}

/* rfc-exec-skim: decision brief blocks (rfc/rfc-exec-skim-spec.md) */
.decision { margin-top: 22px; padding: 18px 22px; border: 1px solid var(--line); border-left: 4px solid var(--green); background: #fffdf8; }
.decision .eyebrow { color: var(--green); margin-bottom: 10px; }
.decision-lede { max-width: 100ch; font-size: 17px; line-height: 1.5; letter-spacing: -.01em; }
.decision-lede strong { font-weight: 650; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.decision-grid div { min-width: 0; }
.decision-grid dt { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.decision-grid dd { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; }
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 14px 0 0; padding: 0; list-style: none; background: #53645c; border: 1px solid #53645c; }
.roles li { padding: 12px 14px; background: #263a35; font-size: 13px; line-height: 1.55; color: #d8e1d8; }
.roles li b { display: block; margin-bottom: 4px; color: #fffdf8; font-weight: 600; }
.roles li:nth-child(3) { border-top: 2px solid #b9cfb5; background: #30483e; }
.role-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #e2c493; border-radius: 3px; color: #e2c493; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; font-style: normal; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.evidence-rows { display: grid; grid-template-columns: 1fr; gap: 0; margin: 10px 0 0; border: 1px solid #53645c; }
.evidence-rows > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 11px 14px; border-top: 1px solid #53645c; background: #263a35; }
.evidence-rows > div:first-child { border-top: 0; }
.evidence-rows dt { color: #e2c493; font-weight: 600; font-size: 13px; line-height: 1.5; }
.evidence-rows dd { margin: 0; color: #d8e1d8; font-size: 13px; line-height: 1.55; }
.evidence-rows .scope { display: block; margin-top: 4px; color: #b9c9be; font-size: 12px; }
.thresholds-frame { margin-top: 14px; }
.risks { display: grid; grid-template-columns: 215px 1fr; gap: 28px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.risks > .eyebrow { color: var(--muted); padding-top: 5px; }
.risks h2 { font-size: 23px; text-wrap: initial; }
.risk-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 12px 0 0; }
.risk-rows dt { font-weight: 650; font-size: 14px; line-height: 1.45; }
.risk-rows dd { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.risk-more { margin-top: 12px; color: var(--muted); font-size: 13px; }
.ask-roles { border-top: 1px solid var(--line); padding-top: 9px; }

@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr 1fr; }
  .risks { grid-template-columns: 175px 1fr; gap: 20px; }
}
@media (max-width: 650px) {
  .decision { padding: 15px 16px; }
  .decision-lede { font-size: 16px; }
  .decision-grid { grid-template-columns: 1fr; gap: 12px; }
  .roles { grid-template-columns: 1fr; }
  .roles li, .evidence-rows dd, .evidence-rows dt { font-size: 14px; }
  .evidence-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .risks { grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
  .risk-rows { grid-template-columns: 1fr; }
}
@media print {
  .decision { padding: 8px 12px; border-left-color: #333; break-inside: avoid; }
  .decision-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .decision-lede { font-size: 10.5pt; }
  .decision-grid dd, .risk-rows dd, .risk-more { font-size: 8.5pt; }
  .roles { background: #aaa; border-color: #aaa; }
  .roles li, .roles li:nth-child(3) { background: #fff; color: #000; font-size: 8.5pt; border-top: 0; }
  .roles li b { color: #000; }
  .role-tag { color: #333; border-color: #333; }
  .evidence-rows, .evidence-rows > div { border-color: #aaa; background: #fff; }
  .evidence-rows dt, .evidence-rows dd, .evidence-rows .scope { color: #000; font-size: 8.5pt; }
  .risks { padding-block: 8px; break-inside: avoid; }
  .risks h2 { font-size: 14pt; }
}
