:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-muted: rgba(17, 24, 39, 0.06);
  --text: #111827;
  --muted: #4b5563;
  --border: rgba(17, 24, 39, 0.14);
  --primary: #c81e2b;
  --primary-hover: #a81722;
  --primary-ink: #ffffff;
  --accent: #0369a1;
  --ink-dark: #0c1018;
  --ink-surface: #131926;
  --on-dark: #ffffff;
  --on-dark-soft: #f1f5f9;
  --on-dark-muted: #94a3b8;
  --on-dark-accent: rgba(252, 165, 165, 1);
  --tone-emerald: rgba(4, 120, 87, 1);
  --tone-sky: var(--accent);
  --tone-amber: rgba(146, 64, 14, 1);
  --radius: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html.dark {
  --bg: #0c1018;
  --surface: #131926;
  --surface-muted: rgba(241, 245, 249, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(241, 245, 249, 0.14);
  --primary: #e12d39;
  --primary-hover: #c81e2b;
  --accent: #38bdf8;
  --tone-emerald: rgba(110, 231, 183, 1);
  --tone-amber: rgba(252, 211, 77, 1);
  color-scheme: dark;
}

html.dark.black {
  --bg: #000000;
  --surface: #0c1018;
  --surface-muted: rgba(241, 245, 249, 0.08);
  --border: rgba(241, 245, 249, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: light; }

body.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--site-bg-light, none);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

html.dark body.site-body { background-image: var(--site-bg-dark, none); }
html.dark.black body.site-body { background-image: none; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--primary);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { left: 16px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-main {
  padding-top: 24px;
  padding-bottom: 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
}
html.dark .site-header { background: rgba(19, 25, 38, .92); }
html.dark.black .site-header { background: rgba(10, 12, 16, .95); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-icon { border-radius: var(--radius); flex-shrink: 0; }
.wordmark-light-only { height: 22px; width: auto; }
.wordmark-dark-only { display: none; height: 22px; width: auto; }
html.dark .wordmark-light-only { display: none; }
html.dark .wordmark-dark-only { display: block; }


.brand-tag {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(200, 30, 43, .12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.brand-tag-dark {
  background: rgba(225, 45, 57, .2);
  color: var(--on-dark-accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover, .nav-link.is-active {
  background: var(--surface-muted);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn, .btn-icon, .btn-icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn { padding: 8px 16px; border: 1px solid transparent; }
.btn-icon { width: 44px; padding: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-icon-text { padding: 8px 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-icon:hover, .btn-icon-text:hover { background: var(--surface-muted); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface-muted); border-color: var(--primary); }

.btn-hero-ghost {
  background: rgba(255, 255, 255, .12);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, .28);
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .22); }

.btn-link {
  background: none;
  border: 0;
  padding: 4px 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-menu { position: relative; display: none; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-drawer {
  position: absolute;
  right: 0;
  top: 52px;
  width: 224px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer-link, .mobile-drawer-btn {

  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.mobile-drawer-link:hover, .mobile-drawer-btn:hover {
  background: var(--surface-muted);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--primary);
}


.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--ink-dark);
  color: var(--on-dark);
  padding: 48px 32px;
  box-shadow: var(--shadow-md);
}
.hero-bg, .list-hero-bg, .closing-bg, .showcase-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
  pointer-events: none;
}
.hero-scrim, .list-hero-scrim, .closing-scrim, .showcase-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11, 15, 24, .95) 0%, rgba(11, 15, 24, .82) 55%, rgba(11, 15, 24, .52) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: center;
}
.hero-eyebrow {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark-accent);
  font-size: 13px;
  font-weight: 700;
}
.hero-wordmark-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hero-wordmark-row img { height: 42px; width: auto; }
.hero-wiki-pill {
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 700;
}
.hero-title { font-size: 36px; font-weight: 700; color: var(--on-dark); margin-bottom: 16px; }
.hero-desc { margin: 0 0 24px; color: var(--on-dark-soft); font-size: 16px; max-width: 60ch; }
.hero-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-chip {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--on-dark-soft);
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-renders { display: flex; align-items: flex-end; justify-content: flex-end; height: 380px; }
.render-secondary { height: 320px; width: auto; object-fit: contain; margin-right: -24px; }
.render-primary { height: 370px; width: auto; object-fit: contain; z-index: 2; }

.dossier-sheet {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.dossier-section {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);

  box-shadow: var(--shadow-sm);
}
.dossier-sheet .dossier-section {
  margin-top: 32px;
  padding: 32px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.section-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.section-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--primary); }
.section-heading { font-size: 28px; font-weight: 700; }
.section-lede { margin: 8px 0 0; font-size: 16px; color: var(--muted); max-width: 70ch; }
.section-all-link { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.section-all-link:hover { text-decoration: underline; }


.roster-portrait-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.portrait-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--ink-surface);
  color: var(--on-dark);
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.portrait-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.portrait-stage {
  position: relative;
  height: 168px;
  width: 100%;
  padding-top: 8px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-dark);
}
.portrait-stage img { height: 160px; width: auto; max-width: 100%; object-fit: contain; object-position: top center; }
.portrait-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 36px;
  background: linear-gradient(to top, var(--ink-surface) 0%, transparent 100%);
  pointer-events: none;
}
.portrait-info {
  position: relative;
  z-index: 2;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.portrait-info .status-pill {
  margin-bottom: 4px;
  padding: 2px 6px;
  font-size: 12px;
}
.portrait-faction {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-dark-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portrait-name {
  width: 100%;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--on-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portrait-role {
  width: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--on-dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.status-key-card .status-pill { white-space: normal; }
.portrait-card, .dossier-showcase {
  --tone-emerald: rgba(110, 231, 183, 1);
  --tone-sky: #38bdf8;
  --tone-amber: rgba(252, 211, 77, 1);
}
.tone-emerald { background: rgba(16, 185, 129, .14); color: var(--tone-emerald); border-color: rgba(16, 185, 129, .35); }
.tone-sky { background: rgba(14, 165, 233, .14); color: var(--tone-sky); border-color: rgba(14, 165, 233, .35); }
.tone-amber { background: rgba(245, 158, 11, .16); color: var(--tone-amber); border-color: rgba(245, 158, 11, .38); }
html.dark .tone-emerald, .portrait-card .tone-emerald, .dossier-showcase .tone-emerald { background: rgba(16, 185, 129, .2); }
html.dark .tone-sky, .portrait-card .tone-sky, .dossier-showcase .tone-sky { background: rgba(14, 165, 233, .2); }
html.dark .tone-amber, .portrait-card .tone-amber, .dossier-showcase .tone-amber { background: rgba(245, 158, 11, .2); }

.roster-additions-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.addition-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
}
.addition-card:hover { border-color: var(--primary); }
.addition-meta { min-width: 0; flex: 1; }
.addition-name { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addition-faction { margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quickstart-section { margin-top: 48px; }
.quickstart-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.start-card {
  display: flex;
  flex-direction: column;
  padding: 24px;

  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.start-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.start-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.start-num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--primary); }
.start-arrow { font-size: 18px; color: var(--muted); }
.start-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.start-desc { margin: 0; font-size: 14px; color: var(--muted); }


.updates-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.updates-rail { position: sticky; top: 84px; }
.updates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.list-grid-section { margin-top: 32px; }

.entry-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.entry-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.entry-card-media {
  position: relative;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-dark);
  aspect-ratio: 16 / 9;
}
.entry-card-media img { width: 100%; height: 100%; object-fit: cover; }
.char-cover-wrap .card-cutout {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: auto;
  height: 85%;
  object-fit: contain;
}
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.entry-card-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(200, 30, 43, .1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.card-badges .entry-card-cat {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entry-card-title { font-size: 18px; font-weight: 700; margin-top: 8px; }
.entry-card-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-card-date { margin: auto 0 0; padding-top: 12px; font-size: 12px; color: var(--muted); }

.quicklinks-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.quicklink-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.quicklink-item:hover { border-color: var(--primary); color: var(--primary); }
.quicklink-chevron { color: var(--primary); font-weight: 700; }

.explore-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.explore-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
}
.explore-card:hover { border-color: var(--primary); }
.explore-card-title { font-size: 18px; font-weight: 700; }
.explore-card-desc { margin: 8px 0 16px; font-size: 14px; color: var(--muted); }
.explore-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.explore-fact-item { padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.fact-label { margin: 0; font-size: 14px; font-weight: 700; }
.fact-detail { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.explore-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.explore-step-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.step-badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.explore-cta { margin: auto 0 0; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--primary); }


.closing-cta {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 48px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--ink-dark);
  color: var(--on-dark);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.closing-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.closing-title { font-size: 28px; font-weight: 700; color: var(--on-dark); }
.closing-desc { margin: 12px 0 24px; color: var(--on-dark-soft); }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.list-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--ink-dark);
  color: var(--on-dark);
  padding: 48px 32px;
  box-shadow: var(--shadow-md);
}
.list-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.list-hero-title { margin-top: 12px; font-size: 36px; font-weight: 700; color: var(--on-dark); }
.list-hero-desc { margin: 12px 0 0; color: var(--on-dark-soft); font-size: 16px; }

.status-key-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.status-key-card { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); }
.status-key-desc { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.roster-group { margin-top: 48px; }
.roster-group-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.roster-group-count { font-size: 14px; font-weight: 600; color: var(--muted); }

.progress-track { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 50; pointer-events: none; }
.progress-bar { height: 100%; width: 0%; background: var(--primary); }

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 24px;
  align-items: start;
}

.entry-main { margin-top: 0; min-width: 0; }
.compact-header { margin-top: 0; }
.legal-sheet { max-width: 780px; margin: 0 auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs-light { color: var(--on-dark-muted); }
.breadcrumbs-light a:hover { color: var(--on-dark); }


.entry-header { margin-top: 12px; }
.entry-kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.entry-title { font-size: 36px; font-weight: 700; margin-top: 8px; }
.entry-lede { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.entry-meta {
  margin-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.version-chip {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(200, 30, 43, .1);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}
.entry-meta-share { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.btn-inline-share {
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-inline-share:hover { border-color: var(--primary); color: var(--primary); }

.dossier-showcase {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--ink-dark);
  color: var(--on-dark);
}
.showcase-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
}
.showcase-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.showcase-faction {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(200, 30, 43, .24);
  border: 1px solid rgba(252, 165, 165, .35);
  color: var(--on-dark-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.showcase-specialty { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--on-dark); }
.showcase-detail { margin: 0 0 8px; font-size: 14px; color: var(--on-dark-soft); }
.showcase-sub { margin: 0; font-size: 14px; color: var(--on-dark-muted); }
.showcase-sub + .showcase-sub { margin-top: 6px; }
.showcase-portrait { height: 260px; width: auto; object-fit: contain; flex-shrink: 0; }

.entry-cover-box {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink-dark);
}
.entry-cover-box img { width: 100%; aspect-ratio: 16 / 9; max-height: 360px; object-fit: cover; }

.summary-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.summary-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.summary-text { margin: 8px 0 0; font-size: 14px; }


.prerelease-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, .38);
  background: rgba(245, 158, 11, .08);
  font-size: 14px;
}
.prerelease-title { margin: 0; font-weight: 700; }
.prerelease-text { margin: 4px 0 12px; color: var(--muted); }
.prerelease-legend { display: flex; flex-wrap: wrap; gap: 8px; }

.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
}
.status-confirmed { background: rgba(16, 185, 129, .14); color: var(--tone-emerald); border-color: rgba(16, 185, 129, .35); }
.status-demo { background: rgba(14, 165, 233, .14); color: var(--tone-sky); border-color: rgba(14, 165, 233, .35); }
.status-unconfirmed { background: rgba(245, 158, 11, .16); color: var(--tone-amber); border-color: rgba(245, 158, 11, .38); }

.callout {
  margin: 24px 0;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
}
.callout-info { background: rgba(14, 165, 233, .08); border-color: rgba(14, 165, 233, .35); }
.callout-tip { background: rgba(16, 185, 129, .08); border-color: rgba(16, 185, 129, .35); }
.callout-warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .38); }
.callout-danger { background: rgba(200, 30, 43, .1); border-color: rgba(200, 30, 43, .38); }
.callout-title { margin: 0 0 8px; font-weight: 700; }

.stat-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.stat-card-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.stat-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-cell { padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat-cell dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-cell dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; }

.mobile-toc {
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.mobile-toc summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.toc-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 4px; }
.toc-link { display: block; padding: 4px 8px; border-radius: var(--radius); font-size: 14px; color: var(--muted); text-decoration: none; }
.toc-link:hover { background: var(--surface-muted); color: var(--text); }
.toc-link.is-sub { padding-left: 24px; font-size: 12px; }


.prose { margin-top: 28px; max-width: 100%; }
.max-prose-wide { max-width: 100%; }
.prose h2 { margin-top: 32px; margin-bottom: 12px; font-size: 22px; font-weight: 700; scroll-margin-top: 80px; }
.prose h3 { margin-top: 24px; margin-bottom: 8px; font-size: 18px; font-weight: 700; scroll-margin-top: 80px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 24px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--primary);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-size: 0.875em;
}
.legal-updated { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;

  display: block;
  overflow-x: auto;
  font-size: 14px;
}
.prose th, .prose td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--surface-muted); font-weight: 700; }

