/* Noologia — "Night" theme (2 December 2026). General-purpose: every layer
   (astronomy, landforms, geography, civilisations, time…) gets the same
   look, with only its own tint as accent.

   An immersive layer loaded after site.css. The atlas stays (layers, their
   tints, the single seal for "you are here"), but it is now laid on
   a deep night instead of rice paper: soft light, glass panels, large
   display titles and a glow tinted by the
   concept's layer. Everything is CSS: no image to load, nothing shifts, and
   motion stops under prefers-reduced-motion. Remove the <link> in
   layout.php to go back to the paper theme. */

/* --- Tokens: one dark theme for every visitor ------------------------------ */
:root, :root[data-theme], :root:not([data-theme="light"]) {
  color-scheme: dark;
  --paper: #06080d; --paper-sunk: #0a0e16; --paper-up: rgba(255,255,255,.045);
  --rule: rgba(255,255,255,.09);
  --ink: #eef1f6; --ink-soft: #b4bccb; --ink-faint: #8a93a5;
  --accent: #9fd4c0; --accent-ink: #06080d; --seal: #ff6a4d;
  --l-astronomy: #8fb4ff; --l-discipline: #7fdcb9; --l-chronology: #f2c36b;
  --l-geography: #6fd3d6; --l-relief: #b4dc7d; --l-geohistory: #c7a0ff;
  --l-civilization: #ff9a7f; --l-biography: #ff92c2; --l-heritage: #d9b39a;
  --l-bibliography: #9fc0dd; --l-education: #e3e07a; --l-noologiagraph: #b8b8c8;
  --glass: rgba(255,255,255,.04);
  --glass-hi: rgba(255,255,255,.075);
  --glass-line: rgba(255,255,255,.10);
  --glow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 60px -20px rgba(0,0,0,.8);
  --display: "HEA Serif", Georgia, serif;
  --page: 80rem;
  --radius-m: 14px; --radius-l: 22px;
}

/* --- The sky -------------------------------------------------------------- */
html { background: #06080d; }
body {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(120,140,200,.10), transparent 60%),
    radial-gradient(50rem 35rem at -10% 30%, rgba(120,200,170,.05), transparent 60%),
    #06080d;
  background-attachment: fixed;
  color: var(--ink);
}
/* A faint grain instead of a picture: neutral for every layer. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
::selection { background: rgba(143,180,255,.35); color: #fff; }

a { color: var(--accent); }
.content { position: relative; max-width: var(--page); }

/* --- Header: a glass bar that stays at hand ----------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,8,13,.62);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--glass-line);
}
.masthead-in { max-width: var(--page); padding-top: .85rem; row-gap: .25rem; }
.wordmark { font: 500 1.4rem/1 var(--display); letter-spacing: .01em; }
.wordmark a { color: #fff; }
.wordmark-sub { color: var(--ink-faint); }
.nav-title { display: none; }
.nav-modes { gap: .25rem; }
.nav-modes a {
  padding: .5rem .95rem; border: 0; border-radius: 999px; color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.nav-modes a:hover { background: var(--glass-hi); color: #fff; }
.nav-modes a[aria-current] { background: rgba(255,255,255,.1); color: #fff; border: 0; }
.masthead-account {
  display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--glass-line); color: var(--ink) !important; text-decoration: none !important;
  transition: background-color .2s, border-color .2s;
}
.masthead-account:hover { background: var(--glass-hi); border-color: rgba(255,255,255,.2); }
.nav-layers, .masthead-layers .nav-layers { border-top: 0 !important; gap: .35rem !important; padding-block: .35rem .7rem; }
.nav-layers a {
  padding: .3rem .8rem !important; border: 1px solid transparent !important; border-radius: 999px;
  color: var(--ink-faint); font-size: .875rem; min-height: 0;
}
.nav-layers a:hover { color: #fff; background: var(--glass); }
.nav-layers a[aria-current] {
  color: #fff; border-color: color-mix(in srgb, var(--c) 55%, transparent) !important;
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.nav-layer::before { box-shadow: 0 0 8px var(--c); }
.masthead-layers-toggle { border-top: 1px solid var(--glass-line); color: var(--ink-soft); }

/* --- Breadcrumb: one calm line, never broken into orphans ----------------- */
.breadcrumb { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); font-size: .8125rem; }
.breadcrumb ol { flex-wrap: nowrap; gap: .4rem; margin: 0 !important; overflow: hidden; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; flex: 0 1 auto; min-width: 0;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.breadcrumb li:first-child, .breadcrumb li:last-child { flex-shrink: 0; }
.breadcrumb li + li::before { content: ""; flex: none; width: .4rem; height: .4rem; margin: 0 .2rem;
  border-right: 1.5px solid var(--ink-faint); border-top: 1.5px solid var(--ink-faint); transform: rotate(45deg); opacity: .6; }
.breadcrumb li a { overflow: hidden; text-overflow: ellipsis; color: var(--ink-faint); padding: 0 !important; }
.breadcrumb li a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--ink); }
/* Phone and tablet: only the way up — "‹ parent" — the page title says
   where you are; no truncated crumbs. */
