:root {
  --ink: #17231f;
  --ink-2: #263731;
  --forest: #1e312c;
  --forest-deep: #12201d;
  --paper: #f3eee2;
  --paper-2: #ebe3d3;
  --cream: #faf7ef;
  --white: #fffdf8;
  --rust: #a7442c;
  --rust-dark: #8f3522;
  --sage: #8fa99a;
  --muted: #596660;
  --line: #d8d2c5;
  --line-dark: #40504a;
  --success: #3d7259;
  --warning: #9b6a25;
  --danger: #9b4037;
  --shadow: 0 24px 70px rgba(24, 34, 30, .12);
  --radius: 3px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(206, 97, 64, .55); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 9vw, 6.75rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h3 { line-height: 1.2; }
em { color: var(--rust); font-weight: 400; }
::selection { background: #e7a48e; color: var(--forest-deep); }

.shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.shell--wide { width: min(calc(100% - 24px), 1480px); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--paper { background: var(--paper); }
.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: fixed; z-index: 1000; left: 16px; top: 12px; padding: 10px 16px; background: var(--white); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow, .section-number { margin: 0 0 20px; color: var(--rust); font-size: .72rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.large-copy { font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.45; }

.site-header { position: relative; z-index: 600; height: 76px; color: var(--white); background: var(--forest-deep); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; }
.brand__type { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: -.02em; }
.brand__type strong { color: #e0724f; font-weight: 700; }
.nav-toggle { width: 46px; height: 46px; display: grid; place-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 23px; height: 1px; background: currentColor; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.site-nav { position: fixed; inset: 76px 0 0; display: none; flex-direction: column; padding: 30px 20px; background: var(--forest-deep); }
.site-nav.is-open { display: flex; }
.site-nav a, .nav-logout button { padding: 16px 4px; color: var(--white); font-size: 1.15rem; text-decoration: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); background: transparent; text-align: left; cursor: pointer; }
.nav-logout { display: contents; }

.message-stack { position: relative; z-index: 500; padding-top: 12px; }
.message { padding: 13px 18px; border-left: 4px solid var(--sage); background: var(--white); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.message--success { border-color: var(--success); }
.message--error { border-color: var(--danger); }

.button-row { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius); font-size: .82rem; font-weight: 750; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid #e6a48f; outline-offset: 3px; }
.button--primary { color: #fff; background: var(--rust); border-color: var(--rust); }
.button--primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.button--quiet { color: var(--ink); background: transparent; border-color: #9b9c94; }
.button--quiet:hover { background: rgba(255,255,255,.55); border-color: var(--ink); }
.button--light { color: var(--forest-deep); background: var(--paper); border-color: var(--paper); }
.button--full { width: 100%; }
.button--small { min-height: 38px; padding: 7px 13px; font-size: .74rem; }
.text-link { display: inline-flex; gap: 20px; align-items: center; color: var(--rust-dark); font-size: .82rem; font-weight: 750; text-decoration: none; }
.back-link { display: inline-flex; font-size: .78rem; font-weight: 700; text-decoration: none; }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--forest-deep); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .23; background-image: radial-gradient(circle at 72% 20%, transparent 0 10%, rgba(143,169,154,.24) 10.2% 10.5%, transparent 10.7% 17%, rgba(143,169,154,.17) 17.2% 17.5%, transparent 17.7%), linear-gradient(110deg, transparent 55%, rgba(255,255,255,.05)); }
.hero__grid { position: relative; min-height: min(850px, calc(100vh - 76px)); display: grid; gap: 48px; padding-block: 64px 70px; }
.hero__copy { align-self: center; }
.hero h1 { margin: 0 0 28px; font-size: clamp(3.7rem, 15vw, 7.5rem); }
.hero__lede { max-width: 620px; color: #d4ddd7; font-family: var(--font-display); font-size: clamp(1.2rem, 3.5vw, 1.55rem); line-height: 1.5; }
.hero__principles { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 34px 0 0; color: #aab9b1; list-style: none; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.hero__principles li::before { content: "·"; margin-right: 9px; color: var(--rust); }
.hero__map-frame { min-height: 430px; position: relative; overflow: hidden; background: #d7d5c9; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.18); }
.map-chrome { height: 48px; position: absolute; z-index: 450; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; color: var(--ink); background: rgba(250,247,239,.92); border-bottom: 1px solid rgba(23,35,31,.13); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(8px); }
.map-chrome__pulse { width: 7px; height: 7px; display: inline-block; margin-right: 7px; background: var(--rust); border-radius: 50%; box-shadow: 0 0 0 5px rgba(206,97,64,.15); }
.map-cover-link { position: absolute; z-index: 450; inset: auto 12px 12px; display: flex; justify-content: space-between; padding: 12px 16px; color: var(--white); background: rgba(18,32,29,.92); text-decoration: none; font-size: .78rem; font-weight: 700; }
.map, .leaflet-container { z-index: 1; background: #aad3df; }
.map--home { height: 100%; min-height: 430px; }
.leaflet-container { font-family: var(--font-sans); }
.leaflet-control-attribution { font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--rust-dark); }
.leaflet-bar a { color: var(--ink); }
.history-popup { width: 235px; padding: 4px 2px; }
.history-popup__category { display: block; margin-bottom: 5px; color: var(--rust-dark); font-size: .63rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.history-popup strong { display: block; font-family: var(--font-display); font-size: 1.13rem; line-height: 1.12; }
.history-popup p { margin: 7px 0 8px; color: var(--muted); font-size: .73rem; line-height: 1.4; }
.history-popup a { color: var(--rust-dark); font-size: .72rem; font-weight: 800; text-decoration: none; }

.manifesto__grid { display: grid; gap: 30px; }
.manifesto h2 { margin-bottom: 30px; }
.archive-key { border-top: 1px solid var(--line); }
.archive-key > div { display: grid; gap: 5px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.archive-key span { color: var(--rust-dark); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.archive-key strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.section-heading { display: flex; flex-direction: column; gap: 20px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; }
.section-heading > p, .section-heading > div > p:last-child { max-width: 470px; color: var(--muted); }
.event-grid { display: grid; gap: 18px; }
.event-card { --category-color: var(--rust); position: relative; min-height: 360px; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(25,35,31,.1); }
.event-card::before { content: ""; height: 5px; background: var(--category-color); }
.event-card__link { position: absolute; z-index: 1; inset: 0; }
.event-card__topline, .event-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 18px; }
.event-card__topline { border-bottom: 1px solid var(--line); }
.category-label { --category-color: var(--rust); display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.category-label i { width: 8px; height: 8px; flex: none; background: var(--category-color); border-radius: 50%; }
.category-label--large { color: var(--ink); font-size: .7rem; }
.category-label--large i { width: 11px; height: 11px; }
.evidence-label { color: var(--muted); font-size: .62rem; }
.event-card__body { flex: 1; padding: 26px 18px; }
.event-card__date { margin-bottom: 8px; color: var(--rust-dark); font-size: .72rem; font-weight: 800; }
.event-card h3 { margin-bottom: 9px; font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; }
.event-card__location { color: var(--muted); font-size: .76rem; }
.event-card__body > p:last-child { color: #53605b; font-size: .86rem; }
.event-card__foot { color: var(--rust-dark); border-top: 1px solid var(--line); font-size: .7rem; font-weight: 800; }

.category-section { background: var(--ink); color: var(--white); }
.category-section .eyebrow { color: #e78362; }
.category-section .section-heading > p { color: #aebbb5; }
.category-grid { display: grid; gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.category-tile { --category-color: var(--rust); min-height: 210px; display: grid; grid-template-columns: auto 1fr; align-content: space-between; gap: 20px; padding: 22px; color: var(--white); background: var(--ink); text-decoration: none; transition: background .18s ease; }
.category-tile:hover { background: var(--ink-2); }
.category-tile__index { color: #829089; font-family: var(--font-display); font-size: .86rem; }
.category-tile__mark { width: 12px; height: 12px; justify-self: end; background: var(--category-color); border-radius: 50%; }
.category-tile strong { grid-column: 1 / -1; align-self: end; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.category-tile > span:last-child { grid-column: 1 / -1; color: #9eadab; font-size: .75rem; }

.contribution-callout { color: var(--white); background: var(--rust); }
.contribution-callout__inner { display: grid; gap: 32px; }
.contribution-callout .eyebrow { color: var(--white); }
.contribution-callout h2 { margin: 0; }
.contribution-callout__inner > div:last-child { align-self: end; }
.contribution-callout__inner > div:last-child p { max-width: 540px; font-family: var(--font-display); font-size: 1.25rem; }

.site-footer { padding: 70px 0 25px; color: #bac5c0; background: var(--forest-deep); }
.site-footer__grid { display: grid; gap: 45px; }
.brand--footer { color: var(--white); }
.site-footer__statement { margin-top: 24px; font-family: var(--font-display); font-size: 1.2rem; }
.footer-heading { color: var(--white); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-footer__grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; font-size: .78rem; }
.site-footer__grid a { text-decoration: none; }
.site-footer__base { display: flex; flex-direction: column; gap: 7px; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .65rem; }

.page-hero { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 130px) 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; top: -200px; border: 1px solid rgba(23,35,31,.1); border-radius: 50%; box-shadow: 0 0 0 50px rgba(23,35,31,.025), 0 0 0 100px rgba(23,35,31,.02); }
.page-hero--dark { color: var(--white); background: var(--forest-deep); border-color: rgba(255,255,255,.12); }
.page-hero--dark .eyebrow { color: #e78362; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 980px; margin-bottom: 25px; font-size: clamp(3rem, 8vw, 6.2rem); }
.page-hero__inner > p:last-child { max-width: 660px; margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; }
.page-hero .back-link { margin-bottom: 30px; }
.category-hero { border-top: 6px solid var(--category-color); }

.prose-layout, .standards-grid, .revision-layout, .revision-snapshot { display: grid; gap: 35px; }
.prose { max-width: 760px; }
.prose h2 { margin: 1.8em 0 .55em; font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2em 0 .5em; font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; }
.prose p { color: #3f4c47; line-height: 1.85; }
.principle-list { margin-top: 55px; border-top: 1px solid var(--line); }
.principle-list > div { padding: 23px 0; border-bottom: 1px solid var(--line); }
.principle-list strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.principle-list p { margin: 4px 0 0; font-size: .87rem; }
.standards-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.standards-nav strong { margin-bottom: 8px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.standards-nav a { color: var(--muted); font-size: .8rem; text-decoration: none; }
.standards-grid .prose section { padding-bottom: 60px; margin-bottom: 60px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.editorial-list { padding-left: 0; counter-reset: standard; list-style: none; }
.editorial-list li { counter-increment: standard; display: grid; grid-template-columns: 38px 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); }
.editorial-list li::before { content: counter(standard, decimal-leading-zero); color: var(--rust-dark); font-size: .7rem; font-weight: 800; }

.auth-page { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 55px 16px 90px; background: var(--paper); }
.auth-card { width: min(100%, 500px); padding: clamp(26px, 6vw, 52px); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card--wide { width: min(100%, 610px); }
.auth-card h1 { margin-bottom: 18px; font-size: clamp(2.6rem, 8vw, 4.2rem); }
.auth-card > p { color: var(--muted); }
.auth-card__foot { margin: 25px 0 0; font-size: .82rem; text-align: center; }

.stack-form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label, fieldset legend { color: var(--ink); font-size: .74rem; font-weight: 780; letter-spacing: .025em; }
.field input:not([type="checkbox"]), .field select, .field textarea, .filter-years input { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #aaa99f; border-radius: 2px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-years input:focus { border-color: var(--rust); }
.field__help { color: var(--muted); font-size: .7rem; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--danger); }
.field__errors, .form-errors, .errorlist { color: var(--danger); font-size: .74rem; }
.errorlist { padding-left: 18px; margin: 0; }
.form-errors { padding: 12px; background: #f9e9e6; border-left: 3px solid var(--danger); }
.check-row { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rust); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }

.atlas-header { display: flex; flex-direction: column; gap: 20px; padding-block: 45px 35px; }
.atlas-header h1 { margin: 0; font-size: clamp(3rem, 8vw, 5.7rem); }
.atlas-header > p { max-width: 540px; color: var(--muted); font-family: var(--font-display); font-size: 1.15rem; }
.atlas-workspace { display: grid; gap: 12px; padding-bottom: 80px; }
.filter-toggle { justify-self: start; }
.atlas-filters { display: none; padding: 18px; background: var(--paper); border: 1px solid var(--line); }
.atlas-filters.is-open { display: block; }
.atlas-filters form { display: grid; gap: 17px; }
.filter-heading { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filter-heading strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; }
.filter-heading a { color: var(--rust-dark); font-size: .67rem; }
.filter-years { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; border: 0; }
.filter-years legend { grid-column: 1 / -1; margin-bottom: 6px; }
.filter-years div { display: grid; gap: 5px; }
.filter-years label { color: var(--muted); font-size: .65rem; }
.filter-details { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-details summary { cursor: pointer; font-size: .74rem; font-weight: 750; }
.filter-details[open] summary { margin-bottom: 16px; }
.filter-details .field + .field { margin-top: 12px; }
.atlas-legend { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .7rem; }
.atlas-legend p { margin: 8px 0; }
.atlas-legend small { color: var(--muted); }
.precision-dot { width: 9px; height: 9px; display: inline-block; margin-right: 6px; background: var(--rust); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px var(--rust); }
.precision-dot--area { opacity: .55; box-shadow: 0 0 0 4px rgba(206,97,64,.18); }
.atlas-map-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); }
.atlas-map-bar { min-height: 45px; display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 8px 14px; background: var(--white); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .66rem; }
.atlas-map-bar strong { color: var(--ink); }
.map--atlas { height: 58vh; min-height: 460px; }
.atlas-results { padding: 24px 0 0; }
.atlas-results__heading h2 { font-size: 2.3rem; }
.atlas-result-list { border-top: 1px solid var(--line); }
.atlas-result { --category-color: var(--rust); }
.atlas-result__link { display: grid; grid-template-columns: 48px 1fr 18px; gap: 12px; align-items: center; padding: 16px 5px; border-bottom: 1px solid var(--line); text-decoration: none; }
.atlas-result__link:hover { background: rgba(235,227,211,.45); }
.atlas-result__year { color: var(--rust-dark); font-family: var(--font-display); font-size: .95rem; }
.atlas-result__link > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.atlas-result__link strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; line-height: 1.2; }
.atlas-result__link small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-result.is-highlighted { background: #f2dfd5; }

.file-hero { --category-color: var(--rust); padding: 25px 0 65px; background: var(--paper); border-top: 6px solid var(--category-color); border-bottom: 1px solid var(--line); }
.file-hero__top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 60px; color: var(--muted); }
.file-id { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.file-hero__main { display: grid; gap: 45px; }
.file-hero h1 { max-width: 900px; margin: 20px 0 30px; font-size: clamp(3.1rem, 9vw, 7rem); }
.file-hero__summary { max-width: 830px; font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.56; }
.file-facts { margin: 0; border-top: 1px solid var(--line); }
.file-facts div { display: grid; grid-template-columns: 85px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.file-facts dt { color: var(--rust-dark); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.file-facts dd { margin: 0; font-family: var(--font-display); line-height: 1.2; }
.file-facts small { display: block; margin-top: 5px; color: var(--muted); font-family: var(--font-sans); font-size: .65rem; }
.file-layout { display: grid; gap: 50px; padding-block: 70px 110px; }
.file-toc { display: none; }
.file-content { min-width: 0; }
.file-section { padding: 40px 0 70px; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
.file-section:first-child { padding-top: 0; }
.file-section__label { display: flex; gap: 16px; align-items: center; margin-bottom: 30px; color: var(--rust-dark); font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.file-section__label span { min-width: 27px; }
.file-section__label p { margin: 0; }
.file-section h2 { margin: 0 0 30px; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.event-map { height: 430px; border: 1px solid var(--line); }
.place-caption { display: grid; gap: 16px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-top: 0; }
.place-caption > div { display: grid; gap: 3px; }
.place-caption span { color: var(--muted); font-size: .68rem; }
.place-caption strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.file-section.prose { max-width: none; }
.file-section.prose > p { max-width: 760px; font-family: var(--font-display); font-size: 1.16rem; line-height: 1.85; }
.file-section.prose > h3 { max-width: 760px; margin-top: 50px; font-size: 2rem; }
.context-note, .uncertainty-note { display: flex; gap: 18px; margin: 25px 0; padding: 20px; background: #e8e3d8; border-left: 4px solid #9b765a; }
.context-note strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.context-note p, .uncertainty-note p { margin: 5px 0 0; color: #4d5853; font-size: .8rem; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 5px; bottom: 25px; width: 1px; background: var(--line); }
.timeline article { position: relative; display: grid; gap: 9px; padding: 0 0 35px 33px; }
.timeline article::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 11px; background: var(--cream); border: 2px solid var(--rust); border-radius: 50%; }
.timeline__date { color: var(--rust-dark); font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.timeline h3 { margin-bottom: 6px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.timeline p { margin: 0; color: var(--muted); font-size: .83rem; }
.matters-panel { margin-top: 50px; padding: 45px 24px; color: var(--white); background: var(--forest); border: 0; }
.matters-panel .file-section__label, .matters-panel .eyebrow { color: #df8a6e; }
.matters-panel > p:not(.eyebrow) { max-width: 760px; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.8; }
.remains { margin-top: 45px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.remains h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.remains p { color: #c7d1cc; }
.uncertainty-note { display: block; background: #eee3d0; border-color: var(--warning); }
.uncertainty-note .eyebrow { color: #76501d; }
.media-grid, .chain-list { display: grid; gap: 14px; }
.media-card { padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.media-card__type { margin-bottom: 20px; color: var(--rust-dark); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.media-card h3 { margin: 18px 0 8px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.media-card p { color: var(--muted); font-size: .8rem; }
.media-card small { display: block; margin-bottom: 15px; color: var(--muted); font-size: .65rem; }
.media-card a { color: var(--rust-dark); font-size: .72rem; font-weight: 800; text-decoration: none; }
.chain-section > p { max-width: 650px; color: var(--muted); }
.chain-list a { --category-color: var(--rust); display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--category-color); text-decoration: none; transition: background .18s ease; }
.chain-list a:hover { background: var(--paper); }
.chain-list span { color: var(--rust-dark); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.chain-list strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.chain-list p { margin: 0; color: var(--muted); font-size: .78rem; }
.chain-list small { color: var(--rust-dark); }
.sources-section .section-heading { align-items: flex-start; }
.source-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.source-list li { display: grid; grid-template-columns: 33px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.source-list > li > span { color: var(--rust-dark); font-family: var(--font-display); }
.source-list strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.source-list p { margin: 5px 0; color: var(--muted); font-size: .72rem; }
.source-list small { display: block; margin-bottom: 10px; color: var(--muted); font-size: .68rem; }
.source-list a { color: var(--rust-dark); font-size: .68rem; font-weight: 800; text-decoration: none; }
.file-revision-bar { display: grid; gap: 25px; padding: 35px 24px; margin-top: 55px; background: var(--paper); border: 1px solid var(--line); }
.file-revision-bar strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.file-revision-bar p:not(.eyebrow) { color: var(--muted); font-size: .8rem; }
.file-revision-bar > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.contribution-options { display: grid; gap: 45px; }
.contribution-intro { max-width: 600px; }
.contribution-intro p:last-child { color: var(--muted); }
.option-grid { display: grid; gap: 12px; }
.option-grid a { min-height: 260px; display: flex; flex-direction: column; padding: 24px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .18s ease, border .18s ease; }
.option-grid a:hover { transform: translateY(-3px); border-color: var(--rust); }
.option-grid a > span { color: var(--rust-dark); font-family: var(--font-display); }
.option-grid strong { margin-top: auto; font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; }
.option-grid p { color: var(--muted); font-size: .83rem; }
.option-grid em { font-family: var(--font-sans); font-size: .72rem; font-style: normal; font-weight: 800; }
.review-flow { display: grid; gap: 40px; }
.review-flow ol { padding: 0; margin: 0; list-style: none; }
.review-flow li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-flow li > span { color: var(--rust-dark); font-family: var(--font-display); font-size: 1.2rem; }
.review-flow strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.review-flow p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.form-layout, .proposal-layout, .moderation-layout { display: grid; gap: 35px; }
.guidance-card, .decision-card { padding: 23px; background: var(--paper); border: 1px solid var(--line); }
.guidance-card strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; }
.guidance-card ul { padding-left: 18px; color: var(--muted); font-size: .78rem; }
.guidance-card a { color: var(--rust-dark); font-size: .7rem; font-weight: 800; text-decoration: none; }
.contribution-form { max-width: 730px; }
.proposal-meta { margin: 0; }
.proposal-meta div, .proposal-data div, .revision-snapshot dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.proposal-meta dt, .proposal-data dt, .revision-snapshot dt { color: var(--rust-dark); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proposal-meta dd, .proposal-data dd, .revision-snapshot dd { margin: 4px 0 0; font-size: .8rem; }
.proposal-body { min-width: 0; }
.proposal-body h2 { font-size: 3rem; }
.proposal-body h3 { margin: 35px 0 10px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.proposal-body > p { color: #4c5954; }
.proposed-copy { padding: 22px; background: var(--white); border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.08rem; }
.moderator-response { padding: 20px; margin-top: 35px; background: #e6eee7; border-left: 4px solid var(--success); }
.moderator-response p { margin-bottom: 0; }
.proposal-list, .moderation-list, .revision-list { border-top: 1px solid var(--line); }
.proposal-row, .moderation-row, .revision-row { display: grid; gap: 12px; align-items: center; padding: 18px 6px; border-bottom: 1px solid var(--line); text-decoration: none; }
.proposal-row { grid-template-columns: auto 1fr auto 16px; }
.proposal-row > span:nth-child(2), .moderation-row > span:first-child, .revision-row > span:nth-child(2) { display: grid; gap: 3px; }
.proposal-row strong, .moderation-row strong, .revision-row strong { font-family: var(--font-display); font-weight: 400; }
.proposal-row small, .moderation-row small, .revision-row small { color: var(--muted); font-size: .68rem; }
.proposal-row time, .moderation-row time { color: var(--muted); font-size: .65rem; }
.status-pill { display: inline-flex; width: max-content; padding: 4px 8px; color: var(--ink); background: #e2ded3; border-radius: 20px; font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status-pill--approved { color: #24523e; background: #dcebe2; }
.status-pill--submitted, .status-pill--in_review { color: #27556a; background: #dcebf0; }
.status-pill--changes_requested { color: #76501d; background: #f3e6ce; }
.status-pill--rejected { color: #75332c; background: #f1dcda; }
.status-tabs { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 28px; padding-bottom: 4px; }
.status-tabs a { flex: none; display: flex; gap: 8px; padding: 8px 12px; background: var(--paper); font-size: .68rem; text-decoration: none; }
.status-tabs a.active { color: var(--white); background: var(--forest); }
.status-tabs span { opacity: .7; }
.moderation-row { grid-template-columns: 1fr auto 18px; }
.moderation-row:hover, .proposal-row:hover, .revision-row:hover { background: var(--paper); }
.moderation-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.decision-card h2 { margin: 10px 0 15px; font-size: 2rem; }
.revision-row { grid-template-columns: 100px 1fr auto; }
.revision-number { color: var(--rust-dark); font-size: .68rem; font-weight: 800; }
.revision-snapshot code { font-size: .68rem; word-break: break-all; }

.empty-state { padding: 50px 24px; text-align: center; background: var(--paper); border: 1px solid var(--line); }
.empty-state h2, .empty-state h3 { margin-bottom: 10px; font-family: var(--font-display); font-size: 2rem; font-weight: 400; }
.empty-state p { max-width: 520px; margin-inline: auto; color: var(--muted); }
.error-page { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 80px; }
.error-code { margin: 0; color: var(--rust); font-family: var(--font-display); font-size: 1.5rem; }
.error-page h1 { max-width: 800px; margin: 12px 0 20px; font-size: clamp(3rem, 8vw, 6rem); }
.error-page > p:not(.error-code) { color: var(--muted); }

@media (min-width: 700px) {
  .shell { width: min(calc(100% - 64px), var(--shell)); }
  .shell--wide { width: min(calc(100% - 48px), 1480px); }
  .hero__grid { padding-top: 85px; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-tile { min-height: 240px; }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .contribution-callout__inner { grid-template-columns: 1.1fr .9fr; }
  .site-footer__grid { grid-template-columns: 1.5fr .7fr 1fr; }
  .site-footer__base { flex-direction: row; justify-content: space-between; }
  .manifesto__grid { grid-template-columns: 100px 1fr; }
  .archive-key { grid-column: 2; }
  .prose-layout, .revision-layout, .revision-snapshot { grid-template-columns: 180px minmax(0, 760px); justify-content: center; }
  .standards-grid { grid-template-columns: 190px minmax(0, 760px); align-items: start; }
  .standards-nav { position: sticky; top: 30px; }
  .place-caption { grid-template-columns: 1fr auto; }
  .timeline article { grid-template-columns: 145px 1fr; padding-left: 38px; }
  .media-grid, .chain-list { grid-template-columns: repeat(2, 1fr); }
  .matters-panel { padding: 60px; }
  .sources-section .section-heading { align-items: end; }
  .file-revision-bar { grid-template-columns: 1fr auto; align-items: center; padding: 38px; }
  .option-grid { grid-template-columns: repeat(3, 1fr); }
  .review-flow { grid-template-columns: .8fr 1.2fr; }
  .form-layout { grid-template-columns: 230px minmax(0, 730px); justify-content: center; align-items: start; }
  .guidance-card { position: sticky; top: 25px; }
  .proposal-layout { grid-template-columns: 220px minmax(0, 730px); justify-content: center; }
  .moderation-layout { grid-template-columns: minmax(0, 760px) 330px; align-items: start; }
  .decision-card { position: sticky; top: 25px; }
  .atlas-header { flex-direction: row; justify-content: space-between; align-items: end; }
  .atlas-header > p { margin-bottom: 8px; }
}

@media (min-width: 1000px) {
  .site-header { height: 82px; }
  .nav-toggle { display: none; }
  .site-nav { position: static; inset: auto; display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; }
  .site-nav a, .nav-logout button { padding: 8px 0; border: 0; color: #d8e0dc; font-size: .72rem; font-weight: 700; }
  .site-nav a:hover, .nav-logout button:hover { color: #fff; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
  .hero h1 { font-size: clamp(5rem, 7.7vw, 7.4rem); }
  .hero__map-frame { min-height: 570px; transform: rotate(1deg); }
  .map--home { min-height: 570px; }
  .manifesto__grid { grid-template-columns: 120px minmax(0, 1.2fr) minmax(280px, .65fr); gap: 55px; }
  .archive-key { grid-column: auto; }
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .file-hero__main { grid-template-columns: minmax(0, 1fr) 310px; gap: 80px; }
  .file-facts { margin-top: 15px; }
  .file-layout { grid-template-columns: 190px minmax(0, 850px); justify-content: center; align-items: start; }
  .file-toc { position: sticky; top: 25px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding-left: 18px; border-left: 1px solid var(--line); }
  .file-toc p { margin-bottom: 9px; color: var(--ink); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .file-toc a { color: var(--muted); font-size: .7rem; text-decoration: none; }
  .file-toc a:hover { color: var(--rust-dark); }
  .atlas-workspace { grid-template-columns: 270px minmax(0, 1fr) 330px; grid-template-rows: auto; align-items: start; }
  .filter-toggle { display: none; }
  .atlas-filters { position: sticky; top: 12px; display: block; max-height: calc(100vh - 24px); overflow-y: auto; }
  .map--atlas { height: calc(100vh - 120px); min-height: 640px; }
  .atlas-map-panel { position: sticky; top: 12px; }
  .atlas-results { max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px; background: var(--white); border: 1px solid var(--line); }
  .atlas-results__heading { position: sticky; z-index: 2; top: -18px; padding: 18px 0 12px; background: var(--white); }
  .atlas-results__heading h2 { margin: 0; }
}

@media (min-width: 1280px) {
  .atlas-workspace { grid-template-columns: 285px minmax(560px, 1fr) 380px; }
}

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

@media print {
  .site-header, .site-footer, .file-toc, .button, .map-cover-link, .file-revision-bar { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .file-hero, .page-hero { color: #000; background: #fff; }
  .file-layout { display: block; }
  .file-section { break-inside: avoid; }
  a { color: #000; }
}
