@font-face {
  font-family: "Fenumion Display";
  src: url("assets/fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fenumion UI";
  src: url("assets/fonts/Cinzel-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Fenumion Text";
  src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #edf2e9;
  --muted: #9eaea4;
  --faint: #6d7d74;
  --night: #06100d;
  --deep: #091814;
  --panel: #0d201a;
  --panel-2: #112820;
  --line: #284235;
  --line-soft: rgba(101, 139, 112, .22);
  --gold: #d4b46d;
  --gold-bright: #f0d691;
  --green: #55b889;
  --green-bright: #7bd6a7;
  --wine: #a66770;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --serif: "Fenumion Display", Cinzel, Georgia, "Times New Roman", serif;
  --sans: "Fenumion UI", Cinzel, Georgia, serif;
  --text: "Fenumion Text", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 0%, rgba(31, 97, 70, .18), transparent 32rem),
    linear-gradient(120deg, rgba(212, 180, 109, .035) 1px, transparent 1px),
    var(--night);
  background-size: auto, 52px 52px, auto;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

button, input { font: inherit; }
button, input, select, textarea, label, summary, kbd { font-family: var(--sans); }
button { color: inherit; }
a { color: var(--green-bright); }
a:hover { color: var(--gold-bright); }
::selection { background: rgba(212, 180, 109, .28); }
.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: 100; top: .6rem; left: .6rem; padding: .7rem 1rem; background: var(--gold); color: #101710; transform: translateY(-160%); transition: transform .15s; }
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(260px, 680px) auto;
  gap: 1.25rem;
  align-items: center;
  height: 76px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 13, .92);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.52); }
