/* Kazakhstan by Car — editorial edition v3.
   Art direction: a travel atlas bound as a book. Forest, cream and steppe gold; Georgia display over a system sans;
   one original ram-horn ornament used as punctuation, never as wallpaper inside the page.
   Image honesty: the widest website photograph is 1920 px, so the page is a centred "sheet" (max 1760 CSS px).
   Beyond it, an ornamental margin fills ultrawide screens instead of stretching pixels. */
:root {
  color-scheme: light;
  --ink: #183a31; --forest: #12392f; --deep: #0d2b24; --night: #0a221c;
  --cream: #f6f2e8; --paper: #fffdf7; --sand: #ebe5d6; --stone: #d8d1bf;
  --gold: #d7b47a; --gold-soft: #ead6ae; --copper: #9c6440; --muted: #56685c; --line: #1b3d3024;
  --sheet: 1760px; --gutter: clamp(16px, 4.6vw, 72px); --measure: 760px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --t-deployed: #2f6b4f; --t-candidate: #2c6e78; --t-local: #6b7a35; --t-partial: #c0913f; --t-blocked: #b0533a; --t-idle: #8f988f; --t-later: #cfc8b6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.72 var(--sans);
  /* ultrawide margin: deep forest with a fine lozenge lattice (pure CSS, no image asset) */
  background-color: var(--night);
  background-image: linear-gradient(45deg, #d7b47a0d 25%, transparent 25% 75%, #d7b47a0d 75%), linear-gradient(-45deg, #d7b47a0d 25%, transparent 25% 75%, #d7b47a0d 75%);
  background-size: 28px 28px;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(34px, 4.2vw, 62px); margin-bottom: 26px; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
p { margin-bottom: 18px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
.dark :focus-visible, .topbar :focus-visible, .dark-cover :focus-visible { outline-color: var(--gold); }
.skip { position: fixed; z-index: 30; top: 10px; left: 10px; transform: translateY(-220%); padding: 10px 18px; background: var(--paper); color: var(--ink); font-weight: 700; }
.skip:focus { transform: none; }
.sheet { max-width: var(--sheet); margin: 0 auto; background: var(--cream); box-shadow: 0 0 0 1px #d7b47a2e, 0 30px 120px #0008; overflow: clip; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { font: 700 11px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--copper); margin-bottom: 20px; }
.deck { font-size: 17px; color: var(--muted); max-width: 720px; }
.lead { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 31px); line-height: 1.42; letter-spacing: -.02em; }
.dropcap::first-letter { float: left; font-size: 3.1em; line-height: .86; padding: 6px 12px 0 0; color: var(--copper); }
.muted { color: var(--muted); }
.caption { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 24px 0 0; max-width: 900px; }
.ornament { display: block; width: 160px; height: 24px; margin: 26px 0; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; }
.corner { position: absolute; top: 28px; left: 28px; width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 1.3; opacity: .9; }
.text-link { text-underline-offset: 6px; font-size: 14px; }
.text-button { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 6px; cursor: pointer; }
.button { display: inline-flex; align-items: center; gap: 26px; min-height: 52px; padding: 13px 22px; background: var(--gold); color: var(--deep); text-decoration: none; font-size: 14px; font-weight: 700; border: 1px solid transparent; border-radius: 2px; }
.button span { font-weight: 400; font-size: 18px; }
.button:hover { background: #e5c890; }
.button.secondary { background: transparent; color: inherit; border-color: currentColor; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 30px; }

/* top bar spans the window; its content aligns with the sheet */
.topbar { position: sticky; top: 0; z-index: 20; background: #0d2b24f2; color: var(--cream); border-bottom: 1px solid #d7b47a33; backdrop-filter: blur(6px); }
.bar { max-width: var(--sheet); margin: auto; padding: 0 var(--gutter); min-height: 76px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.05; font-size: 13px; flex-shrink: 0; margin-right: auto; }
.brand strong { display: block; font-size: 17px; }
.brand svg { width: 42px; height: 34px; color: var(--gold); }
.topnav { display: flex; gap: 22px; }
.topnav a { text-decoration: none; font-size: 13px; opacity: .82; padding: 6px 0; }
.topnav a:hover, .topnav a[aria-current] { opacity: 1; box-shadow: inset 0 -1px var(--gold); }
.languages { display: flex; gap: 14px; font-size: 12px; letter-spacing: .1em; }
.languages a { text-decoration: none; padding: 6px 2px; }
.languages [aria-current] { color: var(--gold); box-shadow: inset 0 -1px var(--gold); }
.private-label { border: 1px solid var(--gold); color: var(--gold); padding: 3px 9px; font-size: 10px; letter-spacing: .14em; }

/* cover: an editorial spread — copy page + photograph page */
.cover { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: min(88vh, 900px); background: var(--paper); }
.cover-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(28px, 5vw, 96px) 70px; }
.cover h1 { font-size: clamp(48px, 5.4vw, 96px); margin: 0 0 28px; line-height: 1.0; letter-spacing: -.05em; }
.cover-deck { font-size: 17px; line-height: 1.85; max-width: 520px; color: var(--muted); }
.cover-meta { margin: 44px 0 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.cover-photo { position: relative; min-height: 420px; }
.cover-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cover-photo figcaption { position: absolute; left: 24px; bottom: 22px; background: #0b2c23d9; color: #fff; padding: 7px 13px; font-size: 11px; letter-spacing: .06em; }
.dark-cover { background: var(--deep); color: var(--cream); }
.dark-cover .cover-deck { color: #cfd9cc; }
.dark-cover .eyebrow, .dark-cover .cover-meta { color: var(--gold); }

.section { padding: clamp(64px, 8vw, 116px) 0; }
.section-head { max-width: 860px; margin-bottom: 44px; }
.section-head .ornament { margin: 0 0 22px; }
.statement { padding: clamp(60px, 7vw, 96px) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: start; }
.statement .two-col { grid-template-columns: 1.05fr 1fr; }
.copy p { color: #455c51; }
.soft { background: var(--sand); }
.dark { background: var(--forest); color: var(--cream); }
.dark .eyebrow { color: var(--gold); }
.dark .deck, .dark .muted, .dark .caption, .dark p { color: #cbd6c8; }
.dark h2, .dark h3 { color: var(--paper); }

/* numbered folios */
.folios { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.folios li { border-top: 1px solid var(--line); padding-top: 24px; }
.folio { display: block; font: 40px/1 var(--serif); color: var(--copper); margin-bottom: 20px; }
.folios p { font-size: 15px; color: var(--muted); }
.ledger li { border-top: 2px solid var(--ink); }
.pillars { margin-top: 56px; }

/* atlas: masonry of native-aspect photographs, column width ≤ 420 CSS px */
.atlas { columns: 3 320px; column-gap: 26px; }
.atlas-item { break-inside: avoid; margin: 0 0 30px; background: var(--paper); box-shadow: 0 16px 34px #13352a0f; }
.atlas-item img { width: 100%; object-fit: cover; }
@media (min-width: 761px) { /* editorial crops on wide layouts; phones keep the native aspect from width/height */
  .atlas-item.tall img { aspect-ratio: 4 / 5; }
  .atlas-item.wide img { aspect-ratio: 16 / 10; }
  .atlas-item.square img { aspect-ratio: 1 / 1; }
}
.atlas-item figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 22px 24px 26px; }
.atlas-num { grid-row: 1 / 4; font: 30px/1 var(--serif); color: var(--gold); padding-top: 4px; }
.atlas-tag { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); font-weight: 700; }
.atlas-item strong { font: 400 30px/1.15 var(--serif); letter-spacing: -.03em; }
.atlas-text { font-size: 14px; color: var(--muted); }

/* panorama: native 1920×976 aspect, never cropped to a letterbox */
.panorama { position: relative; background: var(--deep); }
.panorama img { width: 100%; aspect-ratio: 1920 / 976; object-fit: cover; }
.panorama figcaption { position: absolute; left: var(--gutter); bottom: clamp(18px, 3vw, 44px); max-width: 520px; padding: 18px 22px; background: #0b2c23e0; color: var(--cream); font-size: 14px; }
.panorama figcaption strong { display: block; font: 400 22px/1.3 var(--serif); color: var(--gold-soft); margin-bottom: 6px; }

/* route diagram: four stops on one road */
.route { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; position: relative; }
.route::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; border-top: 2px dashed #d7b47a99; }
.route li { position: relative; }
.route-stop { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--forest); border: 1.5px solid var(--gold); color: var(--gold); font: 20px var(--serif); margin-bottom: 22px; }
.route h3 { font-size: 19px; }
.route p { font-size: 14px; }

.seasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.seasons img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.seasons figcaption { padding-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); font-weight: 700; }
.photo-story { display: grid; grid-template-columns: 1fr 1.05fr; gap: 9%; align-items: center; }
.photo-story img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-story p { color: var(--muted); }

/* closing: native 1920×1081 photograph with the copy set on its lower field */
.closing { position: relative; background: var(--deep); color: var(--cream); }
.closing-photo img { width: 100%; aspect-ratio: 1920 / 1081; object-fit: cover; }
.closing-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0a221c00 30%, #0a221ccc 72%, #0a221cf2); }
.closing-copy { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(30px, 5vw, 80px); max-width: 760px; }
.closing h2 { font-size: clamp(40px, 4.6vw, 72px); }
.closing p { color: #d9e2d4; max-width: 620px; }
.closing .eyebrow { color: var(--gold); }
.closing .caption { color: #c2cdbd; }

.footer { padding: 34px 0 40px; font-size: 12px; border-top: 1px solid var(--line); background: var(--cream); }
.footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.footer .ornament { margin: 0; width: 110px; }
.footer p { max-width: 820px; color: var(--muted); margin: 0; }
.footer a { white-space: nowrap; text-underline-offset: 5px; }

/* investor diagrams */
.diagram-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--copper); }
.converge { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; gap: 24px; margin: 6px 0 56px; }
.scatter, .record { background: var(--paper); border: 1px solid var(--line); padding: 28px; min-height: 100%; }
.scatter ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.scatter li { border: 1px dashed #9c644080; padding: 7px 12px; font-size: 14px; }
.scatter li:nth-child(2n) { transform: translateY(8px); }
.scatter li:nth-child(3n) { transform: translateY(-4px); }
.converge-arrow span { display: block; height: 2px; background: var(--copper); position: relative; }
.converge-arrow span::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 10px solid var(--copper); }
.record { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.record .diagram-label { color: var(--gold); }
.record ol { margin: 0; padding-left: 20px; }
.record li { padding: 6px 0; border-bottom: 1px solid #f6f2e81f; }
.sides { display: grid; grid-template-columns: 1fr 240px 1fr; gap: 0; align-items: stretch; margin-top: 30px; }
.side { background: var(--paper); padding: 38px; border: 1px solid var(--line); }
.side-mark { display: block; font-size: 34px; color: var(--copper); margin-bottom: 16px; }
.side h3 { font: 400 28px/1.2 var(--serif); }
.side p { color: var(--muted); font-size: 15px; }
.hub { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px 18px; background: var(--deep); color: var(--cream); }
.hub-ring { width: 74px; height: 74px; border: 1.5px solid var(--gold); border-radius: 50%; margin-bottom: 14px; box-shadow: 0 0 0 10px #d7b47a14; }
.hub strong { font: 400 22px/1.2 var(--serif); color: var(--gold-soft); }
.hub-links { list-style: none; padding: 0; margin: 14px 0; font-size: 12px; color: #cbd6c8; }
.hub small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.sides .caption { grid-column: 1 / -1; }
.lifecycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.lifecycle li { position: relative; padding: 18px 16px 0 0; border-top: 1.5px solid #d7b47a8c; }
.lifecycle li::before { content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.lifecycle .folio { font-size: 28px; color: var(--gold); margin-bottom: 14px; }
.lifecycle code { display: block; font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--paper); margin-bottom: 8px; word-break: break-word; }
.lifecycle span:last-child { font-size: 13px; color: #cbd6c8; }
.product-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 34px; align-items: start; margin-top: 46px; }
.browser-frame { border: 1px solid #c6cbbd; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px #12372a1a; }
.browser-bar { background: #e6e7df; border-bottom: 1px solid #c6cbbd; height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 13px; }
.browser-bar i { width: 7px; height: 7px; background: #b0b8ab; border-radius: 50%; }
.browser-bar span { font-size: 9px; margin-left: 12px; color: #627063; letter-spacing: .08em; }
.screen-window { height: 440px; overflow: auto; scrollbar-width: thin; }
.screen-window img { width: 100%; height: auto; }
.product-figure figcaption { font-size: 12px; color: var(--muted); margin-top: 16px; }
.money-flow { display: grid; grid-template-columns: 1fr 150px 1fr 150px 1fr; align-items: center; gap: 0; margin: 30px 0 10px; }
.money-node { border: 1px solid #e1cba480; padding: 30px 16px; text-align: center; background: #fffdf50a; }
.money-node span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; display: block; color: var(--gold); }
.money-node strong { display: block; font: 400 28px/1.2 var(--serif); margin-top: 10px; color: var(--paper); }
.money-arrow { text-align: center; padding: 0 12px; }
.money-arrow i { display: block; height: 1.5px; background: var(--gold); position: relative; margin-bottom: 10px; }
.money-arrow i::after { content: ""; position: absolute; right: -2px; top: -5px; border: 5.5px solid transparent; border-left: 9px solid var(--gold); }
.money-arrow small { font-size: 12px; color: #d5dfcd; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 52px; }
.metric { border-top: 1px solid var(--line); padding-top: 22px; }
.metric h3 { font: 400 28px/1.2 var(--serif); margin-bottom: 12px; }
.metric p { color: var(--muted); font-size: 15px; }
.phase-track { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.phase-track a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.phase-track a:hover { border-color: var(--copper); }
.phase-track strong { font: 400 19px/1.25 var(--serif); }
.phase-track small { color: var(--muted); font-size: 12px; margin-top: auto; }
.phase-letter { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--copper); color: var(--copper); font: 20px var(--serif); flex-shrink: 0; }
.phase-letter.big { width: 76px; height: 76px; font-size: 38px; }
.phase-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--t-idle); }
.tone-deployed { --tone: var(--t-deployed); } .tone-candidate { --tone: var(--t-candidate); } .tone-local { --tone: var(--t-local); } .tone-partial { --tone: var(--t-partial); } .tone-blocked { --tone: var(--t-blocked); } .tone-idle { --tone: var(--t-idle); } .tone-later { --tone: var(--t-later); }
.chip[class*="tone-"] { background: var(--tone); }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { font-weight: 700; }
.library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.library-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 60px 30px 30px; border: 1px solid #e4c68d66; text-decoration: none; background: #ffffff08; }
.library-card:hover { border-color: var(--gold); background: #ffffff10; }
.library-card strong { font: 400 30px/1.15 var(--serif); color: var(--paper); }
.library-card span:not(.eyebrow):not(.library-go) { font-size: 14px; color: #cbd6c8; }
.library-card .eyebrow { margin: 0; color: var(--gold); }
.library-card.quiet strong { font-size: 24px; }
.library-go { position: absolute; right: 26px; top: 28px; color: var(--gold); font-size: 22px; }
.overview-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: 13px; }

/* manual and plan: document pages */
.doc-cover { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; background: var(--deep); color: var(--cream); }
.doc-cover-copy { position: relative; padding: 96px clamp(28px, 5vw, 96px) 72px; }
.doc-cover h1 { font-size: clamp(44px, 5vw, 86px); margin-bottom: 26px; }
.doc-cover .eyebrow { color: var(--gold); }
.doc-cover .cover-deck { color: #cfd9cc; max-width: 640px; }
.how-to { padding: 96px clamp(28px, 4vw, 64px) 60px; border-left: 1px solid #d7b47a33; background: #ffffff06; }
.how-to .eyebrow { color: var(--gold); }
.how-to ol { margin: 0 0 26px; padding-left: 20px; }
.how-to li { padding: 8px 0; border-bottom: 1px solid #f6f2e81f; }
.how-to .legend { color: #e8eee4; margin-bottom: 24px; }
.status-line { font-size: 12px; color: var(--gold-soft); }
.doc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(30px, 4vw, 72px); width: min(1360px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 56px 0 90px; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 116px); overflow: auto; font-size: 13px; padding-right: 8px; }
.toc summary { font: 700 11px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--copper); cursor: pointer; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > details > nav > ol > li { margin-bottom: 12px; }
.toc > details > nav > ol > li > a { font-weight: 700; display: flex; gap: 10px; }
.toc > details > nav > ol > li > a span { color: var(--copper); min-width: 22px; font-family: var(--serif); font-weight: 400; }
.toc ol ol { padding-left: 32px; margin-top: 4px; }
.toc a { display: block; padding: 3px 0; text-decoration: none; color: var(--muted); }
.toc a:hover, .toc a[aria-current] { color: var(--ink); box-shadow: inset 2px 0 var(--gold); padding-left: 8px; }
.toc-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.doc-body { min-width: 0; max-width: 920px; }
.restriction { margin-top: 0; }
.part { margin-top: 70px; }
.part:first-of-type { margin-top: 40px; }
.part-opener { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: end; padding-bottom: 34px; margin-bottom: 30px; border-bottom: 2px solid var(--ink); }
.part-opener img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.part-opener h2 { font-size: clamp(34px, 3.6vw, 54px); margin-bottom: 14px; }
.part-opener.plain { grid-template-columns: 1fr; }
.chapter { padding: 44px 0 18px; border-bottom: 1px solid var(--line); }
.chapter-head { display: grid; grid-template-columns: 76px 1fr; gap: 18px; margin-bottom: 24px; }
.chapter-num { font: 40px/1 var(--serif); color: var(--copper); }
.chapter-head h3 { font: 400 clamp(28px, 2.6vw, 38px)/1.15 var(--serif); letter-spacing: -.03em; margin-bottom: 12px; }
.chapter-lead { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: #3f5649; }
.chapter-body { padding-left: 94px; }
.chapter-body > p { max-width: var(--measure); }
.chapter-source { font-size: 12px; color: var(--muted); margin-top: 16px; }
.chapter-source a { text-underline-offset: 4px; }
.note { margin: 26px 0; padding: 20px 24px; background: var(--paper); border-left: 3px solid var(--gold); }
.note strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.note p { margin: 0; font-size: 15px; }
.editorial-list { padding-left: 0; list-style: none; max-width: var(--measure); }
.editorial-list li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); }
.editorial-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border: 1.5px solid var(--copper); transform: rotate(45deg); }
.flow { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.flow li { background: var(--forest); color: var(--cream); padding: 16px; position: relative; }
.flow span { display: block; font: 22px var(--serif); color: var(--gold); margin-bottom: 8px; }
.flow strong { font-weight: 600; font-size: 14px; line-height: 1.35; }
.faq { border-top: 1px solid var(--line); padding: 14px 0; max-width: var(--measure); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 12px 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); background: var(--paper); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); background: var(--sand); }
.table-wrap tbody th { font-weight: 700; }
.source-list { margin: 26px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.source-list > div { min-width: 0; overflow-wrap: anywhere; padding: 14px 0; border-top: 1px solid var(--line); }
.source-list dt { font-weight: 700; }
.source-list dt span { display: inline-block; min-width: 46px; color: var(--copper); }
.source-list time { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.source-list dd { margin: 4px 0 0 46px; color: var(--muted); font-size: 14px; }
.system-diagram { margin: 30px 0; padding: 28px; background: var(--deep); color: var(--cream); text-align: center; }
.system-diagram figcaption { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.system-top, .system-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.system-bottom { grid-template-columns: repeat(2, 1fr); }
.system-top > div, .system-bottom > div { border: 1px solid #d7b47a55; padding: 14px; }
.system-diagram small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.system-diagram strong { display: block; font: 400 20px/1.3 var(--serif); }
.system-diagram span { font-size: 12px; color: #cbd6c8; }
.system-line { display: grid; grid-template-columns: repeat(3, 1fr); height: 34px; }
.system-line i { justify-self: center; width: 1.5px; background: var(--gold); }
.system-core { border: 1.5px solid var(--gold); padding: 18px; margin-bottom: 34px; position: relative; }
.system-core::after { content: ""; position: absolute; left: 50%; bottom: -35px; height: 34px; border-left: 1.5px solid var(--gold); }
.system-core p { margin: 6px 0 0; font-size: 13px; color: #cbd6c8; }
.diagram-foot { margin: 18px 0 0; font-size: 12px; color: #cbd6c8; }
.see-sources { margin-top: 20px; }

/* implementation plan */
.matrix { display: grid; gap: 10px; }
.matrix-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; }
.matrix-row ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.cell { display: flex; flex-direction: column; justify-content: space-between; min-height: 74px; padding: 9px 10px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--tone); font-size: 11px; }
.cell b { font: 400 19px var(--serif); }
.cell span { color: var(--muted); }
.cell:hover { border-color: var(--tone); }
.sequence { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px; }
.lane { position: relative; display: flex; flex-direction: column; gap: 14px; }
.lane strong { font: 400 20px/1.25 var(--serif); }
.lane p { font-size: 13px; color: var(--muted); }
.lane-arrow { position: absolute; top: 19px; right: -26px; width: 22px; border-top: 1.5px solid var(--copper); }
.lane-arrow::after { content: ""; position: absolute; right: -2px; top: -5.5px; border: 4.5px solid transparent; border-left: 8px solid var(--copper); }
.dep-list { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dep-list li { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--paper); padding: 6px 12px; font-size: 13px; }
.dep-list code { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.phase { border-top: 1px solid var(--line); }
.phase-head { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; margin-bottom: 26px; }
.phase-head h2 { margin-bottom: 12px; }
.plan-table table { min-width: 980px; }
.plan-table th[scope="row"] b { font: 400 20px var(--serif); }
.plan-table tr:target { background: #d7b47a26; }
.badge { display: inline-block; padding: 3px 9px; font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 2px; background: var(--tone); color: #fff; white-space: nowrap; }
.badge.tone-later, .badge.tone-partial { color: var(--deep); }
.gate { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.gate li { border: 1px solid #d7b47a59; padding: 20px; font-size: 14px; color: var(--paper); position: relative; }
.gate .folio { font-size: 28px; color: var(--gold); margin-bottom: 14px; }
h3.sub { font: 400 26px/1.2 var(--serif); margin-top: 40px; }

/* wide screens: more air, never wider photographs than the sheet */
@media (min-width: 1800px) { .sheet { margin-block: 0; } }
@media (max-width: 1200px) {
  .lifecycle { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 30px; }
    .phase-track, .sequence, .gate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lane:nth-child(3n) .lane-arrow { display: none; }
  .matrix-row ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .chapter-body { padding-left: 0; }
}
@media (max-width: 1000px) {
  .topnav { gap: 14px; } .topnav a { font-size: 12px; }
  .cover { grid-template-columns: 1fr 1fr; }
  .folios { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: 1fr 1fr; row-gap: 40px; } .route::before { display: none; }
  .sides { grid-template-columns: 1fr; } .hub { padding: 26px; }
  .converge { grid-template-columns: 1fr; } .converge-arrow { height: 40px; } .converge-arrow span { width: 2px; height: 100%; margin: auto; } .converge-arrow span::after { right: -5px; top: auto; bottom: -4px; border: 6px solid transparent; border-top: 10px solid var(--copper); }
  .product-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); padding: 16px; background: var(--paper); }
  .toc details:not([open]) summary { margin: 0; }
  .doc-cover { grid-template-columns: minmax(0, 1fr); }
  .doc-cover-copy, .how-to { min-width: 0; }
  .doc-cover h1 { overflow-wrap: anywhere; hyphens: auto; }
  .how-to { border-left: 0; border-top: 1px solid #d7b47a33; padding-top: 40px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .bar { min-height: 64px; gap: 14px; }
  .topnav { display: none; }
  .brand { font-size: 11px; gap: 9px; } .brand strong { font-size: 15px; } .brand svg { width: 34px; }
  .private-label { font-size: 9px; padding: 2px 6px; }
  .cover { grid-template-columns: 1fr; min-height: 0; }
  .cover-photo { order: -1; min-height: 0; }
  .cover-photo img { position: static; aspect-ratio: 4 / 3; }
  .cover-copy, .doc-cover-copy { padding: 44px 20px 48px; }
  .corner { top: 16px; left: auto; right: 16px; width: 34px; height: 34px; }
  .cover h1 { font-size: clamp(42px, 11.5vw, 60px); }
  .cover-deck { font-size: 16px; }
  .two-col, .statement .two-col, .photo-story { grid-template-columns: 1fr; gap: 26px; }
  h2 { font-size: clamp(32px, 9vw, 42px); }
  .folios, .seasons, .metric-grid, .library { grid-template-columns: 1fr; gap: 26px; }
  .atlas { columns: 1; }
  .panorama img { aspect-ratio: 4 / 3; object-position: 50% 60%; }
  .panorama figcaption { position: static; max-width: none; padding: 20px var(--gutter) 26px; }
  .route { grid-template-columns: 1fr; gap: 0; }
  .route li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 26px; }
  .route li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 58px; bottom: 0; border-left: 2px dashed #d7b47a80; }
  .route-stop { grid-row: 1 / 3; margin: 0; }
  .route h3 { margin: 12px 0 6px; }
  .closing-photo::after { display: none; }
  .closing-copy { position: static; padding: 36px var(--gutter) 48px; max-width: none; }
  .closing h2 { font-size: 40px; }
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle li { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 14px 0 16px; }
  .lifecycle li::before { display: none; }
  .lifecycle .folio { grid-row: 1 / 3; margin: 0; font-size: 24px; }
  .money-flow { grid-template-columns: 1fr; }
  .money-arrow { padding: 12px 0; } .money-arrow i { width: 1.5px; height: 36px; margin: 0 auto 8px; } .money-arrow i::after { right: -5px; top: auto; bottom: -3px; border: 5.5px solid transparent; border-top: 9px solid var(--gold); }
  .screen-window { height: 360px; }
  .phase-track, .sequence, .gate { grid-template-columns: 1fr; }
  .lane-arrow { display: none; }
  .matrix-row { grid-template-columns: 1fr; }
  .matrix-row ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .part-opener { grid-template-columns: 1fr; gap: 20px; }
  .chapter-head { grid-template-columns: 1fr; gap: 6px; }
  .chapter-num { font-size: 30px; }
  .phase-head { grid-template-columns: 1fr; }
  /* plan tables become cards on phones */
  .plan-table { border: 0; background: none; overflow: visible; }
  .plan-table table { min-width: 0; }
  .plan-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plan-table tr { display: block; background: var(--paper); border: 1px solid var(--line); margin-bottom: 14px; padding: 6px 0; }
  .plan-table th, .plan-table td { display: grid; grid-template-columns: 112px 1fr; gap: 10px; border: 0; padding: 7px 14px; }
  .plan-table th::before, .plan-table td::before { content: attr(data-label); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); font-weight: 700; padding-top: 3px; }
  .footer .wrap { grid-template-columns: 1fr; gap: 14px; }
  .system-top, .system-bottom { grid-template-columns: 1fr; }
  .system-line { display: none; } .system-core { margin: 10px 0; } .system-core::after { display: none; }
  .library-card { padding: 24px 50px 24px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff; font-size: 10pt; color: #14261f; }
  .sheet { max-width: none; box-shadow: none; background: #fff; }
  .topbar, .skip, .toc, .button-row, .overview-nav, .text-button, .ornament, .corner { display: none !important; }
  .doc-cover, .cover, .dark-cover, .dark, .closing, .record, .hub, .flow li, .system-diagram { background: #fff !important; color: #14261f !important; }
  .doc-cover *, .dark *, .system-diagram *, .flow li *, .record *, .hub * { color: #14261f !important; }
  .doc-cover { grid-template-columns: 1fr; } .doc-cover-copy, .how-to { padding: 0 0 10mm; border: 0; }
  .doc-layout { display: block; width: 100%; padding: 0; }
  .doc-body { max-width: none; }
  .part { break-before: page; margin-top: 0; }
  .part-opener img { max-height: 70mm; }
  .chapter { break-inside: auto; } .chapter-head, .note, .flow, tr, .system-diagram { break-inside: avoid; }
  .chapter-body { padding-left: 0; }
  .table-wrap { overflow: visible; border: 0; } .table-wrap table, .plan-table table { min-width: 0; font-size: 8.5pt; }
  .plan-table thead { position: static; width: auto; height: auto; clip: auto; }
  .badge { border: 1px solid #14261f; background: #fff !important; color: #14261f !important; }
  .cell { border-top-width: 3px; }
  a { text-decoration: none; }
  h1 { font-size: 30pt; } h2 { font-size: 22pt; } .chapter-head h3 { font-size: 16pt; }
}