@media (max-width: 62rem) {
  .breadcrumb li { display: none; }
  .breadcrumb li:nth-last-child(2) { display: inline-flex; }
  .breadcrumb li:nth-last-child(2)::before {
    content: ""; display: inline-block; width: .45rem; height: .45rem; margin: 0 .25rem 0 .15rem;
    border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-top: 0; border-right: 0;
    transform: rotate(45deg); color: var(--ink-soft); opacity: 1;
  }
  .breadcrumb li:nth-last-child(2) a {
    display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--ink-soft); font-size: .875rem;
  }
}

/* --- Headings ------------------------------------------------------------ */
h1 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; color: #fff; }
h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; color: #fff;
     font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { color: var(--ink); }
.lede { color: var(--ink-soft); }

/* --- Concept hero ---------------------------------------------------------
   The page head becomes a stage: a giant title, the lede, then one row of
   actions. Behind it, a glow tinted with the concept's layer. */
.page-head:has(> .kind .l-astronomy)     { --hero: var(--l-astronomy); }
.page-head:has(> .kind .l-relief)        { --hero: var(--l-relief); }
.page-head:has(> .kind .l-geography)     { --hero: var(--l-geography); }
.page-head:has(> .kind .l-civilization)  { --hero: var(--l-civilization); }
.page-head:has(> .kind .l-chronology)    { --hero: var(--l-chronology); }
.page-head:has(> .kind .l-discipline)    { --hero: var(--l-discipline); }
.page-head:has(> .kind .l-geohistory)    { --hero: var(--l-geohistory); }
.page-head:has(> .kind .l-biography)     { --hero: var(--l-biography); }
.page-head:has(> .kind .l-heritage)      { --hero: var(--l-heritage); }
.page-head:has(> .kind .l-bibliography)  { --hero: var(--l-bibliography); }
.page-head:has(> .kind .l-education)     { --hero: var(--l-education); }
.page-head:has(> .kind .l-noologiagraph) { --hero: var(--l-noologiagraph); }

.page-head {
  --hero: var(--accent);
  position: relative; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem;
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(1rem, 4vw, 3.5rem) 0 clamp(1rem, 3vw, 2.5rem);
  min-height: clamp(0rem, 30vw, 26rem); align-content: center;
}
.page-head > * { flex: 1 1 100%; position: relative; z-index: 1; }
.page-head > .share-row, .page-head > .reach { flex: 0 1 auto; margin: 0 !important; }
/* Behind the title: a soft aurora in the layer's tint — an accent, not a
   picture, so it suits a planet, a mountain range or a century alike. */
.page-head::before, .page-head::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.page-head::before {
  right: -15%; top: -35%; width: min(85%, 60rem); aspect-ratio: 1.2;
  background:
    radial-gradient(closest-side at 45% 50%, color-mix(in srgb, var(--hero) 42%, transparent), transparent 100%),
    radial-gradient(closest-side at 72% 38%, color-mix(in srgb, var(--hero) 22%, transparent), transparent 100%);
  animation: nt-glow-in 1.4s cubic-bezier(.2,.7,.2,1) both, nt-drift 18s ease-in-out 1.4s infinite alternate;
}
/* A thin line in the layer's tint under the head: where the page begins. */
.page-head::after {
  left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hero) 70%, transparent), transparent 70%);
}
.page-head .kind { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0; font-size: .8125rem;
                   text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); }
