:root {
  --paper: #f4efe5;
  --paper-deep: #e9e0d2;
  --ink: #162731;
  --muted: #59666b;
  --line: #c9c0b2;
  --cobalt: #2058a7;
  --cobalt-dark: #173f77;
  --rust: #a84315;
  --teal: #006a68;
  --white: #fffdf8;
  --shadow: 0 18px 55px rgba(22, 39, 49, .09);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); text-rendering: optimizeLegibility; }
a { color: var(--cobalt-dark); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--rust); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d36023; outline-offset: 4px; }
img, svg { max-width: 100%; }
code { font-family: 'Cascadia Code', Consolas, monospace; font-size: .92em; background: #e4ded3; padding: .12em .32em; border-radius: .2rem; }
.wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: white; padding: .75rem 1rem; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.review-hold { min-height: 30px; background: var(--ink); color: #f8efe0; display: flex; justify-content: center; gap: 1rem; align-items: center; padding: .3rem 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.review-hold span + span { border-left: 1px solid #68747a; padding-left: 1rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 229, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(1240px, calc(100% - 2.5rem)); min-height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { color: var(--ink); display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font: 700 1.06rem/1.1 var(--sans); letter-spacing: -.02em; }
.wordmark small { display: block; margin-top: .26rem; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.wordmark-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--cobalt); color: white; border-radius: 50% 50% 50% 12%; font-size: .7rem; letter-spacing: .03em; }
.primary-nav { display: flex; align-items: center; gap: 1.4rem; }
.primary-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.primary-nav a, .search-button { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); padding: .5rem .65rem; border: 0; background: transparent; text-decoration: none; font-size: .88rem; font-weight: 700; }
.primary-nav a[aria-current] { color: var(--cobalt); box-shadow: inset 0 -3px var(--cobalt); }
.search-button { border: 1px solid var(--ink); padding-inline: 1rem; cursor: pointer; }
.menu-button { display: none; width: 52px; min-height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.menu-button i, .menu-button i::before, .menu-button i::after { display: block; width: 15px; height: 1px; background: currentColor; content: ''; }
.menu-button i { margin-left: .35rem; position: relative; }
.menu-button i::before { position: absolute; top: -5px; }
.menu-button i::after { position: absolute; top: 5px; }
.site-search { border-top: 1px solid var(--line); background: var(--white); padding: 1.2rem max(1.25rem, calc((100vw - 1180px) / 2)); }
.site-search form { max-width: 760px; }
.site-search label { display: block; font-weight: 800; margin-bottom: .35rem; }
.site-search form > div { display: grid; grid-template-columns: 1fr auto; }
.site-search input { min-width: 0; border: 1px solid var(--ink); background: white; padding: .7rem .85rem; }
.site-search form button { border: 1px solid var(--ink); background: var(--ink); color: white; padding: .6rem 1rem; cursor: pointer; }
.search-status { margin: .45rem 0 0; color: var(--muted); font-size: .85rem; }
.search-results { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .4rem; }
.search-results a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; color: var(--ink); background: var(--paper); padding: .7rem .85rem; text-decoration: none; }
.search-results span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.eyebrow { margin: 0 0 .8rem; color: var(--rust); font-size: .72rem; line-height: 1.3; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(2.8rem, 7vw, 6.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3.1rem); }
h3 { font-size: 1.25rem; }
.home-hero { padding: clamp(4rem, 8vw, 8rem) 0; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 20%, rgba(32, 88, 167, .13), transparent 32%), linear-gradient(135deg, var(--paper), #f7f1e8 65%, #e8ded0); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr); gap: clamp(3rem, 8vw, 7rem); align-items: end; }
.home-hero h1 { max-width: 870px; margin: 0; }
.hero-lede { max-width: 720px; margin: 1.5rem 0 0; font: clamp(1.2rem, 2.1vw, 1.55rem)/1.5 var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--ink); color: var(--ink); padding: .65rem 1.1rem; text-decoration: none; font-weight: 800; }
.button:hover { background: var(--paper-deep); color: var(--ink); }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: var(--cobalt-dark); }
.freshness { color: var(--muted); font-size: .88rem; margin: 1.2rem 0 0; }
.hero-ledger { background: var(--ink); color: #e9edf0; padding: 1.5rem; box-shadow: var(--shadow); display: grid; grid-template-columns: 32px 1fr; gap: 1rem .8rem; }
.hero-ledger b { color: white; }
.hero-ledger p { margin: .18rem 0 0; color: #bfc8cd; font-size: .88rem; line-height: 1.45; }
.ledger-number { color: #ec8b5f; font: 700 .75rem var(--sans); letter-spacing: .1em; }
.path-section, .status-preview, .reader-contract { padding-block: clamp(4rem, 8vw, 7rem); }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading h2 { margin: 0; }
.section-heading p:last-child { color: var(--muted); }
.section-heading.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.path-grid a { min-height: 260px; color: var(--ink); padding: 1.5rem; border-right: 1px solid var(--line); text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.path-grid a:last-child { border-right: 0; }
.path-grid a:hover { background: var(--white); color: var(--ink); transform: translateY(-4px); }
.path-grid span { color: var(--rust); font: 800 .72rem var(--sans); letter-spacing: .1em; }
.path-grid h3 { margin: 3.6rem 0 .8rem; font-size: 1.65rem; }
.path-grid p { color: var(--muted); }
.path-grid b { display: block; margin-top: 1.4rem; font-size: .86rem; }
.changed-section { padding-block: clamp(4rem, 8vw, 7rem); color: white; background: var(--cobalt-dark); }
.changed-section h2, .changed-section h3 { color: white; }
.changed-section .eyebrow { color: #f0a681; }
.changed-section .section-heading > a { color: white; }
.change-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #6f89ac; }
.change-grid article { padding: 1.5rem 1.5rem 1.5rem 0; border-right: 1px solid #6f89ac; }
.change-grid article + article { padding-left: 1.5rem; }
.change-grid article:last-child { border-right: 0; }
.change-grid time { color: #bdcbe0; font-size: .78rem; font-variant-numeric: tabular-nums; }
.change-grid h3 { margin: 1rem 0; font-size: 1.5rem; }
.change-grid p { color: #dbe3ee; }
.citations { display: inline-flex; gap: .35rem; margin-left: .4rem; font: 800 .77rem var(--sans); }
.citations a { color: var(--rust); }
.changed-section .citations a { color: #ffc3a8; }
.status-list { border-top: 1px solid var(--line); }
.status-list > a { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: var(--ink); border-bottom: 1px solid var(--line); padding: .8rem .4rem; text-decoration: none; }
.status-list > a:hover { padding-inline: .8rem; background: var(--white); }
.status-list small { display: block; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .3rem .55rem; border: 1px solid currentColor; color: var(--teal); font: 800 .73rem var(--sans); letter-spacing: .02em; }
.status-announced { color: var(--cobalt); }
.status-terminated { color: #7d3840; }
.status-mixed, .status-maintained, .status-available-with-scope-limits { color: var(--rust); }
.research-loop { padding-block: clamp(4rem, 8vw, 7rem); background: var(--paper-deep); border-block: 1px solid var(--line); }
.loop { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2.5rem; }
.loop span { background: var(--white); border: 1px solid var(--ink); padding: .9rem 1.1rem; font-weight: 800; }
.loop i { color: var(--rust); font-size: 1.6rem; font-style: normal; }
.reader-contract { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.reader-contract h2 { margin-top: 0; }
.reader-contract ul { padding-left: 1.2rem; }
.page-intro { padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-intro h1 { max-width: 1000px; margin: 0; font-size: clamp(2.8rem, 6vw, 5.7rem); }
.lede { max-width: 850px; margin: 1.5rem 0 0; color: #394a52; font: clamp(1.15rem, 2.2vw, 1.5rem)/1.52 var(--serif); }
.page-meta { display: flex; gap: 1rem; margin-top: 1.6rem; color: var(--muted); font-size: .83rem; }
.page-meta span { padding-right: 1rem; border-right: 1px solid var(--line); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(3rem, 8vw, 7rem); padding-block: 4rem 6rem; align-items: start; }
.contents { position: sticky; top: 115px; border-top: 3px solid var(--ink); padding-top: 1rem; }
.contents strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contents ol { padding-left: 1.2rem; color: var(--muted); }
.contents li { margin: .45rem 0; }
.contents a { color: inherit; font-size: .82rem; text-decoration: none; }
.contents a:hover { color: var(--cobalt); text-decoration: underline; }
.prose { max-width: 72ch; }
.prose > section { padding-bottom: 4rem; }
.prose > section + section { border-top: 1px solid var(--line); padding-top: 4rem; }
.prose h2 { margin: 0 0 1.2rem; }
.prose p, .prose li { color: #34464e; }
.prose blockquote { margin: 2rem 0; border-left: 5px solid var(--cobalt); background: var(--white); padding: 1.5rem; font: 1.15rem/1.55 var(--serif); }
.conclusion, .callout { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--rust); padding: 1.2rem 1.4rem; }
.conclusion p:first-child, .callout p:first-child { margin-top: 0; }
.conclusion p:last-child, .callout p:last-child { margin-bottom: 0; }
.definition-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.definition-grid article { padding: 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.definition-grid article:nth-child(2n) { border-right: 0; }
.definition-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.definition-grid span { color: var(--rust); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.definition-grid h3 { margin: 1.5rem 0 .5rem; }
.definition-grid p { margin: 0; font-size: .9rem; }
.lineage { display: grid; grid-template-columns: repeat(7, 1fr); overflow-x: auto; padding-block: 1rem 1.5rem; }
.lineage span { min-width: 135px; position: relative; border-top: 3px solid var(--cobalt); padding: 1rem .7rem 0 0; font-weight: 800; }
.lineage span::before { position: absolute; top: -7px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--cobalt); content: ''; }
.lineage small { display: block; color: var(--muted); font-weight: 400; line-height: 1.35; margin-top: .4rem; }
.steps { padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 48px; border-top: 1px solid var(--line); padding: 1rem 0 1rem 3rem; counter-increment: steps; }
.steps li::before { position: absolute; left: 0; top: 1rem; color: var(--rust); font-weight: 800; content: counter(steps, decimal-leading-zero); }
.equation { margin: 2rem 0; background: var(--ink); color: white; padding: 1.4rem; text-align: center; font: 700 clamp(1rem, 3vw, 1.5rem) 'Cascadia Code', monospace; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 650px; border-collapse: collapse; background: var(--white); }
caption { padding: .8rem; text-align: left; font-weight: 800; }
th, td { padding: .85rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper-deep); font-size: .82rem; }
.stack-diagram { display: grid; gap: .45rem; }
.stack-diagram div { display: grid; grid-template-columns: minmax(140px, .7fr) 1.3fr; gap: 1rem; align-items: baseline; background: var(--white); border-left: 6px solid var(--cobalt); padding: .8rem 1rem; }
.stack-diagram div:nth-child(2) { margin-inline: 2%; }
.stack-diagram div:nth-child(3) { margin-inline: 4%; }
.stack-diagram div:nth-child(4) { margin-inline: 6%; }
.stack-diagram div:nth-child(5) { margin-inline: 8%; }
.stack-diagram small { color: var(--muted); }
.stack-diagram.physical div { border-left-color: var(--teal); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; border-top: 1px solid var(--line); padding: .8rem 0 .8rem 2rem; }
.checklist li::before { position: absolute; left: .2rem; color: var(--teal); content: '✓'; font-weight: 900; }
.route-grid, .compare, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.route-grid a { display: flex; min-height: 110px; flex-direction: column; justify-content: space-between; background: var(--white); border: 1px solid var(--line); color: var(--ink); padding: 1rem; text-decoration: none; }
.route-grid a:hover { border-color: var(--cobalt); }
.route-grid span { color: var(--muted); font-size: .82rem; }
.compare > div, .two-col > div { background: var(--white); border: 1px solid var(--line); padding: 1.2rem; }
.compare h3 { margin: 1.5rem 0 .5rem; }
.compare p { margin-bottom: 0; }
.feed-card { display: flex; align-items: center; gap: 1.2rem; background: var(--ink); color: white; padding: 1.5rem; }
.feed-card h3 { color: white; margin: 0; }
.feed-card p { color: #cbd3d7; }
.feed-card .button { color: white; border-color: white; }
.feed-mark { display: grid; place-items: center; width: 70px; height: 70px; border: 2px solid #f0a681; border-radius: 50%; color: #f0a681; font-size: 2.2rem; }
.related { padding-block: 3rem 5rem; border-top: 1px solid var(--line); }
.related h2 { margin: 0; }
.related > div { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.6rem; border: 1px solid var(--line); }
.related a { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink); border-right: 1px solid var(--line); padding: 1rem; text-decoration: none; font-weight: 800; }
.related a:last-child { border-right: 0; }
.related a:hover { background: var(--white); }
.bibliography { padding-block: 5rem; border-top: 1px solid var(--line); }
.source-list { list-style-position: outside; padding-left: 2rem; }
.source-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; border-top: 1px solid var(--line); padding: .9rem .3rem; }
.source-list p { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; }
.source-kind { align-self: start; border: 1px solid var(--line); padding: .25rem .45rem; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.access-note { color: var(--muted); font-size: .8rem; }
.timeline-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding-block: 4rem 7rem; align-items: start; }
.filter-rail { position: sticky; top: 108px; border-top: 3px solid var(--ink); padding-top: 1rem; }
.filter-title { display: flex; justify-content: space-between; align-items: center; }
.filter-title button { border: 0; background: transparent; color: var(--cobalt); text-decoration: underline; cursor: pointer; }
.filter-rail fieldset { border: 0; border-top: 1px solid var(--line); margin: 1rem 0 0; padding: 1rem 0 0; }
.filter-rail legend { padding: 0; font-weight: 800; font-size: .8rem; }
.filter-rail label { display: block; padding: .32rem 0; font-size: .82rem; cursor: pointer; }
.filter-rail input { width: 17px; height: 17px; vertical-align: -3px; accent-color: var(--cobalt); }
.timeline-tools { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.timeline-tools p { margin: 0; color: var(--muted); font-size: .84rem; }
.timeline-tools div { display: flex; gap: .5rem; }
.timeline-tools a { border: 1px solid var(--line); padding: .3rem .55rem; text-decoration: none; font-size: .75rem; font-weight: 800; }
.timeline { position: relative; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 145px; width: 1px; background: var(--line); content: ''; }
.timeline-event { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 50px; position: relative; padding: 2.5rem 0; }
.timeline-event::before { position: absolute; top: 3rem; left: 139px; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: var(--cobalt); content: ''; }
.event-date time { display: block; font-weight: 800; font-variant-numeric: tabular-nums; }
.event-date span { color: var(--muted); font-size: .7rem; }
.event-labels { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.event-labels > span:first-child { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.event-body h2 { margin: .8rem 0; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.event-body h2 a { color: var(--ink); text-decoration: none; }
.event-body p { max-width: 67ch; color: #3b4b53; }
.event-evidence { display: flex; align-items: center; color: var(--muted); font-size: .75rem; }
.no-results { background: var(--white); border: 1px solid var(--line); padding: 1.5rem; margin-top: 1rem; }
.no-results h2 { font-size: 1.5rem; }
.status-board { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 4rem; }
.status-card { background: var(--white); border: 1px solid var(--line); padding: 1.4rem; }
.status-card-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; }
.status-card-head p { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-card h2 { margin: .5rem 0 0; font-size: 1.7rem; }
.status-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 1.2rem 0; border-block: 1px solid var(--line); }
.status-card dl div { padding: .8rem 0; }
.status-card dt, .updates-list dt { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.status-card dd, .updates-list dd { margin: .18rem 0 0; }
.status-card ul { padding-left: 1.1rem; color: #3b4b53; }
.next-trigger { background: var(--paper); padding: .8rem; }
.next-trigger p { margin: .3rem 0 0; color: var(--muted); font-size: .85rem; }
.status-note { padding-block: 2rem 6rem; max-width: 800px; margin-left: max(1.25rem, calc((100% - 1180px) / 2)); }
.status-note h2 { margin-bottom: .8rem; }
.updates-list { padding-block: 4rem 6rem; }
.updates-list > article { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.updates-list header { display: grid; grid-template-columns: 150px 1fr; gap: 2rem; align-items: baseline; }
.updates-list time { color: var(--rust); font-weight: 800; font-variant-numeric: tabular-nums; }
.updates-list h2 { margin: 0; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.before-after > div { background: var(--white); border: 1px solid var(--line); padding: 1rem; }
.before-after > div:last-child { border-top: 4px solid var(--teal); }
.before-after p { color: #3b4b53; }
.updates-list dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.updates-list dl div { padding: .8rem 0; }
.feed-prompt { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--ink); color: white; padding: 2rem; margin-bottom: 6rem; }
.feed-prompt h2 { color: white; margin: 0; }
.feed-prompt p:not(.eyebrow) { color: #c9d2d6; margin-bottom: 0; }
.feed-prompt .button { color: white; border-color: white; flex: none; }
.not-found { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 5rem; }
.not-found h1 { margin: 0; }
.not-found > p:not(.eyebrow) { max-width: 600px; font: 1.3rem/1.5 var(--serif); }
.site-footer { background: var(--ink); color: #c9d2d6; padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-grid > div:first-child { max-width: 480px; }
.footer-wordmark { color: white; font: 700 1.5rem var(--serif); text-decoration: none; }
.footer-grid h2 { margin: 0 0 .8rem; color: white; font: 800 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.footer-grid a:not(.footer-wordmark) { display: block; color: #d5dde1; margin: .4rem 0; }
.footer-base { display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid #4b5b63; margin-top: 3rem; padding-top: 1rem; font-size: .76rem; }

@media (max-width: 900px) {
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 74px; background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; box-shadow: var(--shadow); }
  .primary-nav[data-open] { display: block; }
  .primary-nav ul { display: grid; }
  .primary-nav a, .search-button { width: 100%; justify-content: space-between; }
  .search-button { margin-top: .5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ledger { max-width: 620px; }
  .path-grid { grid-template-columns: 1fr 1fr; }
  .path-grid a:nth-child(2) { border-right: 0; }
  .path-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .change-grid { grid-template-columns: 1fr; }
  .change-grid article, .change-grid article + article { border-right: 0; border-bottom: 1px solid #6f89ac; padding-inline: 0; }
  .change-grid article:last-child { border-bottom: 0; }
  .article-layout { grid-template-columns: 1fr; }
  .contents { position: static; columns: 2; }
  .timeline-layout { grid-template-columns: 1fr; }
  .filter-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .filter-title { grid-column: 1 / -1; }
  .status-board { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap, .header-inner { width: min(100% - 1.5rem, 1180px); }
  .review-hold { justify-content: space-between; gap: .4rem; font-size: .58rem; }
  .review-hold span + span { padding-left: .4rem; }
  .wordmark-mark { width: 38px; height: 38px; }
  .home-hero { padding-top: 3.5rem; }
  .path-grid { grid-template-columns: 1fr; }
  .path-grid a { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .path-grid a:last-child { border-bottom: 0; }
  .path-grid h3 { margin-top: 2.2rem; }
  .section-heading.split { align-items: start; flex-direction: column; gap: .5rem; }
  .reader-contract, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-meta { flex-direction: column; }
  .page-meta span { border: 0; }
  .contents { columns: 1; }
  .definition-grid, .route-grid, .compare, .two-col { grid-template-columns: 1fr; }
  .definition-grid article { border-right: 0; }
  .definition-grid article:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .stack-diagram div { grid-template-columns: 1fr; gap: .2rem; margin-inline: 0 !important; }
  .related > div { grid-template-columns: 1fr; }
  .related a { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--line); }
  .related a:last-child { border-bottom: 0; }
  .source-list li { grid-template-columns: 1fr; }
  .source-kind { justify-self: start; }
  .filter-rail { grid-template-columns: 1fr; }
  .filter-title { grid-column: auto; }
  .timeline::before { left: 7px; }
  .timeline-event { grid-template-columns: 1fr; gap: .4rem; padding: 2rem 0 2rem 2rem; }
  .timeline-event::before { left: 1px; top: 2.5rem; }
  .event-date { display: flex; gap: .7rem; align-items: baseline; }
  .timeline-tools { align-items: start; flex-direction: column; }
  .status-card-head { flex-direction: column; }
  .status-card dl { grid-template-columns: 1fr; }
  .status-card dl div + div { border-top: 1px solid var(--line); }
  .updates-list header { grid-template-columns: 1fr; gap: .4rem; }
  .before-after, .updates-list dl { grid-template-columns: 1fr; }
  .feed-prompt { align-items: start; flex-direction: column; }
  .footer-base { flex-direction: column; gap: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .wordmark-mark, .hero-ledger, .changed-section, .feed-prompt, .site-footer { border: 1px solid CanvasText; }
  .timeline::before, .timeline-event::before { background: CanvasText; }
}

@media print {
  .review-hold, .site-header, .hero-actions, .filter-rail, .timeline-tools, .related, .site-footer { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .wrap { width: 100%; }
  a[href^='http']::after { content: ' (' attr(href) ')'; overflow-wrap: anywhere; font-size: 8pt; }
  .page-intro { padding: 1rem 0; }
  .article-layout, .timeline-layout { display: block; padding: 1rem 0; }
  .timeline-event, .status-card, .updates-list > article { break-inside: avoid; }
}