.sources-box {
  margin-top: 32px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.sources-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.sources-list { margin: 0; padding-left: 24px; font-size: 14px; }
.sources-list a { color: var(--primary); }

.faq-section { margin-top: 32px; padding: 24px; }
.faq-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { flex-shrink: 0; transition: transform .15s ease; }
.faq-answer { padding: 0 16px 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.faq-answer p { margin: 12px 0 0; }
.faq-next-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }


.tags-row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.topic-chip:hover { border-color: var(--primary); color: var(--primary); }

.related-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
}
.related-card:hover { border-color: var(--primary); }
.related-card-title { margin-top: 8px; font-size: 16px; font-weight: 700; }
.related-card-desc { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.prev-next-nav { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prev-next-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
}
.prev-next-card:hover { border-color: var(--primary); }
.prev-next-right { text-align: right; }
.prev-next-label { font-size: 12px; color: var(--muted); }
.prev-next-title { margin-top: 4px; font-size: 14px; font-weight: 700; }

.correction-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.correction-box p { margin: 0; color: var(--muted); font-weight: 600; }
.correction-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }


.engage-section { margin-top: 32px; padding: 24px; }
.engage-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.engage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.engage-like-btn[data-gf-liked], .engage-like-btn[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-dark);
  border-color: var(--primary);
}
.engage-count { font-weight: 700; }
.engage-share-msg, .comment-msg { font-size: 14px; font-weight: 600; color: var(--primary); }
.engage-meta { font-size: 14px; color: var(--muted); font-weight: 600; }

