:root {
  color-scheme: light;
  --red: #B7352C;
  --dark: #171918;
  --dark-gray: #2B2D2C;
  --background: #F3F3EF;
  --white: #FFFFFF;
  --border: #D9D9D3;
  --text: #171918;
  --muted: #70736F;
  --verified: var(--dark-gray);
  --warning: var(--dark-gray);
  --page: 1280px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.55; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.page-width { width: min(var(--page), calc(100% - 2rem)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: .7rem 1rem; background: var(--white); border: 1px solid var(--dark); }
.skip-link:focus { top: 1rem; }

.version-bar { min-height: 30px; background: var(--dark); color: #E8E8E2; font-size: .74rem; }
.version-bar .page-width { min-height: 30px; display: flex; align-items: center; gap: 1rem; }
.version-bar strong { color: #F2C2BD; }
.version-bar span:last-child { color: #A9ADA8; }

.wiki-header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 64px; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; min-width: 260px; }
.brand-logo { width: 44px; height: 44px; flex: none; object-fit: contain; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: .98rem; }
.brand-copy small { margin-top: .08rem; color: var(--muted); font-size: .7rem; }
.primary-nav { display: flex; align-items: center; gap: 1.1rem; }
.primary-nav a, .mobile-nav a { color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 700; }
.primary-nav a:hover, .primary-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--red); }
.search-toggle, .menu-toggle, .hub-search button, .home-search button {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: var(--white);
  padding: .48rem .78rem;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  border-radius: 2px;
}
.menu-toggle { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--border); padding-block: .8rem; }
.mobile-nav a { display: block; padding: .45rem 0; }

.global-search { background: var(--dark-gray); border-bottom: 1px solid var(--dark); }
.search-inner { padding-block: 1rem 1.1rem; }
.global-search label { display: block; color: var(--white); font-size: .86rem; font-weight: 800; margin-bottom: .4rem; }
.global-search input, .home-search input, .hub-search input, .filter-bar input {
  width: 100%;
  min-height: 44px;
  padding: .62rem .72rem;
  border: 1px solid #B8BBB5;
  border-radius: 2px;
  background: var(--white);
  color: var(--text);
}
.search-status { min-height: 1.2rem; margin: .4rem 0 0; color: #D7D9D3; font-size: .78rem; }
.search-results, .hero-results { display: grid; gap: 0; margin-top: .5rem; }
.search-results a, .hero-results a {
  display: grid;
  grid-template-columns: 110px 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: .7rem .2rem;
  border-top: 1px solid #555956;
  color: var(--white);
  text-decoration: none;
}
.search-results a:hover, .hero-results a:hover { background: #363938; }
.search-results span, .hero-results span { color: #F2C2BD; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.search-results strong, .hero-results strong { color: var(--white); }
.search-results p, .hero-results p { margin: 0; color: #C4C8C1; font-size: .82rem; }

.main-content { padding-bottom: 4rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; padding: 1rem 0; color: var(--muted); font-size: .8rem; }
.breadcrumbs a:hover { color: var(--red); }

.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.home-intro h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; letter-spacing: 0; }
.home-intro p { margin: .45rem 0 1.25rem; color: var(--muted); font-size: 1.02rem; }
.home-intro img { width: 280px; height: 160px; object-fit: cover; border: 1px solid var(--border); }
.home-search { max-width: 760px; }
.home-search label, .hub-search label { display: block; margin-bottom: .4rem; font-size: .82rem; font-weight: 800; }
.home-search > div, .hub-search > div { display: flex; gap: .45rem; }
.home-search button, .hub-search button { min-width: 88px; }
.home-layout, .hub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.4rem; align-items: start; padding-top: 2rem; }
.home-main, .hub-content { min-width: 0; }
.content-block { margin-bottom: 2.8rem; }
.block-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .7rem; border-bottom: 2px solid var(--dark); }
.block-heading h2, .hub-group h2, .sidebar-section h2, .article-body h2, .sources-section h2, .related-section h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.block-heading p { margin: 0 0 .45rem; color: var(--muted); font-size: .82rem; }
.block-heading a { color: var(--red); font-size: .8rem; font-weight: 800; text-decoration: none; }

.guide-list { border-top: 1px solid var(--border); }
.guide-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 1rem; align-items: center; padding: .78rem .15rem; border-bottom: 1px solid var(--border); text-decoration: none; }
.guide-row:hover { background: var(--white); }
.guide-type { display: block; color: var(--red); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.guide-row h3 { margin: .15rem 0 .15rem; font-size: .99rem; line-height: 1.25; }
.guide-row p { max-width: 760px; margin: 0; color: var(--muted); font-size: .8rem; }
.guide-arrow { color: var(--red); font-size: 1.1rem; text-align: right; }

.feature-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.feature-links a { min-height: 116px; display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); text-decoration: none; }
.feature-links a:hover { border-color: var(--red); }
.feature-links strong { font-size: 1rem; }
.feature-links span { color: var(--muted); font-size: .8rem; }
.feature-links em { margin-top: auto; color: var(--red); font-size: .76rem; font-style: normal; font-weight: 800; }

.player-task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.player-task { display: grid; grid-template-columns: 92px minmax(0, 1fr) 24px; gap: .8rem; align-items: start; min-height: 92px; padding: .85rem .9rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); text-decoration: none; }
.player-task:hover { border-color: var(--red); }
.task-label { color: var(--red); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.player-task strong { display: block; font-size: .9rem; }
.player-task p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }

.category-directory { border-top: 1px solid var(--border); }
.home-category { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.home-category h2 { margin: 0; font-size: 1.1rem; }
.home-category p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.home-category > a { grid-column: 3; grid-row: 1; color: var(--red); font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.home-category ul { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; padding: 0; margin: 0; }
.home-category li { font-size: .82rem; }
.home-category li a:hover { color: var(--red); }

.sidebar { min-width: 0; }
.sidebar-section { padding: 0 0 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.sidebar-section h2 { margin-bottom: .6rem; font-size: 1rem; }
.sidebar-list a { display: block; padding: .55rem 0; border-top: 1px solid var(--border); text-decoration: none; }
.sidebar-list a:hover strong, .category-list a:hover { color: var(--red); }
.sidebar-list strong, .sidebar-list span { display: block; }
.sidebar-list strong { font-size: .84rem; }
.sidebar-list span { margin-top: .12rem; color: var(--muted); font-size: .73rem; }
.category-list a { display: flex; justify-content: space-between; padding: .45rem 0; border-top: 1px solid var(--border); font-size: .84rem; text-decoration: none; }
.category-list span { color: var(--red); }

.hub-header { padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.article-type { margin: 0 0 .4rem; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hub-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.05; }
.hub-header > p:not(.article-type) { max-width: 760px; margin: .6rem 0 1rem; color: var(--muted); }
.hub-search { max-width: 620px; }
.hub-group { margin-bottom: 2.2rem; }
.hub-group h2, .hub-entry-group h2 { padding-bottom: .55rem; border-bottom: 2px solid var(--dark); }
.hub-entry-group { margin-bottom: 2.2rem; }
.map-atlas { margin-bottom: 2.4rem; padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--border); background: var(--white); }
.atlas-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.2rem; }
.atlas-head h2 { margin: .1rem 0 .25rem; font-size: 1.35rem; }
.atlas-intro { max-width: 720px; margin: .5rem 0 0; color: var(--muted); font-size: .84rem; }
.map-action { display: inline-flex; gap: .45rem; align-items: center; padding: .5rem .8rem; border: 1px solid var(--red); color: var(--red); font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.map-action:hover { background: var(--red); color: var(--white); }
.atlas-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .8rem; }
.atlas-layer { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .7rem; border: 1px solid var(--border); background: var(--white); color: var(--muted); font-size: .76rem; font-weight: 700; cursor: pointer; }
.atlas-layer[aria-pressed="true"] { border-color: var(--dark); color: var(--text); }
.atlas-layer-count { padding: 0 .34rem; background: var(--background); border: 1px solid var(--border); font-size: .68rem; }
.atlas-layer .atlas-pin { position: static; margin: 0; box-shadow: none; background: currentColor; }
.atlas-index-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem 1.4rem; margin-top: .8rem; padding: .75rem .9rem; border: 1px solid var(--border); background: var(--background); }
.atlas-canvas { position: relative; min-width: 0; aspect-ratio: 2314368 / 1019040; border: 1px solid var(--border); background: #0E1411; overflow: hidden; cursor: grab; touch-action: none; --atlas-k: 1; }
.atlas-canvas.is-panning { cursor: grabbing; }
.atlas-canvas:not(.is-tiled)::after { content: "Loading the Build 42 render…"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #8CA095; font-size: .78rem; font-weight: 700; }
.atlas-stage { position: absolute; inset: 0; z-index: 1; transform-origin: 0 0; will-change: transform; }
/* Tiles stay outside the scaled stage so they are rasterised at their final display size. */
.atlas-tiles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.atlas-tile { position: absolute; display: block; }
.atlas-north { position: absolute; left: .5rem; top: .5rem; z-index: 2; width: 44px; height: 40px; }
.atlas-north-line { stroke: #F0F4EF; stroke-width: 2.4; }
.atlas-north-head { fill: #F0F4EF; }
.atlas-north-text { fill: #F0F4EF; font-size: 13px; font-weight: 800; }
.atlas-zoom { position: absolute; top: .55rem; right: .55rem; z-index: 3; display: flex; align-items: center; gap: .3rem; padding: .28rem; border: 1px solid var(--border); background: var(--white); box-shadow: 0 1px 5px rgba(23,25,24,.22); }
.atlas-zoom-btn { width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--background); color: var(--text); font-size: .95rem; font-weight: 800; line-height: 1; cursor: pointer; }
.atlas-zoom-btn:hover:not(:disabled) { border-color: var(--dark); }
.atlas-zoom-btn:disabled { opacity: .4; cursor: default; }
.atlas-zoom-level { min-width: 34px; text-align: center; color: var(--muted); font-size: .74rem; font-weight: 800; }
.atlas-pan-hint { position: absolute; left: .55rem; bottom: .55rem; z-index: 3; margin: 0; padding: .22rem .55rem; border: 1px solid var(--border); background: var(--white); color: var(--muted); font-size: .68rem; font-weight: 700; pointer-events: none; }
.atlas-credit { margin: .3rem 0 0; color: var(--muted); font-size: .68rem; }
.atlas-marker { position: absolute; width: 0; height: 0; padding: 10px; margin: -10px; border: 0; background: none; cursor: pointer; transform: scale(calc(1 / var(--atlas-k))); transform-origin: 50% 50%; }
.atlas-marker[hidden] { display: none; }
.atlas-pin { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; border: 2px solid var(--white); background: var(--muted); box-shadow: 0 1px 3px rgba(23,25,24,.45); }
.marker-starters .atlas-pin { background: var(--red); }
.marker-northeast .atlas-pin { background: #F2EFE6; }
.marker-west42 .atlas-pin { background: #57A882; }
.atlas-marker-label { position: absolute; left: calc(50% + 11px); top: 50%; transform: translateY(-50%); color: #F4F7F3; font-size: .72rem; font-weight: 800; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 8px rgba(0, 0, 0, .82); }
.atlas-marker-left .atlas-marker-label { left: auto; right: calc(50% + 11px); }
.atlas-marker:hover .atlas-pin, .atlas-marker.is-active .atlas-pin { background: var(--dark); transform: scale(1.35); }
.atlas-marker.is-active .atlas-marker-label { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.atlas-detail { position: absolute; top: 3.4rem; left: .55rem; z-index: 4; width: min(300px, calc(100% - 1.1rem)); padding: .8rem .9rem; border: 1px solid var(--border); background: var(--white); box-shadow: 0 4px 18px rgba(23,25,24,.32); }
.atlas-index-group + .atlas-index-group { margin-top: 0; }
.atlas-index-head { display: flex; justify-content: space-between; margin: 0 0 .35rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.atlas-index { list-style: none; margin: 0; padding: 0; }
.atlas-index button { display: flex; flex-direction: column; width: 100%; padding: .3rem .35rem; border: 0; background: none; text-align: left; cursor: pointer; }
.atlas-index button:hover, .atlas-index button.is-active { background: var(--white); }
.atlas-index button span { font-size: .82rem; font-weight: 700; }
.atlas-index button small { color: var(--muted); font-size: .7rem; }
.atlas-band { margin: 0 0 .3rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.atlas-detail h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .45rem; font-size: 1.05rem; }
.atlas-role { margin: 0 0 .6rem; font-size: .82rem; }
.atlas-detail-flag { margin: 0 0 .6rem; padding: .4rem .55rem; border-left: 3px solid var(--red); background: var(--white); color: var(--muted); font-size: .74rem; }
.atlas-detail-link { display: inline-block; margin-bottom: .7rem; color: var(--red); font-size: .8rem; font-weight: 800; text-decoration: none; }
.atlas-back { display: block; padding: .34rem .5rem; border: 1px solid var(--border); background: var(--white); font-size: .74rem; font-weight: 700; cursor: pointer; }
.atlas-note { margin: .9rem 0 0; color: var(--muted); font-size: .72rem; }

.article-header { padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.article-header h1 { max-width: 900px; margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.article-subtitle { max-width: 800px; margin: .7rem 0 .55rem; color: var(--muted); font-size: 1rem; }
.article-meta { margin: 0; color: var(--muted); font-size: .78rem; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 760px) 260px; gap: 2rem; align-items: start; padding-top: 2rem; }
.article-body { min-width: 0; }
.toc-sidebar { position: sticky; top: 96px; }
.toc-sidebar h2 { margin: 0 0 .6rem; font-size: .98rem; }
.toc-sidebar nav { border-left: 2px solid var(--border); }
.toc-sidebar nav a { display: block; padding: .35rem .65rem; color: var(--muted); font-size: .78rem; text-decoration: none; }
.toc-sidebar nav a:hover { color: var(--red); border-left: 2px solid var(--red); margin-left: -2px; }
.article-sidebar { position: sticky; top: 96px; }
.mobile-toc { display: none; margin-bottom: 1.5rem; border: 1px solid var(--border); background: var(--white); }
.mobile-toc summary { padding: .7rem .8rem; font-weight: 800; cursor: pointer; }
.mobile-toc nav { padding: 0 .8rem .7rem; }
.mobile-toc a { display: block; padding: .35rem 0; color: var(--muted); font-size: .8rem; }

.quick-answer { margin-bottom: 2rem; padding: 1rem 1.1rem; border-left: 4px solid var(--red); background: var(--white); }
.quick-answer h2 { margin: 0 0 .35rem; font-size: 1rem; }
.quick-answer p { margin: 0; font-size: .94rem; }
.content-section { margin-bottom: 2rem; }
.content-section h2, .article-body > .callout { scroll-margin-top: 96px; }
.content-section h2, .sources-section h2, .faq-section h2, .related-section h2 { padding-bottom: .5rem; border-bottom: 2px solid var(--dark); }
.section-intro { margin: .55rem 0 .9rem; color: var(--muted); font-size: .84rem; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.checklist label { display: flex; align-items: flex-start; gap: .55rem; padding: .65rem .7rem; border: 1px solid var(--border); background: var(--white); cursor: pointer; font-size: .83rem; }
.checklist input { margin-top: .25rem; accent-color: var(--red); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .7rem; padding: .75rem .2rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.steps li::before { content: "Step " counter(step); color: var(--red); font-size: .73rem; font-weight: 800; }
.prose-bullets { margin: .6rem 0 0; padding: 0 0 0 1.2rem; }
.prose-bullets li { margin: .45rem 0; font-size: .88rem; line-height: 1.55; }
.prose-bullets li::marker { color: var(--red); font-weight: 800; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); background: var(--white); }
table { width: 100%; min-width: 560px; border-collapse: collapse; }
th, td { padding: .62rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: #E8E8E3; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
td { font-size: .8rem; }
td small { display: block; color: var(--muted); }
.callout { margin: 1.2rem 0 2rem; padding: .9rem 1rem; background: #ECECE6; border-left: 3px solid var(--warning); }
.callout p { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }
.filter-bar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: .75rem 0; }
.filter-bar label { flex: 1; font-size: .8rem; font-weight: 800; }
.filter-bar input { display: block; margin-top: .3rem; }
.filter-bar > span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.tag { display: inline-block; margin: .1rem; padding: .1rem .3rem; background: #E8E8E3; font-size: .68rem; white-space: nowrap; }
.faq-section, .sources-section, .related-section { margin-top: 2.5rem; }
.faq-section details { border-bottom: 1px solid var(--border); padding: .7rem 0; }
.faq-section summary { font-weight: 800; cursor: pointer; }
.faq-section details p { margin: .45rem 0 0; color: var(--muted); font-size: .84rem; }
.evidence-chip { display: inline-flex; align-items: center; padding: .18rem .38rem; border: 1px solid currentColor; font-size: .66rem; font-weight: 800; line-height: 1.2; }
.evidence-official-source,
.evidence-community-cross-checked,
.evidence-video-demonstrated { color: var(--dark-gray); background: var(--background); }
.evidence-needs-testing { color: var(--red); background: #F9EDEA; }
.source-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.source-list li { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.source-list strong { font-size: .82rem; }
.source-list p { margin: .25rem 0 0; color: var(--muted); font-size: .75rem; }

/* Evidence ledger page. Nothing on this route is linked from guide bodies — the
   guides carry the advice, this page carries the audit trail. */
.sources-page-body { max-width: 74ch; }
.sources-page-body .content-section { margin-bottom: 2.4rem; }
.sources-page-body .content-section > p { font-size: .88rem; line-height: 1.65; }
.evidence-counts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.evidence-counts li { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--muted); }
.source-page { border-bottom: 1px solid var(--border); padding: .55rem 0; }
.source-page > summary { cursor: pointer; display: flex; align-items: baseline; gap: .45rem; font-size: .88rem; font-weight: 800; list-style: none; }
.source-page > summary::-webkit-details-marker { display: none; }
.source-page > summary::before { content: "▸"; flex: none; font-size: .7rem; color: var(--muted); }
.source-page[open] > summary::before { content: "▾"; }
.source-page > summary span { margin-left: auto; color: var(--muted); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.source-page-link { margin: .5rem 0 .2rem; font-size: .76rem; color: var(--muted); }
.source-page-link a { color: var(--red); }
.source-page .source-list { margin-top: .5rem; }
.related-section .guide-list { margin-top: .6rem; }

.town-tools { display: grid; gap: 2.2rem; margin-bottom: 2.2rem; }
.spawn-finder { padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--border); background: var(--white); }
.spawn-finder h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.finder-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.finder-question { border: 1px solid var(--border); margin: 0; padding: .7rem .85rem .85rem; }
.finder-question legend { padding-inline: .3rem; font-size: .84rem; font-weight: 800; }
.finder-question label { display: flex; align-items: flex-start; gap: .5rem; padding: .28rem 0; font-size: .83rem; cursor: pointer; }
.finder-question input { margin-top: .22rem; accent-color: var(--red); }
.finder-result { margin-top: 1.1rem; padding: .9rem 1rem; border-left: 4px solid var(--red); background: var(--background); }
.finder-result[hidden] { display: none; }
.finder-kicker { margin: 0; color: var(--red); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.finder-result strong { display: block; margin-top: .1rem; font-size: 1.15rem; }
.finder-result p:not(.finder-kicker) { margin: .3rem 0 .55rem; color: var(--muted); font-size: .85rem; }
.finder-result a { color: var(--red); font-size: .84rem; font-weight: 800; text-decoration: none; }
.finder-note { margin: .85rem 0 0; color: var(--muted); font-size: .74rem; }
.town-grid-section h2 { margin: 0 0 .8rem; padding-bottom: .55rem; border-bottom: 2px solid var(--dark); font-size: 1.35rem; }
.town-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.town-card { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; min-height: 190px; padding: 1rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); text-decoration: none; }
.town-card:hover { border-color: var(--red); }
.town-card-top { box-shadow: inset 0 0 0 2px var(--red); }
.town-card h3 { margin: 0; font-size: 1.12rem; }
.town-difficulty { padding: .14rem .42rem; border: 1px solid currentColor; font-size: .66rem; font-weight: 800; letter-spacing: .07em; }
.difficulty-easy { color: #2B2D2C; }
.difficulty-medium { color: #8A5A00; }
.difficulty-hard { color: var(--red); }
.difficulty-late { color: var(--muted); }
.town-best-for { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; }
.town-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .79rem; }
.town-card li { margin-bottom: .2rem; }
.town-link { margin-top: auto; color: var(--red); font-size: .78rem; font-weight: 800; }

.site-footer { margin-top: 2rem; background: var(--dark); color: var(--white); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; padding-block: 1.6rem; }
.footer-inner strong { font-size: .95rem; }
.footer-inner p { max-width: 500px; margin: .3rem 0 0; color: #B4B8B1; font-size: .78rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 1rem; align-content: start; }
.footer-inner nav a { color: #F1C4BF; font-size: .78rem; text-decoration: none; }
.fine-print { grid-column: 1 / -1; border-top: 1px solid #454846; padding-top: .8rem; }

@media (max-width: 1120px) {
  .primary-nav { gap: .7rem; }
  .brand { min-width: 220px; }
  .article-layout { grid-template-columns: 170px minmax(0, 1fr) 230px; gap: 1.4rem; }
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav:not([hidden]) { display: block; }
  .home-layout, .hub-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 1.4rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 230px; }
  .toc-sidebar { display: none; }
  .mobile-toc { display: block; }
}

@media (max-width: 760px) {
  .page-width { width: min(var(--page), calc(100% - 1.2rem)); }
  .version-bar .page-width { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .version-bar .page-width::-webkit-scrollbar { display: none; }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
  .header-inner { gap: .45rem; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-copy strong { font-size: .86rem; }
  .search-toggle, .menu-toggle { padding-inline: .58rem; }
  .home-intro { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.5rem; }
  .home-intro img { width: 100%; height: 150px; }
  .home-layout, .hub-layout, .article-layout { grid-template-columns: 1fr; }
  .atlas-index-bar { grid-template-columns: 1fr; }
  .atlas-detail { top: .55rem; left: .55rem; width: min(280px, calc(100% - 1.1rem)); }
  .sidebar, .article-sidebar { display: none; }
  .home-category { grid-template-columns: 1fr auto; }
  .home-category > a { grid-column: 2; grid-row: 1; }
  .home-category ul { grid-column: 1 / -1; grid-row: 2; }
  .feature-links { grid-template-columns: 1fr; }
  .player-task-list { grid-template-columns: 1fr; }
  .player-task { grid-template-columns: 86px minmax(0, 1fr) 24px; }
  .finder-questions { grid-template-columns: 1fr; }
  .town-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 2rem; }
  .checklist { grid-template-columns: 1fr; }
  .home-search > div, .hub-search > div { display: grid; }
  .home-search button, .hub-search button { width: 100%; }
  .search-results a, .hero-results a { grid-template-columns: 1fr; gap: .2rem; }
  .source-list li { grid-template-columns: 1fr; gap: .4rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { justify-content: start; }
  .fine-print { grid-column: 1; }
}
