:root {
  --ref-ink: #e8eee9;
  --ref-muted: #b0bec0;
  --ref-bg: #111719;
  --ref-panel: #192124;
  --ref-line: #344345;
  --ref-accent: #ecc08e;
  --ref-teal: #a7d2c4;
  --ref-serif: Georgia, "Times New Roman", serif;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset: .5rem auto auto .5rem;
  padding: .6rem 1rem;
  background: #f1c99a;
  color: #141616;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid #f1c99a;
  outline-offset: 3px;
}

body:has(.wiki-home, .reference-content) {
  background: var(--ref-bg);
  color: var(--ref-ink);
}
body:has(.wiki-home, .reference-content) .topbar,
body:has(.wiki-home, .reference-content) .footer {
  background: #151d1f;
  border-color: var(--ref-line);
}
body:has(.wiki-home, .reference-content) .nav-search input {
  background: #0e1517;
  border-color: var(--ref-line);
  color: var(--ref-ink);
}
.topbar-inner { min-height: 67px; }
.nav { gap: clamp(.55rem, 1.25vw, 1.1rem); }
.nav > a { white-space: nowrap; }
.brand-text small { font-size: .69rem; letter-spacing: .12em; }
.nav-search input { font: inherit; }
.wiki-home { padding-top: 1.2rem; }

