/* ==========================================================================
   Freedom 250 Observatory · The Sky · 2026 Libra season — generated Direction A implementation candidate
   Shared Observatory layer (mirrors the Research Library tokens of Oct 11, 2026)
   plus the Astrology additions. Visual layer only; no build step.
   Theme: <html data-theme="dark|light">, set before paint; dark when JS is off.
   ========================================================================== */

:root {
  color-scheme: dark;
  /* Observatory shared — identical values to library.css */
  --bg: #0B1220; --bg-2: #0F1828; --surface: #121C2E; --surface-2: #17233A;
  --ink: #E9EDF3; --ink-2: #C5CDD9; --muted: #96A3B6;
  --rule: #24324B; --rule-strong: #C5CDD9; --label: #AFC2DE;
  --link: #9FC6F5; --link-hover: #CFE2FA; --focus: #9FC6F5;
  --note-bg: #1D2A43; --bar: #070D18; --bar-ink: #E9EDF3; --bar-muted: #93A1B6; --bar-line: #1E2B42;
  --chart: #7C8FAD; --frame: #2A3A55;
  --serif: "Times New Roman", Times, serif; --ui: "Times New Roman", Times, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px; --read: 68ch; --gutter: clamp(16px, 4vw, 40px); --radius: 0;
  --text-small: 14px; --text-body: 17px; --text-reading: 19px;

  /* Astrology additions — one sky accent (the public shell's --sky) */
  --sky: #E6C88C;            /* the only new hue */
  --sky-ink: #F3E3BF;        /* sky used as text on dark */
  --sky-wash: rgba(230, 200, 140, .10);
  --sky-line: rgba(230, 200, 140, .55);
  --orbit: #3A4B68;          /* orbit / ruler hairline */
  --wheel-ground: transparent;
  --wheel-rule: #3A4B68; --wheel-rule-2: #2C3B56; --wheel-ink: #C5CDD9; --wheel-muted: #8C99AE;
  --wheel-soft: #7C8FAD;      /* trines, sextiles (dashed) */
  --wheel-hard: #C5CDD9;      /* squares, oppositions (solid) */
  --plate: #FBF7EC;           /* paper behind the reference image */
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F7F4; --bg-2: #EFEFEA; --surface: #FFFFFF; --surface-2: #F2F3F1;
  --ink: #12161D; --ink-2: #353B45; --muted: #5B616B;
  --rule: #D8DBE0; --rule-strong: #12161D; --label: #23406A;
  --link: #1B4F8A; --link-hover: #0E2F57; --focus: #1B4F8A;
  --note-bg: #EEF2F8; --bar: #0E1A2B; --bar-ink: #F2F4F7; --bar-muted: #AAB6C7; --bar-line: #22324B;
  --chart: #9AA6B6; --frame: #CDD2D9;
  --sky: #7A5715; --sky-ink: #5E4210; --sky-wash: rgba(122, 87, 21, .08); --sky-line: rgba(122, 87, 21, .55);
  --orbit: #B9C0CA;
  --wheel-rule: #C3C9D2; --wheel-rule-2: #DADEE4; --wheel-ink: #353B45; --wheel-muted: #6B717B;
  --wheel-soft: #6F7D92; --wheel-hard: #353B45;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 124px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--text-body)/1.55 var(--ui); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: 0; margin: 0; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .82em; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 99; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); } .small { font-size: var(--text-small); }
[hidden] { display: none !important; }

/* ---------- Top bar (same anatomy as the Library) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bar); color: var(--bar-ink); border-bottom: 1px solid var(--bar-line); }
.bar { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--bar-ink); text-decoration: none; min-height: 44px; flex: none; }
.brand:hover { color: #fff; }
.seal { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--bar-muted); border-radius: 50%; font-size: 11px; letter-spacing: .06em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-kicker { font: 500 10.5px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
:root[data-theme="light"] .brand-kicker { color: #E6C88C; }
.brand-name { font: 400 18px/1.15 var(--serif); white-space: nowrap; }
.primary { display: flex; align-self: stretch; min-width: 0; }
.primary ul { list-style: none; margin: 0; padding: 0; }
.primary .flat { display: flex; gap: 2px; align-self: stretch; }
.primary a { color: var(--bar-muted); text-decoration: none; font: 500 15px/1 var(--ui); padding: 0 9px; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; height: 100%; }
.primary a:hover { color: #fff; }
.primary a[aria-current] { color: #fff; border-bottom-color: var(--sky); }
:root[data-theme="light"] .primary a[aria-current] { border-bottom-color: #E6C88C; }
.menu { display: none; }
.theme-switch { margin-left: auto; border: 1px solid var(--bar-line); border-radius: 0; display: inline-flex; padding: 0; min-width: 0; flex: none; }
.theme-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.theme-switch label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 500 13px var(--ui); color: var(--bar-muted); cursor: pointer; }
.theme-switch label + label { border-left: 1px solid var(--bar-line); }
.theme-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-switch label:has(input:checked) { background: var(--bar-ink); color: var(--bar); }
.theme-switch label:has(input:focus-visible) { outline: 2px solid var(--bar-ink); outline-offset: 2px; }
html:not(.js) .theme-switch { display: none; }

.trail { border-bottom: 1px solid var(--rule); background: var(--bg-2); }
.trail ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; font: 14px var(--ui); color: var(--muted); }
.trail li { display: flex; align-items: center; gap: 6px; }
.trail li + li::before { content: "/"; color: var(--rule); }
.trail a { color: var(--ink-2); text-decoration: none; } .trail a:hover { text-decoration: underline; }
.trail [aria-current] { color: var(--ink); }
.trail .home a { font-weight: 600; color: var(--link); } .trail .home a::before { content: "← "; }
.mockup-flag { font: 12px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 auto; padding-top: 10px; padding-bottom: 0; }

/* ---------- Shared pieces ---------- */
.eyebrow { font: 600 11.5px/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin: 0 0 10px; }
.section-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; border-top: 1px solid var(--rule-strong); padding-top: 14px; margin: 0 0 26px; }
.section-head .modnum { grid-row: span 2; margin: 0; font: 13px/1 var(--ui); color: var(--sky); border: 1px solid var(--sky-line); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.section-head .section-note { grid-column: 2; margin: 4px 0 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 600 15px var(--ui); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.textlink { font: 600 15px var(--ui); }
.tag { display: inline-block; font: 600 10.5px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--label); border: 1px solid var(--label); padding: 4px 6px; vertical-align: middle; white-space: nowrap; }
.tag-amend { border-style: dashed; color: var(--ink-2); border-color: var(--ink-2); }
.tag-amend::before { content: "† "; }
.tag-open { color: var(--sky-ink); border-color: var(--sky); }
.tag-open::before { content: "○ "; }
.tag-prospective::before { content: "→ "; }
.tag-quality { border-style: dotted; }
:root[data-theme="light"] .tag-open { color: var(--sky-ink); }
.facts { margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.facts > div { border-top: 1px solid var(--rule); padding: 9px 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font: 600 11px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-bottom: 3px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.facts dd strong { color: var(--ink); font-weight: 600; }

/* state glyphs: shape carries state, never colour alone */
.st { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink-2); vertical-align: -1px; flex: none; }
.st-complete { background: var(--ink-2); }
.st-current { border-color: var(--sky); background: radial-gradient(circle, var(--sky) 0 2.5px, transparent 3px); box-shadow: 0 0 0 3px var(--sky-wash); }
.st-approaching { background: transparent; }

/* disclosure */
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.disclose { margin-left: auto; font: 600 14px var(--ui); color: var(--link); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
details[open] > summary .disclose { font-size: 0; }
details[open] > summary .disclose::after { content: "Hide"; font-size: 14px; }

/* amendment */
.amend { border: 1px dashed var(--rule-strong); background: transparent; margin: 0 0 20px; }
.amend > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; min-height: 44px; font-size: 15px; color: var(--ink-2); }
.amend-body { padding: 0 14px 12px; font-size: 15px; color: var(--ink-2); max-width: 75ch; }
.amend-meta { color: var(--muted); font-size: 13px; letter-spacing: .04em; margin-bottom: .4em; }
p.amend.none { font-size: 14px; color: var(--muted); border: 0; padding: 0; }
p.amend.none .tag { margin-right: 6px; }

/* readings: generous measure, never a scroll box */
.reading p { font: 400 var(--text-reading)/1.62 var(--serif); color: var(--ink); max-width: var(--read); }
.reading h3, .reading h4, .timing h3, .timing h4 { font-size: 21px; margin: 1.4em 0 .5em; }
.reading-label { font: 600 11px/1.3 var(--ui) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--label) !important; margin-bottom: .8em !important; }
.timing { border-top: 1px solid var(--rule); margin-top: 1.4em; max-width: var(--read); }
.proof-list { margin: 8px 0 0; padding-left: 1.1em; font-size: 15px; color: var(--ink-2); }
.proof-list li { margin: 0 0 6px; }
.subst { border-bottom: 1px dotted var(--muted); }
.subst-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.chapter-proof { border-top: 1px solid var(--rule); margin-top: 18px; }
.chapter-proof > summary { min-height: 44px; display: flex; align-items: center; color: var(--link); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.routes-inline { font-size: 13px; color: var(--muted); margin-top: 10px; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 6px; }
.pn { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.pn.none { color: var(--muted); font-size: 14px; }
.pn.next { text-align: right; margin-left: auto; }

/* wheels: the vault's own computed SVG, re-inked to the Observatory palette */
.wheel svg { display: block; width: 100%; height: auto; }
.wheel svg [stroke="#d9cfb8"], .wheel svg [stroke="#c9bda0"] { stroke: var(--wheel-rule); }
.wheel svg [stroke="#e7dcc2"], .wheel svg [stroke="#e0d4b8"] { stroke: var(--wheel-rule-2); }
.wheel svg path[fill-opacity] { fill: var(--sky); fill-opacity: .035; }
.wheel svg text[font-style="italic"][font-size="13.5"] { fill: var(--wheel-muted); }
.wheel svg [fill="#b5a98c"], .wheel svg [fill="#8a8377"] { fill: var(--wheel-muted); }
.wheel svg [fill="#5b554a"] { fill: var(--wheel-ink); } .wheel svg [stroke="#5b554a"] { stroke: var(--wheel-ink); }
.wheel svg [stroke="#7a2e1d"] { stroke: var(--sky); } .wheel svg [fill="#7a2e1d"] { fill: var(--sky); }
.wheel svg g[color] { color: var(--wheel-ink); }
.wheel svg g[color="#b07d2b"], .wheel svg g[color="#8d7960"] { color: var(--sky); }
.wheel svg line[stroke="#3a6ea5"] { stroke: var(--wheel-soft); stroke-dasharray: 4 3; }
.wheel svg line[stroke="#b3402e"] { stroke: var(--wheel-hard); }
.wheel svg line[stroke="#c9a227"] { stroke: var(--sky); }
.wheel svg line[stroke="#5a8a4a"], .wheel svg line[stroke="#8a8377"] { stroke: var(--wheel-muted); stroke-dasharray: 1 3; }
.wheel svg text[font-weight="bold"][font-size="12"] { fill: var(--ink); }
.wheel figcaption, .ingress-wheel figcaption { font: italic 14px/1.45 var(--serif); color: var(--muted); margin-top: 10px; }

/* reference image plate */
.ingress-wheel { margin: 0; }
.wheel-link { display: block; }
/* the vault's ingress wheel image, recolored per theme and cropped to its wheel by CSS */
.ingress-wheel .wheel-link { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50%; background: var(--surface); }
.ingress-wheel .wheel-link img { position: absolute; display: block; width: 293.4%; max-width: none; left: -21.13%; top: -0.38%; }
.for-light { display: none !important; }
:root[data-theme="light"] .for-dark { display: none !important; }
:root[data-theme="light"] .for-light { display: block !important; }
.wheel-link { cursor: zoom-in; }
.svg-link { display: block; }
.zoom-link { font: 600 14px/1.3 var(--ui); font-style: normal; margin-right: 6px; display: inline-flex; align-items: center; min-height: 32px; }
.wheel figcaption .zoom-link, .ingress-wheel figcaption .zoom-link { color: var(--link); }

/* enlarged chart dialog */
.zoom { width: min(96vw, 1560px); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--rule-strong); background: var(--bg); color: var(--ink); overflow: hidden; }
.zoom::backdrop { background: rgba(3, 6, 12, .82); }
.zoom[open] { display: flex; flex-direction: column; }
.zoom-bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--rule); background: var(--bar); }
.zoom-title { margin: 0; font: 600 12px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--bar-ink); flex: 1; }
.zoom-close { min-height: 44px; padding: 0 14px; border: 1px solid var(--bar-line); background: transparent; color: var(--bar-ink); font: 600 14px var(--ui); cursor: pointer; }
.zoom-close:hover { background: var(--bar-ink); color: var(--bar); }
.zoom-body { overflow: auto; flex: 1; min-height: 0; }
.zoom.is-image .zoom-body img { display: block; width: 100%; height: auto; }
.zoom.is-svg .zoom-body { display: grid; place-items: center; padding: 16px; }
.zoom-wheel { width: min(84vh, 100%); }
.zoom-wheel svg { border-radius: 50%; }
@media (max-width: 700px) {
  .zoom { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; }
  .zoom.is-image .zoom-body img { width: 1100px; max-width: none; }
  .zoom.is-svg .zoom-body { place-items: start; padding: 12px; }
  .zoom-wheel { width: 760px; max-width: none; }
}

