/* Sparda team site — shared stylesheet.
   Concept: "workbench ledger". A sticky top header (brand + primary nav)
   replaces the old fixed sidebar; a sticky section sub-nav carries the
   Scripta guide links. One accent (forge-gold) runs the whole site.
   Plain static CSS: no imports, no CDN, works from file:// offline. */

:root {
  --bg: #0e1016;
  --bg-alt: #12141c;
  --panel: #171a24;
  --panel-2: #101219;
  --inset: #0a0c11;
  --line: #2b3040;
  --line-soft: #202535;
  --text: #e9ebf3;
  --muted: #b9bdd0;
  --faint: #8f94a9;
  --title: #ffffff;
  --accent: #f2b544;
  --accent-ink: #241a05;
  --accent-soft: rgba(242, 181, 68, .12);
  --accent-line: #6b5320;
  --code-blue: #9cdcfe;
  --danger: #ff8080;
  --warn: #e8c95c;
  --ok: #6fdc8c;

  --content-max: 1120px;
  --measure: 74ch;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 62px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 18px rgba(0, 0, 0, .28);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .35);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Single site accent (forge-gold). With one public mod there is no
   per-section tinting: structure stays shared, colour stays constant. */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 420px at 50% -160px, rgba(255, 255, 255, .045), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Skip link: hidden until keyboard-focused. */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: top .15s ease;
}
.skip:focus { top: 10px; text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel-2);
  background: color-mix(in srgb, var(--panel-2) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 8px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
  border-radius: 8px;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  image-rendering: pixelated;
  flex: 0 0 auto;
  box-shadow: var(--shadow-1);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--accent-soft), transparent 70%), var(--inset);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
}
.brand .name {
  font-weight: 800;
  font-size: 16.5px;
  color: var(--title);
  letter-spacing: .01em;
  line-height: 1.15;
  display: block;
}
.brand .ver {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: .05em;
  display: block;
  line-height: 1.3;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}
.topnav a.nav {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.topnav a.nav:hover {
  background: var(--panel);
  color: var(--title);
  text-decoration: none;
  border-color: var(--line-soft);
}
.topnav a.nav.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}

.burger {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  margin-left: auto;
  transition: border-color .14s ease, color .14s ease;
}
.burger:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- Section sub-nav ---------- */

.subnav {
  border-top: 1px solid var(--line-soft);
  background: var(--panel-2);
}
.subnav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.subnav .crumb {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  font-weight: 700;
  padding: 10px 10px 10px 0;
  white-space: nowrap;
  flex: 0 0 auto;
}
.subnav a.nav {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .14s ease, border-color .14s ease;
}
.subnav a.nav:hover { color: var(--title); text-decoration: none; }
.subnav a.nav.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Page frame ---------- */

.page { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; }

.content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 28px 80px;
  flex: 1;
}
/* Long-form measure: prose reads at 74ch, full-bleed components
   (grids, tables, heroes) use the full width. */
.content > p,
.content > ul,
.content > ol { max-width: var(--measure); }

.page-foot {
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  padding: 20px 28px 28px;
  color: var(--faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

/* ---------- Typography ---------- */

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 12px;
  color: var(--title);
  letter-spacing: -.022em;
  font-weight: 800;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.02rem, .95rem + .5vw, 1.18rem);
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.62;
  max-width: 62ch;
  text-wrap: pretty;
}

h2 {
  font-size: 1.42rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--title);
  margin: 52px 0 14px;
  padding: 0 0 10px 14px;
  font-weight: 750;
  border-bottom: 1px solid var(--line);
  position: relative;
  scroll-margin-top: 132px;
  max-width: var(--measure);
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

h3 {
  font-size: 1.14rem;
  color: var(--title);
  margin: 32px 0 8px;
  font-weight: 700;
  letter-spacing: -.008em;
  scroll-margin-top: 132px;
  max-width: var(--measure);
}
h4 { font-size: 1rem; color: var(--title); margin: 24px 0 6px; font-weight: 700; }

p { margin: 0 0 15px; }

ul, ol { margin: 0 0 15px; padding-left: 24px; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }
li > ul, li > ol { margin-top: 6px; margin-bottom: 2px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

strong { color: var(--title); font-weight: 650; }

/* ---------- Code ---------- */

code {
  font-family: var(--mono);
  font-size: .82em;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--code-blue);
  white-space: nowrap;
}
h1 code, h2 code, h3 code { font-size: .8em; }
a code { color: var(--accent); }