.comments-block { margin-top: 24px; }
.comments-note { margin: 8px 0 16px; font-size: 14px; color: var(--muted); }
.comment-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.comment-reply-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  font-size: 14px;
}
.comment-form[data-gf-replying] .comment-reply-banner { display: flex; }
.field-label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.field-label input, .field-label textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
}
.comment-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comments-list[data-gf-empty]::before {
  content: "No comments yet. Share a helpful tip or question above.";
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 14px;
}
.comments-list[data-gf-off]::before {
  content: "Comments are currently closed on this page.";
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.comment-item { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); }
.comment-item[data-gf-owner] { border-color: var(--primary); }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.comment-owner-badge { padding: 3px 8px; border-radius: var(--radius-sm); background: var(--primary); color: var(--on-dark); font-size: 12px; font-weight: 700; line-height: 1.25; }
.comment-time, .comment-to { font-size: 12px; color: var(--muted); }
.comment-body { margin: 8px 0; font-size: 14px; }

.comment-replies { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; }


.entry-sidebar { min-width: 0; }
.sidebar-sticky {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.sidebar-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
}
.sidebar-card.toc-box { flex: 0 1 auto; max-height: 42%; }
.sidebar-card:not(.toc-box) { flex: 1 1 auto; min-height: 0; }
.sidebar-brand { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-title { font-size: 14px; font-weight: 700; margin: 0; }
.sidebar-group { margin-bottom: 16px; }
.sidebar-group:last-child { margin-bottom: 0; }
.sidebar-group-link { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; text-decoration: none; margin-bottom: 8px; }
.sidebar-group-link:hover { color: var(--primary); }
.sidebar-count { padding: 2px 7px; border-radius: var(--radius-sm); background: var(--surface-muted); font-size: 12px; line-height: 1.25; color: var(--muted); }
.sidebar-links { list-style: none; padding: 0 0 0 12px; margin: 0; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.sidebar-link { display: block; padding: 4px 8px; border-radius: var(--radius); font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-link:hover, .sidebar-link.is-active { background: rgba(200, 30, 43, .1); color: var(--primary); font-weight: 600; }

.filter-tabs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.filter-tab.is-active { background: var(--primary); color: var(--on-dark); border-color: var(--primary); }

.tags-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-pill-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.tag-pill-card:hover { border-color: var(--primary); color: var(--primary); }
.tag-pill-count { font-size: 12px; color: var(--muted); }


.not-found-sheet { max-width: 780px; margin: 0 auto; text-align: center; }
.not-found-code { margin: 0; font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--primary); }
.not-found-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.not-found-links { margin-top: 48px; text-align: left; }
.not-found-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.nav-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); text-decoration: none; }
.nav-tile:hover { border-color: var(--primary); }
.nav-tile span { font-size: 14px; color: var(--muted); }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background-color: var(--ink-dark);
  background-size: cover;
  background-position: center;
  color: var(--on-dark-soft);
  padding: 48px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-wordmark { height: 22px; width: auto; }
