/* ==========================================================
   VRET.at – base.css
   Gemeinsame Grundlage für alle Seiten.
   Farbwelten: blue.css (VRET) und gold.css (StageShift).
   ========================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Gemeinsame Tokens ---------- */
:root {
  /* Blau – VRET */
  --blue-bg: #0b1120;
  --blue-card: #131b30;
  --blue-border: #2a3554;
  --blue-text: #f3f5fb;
  --blue-muted: #9aa6c4;
  --blue-accent: #7c9cff;
  --blue-mint: #6ee7b7;

  /* Braun/Gold – StageShift */
  --gold-bg: #0d0a07;
  --gold-card: #1c1915;
  --gold-border: #4a3d2c;
  --gold-text: #f2ece2;
  --gold-muted: #b9a98f;
  --gold-accent: #a97d3d;
  --gold-light: #e6c88f;

  /* Neutral – Startseite, Impressum, Datenschutz */
  --bg: #0f1218;
  --card: #171b24;
  --border: #2b313f;
  --text: #eef0f4;
  --muted: #a3a9b6;
  --accent: #c9d2ff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-head: var(--font-sans);
  --head-weight: 800;

  --measure: 72ch;
  --wide: 1240px;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 999px;
}

/* ---------- Reset & Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }
p, ul, ol { margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
small, .small { font-size: 0.9rem; color: var(--muted); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--text); color: var(--bg); padding: 0.6em 1em; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Kopfzeile ---------- */
.site-header {
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--wide); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
}
.brand {
  font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none;
  margin-right: auto; letter-spacing: -0.01em;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.98rem; padding: 0.35em 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.lang {
  display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-s); overflow: hidden;
}
.lang a, .lang span {
  padding: 0.3em 0.85em; font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.lang span { background: var(--text); color: var(--bg); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }

/* ---------- Inhalt ---------- */
main { padding: 0 1.25rem; }
.wrap { max-width: var(--wide); margin: 0 auto; }
.prose { max-width: var(--wide); }
.prose > * { max-width: var(--measure); }
.prose > .table-scroll { max-width: 860px; }
.lead { font-size: clamp(1.12rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 60ch; }

.page-head { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) 0 1.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0.7em 1.4em;
  border-radius: var(--radius-s); font-weight: 650; font-size: 1.05rem;
  text-decoration: none; border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.note {
  border-left: 3px solid var(--accent); padding: 0.9em 1.1em; margin: 1.5em 0;
  background: var(--card); border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.todo {
  background: #5b4a00; color: #fff3b0; padding: 0.05em 0.4em; border-radius: 4px; font-size: 0.92em;
}

/* Literatur */
.refs { list-style: none; padding: 0; }
.refs li { padding-left: 2em; text-indent: -2em; margin-bottom: 0.8em; }

/* Zeitleiste – echte Abfolge */
.timeline { list-style: none; padding: 0; margin: 1.5em 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 1.2em 1.4em; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.55em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
}
.timeline .year { font-weight: 750; display: block; }

/* Nummerierte Bedienschritte */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 1.1em 1.2em 1.1em 4.2em; margin: 0 0 0.8em;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-m);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 1.1em; top: 1.05em;
  width: 2.1em; height: 2.1em; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--accent); color: var(--bg);
}
.steps h3 { margin: 0 0 0.3em; font-size: 1.1rem; }
.steps p { margin: 0; }

/* Tabelle */
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.8em; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.6em 0.8em; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* ---------- Fußzeile ---------- */
.site-footer {
  margin-top: 5rem; padding: 2.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem;
}
.site-footer .inner {
  max-width: var(--wide); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }

/* ==========================================================
   Startseite
   ========================================================== */
.home-hero { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5.5rem) 0 2rem; }
.home-hero h1 { max-width: 16ch; }

/* Das eine markante Element: die Adresse für die VR-Brille */
.go-box {
  max-width: var(--wide); margin: 1rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--blue-border); border-radius: var(--radius-l);
  background: var(--blue-bg); color: var(--blue-text);
}
.go-box p { margin: 0; color: var(--blue-muted); }
.go-url {
  display: block; margin: 0.15em 0 0.2em;
  font-weight: 850; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  color: var(--blue-text); text-decoration: none;
}
.go-url:hover { color: var(--blue-mint); }
.go-box .actions { margin-top: 1.2rem; }
.go-box .btn-primary { background: var(--blue-accent); color: var(--blue-bg); }
.go-box .btn-ghost { border-color: var(--blue-border); color: var(--blue-text); }

