﻿/* AzraelGodKing RimWorld Mods — shared site stylesheet
   Design: cool slate atlas + deep teal. Dark is default; light is optional.
   Avoid cream/terracotta, purple glow kitsch, and neon accents.
   Accessibility: skip link, focus-visible, reduced motion, high-contrast text */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Karla:wght@400;500;600;700&display=swap");

:root,
[data-color-mode="dark"] {
  color-scheme: dark;
  --bg: #0f1418;
  --bg-band: #12181e;
  --surface: #171e25;
  --surface-raised: #1c242c;
  --ink: #e4ebf0;
  --ink-muted: #9aadb9;
  --line: #3a4854;
  --line-soft: #2a3540;
  --brand: #2f7a74;
  --brand-bright: #4a9e96;
  --brand-ink: #b7ddd8;
  --brass: #b08a4a;
  --focus: #6aa8ff;
  --ok: #5ea87a;
  --danger: #c07070;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(15, 20, 24, 0.88);
  --footer-bg: rgba(0, 0, 0, 0.28);
  --cta-fill: #3d8f88;
  --cta-ink: #f2f8f7;
  --cta-hover: #4fa39b;
  --hero-overlay: linear-gradient(
    105deg,
    rgba(8, 12, 16, 0.94) 0%,
    rgba(8, 12, 16, 0.82) 42%,
    rgba(8, 12, 16, 0.5) 100%
  );
  --glow-teal: rgba(47, 122, 116, 0.12);
  --glow-brass: rgba(176, 138, 74, 0.07);
  --radius: 4px;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Karla", "Trebuchet MS", sans-serif;
  --max: 1080px;

  /* Per-mod accents (used with [data-theme]) — muted, readable on dark */
  --mod: var(--brand);
  --mod-ink: #f2f8f7;
}

[data-color-mode="light"] {
  color-scheme: light;
  --bg: #c5ced6;
  --bg-band: #b5c0ca;
  --surface: #dbe3e9;
  --surface-raised: #e8eef3;
  --ink: #142028;
  --ink-muted: #3a4a56;
  --line: #7f91a0;
  --line-soft: #a8b6c2;
  --brand: #0a5a58;
  --brand-bright: #0d7a72;
  --brand-ink: #073f3e;
  --brass: #8a6228;
  --focus: #0050b8;
  --ok: #1a6b3c;
  --danger: #8b2e2e;
  --shadow: 0 18px 40px rgba(20, 32, 40, 0.12);
  --nav-bg: rgba(232, 238, 243, 0.92);
  --footer-bg: rgba(20, 32, 40, 0.05);
  --cta-fill: #d5ebe7;
  --cta-ink: #073f3e;
  --cta-hover: #fff;
  --hero-overlay: linear-gradient(
    105deg,
    rgba(10, 32, 36, 0.92) 0%,
    rgba(10, 32, 36, 0.78) 42%,
    rgba(10, 32, 36, 0.45) 100%
  );
  --glow-teal: rgba(13, 122, 114, 0.12);
  --glow-brass: rgba(138, 98, 40, 0.08);
}