.wiki-masthead {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(350px, 34vw, 455px);
  align-items: end;
  overflow: hidden;
  border: 1px solid #3e5150;
  border-radius: 12px;
  background: #15292b;
}
.wiki-masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #102022ed 2%, #102022b0 30%, #10202222 68%),
    linear-gradient(0deg, #121b1dda, transparent 53%),
    url("/static/art/observatory.webp") center right / cover no-repeat;
}
.wiki-masthead-copy { padding: clamp(1.7rem, 4.8vw, 4.25rem); }
.reference-kicker {
  color: var(--ref-teal);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.wiki-masthead h1,
.reference-heading h1 {
  margin: .55rem 0 .85rem;
  color: #f4ede0;
  font: normal clamp(2.6rem, 6vw, 4.8rem)/.99 var(--ref-serif);
  letter-spacing: -.042em;
}
.wiki-masthead p {
  margin: 0;
  max-width: 33rem;
  color: #d3ded7;
  font-size: clamp(1.02rem, 1.65vw, 1.18rem);
  line-height: 1.55;
}
.wiki-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.reference-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: .57rem .9rem;
  border: 1px solid var(--ref-accent);
  border-radius: 6px;
  background: var(--ref-accent);
  color: #1c1c19;
  font: 650 .92rem/1.35 "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.reference-button:hover { background: #ffdab1; border-color: #ffdab1; color: #191918; }
.reference-button.secondary { background: #152023e6; border-color: #879b95; color: #e6eee8; }
.reference-button.secondary:hover { background: #273639; border-color: var(--ref-teal); }

.reference-section { margin: 2rem 0 2.45rem; }
.reference-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: .85rem;
}
.reference-section-title h2 {
  margin: 0;
  color: #f4ede0;
  font: normal clamp(1.65rem, 2.8vw, 2.25rem)/1.2 var(--ref-serif);
}
.reference-section-title a, .reference-feature a { color: var(--ref-teal); font-weight: 600; }
.reference-home-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr); gap: 1rem; }
.reference-list { border: 1px solid var(--ref-line); border-radius: 10px; overflow: hidden; }
.reference-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, .69fr) minmax(0, 1.65fr);
  align-items: baseline;
  gap: .35rem 1rem;
  padding: .85rem 1rem;
  background: var(--ref-panel);
  color: var(--ref-ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.reference-row + .reference-row { border-top: 1px solid var(--ref-line); }
a.reference-row:hover, a.reference-row:focus-visible { background: #223033; color: var(--ref-accent); }
.reference-row span { color: var(--ref-muted); font-size: .94rem; }
.reference-row.unavailable { opacity: .8; }
.reference-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  border: 1px solid #435751;
  border-radius: 10px;
  padding: 1.15rem 1.4rem;
  background: radial-gradient(75% 82% at 92% 10%, #273d3b, transparent), #192426;
}
.reference-feature h3 { margin: .1rem 0 0; color: #f1e7d8; font: normal 1.65rem/1.2 var(--ref-serif); }
.reference-feature p { margin: .52rem 0 .85rem; color: #c3d0ca; font-size: 1rem; }
.packet-mark { margin: .4rem 0 .55rem; color: var(--ref-accent); font-size: 2.65rem; line-height: 1.2; }
.world-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.world-links a {
  display: grid;
  align-content: start;
  gap: .35rem;
  background: var(--ref-panel);
  border: 1px solid var(--ref-line);
  border-radius: 8px;
  padding: .9rem 1rem;
  color: var(--ref-ink);
  font-size: 1rem;
}
.world-links a:hover { border-color: #739c92; color: var(--ref-teal); }
.world-links a span { color: var(--ref-muted); font-size: .9rem; }

.reference-content { padding-top: clamp(1.45rem, 4vw, 3rem); font-size: 1rem; }
.reference-heading { margin: 0 0 1.55rem; }
.reference-heading h1 { font-size: clamp(2.35rem, 5vw, 4.15rem); line-height: 1.03; }
.reference-heading p { max-width: 56ch; margin: .6rem 0 0; color: var(--ref-muted); font-size: 1.09rem; }
.framework-intro { padding-bottom: 1.5rem; border-bottom: 1px solid var(--ref-line); }
.reference-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.reference-directory .reference-row {
  grid-template-columns: 1fr;
  border: 1px solid var(--ref-line);
  border-radius: 8px;
  padding: 1.15rem;
}
.reference-directory strong { font: normal 1.35rem/1.3 var(--ref-serif); }
.article-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3.1rem); }
.article-sidebar { align-self: start; position: sticky; top: 90px; }
.article-sidebar nav { display: grid; gap: .15rem; }
.article-sidebar a {
  padding: .55rem .65rem;
  border-left: 2px solid transparent;
  color: var(--ref-muted);
  font-size: .95rem;
}
.article-sidebar .chapter-home { margin-bottom: .35rem; color: var(--ref-accent); font-weight: 650; }
.article-sidebar a:hover { color: var(--ref-ink); background: #1a2527; }
.article-sidebar [aria-current="page"] {
  border-color: var(--ref-teal);
  background: #1c2a2b;
  color: var(--ref-ink);
  font-weight: 650;
}
.reference-article { min-width: 0; }
.reference-prose { color: #dae3df; line-height: 1.7; overflow-wrap: anywhere; }
.reference-prose h2, .reference-tool h2 {
  margin: 1.65rem 0 .6rem;
  color: #f3eadc;
  font: normal clamp(1.45rem, 3.5vw, 1.9rem)/1.2 var(--ref-serif);
}
.reference-prose p, .reference-prose ol { margin: .6rem 0 1.15rem; max-width: 75ch; }
.reference-prose a, .reference-pagination a { color: var(--ref-teal); text-decoration: underline; text-underline-offset: .17em; }
.reference-prose code, .reference-table code, .reference-note code { color: var(--ref-accent); }
.reference-prose table, .reference-table {
  width: 100%;
  margin: .8rem 0;
  border-collapse: collapse;
  text-align: left;
  font-size: .95rem;
}
.reference-prose th, .reference-prose td, .reference-table th, .reference-table td {
  padding: .55rem .65rem;
  border-bottom: 1px solid var(--ref-line);
  vertical-align: top;
}
.reference-prose th, .reference-table thead th { background: #243133; color: #e4eee8; font-weight: 650; }
.reference-prose tbody tr:nth-child(odd), .reference-table tbody tr:nth-child(odd) { background: #1b2628; }
.reference-table-wrap { max-width: 100%; overflow-x: auto; }
.reference-table caption { color: var(--ref-muted); text-align: left; padding-bottom: .55rem; }
.reference-prose > :first-child { margin-top: 0; }
.evidence-list { margin-top: 1.25rem; }
.evidence-list .reference-row { grid-template-columns: 1fr minmax(4rem, auto); }

.reference-tool {
  margin-bottom: 1.75rem;
  padding: clamp(.9rem, 2.5vw, 1.45rem);
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  background: #151f21;
}
.reference-tool h2 { margin-top: 0; }
.reference-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin: .9rem 0; }
.reference-controls label { display: grid; align-content: start; gap: .25rem; min-width: 0; color: #d3e2dd; font-size: .9rem; }
.reference-controls input, .reference-controls select, .stat-chart select {
  min-height: 42px;
  max-width: 100%;
  padding: .45rem .64rem;
  border: 1px solid #607371;
  border-radius: 6px;
  background: #0f181a;
  color: var(--ref-ink);
  font: inherit;
}
.reference-controls input[type="number"] { width: 6rem; }
.reference-controls input[type="search"] { width: min(14rem, 75vw); }
.reference-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0;
  padding: .78rem;
  gap: .85rem;
  border: 1px solid var(--ref-line);
  border-radius: 7px;
  background: #1e2b2d;
}
.reference-metrics dt { color: var(--ref-muted); font-size: .875rem; }
.reference-metrics dd {
  overflow-wrap: anywhere;
  margin: .15rem 0 0;
  color: #f3cda5;
  font-size: clamp(1rem, 2.3vw, 1.42rem);
  font-weight: 650;
}
.stat-chart { margin: 1.05rem 0; padding: .8rem; border: 1px solid var(--ref-line); border-radius: 7px; }
.stat-chart label { margin-right: .55rem; font-weight: 600; }
.stat-chart select { min-height: 35px; font-size: .9rem; }
.stat-chart canvas { display: block; width: 100%; height: 173px; margin-top: .75rem; }
.stat-chart figcaption, .reference-note { margin: .6rem 0 0; color: var(--ref-muted); font-size: .9rem; }
.delta-line { display: block; }
.delta-line strong { color: var(--ref-teal); }
.skill-table th:first-child span { display: block; }
.skill-review { margin-top: .35rem; font-size: .9rem; }
.skill-review summary { color: var(--ref-accent); cursor: pointer; }
.skill-review ul { padding-inline-start: 1.15rem; margin: .25rem 0; }
.reference-pagination { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: .85rem; }

.gm-heading { margin-bottom: 1.45rem; }
.gm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 290px); gap: 1rem; align-items: start; }
.gm-main, .gm-sidebar { min-width: 0; }
.gm-filters {
  margin: 0;
  padding: .8rem;
  border: 1px solid var(--ref-line);
  border-radius: 9px;
  background: var(--ref-panel);
}
.gm-filters input[type="search"] { width: min(13.5rem, 70vw); }
.gm-results-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 3rem;
  align-items: center;
  gap: .15rem 1rem;
  color: var(--ref-muted);
  font-size: .9rem;
}
.gm-results-head p { margin: .35rem 0; }
.copy-status { color: var(--ref-teal); font-size: .9rem; }
.gm-command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.gm-command-card, .gm-guide {
  min-width: 0;
  border: 1px solid var(--ref-line);
  border-radius: 9px;
  background: var(--ref-panel);
  padding: 1rem;
}
.gm-command-card { display: flex; flex-direction: column; gap: .67rem; }
.gm-command-card:focus-within { border-color: #749f93; }
.gm-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .35rem 1rem;
  color: var(--ref-muted);
  font-size: .875rem;
}
.gm-role { color: var(--ref-teal); text-align: right; }
.gm-command-card h2 { margin: 0; }
.gm-command-copy {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  text-align: left;
  border: 1px solid #53675e;
  border-radius: 6px;
  padding: .5rem .62rem;
  background: #10191b;
  color: var(--ref-accent);
  font-size: .9rem;
}
.gm-command-copy code { min-width: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); overflow-wrap: anywhere; }
.gm-command-copy span { color: var(--ref-teal); flex: none; }
.gm-command-copy:hover, .gm-example-copy:hover { border-color: var(--ref-teal); }
.gm-command-card p { margin: 0; color: #d3ded7; font-size: .95rem; }
.gm-syntax {
  padding: .55rem .6rem;
  border-left: 2px solid #588278;
  background: #162022;
  color: #d1e4dc;
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.gm-command-card .gm-aliases, .gm-command-card .gm-access-note { color: var(--ref-muted); font-size: .875rem; }
.gm-aliases code { color: #dce5df; }
.gm-example {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid var(--ref-line);
}
.gm-example div { min-width: 0; }
.gm-example small { display: block; color: var(--ref-muted); font-size: .875rem; }
.gm-example code { color: var(--ref-accent); overflow-wrap: anywhere; font-size: .89rem; }
.gm-example-copy {
  border-color: #526661;
  background: #223132;
  color: #edf5ef;
  font-size: .85rem;
}
.gm-empty { color: var(--ref-muted); padding: 1rem; grid-column: 1 / -1; }
.gm-sidebar { display: grid; gap: .8rem; }
.gm-guide h2 { margin: 0 0 .65rem; color: #f3eadc; font: normal 1.45rem/1.2 var(--ref-serif); }
.gm-guide p, .gm-guide li, .gm-guide figcaption { color: var(--ref-muted); font-size: .92rem; }
.gm-guide p { margin: .6rem 0; }
.gm-guide ol { margin: .8rem 0 0; padding-inline-start: 1.25rem; }
.gm-guide ol li + li { margin-top: .35rem; }
.gm-guide a { color: var(--ref-teal); text-decoration: underline; text-underline-offset: .15em; }
.gm-chat-figure { margin: 0; }
.gm-chat-shot {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.2;
  border: 1px solid #635640;
  border-radius: 6px;
  background: #111719;
}
.gm-chat-shot img {
  position: absolute;
  inset: auto auto -34% 0;
  width: 348%;
  max-width: none;
  height: auto;
}
.gm-guide figcaption { margin-top: .52rem; }
.gm-reason-label { display: block; color: #dbe8e2; font-size: .9rem; }
#gm-audit-reason {
  width: 100%;
  min-height: 41px;
  margin-top: .35rem;
  padding: .45rem .6rem;
  border: 1px solid #607371;
  border-radius: 6px;
  color: var(--ref-ink);
  background: #0f181a;
  font: inherit;
}

.catalog-content {
  --panel: var(--ref-panel);
  --bg2: #141d1f;
  --border: var(--ref-line);
  --text: var(--ref-ink);
  --muted: var(--ref-muted);
  --gold: var(--ref-teal);
  --gold-soft: var(--ref-accent);
  --link: var(--ref-teal);
}
.catalog-content .page-head h1 { font: normal clamp(2.35rem, 5vw, 4.15rem)/1.03 var(--ref-serif); }
.catalog-content .stat-panel > .reference-note { margin: 0 0 .55rem; }
.catalog-content .stat-table td, .catalog-content .data-table td { border-color: var(--ref-line); }
.catalog-content .data-table th { background: #243133; }
.catalog-content .data-table tbody tr:hover { background: #223033; }
.catalog-content .icon-card:hover { border-color: #749f93; }
.catalog-content .unrecorded { color: var(--ref-muted); font-weight: normal; }
.catalog-content .summon-callout { background: var(--ref-panel); border-color: var(--ref-line); }
.catalog-content .summon-actions { align-items: stretch; }
.catalog-content .summon-actions p { margin: 0; }

@media (max-width: 1050px) {
  .topbar-inner { gap: .85rem; }
  .nav { gap: .65rem; }
}
@media (max-width: 900px) {
  .topbar { position: static; }
  .topbar-inner { align-items: center; }
  .nav-search { flex: 1 1 10rem; }
  .nav { flex-wrap: wrap; gap: .25rem .75rem; }
  .article-sidebar { top: 1rem; }
  .article-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 1.2rem; }
  .gm-layout { grid-template-columns: 1fr; }
  .gm-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wiki-home, .reference-content { padding-inline: .85rem; }
  .topbar-inner { padding-inline: .85rem; }
  .brand-text { font-size: .93rem; }
  .brand-mark { width: 32px; height: 32px; }
  .wiki-masthead { min-height: 340px; }
  .wiki-masthead::before {
    background:
      linear-gradient(90deg, #122123eb 10%, #1221237d),
      url("/static/art/observatory.webp") 76% center / cover no-repeat;
  }
  .reference-home-grid, .reference-directory, .article-layout { grid-template-columns: 1fr; }
  .reference-row { grid-template-columns: 1fr; }
  .world-links, .reference-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-sidebar { position: static; }
  .article-sidebar nav { display: flex; flex-wrap: wrap; gap: .15rem .3rem; padding-bottom: .65rem; border-bottom: 1px solid var(--ref-line); }
  .article-sidebar a { padding: .35rem .55rem; font-size: .88rem; }
  .article-sidebar .chapter-home { margin-bottom: 0; }
  .stat-chart canvas { height: 145px; }
  .gm-command-grid, .gm-sidebar { grid-template-columns: 1fr; }
}

/* Spawn Atlas: source-derived map art and recorded coordinate plots. */
.spawn-map-section { margin: 1.65rem 0 2rem; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--ref-line); border-radius: 11px; background: #172123; }
.spawn-map-heading { display: flex; justify-content: space-between; align-items: end; gap: .75rem 1.5rem; margin-bottom: .95rem; }
.spawn-map-heading h2 { margin: .25rem 0 0; color: #f3eadc; font: normal clamp(1.6rem, 3vw, 2.15rem)/1.15 var(--ref-serif); }
.spawn-map-heading p { max-width: 29ch; margin: 0; color: var(--ref-muted); font-size: .88rem; text-align: right; }
.spawn-map-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 1rem; }
.spawn-map-controls label { color: #dce8df; font-size: .9rem; font-weight: 650; }
.spawn-map-controls select { min-height: 40px; min-width: min(17rem, 100%); max-width: 100%; padding: .4rem .65rem; border: 1px solid #607371; border-radius: 6px; background: #0e181a; color: #e8eee9; font: inherit; }
.spawn-map-controls #spawn-map-count { color: var(--ref-muted); font-size: .85rem; }
.spawn-map-layout { display: grid; grid-template-columns: minmax(0, 700px) minmax(220px, 1fr); align-items: start; gap: 1rem; }
.spawn-map-figure { min-width: 0; margin: 0; }
.spawn-map-canvas { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid #516a63; border-radius: 8px; isolation: isolate; }
.spawn-map-canvas.has-art { background: #263b32; }
.spawn-map-canvas.has-coordinates { background: radial-gradient(circle at 54% 46%, #25403d, #152427 70%); }
.spawn-map-canvas.is-placeable { cursor: crosshair; }
.spawn-map-unavailable { position: absolute; inset: 45% 1rem auto; margin: 0; color: #dce8df; text-align: center; line-height: 1.5; }
.spawn-map-art { position: absolute; inset: 0 auto auto 0; width: 146.285714%; max-width: none; height: auto; pointer-events: none; }
.spawn-map-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.spawn-map-grid line { stroke: #8db1a1; stroke-opacity: .15; stroke-width: 1; }
.spawn-map-grid text { fill: #b6d2c7; font: 600 12px 'Segoe UI', system-ui, sans-serif; paint-order: stroke; stroke: #142326; stroke-width: 3px; }
.spawn-map-marker { color: var(--marker-color); cursor: pointer; }
.spawn-map-extent { fill: var(--marker-color); fill-opacity: .10; stroke: var(--marker-color); stroke-opacity: .7; stroke-width: 1.4; }
.spawn-map-icon-frame { fill: #112021; fill-opacity: .92; stroke: var(--marker-color); stroke-width: 1.7; filter: drop-shadow(0 2px 3px #000a); pointer-events: none; }
.spawn-map-icon { pointer-events: none; }
.spawn-map-missing { fill: #e9eee9; font: 700 16px/1 'Segoe UI', system-ui, sans-serif; pointer-events: none; }
.spawn-map-marker.is-icon-fallback .spawn-map-icon-frame { stroke: #8daba0; }
.spawn-map-hit { fill: transparent; }
.spawn-map-marker:hover .spawn-map-icon-frame, .spawn-map-marker.is-selected .spawn-map-icon-frame { stroke: #fff3da; stroke-width: 2.7; }
.spawn-map-marker:hover .spawn-map-extent, .spawn-map-marker.is-selected .spawn-map-extent { fill-opacity: .22; stroke-opacity: 1; stroke-width: 2.3; }
.spawn-map-marker:focus-visible { outline: none; }
.spawn-map-marker:focus-visible .spawn-map-icon-frame { stroke: #fff3da; stroke-width: 3; }
.spawn-map-figure figcaption { margin-top: .65rem; color: var(--ref-muted); font-size: .82rem; line-height: 1.55; }
.spawn-map-axis { display: block; margin-top: .15rem; color: var(--ref-teal); }
.spawn-map-side { display: grid; gap: .8rem; min-width: 0; }
.spawn-map-detail, .spawn-map-legend { min-width: 0; padding: 1rem; border: 1px solid var(--ref-line); border-radius: 8px; background: #1b292b; }
.spawn-map-detail h3, .spawn-map-legend h3 { margin: 0 0 .6rem; color: #f1e7d8; font: normal 1.4rem/1.2 var(--ref-serif); }
.spawn-map-detail p, .spawn-map-legend p { margin: .4rem 0; color: #c1d0ca; font-size: .9rem; line-height: 1.55; }
.spawn-map-detail-head { display: flex; align-items: center; gap: .65rem; }
.spawn-map-detail-head img { width: 42px; height: 42px; object-fit: contain; }
.spawn-map-detail-head h3 { margin: 0; overflow-wrap: anywhere; }
.spawn-map-detail-head a { color: #f1e7d8; text-decoration: underline; text-decoration-color: #81aa9c; text-underline-offset: .15em; }
.spawn-map-detail-sub { color: var(--ref-teal) !important; }
.spawn-map-detail dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem .8rem; margin: .85rem 0; font-size: .84rem; }
.spawn-map-detail dt { color: var(--ref-muted); }
.spawn-map-detail dd { margin: 0; color: #ecf1ea; overflow-wrap: anywhere; text-align: right; }
.spawn-map-detail-note { margin-bottom: 0 !important; padding-top: .55rem; border-top: 1px solid var(--ref-line); color: var(--ref-muted) !important; font-size: .8rem !important; }
#spawn-map-ranks { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.spawn-map-rank { display: inline-flex; align-items: center; gap: .35rem; color: #dfebe4; font-size: .84rem; }
.spawn-map-rank i { display: inline-block; width: .68rem; height: .68rem; border: 1px solid #dae7d2; border-radius: 50%; }
.spawn-map-crosshair { pointer-events: none; }
.spawn-map-crosshair line, .spawn-map-crosshair circle { fill: none; stroke: #fff3da; stroke-width: 2; filter: drop-shadow(0 1px 3px #000); }
.spawn-map-placement { min-width: 0; padding: 1rem; border: 1px solid #827253; border-radius: 8px; background: linear-gradient(145deg, #25332d, #1d2929); }
.spawn-map-placement h3 { margin: .25rem 0 .45rem; color: #f1e7d8; font: normal 1.45rem/1.2 var(--ref-serif); }
.spawn-map-placement p { margin: .45rem 0 .8rem; color: #c9d6cf; font-size: .84rem; line-height: 1.55; }
.spawn-map-placement-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .45rem .7rem; }
.spawn-map-placement-fields label { color: #d5e6db; font-size: .82rem; font-weight: 650; }
.spawn-map-placement-fields input, .spawn-map-placement-fields select { width: 100%; min-width: 0; min-height: 38px; padding: .38rem .55rem; border: 1px solid #638077; border-radius: 5px; background: #101b1c; color: #eaf3ea; font: inherit; }
.spawn-map-command { display: grid; gap: .35rem; margin-top: .8rem; padding-top: .75rem; border-top: 1px solid #475b54; }
.spawn-map-command span { color: #d5e5d9; font-size: .8rem; }
.spawn-map-command code { display: block; min-width: 0; padding: .4rem .55rem; border: 1px solid #43645b; border-radius: 5px; background: #10211f; color: #f0cb9c; overflow-wrap: anywhere; font-size: .82rem; }
.spawn-map-command button { justify-self: start; padding: .35rem .7rem; border: 1px solid #e6bf8c; border-radius: 5px; background: #e6bf8c; color: #24231d; font: 650 .82rem 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
.spawn-map-command button:hover:not(:disabled) { background: #ffdab1; }
.spawn-map-command button:disabled { opacity: .48; cursor: not-allowed; }
.spawn-map-placement #copy-status { min-height: 1em; margin-bottom: 0; color: #bce3d0; }
.spawn-map-placement-note { margin-bottom: 0 !important; color: #aebfba !important; }
@media (max-width: 900px) { .spawn-map-layout { grid-template-columns: minmax(0, 1fr); } .spawn-map-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .spawn-map-heading { align-items: start; flex-direction: column; } .spawn-map-heading p { text-align: left; } .spawn-map-side { grid-template-columns: 1fr; } }

/* Original area maps in the public zone index. */
.zone-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.zone-map-card { display: block; overflow: hidden; border: 1px solid var(--ref-line, #3c504b); border-radius: 9px; background: #192b28; color: #e9eee5; text-decoration: none; transition: border-color .2s; }
.zone-map-card:hover { border-color: #9dbbae; }
.zone-map-thumb { position: relative; aspect-ratio: 1.8; overflow: hidden; background: #142422; }
.zone-map-thumb img { display: block; width: 146.285714%; max-width: none; height: auto; }
.zone-map-card-copy { display: grid; gap: .45rem; padding: 1rem; }
.zone-map-card-copy strong { font-family: var(--ref-serif, Georgia, serif); font-size: 1.25rem; }
.zone-map-card-copy small { color: #bdc9c2; line-height: 1.5; }
@media (max-width: 800px) { .zone-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .zone-card-grid { grid-template-columns: 1fr; } }

/* Atlas workspace: let the source map lead the page. */
.atlas-zone-header { margin: .1rem 0 1.15rem; }
.atlas-back { display: inline-block; margin-bottom: .85rem; color: var(--ref-teal); font-size: .88rem; font-weight: 650; }
.atlas-back:hover { color: #d7ecdf; text-decoration: underline; }
.atlas-zone-heading h1 { margin: .2rem 0 .4rem; color: #f3eadc; font: normal clamp(2.4rem, 5vw, 4rem)/1.04 var(--ref-serif); letter-spacing: -.035em; }
.atlas-zone-heading p { margin: 0; color: var(--ref-muted); font-size: .96rem; }
.atlas-zone-header .reference-kicker { font-size: .72rem; }
.spawn-map-section { margin: 0 0 1rem; }
.spawn-map-heading { margin-bottom: .8rem; }
.spawn-map-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.7rem); }
.spawn-map-heading p { max-width: none; margin: .25rem 0 0; text-align: left; font-size: .84rem; }
.spawn-map-controls { padding: .65rem .75rem; margin-bottom: .8rem; border: 1px solid var(--ref-line); border-radius: 7px; background: #111b1d; }
.spawn-map-controls select { min-width: 0; flex: 1 1 10rem; }
.spawn-map-controls #spawn-map-row { flex: 2 1 19rem; }
.spawn-map-controls #spawn-map-count { flex: 0 0 100%; }
.spawn-map-layout { gap: .85rem; }
.spawn-map-key { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .85rem; margin-top: .65rem; color: #dce8df; }
.spawn-map-key-label { color: var(--ref-teal); font-size: .82rem; font-weight: 700; }
.spawn-map-key #spawn-map-ranks { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.spawn-map-key-note { margin-left: auto; color: var(--ref-muted); font-size: .78rem; }
.spawn-map-sources { margin-top: .45rem; color: var(--ref-muted); font-size: .82rem; }
.spawn-map-sources summary { width: fit-content; color: var(--ref-teal); font-weight: 650; cursor: pointer; }
.spawn-map-sources p { max-width: 80ch; margin: .5rem 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.spawn-map-side { gap: .65rem; }
.spawn-map-inspector, .spawn-map-placement { min-width: 0; overflow: hidden; border: 1px solid var(--ref-line); border-radius: 8px; background: #1b292b; }
.spawn-map-inspector > summary, .spawn-map-placement > summary { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .8rem 1rem; color: #f1e7d8; font: normal 1.18rem/1.3 var(--ref-serif); cursor: pointer; list-style: none; }
.spawn-map-inspector > summary::-webkit-details-marker, .spawn-map-placement > summary::-webkit-details-marker { display: none; }
.spawn-map-inspector > summary::after, .spawn-map-placement > summary::after { content: '+'; color: var(--ref-teal); font: 600 1.2rem/1 system-ui, sans-serif; }
.spawn-map-inspector[open] > summary::after, .spawn-map-placement[open] > summary::after { content: '−'; }
.spawn-map-inspector[open] > summary, .spawn-map-placement[open] > summary { border-bottom: 1px solid var(--ref-line); }
.spawn-map-detail { padding: .9rem 1rem 1rem; border: 0; border-radius: 0; background: transparent; }
.spawn-map-detail h3 { font-size: 1.25rem; }
.spawn-map-placement { padding: 0; border-color: #756d55; background: #24312e; }
.spawn-map-placement > summary { align-items: center; font-family: 'Segoe UI', system-ui, sans-serif; font-size: .9rem; font-weight: 650; }
.spawn-map-placement > summary span { color: var(--ref-teal); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.spawn-map-placement > summary strong { flex: 1; color: #f0dfc3; font-weight: 650; }
.spawn-map-placement-inner { padding: .15rem 1rem 1rem; }
.spawn-records, .atlas-region-list { overflow: hidden; margin: 1rem 0 1.6rem; border: 1px solid var(--ref-line); border-radius: 8px; background: #182326; }
.spawn-records > summary, .atlas-region-list > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; padding: .9rem 1rem; color: #f1e7d8; font: normal 1.2rem/1.3 var(--ref-serif); cursor: pointer; }
.spawn-records > summary small, .atlas-region-list > summary small { color: var(--ref-muted); font: normal .84rem/1.4 'Segoe UI', system-ui, sans-serif; }
.spawn-records > .table-wrap { margin: 0; border-top: 1px solid var(--ref-line); border-radius: 0; }
.spawn-records > .pager { margin: .75rem 1rem 1rem; }
.atlas-region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: .6rem; padding: .8rem; border-top: 1px solid var(--ref-line); }
.atlas-region-grid a { display: grid; gap: .35rem; padding: .75rem .85rem; border: 1px solid var(--ref-line); border-radius: 6px; background: #1d2b2c; color: #e8eee9; }
.atlas-region-grid a:hover { border-color: #82a89c; color: var(--ref-teal); }
.atlas-region-grid a span { color: var(--ref-muted); font-size: .82rem; line-height: 1.5; }
@media (max-width: 900px) { .spawn-map-side { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .atlas-zone-header { margin-bottom: 1rem; } .spawn-map-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); } .spawn-map-controls select { width: 100%; } .spawn-map-controls #spawn-map-row { grid-column: 1 / -1; } .spawn-map-controls label[for='spawn-map-row'] { grid-column: 1 / -1; } .spawn-map-controls #spawn-map-count { grid-column: 1 / -1; } .spawn-map-key-note { width: 100%; margin-left: 0; } }