/* Zwei Welten */
.worlds {
  max-width: var(--wide); margin: 1.25rem auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.world { border-radius: var(--radius-l); padding: clamp(1.5rem, 3.5vw, 2.5rem); position: relative; overflow: hidden; }
.world h2 { margin-top: 0; }
.world ul { padding-left: 1.2em; }

.world-blue { background: var(--blue-card); color: var(--blue-text); border: 1px solid var(--blue-border); }
.world-blue h2 { font-family: var(--font-sans); font-weight: 800; }
.world-blue .sub { color: var(--blue-mint); font-weight: 600; margin-top: -0.3em; }
.world-blue p, .world-blue li { color: #c9d1e6; }
.world-blue a { color: var(--blue-accent); }
.world-blue .btn-primary { background: var(--blue-accent); color: var(--blue-bg); }
.world-blue .btn-ghost { border-color: var(--blue-border); color: var(--blue-text); }

.world-gold { background: var(--gold-card); color: var(--gold-text); border: 1px solid var(--gold-border); }
.world-gold h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }
.world-gold .sub { color: var(--gold-light); font-family: var(--font-serif); font-style: italic; margin-top: -0.3em; }
.world-gold p, .world-gold li { color: #d9cfbf; }
.world-gold a { color: var(--gold-light); }
.world-gold .btn-primary { background: var(--gold-accent); color: #1a120a; }
.world-gold .btn-ghost { border-color: var(--gold-border); color: var(--gold-text); }

.rings { position: absolute; right: -60px; top: -60px; width: 220px; opacity: 0.55; pointer-events: none; }
.world-gold > *:not(.rings) { position: relative; }

.store-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 0.45em 1.1em; border-radius: 12px;
  border: 1px solid var(--gold-border); color: var(--gold-text); text-decoration: none; line-height: 1.2;
}
.store small { color: var(--gold-muted); font-size: 0.78rem; }
.store[aria-disabled="true"] { opacity: 0.75; cursor: default; }

.tiers { list-style: none; padding: 0 !important; margin: 1em 0; }
.tiers li { padding: 0.55em 0; border-top: 1px solid var(--gold-border); margin: 0; }
.tiers strong { color: var(--gold-light); font-weight: 600; }

.home-more {
  max-width: var(--wide); margin: 2.5rem auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem;
}
.home-more h2 { font-size: 1.25rem; margin-top: 0; }
.home-more p { color: var(--muted); }

@media (max-width: 820px) {
  .worlds, .home-more { grid-template-columns: 1fr; }
}

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

/* Kopfzeile mobil: Marke und Sprache in einer Zeile, Navigation darunter */
@media (max-width: 640px) {
  .brand { order: 1; }
  .lang { order: 2; }
  .site-nav { order: 3; width: 100%; gap: 0.25rem 1rem; }
  .prose > h2:first-child { margin-top: 1em; }
}


/* ==========================================================
   Bilder, Galerie, Startseite mit Fotos
   ========================================================== */
figure { margin: 1.8em 0; }
figure img { border-radius: var(--radius-m); width: 100%; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.55em; }

.go-box { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; }
.go-box .go-photo { width: clamp(150px, 20vw, 220px); margin: 0; }
.go-box .go-photo img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center 30%; }
.go-box .go-photo figcaption { color: var(--blue-muted); font-size: 0.75rem; }

.scene-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1.2rem 0 0.4rem; }
.scene-strip img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }

.world-gold .promo { float: right; width: clamp(120px, 32%, 190px); margin: 0.2rem 0 0.8rem 1.2rem; }
.world-gold .promo img { border-radius: 18px; }

.lab-row { display: flex; gap: 1.2rem; align-items: flex-start; }
.lab-row img { width: 88px; height: 88px; flex: none; border-radius: 50%; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem; list-style: none; padding: 0; margin: 1.2em 0 2em;
}
.gallery li { margin: 0; }
.gallery img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.prose > .gallery, .prose > .wide, .prose > .phones, .prose > .split { max-width: 100%; }