.page-head .kind .sep { display: none; }
.page-head .layer-tag {
  padding: .35rem .8rem; border-radius: 999px; color: #fff; text-decoration: none;
  background: color-mix(in srgb, var(--hero) 18%, transparent); border: 1px solid color-mix(in srgb, var(--hero) 45%, transparent);
}
.page-head .layer-tag::before { box-shadow: 0 0 10px var(--c); }
.page-head h1 {
  hyphens: manual;
  padding-right: calc(100% - min(100%, 14ch)); margin: 0; font-size: clamp(2.6rem, 1.6rem + 4.6vw, 6.25rem); line-height: 1;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--hero) 55%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; overflow-wrap: normal; hyphens: manual;
}
.page-head .lede { max-width: none; padding-right: calc(100% - min(100%, 38rem)); margin: .25rem 0 .75rem; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.6; }
/* The text keeps a dark halo where it crosses the glow. */
.page-head h1, .page-head .lede { text-wrap: balance; }
.page-head .lede { text-shadow: 0 1px 18px #06080d, 0 0 2px #06080d; }

.share-btn {
  min-height: 2.75rem; padding: 0 1.15rem; border-radius: 999px; border: 0; color: #06080d; font-weight: 600;
  background: #fff; box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--hero, #fff) 60%, transparent);
  transition: transform .2s, box-shadow .2s;
}
.share-btn:hover { transform: translateY(-1px); border: 0; }
.reach { gap: .4rem !important; font-size: .8125rem; color: var(--ink-faint); }
.reach > span:first-child { margin-right: .25rem; color: var(--ink-faint); }
.reach-layer { padding: .3rem .7rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink-soft); }
.reach-layer::before { box-shadow: 0 0 8px var(--c); }

@media (max-width: 44rem) {
  .page-head { min-height: 0; padding-top: 1rem; }
  .page-head::before { top: -2rem; right: -30%; width: 120%; }
  .page-head h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
}

@keyframes nt-glow-in { from { opacity: 0; scale: .8; } }
@keyframes nt-drift { to { translate: -4% 6%; scale: 1.08; } }
@keyframes nt-rise { from { opacity: 0; translate: 0 18px; } }
.page-head > * { animation: nt-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.page-head > :nth-child(2) { animation-delay: .06s; }
.page-head > :nth-child(3) { animation-delay: .12s; }
.page-head > :nth-child(n+4) { animation-delay: .18s; }

/* --- Key facts: stat tiles ------------------------------------------------ */
.facts.wide:has(> div) { max-width: none; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .75rem; margin: 0 0 2.5rem; }
.facts.wide:has(> div) > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem;
  padding: 1.1rem 1.2rem; border-radius: var(--radius-m);
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1px solid var(--glass-line);
}
.facts.wide dt, .facts.wide dd { margin: 0; padding: 0 !important; border: 0 !important; text-align: left !important; }
.facts.wide dt { color: var(--ink-faint); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.facts.wide dd { color: #fff; font: 500 clamp(1.1rem, .95rem + .7vw, 1.5rem)/1.2 var(--display); }
#node-facts-title { margin-top: 0; font-size: .8125rem; font-family: var(--sans); font-weight: 600;
                    text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); }