[data-theme="homesteader"] { --mod: #7a8f3a; --mod-ink: #f3f6ea; }
[data-theme="stormproof"] { --mod: #3d7eb8; --mod-ink: #eef5fb; }
[data-theme="strata"] { --mod: #b07830; --mod-ink: #faf4ea; }
[data-theme="nemesis"] { --mod: #a85a4a; --mod-ink: #faf0ee; }
[data-theme="deep-colony"] { --mod: #5f8a48; --mod-ink: #eef5ea; }
[data-theme="date-night"] { --mod: #b06078; --mod-ink: #faf0f3; }
[data-theme="living-world"] { --mod: #3f8a6e; --mod-ink: #eaf6f1; }

[data-color-mode="light"][data-theme="homesteader"],
[data-color-mode="light"] .mod-link[data-theme="homesteader"],
[data-color-mode="light"] [data-theme="homesteader"] { --mod: #7a8f3a; --mod-ink: #14200a; }
[data-color-mode="light"][data-theme="stormproof"],
[data-color-mode="light"] .mod-link[data-theme="stormproof"],
[data-color-mode="light"] [data-theme="stormproof"] { --mod: #2f6fad; --mod-ink: #071420; }
[data-color-mode="light"][data-theme="strata"],
[data-color-mode="light"] .mod-link[data-theme="strata"],
[data-color-mode="light"] [data-theme="strata"] { --mod: #b07830; --mod-ink: #1f1408; }
[data-color-mode="light"][data-theme="nemesis"],
[data-color-mode="light"] .mod-link[data-theme="nemesis"],
[data-color-mode="light"] [data-theme="nemesis"] { --mod: #a85a4a; --mod-ink: #1a0e0c; }
[data-color-mode="light"][data-theme="deep-colony"],
[data-color-mode="light"] .mod-link[data-theme="deep-colony"],
[data-color-mode="light"] [data-theme="deep-colony"] { --mod: #5f8a48; --mod-ink: #101808; }
[data-color-mode="light"][data-theme="date-night"],
[data-color-mode="light"] .mod-link[data-theme="date-night"],
[data-color-mode="light"] [data-theme="date-night"] { --mod: #b06078; --mod-ink: #1a0c12; }
[data-color-mode="light"][data-theme="living-world"],
[data-color-mode="light"] .mod-link[data-theme="living-world"],
[data-color-mode="light"] [data-theme="living-world"] { --mod: #3f8a6e; --mod-ink: #081410; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--glow-teal), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--glow-brass), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-band) 100%);
  font: 400 17px/1.6 var(--font-body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-bright); }
a:hover { color: var(--brand-ink); }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.site-nav a:focus-visible,
.mod-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--brand-ink);
  text-decoration: none;
}
.brand:hover { color: var(--brand); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-ink);
  border-bottom-color: var(--brand);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--ink);
  font: 600 0.9rem/1 var(--font-body);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--ink-muted);
  font: 600 0.85rem/1 var(--font-body);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--brand);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open .nav-links { display: flex; }
  .nav-links a {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 0.65rem 0.8rem;
  }
}

/* —— Hero (full-bleed) —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #f3f7f8;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: hero-drift 28s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay);
}
.hero-copy {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem);
}
.hero-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  animation: rise-in 0.8s ease both;
}
.hero-line {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: rgba(243, 247, 248, 0.92);
  animation: rise-in 0.9s ease 0.08s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  animation: rise-in 1s ease 0.16s both;
}

/* Mod-page heroes are shorter, still full-bleed */
.hero.mod-hero {
  min-height: min(62vh, 520px);
}
.hero.mod-hero .hero-brand { font-size: clamp(2.4rem, 7vw, 4rem); }

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: 700 0.98rem/1.1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--cta-fill);
  color: var(--cta-ink);
  border-color: var(--cta-fill);
}
.btn-primary:hover {
  background: var(--cta-hover);
  color: var(--cta-ink);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-mod {
  background: var(--mod);
  color: var(--mod-ink);
  border-color: var(--mod);
}
.btn-mod:hover { filter: brightness(1.08); color: var(--mod-ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}
.btn-steam {
  background: #1b2838;
  color: #c7d5e0;
  border-color: #1b2838;
}
.btn-steam:hover {
  background: #2a475e;
  color: #fff;
}
.btn-download {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-download:hover {
  background: var(--brand-bright);
  color: #fff;
}

/* —— Main layout —— */
main {
  display: block;
}
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.section + .section {
  border-top: 1px solid var(--line-soft);
}
.section-kicker {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.section h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.section .lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* —— Live stats (browser-fetched; no CI commits) —— */
.stats-bar {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--brand);
}
.stats-bar strong { color: var(--ink); }
.stats-meta {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.stats-refresh-btn {
  font: 12px/1.4 Verdana, sans-serif;
  color: var(--accent-h);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
}
.stats-refresh-btn:hover:not(:disabled) { border-color: var(--accent-h); }
.stats-refresh-btn:disabled { opacity: 0.6; cursor: wait; }
.workshop-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.workshop-stats b { color: var(--ink); font-weight: 700; }

/* —— Mod directory (hub) —— */
.mod-directory {
  display: grid;
  gap: 1.25rem;
}
.mod-link {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  background: var(--surface-raised);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: fade-up 0.7s ease both;
}
.mod-link:nth-child(2) { animation-delay: 0.05s; }
.mod-link:nth-child(3) { animation-delay: 0.1s; }
.mod-link:nth-child(4) { animation-delay: 0.15s; }
.mod-link:nth-child(5) { animation-delay: 0.2s; }
.mod-link:nth-child(6) { animation-delay: 0.25s; }
.mod-link:hover {
  transform: translateY(-3px);
  border-color: var(--mod);
}
.mod-link-media {
  min-height: 140px;
  background: #1a242c;
}
.mod-link-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.mod-link-body {
  padding: 1.15rem 1.25rem 1.25rem;
  border-left: 4px solid var(--mod);
}
.mod-link h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
}
.mod-link p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.mod-link .meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-ink);
}
@media (max-width: 700px) {
  .mod-link { grid-template-columns: 1fr; }
  .mod-link-media { aspect-ratio: 16 / 9; }
  .mod-link-body { border-left: none; border-top: 4px solid var(--mod); }
}

/* —— Downloads —— */
.download-list {
  display: grid;
  gap: 0.85rem;
}
.download-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem 1.25rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--surface-raised);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--mod);
}
.download-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.download-row p {
  margin: 0.2rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .download-row { grid-template-columns: 1fr; }
  .download-actions { justify-content: flex-start; }
}

/* —— Comparison / content —— */
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface-raised);
}
th, td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
th {
  color: var(--brand-ink);
  font-weight: 700;
  background: var(--surface);
}
td { color: var(--ink-muted); }
td b { color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.feature {
  padding: 1.1rem 1.15rem;
  background: var(--surface-raised);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--mod, var(--brand));
}
.feature h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.feature .stat {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brass);
}
.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.feature.wide { grid-column: 1 / -1; }
.feature img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}
.feature.with-icon {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.9rem;
  align-items: start;
}
.feature.with-icon img { margin: 0; }
@media (max-width: 520px) {
  .feature.with-icon { grid-template-columns: 1fr; }
}

