@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #1d302d;
  --muted: #64736d;
  --paper: #f0f3ed;
  --surface: #fbfcf8;
  --line: #d7dfd8;
  --forest: #193a35;
  --forest-light: #294d46;
  --theme: #347d6b;
  --theme-soft: #dcebe4;
  --accent: #e4bb63;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; }
a { color: inherit; }
.skip-link { position: absolute; z-index: 20; top: -50px; left: 16px; padding: 8px 12px; background: var(--forest); color: white; }
.skip-link:focus { top: 12px; }
.masthead { position: relative; z-index: 10; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 34px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.brand-mark { width: 76px; min-width: 76px; height: 40px; display: grid; place-items: center; background: var(--forest); color: #f8f4e8; font: 500 12px var(--mono); }
.brand-copy { display: grid; gap: 1px; line-height: 1.25; }
.brand-copy strong { font-size: 16px; font-weight: 700; }
.brand-copy span { color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.masthead-note { display: grid; gap: 2px; margin-left: auto; text-align: right; }
.masthead-note span:first-child { color: var(--theme); font: 500 11px var(--mono); }
.masthead-note span:last-child { color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.mobile-navigation { display: none; }
.site-layout { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: calc(100vh - 78px); min-height: 500px; display: flex; flex-direction: column; overflow-y: auto; padding: 25px 17px 18px; background: var(--forest); color: #edf2e8; }
.sidebar-label { margin: 0 0 16px 10px; color: #a9c1b4; font: 9px var(--mono); letter-spacing: .1em; }
.site-navigation { display: grid; align-content: start; gap: 4px; }
.nav-home, .nav-parent { min-height: 39px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: #d9e4d9; font-size: 12px; text-decoration: none; }
.nav-home { margin-bottom: 7px; border-bottom: 1px solid #ffffff24; padding-bottom: 13px; }
.nav-home-mark { width: 23px; color: var(--accent); font-size: 18px; line-height: 1; text-align: center; }
.nav-section { padding: 1px 0 4px; }
.nav-parent { min-height: 34px; font-weight: 600; }
.nav-index { width: 23px; color: #a9c1b4; font: 9px var(--mono); text-align: center; }
.nav-parent[aria-current='page'], .nav-node.is-current > .nav-parent { background: var(--forest-light); color: #fff; }
.nav-home[aria-current='page'] { color: #fff; }
.nav-home:hover, .nav-parent:hover, .nav-children a:hover { color: var(--accent); }
.nav-children { display: grid; gap: 1px; margin: 1px 0 2px 21px; padding-left: 13px; border-left: 1px solid #a9c1b454; }
.nav-children a { padding: 5px 8px; color: #b9c9bf; font-size: 11px; line-height: 1.4; text-decoration: none; }
.nav-children a[aria-current='page'] { color: var(--accent); }
.nav-depth-2 > .nav-parent, .nav-depth-3 > .nav-parent, .nav-depth-4 > .nav-parent { min-height: 29px; font-size: 10px; font-weight: 400; }
.nav-node { position: relative; min-width: 0; }
.nav-node > .nav-parent { padding-right: 35px; }
.nav-disclosure > summary { position: absolute; z-index: 1; top: 4px; right: 3px; width: 25px; height: 25px; display: grid; place-items: center; color: #d3dfd4; cursor: pointer; font: 15px var(--mono); list-style: none; }
.nav-disclosure > summary::-webkit-details-marker { display: none; }
.nav-disclosure:not([open]) > .nav-children { display: none; }
.nav-disclosure[open] > summary span { font-size: 0; }
.nav-disclosure[open] > summary span::after { content: '\2212'; font-size: 15px; }
.nav-disclosure > .nav-children { margin-top: 2px; }
.sidebar-signoff { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 18px 7px 4px; border-top: 1px solid #ffffff24; }
.signoff-mark { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #edc46f76; color: var(--accent); font: 13px var(--mono); }
.sidebar-signoff > span:last-child { display: grid; gap: 2px; }
.sidebar-signoff strong { font: 500 11px var(--mono); }
.sidebar-signoff small { color: #b9c9bf; font-size: 10px; }
.main-column { min-width: 0; display: flex; flex-direction: column; }
.main-column main { flex: 1; min-width: 0; }
.site-footer { min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 5vw; border-top: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); letter-spacing: .035em; }

body[data-section='stations'] { --theme: #347d6b; --theme-soft: #dcebe4; }
body[data-section='qsls'] { --theme: #bd5a43; --theme-soft: #f3e1d9; }
body[data-section='logs'] { --theme: #397f98; --theme-soft: #dcebf0; }
body[data-section='knowledge'] { --theme: #a87428; --theme-soft: #f0e8d4; }
body[data-section='links'] { --theme: #707b39; --theme-soft: #e8ebd6; }

.home-hero { position: relative; min-height: 490px; display: grid; grid-template-columns: minmax(250px, .82fr) minmax(0, 1.18fr); align-items: center; gap: 38px; overflow: hidden; padding: 43px 5vw 36px; background: #e5ede7; }
.home-hero::before { position: absolute; inset: 0; pointer-events: none; content: ''; opacity: .28; background-image: linear-gradient(90deg, transparent 31px, #78978a22 32px), linear-gradient(transparent 31px, #78978a22 32px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000 65%); }
.hero-copy, .propagation-figure { position: relative; z-index: 1; }
.hero-copy { max-width: 420px; animation: rise-in .55s ease-out both; }
.eyebrow { margin: 0 0 15px; color: var(--theme); font: 500 9px var(--mono); letter-spacing: .105em; line-height: 1.5; }
.eyebrow-rule { width: 17px; height: 2px; display: inline-block; margin: 0 7px 3px 0; background: var(--theme); }
.eyebrow-divider { margin: 0 5px; color: #89978f; }
.hero-copy h1 { margin: 0 0 19px; color: var(--ink); font-size: 59px; font-weight: 700; line-height: .99; }
.hero-copy h1 span { display: block; color: var(--theme); }
.hero-intro { max-width: 410px; color: #52635d; font-size: 13px; line-height: 1.75; }
.hero-intro p { margin: 0 0 11px; }
.hero-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 13px; padding: 9px 0; border-bottom: 1px solid var(--theme); color: var(--theme); font: 500 10px var(--mono); text-decoration: none; }
.hero-link span { font-size: 16px; transition: transform .18s ease; }
.hero-link:hover span { transform: translate(2px, 2px); }
.propagation-figure { min-width: 0; margin: 0; animation: rise-in .65s .08s ease-out both; }
.propagation-figure img { width: 100%; height: auto; display: block; }
.propagation-figure figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; color: #52645d; font: 8px var(--mono); letter-spacing: .055em; }
.section-index { padding: 40px 5vw 66px; background: var(--surface); }
.section-heading { max-width: 1000px; display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 auto 17px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.section-heading-note { color: #7d8981; font: 9px var(--mono); letter-spacing: .07em; }
.section-heading-note span { padding: 0 5px; color: var(--theme); }
.section-list { max-width: 1000px; margin: auto; }
.section-row { min-height: 57px; display: grid; grid-template-columns: 42px minmax(150px, .8fr) minmax(150px, 1.5fr) 22px; align-items: center; gap: 12px; border-top: 1px solid var(--line); text-decoration: none; transition: padding .18s ease, color .18s ease; }
.section-row:last-child { border-bottom: 1px solid var(--line); }
.section-row:hover { padding-right: 5px; padding-left: 5px; color: var(--theme); }
.section-number { color: var(--theme); font: 10px var(--mono); }
.section-name { font-size: 12px; font-weight: 700; }
.section-description { color: var(--muted); font-size: 10px; }
.section-arrow { justify-self: end; color: var(--theme); font-size: 15px; }

.page-shell { max-width: 1120px; margin: 0 auto; padding: 49px 5vw 76px; }
.page-header { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-heading-copy { min-width: 0; max-width: 720px; }
.breadcrumb { display: inline-block; margin: 0 0 17px; color: var(--theme); font: 9px var(--mono); text-decoration: none; }
.breadcrumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-header .eyebrow { margin-bottom: 8px; }
.page-header h1 { margin: 0 0 9px; color: var(--ink); font-size: 43px; font-weight: 700; line-height: 1.12; overflow-wrap: anywhere; }
.page-deck { max-width: 640px; margin: 0; color: var(--muted); font-size: 13px; }
.page-art { width: 150px; height: 122px; display: grid; place-items: center; overflow: hidden; background-color: var(--theme-soft); background-size: 18px 18px; }
.page-art svg { width: 100%; height: 100%; fill: none; stroke: var(--theme); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-art svg .art-ground, .page-art svg .art-line { stroke: var(--ink); stroke-width: 2; }
body[data-section='stations'] .page-art { background-image: repeating-radial-gradient(ellipse at 70% 78%, transparent 0 12px, #347d6b16 13px 14px); }
body[data-section='qsls'] .page-art { background-image: radial-gradient(circle, #bd5a4330 1.4px, transparent 1.8px); background-size: 12px 12px; }
body[data-section='logs'] .page-art { background-image: linear-gradient(#397f981b 1px, transparent 1px), linear-gradient(90deg, #397f981b 1px, transparent 1px); background-size: 15px 15px; }
body[data-section='knowledge'] .page-art { background-image: repeating-linear-gradient(135deg, transparent 0 8px, #a8742812 8px 9px); }
body[data-section='links'] .page-art { background-image: linear-gradient(35deg, transparent 48%, #707b3922 49%, #707b3922 50%, transparent 51%), linear-gradient(-35deg, transparent 48%, #707b3922 49%, #707b3922 50%, transparent 51%); background-size: 25px 25px; }
.prose { max-width: 750px; padding-top: 25px; color: #4c5d56; font-size: 13px; }
.prose a { color: var(--theme); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin: 1.8em 0 .55em; color: var(--ink); font-size: 19px; }
.radio-file-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 10px; max-width: 930px; margin: 18px 0 0; }
.radio-file { min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 13px; border: 1px solid var(--line); background: var(--surface); }
.radio-file-copy { min-width: 0; display: grid; justify-items: start; gap: 5px; }
.radio-file-copy h3 { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.radio-file-copy h3 a { text-decoration: none; }
.radio-file-copy h3 a:hover { color: var(--theme); text-decoration: underline; text-underline-offset: 3px; }
.radio-file-copy > p { margin: 0; color: var(--muted); font: 8px var(--mono); }
.radio-image-link { width: 84px; min-width: 84px; height: 74px; display: grid; place-items: center; background: var(--paper); }
.radio-image-link img { max-width: 100%; max-height: 100%; object-fit: contain; }
.conversion-link { color: var(--theme); font: 9px var(--mono); text-decoration: none; }
.conversion-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.conversion-unavailable { color: var(--muted); font-size: 9px; }
.pdf-original-link { margin: 22px 0 0; font: 10px var(--mono); }
.pdf-original-link a { color: var(--theme); }
.pdf-document-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; margin: 21px 0 16px; color: var(--muted); font-size: 10px; }
.pdf-original-link { color: var(--theme); font: 500 10px var(--mono); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pdf-facsimiles { max-width: 900px; display: grid; gap: 22px; margin: 0 0 36px; }
.pdf-page-facsimile { margin: 0; padding: 11px; border: 1px solid var(--line); background: #e7ebe5; }
.pdf-page-facsimile img { width: 100%; height: auto; display: block; background: #fff; box-shadow: 0 2px 8px #1d302d18; }
.pdf-page-facsimile figcaption { padding: 8px 2px 0; color: var(--muted); font: 8px var(--mono); letter-spacing: .08em; }
.child-index { max-width: 820px; margin-top: 33px; border-top: 1px solid var(--line); }
.child-row { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .16s ease, color .16s ease; }
.child-row > span:first-child { display: grid; gap: 3px; }
.child-row strong { color: var(--ink); font-size: 12px; }
.child-row small { color: var(--muted); font-size: 10px; }
.child-row > span:last-child { color: var(--theme); font-size: 15px; }
.child-row:hover { padding-left: 7px; }
.child-row:hover strong { color: var(--theme); }

.mobile-navigation > summary { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 11px; list-style: none; }
.mobile-navigation > summary::-webkit-details-marker { display: none; }
.mobile-navigation:not([open]) > .site-navigation { display: none; }
.menu-glyph { width: 15px; display: grid; gap: 3px; }
.menu-glyph i { height: 1px; display: block; background: var(--theme); }
.mobile-navigation[open] .site-navigation { position: absolute; top: calc(100% + 10px); right: 0; width: min(340px, calc(100vw - 28px)); max-height: calc(100dvh - 105px); overflow: auto; padding: 15px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 16px 35px #193a3522; }
.mobile-navigation .nav-home, .mobile-navigation .nav-parent { color: var(--ink); }
.mobile-navigation .nav-home { border-color: var(--line); }
.mobile-navigation .nav-index { color: var(--theme); }
.mobile-navigation .nav-parent[aria-current='page'], .mobile-navigation .nav-node.is-current > .nav-parent { background: var(--theme-soft); color: var(--theme); }
.mobile-navigation .nav-children { border-color: var(--line); }
.mobile-navigation .nav-children a { color: var(--muted); }
.mobile-navigation .nav-children a[aria-current='page'] { color: var(--theme); }
.mobile-navigation .nav-disclosure > summary { color: var(--theme); }
.mobile-navigation .nav-home:hover, .mobile-navigation .nav-parent:hover, .mobile-navigation .nav-children a:hover { color: var(--theme); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 960px) {
  .masthead { min-height: 72px; padding: 9px 22px; }
  .site-layout { min-height: calc(100vh - 72px); display: block; }
  .sidebar { display: none; }
  .mobile-navigation { position: relative; display: block; }
  .home-hero { min-height: 0; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; padding: 38px 4vw 30px; }
  .hero-copy h1 { font-size: 49px; }
  .section-index { padding-right: 4vw; padding-left: 4vw; }
}
@media (max-width: 680px) {
  .masthead { padding-right: 14px; padding-left: 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 60px; min-width: 60px; height: 36px; font-size: 10px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy span { font-size: 7px; }
  .masthead-note { display: none; }
  .mobile-navigation > summary { width: 42px; justify-content: center; padding: 0; font-size: 0; }
  .mobile-navigation > summary .menu-glyph { width: 16px; }
  .home-hero { grid-template-columns: 1fr; gap: 25px; padding: 35px 20px 24px; }
  .hero-copy { max-width: 520px; }
  .hero-copy h1 { margin-bottom: 13px; font-size: 45px; }
  .hero-intro { max-width: 500px; font-size: 12px; }
  .hero-link { margin-top: 4px; }
  .propagation-figure figcaption { font-size: 7px; }
  .section-index { padding: 29px 20px 45px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 19px; }
  .section-heading-note { padding-top: 5px; font-size: 7px; white-space: nowrap; }
  .section-row { min-height: 60px; grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 8px; padding: 8px 0; }
  .section-number { grid-row: 1 / span 2; align-self: start; padding-top: 2px; }
  .section-name { grid-column: 2; grid-row: 1; }
  .section-description { grid-column: 2; grid-row: 2; font-size: 9px; }
  .section-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .page-shell { padding: 32px 20px 53px; }
  .page-header { grid-template-columns: minmax(0, 1fr) 82px; gap: 12px; padding-bottom: 20px; }
  .page-header h1 { font-size: 30px; }
  .page-deck { font-size: 11px; }
  .page-art { width: 82px; height: 82px; }
  .page-art svg { width: 100%; height: 100%; }
  .prose { padding-top: 19px; font-size: 12px; }
  .child-index { margin-top: 24px; }
  .child-row { min-height: 62px; }
  .site-footer { padding-right: 20px; padding-left: 20px; font-size: 8px; }
}