.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 1rem; margin: 1.5em 0 2em; }
.phones img { border-radius: 22px; width: 100%; }
.phones figure { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 260px); gap: 1.5rem 3rem; align-items: start; }
.split > div > *:first-child { margin-top: 0; }
.split figure { margin: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.7em; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0.1em; top: 0.4em; width: 0.85em; height: 0.85em; border: 2px solid var(--accent); border-radius: 4px; }

.acronym { display: flex; flex-wrap: wrap; gap: 0.1em 1em; font-weight: 650; margin: 0 0 1em; color: var(--blue-muted); }
.acronym b { font-size: 1.15em; font-weight: 850; }
.acronym .v { color: #ff7a7a; } .acronym .r { color: #ffd166; } .acronym .e { color: #8fb0ff; } .acronym .t { color: #6ee7b7; }

@media (max-width: 820px) {
  .go-box { grid-template-columns: 1fr; }
  .go-box .go-photo { display: none; }
  .split { grid-template-columns: 1fr; }
  .split figure { max-width: 240px; }
  .phones { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}
@media (max-width: 480px) {
  .world-gold .promo { float: none; width: 55%; margin: 0 auto 1rem; }
}
.lab-row img { background: #fff; }


/* ==========================================================
   Version 3: Sprungleiste, runde Bilder, zweispaltige Inhalte
   ========================================================== */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.jump li { margin: 0; }
.jump a {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 36px; padding: 0.3em 0.95em;
  border-radius: var(--radius-s); border: 1px solid var(--border); color: var(--text);
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
}
.jump a:hover { border-color: var(--accent); }
.jump .dot { width: 0.6em; height: 0.6em; border-radius: 50%; flex: none; }
.dot-blue { background: var(--blue-accent); } .dot-gold { background: var(--gold-accent); } .dot-grey { background: var(--muted); }
[id] { scroll-margin-top: 1rem; }

/* go-Box kompakt, Foto rund */
.go-box { grid-template-columns: 1fr auto; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3.5vw, 2.5rem); }
.go-box .go-photo { width: 150px; text-align: center; }
.go-box .go-photo img { width: 150px; height: 150px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid var(--blue-border); }
.go-box .go-photo figcaption { margin-top: 0.4rem; }

/* kleine runde Szenen */
.scene-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.6rem; }
.scene-strip img { width: 76px; height: 76px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid var(--blue-border); }

.world-gold .promo { width: clamp(110px, 28%, 160px); }

/* Seiten mit Seitenspalte */
.doc { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 2rem 3.5rem; align-items: start; }
.doc > .prose { max-width: none; }
.doc > .prose > * { max-width: var(--measure); }
.doc > .prose > .table-scroll { max-width: 100%; }
.side { position: sticky; top: 1rem; display: grid; gap: 1.6rem; padding-top: 0.4rem; }
.side h2 { font-size: 0.95rem; margin: 0 0 0.6rem; color: var(--muted); font-weight: 650; letter-spacing: 0; }
.rounds { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.rounds li { display: flex; align-items: center; gap: 0.8rem; margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.35; }
.rounds img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--border); }
.facts { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.facts li { padding: 0.45em 0; border-top: 1px solid var(--border); margin: 0; }
.facts b { color: var(--text); }
.toc { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.toc li { margin: 0.3em 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }

.phase { border-left: 3px solid var(--accent); padding: 0.1em 0 0.1em 1.1em; margin: 1.6em 0; }
.phase h3 { margin-top: 0; }
.phase .when { font-size: 0.85rem; color: var(--muted); font-weight: 650; display: block; margin-bottom: 0.2em; }
blockquote.kern { margin: 2em 0; padding: 1.1em 1.4em; border-radius: var(--radius-m); background: var(--card); border: 1px solid var(--border); font-size: 1.08rem; }
blockquote.kern p { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; }
.two h3 { margin-top: 0.6em; }
.stair { counter-reset: s; list-style: none; padding: 0; }
.stair li { counter-increment: s; padding-left: 2.2em; position: relative; }
.stair li::before { content: counter(s); position: absolute; left: 0; top: 0.05em; width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; font-size: 0.82em; font-weight: 800; background: var(--card); border: 1px solid var(--accent); color: var(--text); }

.fig-small { max-width: 640px !important; }

@media (max-width: 1000px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: -1; }
  .side .rounds { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.3rem; }
  .side .rounds li { flex-direction: column; text-align: center; width: 80px; flex: none; font-size: 0.75rem; }
  .side .facts, .side .toc-wrap { display: none; }
}
@media (max-width: 820px) {
  .go-box { grid-template-columns: 1fr auto; }
  .go-box .go-photo { display: block; width: 96px; }
  .go-box .go-photo img { width: 96px; height: 96px; }
  .go-box .go-photo figcaption { display: none; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .go-box { grid-template-columns: 1fr; }
  .go-box .go-photo { order: -1; }
}

.table-scroll { max-width: 100%; }
html, body { overflow-x: clip; }

.refs, .refs a, .prose a { overflow-wrap: anywhere; }
.side, .side > section { min-width: 0; }
.side { grid-template-columns: minmax(0, 1fr); }

/* ==========================================================
   Version 4: Häuser, Video-Karte, Raumbilder, Signalweg, Details
   ========================================================== */
.video-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center;
  padding: 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-m);
  background: var(--card); color: var(--text); text-decoration: none; margin: 1rem 0; max-width: 640px;
}
.video-card:hover { border-color: var(--accent); }
.video-card img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; object-position: 50% 22%; }
.video-card strong { display: block; margin-bottom: 0.25em; }
.video-card span span { color: var(--muted); font-size: 0.92rem; display: block; line-height: 1.45; }
.video-card > span > strong::after { content: " ▶"; color: var(--accent); }

