@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk/SpaceGrotesk-Variable.0c62a8f36c27.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #0c2418;
  --ink-2: #153323;
  --forest: #11472a;
  --forest-deep: #06170e;
  --paper: #eaf0e5;
  --paper-2: #dce7d7;
  --cream: #f5f7ef;
  --white: #fbfdf7;
  --rust: #59be59;
  --rust-dark: #176b36;
  --sage: #87aa91;
  --muted: #53675a;
  --line: #cbd8c9;
  --line-dark: #345342;
  --success: #257348;
  --warning: #9b6a25;
  --danger: #9b4037;
  --signal: #59be59;
  --signal-bright: #a8ef69;
  --shadow: 0 26px 70px rgba(4, 24, 13, .2);
  --radius: 0;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1180px;
  /* Utility-first type and spacing tokens keep page identity visible without
     making the title block compete with the page's actual tools or content. */
  --page-title-size: clamp(2.35rem, 4.4vw, 4.5rem);
  --page-title-compact-size: clamp(2.15rem, 3.6vw, 3.6rem);
  --page-head-space: clamp(32px, 4.2vw, 54px);
  --page-head-space-compact: clamp(24px, 3vw, 38px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 58px; 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(23, 107, 54, .55); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: anywhere; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 620; line-height: .94; letter-spacing: -.055em; }
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(--signal); font-weight: inherit; font-style: normal; }
::selection { background: var(--signal-bright); 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; color: inherit; text-decoration: none; }
.brand__logo { width: auto; height: 30px; display: block; }
.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; overflow-y: auto; 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 var(--signal-bright); 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; display: grid; gap: 34px; padding-block: 48px 54px; }
.hero__copy { align-self: center; }
.hero h1 { max-width: 680px; margin: 0 0 20px; font-size: clamp(3.25rem, 10.8vw, 5.25rem); }
.hero__lede { max-width: 590px; color: #d4ddd7; font-family: var(--font-display); font-size: clamp(1.05rem, 2.4vw, 1.28rem); line-height: 1.5; }
.hero__principles { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 24px 0 0; color: #aab9b1; list-style: none; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.hero__principles li::before { content: "·"; margin-right: 9px; color: var(--rust); }
.hero__map-frame { min-height: 360px; position: relative; overflow: hidden; background: #dfe8dc; 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(89,190,89,.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: 360px; }
.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); }
.featured-section { overflow: hidden; background: linear-gradient(180deg, var(--cream), #f7f1e6 72%, var(--cream)); }
.featured-section .section-heading { margin-bottom: 32px; }
.featured-section .section-heading h2 { max-width: 760px; }
.trail-controls { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px 5px; scrollbar-width: none; }
.trail-controls::-webkit-scrollbar { display: none; }
.trail-chip { min-height: 40px; display: inline-flex; flex: none; gap: 8px; align-items: center; padding: 8px 14px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: .69rem; font-weight: 750; cursor: pointer; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.trail-chip:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.trail-chip.is-active { color: var(--white); background: var(--forest); border-color: var(--forest); }
.trail-chip i { width: 7px; height: 7px; background: var(--category-color); border-radius: 50%; }
.trail-status { min-height: 28px; display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 13px; color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.trail-status__hint { color: var(--rust-dark); }
.event-grid { display: grid; gap: 18px; }
.event-grid--trail { grid-auto-flow: column; grid-auto-columns: min(86vw, 360px); overflow-x: auto; margin-right: calc((100vw - min(calc(100vw - 32px), var(--shell))) / -2); padding: 3px 20px 24px 0; scroll-padding-left: 1px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--rust) var(--paper-2); }
.event-grid--trail .event-card { scroll-snap-align: start; }
.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[hidden] { display: none; }
.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); }
.event-card__signal { min-width: 0; display: flex; align-items: center; gap: 12px; }
.event-card__index { color: #91968f; font-family: var(--font-display); font-size: .78rem; }
.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: var(--signal-bright); }
.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); }
.brand--footer .brand__logo { height: 34px; }
.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; }
.footer-link { width: max-content; padding: 0; color: inherit; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.footer-link:hover { color: var(--white); }
.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; }