/* mini cue in spine */
.cue { color: var(--ink-2); flex: none; }
.cue .cue-sun { fill: var(--sky); }
.cue .cue-moon { fill: var(--ink); stroke: var(--bg); stroke-width: .8; }
.node.is-approaching .cue { color: var(--muted); }

/* carry rows */
.carry-list ol { list-style: none; margin: 0; padding: 0; }
.carry-row { border-top: 1px solid var(--rule); padding: 12px 0; }
.carry-row p { margin: 0 0 4px; font-size: 15.5px; color: var(--ink-2); }
.cr-pair strong { font-size: 18px; font-weight: 400; color: var(--ink); margin-right: 8px; }
.cr-seed { color: var(--muted); font-size: 14px; }
.cr-k { font: 600 10.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-right: 4px; }
.cr-k:not(:first-child) { margin-left: 12px; }
.cr-str { color: var(--muted); }
.carry-for { font: 600 11.5px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin: 14px 0 6px; }
.carry-foot { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 80ch; }

/* related */
.chart-card { border: 1px solid var(--rule); background: var(--surface); padding: 20px; }
.chart-card h3 { font-size: 23px; margin-bottom: 8px; }
.chart-card.empty { background: transparent; border-style: dashed; }
.quality { margin: 12px 0; }
.quality > div { border-top: 1px solid var(--rule); padding: 8px 0; }
.quality dt { font: 600 11px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.quality dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.cc-k { font: 600 11px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin: 14px 0 6px; }
.cited { margin: 0; padding-left: 1.1em; font-size: 15px; color: var(--ink-2); }
.cited li { margin-bottom: 6px; }
.cc-routes { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; }
.mini-wheel { margin: 0; }
.mini-wheel svg text[font-size="8.5"] { display: none; }

/* comparison */
.watch { border: 1px solid var(--rule); padding: 22px; background: var(--surface); max-width: 900px; }
.watch h3 { font-size: 24px; margin: 10px 0 14px; }
.watch-state { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.causation { color: var(--muted); font-style: italic; margin: 0; }

/* proof */
.amend-list { list-style: none; margin: 0 0 10px; padding: 0; }
.amend-list .amend { margin-bottom: 8px; }
.tech-proof { border: 1px solid var(--rule); }
.tech-proof > summary, .complete > summary { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; min-height: 44px; }
.sum-main { font: 600 16px var(--ui); color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.sum-meta { font-size: 14px; color: var(--muted); }
.tech-body { padding: 0 16px 16px; }
.tech-body h4 { font: 600 11.5px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin: 18px 0 8px; }
.tech-body p, .tech-body li { font-size: 15px; color: var(--ink-2); }
.receipts, .routes { margin: 0; padding-left: 1.1em; }
.receipts li, .routes li { margin-bottom: 6px; }
.hash { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.nojs-note { font-size: 14px; color: var(--muted); }

/* footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 64px; padding: 22px 0 36px; color: var(--muted); font-size: 14px; }
.boundary { max-width: 75ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }

/* phones */
@media (max-width: 900px) {
  .primary .flat { display: none; }
  .menu { display: block; position: static; align-self: center; }
  .menu > summary { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--bar-line); color: var(--bar-ink); font: 500 14px var(--ui); }
  .menu[open] > summary { background: var(--bar-ink); color: var(--bar); }
  .menu ul { position: absolute; left: var(--gutter); right: var(--gutter); top: 56px; background: var(--bar); border: 1px solid var(--bar-line); padding: 6px 0; z-index: 30; }
  .menu a { display: flex; min-height: 44px; padding: 0 14px; border-bottom: 0; }
  .menu .cross { border-top: 1px solid var(--bar-line); }
  .primary { margin-left: auto; }
  .theme-switch { margin-left: 0; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 16px; }
  .theme-switch label { padding: 0 7px; font-size: 12px; }
  .facts { grid-template-columns: 1fr; }
  .reading p { font-size: 18px; }
  .prevnext { flex-direction: column; }
  .pn.next { margin-left: 0; text-align: left; }
}
@media (max-width: 640px) {
  .bar { gap: 8px; }
  .brand-name { display: none; }
  .brand-kicker { font: 400 17px/1.1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--bar-ink); }
  :root[data-theme="light"] .brand-kicker { color: var(--bar-ink); }
  .theme-switch label:nth-child(3) { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .topbar, .trail, .theme-switch, .mockup-flag { display: none; } details > *:not(summary) { display: block; } }

/* ==========================================================================
   Direction A · constellation editorial
   The ingress wheel anchors the season; the spine reads as an annotated
   orbit over a true-scale time ruler. Lines, spacing and one sky accent.
   ========================================================================== */

/* reference plate: the vault image, cropped to its wheel by CSS only */
.ingress-wheel .wheel-link { box-shadow: 0 0 0 1px var(--rule), 0 0 0 10px var(--bg), 0 0 0 11px var(--sky-line); }

/* ---- 1 · masthead ---- */
.m1 { padding: 34px 0 40px; position: relative; overflow: hidden; }
.m1::before { content: ""; position: absolute; width: 1100px; height: 1100px; left: -330px; top: -300px; border: 1px solid var(--orbit); border-radius: 50%; opacity: .55; pointer-events: none; }
.m1::after { content: ""; position: absolute; width: 760px; height: 760px; left: -160px; top: -130px; border: 1px dashed var(--orbit); border-radius: 50%; opacity: .45; pointer-events: none; }
.m1-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, 470px) minmax(0, 1fr); gap: 56px; align-items: center; }
.m1-text { min-width: 0; }
.m1 h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 14px; }
.validity { font-size: 21px; color: var(--ink-2); margin-bottom: 18px; }
.validity .arrow { color: var(--sky); padding: 0 4px; }
.chips { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rule); padding: 7px 11px; font-size: 15px; color: var(--ink-2); background: var(--surface); min-height: 36px; }
.chip-k { font: 600 10.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.chip-gov { border-color: var(--rule-strong); color: var(--ink); }
.chip-cur { border-color: var(--sky-line); }
.central { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: italic 400 clamp(30px, 3.6vw, 46px)/1.1 var(--serif); color: var(--ink); margin: 0 0 26px; padding: 18px 0; border-top: 1px solid var(--sky-line); border-bottom: 1px solid var(--sky-line); }
.central .arr { font-style: normal; color: var(--sky); font-size: .8em; }
.cta { margin: 0; }

/* ---- 2 · answer first ---- */
.m2 { padding: 28px 0 8px; }
.answer-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 48px; }
.lede-reading { font: 400 22px/1.55 var(--serif); color: var(--ink); grid-column: 1; }
.close-reading { font: 400 19px/1.6 var(--serif); color: var(--ink-2); grid-column: 2; border-left: 1px solid var(--sky-line); padding-left: 22px; }
.source-line, .complete { grid-column: 1 / -1; }
.source-line { font-size: 14px; color: var(--muted); }
.complete { border: 1px solid var(--rule); margin-top: 6px; }
.complete[open] { border-color: var(--rule-strong); }
.complete .reading { padding: 6px 22px 22px; }
.complete .reading-title { font-size: 26px; margin: 8px 0 18px; }
.reading-foot { font-size: 15px !important; color: var(--muted) !important; }