/* --- The views: four doors ------------------------------------------------ */
.views { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem; margin: 0 0 clamp(3rem, 6vw, 5rem); }
.view {
  position: relative; display: flex !important; flex-direction: column; align-items: flex-start !important; gap: .9rem !important;
  padding: 1.25rem 1.25rem 1.1rem !important; min-height: 7.5rem; border-radius: var(--radius-l) !important;
  border: 1px solid var(--glass-line) !important; background: var(--glass); color: #fff !important; font-weight: 600;
  text-decoration: none; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, background-color .25s;
}
.view::after { content: "→"; position: absolute; right: 1.2rem; bottom: 1rem; color: var(--ink-faint); transition: translate .25s, color .25s; }
.view:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22) !important; background: var(--glass-hi); }
.view:hover::after { translate: 4px 0; color: #fff; }
.view .glyph { width: 3rem; height: 2rem; stroke: var(--accent); }

/* --- Neighbourhood: a constellation on glass ------------------------------ */
.hood-section {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)) !important;
  border-block: 1px solid var(--glass-line);
}
.hood-col li {
  background: var(--glass-hi) !important; border-radius: 10px !important;
  box-shadow: 0 0 0 1px var(--glass-line), inset 3px 0 0 var(--c, var(--rule)) !important;
}
.hood-up li { box-shadow: 0 0 0 1px var(--glass-line), inset -3px 0 0 var(--c, var(--rule)) !important; }
.hood-col li.hood-chain-layer { background: none !important; box-shadow: none !important; }
.hood-col li a { color: var(--ink); }
.hood-here {
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), #0d1220 !important;
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent) !important; border-radius: var(--radius-l) !important;
  box-shadow: 0 0 60px -10px color-mix(in srgb, var(--c) 45%, transparent) !important;
}
.hood-here-name { color: #fff; font-family: var(--display); }
.hood-here-name::before { box-shadow: 0 0 12px var(--seal); }
.graph-wires path, .wire { filter: drop-shadow(0 0 3px rgba(255,255,255,.15)); }

/* --- Article: a long read on the night ------------------------------------ */
.prose .body { font-size: clamp(1.05rem, 1rem + .25vw, 1.175rem); line-height: 1.75; color: #d9dee8; }
.prose .body h2 { margin-top: 3rem; }
.prose .body h2::before { content: ""; display: block; width: 3rem; height: 3px; margin-bottom: 1rem; border-radius: 3px; background: var(--spectrum); }
.prose .body > p:first-of-type::first-letter {
  float: left; margin: .1em .12em 0 0; font: 500 3.6em/.8 var(--display); color: #fff;
}
.prose blockquote { border-left-color: var(--accent); color: #fff; }

/* --- Cards and panels everywhere ----------------------------------------- */
.card, .atlas-card, .body-card, .plan, .panel, .bridge, .mode {
  background: var(--glass) !important; border: 1px solid var(--glass-line) !important; border-radius: var(--radius-l) !important;
  box-shadow: none !important;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, background-color .25s;
}
.card:hover, .atlas-card:hover, .body-card:hover, .mode:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.2) !important; background: var(--glass-hi) !important; }
.atlas-section, .band { background: transparent !important; }
.button, button.button, .contact-form button, .account-form button {
  border-radius: 999px; background: #fff; color: #06080d; border: 0; font-weight: 600;
}
input, textarea, select { background: rgba(255,255,255,.05); color: var(--ink); border-color: rgba(255,255,255,.18); border-radius: 12px; }

.mode, .bridge { padding: clamp(1.1rem, 2vw, 1.6rem) !important; }
.mode h3 { margin-top: .75rem; }

/* --- Where next ------------------------------------------------------------ */
.page-end ul { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; padding: 0; list-style: none; }
.page-end a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; padding: 1rem 1.25rem;
  border-radius: var(--radius-m); background: var(--glass); border: 1px solid var(--glass-line); color: #fff; text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.page-end a::after { content: "→"; color: var(--ink-faint); }
.page-end a:hover { background: var(--glass-hi); border-color: rgba(255,255,255,.2); }

/* --- Footer ---------------------------------------------------------------- */
.footer { position: relative; background: rgba(255,255,255,.02); border-top: 1px solid var(--glass-line); }
.footer::before { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--spectrum); opacity: .7; }
.footer-mark a { color: #fff; font-family: var(--display); }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .page-head::before, .page-head::after, .page-head > * { animation: none; }
  .view, .card, .atlas-card, .body-card, .mode, .share-btn { transition: none; }
}
@media print {
  body { background: #fff; color: #000; } body::before { display: none; }
  .page-head::before, .page-head::after { display: none; }
  .page-head h1 { color: #000; background: none; }
}

/* The emblem in white on the night. */
.wordmark a::before { background-image: url("../brand/embleme-128.png") !important; filter: drop-shadow(0 0 8px rgba(143,180,255,.5)); }

/* Phones: denser grids, one scrolling row of modes. */
@media (max-width: 44rem) {
  .nav-modes { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
               -webkit-mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 2rem), transparent);
                       mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 2rem), transparent); }
  .nav-modes::-webkit-scrollbar { display: none; }
  .nav-modes a { flex: none; padding: .55rem .9rem; background: var(--glass); }
  .facts.wide:has(> div) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .facts.wide:has(> div) > div { padding: .9rem 1rem; }
  .views { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .view { min-height: 6.5rem; padding: 1rem !important; font-size: .9375rem; }
  .view::after { right: 1rem; bottom: .9rem; }
}