pre {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 28px),
    var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent-line);
  box-shadow: var(--shadow-1);
  padding: 18px;
  overflow-x: auto;
  margin: 0 0 18px;
  position: relative;
  max-width: none;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #d3d7e6;
  font-size: 13px;
  line-height: 1.68;
  white-space: pre;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-1);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  min-width: 520px;
  margin: 0;
}
.table-wrap table { border: 0; }
th, td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { border-bottom: 1px solid var(--line-soft); }
tbody tr { transition: background .12s ease; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .018); }
tbody tr:hover { background: var(--accent-soft); }
td code { white-space: nowrap; }

/* ---------- Callouts ---------- */

.note {
  border-radius: var(--radius);
  padding: 15px 17px 15px 46px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.62;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 140%), var(--panel);
  box-shadow: var(--shadow-1);
  position: relative;
  max-width: var(--measure);
}
.note::before {
  content: "i";
  position: absolute;
  left: 15px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}
.note > :last-child { margin-bottom: 0; }
.note .t { font-weight: 750; color: var(--title); display: block; margin-bottom: 4px; }
.note.warn { border-left-color: var(--warn); }
.note.warn .t { color: var(--warn); }
.note.warn::before { content: "!"; color: var(--warn); border-color: #5a4f29; background: rgba(232, 201, 92, .1); }
.note.danger { border-left-color: var(--danger); }
.note.danger .t { color: var(--danger); }
.note.danger::before { content: "×"; color: var(--danger); border-color: #5c2f2f; background: rgba(255, 128, 128, .08); }

/* ---------- Hero ---------- */

.hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(800px 260px at 15% -20%, var(--accent-soft), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, .022) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(255, 255, 255, .022) 27px 28px),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow-2);
  padding: clamp(26px, 4vw, 44px);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.3rem); margin-bottom: 14px; }
.hero .lead { max-width: 64ch; margin-bottom: 22px; }
.hero > :last-child { margin-bottom: 0; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--mono);
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--inset);
  color: var(--muted);
  letter-spacing: .03em;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  flex: 0 0 auto;
}
/* "Available" reads shipped/healthy green through shape, colour, and text. */
.badge.on { color: #0d2817; border-color: #3fae66; background: var(--ok); font-weight: 700; }
.badge.on::before { background: #0d2817; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 19px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.btn:hover {
  text-decoration: none;
  background-color: var(--bg-alt);
  border-color: var(--accent-line);
  color: var(--title);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent));
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn.primary:hover { filter: brightness(1.06); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
  margin: 0 0 20px;
  max-width: none;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 90px), var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 20px;
  box-shadow: var(--shadow-1);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  border-top-color: var(--accent);
  box-shadow: var(--shadow-2);
}
.card h4 { margin: 0 0 6px; font-size: 15px; }

/* Card titles use a class so the heading *level* can follow the page
   hierarchy (h2 under an h1, h3 under an h2) without changing the look. */
.card .card-title {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--title);
  font-weight: 750;
  text-transform: none;
  letter-spacing: normal;
  border: 0;
  padding: 0;
  max-width: none;
}
.card .card-title::before { content: none; }
.card p { margin: 0 0 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.card p:last-of-type { margin-bottom: 0; }
.card a { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; }

/* ---------- Mod catalogue entries ---------- */

.mod-entry { margin-bottom: 44px; }
.mod-entry:last-of-type { margin-bottom: 8px; }
.split-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
/* Entry titles opt out of the section-heading style. */
.mod-title {
  margin-top: 0;
  border: 0;
  padding: 0;
  color: var(--title);
  text-transform: none;
  letter-spacing: normal;
  max-width: none;
}
.mod-title::before { content: none; }
.mod-title.lg { font-size: 26px; }
.mod-title.md { font-size: 23px; }
.badge-row { margin-bottom: 14px; }
.grid.team-grid { margin-top: 30px; }
.card a.push-top { margin-top: 12px; }

/* ---------- Copy buttons ---------- */

.copy-wrap { position: relative; }
.copy-wrap pre { margin-bottom: 18px; padding-right: 76px; }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 4px 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .14s ease, color .14s ease, border-color .14s ease;
}
.copy-wrap:hover .copy-btn,
.copy-wrap:focus-within .copy-btn { opacity: 1; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.copy-btn:focus-visible { opacity: 1; }
.copy-btn.done { color: var(--ok); opacity: 1; border-color: #2c5a3a; }

/* ---------- TOC ---------- */

.toc {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 60px), var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 19px;
  margin-bottom: 30px;
  max-width: var(--measure);
  box-shadow: var(--shadow-1);
}
.toc .t {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 9px;
}
.toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }

/* ---------- Misc ---------- */