/* ---- 3 · season spine as an orbit ---- */
.m3 { padding: 46px 0 10px; }
.ruler { position: relative; margin: 0 0 30px; padding: 0 0 40px; }
.band { position: relative; height: 30px; border: 1px solid var(--rule-strong); display: flex; align-items: center; }
.band-libra { background: var(--surface); justify-content: flex-end; }
.band-label { position: relative; z-index: 1; background: var(--surface); font: 600 11.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 0 10px; white-space: nowrap; }
.elapsed { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sky-wash); border-right: 2px solid var(--sky); }
.band-cap { height: 26px; margin-top: 6px; border: 1px dashed var(--ink-2); background: transparent; }
.band-cap .band-label { color: var(--ink-2); background: var(--bg); margin-left: 10px; }
.ticks { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 0; height: 30px; }
.tick { position: absolute; top: -6px; width: 1px; height: 42px; background: var(--ink-2); }
.tick-nested { height: 74px; background: var(--ink-2); }
.today { position: absolute; top: -18px; width: 0; height: 64px; border-left: 2px solid var(--sky); }
.today span { position: absolute; top: -4px; left: 6px; font: 600 11px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--sky); white-space: nowrap; }
.ruler-scale { position: relative; height: 18px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ruler-scale span { position: absolute; top: 0; }
.ruler-scale span:first-child { left: 0; }
.ruler-scale .end { right: 0; }
.ruler-gap { position: absolute; right: 0; bottom: 0; margin: 0; font: italic 13px/1.3 var(--serif); color: var(--muted); text-align: right; max-width: 40%; }

.nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.nodes::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; border-top: 1px solid var(--orbit); }
.node { position: relative; padding: 0 14px 18px 0; display: flex; flex-direction: column; min-width: 0; }
.node-top { display: flex; align-items: center; gap: 8px; height: 30px; position: relative; }
.node-top .st { background-color: var(--bg); width: 13px; height: 13px; }
.node-top .st-complete { background: var(--ink-2); }
.node .num { font: italic 15px/1 var(--serif); color: var(--muted); margin-left: auto; padding-right: 2px; }
.node-date { margin: 12px 0 2px; font-size: 14px; color: var(--ink-2); }
.node-date time { font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.kind { color: var(--muted); }
.node-title { font-size: 20px; line-height: 1.15; margin: 0 0 8px; }
.node-line { font: italic 15px/1.45 var(--serif); color: var(--ink-2); margin: 0 0 10px; }
.node-state { margin: auto 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); }
.read { font: 600 14.5px/1.2 var(--ui); min-height: 44px; display: inline-flex; align-items: center; }
.node.is-current .state-word { color: var(--sky-ink); font-weight: 600; }
.node.is-selected { }
.node.is-selected::after { content: ""; position: absolute; left: -10px; right: 4px; top: -10px; bottom: 0; border: 1px solid var(--sky-line); pointer-events: none; }
.node.is-selected .read { color: var(--ink); text-decoration-color: var(--sky); }
.node.is-selected .node-title::after { content: " ↓"; color: var(--sky); font-size: .85em; }
.node-ingress .node-title { font-size: 22px; }
.node-ingress .node-top::after { content: "governor"; font: 600 10px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-left: 2px; }
/* second row: Dec 9 + the nested winter stage frame */
.nodes > .node-new:nth-child(7) { grid-column: 1 / span 2; margin-top: 26px; }
.stage-frame { grid-column: 3 / -1; margin-top: 26px; border: 1px dashed var(--ink-2); padding: 0 0 0 16px; position: relative; }
.stage-label { margin: 0 0 0 -16px; padding: 6px 12px; font: 600 11.5px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px dashed var(--ink-2); }
.stage-list { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nest-note { font-size: 13.5px; color: var(--ink); margin: 0 0 8px; }
.nest-note strong { font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 6px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- 4 · selected chapter ---- */
.m4 { padding: 46px 0 10px; }
.governor { position: sticky; top: 56px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; background: var(--bar); color: var(--bar-ink); border: 1px solid var(--bar-line); border-left: 3px solid var(--sky); padding: 8px 14px; margin-bottom: 24px; font-size: 14.5px; }
.governor a { color: var(--bar-ink); }
.gov-k { font: 600 10.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--bar-muted); }
.central-mini { font-style: italic; color: #E6C88C; }
.gov-sel { margin-left: auto; color: var(--bar-muted); }
.gov-sel strong { color: var(--bar-ink); font-weight: 600; }
.chapter + .chapter { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--rule); }
.js .chapter + .chapter { margin-top: 0; padding-top: 0; border-top: 0; }
.chapter-grid { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 48px; align-items: start; }
.chapter-wheel { margin: 0; position: sticky; top: 120px; }
.chapter-wheel svg { border-radius: 50%; }
.running { font: 600 11px/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.chapter-head h3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; }
.chapter-head h3:focus { outline: none; }
.chapter-head h3:focus-visible { outline: 2px solid var(--focus); }
.chapter-date { color: var(--ink-2); font-size: 18px; margin: 6px 0 18px; }

/* ---- 5 · carry-through as a celestial table ---- */
.m5 { padding: 46px 0 10px; }
.carry-matrix { overflow-x: auto; border: 1px solid var(--rule); margin-bottom: 18px; }
.carry-matrix table { width: 100%; border-collapse: collapse; font-size: 14px; }
.carry-matrix caption { text-align: left; padding: 10px 12px; color: var(--muted); font-size: 13.5px; caption-side: top; border-bottom: 1px solid var(--rule); }
.carry-matrix th, .carry-matrix td { padding: 9px 8px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.carry-matrix thead th { font-size: 13px; color: var(--ink-2); }
.carry-matrix thead th small, .carry-matrix td small, .carry-matrix tbody th small { display: block; color: var(--muted); font-size: 12px; }
.carry-matrix tbody th strong { font-weight: 400; font-size: 16px; color: var(--ink); }
.carry-matrix .orb { font-variant-numeric: tabular-nums; color: var(--ink); }
.carry-matrix .is-selected { background: var(--sky-wash); box-shadow: inset 1px 0 0 var(--sky-line), inset -1px 0 0 var(--sky-line); }
.carry-matrix thead .is-selected span { color: var(--sky-ink); font-weight: 600; }
.carry-lists { max-width: 900px; }
.js .carry-matrix + .carry-lists .carry-list:not(.is-selected) { display: none; }

/* ---- 6 · related ---- */
.m6 { padding: 46px 0 10px; }
.related-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; }
.chart-card:not(.empty) { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
.mini-wheel svg { border-radius: 50%; }

/* ---- 7 / 8 ---- */
.m7, .m8 { padding: 46px 0 10px; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.amendments h3 { font-size: 21px; margin-bottom: 12px; }

/* ---------- tablet / phone ---------- */
@media (max-width: 1100px) {
  .nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
  .nodes > .node-new:nth-child(7) { grid-column: auto; margin-top: 0; }
  .stage-frame { grid-column: 2 / -1; margin-top: 0; }
}
@media (max-width: 900px) {
  .m1-grid { grid-template-columns: 1fr; gap: 28px; }
  .ingress-wheel { max-width: 420px; }
  .answer-body { grid-template-columns: 1fr; }
  .close-reading { grid-column: 1; }
  .chapter-grid { grid-template-columns: 1fr; gap: 24px; }
  .chapter-wheel { position: static; max-width: 380px; }
  .related-grid, .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* spine becomes a vertical orbit */
  .nodes { grid-template-columns: 1fr; row-gap: 0; padding-left: 0; }
  .nodes::before { left: 6px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 1px solid var(--orbit); }
  .node { padding: 0 0 22px 28px; }
  .node-top { position: absolute; left: 0; top: 0; height: auto; }
  .node-top .cue { position: absolute; left: 20px; top: -2px; display: none; }
  .node .num { position: absolute; left: 24px; top: -1px; display: none; }
  .node-date { margin-top: 0; }
  .node.is-selected::after { left: 18px; right: -6px; top: -8px; bottom: 8px; }
  .stage-frame { grid-column: 1; padding: 0 0 0 12px; margin: 0 0 22px 18px; }
  .stage-label { margin-left: -12px; }
  .stage-list { grid-template-columns: 1fr; }
  .stage-list .node { padding-left: 16px; }
  .stage-list .node-top { left: -12px; }
  .ruler-gap { position: static; max-width: none; text-align: left; margin-top: 10px; }
  .ruler { padding-bottom: 0; }
  .band-label { font-size: 10.5px; padding: 0 6px; white-space: normal; line-height: 1.15; }
  .band-cap { height: auto; min-height: 26px; padding: 4px 0; }
  .band-cap .band-label { font-size: 10px; }
  .today span { left: 4px; }
  .tick:not(.tick-nested) { display: none; }
  .ruler-scale span:nth-child(4) { display: none; }
  .node-ingress .node-top::after { display: none; }
  .governor { top: 56px; font-size: 13.5px; }
  .gov-sel { margin-left: 0; width: 100%; }
  .central-mini { display: none; }
  .carry-matrix { display: none; }
  .js .carry-matrix + .carry-lists .carry-list:not(.is-selected) { display: none; }
  .chart-card:not(.empty) { grid-template-columns: 1fr; }
  .mini-wheel { max-width: 220px; }
  .m1 h1 { font-size: 46px; }
  .central { font-size: 30px; }
  .lede-reading { font-size: 20px; }
}

.route-unavailable{color:var(--muted);font:600 14px var(--ui);border-bottom:1px dotted var(--muted)}.primary .route-unavailable{display:inline-flex;align-items:center;min-height:44px;padding:0 9px;color:var(--bar-muted);border-bottom:0;opacity:.72}
.decision-preview{padding:10px var(--gutter);background:#5b3218;color:#fff;font:600 14px var(--ui)}
.boundary-note{font-size:12px;color:var(--muted);display:block;margin-top:2px}
.band-reading{height:26px;margin-top:6px;width:52%;background:var(--sky-wash);border-color:var(--sky-line)}.band-reading .band-label{background:transparent;color:var(--sky-ink)}
.node-open{color:inherit;text-decoration:none}.node-open::after{content:"";position:absolute;inset:0;z-index:1}.node-open:focus-visible{outline:none}.node:has(.node-open:focus-visible){outline:2px solid var(--focus);outline-offset:3px}.node .read{position:relative;z-index:2}.chapter-page{padding:42px 0 10px}.chapter-page .chapter-grid{margin-top:24px}.chapter-page-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:20px}.chapter-question{font:italic 21px/1.5 var(--serif);color:var(--ink-2);max-width:72ch;border-left:2px solid var(--sky);padding-left:16px}.chapter-page .chapter-wheel{top:84px}
@media(max-width:760px){.trail a,.chip a,.governor a,.routes-inline a,.routes a,.foot-links a,.zoom-link,.node-open{display:inline-flex;align-items:center;min-height:44px}.zoom-link{margin-right:8px}.band-reading{width:70%}}