/* --- Home: the same stage as a concept page ------------------------------ */
.hero { position: relative; isolation: isolate; padding-block: clamp(1rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4rem); }
.hero > * { position: relative; z-index: 1; animation: nt-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero > :nth-child(2) { animation-delay: .08s; } .hero > :nth-child(3) { animation-delay: .16s; }
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: -20% -15% auto 20%; aspect-ratio: 1.6;
  background:
    radial-gradient(closest-side at 30% 50%, color-mix(in srgb, var(--l-astronomy) 30%, transparent), transparent),
    radial-gradient(closest-side at 60% 40%, color-mix(in srgb, var(--l-relief) 22%, transparent), transparent),
    radial-gradient(closest-side at 80% 65%, color-mix(in srgb, var(--l-civilization) 22%, transparent), transparent);
  animation: nt-glow-in 1.6s cubic-bezier(.2,.7,.2,1) both, nt-drift 22s ease-in-out 1.6s infinite alternate;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.5rem); line-height: 1; letter-spacing: -.025em; hyphens: manual; overflow-wrap: normal; text-wrap: balance;
  background: linear-gradient(180deg, #fff 40%, #c9d3ea); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); }
.figures { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem !important; max-width: 28rem; }
.figures dd { white-space: nowrap; overflow-wrap: normal !important; }
.figures > div {
  padding: .9rem 1.1rem; border-radius: var(--radius-m);
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1px solid var(--glass-line);
}
.figures dd { color: #fff; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.05; }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero > * { animation: none; } }
@media (max-width: 30rem) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .5rem !important; } }

/* --- Neighbourhood as a graph (hood-graph.mjs) -----------------------------
   Drawn from the page's own lists; the switch brings the lists back. Labels
   keep 4.5:1 on the night, every node with an address is a focusable link
   with a visible ring, and motion stops under reduced motion. */
.hood-switch { display: inline-flex; gap: .25rem; margin: 0 0 1.25rem; padding: .25rem; border-radius: 999px;
               background: var(--glass); border: 1px solid var(--glass-line); }
.hood-switch button { min-height: 2.5rem; padding: 0 1.1rem; border: 0; border-radius: 999px; background: none;
                      color: var(--ink-soft); font: 600 .875rem/1 var(--sans); cursor: pointer; }