.mobile-dock { position: fixed; z-index: 1200; inset: auto 0 0; min-height: 58px; display: grid; grid-template-columns: repeat(4, minmax(62px, 82px)); justify-content: center; gap: clamp(4px, 2.5vw, 12px); padding: 5px max(8px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); color: #bdc9c3; background: rgba(18,32,29,.97); border-top: 1px solid rgba(255,255,255,.13); box-shadow: 0 -10px 30px rgba(18,32,29,.16); backdrop-filter: blur(14px); }
.mobile-dock a { position: relative; min-width: 0; min-height: 44px; display: grid; justify-items: center; align-content: center; gap: 1px; color: inherit; font-size: .55rem; font-weight: 750; line-height: 1.15; letter-spacing: .015em; text-decoration: none; }
.mobile-dock a::before { content: ""; position: absolute; top: -5px; width: 22px; height: 2px; background: transparent; }
.mobile-dock a[aria-current] { color: var(--white); }
.mobile-dock a[aria-current]::before { background: var(--signal); }
.mobile-dock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.analytics-consent { position: fixed; z-index: 2000; right: 0; bottom: 58px; left: 0; display: grid; gap: 18px; padding: 18px clamp(16px, 4vw, 48px); color: var(--ink); background: var(--white); border-top: 1px solid var(--ink); box-shadow: 0 -10px 35px rgba(0,0,0,.18); }
.analytics-consent[hidden] { display: none; }
.analytics-consent strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.analytics-consent p { margin: 7px 0 0; color: var(--muted); font-size: .76rem; }
.analytics-consent__status { font-weight: 700; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.analytics-consent__actions .button { min-width: 140px; min-height: 42px; padding: 10px 16px; }
.analytics-consent__actions a { margin-left: 4px; font-size: .72rem; }

.page-hero { position: relative; overflow: hidden; padding: var(--page-head-space) 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: var(--signal-bright); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; margin-bottom: 16px; font-size: var(--page-title-size); line-height: 1; }
.page-hero__inner > p:last-child { max-width: 700px; margin: 0; font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.5; }
.page-hero .back-link { margin-bottom: 20px; }
.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: clamp(26px, 5vw, 58px) 16px clamp(72px, 7vw, 92px); background: var(--paper); }
.auth-card { width: min(100%, 460px); padding: clamp(22px, 4vw, 34px); background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 55px rgba(6, 23, 14, .13); }
.auth-card--wide { width: min(100%, 720px); }
.auth-card__header { margin-bottom: 18px; }
.auth-card__header .eyebrow { margin-bottom: 10px; }
.auth-card h1 { margin-bottom: 10px; font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: .96; }
.auth-card__intro p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.auth-form { gap: 14px; }
.auth-form .field { gap: 5px; }
.auth-form .field input:not([type="checkbox"]):not([type="radio"]), .auth-form .field select { min-height: 44px; padding: 8px 10px; }
.auth-form .field__help { font-size: .66rem; line-height: 1.4; }
.auth-form .button { min-height: 44px; margin-top: 2px; }
.auth-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 18px; margin: 18px 0 0; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: .74rem; line-height: 1.45; }
.auth-card__foot span { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.auth-card__foot--solo { margin-top: 0; }
.auth-access-note { display: grid; gap: 2px; padding: 11px 13px; margin: 0 0 16px; color: var(--ink); background: var(--paper); border-left: 3px solid var(--signal); }
.auth-access-note strong { font-size: .76rem; }
.auth-access-note span { color: var(--muted); font-size: .66rem; line-height: 1.45; }
.auth-access-note i { color: var(--sage); font-style: normal; }

.account-page { min-height: calc(100vh - 76px); padding: clamp(28px, 5vw, 54px) 0 clamp(72px, 8vw, 100px); background-color: var(--cream); background-image: linear-gradient(rgba(12, 36, 24, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 36, 24, .03) 1px, transparent 1px); background-size: 42px 42px; }
.account-shell { max-width: 1080px; }
.account-header { padding-bottom: 20px; }
.account-header .eyebrow { margin-bottom: 9px; }
.account-header__row { display: grid; gap: 18px; }
.account-header__row > .button { display: none; }
.account-header h1 { margin: 0 0 11px; font-size: clamp(2.5rem, 6vw, 4rem); }
.account-header__row > div > p { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center; max-width: 720px; margin: 0; color: var(--muted); font-size: .86rem; }
.role-badge { display: inline-flex; padding: 4px 9px; color: var(--forest-deep); background: var(--paper-2); border-left: 3px solid var(--sage); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.role-badge--contributor { background: #dcecd8; border-color: var(--signal); }
.role-badge--moderator { color: var(--white); background: var(--forest); border-color: var(--signal-bright); }
.role-badge--admin { color: var(--forest-deep); background: var(--signal-bright); border-color: var(--forest-deep); }
.account-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 0 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.account-tabs::-webkit-scrollbar { display: none; }
.account-tabs a { flex: none; padding: 7px 11px; color: var(--muted); font-size: .7rem; font-weight: 750; text-decoration: none; border: 1px solid transparent; }
.account-tabs a:hover { color: var(--ink); background: rgba(255,255,255,.65); border-color: var(--line); }
.account-layout, .account-main, .account-rail { display: grid; gap: 15px; align-content: start; }
.account-card { scroll-margin-top: 20px; padding: clamp(17px, 3vw, 24px); background: rgba(251, 253, 247, .94); border: 1px solid var(--line); }
.account-card h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.05; }
.account-card p { color: var(--muted); }
.account-kicker { margin: 0 0 5px; color: var(--rust-dark) !important; font-size: .61rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.account-card__heading { display: grid; gap: 7px; margin-bottom: 16px; }
.account-card__heading > p { max-width: 430px; margin: 0; font-size: .75rem; line-height: 1.45; }
.account-card--role { color: var(--white); background: var(--forest-deep); border-color: var(--forest-deep); }
.account-card--role header > p:last-child { margin: 7px 0 14px; color: #afbeb4; font-size: .75rem; }
.account-card--role .account-kicker { color: var(--signal-bright) !important; }
.access-matrix { padding: 0; margin: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.access-matrix li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 9px 0; color: #7f9285; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .71rem; }
.access-matrix li strong { color: #91a098; font-size: .58rem; letter-spacing: .05em; text-align: right; text-transform: uppercase; }
.access-matrix li.is-enabled { color: var(--white); }
.access-matrix li.is-enabled strong { color: var(--signal-bright); font-size: .76rem; }
.account-actions { display: grid; gap: 8px; }
.account-action { min-height: 70px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--line-dark); text-decoration: none; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.account-action:hover { background: var(--white); border-color: var(--signal); transform: translateY(-1px); }
.account-action strong { display: block; font-family: var(--font-display); font-size: .92rem; line-height: 1.2; }
.account-action small { display: block; margin-top: 3px; color: var(--muted); font-size: .65rem; line-height: 1.35; }
.account-action b { color: var(--rust-dark); font-size: 1rem; }
.account-action--signal { background: #e2efdd; border-left-color: var(--signal); }
.account-upgrade { display: grid; gap: 12px; align-items: center; padding: 13px 15px; margin-top: 12px; color: var(--white); background: var(--forest); }
.account-upgrade p { margin: 2px 0 0; color: #d6e2d8; font-size: .69rem; line-height: 1.4; }
.account-profile-form { display: grid; gap: 12px; align-items: end; }
.account-profile-form .field { gap: 5px; }
.account-profile-form input { min-height: 44px !important; }
.account-profile-form .button { min-height: 44px; }
.account-card--security header { margin-bottom: 8px; }
.account-details { margin: 0; }
.account-details > div { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.account-details dt { color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-details dd { margin: 0; overflow-wrap: anywhere; font-size: .76rem; }
.verified-label { display: inline-flex; margin-left: 5px; color: var(--success); font-size: .56rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.account-security-actions { display: grid; gap: 0; margin-top: 9px; }
.account-security-actions a, .account-security-actions button { width: 100%; display: flex; justify-content: space-between; padding: 9px 0; color: var(--rust-dark); background: none; border: 0; border-bottom: 1px solid var(--line); font-size: .71rem; font-weight: 750; text-align: left; text-decoration: none; cursor: pointer; }
.account-security-actions button { color: var(--muted); }

@media (max-width: 340px) {
  .account-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .account-tabs a { min-height: 38px; display: grid; place-items: center; padding: 6px 2px; font-size: .62rem; line-height: 1.15; 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"]):not([type="radio"]), .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); }
.choice-group { min-width: 0; padding: 0; margin: 0; border: 0; }
.choice-group > div { display: grid; gap: 9px; margin-top: 8px; }
.choice-group label { display: flex; gap: 9px; align-items: center; width: fit-content; font-size: .74rem; font-weight: 650; letter-spacing: .02em; text-transform: none; cursor: pointer; }
.choice-group input[type="radio"] { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--rust-dark); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }

.chaos-map-header { display: flex; flex-direction: column; gap: 14px; padding-block: 28px 24px; border-bottom: 1px solid var(--line); }
.chaos-map-header h1 { margin: 0; font-size: var(--page-title-size); line-height: 1; }
.chaos-map-header > p { max-width: 580px; margin: 0; color: var(--muted); font-family: var(--font-display); font-size: 1rem; line-height: 1.5; }
.chaos-map-workspace { display: grid; gap: 12px; padding-bottom: 80px; }
.filter-toggle { justify-self: start; }
.chaos-map-filters { display: none; padding: 18px; background: var(--paper); border: 1px solid var(--line); }
.chaos-map-filters.is-open { display: block; }
.chaos-map-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; }
.chaos-map-legend { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .7rem; }
.chaos-map-legend p { margin: 8px 0; }
.chaos-map-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(89,190,89,.18); }
.chaos-map-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); }
.chaos-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; }
.chaos-map-bar strong { color: var(--ink); }
.map--chaos { height: 58vh; min-height: 460px; }
.chaos-map-results { padding: 24px 0 0; }
.chaos-map-results__heading h2 { font-size: 2.3rem; }
.chaos-map-result-list { border-top: 1px solid var(--line); }
.chaos-map-result { --category-color: var(--rust); }
.chaos-map-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; }
.chaos-map-result__link:hover { background: rgba(220,236,216,.55); }
.chaos-map-result__year { color: var(--rust-dark); font-family: var(--font-display); font-size: .95rem; }
.chaos-map-result__link > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.chaos-map-result__link strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; line-height: 1.2; }
.chaos-map-result__link small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.chaos-map-result.is-highlighted { background: #dcecd8; }

.file-hero { --category-color: var(--rust); padding: 18px 0 38px; background: var(--paper); border-top: 5px solid var(--category-color); border-bottom: 1px solid var(--line); }
.file-progress { position: fixed; z-index: 1250; top: 76px; right: 0; left: 0; height: 3px; pointer-events: none; background: rgba(18,32,29,.12); opacity: 1; transition: opacity .16s ease; }
.file-progress.is-hidden { opacity: 0; }
.file-progress span { width: 100%; height: 100%; display: block; background: var(--rust); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.file-hero__top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 28px; color: var(--muted); }
.file-id { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.file-hero__main { display: grid; gap: 28px; }
.file-hero h1 { max-width: 820px; margin: 12px 0 18px; font-size: clamp(2.65rem, 5.4vw, 4.85rem); line-height: .98; }
.file-hero__summary { max-width: 800px; margin: 0; font-family: var(--font-display); font-size: clamp(1.02rem, 1.65vw, 1.22rem); line-height: 1.52; }
.file-facts { margin: 0; border-top: 1px solid var(--line); }
.file-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 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: #e0eadc; border-left: 4px solid var(--rust-dark); }
.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: var(--signal-bright); }
.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; }

.chaos-file-page.has-continuation .file-layout { padding-bottom: 0; }
.continue-trail { padding: 90px 0 clamp(70px, 8vw, 105px); margin-top: 45px; border-top: 1px solid var(--line); }
.continue-trail__heading { display: grid; gap: 20px; margin-bottom: 32px; }
.continue-trail__heading h2 { margin: 0; }
.continue-trail__heading > p { max-width: 470px; color: var(--muted); font-family: var(--font-display); font-size: 1.05rem; }
.continue-trail__grid { display: grid; gap: 12px; }
.continue-trail__lead { --category-color: var(--rust); min-height: 350px; display: flex; flex-direction: column; padding: 25px; color: var(--white); background: var(--forest); border-top: 5px solid var(--category-color); text-decoration: none; transition: transform .18s ease, background .18s ease; }
.continue-trail__lead:hover { background: var(--forest-deep); transform: translateY(-3px); }
.continue-trail__kicker { display: flex; align-items: center; gap: 8px; color: #c0ccc6; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.continue-trail__kicker i, .continue-trail__more i { width: 8px; height: 8px; flex: none; background: var(--category-color); border-radius: 50%; }
.continue-trail__date { margin-top: auto; color: var(--signal-bright); font-size: .72rem; font-weight: 800; }
.continue-trail__lead strong { max-width: 680px; margin: 8px 0 12px; font-family: var(--font-display); font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.continue-trail__lead > span:not(.continue-trail__kicker):not(.continue-trail__date) { color: #bdc9c3; font-size: .76rem; }
.continue-trail__lead em { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 15px; color: var(--white); border-top: 1px solid rgba(255,255,255,.18); font-family: var(--font-sans); font-size: .72rem; font-style: normal; font-weight: 800; }
.continue-trail__more { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.continue-trail__more a { --category-color: var(--rust); position: relative; min-height: 160px; display: flex; flex-direction: column; padding: 20px 44px 20px 20px; background: var(--white); text-decoration: none; transition: background .16s ease; }
.continue-trail__more a:hover { background: var(--paper); }
.continue-trail__more span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.continue-trail__more strong { margin: auto 0 6px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; line-height: 1.1; }
.continue-trail__more small { color: var(--muted); font-size: .66rem; }
.continue-trail__more b { position: absolute; right: 18px; bottom: 18px; color: var(--rust-dark); }
.continue-trail__map { margin-top: 24px; }

.contribution-options { display: grid; gap: 45px; }
.contribution-intro { max-width: 600px; }
.contribution-intro p:last-child { color: var(--muted); }
.contributor-entry { display: grid; gap: 22px; align-items: center; padding: 24px; color: var(--white); background: var(--forest); border-left: 4px solid var(--rust); }
.contributor-entry strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.contributor-entry p { max-width: 680px; margin: 7px 0 0; color: #c7d1cc; font-size: .82rem; }
.contributor-entry .button-row { margin: 0; }
.contributor-entry .button--quiet { color: var(--white); border-color: rgba(255,255,255,.35); }
.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: minmax(0, 1fr) 16px; }
.proposal-row > .status-pill, .proposal-row > span:nth-child(2), .proposal-row > time { grid-column: 1; }
.proposal-row > span:last-child { grid-column: 2; grid-row: 1 / span 3; }
.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: minmax(0, 1fr) auto; }
.revision-row .revision-number { grid-column: 1 / -1; }
.revision-row > span:nth-child(2) { min-width: 0; }
.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-dark); 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); }

/* Brand system: an active field archive shaped by the Chaos Tourist mark. */
body {
  background-color: var(--cream);
  background-image: linear-gradient(rgba(12, 36, 24, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 36, 24, .025) 1px, transparent 1px);
  background-size: 42px 42px;
}
a { text-decoration-color: rgba(23, 107, 54, .48); }
.section { position: relative; }
.eyebrow, .section-number { display: flex; align-items: center; gap: 10px; color: var(--rust-dark); font-weight: 700; letter-spacing: .19em; }
.eyebrow::before, .section-number::before { content: ""; width: 18px; height: 3px; flex: none; background: currentColor; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.large-copy { font-size: clamp(1.25rem, 2.5vw, 1.85rem); font-weight: 430; line-height: 1.48; letter-spacing: -.025em; }

.site-header { position: sticky; top: 0; height: 76px; background: rgba(6, 23, 14, .96); border-color: rgba(168, 239, 105, .22); box-shadow: 0 8px 35px rgba(3, 16, 9, .16); backdrop-filter: blur(14px); }
.site-header::after { content: ""; position: absolute; right: 0; bottom: -1px; width: min(26vw, 320px); height: 2px; background: linear-gradient(90deg, transparent, var(--signal)); }
.site-nav a, .nav-logout button { font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; right: 4px; bottom: 9px; left: 4px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }

.button { position: relative; min-height: 50px; padding-inline: 22px 26px; border: 0; border-radius: 0; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px)); font-weight: 700; letter-spacing: .085em; text-transform: uppercase; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline-color: var(--signal-bright); }
.button--primary { color: var(--forest-deep); background: var(--signal); }
.button--primary:hover { color: var(--forest-deep); background: var(--signal-bright); }
.button--quiet { color: var(--ink); background: rgba(255, 255, 255, .08); border: 1px solid currentColor; }
.button--light { color: var(--forest-deep); background: var(--white); }
.text-link { color: var(--rust-dark); letter-spacing: .06em; text-transform: uppercase; }

.hero { isolation: isolate; background: var(--forest-deep); }
.hero::before { z-index: -2; opacity: 1; background-image: radial-gradient(circle at 78% 24%, rgba(89, 190, 89, .19), transparent 24%), linear-gradient(120deg, transparent 0 48%, rgba(89, 190, 89, .04) 48% 48.3%, transparent 48.3% 100%), linear-gradient(60deg, transparent 0 68%, rgba(168, 239, 105, .035) 68% 68.3%, transparent 68.3% 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; right: -80px; bottom: -140px; width: min(58vw, 760px); aspect-ratio: 1; opacity: .16; border: 1px solid var(--signal); transform: rotate(45deg); box-shadow: 0 0 0 70px rgba(89, 190, 89, .06), 0 0 0 140px rgba(89, 190, 89, .025); }
.hero__grid { min-height: 0; }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { max-width: 760px; font-weight: 670; letter-spacing: -.07em; text-transform: uppercase; }
.hero h1 em { color: var(--signal-bright); text-shadow: 0 0 40px rgba(89, 190, 89, .22); }
.hero__lede { max-width: 590px; color: #dce8de; font-size: clamp(1.03rem, 2.1vw, 1.24rem); font-weight: 410; line-height: 1.52; letter-spacing: -.018em; }
.hero .button--quiet { color: #e2eee4; border-color: rgba(226, 238, 228, .58); }
.hero__principles { color: #a9bcae; font-weight: 600; letter-spacing: .12em; }
.hero__principles li::before { content: "/"; color: var(--signal); }
.hero__map-frame { border: 1px solid rgba(168, 239, 105, .42); clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }
.map-chrome { color: #d9e8dd; background: rgba(6, 23, 14, .94); border-color: rgba(168, 239, 105, .22); letter-spacing: .11em; }
.map-chrome__pulse { background: var(--signal-bright); border-radius: 0; box-shadow: 0 0 0 5px rgba(168, 239, 105, .14); transform: rotate(45deg); animation: signal-pulse 2.4s ease-in-out infinite; }
.map-cover-link { inset: auto 0 0; padding: 15px 18px; color: var(--forest-deep); background: var(--signal); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
@keyframes signal-pulse { 50% { box-shadow: 0 0 0 9px rgba(168, 239, 105, 0); } }

.section--paper { background: var(--paper); }
.manifesto { overflow: hidden; }
.manifesto::after { content: ""; position: absolute; right: -70px; bottom: -100px; width: 260px; height: 260px; border: 30px solid rgba(23, 107, 54, .06); transform: rotate(45deg); }
.manifesto h2 { font-weight: 590; }
.manifesto em, .featured-section em, .option-grid em { color: var(--rust-dark); }
.archive-key { border-color: var(--line-dark); }
.archive-key > div { position: relative; padding-left: 18px; }
.archive-key > div::before { content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 7px; background: var(--signal); transform: rotate(45deg); }
.archive-key strong { font-weight: 520; letter-spacing: -.02em; }

.featured-section { background: linear-gradient(180deg, var(--cream), #edf4e9 66%, var(--cream)); }
.trail-chip { border-radius: 0; font-weight: 650; letter-spacing: .05em; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.trail-chip.is-active { color: var(--forest-deep); background: var(--signal); border-color: var(--signal); }
.trail-status__hint { color: var(--rust-dark); }
.event-card { min-height: 380px; background: rgba(251, 253, 247, .96); border-color: var(--line); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); box-shadow: 0 12px 30px rgba(12, 36, 24, .05); }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(12, 36, 24, .13); }
.event-card::before { height: 6px; }
.event-card__index { color: var(--rust-dark); font-size: .72rem; font-weight: 650; letter-spacing: .1em; }
.event-card h3 { font-size: 1.58rem; font-weight: 620; letter-spacing: -.04em; }
.event-card__date { letter-spacing: .06em; text-transform: uppercase; }
.event-card__foot { letter-spacing: .06em; text-transform: uppercase; }
.category-label i, .trail-chip i { border-radius: 0; transform: rotate(45deg); }

.category-section { isolation: isolate; overflow: hidden; background: var(--forest-deep); }
.category-section::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .13; background: repeating-linear-gradient(135deg, transparent 0 52px, rgba(89, 190, 89, .22) 52px 53px); }
.category-section .eyebrow, .page-hero--dark .eyebrow { color: var(--signal-bright); }
.category-section .section-heading > p { color: #b7c8bb; }
.category-grid { gap: 10px; background: transparent; border: 0; }
.category-tile { min-height: 230px; background: rgba(18, 52, 33, .7); border: 1px solid rgba(168, 239, 105, .16); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.category-tile:hover { background: var(--forest); transform: translateY(-3px); }
.category-tile__index { color: #8dac96; font-weight: 650; }
.category-tile__mark { width: 10px; height: 10px; border-radius: 0; transform: rotate(45deg); }
.category-tile strong { font-size: 1.38rem; font-weight: 620; letter-spacing: -.035em; }

.contribution-callout { overflow: hidden; color: var(--forest-deep); background: var(--signal); }
.contribution-callout::after { content: ""; position: absolute; right: -130px; top: -180px; width: 430px; height: 430px; opacity: .22; border: 45px solid var(--forest-deep); transform: rotate(45deg); }
.contribution-callout .eyebrow { color: var(--forest-deep); }
.contribution-callout h2 { font-weight: 680; text-transform: uppercase; }
.contribution-callout__inner { position: relative; z-index: 1; }
.contribution-callout__inner > div:last-child p { font-size: 1.15rem; font-weight: 460; }
.contribution-callout .button--light { color: var(--white); background: var(--forest-deep); }

.site-footer { position: relative; overflow: hidden; color: #b9cabc; background: var(--forest-deep); border-top: 1px solid rgba(168, 239, 105, .2); }
.site-footer::after { content: ""; position: absolute; right: -90px; bottom: -190px; width: 360px; height: 360px; opacity: .08; border: 42px solid var(--signal); transform: rotate(45deg); pointer-events: none; }
.site-footer__grid, .site-footer__base { position: relative; z-index: 1; }
.site-footer__statement { font-size: 1.1rem; font-weight: 430; letter-spacing: -.02em; }
.footer-heading { color: var(--signal-bright); letter-spacing: .16em; }

.mobile-dock { color: #b7c8bb; background: rgba(6, 23, 14, .97); border-color: rgba(168, 239, 105, .18); }
.mobile-dock a[aria-current] { color: var(--signal-bright); }
.mobile-dock a[aria-current]::before { background: var(--signal); }
.analytics-consent { background: var(--white); border-color: var(--forest); }
.analytics-consent strong { font-weight: 620; }

.auth-page { position: relative; isolation: isolate; overflow: hidden; background-color: var(--paper); background-image: linear-gradient(rgba(12, 36, 24, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 36, 24, .035) 1px, transparent 1px); background-size: 42px 42px; }
.auth-page::before { content: ""; position: absolute; z-index: -1; right: -90px; top: -170px; width: 420px; height: 420px; opacity: .07; border: 42px solid var(--forest); transform: rotate(45deg); }
.auth-card { position: relative; overflow: hidden; border-color: var(--line); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); box-shadow: 0 28px 75px rgba(6, 23, 14, .16); }
.auth-card::after { content: ""; position: absolute; right: -46px; bottom: -64px; width: 125px; height: 125px; opacity: .045; border: 15px solid var(--forest); transform: rotate(45deg); pointer-events: none; }
.auth-card h1 { font-weight: 650; letter-spacing: -.055em; }
.field label, fieldset legend { letter-spacing: .065em; text-transform: uppercase; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .filter-years input { border-radius: 0; border-color: #8ca092; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-years input:focus { border-color: var(--rust-dark); box-shadow: 0 0 0 3px rgba(89, 190, 89, .2); }

.chaos-map-filters { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.filter-heading strong { font-weight: 600; letter-spacing: -.02em; }
.prose h3, .principle-list strong, .proposal-row strong, .moderation-row strong, .revision-row strong { font-weight: 600; letter-spacing: -.025em; }
.prose a, .proposal-body a { overflow-wrap: anywhere; }

.page-hero { isolation: isolate; background: var(--paper); }
.page-hero::after { z-index: -1; width: 380px; height: 380px; right: -120px; top: -200px; border: 32px solid rgba(23, 107, 54, .06); border-radius: 0; box-shadow: none; transform: rotate(45deg); }
.page-hero--dark { background: var(--forest-deep); }
.page-hero--dark::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .15; background: repeating-linear-gradient(135deg, transparent 0 68px, rgba(89, 190, 89, .18) 68px 69px); }
.page-hero h1 { font-weight: 650; letter-spacing: -.06em; }
.page-hero__inner > p:last-child { font-weight: 420; letter-spacing: -.02em; }

.file-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.file-hero::after { content: ""; position: absolute; z-index: -1; right: -170px; bottom: -240px; width: 500px; height: 500px; border: 40px solid rgba(23, 107, 54, .055); transform: rotate(45deg); }
.file-progress span { background: var(--signal-bright); }
.file-hero h1 { font-weight: 660; letter-spacing: -.065em; }
.file-hero__summary { font-weight: 430; letter-spacing: -.025em; }
.file-facts dt, .file-section__label { color: var(--rust-dark); }
.file-facts dd { font-weight: 570; }
.file-section h2 { font-weight: 620; }
.file-section.prose > p { font-family: var(--font-sans); font-size: 1.08rem; line-height: 1.85; }
.context-note, .uncertainty-note { background: #e0eadc; border-color: var(--rust-dark); }
.timeline article::before { border-radius: 0; transform: rotate(45deg); }
.timeline h3 { font-weight: 600; }
.matters-panel { position: relative; overflow: hidden; background: var(--forest-deep); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.matters-panel::after { content: ""; position: absolute; right: -90px; bottom: -150px; width: 280px; height: 280px; opacity: .08; border: 28px solid var(--signal); transform: rotate(45deg); }
.matters-panel .file-section__label, .matters-panel .eyebrow { color: var(--signal-bright); }
.matters-panel > p:not(.eyebrow) { position: relative; z-index: 1; font-family: var(--font-sans); font-size: 1.1rem; }
.media-card, .file-revision-bar, .guidance-card, .decision-card, .empty-state { background: rgba(234, 240, 229, .88); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.chain-list a, .continue-trail__more a, .option-grid a { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.continue-trail__lead { background: var(--forest-deep); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.continue-trail__lead:hover { background: var(--forest); }
.continue-trail__date { color: var(--signal-bright); }
.continue-trail__lead strong, .chain-list strong, .media-card h3, .option-grid strong { font-weight: 610; letter-spacing: -.035em; }
.contributor-entry { background: var(--forest-deep); border-color: var(--signal); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.form-control, input, select, textarea { border-radius: 0; }
.status-pill { border-radius: 0; clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%); }
.chaos-map-panel, .chaos-map-results { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.chaos-map-result.is-highlighted { background: #dcecd8; }

@media (min-width: 700px) {
  .shell { width: min(calc(100% - 64px), var(--shell)); }
  .shell--wide { width: min(calc(100% - 48px), 1480px); }
  .hero__grid { padding-block: 52px 56px; }
  .site-header .brand__logo { height: 34px; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid--trail { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-right: 0; padding: 3px 0 0; scroll-snap-type: none; }
  .trail-status__hint { display: none; }
  .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; }
  .contributor-entry { grid-template-columns: minmax(0, 1fr) auto; padding: 30px; }
  .site-footer__grid { grid-template-columns: 1.5fr 1fr; }
  .site-footer__base { flex-direction: row; justify-content: space-between; }
  .analytics-consent { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .auth-form--register { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-form--register .field--display_name, .auth-form--register .form-errors, .auth-form--register > .button { grid-column: 1 / -1; }
  .account-header__row { display: flex; justify-content: space-between; align-items: end; }
  .account-header__row > .button { display: inline-flex; flex: none; margin-bottom: 2px; }
  .account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-card__heading { grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr); align-items: end; }
  .account-card__heading > p { justify-self: end; text-align: right; }
  .account-upgrade { grid-template-columns: minmax(0, 1fr) auto; }
  .account-profile-form { grid-template-columns: minmax(0, 1fr) auto; }
  .account-profile-form .button { min-width: 175px; }
  .account-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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; }
  .continue-trail__heading { grid-template-columns: 1fr auto; align-items: end; }
  .continue-trail__heading > p { margin-bottom: 8px; }
  .continue-trail__grid { grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); }
  .option-grid { grid-template-columns: repeat(3, 1fr); }
  .proposal-row { grid-template-columns: auto minmax(0, 1fr) auto 16px; }
  .proposal-row > .status-pill, .proposal-row > span:nth-child(2), .proposal-row > time, .proposal-row > span:last-child { grid-column: auto; grid-row: auto; }
  .revision-row { grid-template-columns: 100px minmax(0, 1fr) auto; }
  .revision-row .revision-number { grid-column: auto; }
  .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; }
  .chaos-map-header { flex-direction: row; justify-content: space-between; align-items: end; }
  .chaos-map-header > p { margin-bottom: 8px; }
}

@media (min-width: 700px) and (max-width: 999px) {
  /* Tablet widths have room for strong typography but not for a useful map
     beside it. Keep the route action prominent and let the full map own its
     dedicated workspace instead of stacking a decorative preview. */
  .hero__map-frame { display: none; }
  .hero h1 { font-size: clamp(4rem, 9vw, 4.9rem); }

  .file-hero__main { grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; }
  .file-facts { margin-top: 5px; }
}

@media (hover: hover) and (pointer: fine) {
  body { padding-bottom: 0; }
  .mobile-dock { display: none; }
  .analytics-consent { bottom: 0; }
}

/* A filtered ancestor becomes the containing block for fixed descendants.
   Keep the collapsible header opaque and unfiltered so the open fixed navigation
   fills the viewport instead of collapsing to the header's own height. */
@media (max-width: 1199px) {
  .site-header {
    background: var(--forest-deep);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.nav-open .site-header { z-index: 2100; }
}

@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .site-header { height: 82px; }
  .mobile-dock { display: none; }
  .analytics-consent { bottom: 0; }
  .site-nav { inset: 82px 0 0; }
  .site-footer__grid { grid-template-columns: 1.5fr .7fr 1fr .8fr; }
  .account-layout { grid-template-columns: minmax(0, 1fr) 270px; align-items: start; }
  .account-main { grid-column: 1; grid-row: 1; }
  .account-rail { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1.06fr .94fr; align-items: center; gap: 58px; }
  .hero h1 { font-size: clamp(4.15rem, 5.25vw, 5.1rem); }
  .hero__map-frame { min-height: 400px; transform: none; }
  .map--home { min-height: 400px; }
  .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) 290px; gap: 52px; }
  .file-facts { margin-top: 7px; }
  .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); }
  .file-toc a[aria-current="location"] { position: relative; color: var(--ink); font-weight: 800; }
  .file-toc a[aria-current="location"]::before { content: ""; position: absolute; width: 5px; height: 5px; left: -21px; top: .55em; background: var(--rust); border-radius: 50%; }
  .file-progress { top: 82px; }
  .chaos-map-workspace { grid-template-columns: 270px minmax(0, 1fr) 330px; grid-template-rows: auto; align-items: start; }
  .filter-toggle { display: none; }
  .chaos-map-filters { position: sticky; top: 12px; display: block; max-height: calc(100vh - 24px); overflow-y: auto; }
  .map--chaos { height: calc(100vh - 120px); min-height: 640px; }
  .chaos-map-panel { position: sticky; top: 12px; }
  .chaos-map-results { max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px; background: var(--white); border: 1px solid var(--line); }
  .chaos-map-results__heading { position: sticky; z-index: 2; top: -18px; padding: 18px 0 12px; background: var(--white); }
  .chaos-map-results__heading h2 { margin: 0; }
}

@media (min-width: 1200px) {
  .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; white-space: nowrap; }
  .site-nav a:hover, .nav-logout button:hover { color: #fff; }
}

@media (min-width: 1280px) {
  .chaos-map-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; }
}

/* Native Community */
.nav-count, .dock-count { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-left: .35rem; padding: 0 .3rem; color: var(--forest-deep); background: var(--signal-bright); border-radius: 99px; font-size: .61rem; font-style: normal; font-weight: 900; }
.community-hero, .community-page-hero, .topic-hero { color: #eef7f0; background: var(--forest-deep); }
.community-hero { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 130px) 0 72px; }
.community-hero::after { content: ""; position: absolute; right: -8vw; bottom: -180px; width: min(48vw, 650px); aspect-ratio: 1; border: 1px solid rgba(168, 239, 105, .16); transform: rotate(45deg); box-shadow: 0 0 0 70px rgba(168, 239, 105, .04); }
.community-hero .shell, .community-page-hero .shell, .topic-hero .shell { position: relative; z-index: 1; }
.community-hero h1, .community-page-hero h1, .topic-hero h1 { max-width: 920px; margin: .25em 0; font-size: clamp(2.7rem, 8vw, 6.8rem); letter-spacing: -.065em; line-height: .92; }
.community-hero .eyebrow, .community-page-hero .eyebrow, .topic-hero .eyebrow { color: var(--signal-bright); }
.community-hero h1 em { color: var(--signal-bright); }
.community-hero__intro { max-width: 660px; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.55; }
.community-search { max-width: 690px; margin-top: 36px; }
.community-search label { display: block; margin-bottom: 8px; color: #b8c9bd; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.community-search > div { display: flex; gap: 8px; }
.community-search input { flex: 1; min-width: 0; padding: 15px 17px; border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.07); }
.community-search input::placeholder { color: #aebdb2; }
.community-layout, .topic-layout { display: grid; gap: 46px; }
.community-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.community-heading h2 { margin: 3px 0 0; }
.community-heading--recent { margin-top: 60px; }
.community-space-grid { display: grid; gap: 12px; }
.community-space-card { display: grid; grid-template-columns: 38px 1fr auto; gap: 16px; align-items: start; padding: 22px; color: var(--ink); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.community-space-card:hover { border-color: var(--rust); transform: translateY(-2px); }
.community-space-card > span { color: var(--rust-dark); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.community-space-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.community-space-card p { margin: 0 0 10px; color: var(--muted); }
.community-space-card small { color: var(--muted); font-weight: 700; }
.community-space-card > b { color: var(--rust); font-size: 1.4rem; }
.community-space-card--files { color: #eaf4ec; background: var(--forest); border-color: var(--forest); }
.community-space-card--files > span { color: var(--signal-bright); }
.community-space-card--files p, .community-space-card--files small { color: #bfcfc3; }
.community-rail, .topic-rail { display: grid; align-content: start; gap: 16px; }
.community-rail section, .topic-rail section { padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.community-rail h2, .community-rail h3, .topic-rail h2 { margin: 8px 0 12px; }
.community-rail nav { display: grid; margin-top: 18px; }
.community-rail nav a { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.community-rail nav strong { min-width: 1.5rem; text-align: center; color: #fff; background: var(--rust-dark); border-radius: 99px; }
.topic-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.topic-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 19px 21px; color: var(--ink); background: var(--white); }
.topic-row:hover { background: #fbfaf4; }
.topic-row__state { color: var(--rust); font-size: 1.15rem; }
.topic-row__body h3 { margin: 3px 0 7px; font-size: 1.08rem; }
.topic-row__body h3 a { color: var(--ink); text-decoration: none; }
.topic-row__body p, .topic-row__body small { margin: 0; color: var(--muted); }
.topic-row__body p { display: flex; flex-wrap: wrap; gap: 8px; font-size: .7rem; }
.topic-row__body p span { padding: 2px 6px; color: var(--rust-dark); background: #f5e6dc; font-weight: 800; text-transform: uppercase; }
.topic-row dl { display: flex; gap: 20px; margin: 0; text-align: right; }
.topic-row dl div { display: grid; }
.topic-row dt { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.topic-row dd { margin: 0; font-size: 1.05rem; font-weight: 850; }
.community-empty { padding: 28px; background: var(--paper); border: 1px dashed var(--line); }
.community-empty p { margin-bottom: 0; color: var(--muted); }
.community-page-hero { padding: 62px 0; border-top: 1px solid rgba(255,255,255,.08); }
.community-page-hero--compact h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.community-page-hero .back-link, .topic-hero a { color: #d6e8da; }
.community-page-hero > .shell > p:last-of-type { max-width: 690px; color: #c5d3c8; font-size: 1.08rem; }
.community-page-hero--file { box-shadow: inset 7px 0 var(--category-color); }
.community-hero-actions, .topic-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.community-page-hero .button--quiet, .topic-hero .button--quiet { color: #fff; }
.community-status-note { margin-top: 24px; padding: 12px 16px; border-left: 3px solid var(--signal); background: rgba(255,255,255,.08); }
.community-topic-index { max-width: 1080px; }
.community-inline-search { display: flex; }
.community-inline-search input { min-width: 180px; padding: 10px 12px; border: 1px solid var(--line); }
.community-inline-search button { padding: 10px; border: 0; color: #fff; background: var(--forest); }
.topic-hero { padding: 50px 0; }
.topic-hero nav { display: flex; gap: 9px; margin-bottom: 28px; font-size: .76rem; }
.topic-hero .shell > div:nth-child(2) { max-width: 850px; }
.topic-hero h1 { font-size: clamp(2.2rem, 5.5vw, 5rem); }
.topic-layout { align-items: start; }
.post-stream { min-width: 0; }
.community-post { margin-bottom: 18px; background: var(--white); border: 1px solid var(--line); scroll-margin-top: 100px; }
.community-post > header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.community-avatar { display: grid; place-items: center; width: 39px; height: 39px; color: #fff; background: var(--forest); font-weight: 900; }
.community-post > header div:nth-child(2) { display: grid; }
.community-post > header span, .community-post > header a { color: var(--muted); font-size: .7rem; }
.community-post__body { min-height: 90px; padding: 24px 20px; overflow-wrap: anywhere; line-height: 1.7; }
.community-post > footer { display: flex; justify-content: space-between; gap: 20px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.community-post > footer nav { display: flex; gap: 14px; }
.community-post > footer button, .community-post > footer a { padding: 0; border: 0; color: var(--rust-dark); background: none; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.community-post--pending { border-color: #b8860b; }
.community-post--hidden, .community-post--removed { opacity: .72; border-color: var(--rust); }
.quoted-post { display: grid; gap: 3px; margin: 16px 20px 0; padding: 12px 15px; color: var(--muted); background: var(--paper); border-left: 3px solid var(--rust); text-decoration: none; }
.inline-moderation { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; background: #fff2e8; border-top: 1px solid #e7c4a9; }
.inline-moderation label { flex: 1; min-width: 200px; }
.inline-moderation input, .inline-moderation select, .inline-moderation button { padding: 7px; }
.topic-rail dl { margin: 0; }
.topic-rail dl div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-top: 1px solid var(--line); }
.topic-rail dd { margin: 0; font-weight: 800; }
.reply-shell { display: grid; gap: 30px; max-width: 980px; }
.community-composer { min-width: 0; }
.community-composer textarea { width: 100%; resize: vertical; }
.community-composer__tools { display: flex; justify-content: flex-end; margin-top: -10px; }
.community-composer__tools button { padding: 8px 0; border: 0; color: var(--rust-dark); background: none; font-size: .73rem; font-weight: 800; cursor: pointer; }
.community-composer__preview { margin: -5px 0 20px; padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); border: 1px solid var(--line); line-height: 1.65; }
.community-form-layout { display: grid; gap: 32px; max-width: 980px; }
.community-form-layout > aside { padding: 22px; background: var(--paper); border-top: 4px solid var(--rust); }
.community-form-layout > aside ul { padding-left: 18px; }
.community-form-layout .stack-form { padding: 24px; background: var(--white); border: 1px solid var(--line); }
.community-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.community-pagination a, .community-pagination span { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 6px; border: 1px solid var(--line); text-decoration: none; }
.notification-list { display: grid; gap: 4px; max-width: 900px; }
.notification-list > a { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; padding: 18px; color: var(--ink); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.notification-list > a.is-unread { border-left: 5px solid var(--rust); }
.notification-list small, .notification-list span { color: var(--muted); }
.moderation-panel, .moderation-workspace { max-width: 1080px; }
.moderation-panel form, .moderation-restriction-form { display: grid; gap: 14px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.moderation-panel label, .moderation-restriction-form label { display: grid; gap: 6px; }
.moderation-workspace { display: grid; gap: 42px; }
.moderation-workspace article { display: grid; gap: 15px; padding: 18px; background: var(--white); border: 1px solid var(--line); }
.moderation-workspace article div { display: grid; gap: 5px; }
.moderation-workspace article span { color: var(--muted); font-size: .75rem; }
.moderation-workspace article p { margin: 3px 0; }
.moderation-workspace article form { display: flex; flex-wrap: wrap; gap: 7px; }
.moderation-workspace article form input { flex: 1; min-width: 190px; padding: 9px; }
.moderation-workspace article form button { padding: 9px 12px; }
.moderation-audit { display: grid; gap: 8px; padding: 0; list-style: none; }
.file-community-panel { padding: 36px; color: #eef6f0; background: var(--forest-deep); }
.file-community-panel .file-section__label, .file-community-panel .section-heading p, .file-community-panel .section-heading > div > p:last-child { color: #b8c8bc; }
.file-community-panel .text-link { color: var(--signal-bright); }
.file-community-topics { display: grid; gap: 1px; margin: 24px 0; background: rgba(255,255,255,.15); }
.file-community-topics a { display: grid; gap: 5px; padding: 16px; color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.file-community-topics a:hover { background: rgba(255,255,255,.12); }
.file-community-topics span, .file-community-topics small { color: #b9cabd; }
.file-community-panel .community-empty { margin: 24px 0; color: var(--ink); }
.file-forum-grid { display: grid; gap: 13px; }
.file-forum-grid > a { position: relative; display: grid; gap: 7px; padding: 23px; overflow: hidden; color: var(--ink); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.file-forum-grid > a > i { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--category-color); }
.file-forum-grid > a > span { color: var(--rust-dark); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.file-forum-grid h2, .file-forum-grid p { margin: 0; }
.file-forum-grid p, .file-forum-grid small { color: var(--muted); }

@media (min-width: 760px) {
  .community-form-layout { grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr); }
  .reply-shell { grid-template-columns: minmax(190px, .5fr) minmax(0, 1fr); }
  .moderation-workspace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moderation-workspace article { grid-template-columns: minmax(0, 1fr) auto; }
  .file-forum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .community-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .topic-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .topic-rail { position: sticky; top: 100px; }
}
@media (max-width: 759px) {
  .community-hero { padding-top: 55px; }
  .community-search > div { display: grid; }
  .community-space-card { grid-template-columns: 28px 1fr auto; padding: 17px 14px; }
  .community-heading { align-items: start; flex-direction: column; }
  .community-inline-search { width: 100%; }
  .community-inline-search input { flex: 1; min-width: 0; }
  .topic-row { grid-template-columns: 24px minmax(0, 1fr); padding: 16px 13px; }
  .topic-row dl { grid-column: 2; justify-content: start; text-align: left; }
  .community-post > header { grid-template-columns: auto 1fr; }
  .community-post > header > a { grid-column: 2; }
  .community-post > footer { align-items: start; flex-direction: column; }
  .notification-list > a { grid-template-columns: 1fr; gap: 5px; }
  .file-community-panel { padding: 24px 18px; }
}

/* Native Community forum */
.forum-nav { position: relative; z-index: 80; color: #dce9df; background: #0c2d1b; border-bottom: 1px solid rgba(255,255,255,.12); }
.forum-nav__inner { min-height: 54px; display: flex; align-items: stretch; gap: 4px; }
.forum-nav a { color: inherit; text-decoration: none; }
.forum-nav__identity { display: flex; align-items: center; gap: 9px; padding-right: 18px; margin-right: 5px; border-right: 1px solid rgba(255,255,255,.12); }
.forum-nav__identity span { width: 27px; height: 27px; display: grid; place-items: center; color: var(--forest-deep); background: var(--signal-bright); font-size: .59rem; font-weight: 900; letter-spacing: -.04em; }
.forum-nav__identity strong { font-size: .77rem; letter-spacing: .04em; }
.forum-nav__links, .forum-nav__account { display: flex; align-items: stretch; }
.forum-nav__links a, .forum-nav__account a { position: relative; display: flex; align-items: center; padding: 0 12px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.forum-nav__links a:hover, .forum-nav__account a:hover, .forum-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.forum-nav a[aria-current="page"]::after { content: ""; position: absolute; inset: auto 10px 0; height: 3px; background: var(--signal-bright); }
.forum-nav__account { margin-left: auto; }
.forum-nav__account b { min-width: 18px; height: 18px; display: inline-grid; place-items: center; margin-left: 6px; color: var(--forest-deep); background: var(--signal-bright); font-size: .61rem; border-radius: 50%; }
.forum-nav__search { width: 196px; display: flex; align-items: center; align-self: center; height: 34px; margin-left: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }
.forum-nav__search input { width: 100%; min-width: 0; height: 100%; padding: 0 9px; color: #fff; background: transparent; border: 0; font-size: .7rem; }
.forum-nav__search input::placeholder { color: #9ab0a1; }
.forum-nav__search button { width: 35px; height: 100%; display: grid; place-items: center; padding: 0; color: #d6e6da; background: transparent; border: 0; cursor: pointer; }
.forum-nav__search svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.community-masthead { position: relative; overflow: hidden; padding: 34px 0 32px; color: #edf6ef; background: var(--forest-deep); border-bottom: 4px solid var(--signal); }
.community-masthead::after { content: ""; position: absolute; width: 460px; height: 460px; right: -130px; top: -250px; border: 1px solid rgba(168,239,105,.16); border-radius: 50%; box-shadow: 0 0 0 70px rgba(168,239,105,.025), 0 0 0 140px rgba(168,239,105,.018); }
.community-masthead__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: end; }
.community-masthead h1 { max-width: 780px; margin: 0 0 12px; font-size: clamp(2.6rem, 4.15vw, 3.7rem); line-height: .96; }
.community-masthead h1 em { color: var(--signal-bright); }
.community-masthead p:not(.eyebrow) { max-width: 660px; margin-bottom: 0; color: #bfd0c3; font-size: .94rem; }
.community-masthead .eyebrow, .forum-principles .eyebrow { color: var(--signal-bright); }
.community-masthead .eyebrow { margin-bottom: 11px; }
.community-masthead__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.community-masthead .button--primary { color: #092013; background: var(--signal-bright); border-color: var(--signal-bright); }
.community-masthead .button--quiet { color: #fff; border-color: #557060; }
.community-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); }
.community-stats div { min-width: 0; padding: 13px 12px; border-left: 1px solid rgba(255,255,255,.12); }
.community-stats div:first-child { border-left: 0; }
.community-stats dt { color: #9eb2a3; font-size: .61rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.community-stats dd { margin: 3px 0 0; color: #fff; font-size: 1.4rem; font-weight: 650; line-height: 1; }

.forum-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; align-items: start; padding-block: 48px 88px; }
.forum-home-main { min-width: 0; display: grid; gap: 58px; }
.forum-board, .forum-topic-table, .file-forum-table { overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(6,23,14,.045); }
.forum-board__title { display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px 210px; gap: 14px; align-items: end; padding: 15px 18px; color: #e7f0e9; background: var(--forest); }
.forum-board__title h2 { margin: 0; color: #fff; font-size: 1.35rem; letter-spacing: -.025em; }
.forum-board__title .section-number { margin: 0 0 2px; color: var(--signal-bright); font-size: .56rem; }
.forum-board__title > span, .forum-topic-table__head span, .file-forum-table__head span { color: #bed0c2; font-size: .59rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.forum-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 72px 72px 210px; gap: 14px; align-items: center; min-height: 98px; padding: 16px 18px; border-top: 1px solid var(--line); transition: background .15s ease; }
.forum-row:hover { background: #f1f5ed; }
.forum-row__icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--forest); background: var(--paper-2); border: 1px solid var(--line); font-weight: 900; }
.forum-row__icon--announcements { color: #fff; background: var(--rust-dark); border-color: var(--rust-dark); }
.forum-row--files { background: #eef5ea; border-top: 3px solid var(--forest); }
.forum-row--files .forum-row__icon { color: var(--forest-deep); background: var(--signal-bright); border-color: var(--signal-bright); }
.forum-row__about h3 { margin: 0 0 4px; font-size: 1.02rem; }
.forum-row__about h3 a, .forum-row__latest a { text-decoration: none; }
.forum-row__about h3 a:hover, .forum-row__latest a:hover { color: var(--rust-dark); text-decoration: underline; }
.forum-row__about p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.forum-row__about small { color: var(--rust-dark); font-size: .63rem; font-weight: 700; }
.forum-row__count { display: grid; justify-items: center; font-size: 1.05rem; line-height: 1.1; }
.forum-row__count span { color: var(--muted); font-size: .55rem; font-weight: 650; text-transform: uppercase; }
.forum-row__latest { min-width: 0; display: grid; gap: 2px; font-size: .76rem; line-height: 1.25; }
.forum-row__latest a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 720; }
.forum-row__latest small, .forum-row__latest span { color: var(--muted); font-size: .64rem; }
.active-file-forums__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.active-file-forums__grid article { position: relative; padding: 20px 20px 16px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--category-color); }
.active-file-forums__grid article > span { color: var(--rust-dark); font-size: .59rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.active-file-forums__grid h3 { margin: 5px 0; font-size: 1rem; }
.active-file-forums__grid h3 a, .active-file-forums__grid footer a { text-decoration: none; }
.active-file-forums__grid p { margin: 0 0 15px; color: var(--muted); font-size: .72rem; }
.active-file-forums__grid footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); font-size: .65rem; }
.active-file-forums__grid footer a { color: var(--rust-dark); font-weight: 750; }
.forum-home-rail { display: grid; gap: 14px; }
.forum-home-rail > section { padding: 22px; background: var(--white); border: 1px solid var(--line); }
.forum-home-rail .eyebrow { margin-bottom: 7px; }
.forum-member-card h2, .forum-join-card h2 { margin: 5px 0 12px; font-size: 1.55rem; }
.community-avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--forest); font-size: .73rem; font-weight: 850; border-radius: 50%; }
.community-avatar--large { width: 53px; height: 53px; margin-bottom: 14px; font-size: 1.05rem; }
.community-avatar--small { width: 29px; height: 29px; font-size: .62rem; }
.community-avatar--post { width: 58px; height: 58px; margin-bottom: 8px; font-size: 1.15rem; }
.role-badge { display: inline-flex; width: fit-content; padding: 3px 7px; color: var(--forest); background: var(--paper-2); font-size: .56rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.forum-member-card nav { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.forum-member-card nav a { display: flex; justify-content: space-between; padding: 10px 0; font-size: .73rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.forum-member-card nav strong { min-width: 19px; display: grid; place-items: center; color: #fff; background: var(--rust-dark); border-radius: 50%; }
.forum-join-card p:not(.eyebrow), .forum-principles { color: var(--muted); font-size: .78rem; }
.forum-join-card .button { width: 100%; margin: 8px 0 11px; }
.forum-join-card > a:last-child { color: var(--rust-dark); font-size: .7rem; font-weight: 750; }
.forum-principles { color: #d8e6da !important; background: var(--forest-deep) !important; border-color: var(--forest-deep) !important; }
.forum-principles h3 { color: #fff; }
.forum-principles ol { display: grid; gap: 12px; padding: 0; list-style: none; }
.forum-principles li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; line-height: 1.4; }
.forum-principles li span { color: var(--signal-bright); font-size: .58rem; font-weight: 800; }
.forum-principles .text-link { color: var(--signal-bright); }

.forum-topic-table__head { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px 200px; gap: 14px; padding: 10px 17px 10px 75px; background: var(--forest); }
.forum-topic { display: grid; grid-template-columns: 42px minmax(0, 1fr) 70px 70px 200px; gap: 14px; align-items: center; min-height: 86px; padding: 14px 17px; border-top: 1px solid var(--line); }
.forum-topic:first-of-type { border-top: 0; }
.forum-topic:hover { background: #f1f5ed; }
.forum-topic.has-unread { box-shadow: inset 4px 0 var(--signal); }
.forum-topic__signal span:first-child { width: 31px; height: 31px; display: grid; place-items: center; color: #6d8977; background: var(--paper); font-size: .65rem; border-radius: 50%; }
.forum-topic.has-unread .forum-topic__signal span:first-child { color: var(--forest-deep); background: var(--signal-bright); }
.forum-topic__labels { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 3px; }
.forum-topic__labels a, .forum-topic__labels span { padding: 2px 5px; color: var(--rust-dark); background: #e5eee1; font-size: .52rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.forum-topic__labels .forum-topic__unread { color: #fff; background: var(--rust-dark); }
.forum-topic__about h3 { margin: 0 0 2px; font-size: .97rem; line-height: 1.25; letter-spacing: -.015em; }
.forum-topic__about h3 a { text-decoration: none; }
.forum-topic__about h3 a:hover { color: var(--rust-dark); text-decoration: underline; }
.forum-topic__about small { color: var(--muted); font-size: .62rem; }
.forum-topic__metric { display: grid; justify-items: center; font-size: .9rem; line-height: 1.1; }
.forum-topic__metric span { color: var(--muted); font-size: .51rem; text-transform: uppercase; }
.forum-topic__latest { min-width: 0; display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 8px; align-items: center; }
.forum-topic__latest > div:last-child { min-width: 0; display: grid; }
.forum-topic__latest a { overflow: hidden; color: var(--ink); font-size: .67rem; font-weight: 720; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.forum-topic__latest small, .forum-topic__latest > span { color: var(--muted); font-size: .58rem; }
.forum-empty { display: flex; align-items: center; gap: 14px; padding: 27px; background: var(--white); }
.forum-empty > span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper); }
.forum-empty strong, .forum-empty p { display: block; margin: 0; }
.forum-empty p { color: var(--muted); font-size: .75rem; }

.forum-page-head, .forum-topic-head { padding: 27px 0 29px; color: #edf5ef; background: var(--forest-deep); border-bottom: 4px solid var(--forest); }
.forum-page-head--file { box-shadow: inset 6px 0 var(--category-color); }
.forum-page-head--compact { padding-block: 24px; }
.forum-page-head h1, .forum-topic-head h1 { max-width: 900px; margin: 6px 0 10px; color: #fff; font-size: var(--page-title-compact-size); line-height: 1; }
.forum-page-head .eyebrow, .forum-topic-head .eyebrow { color: var(--signal-bright); }
.forum-page-head .eyebrow, .forum-topic-head .eyebrow { margin-bottom: 8px; }
.forum-page-head > .shell > p:not(.eyebrow), .forum-page-head__grid > div > p:not(.eyebrow), .forum-page-head__actions > div > p:not(.eyebrow) { max-width: 750px; margin: 0; color: #b9cbbd; }
.forum-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; color: #a9bdad; font-size: .67rem; font-weight: 650; }
.forum-breadcrumb a { color: #dbe8de; text-decoration: none; }
.forum-breadcrumb a:hover { color: var(--signal-bright); }
.forum-page-head__grid, .forum-topic-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.forum-page-head__grid dl, .forum-topic-head__grid dl, .moderation-summary { display: flex; margin: 0; border: 1px solid rgba(255,255,255,.15); }
.forum-page-head__grid dl div, .forum-topic-head__grid dl div, .moderation-summary div { min-width: 88px; padding: 10px 14px; border-left: 1px solid rgba(255,255,255,.15); }
.forum-page-head__grid dl div:first-child, .forum-topic-head__grid dl div:first-child, .moderation-summary div:first-child { border-left: 0; }
.forum-page-head dt, .forum-topic-head dt, .moderation-summary dt { color: #94ac9b; font-size: .55rem; font-weight: 800; text-transform: uppercase; }
.forum-page-head dd, .forum-topic-head dd, .moderation-summary dd { margin: 0; color: #fff; font-size: 1.18rem; font-weight: 700; }
.forum-file-context { display: flex; flex-wrap: wrap; gap: 7px 15px; align-items: center; margin-top: 11px; font-size: .68rem; }
.forum-file-context span { padding: 3px 7px; color: var(--forest-deep); background: #e7eee3; border-left: 4px solid var(--category-color); font-weight: 800; }
.forum-file-context small { color: #afc1b3; }
.forum-page-head__actions { display: flex; justify-content: space-between; gap: 35px; align-items: end; }
.forum-page-head__actions form { flex: 0 0 auto; }
.forum-page-head .button--quiet { color: #fff; border-color: #63796a; }
.forum-index-layout, .topic-layout--forum { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; align-items: start; padding-block: 46px 90px; }
.forum-index-main { min-width: 0; }
.forum-toolbar, .topic-action-bar .shell { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.forum-toolbar { margin-bottom: 33px; padding: 10px; background: var(--paper); border: 1px solid var(--line); }
.forum-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.forum-sort { display: flex; align-items: center; gap: 3px; font-size: .65rem; }
.forum-sort span { margin-right: 3px; color: var(--muted); text-transform: uppercase; }
.forum-sort a { padding: 6px 8px; text-decoration: none; }
.forum-sort a[aria-current="page"] { color: #fff; background: var(--forest); }
.forum-index-rail { display: grid; gap: 12px; }
.forum-index-rail section, .topic-rail section { padding: 20px; background: var(--white); border: 1px solid var(--line); }
.forum-index-rail h3, .topic-rail h2 { font-size: 1.18rem; }
.forum-index-rail p, .forum-index-rail li, .topic-rail p, .topic-rail a { color: var(--muted); font-size: .73rem; }
.forum-index-rail ul { padding-left: 17px; }

.file-forum-search { max-width: 760px; margin-top: 17px; }
.file-forum-search label { display: block; margin-bottom: 5px; color: #d7e6da; font-size: .67rem; font-weight: 750; }
.file-forum-search > div { display: flex; }
.file-forum-search input { min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid #63796a; border-right: 0; }
.file-forum-directory, .notification-center { padding-block: 48px 90px; }
.file-forum-table__head { display: grid; grid-template-columns: minmax(0, 1fr) 80px 80px 180px; gap: 14px; padding: 10px 16px 10px 25px; background: var(--forest); }
.file-forum-table article { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 80px 80px 180px; gap: 14px; align-items: center; min-height: 90px; padding: 15px 16px 15px 25px; border-top: 1px solid var(--line); }
.file-forum-table article > i { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--category-color); }
.file-forum-table article h3 { margin: 2px 0; font-size: .97rem; }
.file-forum-table article h3 a { text-decoration: none; }
.file-forum-table article p, .file-forum-table article > div > span { margin: 0; color: var(--muted); font-size: .65rem; }
.file-forum-table article > div:first-of-type > span { color: var(--rust-dark); font-size: .55rem; font-weight: 800; text-transform: uppercase; }
.file-forum-table article > strong { display: grid; justify-items: center; }
.file-forum-table article > strong small { color: var(--muted); font-size: .52rem; text-transform: uppercase; }
.file-forum-table article > div:last-child { display: grid; font-size: .65rem; }
.file-forum-table article > div:last-child a { color: var(--rust-dark); font-weight: 750; text-decoration: none; }

.forum-topic-head { padding-block: 25px; }
.forum-topic-head__labels { display: flex; gap: 5px; }
.forum-topic-head__labels span { padding: 3px 6px; color: var(--forest-deep); background: var(--signal-bright); font-size: .54rem; font-weight: 850; text-transform: uppercase; }
.forum-topic-head__grid p { margin: 0; color: #aebfb2; font-size: .72rem; }
.forum-topic-head__grid p a { color: #e7f0e9; }
.topic-action-bar { min-height: 48px; color: #dce8df; background: var(--forest); border-bottom: 1px solid var(--line-dark); }
.topic-action-bar .shell { min-height: 48px; }
.topic-action-bar a, .topic-action-bar button { padding: 8px 10px; color: inherit; background: transparent; border: 0; font-size: .68rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.topic-action-bar .shell > div { display: flex; align-items: stretch; gap: 2px; }
.topic-action-bar form { display: contents; }
.topic-action-bar .topic-action-bar__reply { color: var(--forest-deep); background: var(--signal-bright); }
.post-stream { min-width: 0; display: grid; gap: 13px; }
.forum-post { display: grid; grid-template-columns: 154px minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); scroll-margin-top: 16px; }
.forum-post.is-opening { border-top: 4px solid var(--forest); }
.forum-post--pending { border-color: var(--warning); }
.forum-post__author { display: flex; flex-direction: column; align-items: center; padding: 23px 14px; text-align: center; background: #e5ede1; border-right: 1px solid var(--line); }
.forum-post__author > strong { max-width: 100%; overflow-wrap: anywhere; font-size: .79rem; }
.forum-post__author > b { margin-top: 7px; padding: 2px 5px; color: #fff; background: var(--rust-dark); font-size: .49rem; text-transform: uppercase; }
.forum-post__author small { margin-top: 12px; color: var(--muted); font-size: .58rem; line-height: 1.4; }
.forum-post__content { min-width: 0; display: flex; flex-direction: column; }
.forum-post__content > header { display: flex; justify-content: space-between; gap: 12px; padding: 10px 15px; background: #f0f4ed; border-bottom: 1px solid var(--line); font-size: .59rem; }
.forum-post__content > header span { color: var(--muted); font-weight: 750; text-transform: uppercase; }
.forum-post__content > header b { margin-left: 6px; color: var(--danger); }
.forum-post__content > header a { color: var(--muted); text-decoration: none; }
.community-post__body { min-height: 150px; padding: 25px 27px; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.72; }
.quoted-post { display: grid; gap: 2px; margin: 20px 27px 0; padding: 12px 15px; color: var(--muted); background: var(--paper); border-left: 3px solid var(--sage); text-decoration: none; font-size: .7rem; }
.quoted-post strong { color: var(--ink); }
.forum-post__content > footer { display: flex; justify-content: space-between; gap: 15px; align-items: center; min-height: 43px; padding: 7px 14px; color: var(--muted); background: #f5f7f2; border-top: 1px solid var(--line); font-size: .58rem; }
.forum-post__content > footer nav { display: flex; }
.forum-post__content > footer a, .forum-post__content > footer button { padding: 5px 8px; color: var(--rust-dark); background: transparent; border: 0; font-size: .62rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.inline-moderation { margin: 0 14px 14px; padding: 9px 11px; background: #f5eee6; border: 1px solid #dec6ab; font-size: .66rem; }
.inline-moderation summary { cursor: pointer; font-weight: 750; }
.inline-moderation form { display: grid; grid-template-columns: 130px minmax(180px, 1fr) auto; gap: 8px; margin-top: 10px; }
.inline-moderation label { display: grid; gap: 3px; }
.inline-moderation input, .inline-moderation select, .inline-moderation button { min-height: 36px; }
.forum-reply { margin-top: 17px; padding: 22px; background: #e4ece0; border: 1px solid var(--line); border-top: 4px solid var(--forest); }
.forum-reply > header { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.forum-reply h2 { margin: 0; font-size: 1.45rem; }
.forum-reply p { margin: 0; color: var(--muted); font-size: .7rem; }
.forum-reply .eyebrow { color: var(--rust-dark); }
.forum-reply__actions { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.forum-reply__actions small { color: var(--muted); font-size: .63rem; }
.forum-reply__gate { padding: 20px; text-align: center; }
.topic-rail { position: sticky; top: 12px; display: grid; gap: 12px; }
.topic-rail dl { display: grid; gap: 9px; margin: 0; }
.topic-rail dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: .65rem; }
.topic-attached-file { border-top: 4px solid var(--category-color) !important; }

.notification-list { max-width: none; }
.notification-list > a { grid-template-columns: 40px minmax(0, 1fr) 110px 18px; align-items: center; padding: 15px 18px; }
.notification-list__icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--forest); background: var(--paper); font-weight: 850; }
.notification-list > a.is-unread .notification-list__icon { color: #fff; background: var(--rust-dark); }
.notification-list > a > div { min-width: 0; display: grid; }
.notification-list > a > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-list time { color: var(--muted); font-size: .65rem; }

.community-form-layout { max-width: 1000px; padding-block: 48px 90px; }
.community-form-layout > aside { padding: 25px; color: #e5efe7; background: var(--forest-deep); border: 0; }
.community-form-layout > aside .eyebrow { color: var(--signal-bright); }
.community-form-layout > aside h2 { margin: 0 0 20px; font-size: 1.65rem; }
.community-form-layout > aside ol { display: grid; gap: 13px; padding: 0; list-style: none; }
.community-form-layout > aside li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; color: #b6c8ba; font-size: .72rem; }
.community-form-layout > aside li span { color: var(--signal-bright); font-size: .58rem; font-weight: 800; }
.community-form-layout .stack-form { padding: 28px; }
.community-form-layout .stack-form > header { display: flex; justify-content: space-between; gap: 12px; margin: -28px -28px 25px; padding: 11px 15px; color: #d9e6dc; background: var(--forest); font-size: .67rem; }
.community-form-layout .field label { font-size: .72rem; font-weight: 750; }
.community-form-layout .field input, .community-form-layout .field textarea { padding: 12px; border: 1px solid #9caf9d; }
.moderation-summary { flex: 0 0 auto; }
.moderation-section > header { display: flex; justify-content: space-between; align-items: end; padding-bottom: 12px; border-bottom: 3px solid var(--forest); }
.moderation-section > header h2 { margin: 0; font-size: 1.65rem; }
.moderation-section > header .section-number { margin-bottom: 4px; }
.moderation-section > header > b { min-width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: var(--forest); }

@media (max-width: 1050px) {
  .forum-nav__search { display: none; }
  .forum-home-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .community-masthead__grid { gap: 34px; }
  .forum-board__title { grid-template-columns: minmax(0, 1fr) 60px 60px 165px; }
  .forum-row { grid-template-columns: 40px minmax(0, 1fr) 60px 60px 165px; }
  .forum-topic-table__head { grid-template-columns: minmax(0, 1fr) 58px 58px 155px; }
  .forum-topic { grid-template-columns: 36px minmax(0, 1fr) 58px 58px 155px; }
}
@media (max-width: 820px) {
  .forum-nav__inner { overflow-x: auto; scrollbar-width: none; }
  .forum-nav__account { margin-left: 0; }
  .forum-nav__identity strong { display: none; }
  .forum-nav__identity { position: sticky; left: 0; z-index: 1; padding: 0 12px; margin-left: -16px; background: #0c2d1b; }
  .community-masthead__grid, .forum-home-layout, .forum-index-layout, .topic-layout--forum { grid-template-columns: 1fr; }
  .community-masthead__grid { gap: 20px; }
  .community-stats { max-width: 430px; }
  .forum-home-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-principles { grid-column: 1 / -1; }
  .forum-board__title { grid-template-columns: minmax(0, 1fr) 58px 58px; }
  .forum-board__title > span:last-child, .forum-row__latest { display: none; }
  .forum-row { grid-template-columns: 40px minmax(0, 1fr) 58px 58px; }
  .forum-topic-table__head { grid-template-columns: minmax(0, 1fr) 55px 140px; padding-left: 67px; }
  .forum-topic-table__head span:nth-child(3) { display: none; }
  .forum-topic { grid-template-columns: 36px minmax(0, 1fr) 55px 140px; }
  .forum-topic__metric:nth-of-type(2) { display: none; }
  .forum-page-head__grid, .forum-topic-head__grid { grid-template-columns: 1fr; gap: 16px; }
  .forum-page-head__grid dl, .forum-topic-head__grid dl { width: fit-content; }
  .topic-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-forum-table__head { grid-template-columns: minmax(0, 1fr) 65px 145px; }
  .file-forum-table__head span:nth-child(3) { display: none; }
  .file-forum-table article { grid-template-columns: minmax(0, 1fr) 65px 145px; }
  .file-forum-table article > strong:nth-of-type(2) { display: none; }
}
@media (max-width: 600px) {
  .forum-nav__links a, .forum-nav__account a { padding-inline: 9px; font-size: .65rem; }
  .forum-nav__account a:first-child { display: none; }
  .community-masthead { padding-block: 27px 25px; }
  .community-masthead h1 { font-size: clamp(2.35rem, 10.8vw, 2.7rem); }
  .community-masthead__actions { gap: 7px; }
  .community-masthead__actions .button { min-height: 43px; padding-inline: 13px 17px; font-size: .66rem; }
  .community-stats div { padding: 10px 9px; }
  .community-stats dd { font-size: 1.2rem; }
  .forum-home-layout { width: 100%; padding-top: 25px; }
  .forum-home-main { gap: 45px; }
  .forum-board, .forum-topic-table { border-left: 0; border-right: 0; }
  .forum-board__title { grid-template-columns: 1fr; padding-inline: 16px; }
  .forum-board__title > span { display: none; }
  .forum-row { grid-template-columns: 35px minmax(0, 1fr); gap: 11px; min-height: 88px; padding: 14px 16px; }
  .forum-row__icon { width: 34px; height: 34px; }
  .forum-row__count { display: none; }
  .active-file-forums, .latest-discussions { width: calc(100% - 32px); margin-inline: auto; }
  .active-file-forums__grid, .forum-home-rail { grid-template-columns: 1fr; }
  .forum-principles { grid-column: auto; }
  .forum-home-rail { width: calc(100% - 32px); margin-inline: auto; }
  .community-heading h2 { font-size: 1.9rem; }
  .forum-topic-table__head { display: none; }
  .forum-topic { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; min-height: 84px; padding: 13px 15px; }
  .forum-topic__signal span:first-child { width: 26px; height: 26px; }
  .forum-topic__metric, .forum-topic__latest { display: none; }
  .forum-page-head, .forum-topic-head { padding-block: 21px 23px; }
  .forum-page-head h1, .forum-topic-head h1 { font-size: 2.05rem; }
  .forum-page-head__grid dl div, .forum-topic-head__grid dl div { display: flex; align-items: baseline; gap: 7px; min-width: 0; padding: 7px 10px; }
  .forum-page-head dd, .forum-topic-head dd { font-size: 1rem; }
  .forum-page-head__actions { align-items: start; flex-direction: column; }
  .forum-toolbar { align-items: stretch; flex-direction: column; }
  .forum-toolbar__actions .button { flex: 1; }
  .forum-sort { overflow-x: auto; }
  .file-forum-search > div { display: grid; gap: 7px; }
  .file-forum-search input { width: 100%; border-right: 1px solid #63796a; }
  .file-forum-directory, .notification-center { width: 100%; }
  .file-forum-directory > .community-heading, .file-forum-directory > .community-pagination { width: calc(100% - 32px); margin-inline: auto; }
  .file-forum-table { border-inline: 0; }
  .file-forum-table__head { display: none; }
  .file-forum-table article { grid-template-columns: minmax(0, 1fr) auto; min-height: 88px; padding-inline: 20px 15px; }
  .file-forum-table article > strong, .file-forum-table article > div:last-child { display: none; }
  .forum-post { grid-template-columns: 1fr; }
  .forum-post__author { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 12px 14px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); }
  .community-avatar--post { grid-row: 1 / 4; width: 42px; height: 42px; margin: 0; font-size: .85rem; }
  .forum-post__author .role-badge { grid-column: 2; }
  .forum-post__author > b { grid-column: 3; grid-row: 1; margin: 0; }
  .forum-post__author small { display: none; }
  .forum-post__content > header { align-items: start; flex-direction: column; gap: 2px; }
  .community-post__body { min-height: 120px; padding: 20px 17px; }
  .quoted-post { margin-inline: 17px; }
  .forum-post__content > footer { align-items: start; flex-direction: column; }
  .inline-moderation form { grid-template-columns: 1fr; }
  .forum-reply { padding: 17px; }
  .forum-reply__actions { align-items: stretch; flex-direction: column; }
  .topic-rail { grid-template-columns: 1fr; }
  .notification-list > a { grid-template-columns: 34px minmax(0, 1fr) 15px; }
  .notification-list time { display: none; }
  .notification-center { padding-inline: 0; }
  .moderation-summary { width: 100%; }
  .moderation-summary div { flex: 1; }
  .community-form-layout { width: 100%; }
  .community-form-layout > aside, .community-form-layout .stack-form { border-inline: 0; }
}

@media (max-width: 699px) {
  /* The map preview remains one tap away through the primary action. Removing
     the duplicate live preview on small screens puts useful archive content in
     the first viewport instead of using the map as visual scaffolding. */
  .hero__grid { padding-block: 31px 34px; }
  .hero__map-frame { display: none; }
  .hero .eyebrow { margin-bottom: 13px; }
  .hero h1 { margin-bottom: 17px; font-size: clamp(3rem, 14.2vw, 3.45rem); }
  .hero .button-row { gap: 7px; }
  .hero .button { min-height: 43px; padding-inline: 13px 17px; gap: 12px; font-size: .66rem; }
  .hero__principles { display: none; }

  .page-hero { padding-block: 30px 32px; }
  .page-hero::after { width: 230px; height: 230px; right: -110px; top: -135px; border-width: 20px; }
  .page-hero .eyebrow { margin-bottom: 11px; }

  .chaos-map-header { gap: 9px; padding-block: 22px 18px; }
  .chaos-map-header .eyebrow { margin-bottom: 8px; }

  .file-hero { padding-block: 13px 26px; }
  .file-hero__top { margin-bottom: 20px; }
  .file-hero__main { gap: 20px; }
  .file-hero h1 { margin-block: 10px 15px; font-size: clamp(2.4rem, 11.6vw, 2.8rem); }
  .file-hero__summary { font-size: 1rem; line-height: 1.48; }
  .file-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-facts div { display: block; min-width: 0; padding: 9px 8px 10px 0; }
  .file-facts div:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line); }
  .file-facts dd { margin-top: 3px; font-size: .82rem; line-height: 1.25; }
  .file-facts small { display: none; }
}

/* Quiet controls keep actions readable without competing with page content. */
.button {
  min-height: 44px;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  clip-path: none;
  font-size: .78rem;
  font-weight: 680;
  letter-spacing: .01em;
  text-transform: none;
}
.button:hover { transform: none; }
.button--quiet { background: transparent; border-color: currentColor; }
.text-link { letter-spacing: 0; text-transform: none; }
.hero__secondary-link { color: #dce8df; font-size: .78rem; font-weight: 650; text-underline-offset: 4px; }
.hero__secondary-link:hover { color: #fff; }
.community-masthead { padding-block: 28px 30px; }

/* Simple navigation system: one global menu and one quiet community tab row. */
.site-header {
  height: 64px;
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: none;
  backdrop-filter: none;
}
.site-header::after { display: none; }
.site-header .brand__logo { height: 27px; }
.nav-toggle {
  width: auto;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: #eef4f0;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
}
.nav-toggle__label { width: auto; height: auto; line-height: 1; background: none; }
.nav-toggle__icon { width: 19px; height: auto; display: grid; gap: 5px; background: none; }
.nav-toggle[aria-expanded="true"] > .nav-toggle__label,
.nav-toggle[aria-expanded="true"] > .nav-toggle__icon { transform: none; }
.nav-toggle__icon i { display: block; width: 19px; height: 1px; background: currentColor; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
.site-nav {
  inset: 64px 0 0;
  padding: 18px max(20px, calc((100vw - var(--shell)) / 2));
  background: var(--forest-deep);
}
.site-nav__primary {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a,
.site-nav summary,
.nav-logout button {
  position: relative;
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #e5eee8;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: transparent;
  cursor: pointer;
}
.site-nav a::after { display: none; }
.site-nav a:hover,
.site-nav summary:hover,
.nav-logout button:hover { color: #fff; }
.site-nav a[aria-current="page"],
.site-nav summary[aria-current="page"] { color: var(--signal-bright); }
.site-nav__account-link { margin-top: 8px; }
.account-menu { color: #e5eee8; }
.account-menu summary { justify-content: space-between; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary span { color: #91a498; transition: transform .15s ease; }
.account-menu[open] summary span { transform: rotate(180deg); }
.account-menu__panel { padding-left: 16px; }
.account-menu__panel a,
.account-menu__panel .nav-logout button { min-height: 46px; color: #becdc3; font-size: .9rem; }
.nav-count { min-width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--forest-deep); background: var(--signal-bright); border-radius: 50%; font-size: .6rem; font-weight: 800; }

.site-footer { padding: 34px 0 22px; }
.site-footer__main { display: flex; flex-direction: column; gap: 24px; }
.brand--footer .brand__logo { height: 27px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.site-footer__nav a,
.site-footer__nav button { color: #bac5c0; font-size: .76rem; text-decoration: none; }
.site-footer__nav a:hover,
.site-footer__nav button:hover { color: #fff; }
.site-footer__base { margin-top: 28px; padding-top: 16px; }

.analytics-consent {
  right: 16px;
  bottom: 16px;
  left: auto;
  width: min(calc(100% - 32px), 430px);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 13px;
  padding: 19px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.analytics-consent strong { font-size: 1.05rem; font-weight: 600; }
.analytics-consent p { font-size: .72rem; line-height: 1.5; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.analytics-consent__actions .button { min-width: 0; min-height: 40px; flex: 1 1 110px; padding: 8px 14px; font-size: .65rem; }
.analytics-consent__actions a { margin-left: 2px; font-size: .7rem; }

.forum-nav { background: #0a2618; border-bottom-color: rgba(255,255,255,.1); }
.forum-nav__inner { min-height: 46px; align-items: stretch; gap: 18px; overflow: visible; }
.forum-nav__links { min-width: 0; display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.forum-nav__links li { display: flex; }
.forum-nav__links a {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: #c4d1c8;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}
.forum-nav__links a:hover,
.forum-nav__links a[aria-current="page"] { color: #fff; background: transparent; }
.forum-nav__links a[aria-current="page"]::after { inset: auto 13px 0; height: 2px; }
.forum-nav__alerts { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #c4d1c8; font-size: .7rem; text-decoration: none; }
.forum-nav__alerts b { min-width: 18px; height: 18px; display: grid; place-items: center; color: var(--forest-deep); background: var(--signal-bright); border-radius: 50%; font-size: .6rem; }

.forum-toolbar { margin-bottom: 26px; padding: 0; background: transparent; border: 0; }
.forum-sort { gap: 8px; color: var(--muted); font-size: .7rem; }
.forum-sort label { white-space: nowrap; }
.forum-sort select { min-height: 40px; padding: 7px 34px 7px 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); font: inherit; }

@media (max-width: 600px) {
  .forum-nav__inner { width: 100%; gap: 0; }
  .forum-nav__links { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .forum-nav__links li { min-width: 0; }
  .forum-nav__links a { width: 100%; justify-content: center; padding-inline: 4px; font-size: .66rem; }
  .forum-nav__links a[aria-current="page"]::after { inset-inline: 10px; }
  .forum-nav__alerts { display: none; }
  .forum-toolbar { gap: 12px; }
  .forum-sort { overflow: visible; }
  .forum-sort select { width: 100%; }
}

@media (min-width: 700px) {
  .site-footer__main { flex-direction: row; align-items: center; justify-content: space-between; }
  .site-footer__base { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1000px) {
  .site-header { height: 68px; }
  .site-nav { inset: 68px 0 0; }
  .file-progress { top: 68px; }
}

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-header .brand__logo { height: 29px; }
  .site-nav { gap: 30px; padding: 0; overflow: visible; }
  .site-nav__primary { flex-direction: row; align-items: center; gap: 28px; }
  .site-nav a,
  .site-nav summary,
  .nav-logout button { width: auto; min-height: 44px; font-size: .77rem; border-bottom: 0; }
  .site-nav a[aria-current="page"]::after,
  .site-nav summary[aria-current="page"]::after { content: ""; position: absolute; display: block; right: 0; bottom: 4px; left: 0; height: 2px; background: var(--signal-bright); }
  .site-nav__account-link { margin-top: 0; }
  .account-menu { position: relative; }
  .account-menu summary { gap: 7px; }
  .account-menu__panel {
    position: absolute;
    z-index: 10;
    top: calc(100% + 7px);
    right: 0;
    width: 180px;
    padding: 8px 14px;
    background: var(--forest-deep);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
  }
  .account-menu__panel a,
  .account-menu__panel .nav-logout button { width: 100%; min-height: 42px; font-size: .76rem; border-bottom: 1px solid rgba(255,255,255,.09); }
  .account-menu__panel > :last-child button,
  .account-menu__panel > a:last-child { border-bottom: 0; }
}

/*
 * Interior pages use compact utility headings. The only immersive hero on the
 * site is the homepage `.hero`; records, tools, account pages, and Community
 * screens should put their working content above the fold.
 */
.page-hero,
.page-hero--dark,
.community-masthead,
.forum-page-head,
.forum-topic-head,
.file-hero {
  color: var(--ink);
  background: var(--paper);
  border-top: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.page-hero,
.page-hero--dark { padding-block: clamp(22px, 3vw, 34px); }
.page-hero::before,
.page-hero::after,
.community-masthead::after,
.file-hero::after { display: none; }
.page-hero .eyebrow,
.page-hero--dark .eyebrow,
.community-masthead .eyebrow,
.forum-page-head .eyebrow,
.forum-topic-head .eyebrow { color: var(--forest); }
.page-hero h1,
.community-masthead h1,
.forum-page-head h1,
.forum-topic-head h1 {
  max-width: 900px;
  margin: 5px 0 9px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.page-hero__inner > p:last-child,
.community-masthead p:not(.eyebrow),
.forum-page-head > .shell > p:not(.eyebrow),
.forum-page-head__grid > div > p:not(.eyebrow),
.forum-page-head__actions > div > p:not(.eyebrow),
.forum-topic-head__grid p {
  max-width: 760px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.5;
}
.community-masthead { padding-block: 24px 26px; }
.community-masthead h1 br { display: none; }
.community-masthead h1 em { color: var(--forest); }
.forum-page-head,
.forum-page-head--compact,
.forum-topic-head { padding-block: 20px 22px; }
.forum-page-head--file { border-left: 5px solid var(--category-color); }
.forum-page-head .back-link,
.forum-page-head .button--quiet,
.forum-topic-head a { color: var(--forest); }
.forum-page-head__grid dl,
.forum-topic-head__grid dl,
.moderation-summary { border-color: var(--line); }
.forum-page-head__grid dl div,
.forum-topic-head__grid dl div,
.moderation-summary div { border-left-color: var(--line); }
.forum-page-head dt,
.forum-topic-head dt,
.moderation-summary dt { color: var(--muted); }
.forum-page-head dd,
.forum-topic-head dd,
.moderation-summary dd { color: var(--ink); }
.forum-topic-head__labels span { color: var(--forest-deep); background: var(--signal-soft); }
.forum-topic-head__grid p a { color: var(--forest); }

.file-hero { padding: 14px 0 24px; border-left: 5px solid var(--category-color); }
.file-hero__top { margin-bottom: 17px; }
.file-hero__main { gap: 20px; }
.file-hero h1 {
  margin: 9px 0 12px;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  line-height: 1;
}
.file-hero__summary { max-width: 850px; font-size: clamp(.98rem, 1.3vw, 1.08rem); }
.chaos-map-header h1,
.account-header h1 { font-size: clamp(2rem, 4vw, 3rem); }

@media (max-width: 600px) {
  .page-hero,
  .page-hero--dark,
  .community-masthead,
  .forum-page-head,
  .forum-page-head--compact,
  .forum-topic-head { padding-block: 18px 20px; }
  .page-hero h1,
  .community-masthead h1,
  .forum-page-head h1,
  .forum-topic-head h1 { font-size: 2rem; }
  .file-hero { padding: 11px 0 20px; }
  .file-hero h1 { font-size: 2.25rem; }
}

@media print {
  .site-header, .site-footer, .forum-nav, .topic-action-bar, .mobile-dock, .analytics-consent, .file-progress, .file-toc, .button, .map-cover-link, .file-revision-bar, .continue-trail { 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; }
}