.brand strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 1.05rem/1.2 var(--serif); letter-spacing: .035em; }
.brand small { display: block; margin-top: .15rem; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.search-shell { position: relative; display: flex; align-items: center; max-width: 680px; }
.search-shell svg { position: absolute; left: .9rem; width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-shell input {
  width: 100%;
  height: 44px;
  padding: 0 3.2rem 0 2.7rem;
  color: var(--ink);
  background: #0b1b16;
  border: 1px solid #30483b;
  border-radius: 4px;
  outline: none;
}
.search-shell input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 180, 109, .12); }
.search-shell kbd { position: absolute; right: .7rem; padding: .04rem .42rem; color: var(--faint); background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; font-size: .78rem; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.approved-content-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .85rem;
  color: var(--green-bright);
  border: 1px solid #3f7258;
  border-radius: 3px;
  background: rgba(85, 184, 137, .06);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.approved-content-link span { color: var(--gold); font-size: .9rem; }
.approved-content-link:hover,
.approved-content-link:focus-visible { color: #effff5; border-color: var(--green-bright); background: rgba(85, 184, 137, .14); }
.campaign-tools-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .85rem;
  color: var(--gold-bright);
  border: 1px solid #6c5a34;
  border-radius: 3px;
  background: rgba(212, 180, 109, .06);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.campaign-tools-button span { color: var(--gold); font-size: .7rem; }
.campaign-tools-button:hover,
.campaign-tools-button:focus-visible { color: #fff7df; border-color: var(--gold-bright); background: rgba(212, 180, 109, .14); }
.home-external-actions { display: none; }
.home-view .home-external-actions {
  position: fixed;
  z-index: 50;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.home-view .home-external-actions .approved-content-link,
.home-view .home-external-actions .campaign-tools-button {
  border-radius: 999px;
  background-color: rgba(6, 16, 13, .88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
  backdrop-filter: blur(14px);
}
.index-button, .menu-button, .search-toggle { border: 1px solid var(--line); background: transparent; cursor: pointer; }
.index-button { padding: .65rem .85rem; color: var(--gold-bright); border-color: #6c5a34; border-radius: 3px; white-space: nowrap; }
.index-button:hover { background: rgba(212, 180, 109, .08); }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border-radius: 3px; }
.menu-button span { display: block; height: 1px; margin: 5px 0; background: var(--ink); }
.search-toggle { display: none; width: 42px; height: 42px; padding: 10px; border-radius: 3px; }
.search-toggle svg { width: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; }

.app-shell { display: grid; grid-template-columns: 270px minmax(0, 860px) 220px; justify-content: center; min-height: calc(100vh - 76px); }
.sidebar, .article-rail { position: sticky; top: 76px; max-height: calc(100vh - 76px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sidebar { padding: 2rem 1.5rem 2.5rem; border-right: 1px solid var(--line-soft); }
.article-rail { padding: 2.4rem 1.3rem 2rem; border-left: 1px solid var(--line-soft); }
.eyebrow { margin: 0 0 .65rem; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.featured-link { display: flex; width: 100%; gap: .75rem; align-items: center; padding: .8rem; text-align: left; border: 1px solid #4e654f; border-radius: 4px; background: linear-gradient(135deg, rgba(56, 106, 77, .18), rgba(212, 180, 109, .05)); cursor: pointer; }
.featured-link:hover { border-color: var(--gold); }
.featured-link strong, .featured-link small { display: block; }
.featured-link strong { font: 600 1rem/1.3 var(--serif); }
.featured-link small { color: var(--muted); font-size: .76rem; }
.browse-link { width: 100%; margin-top: .65rem; padding: .7rem .8rem; color: var(--muted); text-align: left; background: rgba(255,255,255,.018); border: 1px solid var(--line); cursor: pointer; }
.browse-link:hover { color: var(--ink); border-color: var(--gold); }
.browse-link span, .browse-link strong { display: block; }
.browse-link span { color: var(--faint); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.browse-link strong { margin-top: .15rem; color: #cbd6cd; font-size: .72rem; font-weight: 600; }
.sigil { color: var(--gold); font-size: 1.4rem; }
.nav-region { margin-top: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-soft); }
.nav-region-link { display: grid; grid-template-columns: 25px 1fr auto; width: 100%; gap: .55rem; align-items: center; padding: .65rem .55rem; color: #e7ece5; text-align: left; background: rgba(255,255,255,.018); border: 1px solid var(--line); cursor: pointer; }
.nav-region-link:hover, .nav-region-link.active { color: var(--gold-bright); border-color: var(--gold); background: rgba(212,180,109,.06); }
.nav-region-link strong { font: 600 .98rem/1.25 var(--serif); }
.nav-region-link > span:last-child { color: var(--faint); }
.nav-region-glyph { color: var(--gold); text-align: center; }
.nav-region-tree { margin-top: .35rem; }
.nav-branch { border-left: 1px solid var(--line); }
.nav-branch + .nav-branch { margin-top: .1rem; }
.nav-branch summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .38rem .35rem .38rem .75rem; color: var(--muted); cursor: pointer; font-size: .78rem; font-weight: 700; letter-spacing: .035em; list-style-position: inside; }
.nav-branch summary:hover { color: var(--ink); }
.nav-branch summary span { min-width: 1.3rem; padding: .05rem .3rem; color: var(--faint); text-align: center; background: rgba(255,255,255,.025); border: 1px solid var(--line-soft); border-radius: 1rem; font-size: .68rem; }
.nav-branch .nav-link { padding-left: 1.45rem; font-size: .82rem; }
.nav-branch .nav-link.nav-child { padding-left: 1.9rem; color: #91a299; }
.nav-branch .nav-link.nav-parent { color: #c8d3ca; font-weight: 700; }
.archive-links { margin-top: 1.2rem; }
.nav-group { margin-top: 1.7rem; }
.nav-group-title { margin: 0 0 .35rem; color: var(--faint); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .5rem; padding: .44rem .25rem .44rem .75rem; color: var(--muted); background: transparent; border: 0; border-left: 1px solid transparent; cursor: pointer; text-align: left; font-size: .88rem; }
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,.025); }
.nav-link.active { color: var(--gold-bright); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(212,180,109,.08), transparent); }
.nav-link span:last-child { color: var(--faint); font-size: .7rem; }
.archive-note { display: flex; gap: .75rem; align-items: center; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .72rem; line-height: 1.35; }
.archive-note small { color: var(--faint); }
.archive-number { color: var(--gold); font: 600 1.6rem/1 var(--serif); }

main { min-width: 0; }
.article-wrap { padding: 2.3rem clamp(1.4rem, 4vw, 4.5rem) 7rem; }
.breadcrumbs { min-height: 1.4rem; margin-bottom: 2rem; color: var(--faint); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs span { color: var(--gold); }
.article-header { position: relative; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.article-kicker { margin: 0 0 .55rem; color: var(--green-bright); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font: 500 clamp(2.45rem, 6vw, 4.7rem)/.98 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.dek { max-width: 720px; margin: 1.2rem 0 0; color: #c5d0c7; font: 1.2rem/1.65 var(--text); }
.article-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.35rem; }
.tag { padding: .28rem .55rem; color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 2px; font-size: .72rem; letter-spacing: .04em; }
.article-hero { margin: 1.35rem 0 0; background: #07110e; border: 1px solid var(--line); }
.article-hero img,
.article-hero video { display: block; width: 100%; max-height: 510px; object-fit: cover; object-position: center; }
.ambient-video { pointer-events: none; user-select: none; }
.ambient-video::-webkit-media-controls,
.ambient-video::-webkit-media-controls-enclosure,
.ambient-video::-webkit-media-controls-panel,
.ambient-video::-webkit-media-controls-play-button,
.ambient-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.article-hero.portrait-hero { background: radial-gradient(circle at 50% 42%, #1a2924 0, #07110e 68%); }
.article-hero.portrait-hero img { width: auto; max-width: 100%; max-height: 680px; margin: 0 auto; object-fit: contain; }
.article-hero.landscape-hero img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.article-hero.map-hero { background: radial-gradient(circle at 50% 38%, rgba(63,87,76,.42), #07110e 74%); }
.article-hero.map-hero img { width: 100%; height: min(76vh, 860px); object-fit: contain; object-position: center; }
.article-hero.medallion-hero { padding: clamp(1.4rem, 4vw, 3.2rem); background: radial-gradient(circle at 50% 44%, rgba(69,100,111,.58), #07110e 66%); }
.article-hero.medallion-hero img { width: min(100%, 430px); height: auto; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 20px 34px rgba(0,0,0,.38)); }
.article-hero.medallion-hero figcaption { margin: clamp(1.4rem, 4vw, 3.2rem) clamp(-3.2rem, -4vw, -1.4rem) clamp(-3.2rem, -4vw, -1.4rem); }
.article-hero figcaption { padding: .6rem .8rem; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: .7rem; letter-spacing: .025em; }
.emoji-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.emoji-card { overflow: hidden; margin: 0; background: linear-gradient(145deg, rgba(23,52,41,.72), rgba(8,23,18,.92)); border: 1px solid var(--line); border-radius: 10px; }
.emoji-art-frame { display: grid; min-height: 250px; padding: 1.25rem; place-items: center; background: radial-gradient(circle, rgba(217,185,95,.11), transparent 64%), #09130f; }
.emoji-art-frame img { display: block; width: auto; height: auto; max-width: 100%; max-height: 220px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,.28)); }
.emoji-card figcaption { padding: .8rem .9rem; border-top: 1px solid var(--line-soft); }
.emoji-card figcaption strong, .emoji-card figcaption span { display: block; }
.emoji-card figcaption strong { color: var(--gold-bright); font: 600 1.05rem/1.25 var(--serif); }
.emoji-card figcaption span { margin-top: .25rem; color: var(--muted); font-size: .74rem; }
.article-map-link { position: relative; display: block; width: 100%; overflow: hidden; padding: 0; color: inherit; background: #040b08; border: 0; cursor: pointer; text-align: left; }
.article-map-link::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, transparent 48%, rgba(3, 8, 6, .86)); opacity: .68; transition: opacity .2s ease; }
.article-map-link img { transition: filter .22s ease, transform .22s ease; }
.article-map-link:hover img, .article-map-link:focus-visible img { filter: saturate(1.08) brightness(1.05); transform: scale(1.012); }
.article-map-link:hover::after, .article-map-link:focus-visible::after { opacity: .92; }
.article-map-link:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.article-map-cta { position: absolute; z-index: 1; right: 1rem; bottom: 1rem; left: 1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; pointer-events: none; }
.article-map-cta small { color: var(--gold-bright); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-map-cta strong { max-width: 70%; color: #fff; font: 600 1rem/1.25 var(--serif); text-align: right; text-shadow: 0 2px 10px #000; }
.source-strip { display: flex; align-items: baseline; gap: .8rem; margin-top: 1rem; padding: .7rem .85rem; color: var(--muted); background: rgba(85,184,137,.045); border: 1px solid var(--line-soft); font-size: .74rem; line-height: 1.45; }
.source-strip span { flex: 0 0 auto; color: var(--green-bright); font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.source-strip p { margin: 0; }
.source-strip a { color: #cadacf; }
.source-ledger { margin-top: .65rem; color: var(--muted); background: rgba(212, 180, 109, .035); border: 1px solid var(--line-soft); }
.source-ledger summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem .85rem; color: #cbd5cc; cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.source-ledger summary::marker { color: var(--gold); }
.source-ledger summary strong { display: grid; width: 1.55rem; height: 1.55rem; place-items: center; color: var(--gold-bright); background: rgba(212, 180, 109, .08); border: 1px solid #6c5a34; border-radius: 50%; font-size: .68rem; }
.source-ledger ul { margin: 0; padding: .1rem 1.1rem .8rem 2rem; border-top: 1px solid var(--line-soft); }
.source-ledger li { margin: .55rem 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.subchannels { margin-top: .8rem; padding: 1rem; background: linear-gradient(145deg, rgba(23,55,42,.5), rgba(8,23,18,.72)); border: 1px solid #395548; }
.subchannels > .eyebrow { margin-bottom: .65rem; }
.subchannels > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.subchannel-card { position: relative; min-height: 104px; padding: .8rem 1.6rem .8rem .8rem; color: inherit; text-align: left; background: rgba(255,255,255,.018); border: 1px solid var(--line); cursor: pointer; }
.subchannel-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.subchannel-card strong, .subchannel-card span { display: block; }
.subchannel-card strong { color: var(--gold-bright); font: 600 1rem/1.25 var(--serif); }
.subchannel-card span { margin-top: .35rem; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.subchannel-card i { position: absolute; top: .72rem; right: .72rem; color: var(--gold); font-style: normal; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 2rem; margin-top: 2.2rem; }
body.atlas-view .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
body.atlas-view .article-body { grid-row: 2; }
body.atlas-view .infobox { display: grid; grid-row: 1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
body.atlas-view .infobox::before, body.atlas-view .infobox-title { grid-column: 1 / -1; }
body.atlas-view .fact { display: block; padding: .6rem .75rem; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
body.atlas-view .fact:first-of-type { border-left: 0; }
body.atlas-view .fact dt { margin-bottom: .22rem; }
.article-body { min-width: 0; }
.article-body > p:first-child { margin-top: 0; color: #dce5dd; font-size: 1.08rem; }
.article-body p { margin: 1rem 0; }
.article-body h2 { margin: 2.6rem 0 .9rem; padding-top: .6rem; color: var(--gold-bright); font: 500 1.65rem/1.2 var(--serif); letter-spacing: -.015em; }
.article-body h3 { margin: 1.7rem 0 .6rem; font: 600 1.12rem/1.35 var(--serif); }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li { margin: .55rem 0; }
.article-body strong { color: #f4f6ef; }
.infobox { align-self: start; padding: 1rem 1.05rem; background: linear-gradient(180deg, rgba(25, 57, 45, .82), rgba(10, 28, 22, .82)); border: 1px solid #395548; box-shadow: var(--shadow); }
.infobox::before { content: ""; display: block; height: 2px; margin: -1rem -1.05rem 1rem; background: linear-gradient(90deg, var(--gold), transparent); }
.infobox-title { margin: 0 0 .8rem; font: 600 1rem/1.25 var(--serif); }
.fact { display: grid; grid-template-columns: 70px 1fr; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line-soft); font-size: .78rem; line-height: 1.4; }
.fact dt { color: var(--faint); }
.fact dd { margin: 0; color: #cbd5cc; }
.callout { margin: 1.5rem 0; padding: 1rem 1.15rem; border-left: 2px solid var(--green); background: rgba(70, 132, 94, .08); }
.callout.gold { border-left-color: var(--gold); background: rgba(212, 180, 109, .07); }
.callout p { margin: 0; }
.archive-dashboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 1.7rem 0 2.2rem; }
.archive-stat { padding: 1rem .8rem; background: linear-gradient(145deg, rgba(36,82,61,.35), rgba(212,180,109,.035)); border: 1px solid var(--line); }
.archive-stat strong { display: block; color: var(--gold-bright); font: 500 1.65rem/1 var(--serif); }
.archive-stat span { display: block; margin-top: .45rem; color: var(--muted); font-size: .7rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; }
.evidence-stack { display: grid; gap: .7rem; margin: 1.2rem 0; }
.evidence-card { display: grid; grid-template-columns: 42px 1fr; gap: .85rem; padding: 1rem; background: rgba(255,255,255,.018); border: 1px solid var(--line-soft); }
.evidence-card > span { color: var(--gold); font: 500 1.05rem/1.3 var(--serif); }
.evidence-card h3 { margin: 0 0 .25rem; color: var(--ink); }
.evidence-card p { margin: 0; color: var(--muted); }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1.2rem 0; }
.directory-grid section { padding: .9rem 1rem; background: rgba(255,255,255,.018); border: 1px solid var(--line-soft); }
.directory-grid h3 { margin: 0 0 .3rem; color: var(--gold-bright); }
.directory-grid p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.world-browser { margin: 1.5rem 0 2.3rem; }
.home-view { background: #111319; }
.home-view .topbar { display: none; }
.home-view .app-shell { grid-template-columns: 78px minmax(0, 1fr); justify-content: stretch; min-height: 100vh; }
.home-view .sidebar { top: 0; z-index: 50; width: 78px; max-height: 100vh; overflow: visible; padding: 1.1rem .55rem; background: rgba(14,17,23,.98); border-right: 1px solid rgba(212,180,109,.14); }
.home-view .sidebar::before { content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 1.3rem; background: #fff url('fenumion-logo.png') center / 152% no-repeat; border: 1px solid var(--gold-bright); border-radius: 50%; box-shadow: 0 0 0 5px rgba(212,180,109,.06); }
.home-view .sidebar-intro, .home-view .nav-region-tree, .home-view .archive-note, .home-view .archive-links { display: none; }
.home-view .nav-region { margin: 0 0 .55rem; padding: 0 0 .55rem; border-color: rgba(255,255,255,.06); }
.home-view .nav-region-link { position: relative; display: grid; width: 58px; height: 58px; grid-template-columns: 1fr; padding: 0; place-items: center; background: transparent; border-color: transparent; }
.home-view .nav-region-link strong, .home-view .nav-region-link > span:last-child { display: none; }
.home-view .nav-region-glyph { font-size: 1.35rem; }
.home-view .nav-region-link::after {
  position: absolute;
  z-index: 80;
  top: 50%;
  left: calc(100% + .7rem);
  width: max-content;
  max-width: 180px;
  padding: .4rem .58rem;
  content: attr(data-label);
  color: #f7f2e7;
  pointer-events: none;
  opacity: 0;
  background: rgba(20, 21, 27, .98);
  border: 1px solid rgba(217, 185, 95, .48);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .36);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .035em;
  transform: translate(-4px, -50%);
  transition: opacity .14s ease, transform .14s ease;
}
.home-view .nav-region-link:hover::after,
.home-view .nav-region-link:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.home-view .article-rail { display: none; }
.home-view .article-wrap { max-width: none; padding: 0; }
.home-view .breadcrumbs, .home-view #article-content > .article-header, .home-view #article-content > .source-strip, .home-view #article-content > .subchannels, .home-view .infobox, .home-view .related { display: none; }
.home-view .lead-grid { display: block; margin: 0; }
.home-view .article-body > p:first-child { font-size: inherit; }
.codex-gateway { min-height: 100vh; padding: 0 0 5rem; background: #15171d; }
.gateway-hero { position: relative; display: grid; min-height: 430px; place-items: center; overflow: hidden; padding: 5rem 2rem 4rem; text-align: center; background: #15171d url('assets/archive/world-map.jpeg') center 39% / cover; border-bottom: 1px solid rgba(212,180,109,.18); }
.gateway-hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at center, rgba(18,20,26,.08) 0 19%, rgba(9,11,16,.57) 70%, #15171d 100%), linear-gradient(rgba(18,20,26,.32), rgba(18,20,26,.8)); pointer-events: none; }
.gateway-banner-video { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.88) contrast(1.05); }
.gateway-hero-inner { position: relative; z-index: 2; width: min(760px, 100%); }
.gateway-sigil { display: grid; width: 104px; height: 104px; margin: 0 auto 1.2rem; overflow: hidden; place-items: center; background: #fff; border: 2px solid var(--gold-bright); border-radius: 50%; box-shadow: 0 14px 42px rgba(0,0,0,.34), 0 0 0 7px rgba(212,180,109,.08); }
.gateway-sigil img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.52); }
.article-body .gateway-overline { margin: 0; color: var(--gold-bright); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.article-body .gateway-hero h2 { margin: .45rem 0 .7rem; padding: 0; color: #fff; font: 500 clamp(3.1rem, 8vw, 6.9rem)/.92 var(--serif); letter-spacing: -.055em; text-shadow: 0 5px 25px rgba(0,0,0,.55); }
.article-body .gateway-hero p:not(.gateway-overline) { max-width: 620px; margin: 0 auto; color: #ddd6c8; font: 1.12rem/1.55 var(--serif); }
.article-body .gateway-overline + p { margin-top: 1.15rem; }
.gateway-search { display: flex; width: min(350px, 100%); min-height: 58px; margin: 1.65rem auto 0; align-items: center; gap: .7rem; padding: 0 1.15rem; color: #15171d; background: #efc45c; border: 1px solid #ffdc82; border-radius: 999px; box-shadow: 0 12px 34px rgba(0,0,0,.34); }
.gateway-search > span:not(.sr-only) { font-size: 1.35rem; }
.gateway-search input { width: 100%; color: #15171d; background: transparent; border: 0; outline: 0; font: 700 1rem/1.2 var(--sans); }
.gateway-search input::placeholder { color: #2c281d; opacity: 1; }
.gateway-search kbd { padding: .08rem .42rem; color: #f9e2a2; background: #655526; border: 0; border-radius: 4px; font-size: .78rem; }
.gateway-categories { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: .65rem; width: min(1220px, calc(100% - 3rem)); margin: -1.8rem auto 0; position: relative; z-index: 2; }
.gateway-tile { position: relative; min-height: 86px; overflow: hidden; padding: .95rem 1rem; color: #fff; text-align: left; background: linear-gradient(90deg, rgba(7,8,11,.92), rgba(7,8,11,.5)), var(--tile-image) center / cover; border: 1px solid #4f4b42; border-radius: 8px; cursor: pointer; }
.gateway-tile:hover, .gateway-tile:focus-visible { border-color: var(--gold); transform: translateY(-2px); outline: none; }
.gateway-tile span, .gateway-tile small { position: relative; z-index: 1; display: block; }
.gateway-tile span { font: 600 1.08rem/1.2 var(--serif); }
.gateway-tile small { margin-top: .28rem; color: #c2beb5; font-size: .7rem; line-height: 1.3; }
.gateway-section-title { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; width: min(1220px, calc(100% - 3rem)); align-items: center; margin: 2.2rem auto 1rem; }
.gateway-section-title span { height: 1px; background: linear-gradient(90deg, transparent, rgba(212,180,109,.26)); }
.gateway-section-title span:last-child { background: linear-gradient(90deg, rgba(212,180,109,.26), transparent); }
.article-body .gateway-section-title h2 { margin: 0; padding: 0; color: #d8c28d; font: 500 1.3rem/1.2 var(--serif); }
.gateway-featured { display: grid; grid-template-columns: 1fr 1fr .95fr; gap: .8rem; width: min(1220px, calc(100% - 3rem)); margin: 0 auto; }
.feature-card { position: relative; min-height: 325px; overflow: hidden; padding: 0; color: #fff; text-align: left; background: #20212b; border: 1px solid #44454f; border-radius: 8px; cursor: pointer; }
.feature-card:hover, .feature-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); outline: none; }
.feature-image { background: linear-gradient(0deg, rgba(8,9,13,.94), transparent 64%), var(--feature-image) center / cover; }
.feature-label { position: absolute; z-index: 2; top: 0; left: 0; padding: .55rem .85rem; color: #18140a; background: #efc45c; border-radius: 0 0 8px 0; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.feature-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 3rem 1.2rem 1.2rem; background: linear-gradient(transparent, rgba(7,8,11,.94)); }
.feature-copy strong, .feature-copy small { display: block; }
.feature-copy strong { font: 600 1.7rem/1.15 var(--serif); }
.feature-copy small { margin-top: .35rem; color: #d2cec5; font-size: .82rem; line-height: 1.45; }
.feature-quote { padding: 4rem 1.5rem 1.35rem; background: radial-gradient(circle at 75% 15%, rgba(212,180,109,.12), transparent 34%), #24242f; }
.feature-quote::after { content: "”"; position: absolute; top: -.6rem; right: 1.1rem; color: rgba(255,255,255,.055); font: 11rem/1 var(--serif); }
.feature-quote blockquote { position: relative; z-index: 1; margin: 1.2rem 0 .8rem; color: #d9c38b; font: italic 1.65rem/1.42 var(--serif); }
.feature-quote cite { display: block; color: var(--gold-bright); font: 600 .9rem/1.4 var(--serif); }
.feature-quote small { position: absolute; right: 1.5rem; bottom: 1.35rem; left: 1.5rem; color: #aaa99f; font-size: .76rem; line-height: 1.4; }
.gateway-index-intro { width: min(760px, calc(100% - 3rem)); margin: 0 auto 1.2rem !important; color: #aaa99f !important; text-align: center; font-size: .92rem !important; }
.home-view .world-browser { width: min(1220px, calc(100% - 3rem)); margin: 0 auto; }
.quote-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 1.2rem 0 2rem; }
.quote-jump { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 2rem; }
.quote-jump button { padding: .5rem .7rem; color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; line-height: 1.2; cursor: pointer; }
.quote-jump button:hover, .quote-jump button:focus-visible { color: var(--ink); border-color: var(--gold); outline: none; }
.quote-card { position: relative; min-height: 150px; padding: 1.05rem 1.15rem 1rem; color: inherit; text-align: left; background: radial-gradient(circle at 88% 12%, rgba(212,180,109,.09), transparent 28%), linear-gradient(145deg, rgba(24,50,39,.72), rgba(9,24,19,.92)); border: 1px solid var(--line); cursor: pointer; }
.quote-card::before { content: "“"; position: absolute; top: -.35rem; right: .75rem; color: rgba(212,180,109,.12); font: 6rem/1 var(--serif); }
.quote-card:hover, .quote-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); outline: none; }
.quote-card blockquote { position: relative; z-index: 1; margin: 0 0 .65rem; color: #eee9dc; font: 500 1.2rem/1.4 var(--serif); }
.quote-card cite { display: block; color: #cbb77d; font-size: .74rem; font-style: normal; line-height: 1.45; }
.browser-toolbar { display: flex; gap: .8rem; align-items: center; justify-content: space-between; padding: .7rem; background: #091914; border: 1px solid #3b5345; }
.browser-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.browser-tab, .sort-direction { color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.browser-tab { display: flex; gap: .45rem; align-items: center; padding: .52rem .72rem; }
.browser-tab span { display: grid; min-width: 1.25rem; height: 1.25rem; place-items: center; color: var(--faint); background: rgba(255,255,255,.035); border-radius: 50%; font-size: .65rem; }
.browser-tab:hover, .browser-tab.active, .sort-direction:hover { color: var(--ink); border-color: var(--gold); }
.browser-tab.active { color: #111a13; background: var(--gold); }
.browser-tab.active span { color: #e9d092; background: #152119; }
.sort-direction { flex: 0 0 auto; padding: .52rem .68rem; font-size: .74rem; }
.sort-direction span { margin-left: .35rem; color: var(--gold); }
.browser-summary { padding: .7rem .2rem; color: var(--faint); font-size: .72rem; letter-spacing: .04em; }
.browser-summary strong { color: var(--gold-bright); }
.browser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.people-gallery-shell { margin: 1.5rem 0 2.4rem; padding: 1.15rem; background: #17181e; border: 1px solid #44454b; border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.people-gallery-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 1.25rem; align-items: end; }
.people-gallery-heading h2 { margin: .18rem 0 .35rem; color: #f1ead8; font: 600 clamp(1.55rem, 3vw, 2.25rem)/1.08 var(--serif); }
.people-gallery-heading p:not(.eyebrow) { max-width: 68ch; margin: 0; color: var(--muted); }
.people-gallery-search { display: grid; gap: .38rem; }
.people-gallery-search span { color: var(--gold); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.people-gallery-search input { width: 100%; min-height: 44px; padding: .7rem .8rem; color: var(--ink); background: #202129; border: 1px solid #4c4d52; border-radius: 7px; outline: none; font: .82rem/1.2 var(--sans); }
.people-gallery-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,180,109,.1); }
.people-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.index-card { display: grid; grid-template-columns: 82px minmax(0, 1fr); min-height: 118px; overflow: hidden; padding: 0; color: inherit; text-align: left; background: linear-gradient(145deg, rgba(21,52,40,.72), rgba(10,27,21,.88)); border: 1px solid var(--line); cursor: pointer; }
.index-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.index-card img,
.index-card video { width: 82px; height: 100%; min-height: 118px; object-fit: cover; }
.index-glyph { display: grid; place-items: center; min-height: 118px; color: var(--gold); background: radial-gradient(circle, rgba(212,180,109,.12), transparent 64%); border-right: 1px solid var(--line-soft); font: 1.5rem/1 var(--serif); }
.index-card-copy { display: block; padding: .85rem .9rem; }
.index-card-copy small, .index-card-copy strong, .index-card-copy > span { display: block; }
.index-card-copy small { margin-bottom: .18rem; color: var(--green-bright); font-size: .63rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.index-card-copy strong { color: #f0f2eb; font: 600 1.05rem/1.25 var(--serif); }
.index-card-copy > span { margin-top: .35rem; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.timeline-view { grid-template-columns: 1fr; }
.timeline-view .index-card { grid-template-columns: 64px minmax(0, 1fr); min-height: 96px; }
.timeline-view .index-glyph { min-height: 96px; }
.timeline-explorer { margin: 1.55rem 0 2.5rem; }
.timeline-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: end; padding: .9rem; background: #081712; border: 1px solid #3b5345; }
.timeline-search-shell { display: grid; gap: .35rem; }
.timeline-search-label { color: var(--gold); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.timeline-search-field { display: flex; align-items: center; gap: .55rem; min-height: 42px; padding: 0 .75rem; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.timeline-search-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,180,109,.08); }
.timeline-search-field > span { color: var(--green-bright); font-size: 1.1rem; }
.timeline-search-field input { width: 100%; padding: .65rem 0; color: var(--ink); background: transparent; border: 0; outline: 0; font: .83rem/1.2 var(--sans); }
.timeline-search-field input::placeholder { color: #708077; }
.timeline-sort { min-height: 42px; padding: .65rem .8rem; color: var(--muted); white-space: nowrap; background: transparent; border: 1px solid var(--line); cursor: pointer; }
.timeline-sort:hover { color: var(--ink); border-color: var(--gold); }
.timeline-sort span { margin-left: .3rem; color: var(--gold); }
.timeline-filter-row { display: flex; gap: .35rem; overflow-x: auto; padding: .65rem 0 .25rem; scrollbar-width: thin; }
.timeline-filter { flex: 0 0 auto; padding: .45rem .65rem; color: var(--faint); background: rgba(255,255,255,.018); border: 1px solid var(--line-soft); cursor: pointer; font-size: .68rem; }
.timeline-filter:hover, .timeline-filter.active { color: #111a13; background: var(--gold); border-color: var(--gold); }
.timeline-results-summary { padding: .55rem .15rem 1rem; color: var(--faint); font-size: .72rem; letter-spacing: .03em; }
.timeline-results-summary strong { color: var(--gold-bright); }
.timeline-era { margin: 0 0 1.55rem; }
.timeline-era-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.article-body .timeline-era-header h3 { margin: 0; color: var(--gold-bright); font: 500 1.25rem/1.25 var(--serif); }
.timeline-era-header span { color: var(--faint); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.event-timeline { position: relative; display: grid; gap: .6rem; padding-left: 1rem; }
.event-timeline::before { content: ""; position: absolute; inset: .5rem auto .5rem 3px; width: 1px; background: linear-gradient(var(--gold), #31483c 12%, #31483c 88%, transparent); }
.event-card { position: relative; display: grid; grid-template-columns: minmax(116px, .28fr) minmax(0, 1fr); gap: 1rem; width: 100%; padding: .9rem 1rem; color: inherit; text-align: left; background: linear-gradient(145deg, rgba(21,52,40,.58), rgba(8,23,18,.9)); border: 1px solid var(--line-soft); cursor: pointer; }
.event-card::before { content: ""; position: absolute; left: -1.22rem; top: 1.25rem; width: 7px; height: 7px; background: var(--gold); border: 2px solid #091813; border-radius: 50%; }
.event-card:hover, .event-card:focus-visible { border-color: var(--gold); transform: translateX(2px); outline: none; }
.event-date { padding-top: .12rem; color: var(--gold); font-size: .72rem; font-weight: 700; line-height: 1.35; }
.event-copy, .event-copy > span, .event-copy > strong { display: block; }
.event-kind { margin-bottom: .18rem; color: var(--green-bright); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.event-kind i { color: var(--faint); font-style: normal; }
.event-copy > strong { color: #f0f2eb; font: 600 1.06rem/1.25 var(--serif); }
.event-summary { margin-top: .32rem; color: var(--muted); font-size: .77rem; line-height: 1.48; }
.event-people { margin-top: .5rem; color: #aebbb1; font-size: .68rem; line-height: 1.4; }
.event-people b { margin-right: .3rem; color: var(--faint); font-size: .59rem; letter-spacing: .08em; text-transform: uppercase; }
.event-tags { display: flex !important; flex-wrap: wrap; gap: .28rem; margin-top: .55rem; }
.event-tags i { padding: .18rem .38rem; color: #b8c6bb; background: rgba(255,255,255,.025); border: 1px solid var(--line-soft); font-size: .58rem; font-style: normal; line-height: 1.2; }
.timeline-empty { display: grid; gap: .35rem; padding: 2.2rem 1rem; color: var(--muted); text-align: center; background: rgba(255,255,255,.016); border: 1px solid var(--line-soft); }
.timeline-empty strong { color: var(--ink); font: 600 1.05rem/1.3 var(--serif); }
.timeline-empty span { font-size: .76rem; }
.atlas-banner { margin: 0 0 2rem; padding: 1rem clamp(1rem, 2vw, 1.7rem) 1.5rem; background: linear-gradient(180deg, rgba(17,19,24,.98), rgba(12,25,19,.97)); border: 1px solid #4b4942; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.atlas-banner-copy { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(300px, 1.28fr); gap: .35rem 2rem; align-items: end; margin: .25rem 0 1rem; }
.atlas-banner-copy .eyebrow { grid-column: 1 / -1; margin: 0; }
.atlas-banner-copy h2 { margin: 0; color: #f2ead8; font: 600 clamp(1.45rem, 3vw, 2.25rem)/1.08 var(--serif); }
.atlas-banner-copy p:last-child { margin: 0; color: #b9b5aa; line-height: 1.55; }
.interactive-atlas { margin: 1.35rem 0 2.5rem; overflow: hidden; background: #17191f; border: 1px solid #4b4942; border-radius: 10px; box-shadow: 0 22px 60px rgba(0,0,0,.24); }
.atlas-banner .interactive-atlas { margin: 0; }
.map-switcher { display: flex; gap: .38rem; overflow-x: auto; padding: .72rem; background: #1e2027; border-bottom: 1px solid #45443e; scrollbar-width: thin; }
.map-switch { display: inline-flex; flex: 0 0 auto; gap: .48rem; align-items: center; min-height: 42px; padding: .55rem .72rem; color: #bbb7ac; background: #181a20; border: 1px solid #484840; border-radius: 6px; cursor: pointer; font-size: .875rem; }
.map-switch span { display: grid; min-width: 1.45rem; height: 1.45rem; place-items: center; color: #d2c7aa; background: #292a30; border: 1px solid #504d43; border-radius: 999px; font-size: .75rem; }
.map-switch:hover, .map-switch:focus-visible { color: #fff; border-color: var(--gold); outline: none; }
.map-switch.active { color: #18160f; background: var(--gold); border-color: var(--gold-bright); }
.map-switch.active span { color: #f5e8c0; background: #363127; border-color: #6b5e3d; }
.map-heading { display: flex; gap: 1.25rem; align-items: flex-end; justify-content: space-between; padding: 1rem 1.1rem; }
.map-heading > div { min-width: 0; }
.map-heading .eyebrow { margin-bottom: .18rem; }
.article-body .map-heading h3 { margin: 0; color: #fff; font: 600 1.45rem/1.2 var(--serif); }
.map-heading p { max-width: 650px; margin: .35rem 0 0; color: #b9b5aa; font-size: .9rem; line-height: 1.5; }
.map-heading a { flex: 0 0 auto; padding: .48rem .65rem; color: var(--gold-bright); border: 1px solid #655b40; border-radius: 5px; text-decoration: none; font-size: .82rem; }
.map-heading a:hover, .map-heading a:focus-visible { color: #17150f; background: var(--gold); outline: none; }
.map-workspace { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid #45443e; border-bottom: 1px solid #45443e; }
.map-frame { display: grid; overflow: visible; padding: clamp(.6rem, 2vw, 1.35rem) clamp(.6rem, 2vw, 1.35rem) clamp(1.15rem, 2.8vw, 2rem); place-items: center; background: #0d0f13; border-bottom: 1px solid #45443e; }
.map-canvas { position: relative; max-width: 100%; overflow: visible; background: #090b0e; outline: 1px solid rgba(221, 194, 112, .32); outline-offset: 3px; box-shadow: 0 18px 52px rgba(0,0,0,.35); }
.map-canvas > img { display: block; width: 100%; height: auto; object-fit: contain; }
.map-pin-layer { position: absolute; inset: 0; }
.map-pin { position: absolute; z-index: 2; left: var(--pin-x); top: var(--pin-y); display: grid; width: 3rem; height: 3rem; padding: 0; place-items: center; color: #16140f; background: transparent; border: 0; cursor: pointer; transform: translate(-50%, -50%); }
.map-pin-number { position: relative; z-index: 2; display: grid; width: 1.9rem; height: 1.9rem; place-items: center; opacity: 0; background: var(--gold); border: 2px solid #fff1c3; border-radius: 50% 50% 50% 12%; box-shadow: 0 3px 12px rgba(0,0,0,.7); font-size: .69rem; font-weight: 800; transform: rotate(-45deg) scale(.72); transition: opacity .14s ease, transform .16s ease, background .16s ease; }
.map-pin-number::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(42,34,16,.35); border-radius: inherit; }
.map-pin-index { position: relative; z-index: 2; transform: rotate(45deg); }
.map-pin-label { position: absolute; z-index: 4; left: 50%; bottom: calc(100% + .65rem); width: max-content; max-width: 220px; padding: .42rem .58rem; color: #fff; pointer-events: none; opacity: 0; background: rgba(19,20,25,.96); border: 1px solid var(--gold); border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.38); font-size: .78rem; font-weight: 700; line-height: 1.25; transform: translate(-50%, 5px); transition: opacity .14s ease, transform .14s ease; }
.map-pin:hover, .map-pin:focus-visible { z-index: 8; outline: none; }
.map-pin:hover .map-pin-label, .map-pin:focus-visible .map-pin-label { opacity: 1; transform: translate(-50%, 0); }
.map-pin:hover .map-pin-number, .map-pin:focus-visible .map-pin-number { opacity: 1; background: #fff0b5; box-shadow: 0 0 0 5px rgba(217,185,95,.28), 0 4px 16px rgba(0,0,0,.72); transform: rotate(-45deg) scale(1.18); }
.map-detail { display: flex; min-height: 0; flex-direction: column; padding: 1.1rem; background: radial-gradient(circle at 100% 0, rgba(217,185,95,.09), transparent 55%), #202129; }
.map-detail-kicker { color: #cfb866; font-size: .75rem; font-weight: 700; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.article-body .map-detail h3 { margin: .4rem 0 0; color: #fff; font: 600 1.38rem/1.2 var(--serif); }
.map-detail p { margin: .7rem 0; color: #c1bdb4; font-size: .9rem; line-height: 1.55; }
.map-detail-source { margin-top: auto; color: #918d83; font-size: .75rem; line-height: 1.4; }
.map-history-link { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: .85rem; padding: .65rem .72rem; color: #17150f; background: var(--gold); border: 1px solid var(--gold-bright); border-radius: 5px; cursor: pointer; font-size: .84rem; font-weight: 800; text-align: left; }
.map-history-link:hover, .map-history-link:focus-visible { background: #f1d88f; outline: 2px solid rgba(240,214,145,.35); outline-offset: 2px; }
.map-layer-link { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: .85rem; padding: .65rem .72rem; color: #f0e3bd; background: #29271f; border: 1px solid #75663e; border-radius: 5px; cursor: pointer; font-size: .84rem; font-weight: 800; text-align: left; }
.map-layer-link + .map-history-link { margin-top: .5rem; }
.map-layer-link:hover, .map-layer-link:focus-visible { color: #fff; background: #343024; border-color: var(--gold-bright); outline: 2px solid rgba(240,214,145,.22); outline-offset: 2px; }
.map-location-list { display: flex; gap: .38rem; overflow-x: auto; padding: .75rem; scrollbar-width: thin; }
.map-location-chip { display: inline-flex; flex: 0 0 auto; gap: .45rem; align-items: center; min-height: 38px; padding: .4rem .62rem .4rem .42rem; color: #bbb7ac; background: #202129; border: 1px solid #49483f; border-radius: 999px; cursor: pointer; font-size: .8rem; }
.map-location-chip > span { display: grid; width: 1.4rem; height: 1.4rem; place-items: center; color: #17150f; background: #bca15f; border-radius: 50%; font-size: .68rem; font-weight: 800; }
.map-location-chip:hover, .map-location-chip:focus-visible, .map-location-chip.active { color: #fff; border-color: var(--gold); outline: none; }
.map-location-chip.active { background: #2a2923; }
.location-explorer { margin: 1.55rem 0 2.5rem; }
.location-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .75rem; align-items: end; padding: .9rem; background: #081712; border: 1px solid #3b5345; }
.location-search-shell { display: grid; gap: .38rem; }
.location-search-label { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.location-search-field { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .78rem; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.location-search-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,180,109,.08); }
.location-search-field > span { color: var(--green-bright); font-size: 1.1rem; }
.location-search-field input { width: 100%; padding: .68rem 0; color: var(--ink); background: transparent; border: 0; outline: 0; font: .88rem/1.2 var(--sans); }
.location-search-field input::placeholder { color: #75877d; }
.location-sort, .location-mapped-toggle { min-height: 44px; padding: .68rem .85rem; color: var(--muted); white-space: nowrap; background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: .86rem; }
.location-sort:hover, .location-mapped-toggle:hover, .location-mapped-toggle:focus-visible { color: var(--ink); border-color: var(--gold); outline: none; }
.location-mapped-toggle.active { color: #17150f; background: var(--gold); border-color: var(--gold-bright); }
.location-mapped-toggle span { margin-right: .3rem; }
.location-sort span { margin-left: .3rem; color: var(--gold); }
.location-filter-row { display: flex; gap: .38rem; overflow-x: auto; padding: .7rem 0 .3rem; scrollbar-width: thin; }
.location-filter { flex: 0 0 auto; padding: .48rem .7rem; color: #a9b7ad; background: rgba(255,255,255,.018); border: 1px solid var(--line-soft); cursor: pointer; font-size: .8rem; }
.location-filter:hover, .location-filter.active { color: #111a13; background: var(--gold); border-color: var(--gold); }
.location-results-summary { padding: .58rem .15rem 1.05rem; color: var(--faint); font-size: .82rem; letter-spacing: .02em; }
.location-results-summary strong { color: var(--gold-bright); }
.location-region { margin: 0 0 1.8rem; }
.location-region-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .72rem; padding-bottom: .48rem; border-bottom: 1px solid var(--line); }
.article-body .location-region-header h3 { margin: 0; color: var(--gold-bright); font: 500 1.3rem/1.25 var(--serif); }
.location-region-header span { color: var(--faint); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.place-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); min-height: 152px; overflow: hidden; padding: 0; color: inherit; text-align: left; background: linear-gradient(145deg, rgba(21,52,40,.62), rgba(8,23,18,.92)); border: 1px solid var(--line-soft); cursor: pointer; }
.place-card:hover, .place-card:focus-visible { border-color: var(--gold); transform: translateY(-1px); outline: none; }
.place-card.region-card { grid-column: 1 / -1; grid-template-columns: minmax(160px, .38fr) minmax(0, 1fr); min-height: 190px; background: linear-gradient(135deg, rgba(31,72,54,.76), rgba(8,23,18,.94)); }
.place-card-image { width: 100%; height: 100%; min-height: 152px; object-fit: cover; border-right: 1px solid var(--line-soft); }
.region-card .place-card-image { min-height: 190px; }
.place-glyph { display: grid; height: 100%; min-height: 152px; place-items: center; color: var(--gold); background: radial-gradient(circle, rgba(212,180,109,.12), transparent 65%); border-right: 1px solid var(--line-soft); font: 1.5rem/1 var(--serif); }
.place-copy { display: flex; min-width: 0; flex-direction: column; padding: .9rem 1rem; }
.place-kicker { color: var(--green-bright); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.place-copy > strong { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: .18rem; color: #f0f2eb; font: 600 1.08rem/1.25 var(--serif); }
.place-map-badge { padding: .16rem .38rem; color: #17150f; background: var(--gold); border-radius: 999px; font: 700 .62rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.place-summary { margin-top: .4rem; color: var(--muted); font-size: .84rem; line-height: 1.48; }
.place-source { align-self: flex-start; margin-top: auto; padding-top: .62rem; color: #c5b27f; font-size: .7rem; line-height: 1.35; }
.place-source::before { content: "Evidence · "; color: var(--faint); }
.location-empty { display: grid; gap: .38rem; padding: 2.2rem 1rem; color: var(--muted); text-align: center; background: rgba(255,255,255,.016); border: 1px solid var(--line-soft); }
.location-empty strong { color: var(--ink); font: 600 1.08rem/1.3 var(--serif); }
.location-empty span { font-size: .84rem; }
.image-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 1.5rem 0; }
.image-gallery figure { overflow: hidden; margin: 0; background: #07110e; border: 1px solid var(--line); }
.image-gallery a { display: block; overflow: hidden; background: #040b08; }
.image-gallery img { display: block; width: 100%; height: 250px; object-fit: cover; transition: transform .25s ease; }
.image-gallery a:hover img { transform: scale(1.018); }
.image-gallery figcaption { padding: .75rem .85rem; }
.image-gallery figcaption strong, .image-gallery figcaption span { display: block; }
.image-gallery figcaption strong { color: var(--gold-bright); font: 600 1rem/1.3 var(--serif); }
.image-gallery figcaption span { margin-top: .2rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.image-gallery .gallery-wide { grid-column: 1 / -1; }
.image-gallery .gallery-wide img { height: auto; max-height: 560px; object-fit: contain; }
.quote { position: relative; margin: 1.8rem 0; padding: 1.25rem 1.35rem 1.25rem 2.5rem; color: #e9ece4; background: #0a1b15; border: 1px solid var(--line); font: 1.08rem/1.65 var(--serif); }
.quote::before { content: "“"; position: absolute; left: .75rem; top: .2rem; color: var(--gold); font-size: 2.7rem; line-height: 1; }
.quote cite { display: block; margin-top: .5rem; color: var(--muted); font: .74rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.timeline { margin: 1.2rem 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 1rem; margin: 0; padding: 0 0 1.2rem 1.1rem; border-left: 1px solid #425b4a; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: .48rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.timeline time { color: var(--gold); font-size: .78rem; font-weight: 700; }
.timeline p { margin: 0; color: #c9d3ca; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related button { padding: .9rem 1rem; text-align: left; color: var(--ink); background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.related button:hover { border-color: var(--gold); }
.related small { display: block; margin-bottom: .15rem; color: var(--faint); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

.article-rail #contents { display: grid; gap: .12rem; }
.toc-link { width: 100%; padding: .35rem 0 .35rem .65rem; color: var(--muted); text-align: left; background: transparent; border: 0; border-left: 1px solid var(--line); cursor: pointer; font-size: .78rem; line-height: 1.35; }
.toc-link:hover, .toc-link:focus-visible { color: var(--ink); border-color: var(--gold); outline: none; }
.rail-card { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.rail-card p:not(.eyebrow) { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.rail-card strong { color: #cfd9d0; }
.key-dot { display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; }
.key-dot.canon { background: var(--green-bright); }
.key-dot.observed { background: #6fb9c7; }
.key-dot.claimed { background: var(--gold); }
.key-dot.interpreted { background: var(--wine); }
.key-dot.governance { background: #9a86c8; }
.key-dot.unresolved { background: var(--faint); }

.search-panel { position: fixed; z-index: 70; top: 68px; left: 50%; width: min(720px, calc(100vw - 2rem)); max-height: min(620px, calc(100vh - 90px)); overflow: auto; transform: translateX(-50%); background: #0a1914; border: 1px solid #526556; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.search-panel-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .78rem; }
.search-panel-head button { color: var(--faint); background: transparent; border: 0; cursor: pointer; }
.search-result { display: block; width: 100%; padding: 1rem 1.1rem; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.search-result:hover, .search-result:focus { background: var(--panel); outline: none; }
.search-result strong { display: block; font: 600 1.08rem/1.3 var(--serif); }
.search-result span { color: var(--muted); font-size: .82rem; }
.search-result small { display: block; margin-bottom: .15rem; color: var(--gold); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.empty-search { padding: 2rem; color: var(--muted); text-align: center; }
.scrim { position: fixed; z-index: 60; inset: 0; background: rgba(0,0,0,.5); }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .article-rail { display: none; }
  .topbar { grid-template-columns: 250px minmax(260px, 1fr) auto; }
  .gateway-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-view .topbar { display: grid; }
  .home-view .app-shell { display: block; min-height: calc(100vh - 68px); }
  .home-view .sidebar { position: fixed; top: 68px; bottom: 0; left: 0; width: min(310px, 88vw); max-height: none; overflow: auto; padding: 2rem 1.5rem 2.5rem; transform: translateX(-105%); }
  .home-view .sidebar::before { display: none; }
  .home-view .sidebar.open { transform: translateX(0); }
  .home-view .sidebar-intro, .home-view .nav-region-tree, .home-view .archive-links { display: block; }
  .home-view .archive-note { display: flex; }
  .home-view .nav-region { margin-top: 1rem; padding-bottom: .9rem; }
  .home-view .nav-region-link { display: grid; width: 100%; height: auto; grid-template-columns: 25px 1fr auto; padding: .65rem .55rem; }
  .home-view .nav-region-link strong, .home-view .nav-region-link > span:last-child { display: block; }
  .home-view .nav-region-link::after { display: none; }
  .gateway-hero { min-height: 400px; padding: 4rem 1.2rem 4.5rem; }
  .gateway-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 2rem); }
  .gateway-featured { grid-template-columns: 1fr; width: calc(100% - 2rem); }
  .gateway-section-title { width: calc(100% - 2rem); }
  .feature-card { min-height: 280px; }
  .quote-gallery { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; height: 68px; padding: 0 .6rem; gap: .45rem; }
  .menu-button, .search-toggle { display: block; }
  .brand small, .topbar-actions, .search-shell kbd { display: none; }
  .home-view .home-external-actions { top: 76px; right: .7rem; }
  .home-view .home-external-actions .approved-content-link,
  .home-view .home-external-actions .campaign-tools-button { padding: .58rem .72rem; font-size: .7rem; }
  .brand { gap: .5rem; }
  .brand strong { font-size: .82rem; }
  .brand-mark { width: 32px; height: 32px; }
  .search-shell { grid-column: 1 / -1; position: fixed; top: 76px; left: 1rem; right: 1rem; z-index: 80; display: none; }
  .search-shell.open { display: flex; }
  .app-shell { display: block; min-height: calc(100vh - 68px); }
  .sidebar { position: fixed; z-index: 75; top: 68px; bottom: 0; left: 0; width: min(310px, 88vw); max-height: none; background: #081611; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .article-wrap { padding: 1.6rem 1.15rem 5rem; }
  .subchannels > div { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: 1fr; }
  .breadcrumbs { margin-bottom: 1.3rem; }
  .lead-grid { grid-template-columns: 1fr; }
  .infobox { grid-row: 1; }
  body.atlas-view .infobox { display: block; }
  body.atlas-view .fact { display: grid; padding: .55rem 0; border-left: 0; }
  h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
  .related { grid-template-columns: 1fr; }
  .search-panel { top: 128px; }
  .timeline li { grid-template-columns: 76px 1fr; gap: .7rem; }
  .source-strip { display: block; }
  .source-strip span { display: block; margin-bottom: .25rem; }
  .archive-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browser-toolbar { display: block; }
  .sort-direction { margin-top: .6rem; }
  .browser-grid, .image-gallery, .emoji-gallery { grid-template-columns: 1fr; }
  .timeline-controls { grid-template-columns: 1fr; }
  .map-heading { display: block; }
  .map-heading a { display: inline-block; margin-top: .75rem; }
  .map-workspace { grid-template-columns: 1fr; }
  .map-frame { padding: .55rem .55rem 1rem; border-right: 0; border-bottom: 1px solid #45443e; }
  .map-detail { min-height: 0; }
  .atlas-banner-copy { grid-template-columns: 1fr; }
  .atlas-banner-copy .eyebrow { grid-column: auto; }
  .map-pin { width: 2.6rem; height: 2.6rem; }
  .map-pin-number { width: 1.65rem; height: 1.65rem; }
  .map-pin-label { max-width: 160px; font-size: .72rem; }
  .location-controls { grid-template-columns: 1fr; }
  .location-sort { justify-self: start; }
  .location-grid { grid-template-columns: 1fr; }
  .place-card.region-card { grid-column: auto; grid-template-columns: 90px minmax(0, 1fr); min-height: 170px; }
  .region-card .place-card-image { min-height: 170px; }
  .timeline-sort { justify-self: start; }
  .event-card { grid-template-columns: 1fr; gap: .35rem; }
  .event-date { padding-top: 0; }
  .image-gallery .gallery-wide { grid-column: auto; }
  .article-hero img,
  .article-hero video { max-height: 380px; }
}

@media (hover: none) {
  .map-pin-number { opacity: 1; transform: rotate(-45deg) scale(1); }
  .map-pin.active .map-pin-number { background: #fff0b5; box-shadow: 0 0 0 4px rgba(217,185,95,.25), 0 4px 16px rgba(0,0,0,.72); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Cover-aligned editorial theme
   Carries the gateway's charcoal, parchment-gold, image-backed navigation,
   and atlas texture through the rest of the Codex. */
:root {
  --ink: #f2f0ea;
  --muted: #b7b4aa;
  --faint: #817f78;
  --night: #121318;
  --deep: #17191f;
  --panel: #1d1f27;
  --panel-2: #252731;
  --line: #45443f;
  --line-soft: rgba(224, 203, 149, .16);
  --gold: #d9b95f;
  --gold-bright: #f3d987;
  --green: #759b7c;
  --green-bright: #b8c8b2;
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

body:not(.home-view) {
  background:
    linear-gradient(rgba(17, 18, 23, .94), rgba(17, 18, 23, .96)),
    url('assets/archive/world-map.jpeg') center 22% / cover fixed;
}

body:not(.home-view) .topbar {
  height: 72px;
  border-bottom-color: rgba(217, 185, 95, .2);
  background: rgba(18, 19, 24, .94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

body:not(.home-view) .brand-mark {
  background: #fff;
  box-shadow: 0 0 0 5px rgba(217, 185, 95, .06);
}

body:not(.home-view) .brand strong { color: #fff; }
body:not(.home-view) .brand small { color: #aaa69b; }

body:not(.home-view) .search-shell input {
  color: #f5f1e7;
  background: #202129;
  border-color: #4b4b4a;
  border-radius: 999px;
}

body:not(.home-view) .search-shell svg { stroke: var(--gold); }
body:not(.home-view) .search-shell kbd { color: #e9d493; background: #5f5129; border-color: #7d6a34; border-radius: 4px; }
body:not(.home-view) .index-button { color: #17181d; background: var(--gold); border-color: var(--gold-bright); border-radius: 999px; font-weight: 700; }
body:not(.home-view) .index-button:hover { color: #111217; background: var(--gold-bright); }
body:not(.home-view) .approved-content-link { border-radius: 999px; }
body:not(.home-view) .campaign-tools-button { border-radius: 999px; }

body:not(.home-view) .app-shell {
  grid-template-columns: 250px minmax(0, 900px) 230px;
  max-width: 1500px;
  margin: 0 auto;
  background: rgba(20, 21, 27, .86);
  border-right: 1px solid rgba(217, 185, 95, .08);
  border-left: 1px solid rgba(217, 185, 95, .08);
  box-shadow: 0 0 90px rgba(0, 0, 0, .3);
}

body:not(.home-view) .sidebar,
body:not(.home-view) .article-rail {
  top: 72px;
  max-height: calc(100vh - 72px);
  background: rgba(18, 19, 24, .72);
}

body:not(.home-view) .sidebar { padding: 1.6rem 1rem 2.5rem; }
body:not(.home-view) .article-rail { padding-top: 2.1rem; }

body:not(.home-view) .featured-link {
  min-height: 76px;
  overflow: hidden;
  border-color: #5c5749;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .96), rgba(8, 9, 12, .54)),
    url('assets/archive/world-map.jpeg') center / cover;
}

body:not(.home-view) .browse-link { border-radius: 7px; background: #202129; border-color: #44454c; }
body:not(.home-view) .nav-region { padding-bottom: 1rem; border-bottom-color: rgba(217, 185, 95, .13); }

body:not(.home-view) .nav-region-link {
  min-height: 64px;
  overflow: hidden;
  border-color: #4a4944;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(8, 9, 12, .94), rgba(8, 9, 12, .48)), var(--nav-image) center / cover;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .15);
}

body:not(.home-view) .nav-region:nth-of-type(1) .nav-region-link { --nav-image: url('assets/archive/mya.jpeg'); }
body:not(.home-view) .nav-region:nth-of-type(2) .nav-region-link { --nav-image: url('assets/archive/abyss.png'); }
body:not(.home-view) .nav-region:nth-of-type(3) .nav-region-link { --nav-image: url('assets/archive/world-map.jpeg'); }
body:not(.home-view) .nav-region-link:hover,
body:not(.home-view) .nav-region-link.active { background: linear-gradient(90deg, rgba(21, 18, 10, .94), rgba(21, 18, 10, .48)), var(--nav-image) center / cover; }
body:not(.home-view) .nav-region-glyph { color: var(--gold-bright); text-shadow: 0 2px 12px #000; }
body:not(.home-view) .nav-region-link strong { color: #fff; text-shadow: 0 2px 12px #000; }
body:not(.home-view) .nav-branch summary span { background: #24252d; border-color: #414147; }
body:not(.home-view) .nav-link.active { background: linear-gradient(90deg, rgba(217,185,95,.12), transparent); }

body:not(.home-view) main {
  background:
    radial-gradient(circle at 78% 5%, rgba(217, 185, 95, .05), transparent 25rem),
    rgba(22, 23, 29, .88);
}

body:not(.home-view) .article-wrap { padding-top: 1.8rem; }
body:not(.home-view) .breadcrumbs { margin-bottom: 1.25rem; color: #827f77; }
body:not(.home-view) .article-header {
  overflow: hidden;
  padding: 2.2rem clamp(1.25rem, 3vw, 2.4rem) 2rem;
  background:
    radial-gradient(circle at 78% 28%, rgba(217, 185, 95, .13), transparent 28%),
    linear-gradient(120deg, rgba(35, 36, 45, .98), rgba(25, 26, 33, .98));
  border: 1px solid #44454d;
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

body:not(.home-view) .article-kicker { color: var(--gold); }
body:not(.home-view) h1 { color: #fff; letter-spacing: -.035em; text-shadow: 0 3px 18px rgba(0,0,0,.38); }
body:not(.home-view) .dek { color: #d2cec3; }
body:not(.home-view) .tag { color: #d0c9b9; background: rgba(0,0,0,.16); border-color: #55534d; border-radius: 999px; }

body:not(.home-view) .article-hero {
  overflow: hidden;
  margin-top: 1rem;
  background: #0e0f13;
  border-color: #575247;
  border-radius: 10px;
  box-shadow: 0 22px 58px rgba(0,0,0,.28);
}

body:not(.home-view) .article-hero figcaption { color: #aaa69d; background: #202129; }
body:not(.home-view) .source-strip,
body:not(.home-view) .source-ledger { background: #1c1d24; border-color: #403f3d; border-radius: 7px; }
body:not(.home-view) .source-strip span { color: var(--gold); }

body:not(.home-view) .subchannels {
  border-color: #4c4941;
  border-radius: 9px;
  background: #1d1e25;
}

body:not(.home-view) .subchannel-card {
  overflow: hidden;
  min-height: 112px;
  border-color: #4a4944;
  border-radius: 7px;
  background:
    linear-gradient(100deg, rgba(9,10,13,.96), rgba(9,10,13,.7)),
    url('assets/archive/world-map.jpeg') center / cover;
}

body:not(.home-view) .subchannel-card strong { color: #fff; }
body:not(.home-view) .subchannel-card span { color: #bab5a9; }
body:not(.home-view) .article-body h2 { color: #e1c577; border-bottom: 1px solid rgba(217,185,95,.2); padding-bottom: .55rem; }
body:not(.home-view) .article-body h3 { color: #f2eee4; }
body:not(.home-view) .article-body > p:first-child { color: #e0ddd5; }

body:not(.home-view) .infobox {
  overflow: hidden;
  padding: 0 1.05rem 1rem;
  background: #202129;
  border-color: #504b3e;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

body:not(.home-view) .infobox::before { height: auto; margin: 0 -1.05rem 1rem; padding: .58rem 1rem; content: "Archive record"; color: #1a1811; background: var(--gold); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body:not(.home-view) .fact { border-top-color: rgba(217,185,95,.14); }
body:not(.home-view) .callout { background: #20232a; border: 1px solid #444750; border-left: 3px solid #829b83; border-radius: 0 7px 7px 0; }
body:not(.home-view) .callout.gold { background: #27251f; border-left-color: var(--gold); }

body:not(.home-view) .archive-stat,
body:not(.home-view) .evidence-card,
body:not(.home-view) .directory-grid section { background: #202129; border-color: #43434a; border-radius: 7px; }

body:not(.home-view) .browser-toolbar,
body:not(.home-view) .timeline-controls,
body:not(.home-view) .location-controls { background: #202129; border-color: #4b4942; border-radius: 8px; }
body:not(.home-view) .browser-tab,
body:not(.home-view) .sort-direction,
body:not(.home-view) .timeline-sort,
body:not(.home-view) .location-sort,
body:not(.home-view) .location-mapped-toggle { border-radius: 6px; }
body:not(.home-view) .browser-tab.active,
body:not(.home-view) .timeline-filter.active,
body:not(.home-view) .location-filter.active { color: #191811; background: var(--gold); }

body:not(.home-view) .index-card {
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 142px;
  background: #202129;
  border-color: #46464d;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
}

body:not(.home-view) .index-card img,
body:not(.home-view) .index-card video { width: 112px; min-height: 142px; }
body:not(.home-view) .index-glyph { min-height: 142px; background: radial-gradient(circle, rgba(217,185,95,.14), transparent 62%), #1a1b21; }
body:not(.home-view) .index-card-copy small,
body:not(.home-view) .event-kind,
body:not(.home-view) .place-kicker { color: #cfb866; }

body:not(.home-view) .event-card,
body:not(.home-view) .place-card { background: #202129; border-color: #45454c; border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.12); }
body:not(.home-view) .place-card.region-card { background: linear-gradient(110deg, #242630, #1c1d24); }
body:not(.home-view) .event-card::before { border-color: #17181d; box-shadow: 0 0 0 3px rgba(217,185,95,.09); }
body:not(.home-view) .event-timeline::before { background: linear-gradient(var(--gold), #49463d 12%, #49463d 88%, transparent); }
body:not(.home-view) .event-tags i { color: #c6c0b3; background: #282932; border-color: #47464a; border-radius: 999px; }
body:not(.home-view) .place-card-image { border-right-color: rgba(217,185,95,.18); }
body:not(.home-view) .place-glyph { background: radial-gradient(circle, rgba(217,185,95,.14), transparent 65%), #1a1b21; }

body:not(.home-view) .quote,
body:not(.home-view) .quote-card {
  overflow: hidden;
  color: #e9dfc2;
  background: radial-gradient(circle at 82% 12%, rgba(217,185,95,.1), transparent 30%), #252631;
  border-color: #4b4a53;
  border-radius: 8px;
}
body:not(.home-view) .quote::before { color: rgba(217,185,95,.26); font-size: 4.5rem; top: -.35rem; }
body:not(.home-view) .quote-card::before { color: rgba(255,255,255,.06); font-size: 8rem; }
body:not(.home-view) .quote-card blockquote { color: #dccb98; font-style: italic; }
body:not(.home-view) .quote-card cite { color: var(--gold-bright); }

body:not(.home-view) .image-gallery figure,
body:not(.home-view) .related button { overflow: hidden; background: #202129; border-color: #45454c; border-radius: 8px; }
body:not(.home-view) .related button { background: linear-gradient(110deg, #242630, #1c1d24); }
body:not(.home-view) .toc-link { border-left-color: #46443e; }
body:not(.home-view) .rail-card { border-top-color: rgba(217,185,95,.15); }

body:not(.home-view) .search-panel { top: 80px; overflow: hidden auto; background: #202129; border-color: #5b5649; border-radius: 10px; }
body:not(.home-view) .search-result:hover,
body:not(.home-view) .search-result:focus { background: #292a33; }
body:not(.home-view) mark { color: #18160f; background: var(--gold-bright); }

@media (max-width: 1100px) {
  body:not(.home-view) .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body:not(.home-view) .topbar { height: 68px; }
  body:not(.home-view) .sidebar { top: 68px; max-height: none; background: #17181e; }
  body:not(.home-view) .article-header { padding: 1.5rem 1.1rem 1.4rem; }
  body:not(.home-view) .article-wrap { padding-top: 1.1rem; }
  body:not(.home-view) .index-card { grid-template-columns: 88px minmax(0, 1fr); min-height: 126px; }
  body:not(.home-view) .index-card img,
  body:not(.home-view) .index-card video { width: 88px; min-height: 126px; }
  body:not(.home-view) .index-glyph { min-height: 126px; }
  body:not(.home-view) .search-panel { top: 128px; }
  .people-gallery-shell { padding: .85rem; }
  .people-gallery-heading { grid-template-columns: 1fr; align-items: stretch; }
  .people-gallery { grid-template-columns: 1fr; }
}

/* Gateway pages
   Atlas, history, people, quotes, and archive guides use the same immersive
   shell as the World Index while preserving their full evidence tools. */
body.hub-view { background: #111319; }
body.hub-view .topbar { display: none; }
body.hub-view .app-shell {
  grid-template-columns: 78px minmax(0, 1fr);
  justify-content: stretch;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  background: #15171d;
  border: 0;
  box-shadow: none;
}
body.hub-view .sidebar {
  top: 0;
  z-index: 50;
  width: 78px;
  max-height: 100vh;
  padding: 1.1rem .55rem;
  background: rgba(14,17,23,.98);
  border-right: 1px solid rgba(212,180,109,.14);
}
body.hub-view .sidebar::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 1.3rem;
  background: #fff url('fenumion-logo.png') center / 152% no-repeat;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(212,180,109,.06);
}
body.hub-view .sidebar-intro,
body.hub-view .nav-region-tree,
body.hub-view .archive-note,
body.hub-view .archive-links { display: none; }
body.hub-view .nav-region { margin: 0 0 .55rem; padding: 0 0 .55rem; border-color: rgba(255,255,255,.06); }
body.hub-view .nav-region-link {
  display: grid;
  width: 58px;
  height: 58px;
  min-height: 0;
  grid-template-columns: 1fr;
  padding: 0;
  place-items: center;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
}
body.hub-view .nav-region-link:hover,
body.hub-view .nav-region-link.active { background: rgba(217,185,95,.08); }
body.hub-view .nav-region-link strong,
body.hub-view .nav-region-link > span:last-child { display: none; }
body.hub-view .nav-region-glyph { font-size: 1.35rem; }
body.hub-view .article-rail { display: none; }
body.hub-view main { background: #15171d; }
body.hub-view .article-wrap { max-width: none; padding: 0 0 5rem; }
body.hub-view .breadcrumbs { display: none; }
body.hub-view .article-header {
  display: grid;
  min-height: 390px;
  padding: 5rem max(1.5rem, 5vw) 6rem;
  place-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(11,12,16,.42), rgba(11,12,16,.7) 54%, #15171d),
    linear-gradient(90deg, rgba(10,11,15,.68), transparent 32%, transparent 68%, rgba(10,11,15,.68)),
    var(--hub-image) center 42% / cover;
  border: 0;
  border-bottom: 1px solid rgba(217,185,95,.2);
  border-radius: 0;
  box-shadow: inset 0 -60px 90px rgba(0,0,0,.18);
}
body.hub-view .article-kicker { margin-bottom: .8rem; color: var(--gold-bright); text-shadow: 0 2px 12px #000; }
body.hub-view .article-header h1 {
  max-width: 1050px;
  margin: 0 auto;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: .93;
  text-shadow: 0 5px 28px rgba(0,0,0,.72);
}
body.hub-view .article-header .dek {
  max-width: 720px;
  margin: 1.25rem auto 0;
  color: #e3ded3;
  font-size: 1.15rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.85);
}
body.hub-view .article-meta { justify-content: center; margin-top: 1.5rem; }
body.hub-view .article-header .tag {
  color: #eee7d8;
  background: rgba(12,13,17,.66);
  border-color: rgba(232,207,139,.42);
  backdrop-filter: blur(8px);
}
.hub-switcher {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: .65rem;
  width: min(1220px, calc(100% - 3rem));
  margin: -2.7rem auto 2.4rem;
}
.hub-switcher .gateway-tile { min-height: 92px; box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.hub-switcher .gateway-tile.active {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px rgba(217,185,95,.14), 0 14px 32px rgba(0,0,0,.35);
}
.hub-switcher .gateway-tile.active::after {
  position: absolute;
  right: .75rem;
  bottom: .6rem;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(217,185,95,.16);
}
body.hub-view .atlas-banner,
body.hub-view .source-strip,
body.hub-view .source-ledger,
body.hub-view .subchannels,
body.hub-view .lead-grid {
  width: min(1220px, calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}
body.hub-view .atlas-banner { margin-bottom: 2rem; }
body.hub-view .source-strip { margin-top: 0; }
body.hub-view .source-ledger { margin-top: .65rem; }
body.hub-view .subchannels { margin-top: .8rem; }
body.hub-view .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
body.hub-view .article-body { grid-row: 2; }
body.hub-view .infobox {
  display: grid;
  grid-row: 1;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0;
  padding-bottom: .9rem;
}
body.hub-view .infobox::before,
body.hub-view .infobox-title { grid-column: 1 / -1; }
body.hub-view .fact {
  display: block;
  padding: .65rem .8rem;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
body.hub-view .fact:first-of-type { border-left: 0; }
body.hub-view .fact dt { margin-bottom: .22rem; }
body.hub-view .article-body > p:first-child { max-width: 900px; font-size: 1.12rem; line-height: 1.75; }
body.hub-view .article-body > h2 { margin-top: 3.1rem; }

@media (max-width: 1100px) {
  .hub-switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.hub-view .topbar { display: grid; }
  body.hub-view .app-shell { display: block; min-height: calc(100vh - 68px); }
  body.hub-view .sidebar {
    position: fixed;
    top: 68px;
    bottom: 0;
    left: 0;
    width: min(310px, 88vw);
    max-height: none;
    padding: 2rem 1.5rem 2.5rem;
    background: #17181e;
    transform: translateX(-105%);
  }
  body.hub-view .sidebar::before { display: none; }
  body.hub-view .sidebar.open { transform: translateX(0); }
  body.hub-view .sidebar-intro,
  body.hub-view .nav-region-tree,
  body.hub-view .archive-links { display: block; }
  body.hub-view .archive-note { display: flex; }
  body.hub-view .nav-region { margin-top: 1rem; padding-bottom: .9rem; }
  body.hub-view .nav-region-link {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 64px;
    grid-template-columns: 25px 1fr auto;
    padding: .65rem .55rem;
    place-items: initial;
    align-items: center;
    border-color: #4a4944;
    border-radius: 8px;
  }
  body.hub-view .nav-region-link strong,
  body.hub-view .nav-region-link > span:last-child { display: block; }
  body.hub-view .article-header {
    min-height: 330px;
    padding: 3.4rem 1.1rem 4.5rem;
  }
  body.hub-view .article-header h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  body.hub-view .article-header .dek { font-size: 1rem; line-height: 1.55; }
  body.hub-view .article-wrap { padding: 0 0 4rem; }
  .hub-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 2rem);
    margin-top: -2.2rem;
  }
  .hub-switcher .gateway-tile { min-height: 88px; padding: .8rem; }
  body.hub-view .atlas-banner,
  body.hub-view .source-strip,
  body.hub-view .source-ledger,
  body.hub-view .subchannels,
  body.hub-view .lead-grid { width: calc(100% - 2rem); }
  body.hub-view .infobox { display: block; }
  body.hub-view .fact { display: grid; padding: .55rem 0; border-left: 0; }
  body.hub-view .atlas-banner-copy { display: block; }
  body.hub-view .atlas-banner-copy h2 { margin-bottom: .65rem; }
}

/* Unified editorial layout
   One dependable shell now governs every interior page. Hub pages keep their
   illustrated identity without changing the site's navigation model. */
:root {
  --ink: #f3f1eb;
  --muted: #bbb8ae;
  --faint: #85827a;
  --night: #101116;
  --deep: #16181e;
  --panel: #1d1f26;
  --panel-2: #242730;
  --line: #44443f;
  --line-soft: rgba(229, 207, 147, .15);
  --gold: #d9b95f;
  --gold-bright: #f1d581;
  --green: #829b83;
  --green-bright: #bdcdb9;
  --shadow: 0 18px 52px rgba(0, 0, 0, .32);
  --radius-sm: 6px;
  --radius: 10px;
  --page-gutter: clamp(1.25rem, 3.2vw, 3rem);
}

body { line-height: 1.62; }
button, input, summary { -webkit-tap-highlight-color: transparent; }
button, a, input, summary { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-bright);
}

body:not(.home-view) {
  background:
    linear-gradient(rgba(15, 16, 21, .965), rgba(15, 16, 21, .985)),
    url('assets/archive/world-map.jpeg') center 18% / cover fixed;
}

body:not(.home-view) .topbar {
  height: 72px;
  grid-template-columns: minmax(220px, 300px) minmax(280px, 680px) auto;
  gap: 1rem;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  border-bottom: 1px solid rgba(217, 185, 95, .2);
  background: rgba(16, 17, 22, .96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
}

body:not(.home-view) .index-button {
  min-height: 42px;
  padding-inline: 1rem;
}

body:not(.home-view) .app-shell {
  grid-template-columns: 232px minmax(0, 880px) 212px;
  max-width: 1400px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  background: rgba(20, 21, 27, .9);
  border-inline: 1px solid rgba(217, 185, 95, .08);
  box-shadow: 0 0 72px rgba(0, 0, 0, .24);
}

body:not(.home-view) .sidebar,
body:not(.home-view) .article-rail {
  top: 72px;
  max-height: calc(100vh - 72px);
  background: rgba(17, 18, 23, .82);
}

body:not(.home-view) .sidebar { padding: 1.4rem .9rem 2rem; }
body:not(.home-view) .article-rail { padding: 1.75rem 1rem 2rem; }
body:not(.home-view) .sidebar-intro { margin-bottom: .85rem; }
body:not(.home-view) .nav-region { margin-top: .75rem; padding-bottom: .75rem; }
body:not(.home-view) .nav-region-link { min-height: 56px; }
body:not(.home-view) .nav-branch summary { padding-block: .42rem; }

body:not(.home-view) main {
  background:
    radial-gradient(circle at 78% 4%, rgba(217, 185, 95, .045), transparent 23rem),
    rgba(22, 23, 29, .92);
}

body:not(.home-view) .article-wrap {
  width: 100%;
  padding: 1.65rem var(--page-gutter) 6rem;
}

body:not(.home-view) .breadcrumbs {
  min-height: auto;
  margin-bottom: 1rem;
  color: #8d8980;
  font-size: .69rem;
}

body:not(.home-view) .article-header {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(circle at 82% 22%, rgba(217, 185, 95, .1), transparent 28%),
    linear-gradient(125deg, #25262e, #1a1b21);
  border: 1px solid #45464d;
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}

body:not(.home-view) h1 {
  max-width: 820px;
  font-size: clamp(2.65rem, 5.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}

body:not(.home-view) .dek {
  max-width: 760px;
  margin-top: 1rem;
  color: #d4d0c6;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.62;
}

body:not(.home-view) .article-meta { gap: .45rem; margin-top: 1.1rem; }
body:not(.home-view) .tag { padding: .24rem .55rem; font-size: .68rem; }

body:not(.home-view) .article-hero {
  margin-top: 1rem;
  border-color: #4b493f;
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
}

body:not(.home-view) .article-hero img,
body:not(.home-view) .article-hero video { max-height: 560px; }
body:not(.home-view) .article-hero.landscape-hero img { max-height: 680px; }

.source-ledger {
  margin-top: 1rem;
  overflow: hidden;
  background: #1c1e24;
  border: 1px solid #41413f;
  border-radius: var(--radius-sm);
}

.source-ledger summary {
  min-height: 54px;
  padding: .65rem .85rem;
  text-transform: none;
  letter-spacing: 0;
}

.source-ledger summary > span { display: grid; gap: .08rem; }
.source-ledger summary b {
  color: #ded9cc;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.source-ledger summary small { color: var(--faint); font-size: .7rem; font-weight: 500; }
.source-ledger summary strong { transition: transform .18s ease; }
.source-ledger[open] summary strong { transform: rotate(45deg); }
.source-ledger ul { background: rgba(0, 0, 0, .1); }

.subchannels {
  margin-top: .75rem;
  padding: .85rem;
  border-radius: var(--radius);
}
.subchannels > div { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.subchannel-card { min-height: 92px; border-radius: var(--radius-sm); }

.lead-grid {
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 2rem;
}

body:not(.home-view) .article-body { max-width: 72ch; }
.article-body > p:first-child { font-size: 1.06rem; line-height: 1.72; }
.article-body p { margin: .9rem 0; }
.article-body h2 { margin-top: 2.45rem; }

body:not(.home-view) .infobox {
  padding: 0 1rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}
body:not(.home-view) .infobox::before { margin-inline: -1rem; }

body:not(.home-view) .archive-stat,
body:not(.home-view) .evidence-card,
body:not(.home-view) .directory-grid section,
body:not(.home-view) .index-card,
body:not(.home-view) .event-card,
body:not(.home-view) .place-card,
body:not(.home-view) .image-gallery figure,
body:not(.home-view) .quote,
body:not(.home-view) .quote-card,
body:not(.home-view) .related button {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

body:not(.home-view) .index-card:hover,
body:not(.home-view) .event-card:hover,
body:not(.home-view) .place-card:hover,
body:not(.home-view) .quote-card:hover,
body:not(.home-view) .related button:hover {
  border-color: #8d7947;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .17);
}

.article-rail #contents { gap: .18rem; }
.toc-link { padding: .38rem .2rem .38rem .7rem; font-size: .75rem; }
.rail-card { margin-top: 1.5rem; }
.rail-card p:not(.eyebrow) { margin: .7rem 0; font-size: .68rem; }

/* Hub pages use the same chrome as articles instead of switching to an
   unlabeled icon rail. */
body.hub-view .topbar { display: grid; }
body.hub-view .app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  max-width: 1540px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  background: rgba(20, 21, 27, .94);
  border-inline: 1px solid rgba(217, 185, 95, .08);
  box-shadow: 0 0 72px rgba(0, 0, 0, .24);
}
body.hub-view .sidebar {
  position: sticky;
  top: 72px;
  z-index: 20;
  width: auto;
  max-height: calc(100vh - 72px);
  padding: 1.4rem .9rem 2rem;
  background: rgba(17, 18, 23, .86);
  transform: none;
}
body.hub-view .sidebar::before { display: none; }
body.hub-view .sidebar-intro,
body.hub-view .archive-note,
body.hub-view .archive-links { display: block; }
body.hub-view .archive-note { display: flex; }
body.hub-view .nav-region-tree { display: none; }
body.hub-view .nav-region { margin: .75rem 0 0; padding: 0 0 .75rem; }
body.hub-view .nav-region-link {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 56px;
  grid-template-columns: 25px 1fr auto;
  padding: .65rem .55rem;
  place-items: initial;
  align-items: center;
  border-color: #4a4944;
  border-radius: var(--radius-sm);
}
body.hub-view .nav-region-link strong,
body.hub-view .nav-region-link > span:last-child { display: block; }
body.hub-view .article-rail { display: none; }
body.hub-view main { background: #15171d; }
body.hub-view .article-wrap { max-width: none; padding: 0 0 5rem; }
body.hub-view .breadcrumbs { display: none; }

body.hub-view .article-header {
  min-height: 300px;
  padding: 4rem var(--page-gutter) 4.5rem;
  background:
    linear-gradient(180deg, rgba(10, 11, 15, .44), rgba(10, 11, 15, .72) 62%, #15171d),
    linear-gradient(90deg, rgba(10, 11, 15, .58), transparent 38%, transparent 62%, rgba(10, 11, 15, .58)),
    var(--hub-image) center 42% / cover;
  border: 0;
  border-bottom: 1px solid rgba(217, 185, 95, .2);
  border-radius: 0;
  box-shadow: inset 0 -48px 72px rgba(0, 0, 0, .18);
}
body.hub-view .article-header h1 {
  max-width: 950px;
  font-size: clamp(3rem, 6.5vw, 5.4rem);
  line-height: .96;
}
body.hub-view .article-header .dek { max-width: 700px; margin-top: 1rem; }
body.hub-view .article-meta { margin-top: 1.15rem; }

.hub-switcher {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: .55rem;
  width: min(1080px, calc(100% - 3rem));
  margin: -2rem auto 1.75rem;
}
.hub-switcher .gateway-tile {
  min-height: 78px;
  padding: .75rem .85rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}
.hub-switcher .gateway-tile span { font-size: 1rem; }
.hub-switcher .gateway-tile small { font-size: .66rem; }

body.hub-view .atlas-banner,
body.hub-view .source-ledger,
body.hub-view .subchannels,
body.hub-view .lead-grid {
  width: min(1080px, calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}
body.hub-view .source-ledger { margin-top: .75rem; }
body.hub-view .lead-grid { margin-top: 1.25rem; }
body.hub-view .article-body { max-width: none; }
body.hub-view .article-body > p:first-child { max-width: 820px; }
body.hub-view .infobox { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
body.hub-view .atlas-banner { padding: 1rem; border-radius: var(--radius); }
body.hub-view .atlas-banner-copy { grid-template-columns: minmax(210px, .62fr) minmax(300px, 1.38fr); }
body.hub-view .atlas-banner-copy h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }

@media (max-width: 1100px) {
  body:not(.home-view) .app-shell,
  body.hub-view .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  body:not(.home-view) .topbar { grid-template-columns: 220px minmax(260px, 1fr) auto; }
  body:not(.home-view) .article-rail { display: none; }
  .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  body:not(.home-view) .article-body { max-width: 76ch; }
  .infobox {
    display: grid;
    grid-row: 1;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .infobox::before, .infobox-title { grid-column: 1 / -1; }
  .fact { display: block; padding: .6rem .7rem; border-left: 1px solid var(--line-soft); }
  .article-body { grid-row: 2; }
  .hub-switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body:not(.home-view) .topbar,
  body.hub-view .topbar {
    height: 64px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 .65rem;
  }
  body:not(.home-view) .app-shell,
  body.hub-view .app-shell { display: block; min-height: calc(100vh - 64px); }
  body:not(.home-view) .sidebar,
  body.hub-view .sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 75;
    width: min(310px, 88vw);
    max-height: none;
    padding: 1.4rem 1rem 2rem;
    background: #17181e;
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  body:not(.home-view) .sidebar.open,
  body.hub-view .sidebar.open { transform: translateX(0); }
  body.hub-view .nav-region-tree { display: block; }
  body:not(.home-view) .article-wrap { padding: 1rem 1rem 4rem; }
  body.hub-view .article-wrap { padding: 0 0 4rem; }
  body:not(.home-view) .article-header { padding: 1.35rem 1rem; }
  body:not(.home-view) h1 { font-size: clamp(2.35rem, 13vw, 3.7rem); }
  body.hub-view .article-header { min-height: 270px; padding: 3rem 1rem 4rem; }
  body.hub-view .article-header h1 { font-size: clamp(2.7rem, 13vw, 4.1rem); }
  .hub-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 2rem);
    margin-top: -1.6rem;
  }
  body.hub-view .atlas-banner,
  body.hub-view .source-ledger,
  body.hub-view .subchannels,
  body.hub-view .lead-grid { width: calc(100% - 2rem); }
  body.hub-view .atlas-banner-copy { display: block; }
  body.hub-view .atlas-banner-copy h2 { margin-bottom: .6rem; }
  .source-ledger summary { min-height: 50px; }
  .infobox { display: block; }
  .fact { display: grid; border-left: 0; }
}

@media (max-width: 520px) {
  .article-meta { gap: .35rem; }
  .tag { font-size: .64rem; }
  .hub-switcher .gateway-tile { min-height: 70px; padding: .65rem; }
  .hub-switcher .gateway-tile small { display: none; }
  .archive-dashboard { grid-template-columns: 1fr 1fr; }
  .browser-grid,
  .directory-grid,
  .image-gallery,
  .emoji-gallery,
  .location-grid,
  .quote-gallery,
  .related { grid-template-columns: 1fr; }
  .place-card.region-card { grid-template-columns: 84px minmax(0, 1fr); }
}

/* Player-safe spoiler vault */
.vault-fab {
  position: fixed;
  z-index: 95;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: .55rem;
  align-items: center;
  min-height: 48px;
  padding: .55rem .8rem;
  color: var(--gold-bright);
  text-align: left;
  background: rgba(17, 18, 23, .94);
  border: 1px solid rgba(217, 185, 95, .55);
  border-radius: 999px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, .42);
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.vault-fab > span { grid-row: 1 / 3; color: var(--gold); }
.vault-fab strong, .vault-fab small { display: block; line-height: 1.1; }
.vault-fab strong { font-size: .78rem; }
.vault-fab small { margin-top: .16rem; color: var(--muted); font-size: .62rem; }
.vault-fab:hover { border-color: var(--gold-bright); transform: translateY(-1px); }
.vault-fab.unlocked { color: #dff7e5; border-color: rgba(120, 196, 139, .7); }
.vault-fab.unlocked > span { color: #8ed1a0; }

.vault-dialog {
  width: min(470px, calc(100vw - 2rem));
  padding: 0;
  color: var(--ink);
  background: #17191f;
  border: 1px solid rgba(217, 185, 95, .55);
  border-radius: 12px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .72);
}
.vault-dialog::backdrop { background: rgba(4, 5, 8, .78); backdrop-filter: blur(4px); }
.vault-dialog form { position: relative; padding: 2rem; }
.vault-close { position: absolute; top: .65rem; right: .7rem; width: 36px; height: 36px; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.5rem; }
.vault-sigil { display: grid; width: 48px; height: 48px; margin-bottom: 1rem; place-items: center; color: var(--gold-bright); background: rgba(217, 185, 95, .08); border: 1px solid rgba(217, 185, 95, .36); border-radius: 50%; }
.vault-dialog h2 { margin: 0; color: #fff; font: 500 2rem/1.05 var(--serif); }
.vault-dialog p:not(.eyebrow):not(.vault-error) { margin: .85rem 0 1.2rem; color: var(--muted); }
.vault-dialog label { display: block; margin-bottom: .35rem; color: #d8d3c7; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vault-dialog input { width: 100%; min-height: 48px; padding: .7rem .8rem; color: #fff; background: #22242c; border: 1px solid #55544e; border-radius: 5px; }
.vault-dialog input:focus { border-color: var(--gold); }
.vault-error { min-height: 1.4rem; margin: .35rem 0; color: #efa8a8; font-size: .78rem; }
.vault-submit { width: 100%; min-height: 48px; color: #17181d; background: var(--gold); border: 1px solid var(--gold-bright); border-radius: 5px; cursor: pointer; font-weight: 800; }
.vault-submit:hover { background: var(--gold-bright); }
.vault-dialog form > small { display: block; margin-top: .7rem; color: var(--faint); text-align: center; }

.vault-gate {
  min-height: min(680px, calc(100vh - 150px));
  display: grid;
  align-content: center;
  justify-items: start;
  max-width: 720px;
  padding: clamp(2rem, 7vw, 5rem) 0;
}
.vault-gate-sigil { display: grid; width: 68px; height: 68px; margin-bottom: 1.3rem; place-items: center; color: var(--gold-bright); background: rgba(217, 185, 95, .07); border: 1px solid rgba(217, 185, 95, .42); border-radius: 50%; font-size: 1.35rem; }
.vault-gate h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.vault-gate > p:not(.article-kicker) { max-width: 620px; margin: 1.25rem 0; color: var(--muted); font: 1.05rem/1.7 var(--serif); }
.vault-gate button { min-height: 48px; padding: .7rem 1rem; color: #17181d; background: var(--gold); border: 1px solid var(--gold-bright); border-radius: 4px; cursor: pointer; font-weight: 800; }
.vault-gate > small { margin-top: .8rem; color: var(--faint); }
.nav-lock { display: inline-block; margin-left: .42rem; color: var(--gold); font-size: .62em; font-style: normal; vertical-align: .14em; }
.restricted-link { opacity: .82; }
.locked-record { position: relative; }
.locked-record::after { position: absolute; z-index: 3; top: .55rem; right: .55rem; content: "Protected"; padding: .18rem .4rem; color: #f5dc92; background: rgba(19, 19, 23, .88); border: 1px solid rgba(217, 185, 95, .45); border-radius: 999px; font-size: .56rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.map-history-link.locked-record::after, .subchannel-card.locked-record::after { display: none; }

@media (max-width: 760px) {
  .vault-fab { right: .65rem; bottom: .65rem; min-height: 44px; padding: .48rem .65rem; }
  .vault-fab small { display: none; }
  .vault-fab > span { grid-row: auto; }
  .vault-dialog form { padding: 1.5rem; }
  .vault-gate { min-height: calc(100vh - 150px); padding: 2.5rem 0; }
}