.houses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.2em 0; max-width: 100% !important; }
.house { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 1.1rem 1.2rem; }
.house h3 { margin: 0 0 0.2em; }
.house .tag { color: var(--blue-mint); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.7em; }
.house ul { padding-left: 1.1em; margin: 0; }
.house p:last-child { margin-bottom: 0; }

.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 1.2em 0 0.4em; max-width: 720px !important; }
.rooms figure { margin: 0; }
.rooms img { border-radius: 16px; aspect-ratio: 2 / 3; object-fit: cover; }
.rooms figcaption { margin-top: 0.35em; }

.split figure img { border-radius: 26px; max-width: 240px; }
.prose > section > .split { max-width: 100%; }

.flow { list-style: none; padding: 0; margin: 1.2em 0; display: flex; flex-wrap: wrap; gap: 0.5rem; counter-reset: f; max-width: 100% !important; }
.flow li {
  counter-increment: f; margin: 0; padding: 0.55em 0.9em; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); font-size: 0.95rem; position: relative;
}
.flow li::before { content: counter(f, decimal-leading-zero) " "; color: var(--accent); font-weight: 700; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -0.45rem; top: 50%; transform: translate(50%, -50%); color: var(--muted); }
.flow li:not(:last-child) { margin-right: 0.9rem; }

table.spec th { width: 11rem; color: var(--text); font-weight: 650; }
table.spec { min-width: 0; }

details { margin: 1em 0 1.5em; border: 1px solid var(--border); border-radius: var(--radius-m); padding: 0.2em 1.1em; background: var(--card); }
details summary { cursor: pointer; padding: 0.7em 0; font-weight: 650; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 0.8em; }

.world-gold .hero-img { margin: 0.4rem 0 1rem; }
.world-gold .hero-img img { border-radius: 16px; aspect-ratio: 3 / 2; object-fit: cover; }

@media (max-width: 900px) {
  .houses { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  table.spec th { width: auto; }
  .flow { flex-direction: column; }
  .flow li:not(:last-child)::after { content: "↓"; right: auto; left: 1.2rem; top: auto; bottom: -1.05rem; transform: none; }
  .flow li:not(:last-child) { margin-right: 0; margin-bottom: 0.6rem; }
  .video-card { grid-template-columns: 72px 1fr; }
  .video-card img { width: 72px; height: 72px; }
}

.prose > .wide img, .prose > figure.wide img { max-height: 560px; object-fit: cover; }
.wrap.prose > section { max-width: none; }
.wrap.prose > section > * { max-width: var(--measure); }
.wrap.prose > section > .houses { max-width: 1100px; }
.wrap.prose > section > .split { max-width: 1000px; }
.wrap.prose > section > .table-scroll { max-width: 900px; }
.wrap.prose > section > .two { max-width: 1000px; }