.footer-tagline { margin: 12px 0; font-size: 14px; color: var(--on-dark-muted); max-width: 44ch; }
.footer-sublinks { margin: 0; font-size: 14px; display: flex; gap: 8px; }
.footer-sublinks a { color: var(--on-dark-soft); text-decoration: none; }
.footer-sublinks a:hover, .footer-links a:hover { color: var(--on-dark-accent); text-decoration: underline; }
.footer-col-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--on-dark); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: var(--on-dark-muted); }
.footer-bottom p { margin: 4px 0; }
.footer-disclaimer { color: var(--on-dark-muted); }

.search-dialog {
  width: min(640px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.search-dialog::backdrop { background: rgba(11, 15, 24, .65); }
.search-modal { padding: 16px; }
.search-head { display: flex; gap: 8px; align-items: center; }
.search-head input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
.search-results { margin-top: 12px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.search-hit { display: block; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); text-decoration: none; }
.search-hit:hover { border-color: var(--primary); }
.search-hit-title { margin: 0; font-size: 14px; font-weight: 700; }
.search-hit-desc { margin: 4px 0 0; font-size: 12px; color: var(--muted); }


@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-renders { display: none; }
  .roster-portrait-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .roster-additions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quickstart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .updates-split { grid-template-columns: 1fr; }
  .updates-rail { position: static; }
  .entry-layout { grid-template-columns: 1fr; }
  .entry-sidebar { display: none; }
  .cards-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-key-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .primary-nav { display: none; }
  .mobile-menu { display: block; }
  .hide-mobile { display: none; }
}

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-banner, .list-hero, .dossier-sheet, .dossier-section, .closing-cta { padding: 24px 16px; }
  .hero-title, .list-hero-title, .entry-title { font-size: 28px; }
  .section-heading { font-size: 22px; }
  .roster-portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-additions-grid, .quickstart-grid, .updates-grid, .cards-grid-3, .explore-grid, .explore-facts, .related-grid, .prev-next-nav, .stat-grid, .not-found-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid { flex-direction: column; padding: 24px 16px; text-align: center; }
  .showcase-portrait { height: 200px; }
  .hero-cta-row .btn, .closing-actions .btn, .not-found-actions .btn, .faq-next-links .btn { width: 100%; }
  .prev-next-right { text-align: left; }
}