.note {
  margin-top: 1.1rem;
  padding: 0.95rem 1.05rem;
  background: var(--surface);
  border-left: 4px solid var(--mod, var(--brand));
  color: var(--ink-muted);
}
.note b { color: var(--ink); }

ol, ul { color: var(--ink-muted); }
ol { margin: 0.75rem 0 0 1.25rem; padding: 0; }
ol li { margin-bottom: 0.55rem; }
.feature-list {
  margin: 0.75rem 0 0 1.2em;
  padding: 0;
  max-width: 42em;
}
.feature-list li { margin: 0.4em 0; }
.feature-list b { color: var(--ink); }

code {
  font: 0.9em/1 ui-monospace, Consolas, Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  color: var(--ink);
}

.research-tree {
  background: var(--surface-raised);
  border: 1px solid var(--line-soft);
  padding: 1.15rem;
  font: 0.92rem/1.75 ui-monospace, Consolas, Menlo, monospace;
  color: var(--ink-muted);
  overflow-x: auto;
}
.research-tree b { color: var(--ink); }

.secret-banner {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  border: 1px dashed var(--line);
  color: rgba(243, 247, 248, 0.88);
  font-size: 0.95rem;
  max-width: 36rem;
}

/* Homesteader long-form helpers (shared theme) */
.hs-feature {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.25rem;
}
.hs-feature.reverse { direction: rtl; }
.hs-feature.reverse > * { direction: ltr; }
.hs-feature-visual img {
  width: 100%;
  max-width: 180px;
  margin-inline: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}
.hs-points {
  margin: 0.6rem 0 0 1.1em;
  padding: 0;
}
.hs-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.hs-strip figure {
  margin: 0;
  text-align: center;
}
.hs-strip img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-inline: auto;
}
.hs-strip figcaption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
@media (max-width: 640px) {
  .hs-feature,
  .hs-feature.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* —— Footer —— */
.site-footer {
  margin-top: 2rem;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--ink-muted);
  font-size: 0.92rem;
  text-align: center;
}
.site-footer a { font-weight: 600; }

/* —— Compat aliases for mod-page content —— */
.card {
  padding: 1.1rem 1.15rem;
  background: var(--surface-raised);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--mod, var(--brand));
}
.card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.card .stat {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brass);
}
.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.card.wide { grid-column: 1 / -1; }
.card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}
.card.with-icon,
.card:has(> img) {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.9rem;
  align-items: start;
}
.card:has(> img) > img { margin: 0; }
.card .icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--mod, var(--brand));
}
.sub, .lead { color: var(--ink-muted); margin: 0 0 1.25rem; max-width: 42rem; }
.faq-table {
  width: 100%;
  max-width: 54rem;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 1rem;
}
.faq-table th,
.faq-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}
.faq-table th {
  width: 34%;
  color: var(--ink);
  font-weight: 700;
}
.mod-workshop-stats {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--mod, var(--brand));
  color: var(--ink-muted);
}
.mod-workshop-stats strong { color: var(--ink); }
section { padding: clamp(2rem, 4vw, 3rem) 0 0; }
section > h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--ink);
}
.btn-storm, .btn-strata, .btn-nemesis, .btn-deep, .btn-date, .btn-world, .btn-water {
  background: var(--mod, var(--brand));
  color: var(--mod-ink, #fff);
  border-color: var(--mod, var(--brand));
}
.btn-storm:hover, .btn-strata:hover, .btn-nemesis:hover,
.btn-deep:hover, .btn-date:hover, .btn-world:hover, .btn-water:hover {
  filter: brightness(1.08);
  color: var(--mod-ink, #fff);
}
footer, .site-footer {
  margin-top: 2rem;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--ink-muted);
  font-size: 0.92rem;
  text-align: center;
}
footer a, .site-footer a { font-weight: 600; }

/* Legacy Homesteader catalog helpers */
.hs-catalog-hero { padding: 2.5rem 0 1rem; }
.hs-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink);
}
.hs-hero-sub { color: var(--ink-muted); max-width: 36rem; }
.hs-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.hs-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-raised);
}
.hs-btn-ink, .hs-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.hs-btn-line, .hs-btn-ghost {
  background: transparent;
}
.hs-section { padding: 2rem 0 0; }
.hs-kicker {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.hs-lead { color: var(--ink-muted); max-width: 40rem; }
.hs-table-wrap { overflow-x: auto; margin-top: 1rem; }
.hs-note, .hs-install { color: var(--ink-muted); }
.hs-footer { text-align: center; padding: 2rem 0; color: var(--ink-muted); }
.hs-wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

/* —— Print —— */
@media print {
  .site-nav, .skip-link, .nav-toggle { display: none !important; }
  .hero { min-height: auto; color: #000; }
  .hero::after { background: none; }
  .hero-brand, .hero-line { color: #000; text-shadow: none; }
}
