:root {
  color-scheme: light;
  --ink: #23292a;
  --muted: #646b6b;
  --line: #dce1e0;
  --paper: #ffffff;
  --canvas: #f7f9f7;
  --green: #27634b;
  --blue: #4168a0;
  --coral: #ad5c46;
  --policy-surface: #eef3fa;
  --memory-surface: #edf5ef;
  --display: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --editorial: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body[data-lang="zh"] .lang-en, body[data-lang="en"] .lang-zh { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
strong { font-weight: 700; }
::selection { background: #cde9d9; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 30; top: -100px; left: 20px; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.page-width { width: min(100% - 88px, 1280px); margin-inline: auto; }
.section-band { width: 100%; }

.site-header { position: sticky; z-index: 20; top: 0; height: 76px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; font-family: var(--display); font-size: 22px; font-weight: 650; line-height: 1; }
.brand img { display: block; }
.brand-version { color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; color: #55645b; font-size: 13px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--green); }
.header-controls { display: flex; align-items: center; gap: 12px; }
.language-switch { display: flex; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: #f6f8f5; }
.language-switch button { min-width: 35px; padding: 0 9px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.language-switch button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22,45,31,.09); }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.icon-button:hover, .toolbar-button:hover { border-color: #93a99b; background: #f0f5f1; }
.icon-button:disabled { opacity: .35; cursor: default; }
.icon-button img { display: block; width: 18px; height: 18px; }
.menu-toggle { display: none; }

.lead-section { padding-top: 35px; padding-bottom: 28px; }
.lead-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lead-topline > a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 650; }
.lead-topline > a:hover { color: var(--green); }
.lead-topline img { width: 14px; height: 14px; }
.lead-heading { display: flex; align-items: center; gap: 52px; margin-top: 26px; }
.lead-heading > div { min-width: 0; padding-left: 35px; border-left: 1px solid var(--line); }
.eyebrow, .section-index, .sub-index { margin: 0; color: var(--green); font-size: 11px; font-weight: 800; line-height: 1.5; letter-spacing: 0; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 11px; font-size: 12px; }
.edition-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.eyebrow-divider { color: #a5b2a8; }
.lead-section h1 { flex: none; margin: 0; font-family: var(--display); font-size: 96px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.lead-section h1 span { color: var(--green); }
.lead-title { margin: 0; font-family: var(--editorial); font-size: 29px; font-weight: 500; line-height: 1.4; }
.lead-subtitle { margin: 11px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.lead-intro { display: flex; justify-content: space-between; align-items: center; gap: 45px; margin-top: 32px; }
.lead-description { max-width: 730px; margin: 0; color: #4e5f55; font-size: 16px; line-height: 1.85; }
.lead-description strong { color: var(--ink); }
.lead-description .lang-zh strong { white-space: nowrap; }
.policy-text, .lead-description .policy-text { color: var(--blue); }
.memory-text, .lead-description .memory-text { color: var(--green); }
.lead-actions { display: flex; flex: none; align-items: start; flex-direction: column; gap: 7px; }
.lead-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; margin-top: 31px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.lead-meta > span:first-child { color: var(--ink); font-weight: 600; }
.lead-meta > span:last-child { margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; transition: background-color .16s, border-color .16s, color .16s; }
.button img { display: block; width: 17px; height: 17px; flex: none; }
.button-dark { background: var(--ink); color: white; }
.button-dark img { filter: invert(1); }
.button-dark:hover { background: #365744; }
.button-text { color: var(--green); padding-left: 12px; padding-right: 12px; }
.button-text:hover { background: #edf4ef; }
.button-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.button-outline:hover { border-color: #92a799; background: #f5f8f5; }

.architecture-section { padding: 68px 0 67px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .62fr); align-items: end; gap: 65px; margin-bottom: 35px; }
.section-heading h2, .boundary-section h2 { max-width: 840px; margin: 12px 0 0; font-family: var(--editorial); font-size: 36px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.section-summary { max-width: 360px; margin: 0 0 2px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.diagram-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 16px; border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.diagram-toolbar p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.diagram-live-dot { display: block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.diagram-actions { display: flex; align-items: center; gap: 4px; }
.toolbar-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; padding: 0 10px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.toolbar-button img { display: block; width: 15px; height: 15px; }
.diagram-preview { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; line-height: 0; text-align: left; }
.diagram-preview:hover { border-color: #a9bcad; }
.diagram-preview img { display: block; width: 100%; height: auto; }
.architecture-caption { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.architecture-caption a { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--green); font-weight: 700; }
.architecture-caption img { width: 14px; height: 14px; }
.architecture-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 45px; border-top: 1px solid var(--line); }
.architecture-principles article { min-width: 0; padding: 23px 36px 0 0; }
.architecture-principles article + article { border-left: 1px solid var(--line); padding-left: 36px; }
.support-symbol { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1; }
.support-symbol sub { font-size: 12px; }
.architecture-principles h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 700; }
.architecture-principles p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.evidence-section { padding-top: 77px; padding-bottom: 85px; }
.evidence-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-stats article { display: flex; flex-direction: column; min-width: 0; padding: 24px 28px 26px 0; }
.evidence-stats article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.stat-index { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.evidence-stats strong { margin-top: 17px; color: var(--ink); font-family: var(--editorial); font-size: 41px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.evidence-stats p { flex: 1; margin: 13px 0 18px; color: #4d5a50; font-size: 13px; line-height: 1.65; }
.evidence-stats a { color: var(--green); font-size: 12px; font-weight: 700; }
.evidence-stats a:hover { text-decoration: underline; text-underline-offset: 3px; }
.results-section { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 67px; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.results-heading h3 { margin: 9px 0 0; font-family: var(--editorial); font-size: 28px; font-weight: 500; }
.section-source { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 12px; font-weight: 700; white-space: nowrap; }
.section-source img { width: 15px; height: 15px; }
.result-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 25px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: #f3f6f3; }
.segmented button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.segmented button.is-active { background: white; box-shadow: 0 1px 4px rgba(20,45,30,.1); color: var(--ink); }
.results-caption { margin: 22px 0 8px; color: #52635a; font-size: 13px; font-weight: 700; }
.results-table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.results-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.results-table th, .results-table td { padding: 17px 16px; border-bottom: 1px solid #e8ede8; text-align: left; }
.results-table thead th { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.results-table th:first-child { width: 35%; padding-left: 14px; }
.results-table thead th:nth-child(2) { width: 43%; }
.results-table thead th:last-child { width: 22%; }
.results-table tbody th { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.results-table tbody td { font-size: 14px; font-variant-numeric: tabular-nums; }
.results-table tbody td:nth-child(2) { display: flex; align-items: center; gap: 16px; color: var(--ink); font-weight: 750; white-space: nowrap; }
.results-table tbody td:last-child { color: #52635a; white-space: nowrap; }
.results-table tbody tr:last-child th, .results-table tbody tr:last-child td { border-bottom: 0; }
.results-table .result-focus { background: #f0f6f2; }
.results-table .result-focus th, .results-table .result-focus td { color: var(--green); }
.result-track { display: block; width: min(100%, 350px); height: 6px; overflow: hidden; border-radius: 4px; background: #e5ece6; }
.result-fill { display: block; height: 100%; background: #8ba89c; transition: width .25s ease; }
.result-focus .result-fill { background: var(--green); }
.results-note { max-width: 1050px; margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.boundary-section { padding: 65px 0 70px; background: #24392f; color: white; }
.boundary-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 100px; }
.boundary-section .section-index { color: #9ed6b5; }
.boundary-section h2 { max-width: 480px; font-size: 34px; }
.boundary-copy { color: #d6e3d9; font-size: 14px; line-height: 1.8; }
.boundary-copy p { margin: 0 0 17px; }
.boundary-copy ul { margin: 0 0 19px; padding: 0; list-style: none; }
.boundary-copy li { position: relative; padding: 7px 0 7px 23px; border-bottom: 1px solid rgba(255,255,255,.16); }
.boundary-copy li::before { content: ""; position: absolute; top: 19px; left: 0; width: 7px; height: 7px; border: 1.5px solid #e4a792; border-radius: 50%; }
.boundary-copy a { display: inline-flex; align-items: center; gap: 5px; color: #c8f0d7; font-size: 12px; font-weight: 700; }
.boundary-copy a img { width: 15px; height: 15px; filter: invert(1); }

.papers-section { padding-top: 80px; padding-bottom: 80px; }
.featured-paper { display: grid; grid-template-columns: 295px minmax(0, 1fr); gap: 55px; align-items: center; padding: 31px 0 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.paper-cover { display: block; width: 295px; height: auto; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.paper-cover img { display: block; width: 100%; height: auto; }
.paper-cover:hover { border-color: #9db3a1; }
.featured-paper-copy { max-width: 780px; min-width: 0; }
.paper-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.paper-tags span { padding: 5px 8px; border: 1px solid #cfded3; color: var(--green); font-size: 10px; font-weight: 750; }
.featured-paper h3 { margin: 22px 0 14px; font-family: var(--display); font-size: 29px; font-weight: 670; line-height: 1.22; overflow-wrap: anywhere; }
.featured-authors { margin: 0 !important; color: var(--ink) !important; font-size: 14px !important; font-weight: 700; }
.featured-paper-copy > p:not(.featured-authors) { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.paper-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.companion-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 56px 0 21px; }
.companion-head h3 { margin: 0 0 5px; font-family: var(--display); font-size: 22px; font-weight: 690; }
.companion-head p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.companion-head > a { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--green); font-size: 12px; font-weight: 700; }
.companion-head img { width: 15px; height: 15px; }
.paper-list { border-top: 1px solid var(--line); }
.paper-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 60px 38px; align-items: center; gap: 20px; min-height: 105px; border-bottom: 1px solid var(--line); }
.paper-number { align-self: start; padding-top: 26px; color: var(--green); font-size: 12px; font-weight: 800; }
.paper-topic { color: var(--blue); font-size: 10px; font-weight: 800; }
.paper-row h4 { margin: 4px 0 4px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.paper-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.paper-pages { color: var(--muted); font-size: 11px; text-align: right; white-space: nowrap; }
.paper-row > a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; }
.paper-row > a:hover { border-color: var(--green); background: #edf5ee; }
.paper-row > a img { width: 17px; height: 17px; }

.implementation-section { padding: 58px 0 56px; background: #f7f9fa; border-top: 1px solid var(--line); }
.state-definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 35px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.state-definition { display: flex; align-items: start; gap: 25px; min-width: 0; padding: 27px 34px 27px 0; }
.state-definition + .state-definition { padding-left: 36px; border-left: 1px solid var(--line); }
.state-symbol { flex: 0 0 55px; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: 62px; line-height: 1; text-align: center; }
.memory-definition .state-symbol { color: var(--green); }
.state-kicker { margin: 0 !important; color: var(--blue) !important; font-size: 10px !important; font-weight: 700; }
.memory-definition .state-kicker { color: var(--green) !important; }
.state-definition h3 { margin: 5px 0 5px; font-size: 18px; font-weight: 650; }
.state-definition p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.state-facts { margin: 18px 0 0; }
.state-facts > div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; margin-top: 11px; font-size: 13px; line-height: 1.7; }
.state-facts dt { color: var(--blue); font-size: 11px; font-weight: 650; }
.memory-definition .state-facts dt { color: var(--green); }
.state-facts dd { margin: 0; color: #52625a; }
.update-schedule { padding-bottom: 34px; }
.schedule-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 25px; margin-bottom: 17px; }
.schedule-heading h3 { margin: 0; font-size: 19px; font-weight: 650; }
.schedule-heading > span { color: var(--muted); font-size: 11px; line-height: 1.7; }
.schedule-lane { display: grid; grid-template-columns: 112px minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 22px; padding: 19px 20px; border-top: 1px solid #d5deeb; color: #52625a; font-size: 12px; line-height: 1.7; }
.policy-lane { background: #f0f4fa; }
.memory-lane { border-top-color: #cbdccf; border-bottom: 1px solid #cbdccf; background: #edf4ef; }
.schedule-lane > strong { color: var(--blue); font-size: 13px; }
.memory-lane > strong { color: var(--green); }
.schedule-lane > img { width: 18px; height: 18px; opacity: .55; }
.schedule-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.worked-example { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 70px; padding: 30px 0 27px; border-top: 1px solid #c2cfc6; }
.worked-example .section-index { font-size: 10px; color: var(--muted); }
.worked-example h3 { max-width: 420px; margin: 8px 0 0; font-size: 20px; line-height: 1.5; font-weight: 650; }
.worked-example > p { margin: 0; color: #52625a; font-size: 14px; line-height: 1.85; }
.implementation-section code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; font-size: .94em; }
.flow-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #c9d3cf; }
.flow-tabs button { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 68px; padding: 14px 20px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left; }
.flow-tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; content: ""; }
.flow-tabs button:hover { color: var(--ink); background: #edf1f0; }
.flow-tabs button[aria-selected="true"] { color: var(--ink); background: #fff; }
.flow-tabs button[aria-selected="true"]::after { background: var(--ink); }
.flow-tabs button[data-flow-step="adapt"][aria-selected="true"]::after { background: var(--blue); }
.flow-tabs button[data-flow-step="consolidate"][aria-selected="true"]::after, .flow-tabs button[data-flow-step="publish"][aria-selected="true"]::after { background: var(--green); }
.flow-tab-number { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 500; }
.flow-tabs button[aria-selected="true"] .flow-tab-number { color: var(--green); }
.flow-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; gap: 70px; padding: 35px 0 28px; }
.flow-narrative { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 12px 0 0; }
.flow-copy-stack { display: grid; }
.flow-copy-stack > div { grid-area: 1 / 1; }
.flow-copy-stack > [hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.flow-phase { margin: 0 0 15px; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.6; }
.flow-copy-stack h3 { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.4; }
.flow-copy-stack h3 + p { max-width: 480px; margin: 19px 0 0; color: #52625a; font-size: 14px; line-height: 1.85; }
.flow-copy-stack .example-detail { margin: 17px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: #374b40; font-size: 14px; line-height: 1.85; }
.example-detail code { font-weight: 650; white-space: nowrap; }
.flow-rule { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; padding-left: 14px; border-left: 2px solid #cbd6cf; color: var(--muted); font-size: 12px; line-height: 1.7; }
.rule-label { color: var(--ink); font-size: 11px; font-weight: 700; }
.flow-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
#flow-counter { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.flow-navigation > div { display: flex; gap: 7px; }
.arrow-back { transform: rotate(180deg); }
.flow-visual { display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 1px solid #d5ded8; background: #fff; }
.visual-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 0 22px; border-bottom: 1px solid #e6ebe7; color: var(--muted); font-size: 10px; font-weight: 600; }
.visual-notation { display: flex; gap: 14px; font-size: 13px; }
.policy-key { color: var(--blue); }
.memory-key { color: var(--green); }
.flow-scene { grid-area: 2 / 1; display: flex; flex-direction: column; align-items: center; align-self: center; justify-content: center; min-width: 0; min-height: 366px; padding: 23px 34px 18px; }
.flow-scene[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.read-pair { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; width: 100%; }
.read-state { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 10px 14px; border-top: 2px solid; }
.read-state > span:last-child { font-size: 11px; font-weight: 600; }
.policy-state { border-color: var(--blue); background: var(--policy-surface); color: var(--blue); }
.memory-state { border-color: var(--green); background: var(--memory-surface); color: var(--green); }
.visual-symbol { font-family: Georgia, "Times New Roman", serif; font-size: 38px; line-height: 1.1; }
.visual-symbol sub, .state-transition sub { font-size: 13px; }
.pair-plus { color: #8e9a92; text-align: center; font-size: 20px; font-weight: 300; }
.merge-connector { position: relative; width: 54%; height: 32px; margin-bottom: 17px; border: 1px solid #c2cfc5; border-top: 0; }
.merge-connector::after { position: absolute; top: 30px; left: 50%; width: 1px; height: 14px; background: #c2cfc5; content: ""; }
.merge-connector img { position: absolute; z-index: 1; bottom: -20px; left: calc(50% - 7px); width: 15px; height: 15px; transform: rotate(90deg); }
.reasoning-node { width: 100%; padding: 19px 20px; background: #25382f; color: white; text-align: center; }
.node-eyebrow { display: block; color: #b6c9bd; font-size: 10px; font-weight: 500; }
.reasoning-node strong { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.example-generation { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 15px; margin-top: 18px; }
.example-generation > div > span { display: block; color: #bdd3c5; font-size: 10px; }
.example-generation code { display: block; margin-top: 9px; color: white; font-size: 18px; white-space: nowrap; }
.example-generation img { width: 20px; height: 20px; filter: invert(1); opacity: .65; }
.scene-caption { align-self: stretch; min-height: 32px; margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.feedback-source { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; }
.event-marker { width: 9px; height: 9px; border: 2px solid var(--blue); border-radius: 50%; }
.vertical-arrow { width: 23px; height: 23px; margin: 14px 0; transform: rotate(90deg); opacity: .6; }
.policy-update { width: 100%; padding: 19px 15px 17px; border-top: 2px solid var(--blue); background: var(--policy-surface); text-align: center; }
.policy-update p { margin: 0; color: var(--blue); font-size: 10px; font-weight: 700; }
.state-transition { display: flex; justify-content: center; align-items: center; gap: 27px; margin: 20px 0 13px; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: 1; }
.state-transition img { width: 30px; height: 30px; opacity: .55; }
.policy-update > span { color: var(--muted); font-size: 11px; }
.unchanged-states { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; margin-top: 22px; }
.unchanged-states > span { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.unchanged-states b { color: #7b8880; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; }
.completed-segment { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding-bottom: 19px; border-bottom: 1px dashed #bdcbbf; }
.candidate-label { color: var(--green); font-size: 11px; font-weight: 650; }
.completed-segment > span:last-child { display: flex; align-items: center; gap: 5px; color: var(--green); font-size: 10px; }
.completed-segment img { width: 14px; height: 14px; }
.candidate-fields { width: 100%; margin: 5px 0 0; }
.candidate-fields > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 15px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #e0e7e2; font-size: 12px; line-height: 1.6; }
.candidate-fields dt { color: var(--muted); font-size: 10px; }
.candidate-fields dd { margin: 0; color: #374b40; overflow-wrap: anywhere; }
.candidate-fields .canonical-field dd { color: var(--green); font-size: 19px; font-weight: 650; }
.memory-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-bottom: 20px; }
.memory-choice > span { color: var(--muted); font-size: 10px; font-weight: 600; }
.memory-choice .segmented button { min-height: 29px; padding-inline: 11px; font-size: 11px; }
.memory-ledger { width: 100%; }
.ledger-header { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 11px; border-bottom: 1px solid #8aac96; color: var(--green); font-size: 9px; font-weight: 650; }
.ledger-header > span:last-child { color: var(--muted); white-space: nowrap; font-weight: 400; }
.ledger-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 57px; align-items: center; gap: 10px; min-height: 38px; padding: 5px 8px; border-bottom: 1px solid #e0e6e1; color: var(--muted); font-size: 11px; }
.ledger-row > span:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.row-bars { display: flex; gap: 8px; }
.row-bars i { display: block; width: 26%; height: 4px; background: #e1e8e2; }
.row-bars i:first-child { width: 45%; }
.row-status { text-align: right; font-size: 9px; }
.target-row { min-height: 67px; color: var(--green); border-bottom-color: #91b89e; background: var(--memory-surface); }
.row-content small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.later-read { width: 100%; min-height: 102px; margin-top: 5px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; }
.later-read strong { display: block; margin-bottom: 4px; color: var(--green); font-size: 11px; }
.later-read > span { color: #52625a; }
/* Reserve both outcomes' space so switching does not move the surrounding text. */
.flow-scene[data-flow-scene="publish"], .flow-scene[data-flow-scene="publish"][hidden] { display: grid !important; grid-template-columns: minmax(0, 1fr); align-content: center; }
[data-flow-scene="publish"] > .memory-choice { grid-area: 1 / 1; }
[data-flow-scene="publish"] > .memory-ledger { grid-area: 2 / 1; }
[data-flow-scene="publish"] > .scene-caption { grid-area: 3 / 1; }
[data-flow-scene="publish"] > .later-read { grid-area: 4 / 1; }
.row-content { display: grid; }
.row-content > [data-outcome-copy] { grid-area: 1 / 1; }
[data-flow-scene="publish"] > [data-outcome-copy][hidden], .row-content > [data-outcome-copy][hidden] { display: block !important; visibility: hidden; }
.write-marker { display: inline-block; color: var(--green); font-size: 20px; }
.null-marker { display: none; font-size: 19px; }
[data-outcome="null"] .target-row { color: var(--muted); border-bottom-color: #e0e6e1; background: #f7f8f7; }
[data-outcome="null"] .write-marker { display: none; }
[data-outcome="null"] .null-marker { display: inline-block; }
.ledger-continuation { height: 20px; padding-left: 8px; color: #8d9d93; font-size: 14px; line-height: 13px; }
.flow-footnote { display: flex; align-items: start; justify-content: space-between; gap: 25px; padding: 15px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.flow-footnote a { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--green); font-weight: 600; }
.flow-footnote img { width: 14px; height: 14px; }
.admission-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 75px; margin-top: 67px; padding-top: 47px; border-top: 1px solid #b8c8bc; }
.admission-copy .section-index { color: var(--coral); }
.admission-copy h3 { margin: 15px 0 17px; font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.35; }
.admission-copy > p:not(.section-index) { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.admission-objective { margin: 22px 0; padding: 18px 0 18px 16px; border-left: 2px solid #c4937e; }
.admission-objective > span { display: block; color: var(--muted); font-size: 11px; }
.admission-objective strong { display: block; margin: 8px 0; color: #95523d; font-size: 17px; line-height: 1.65; font-weight: 600; }
.admission-objective small { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admission-paths { min-width: 0; }
.admission-path { padding: 20px 0; border-top: 2px solid #d1a690; }
.path-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.path-tag { color: var(--coral); font-size: 11px; font-weight: 750; }
.admission-method { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: admission; }
.admission-method li { position: relative; padding: 0 0 20px 34px; counter-increment: admission; }
.admission-method li::before { content: "0" counter(admission); position: absolute; top: 2px; left: 0; color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.admission-method strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; font-weight: 600; }
.admission-method li > span { display: block; color: #52625a; font-size: 13px; line-height: 1.8; }
.path-explanation { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.training-boundary { display: flex; align-items: center; gap: 9px; margin: 5px 0 16px; padding: 8px 0; border-top: 1px dashed #d6b9a9; color: #956649; font-size: 10px; line-height: 1.6; }
.boundary-cross { font-size: 18px; font-weight: 300; }
.deployment-path { border-color: #9cbaa5; }
.deployment-path .path-tag { color: var(--green); }
.deployment-flow { display: grid; grid-template-columns: minmax(0, 1fr) 17px minmax(0, 1.25fr) 17px minmax(0, .8fr); align-items: center; gap: 15px; margin-top: 24px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.deployment-flow strong { color: var(--green); font-size: 12px; font-weight: 650; text-align: center; }
.deployment-flow img { width: 17px; height: 17px; opacity: .6; }
.admission-action { color: var(--green); text-align: right; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.mechanism-footnote { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.paper-mechanism-guide { margin-top: 42px; padding-top: 35px; border-top: 1px solid #b8c8bc; }
.paper-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.paper-guide-heading h3 { margin: 11px 0 0; font-size: 24px; font-weight: 650; line-height: 1.5; }
.paper-guide-heading .button { flex: none; }
.paper-guide-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin-top: 27px; }
.paper-guide-topics > a { position: relative; min-width: 0; padding: 20px 25px 23px 0; border-top: 1px solid var(--line); }
.paper-guide-topics > a > span { color: var(--blue); font-size: 9px; font-weight: 650; }
.paper-guide-topics strong { display: block; margin-top: 10px; color: var(--ink); font-size: 15px; line-height: 1.7; font-weight: 600; }
.paper-guide-topics p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.paper-guide-topics img { position: absolute; top: 22px; right: 0; width: 16px; height: 16px; opacity: .6; }
.paper-guide-topics a:hover strong { color: var(--green); }

.citation-section { padding-top: 77px; padding-bottom: 84px; }
.citation-box { border: 1px solid var(--line); background: #f8faf8; }
.citation-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 19px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.citation-top > div { display: flex; align-items: center; gap: 10px; }
#copy-status { color: var(--green); font-size: 11px; }
.citation-box pre { margin: 0; padding: 24px 26px 28px; overflow-x: auto; color: #2b4337; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; font-size: 12px; line-height: 1.8; }
.site-footer { padding: 33px 0; background: #f6f8f6; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-footer .brand { font-size: 19px; }
.site-footer p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 25px; }
.footer-links a { color: var(--green); font-size: 12px; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.diagram-dialog { width: min(96vw, 1800px); height: min(94vh, 1240px); max-width: none; max-height: none; padding: 0; border: 1px solid #a4b5a8; border-radius: 6px; background: #fff; color: var(--ink); }
.diagram-dialog[open] { display: flex; flex-direction: column; }
.diagram-dialog::backdrop { background: rgba(14,28,19,.72); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; padding: 11px 21px; border-bottom: 1px solid var(--line); }
.dialog-eyebrow { color: var(--green); font-size: 10px; font-weight: 800; }
.dialog-header h2 { margin: 3px 0 0; font-size: 17px; line-height: 1.3; }
.dialog-tools { display: flex; align-items: center; gap: 5px; }
#zoom-level { min-width: 48px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.dialog-separator { width: 1px; height: 25px; margin: 0 5px; background: var(--line); }
.diagram-stage { flex: 1; min-height: 0; padding: 24px; overflow: auto; background: #e9ede9; }
.diagram-stage img { display: block; max-width: none; height: auto; margin: auto; background: #fff; }

@media (max-width: 1100px) {
  .site-nav a { padding-inline: 9px; font-size: 12px; }
  .page-width { width: min(100% - 56px, 1280px); }
  .lead-heading { gap: 28px; }
  .lead-heading > div { padding-left: 28px; }
  .lead-section h1 { font-size: 88px; }
  .lead-title { font-size: 25px; }
  .lead-intro { gap: 32px; }
  .lead-description { font-size: 15px; }
  .state-definition { gap: 20px; padding-right: 25px; }
  .state-definition + .state-definition { padding-left: 25px; }
  .state-facts > div { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  .schedule-lane { grid-template-columns: 100px minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); gap: 13px; }
  .worked-example { gap: 38px; }
  .flow-panel { gap: 38px; }
  .flow-tabs button { padding-inline: 13px; gap: 9px; font-size: 12px; }
  .flow-scene { padding-inline: 24px; }
  .flow-copy-stack h3 { font-size: 27px; }
  .admission-section { gap: 40px; }
  .deployment-flow { gap: 9px; font-size: 10px; }
  .section-heading { gap: 35px; }
  .evidence-stats strong { font-size: 34px; }
  .evidence-stats article { padding-right: 18px; }
  .evidence-stats article + article { padding-left: 18px; }
  .boundary-layout { gap: 60px; }
}

@media (max-width: 820px) {
  .paper-guide-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 23px; }
  .paper-guide-heading h3 { font-size: 21px; }
  .paper-guide-heading { align-items: start; flex-direction: column; gap: 19px; }
  .site-header { height: 66px; }
  .site-nav { display: none; position: absolute; top: 65px; left: 0; right: 0; margin: 0; padding: 8px 28px 16px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 12px 18px rgba(22,48,28,.06); }
  .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { min-height: 45px; padding: 0 8px; font-size: 14px; }
  .site-nav a.is-active::after { left: 8px; right: auto; width: 26px; }
  .menu-toggle { display: inline-grid; }
  .lead-section { padding-top: 28px; padding-bottom: 25px; }
  .lead-section h1 { font-size: 72px; }
  .lead-title { font-size: 23px; }
  .lead-subtitle { font-size: 10px; }
  .lead-intro { display: block; margin-top: 25px; }
  .lead-description { font-size: 15px; line-height: 1.8; }
  .lead-actions { flex-direction: row; align-items: center; flex-wrap: wrap; margin-top: 22px; }
  .lead-meta { gap: 8px 20px; margin-top: 23px; font-size: 10px; }
  .lead-meta > span:last-child { margin-left: 0; }
  .architecture-section, .evidence-section, .papers-section, .implementation-section, .citation-section { padding-top: 59px; padding-bottom: 63px; }
  .state-definition { gap: 16px; }
  .state-symbol { flex-basis: 40px; font-size: 45px; }
  .state-definition h3 { font-size: 16px; }
  .state-definition p { font-size: 12px; }
  .state-facts > div { display: block; font-size: 12px; }
  .state-facts dt { margin-bottom: 3px; }
  .schedule-lane { padding-inline: 14px; gap: 10px; grid-template-columns: 78px minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); font-size: 11px; }
  .schedule-lane > strong { font-size: 12px; }
  .schedule-lane > img { width: 14px; }
  .worked-example { gap: 25px; }
  .worked-example h3 { font-size: 18px; }
  .worked-example > p { font-size: 13px; }
  .flow-panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 25px; }
  .flow-copy-stack h3 { font-size: 23px; }
  .flow-copy-stack h3 + p { font-size: 13px; }
  .flow-rule { font-size: 11px; }
  .flow-scene { padding-inline: 17px; }
  .completed-segment { gap: 10px; }
  .example-generation { gap: 8px; }
  .example-generation code { font-size: 14px; }
  .candidate-fields > div { grid-template-columns: 75px minmax(0, 1fr); gap: 9px; font-size: 11px; }
  .candidate-fields .canonical-field dd { font-size: 17px; }
  .admission-section { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; }
  .admission-copy h3 { font-size: 28px; }
  .admission-copy > p:not(.section-index) { font-size: 13px; }
  .path-heading { display: block; }
  .path-heading > span:last-child { display: block; margin-top: 4px; }
  .section-heading { display: block; margin-bottom: 27px; }
  .section-heading h2 { font-size: 31px; }
  .section-summary { max-width: 600px; margin-top: 13px; }
  .architecture-principles article { padding-right: 19px; }
  .architecture-principles article + article { padding-left: 19px; }
  .evidence-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-stats article:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .boundary-layout { grid-template-columns: 1fr; gap: 24px; }
  .boundary-section h2 { max-width: 650px; }
  .featured-paper { grid-template-columns: 240px minmax(0, 1fr); gap: 35px; }
  .paper-cover { width: 240px; }
  .featured-paper h3 { font-size: 24px; }
}

@media (max-width: 600px) {
  .paper-mechanism-guide { margin-top: 31px; padding-top: 27px; }
  .paper-guide-topics { grid-template-columns: minmax(0, 1fr); }
  .paper-guide-topics > a { padding: 17px 25px 18px 0; }
  html { scroll-padding-top: 78px; }
  .page-width { width: min(100% - 36px, 1280px); }
  .brand { gap: 7px; font-size: 19px; }
  .brand img { width: 28px; height: 28px; }
  .header-controls { gap: 7px; }
  .lead-section { padding-top: 23px; padding-bottom: 22px; }
  .lead-topline { gap: 10px; }
  .lead-topline > a { font-size: 8px; gap: 3px; }
  .lead-topline img { width: 11px; height: 11px; }
  .eyebrow { gap: 5px; font-size: 9px; }
  .edition-dot { width: 5px; height: 5px; }
  .lead-heading { display: block; margin-top: 23px; }
  .lead-section h1 { font-size: 64px; }
  .lead-heading > div { margin-top: 16px; padding-left: 0; border-left: 0; }
  .lead-title { max-width: 340px; font-size: 24px; line-height: 1.22; }
  .lead-title br { display: none; }
  .lead-subtitle { margin-top: 8px; font-size: 11px; }
  .lead-intro { margin-top: 19px; }
  .lead-description { font-size: 14px; line-height: 1.75; }
  .lead-actions { gap: 7px; margin-top: 18px; }
  .lead-meta { gap: 7px 12px; margin-top: 20px; padding-top: 14px; font-size: 9px; }
  .lead-meta > span:last-child { display: none; }
  .button { min-height: 41px; padding-inline: 12px; font-size: 12px; }
  .button-text { padding-inline: 8px; }
  .button img { width: 15px; height: 15px; }
  .architecture-section, .evidence-section, .papers-section, .implementation-section, .citation-section { padding-top: 46px; padding-bottom: 52px; }
  .implementation-section { padding-top: 35px; }
  .state-definitions { margin-bottom: 26px; }
  .state-definition { flex-direction: column; align-items: start; gap: 13px; padding: 20px 15px 21px 0; }
  .state-definition + .state-definition { padding-left: 17px; padding-right: 0; }
  .state-symbol { flex-basis: auto; font-size: 40px; text-align: left; }
  .state-kicker { font-size: 8px !important; }
  .state-definition h3 { margin-top: 8px; font-size: 15px; line-height: 1.5; }
  .state-definition p { font-size: 12px; }
  .state-definition .state-facts { margin-top: 15px; }
  .state-facts > div { margin-top: 14px; }
  .schedule-heading h3 { font-size: 17px; }
  .schedule-lane { grid-template-columns: 78px minmax(0, 1fr); row-gap: 7px; padding: 17px 12px; font-size: 12px; }
  .schedule-lane > strong { align-self: start; grid-row: 1 / 6; }
  .schedule-lane > span, .schedule-lane > img { grid-column: 2; }
  .schedule-lane > img { transform: rotate(90deg); width: 16px; height: 16px; margin-left: 2px; }
  .schedule-note { font-size: 11px; }
  .worked-example { grid-template-columns: 1fr; gap: 13px; padding-top: 26px; padding-bottom: 23px; }
  .worked-example > p { font-size: 14px; }
  .flow-copy-stack .example-detail { font-size: 14px; }
  .candidate-fields > div { grid-template-columns: 95px minmax(0, 1fr); gap: 12px; font-size: 12px; }
  .candidate-label { font-size: 10px; }
  .example-generation code { font-size: 15px; }
  .flow-tabs { position: sticky; z-index: 4; top: 65px; background: #f6f8f8; }
  .flow-tabs button { flex-direction: column; align-items: start; justify-content: start; gap: 5px; min-height: 80px; padding: 12px 7px; font-size: 10px; }
  .flow-tab-number { font-size: 10px; }
  .flow-panel { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
  .flow-visual { order: -1; }
  .flow-scene { min-height: 338px; padding: 21px 23px 16px; }
  .visual-heading { padding-inline: 20px; }
  .flow-narrative { padding-top: 0; }
  .flow-phase { margin-bottom: 12px; }
  .flow-copy-stack h3 { font-size: 27px; line-height: 1.38; }
  .flow-copy-stack h3 + p { max-width: none; margin-top: 15px; font-size: 14px; line-height: 1.8; }
  .flow-rule { margin-top: 18px; font-size: 12px; }
  .flow-navigation { margin-top: 20px; }
  .flow-footnote { gap: 18px; font-size: 10px; }
  .flow-footnote a { font-size: 10px; }
  .completed-segment { gap: 10px; }
  .admission-section { grid-template-columns: minmax(0, 1fr); gap: 29px; margin-top: 38px; padding-top: 32px; }
  .admission-copy h3 { font-size: 28px; }
  .admission-copy > p:not(.section-index) { max-width: none; margin-bottom: 16px; font-size: 14px; }
  .path-heading { display: flex; }
  .path-heading > span:last-child { margin-top: 0; }
  .deployment-flow { gap: 9px; }
  .deployment-flow strong { font-size: 11px; }
  .admission-action { font-family: var(--body); font-size: 10px; }
  .mechanism-footnote { margin-top: 17px; font-size: 10px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2, .boundary-section h2 { font-size: 26px; }
  .section-summary { margin-top: 10px; font-size: 12px; }
  .diagram-toolbar { padding: 7px 6px; }
  .diagram-toolbar p { max-width: 106px; line-height: 1.2; font-size: 9px; }
  .diagram-actions { gap: 0; }
  .toolbar-button { min-height: 31px; padding-inline: 5px; font-size: 11px; }
  .toolbar-button img { width: 14px; height: 14px; }
  .architecture-caption { display: block; font-size: 11px; }
  .architecture-caption a { margin-top: 6px; }
  .architecture-principles { display: block; margin-top: 29px; }
  .architecture-principles article, .architecture-principles article + article { padding: 15px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .architecture-principles h3 { margin-top: 6px; font-size: 15px; }
  .architecture-principles p { font-size: 12px; }
  .evidence-stats strong { font-size: 29px; }
  .evidence-stats article, .evidence-stats article + article { padding: 16px 12px; }
  .evidence-stats article:nth-child(odd) { padding-left: 0; }
  .evidence-stats article:nth-child(even) { padding-right: 0; }
  .evidence-stats p { font-size: 11px; }
  .stat-index { font-size: 9px; }
  .results-section { margin-top: 41px; }
  .results-heading h3 { font-size: 21px; }
  .section-source { font-size: 10px; }
  .result-controls { display: block; margin-top: 18px; }
  .result-controls .segmented + .segmented { margin-top: 9px; }
  .segmented button { font-size: 11px; padding-inline: 9px; }
  .results-table { min-width: 0; }
  .results-table th, .results-table td { padding: 14px 6px; }
  .results-table th:first-child { width: 42%; padding-left: 6px; }
  .results-table thead th:nth-child(2) { width: 34%; }
  .results-table thead th:last-child { width: 24%; }
  .results-table thead th { font-size: 9px; }
  .results-table tbody th, .results-table tbody td { font-size: 10px; }
  .results-table tbody td:nth-child(2) { display: table-cell; }
  .result-track { display: none; }
  .results-note { font-size: 10px; }
  .boundary-section { padding: 47px 0 53px; }
  .boundary-copy { font-size: 12px; }
  .featured-paper { display: block; padding-top: 22px; }
  .paper-cover { width: min(52%, 215px); margin-bottom: 22px; }
  .featured-paper h3 { margin-top: 16px; font-size: 23px; }
  .featured-paper-copy > p:not(.featured-authors) { margin-top: 14px; font-size: 12px; }
  .paper-links { gap: 7px; margin-top: 20px; }
  .companion-head { align-items: start; padding-top: 37px; }
  .companion-head h3 { font-size: 19px; }
  .companion-head p { font-size: 11px; }
  .companion-head > a { font-size: 10px; white-space: nowrap; }
  .paper-row { grid-template-columns: 21px minmax(0, 1fr) 33px; gap: 10px; min-height: 96px; }
  .paper-number { padding-top: 24px; font-size: 10px; }
  .paper-row h4 { font-size: 14px; }
  .paper-row p { font-size: 10px; }
  .paper-pages { display: none; }
  .paper-row > a { width: 31px; height: 31px; }
  .citation-top { padding-inline: 10px; font-size: 9px; }
  .citation-box pre { padding: 14px; font-size: 10px; }
  .footer-inner { align-items: start; flex-direction: column; gap: 22px; }
  .footer-links { gap: 18px; }
  .diagram-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .dialog-header { display: block; min-height: 110px; padding: 9px 12px; }
  .dialog-header h2 { font-size: 14px; }
  .dialog-tools { justify-content: flex-end; margin-top: 9px; }
  .dialog-tools .icon-button { width: 33px; height: 33px; }
  .diagram-stage { padding: 10px; }
}

@media (max-width: 380px) {
  .state-definitions { grid-template-columns: minmax(0, 1fr); }
  .state-definition, .state-definition + .state-definition { flex-direction: row; gap: 18px; padding: 20px 0; border-left: 0; }
  .state-definition + .state-definition { border-top: 1px solid var(--line); }
  .state-symbol { flex-basis: 40px; }
  .state-facts > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
  .candidate-fields > div { grid-template-columns: 78px minmax(0, 1fr); gap: 8px; font-size: 11px; }
  .example-generation { gap: 6px; grid-template-columns: minmax(0, 1.2fr) 16px minmax(0, .8fr); }
  .example-generation code { font-size: 12px; }
  .example-generation img { width: 16px; }
}

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