/* Visible keyboard focus on every interactive element. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

kbd {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--title);
  white-space: nowrap;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  max-width: none;
}
.pager a {
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 16px;
  background: var(--panel);
  transition: border-color .14s ease, transform .14s ease;
}
.pager a:hover { text-decoration: none; border-color: var(--accent-line); transform: translateY(-1px); }
.pager a:only-child { margin-left: auto; }

.version-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-size: 13.5px;
  overflow: hidden;
}
.version-strip div { color: var(--muted); padding: 12px 17px; border-right: 1px solid var(--line-soft); }
.version-strip div:last-child { border-right: 0; }
.version-strip b { color: var(--title); font-weight: 650; font-family: var(--mono); font-size: 12.5px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; max-width: none; }
.pill-list li {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--code-blue);
  margin: 0;
  transition: border-color .14s ease;
}
.pill-list li:hover { border-color: var(--accent-line); }

.foot-snip {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--inset);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-line);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 18px;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
}

/* ---------- Status board (landing "Where things stand") ---------- */
.status-board { max-width: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) and (min-width: 961px) {
  .topnav a.nav { padding: 8px 9px; font-size: 13.5px; }
  .header-inner { gap: 14px; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 118px; }
  .header-inner { padding: 8px 16px; gap: 12px; flex-wrap: wrap; }
  .header-nav { display: none; }
  .burger { display: inline-block; }
  .site-header.open .header-nav {
    display: block;
    flex-basis: 100%;
  }
  .site-header.open .topnav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 4px;
    margin-right: 0;
  }
  .site-header.open .topnav a.nav { padding: 11px 13px; font-size: 15px; }
  .subnav-inner { padding: 0 16px; }
  .content { padding: 28px 18px 64px; }
  .page-foot { padding: 18px; }
  h2 { font-size: 1.28rem; }
  .hero { padding: 24px 20px; border-radius: 14px; }
  .split-row { flex-direction: column; }
}

@media (min-width: 961px) {
  .site-header .header-nav { display: flex; }
}

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

/* ---------- Light theme (OS-driven, complete) ----------
   Follows prefers-color-scheme so the static site needs no JS toggle
   and still works from file://. Every token used above is re-mapped,
   so both themes pass WCAG AA for body and muted text. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ea;
    --bg-alt: #efeadd;
    --panel: #fffdf6;
    --panel-2: #f1ecdf;
    --inset: #ece6d5;
    --line: #d8d0ba;
    --line-soft: #e4dcc8;
    --text: #23252e;
    --muted: #4c5165;
    --faint: #62667a;
    --title: #14151c;
    --accent: #8a5c00;
    --accent-ink: #ffffff;
    --accent-soft: rgba(138, 92, 0, .1);
    --accent-line: #b98f2e;
    --code-blue: #0b5e8a;
    --danger: #a41f1f;
    --warn: #7a5b00;
    --ok: #1c7a3d;
    --shadow-1: 0 1px 2px rgba(60, 50, 20, .12), 0 4px 16px rgba(60, 50, 20, .1);
    --shadow-2: 0 2px 6px rgba(60, 50, 20, .14), 0 14px 30px rgba(60, 50, 20, .12);
  }
  body {
    background:
      radial-gradient(1100px 420px at 50% -160px, rgba(138, 92, 0, .08), transparent 70%),
      var(--bg);
  }
  .badge.on { color: #ffffff; border-color: #1c7a3d; background: #1c7a3d; }
  .badge.on::before { background: #ffffff; }
  pre { background: #14151c; border-color: #14151c; border-top-color: var(--accent-line); }
  pre code { color: #d3d7e6; }
  .foot-snip { background: #14151c; color: #c6cbe0; border-color: #14151c; border-left-color: var(--accent-line); }
  code { background: var(--accent-soft); }
  tbody tr:nth-child(even) { background: rgba(20, 21, 28, .025); }
  .hero {
    background:
      radial-gradient(800px 260px at 15% -20%, var(--accent-soft), transparent 65%),
      repeating-linear-gradient(0deg, transparent 0 27px, rgba(20, 21, 28, .03) 27px 28px),
      repeating-linear-gradient(90deg, transparent 0 27px, rgba(20, 21, 28, .03) 27px 28px),
      linear-gradient(180deg, var(--panel), var(--panel-2));
  }
  kbd { background: var(--panel); }
}

@media print {
  .site-header, .page-foot, .copy-btn, .subnav { display: none !important; }
  body { background: #fff; color: #000; }
  .content { max-width: none; padding: 0; }
  .hero, .card, .note, .table-wrap { box-shadow: none; }
}