.hood-switch button[aria-pressed="true"] { background: #fff; color: #06080d; }
.hood-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { .hood-switch button { min-height: 2.75rem; } }

.hood-graph { position: relative; width: 100%; border-radius: var(--radius-l); overflow: hidden;
  background: radial-gradient(60% 60% at 50% 45%, rgba(255,255,255,.04), transparent 70%), rgba(255,255,255,.015);
  border: 1px solid var(--glass-line); }
.hood-svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.hg-edge { fill: none; stroke-width: 1.4; opacity: .55; transition: opacity .25s, stroke-width .25s; }
.hg-edge.is-hub { stroke-width: 2.4; opacity: .7; }
.hg-edge.is-chain { stroke-width: 2.2; stroke-dasharray: 5 5; opacity: .7; }
.hg-node { transform: translate(var(--x), var(--y)); transition: transform .9s cubic-bezier(.2,.8,.2,1) var(--delay), opacity .6s var(--delay); cursor: pointer; outline: none; }
.hg-node:not(a) { cursor: default; }
.is-entering .hg-node { transform: translate(var(--x0), var(--y0)); opacity: 0; transition: none; }
.is-entering .hg-edge { opacity: 0; }
.hg-edges .hg-edge { transition: opacity .6s .5s; }
.hg-dot { fill: color-mix(in srgb, var(--c) 30%, #06080d); stroke: var(--c); stroke-width: 2; transition: r .2s, fill .2s; }
.is-hub .hg-dot { fill: var(--c); stroke: color-mix(in srgb, var(--c) 40%, #fff); filter: url(#hg-glow); }
.is-centre .hg-dot { fill: color-mix(in srgb, var(--c) 45%, #06080d); stroke: var(--c); stroke-width: 2.5; }
.hg-halo { fill: color-mix(in srgb, var(--c) 18%, transparent); stroke: color-mix(in srgb, var(--c) 35%, transparent); animation: hg-pulse 3.2s ease-in-out infinite; transform-origin: center; }
.hg-seal { fill: var(--seal); }
.hg-label { fill: var(--ink-soft); font-size: 13px; paint-order: stroke; stroke: #06080d; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.is-hub .hg-label { fill: #fff; font-weight: 600; font-size: 13.5px; }
.is-parent .hg-label { fill: var(--ink); }
.is-centre .hg-label { fill: #fff; font: 500 20px var(--display); }
a.hg-node:hover .hg-label, a.hg-node:focus-visible .hg-label { fill: #fff; }
a.hg-node:hover .hg-dot { stroke-width: 3; }
a.hg-node:focus-visible .hg-dot { stroke: #fff; stroke-width: 3; }
a.hg-node:focus-visible .hg-label { text-decoration: underline; }
a.hg-node:focus-visible { outline: none; }
a.hg-node:focus-visible::after { content: none; }
.hood-svg.is-focused .hg-node:not(.on) { opacity: .25; }
.hood-svg.is-focused .hg-edge:not(.on) { opacity: .08; }
.hood-svg.is-focused .hg-edge.on { opacity: 1; stroke-width: 2.6; }
@keyframes hg-pulse { 50% { transform: scale(1.12); opacity: .7; } }
@media (max-width: 40rem) { .hg-label { font-size: 12px; } .is-centre .hg-label { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
  .hg-node, .hg-edge { transition: none !important; }
  .hg-halo { animation: none; }
}
@media (forced-colors: active) {
  .hg-edge { stroke: CanvasText !important; } .hg-dot { stroke: CanvasText; fill: Canvas; }
  .hg-label { fill: CanvasText; stroke: none; } a.hg-node:focus-visible .hg-dot { stroke: Highlight; }
}
@media print { .hood-switch, .hood-graph { display: none; } .hood[hidden] { display: grid !important; } }

/* --- Ergonomics pass (usability tests, 2 December 2026) -------------------- */
/* The header slides away while reading down, returns on the way up. */
.masthead { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.masthead.is-away { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .masthead { transition: none; } }

/* Phone: the browsing modes all fit on one row, no hidden "Articles". */
@media (max-width: 44rem) {
  .nav-modes { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .3rem !important;
               overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .nav-modes a { display: flex !important; align-items: center !important; justify-content: center; min-height: 2.75rem; padding: .35rem .3rem !important; text-align: center;
                 white-space: normal; font-size: .8125rem; line-height: 1.15; }
}

/* Cards keep their text off the border. */
.card { padding: clamp(1rem, 2.5vw, 1.5rem) !important; }

/* Touch: every link in a list is a full-height target (44 px). */
@media (pointer: coarse) {
  main li > a, .footer li > a, .atlas-types a, .breadcrumb li a {
    display: inline-flex; align-items: center; min-height: 2.75rem;
  }
  .footer-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* Graph: the invisible hit disc. */
.hg-hit { fill: transparent; stroke: none; pointer-events: all; }

/* Explorer on a light map (planetary surfaces, OSM): the title and the view
   buttons sit on a pale background — give them their own dark backing. */
.x-stage:not(.is-dark) .x-stage-name, .x-stage:not(.is-dark) .x-stage-kind {
  color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.9);
}
.x-modes button { background: rgba(10,14,22,.72) !important; color: #fff !important;
                  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14) !important; }
.x-modes button[aria-pressed="true"] { background: #fff !important; color: #06080d !important; }