@media print {
  body.site-body, html.dark body.site-body { background-image: none !important; background-color: var(--primary-ink) !important; color: #000000 !important; }
  .site-header, .site-footer, .entry-sidebar, .progress-track, .engage-section, .correction-box, .mobile-toc { display: none !important; }
  .entry-layout { display: block; }
  .prose table { display: table; overflow: visible; }
}

/* Performance & UX polish (GPU background layer, content-visibility, focus-visible, reduced motion) */
body.site-body {
  background-image: none;
  background-attachment: scroll;
}
body.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  background-image: var(--site-bg-light, none);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
html.dark body.site-body::before { background-image: var(--site-bg-dark, none); }
html.dark.black body.site-body::before { background-image: none; }

.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
.cv-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.progress-bar {
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.site-footer {
  position: relative;
  overflow: hidden;
}
.site-footer > .container {
  position: relative;
  z-index: 1;
}
.footer-bg-img,
.footer-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.footer-bg-img {
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.footer-scrim {
  z-index: 0;
  background: linear-gradient(rgba(15, 19, 28, 0.88), rgba(15, 19, 28, 0.94));
}
.footer-links a {
  display: inline-block;
  padding: 4px 0;
}

.mobile-drawer-link.is-active {
  background: var(--surface-muted);
  color: var(--primary);
  font-weight: 700;
}

.mobile-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.mobile-toc summary::-webkit-details-marker { display: none; }
.toc-chevron {
  display: inline-block;
  transition: transform .15s ease;
}
.mobile-toc[open] .toc-chevron { transform: rotate(180deg); }
.toc-link.is-active {
  background: var(--surface-muted);
  color: var(--primary);
  font-weight: 700;
}

.search-hit.is-selected {
  border-color: var(--primary);
  background: var(--surface-muted);
}
.search-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.search-footer kbd {
  display: inline-block;
  padding: 1px 5px;
  margin-right: 4px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 35;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.back-to-top:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

:is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

@media print {
  body.site-body::before,
  .back-to-top {
    display: none !important;
  }
}