:root {
  color-scheme: dark;
  --ink: #eef5ef;
  --muted: #9eafa3;
  --line: #29382f;
  --paper: #0d120f;
  --wash: #121a15;
  --surface: #151e18;
  --surface-raised: #19241d;
  --surface-soft: #101712;
  --leaf: #68ca78;
  --leaf-dark: #8be397;
  --grass: #72cf7f;
  --sky: #82bcea;
  --sky-bright: #91d9e8;
  --berry: #c99ad2;
  --soil: #8b532f;
  --sun: #e3ba54;
  --danger: #ef8c8c;
  --focus: #8bc6f2;
  --header: rgba(13, 18, 15, 0.86);
  --hero-glow: rgba(87, 173, 105, 0.13);
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #1d2a22;
  --muted: #5d6d63;
  --line: #d9e2dc;
  --paper: #f6f8f4;
  --wash: #edf2ed;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f0f4ef;
  --leaf: #287a3b;
  --leaf-dark: #1f6631;
  --grass: #4ea65f;
  --sky: #346f9a;
  --sky-bright: #3fa7bb;
  --berry: #8c5a98;
  --sun: #b68416;
  --danger: #a33e3e;
  --focus: #155e98;
  --header: rgba(246, 248, 244, 0.9);
  --hero-glow: rgba(74, 155, 90, 0.1);
  --shadow: 0 18px 46px rgba(33, 54, 40, 0.1);
  --shadow-small: 0 7px 20px rgba(33, 54, 40, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, var(--hero-glow), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

:where(a, button, input, select, textarea, [tabindex]) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(22, 115, 74, 0.18);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

:where(h1, h2, h3, p, li, a, button, code, output) { overflow-wrap: anywhere; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus-visible { transform: translateY(0); }

.container {
  width: min(1152px, calc(100% - 32px));
  min-width: 0;
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(16px) saturate(120%);
}

.reading-progress {
  position: fixed;
  z-index: 19;
  top: calc(64px + env(safe-area-inset-top));
  left: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: var(--line);
  pointer-events: none;
}
.reading-progress[hidden] { display: none; }
.reading-progress span {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow-small); }
.brand-copy { min-width: 0; display: grid; line-height: 1.08; }
.brand-copy strong { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-style: italic; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.desktop-nav a, .mobile-nav a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle,
.menu-button {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle { display: grid; place-items: center; }
.theme-toggle:hover, .menu-button:hover { border-color: var(--grass); color: var(--ink); background: var(--surface-raised); }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }

.menu-button {
  display: none;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.mobile-nav[data-open] { display: grid; gap: 12px; }
.mobile-nav a { min-height: 44px; display: flex; align-items: center; padding-block: 8px; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .22;
  background:
    radial-gradient(circle at 14% 20%, rgba(102, 199, 119, .3), transparent 28%),
    radial-gradient(circle at 88% 25%, rgba(90, 151, 114, .16), transparent 30%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-block: 58px 54px;
}

.home-hero { padding-block: 30px 10px; border-bottom: 0; background: transparent; }
.home-hero::before { display: none; }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 42px; align-items: center; }
.home-hero .hero-layout { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; padding: 24px 28px; background: linear-gradient(140deg, var(--surface-raised), var(--surface)); box-shadow: var(--shadow-small); }
.home-hero .hero-content { padding-block: 16px; }
.hero-visual { position: relative; margin: 0; }
.hero-visual::before { content: ""; position: absolute; inset: -20% -12%; background: radial-gradient(circle, rgba(104, 202, 120, .18), transparent 62%); pointer-events: none; }
.hero-visual img { position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-small); }
.hero-visual figcaption { position: absolute; left: 22px; bottom: 20px; display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 13px; background: rgba(25, 50, 41, .88); color: white; font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); }
.live-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #74e875; box-shadow: 0 0 0 5px rgba(116, 232, 117, .18); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--leaf); }

h1, h2, h3 { line-height: 1.18; letter-spacing: 0; text-wrap: balance; }
h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 5.2vw, 58px); text-wrap: balance; }
h2 { margin: 0 0 14px; font-size: clamp(26px, 3.5vw, 36px); }
h3 { margin: 0 0 8px; font-size: 20px; }

.hero-lead { max-width: 620px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.hero-actions, .page-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 17px;
  background: var(--leaf);
  color: #0a140d;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--grass); background: var(--surface-raised); }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button-quiet:hover { background: var(--wash); color: var(--ink); }
.button-sun { background: var(--sun); color: #49350a; }
.button-sun:hover { background: #ffd667; }
.button-light { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-light:hover { background: var(--wash); }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--wash); }
.trust-grid { min-height: 74px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 22px; }
.trust-item { font-size: 14px; color: var(--muted); }
.trust-item strong { display: block; color: var(--ink); font-size: 15px; }

.section { padding-block: 54px; background: transparent; }
.codes-section { padding-top: 48px; }
.section-tinted { border-block: 1px solid var(--line); background: var(--wash); }
.section-heading { max-width: 720px; margin-bottom: 24px; }
.section-heading p { margin: 0; color: var(--muted); }

.codes-list { display: grid; gap: 12px; }
.code-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(220px, 2fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--leaf);
  border-radius: 6px;
  padding: 18px;
  background: var(--surface);
}

.code-value { color: var(--leaf-dark); font: 800 17px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.code-reward { color: var(--ink); font-weight: 700; }
.code-note { margin-top: 3px; color: var(--muted); font-size: 13px; }
.code-evidence { margin-top: 6px; color: var(--sky); font-size: 12px; font-weight: 700; }
.status-badge {
  width: fit-content;
  display: inline-flex;
  margin-top: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  background: color-mix(in srgb, var(--leaf) 14%, var(--surface));
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-expired { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.code-row-expired { border-left-color: var(--danger); }

.notice {
  margin-top: 18px;
  border-left: 4px solid var(--sun);
  padding: 12px 16px;
  background: color-mix(in srgb, var(--sun) 10%, var(--surface));
  color: var(--ink);
  font-size: 14px;
}

.citable-answer { background: var(--wash); }
.citable-answer .container { border-left: 4px solid var(--leaf); padding-block: 18px; padding-left: 22px; }
.citable-summary { max-width: 860px; margin: 8px 0 14px; color: var(--ink); font-size: clamp(18px, 2.2vw, 23px); font-weight: 750; line-height: 1.45; }
.citable-sources { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.citable-sources a { color: var(--sky); font-size: 13px; font-weight: 800; }
.citable-limitation { max-width: 860px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.featured-update {
  padding-block: 12px 30px;
  background: transparent;
}
.featured-update-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 34px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); }
.featured-update-copy h2 { margin-block: 10px 12px; color: var(--ink); font-size: clamp(26px, 3.5vw, 36px); }
.featured-update-copy p { max-width: 760px; margin: 0 0 20px; color: var(--muted); }
.featured-update-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.live-pill { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: #b94e2f; color: white; }
.featured-update-facts { display: grid; gap: 10px; }
.featured-update-facts div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-soft); }
.featured-update-facts strong { display: block; color: var(--ink); font-size: 18px; }
.featured-update-facts span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 850px; margin: 22px 0 0; }
.hero-stats div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: var(--surface-soft); }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { color: var(--leaf-dark); font-size: 16px; }
.hero-stats span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.about-stats div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--surface); }
.about-stats dt { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.about-stats dd { margin: 3px 0 0; color: var(--ink); font-weight: 850; }
.final-cta { border-top: 1px solid var(--line); padding-block: 54px; background: #101b14; color: white; text-align: center; }
.final-cta h2 { margin-bottom: 10px; color: white; }
.final-cta p { max-width: 720px; margin: 0 auto 24px; color: #d6e5da; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .button-secondary { border-color: rgba(255,255,255,.55); color: white; }
.final-cta .button-secondary:hover { color: var(--leaf-dark); }

.heading-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.heading-row > div { max-width: 760px; }
.text-link { flex: none; color: var(--leaf-dark); font-weight: 850; text-underline-offset: 4px; }
.latest-section { padding-block: 42px 24px; }
.update-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.update-item { display: grid; grid-template-columns: 100px 118px minmax(0, 1fr) auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 15px 17px; text-decoration: none; }
.update-item:last-child { border-bottom: 0; }
.update-item:hover { background: linear-gradient(90deg, rgba(116, 207, 78, .08), transparent); }
.update-item time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 750; }
.update-label { width: fit-content; border-radius: 999px; padding: 4px 9px; background: color-mix(in srgb, var(--leaf) 14%, var(--surface)); color: var(--leaf-dark); font-size: 11px; font-weight: 850; }
.update-copy { min-width: 0; }
.update-copy strong, .update-copy small { display: block; }
.update-copy strong { color: var(--ink); font-size: 17px; }
.update-copy small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.update-item > span:last-child { color: var(--berry); font-size: 22px; }

.player-path { scroll-margin-top: 80px; }
.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.path-card { position: relative; min-height: 174px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 19px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.path-card:hover { transform: translateY(-2px); border-color: var(--grass); background: var(--surface-raised); }
.path-number { grid-column: 1 / -1; color: var(--muted); font-size: 13px; font-weight: 900; line-height: 1; }
.path-card small, .path-card strong, .path-card span span { display: block; }
.path-card small { color: var(--leaf); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.path-card strong { margin-top: 7px; font-size: 18px; line-height: 1.25; }
.path-card span span { margin-top: 9px; color: var(--muted); font-size: 14px; }
.path-card b { align-self: end; color: var(--leaf); font-size: 18px; }

.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.system-card { min-height: 166px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); text-decoration: none; }
.system-card:hover { border-color: var(--grass); background: var(--surface-raised); }
.system-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); font-size: 21px; }
.system-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--leaf); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.system-card small, .system-card strong, .system-card span span { display: block; }
.system-card small { color: var(--leaf); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.system-card strong { margin-top: 5px; font-size: 19px; }
.system-card span span { margin-top: 7px; color: var(--muted); font-size: 13px; }
.system-card b { align-self: end; color: var(--leaf-dark); }

.pulse-section { border-block: 1px solid var(--line); background: var(--wash); }
.pulse-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: 54px; align-items: center; }
.pulse-layout > div:first-child p:last-child { max-width: 650px; color: var(--muted); }
.pulse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pulse-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: var(--surface); }
.pulse-grid strong, .pulse-grid span { display: block; }
.pulse-grid strong { color: var(--sky); font-size: 19px; }
.pulse-grid span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.official-snapshot { border-block: 1px solid var(--line); padding-block: 54px; overflow: hidden; background: radial-gradient(circle at 85% 20%, rgba(104, 202, 120, .12), transparent 26%), #101813; color: white; }
.snapshot-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 58px; align-items: center; }
.official-snapshot .eyebrow { color: #9ef0ab; }
.official-snapshot p { max-width: 690px; color: #d7e8df; }
.official-snapshot dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.official-snapshot dl div { border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 16px; background: rgba(255,255,255,.08); }
.official-snapshot dt { color: #b9d4ca; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.official-snapshot dd { margin: 4px 0 0; color: white; font-size: 17px; font-weight: 900; overflow-wrap: anywhere; }

.guide-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guide-directory a { min-width: 0; display: block; border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: var(--surface); text-decoration: none; }
.guide-directory a:hover { border-color: var(--grass); box-shadow: var(--shadow-small); }
.guide-directory strong, .guide-directory span { display: block; }
.guide-directory strong { color: var(--leaf-dark); }
.guide-directory span { display: -webkit-box; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.source-notes { padding-block: 32px; }
.source-notes details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.source-notes summary { padding: 16px 18px; color: var(--muted); font-size: 14px; font-weight: 800; cursor: pointer; }
.source-notes-body { border-top: 1px solid var(--line); padding: 18px; }
.source-notes-body > p { max-width: 780px; color: var(--muted); }
.source-notes-body .citable-answer { background: transparent; }
.source-notes-body .citable-answer .container { width: 100%; }

.catalog-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.catalog-group { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); }
.catalog-group header { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.catalog-group h3 { margin: 0; font-size: 17px; }
.catalog-group header span { color: var(--muted); font-size: 12px; font-weight: 800; }
.catalog-group ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.catalog-group li { border-radius: 999px; padding: 5px 9px; background: color-mix(in srgb, var(--leaf) 12%, var(--surface)); color: var(--leaf-dark); font-size: 12px; font-weight: 750; }
.catalog-table th small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 650; }
.catalog-status { display: inline-flex; border-radius: 999px; padding: 3px 8px; background: color-mix(in srgb, var(--leaf) 12%, var(--surface)); color: var(--leaf-dark); font-size: 11px; font-weight: 800; }
.status-pack { background: color-mix(in srgb, var(--sky) 14%, var(--surface)); color: var(--sky); }
.status-event { background: color-mix(in srgb, var(--sun) 14%, var(--surface)); color: var(--sun); }
.status-special { background: color-mix(in srgb, var(--berry) 14%, var(--surface)); color: var(--berry); }
.status-reported-unreleased { background: var(--wash); color: var(--muted); }

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 22px;
  background: var(--wash);
}
.empty-state p { margin: 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--surface); }
.feature-card p { margin: 0 0 16px; color: var(--muted); }
.feature-card a { color: var(--leaf); font-weight: 800; text-decoration: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 46px; }
.split img { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-small); }
.plain-list { padding-left: 22px; }
.plain-list li + li { margin-top: 10px; }

.ad-band { border-block: 1px solid var(--line); padding-block: 24px; background: var(--surface-soft); text-align: center; }
.native-ad {
  min-height: 180px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: var(--wash);
  overflow: hidden;
}
.native-ad [id^="container-"]:empty { min-height: 120px; display: grid; place-items: center; }
.native-ad [id^="container-"]:empty::before { content: "Sponsored placement may be hidden by browser privacy settings."; max-width: 340px; color: var(--muted); font-size: 12px; text-align: center; }
.ad-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ad-placeholder { min-height: 90px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }

.page-hero { padding-block: 58px 42px; border-bottom: 1px solid var(--line); background: var(--wash); }
.page-hero h1 { color: var(--ink); font-size: clamp(34px, 5vw, 52px); }
.page-hero .eyebrow { color: var(--leaf); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 18px; }
.language-switcher { border-bottom: 1px solid var(--line); padding-block: 14px; background: var(--paper); }
.language-switcher .page-actions { align-items: center; margin-top: 0; }
.language-switcher .button { min-height: 40px; padding: 7px 12px; }
.breadcrumb { margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--leaf); }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 64px; align-items: start; }
.article-layout > article { min-width: 0; }
.article-toc { margin-bottom: 24px; border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: 6px; padding: 18px 20px; background: var(--wash); }
.article-toc strong { display: block; margin-bottom: 8px; }
.article-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.article-toc li { break-inside: avoid; margin-block: 4px; color: var(--muted); }
.article-toc a { color: var(--leaf-dark); font-size: 14px; font-weight: 700; text-underline-offset: 3px; }
.article-toc a[aria-current="location"] { color: var(--ink); text-decoration-thickness: 2px; }
.article-section { padding-block: 28px; border-bottom: 1px solid var(--line); }
.article-section[id] { scroll-margin-top: 88px; }
.article-section:first-child { padding-top: 0; }
.article-section p { color: var(--muted); }
.mutation-calculator {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--surface);
}
.calculator-grid { display: grid; grid-template-columns: 1fr .72fr 1.1fr; gap: 14px; margin-top: 20px; }
.calculator-grid label { color: var(--ink); font-size: 13px; font-weight: 800; }
.calculator-grid input,
.calculator-grid select {
  width: 100%;
  min-height: 46px;
  display: block;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
}
.calculator-grid input:focus-visible,
.calculator-grid select:focus-visible { outline: 3px solid rgba(22, 115, 74, .18); border-color: var(--leaf); }
.calculator-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border-left: 4px solid var(--leaf);
  padding: 14px 16px;
  background: var(--paper);
}
.calculator-result span { color: var(--muted); font-size: 13px; font-weight: 800; }
.calculator-result output { color: var(--leaf-dark); font-size: clamp(24px, 4vw, 34px); font-weight: 900; }
.calculator-note { margin-bottom: 0; color: var(--muted) !important; font-size: 12px; }
.data-table-wrap { max-width: 100%; margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.data-table caption { padding: 12px 14px; background: var(--wash); color: var(--muted); font-size: 12px; text-align: left; }
.data-table th,
.data-table td { border-top: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.data-table thead th { border-top: 0; background: var(--wash); color: var(--ink); font-size: 12px; text-transform: uppercase; }
.data-table tbody th { color: var(--ink); white-space: nowrap; }
.confidence { display: inline-flex; width: fit-content; margin-right: 4px; border-radius: 999px; padding: 2px 7px; font-size: 11px; font-weight: 900; }
.confidence-strong { background: color-mix(in srgb, var(--leaf) 14%, var(--surface)); color: var(--leaf-dark); }
.confidence-caution { background: color-mix(in srgb, var(--sun) 14%, var(--surface)); color: var(--sun); }
.confidence-limited { background: color-mix(in srgb, var(--sky) 14%, var(--surface)); color: var(--sky); }
.steps { padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 42px; padding-left: 52px; }
.steps li + li { margin-top: 18px; }
.steps li::before {
  position: absolute;
  left: 0;
  top: -4px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: white;
  content: counter(steps);
  counter-increment: steps;
  font-weight: 800;
}

.aside-panel { position: sticky; top: 88px; border-left: 3px solid var(--sky); padding-left: 18px; }
.aside-panel p { color: var(--muted); font-size: 14px; }
.aside-next { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.aside-next span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.aside-next a { color: var(--leaf-dark); font-size: 14px; font-weight: 800; text-underline-offset: 3px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { padding-block: 18px; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 17px; }
.faq-item p { margin: 0; color: var(--muted); }

.sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sources a { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; color: var(--sky); font-size: 14px; font-weight: 700; text-decoration: none; }
.sources a:hover { border-color: var(--grass); background: var(--wash); }
.source-kind { flex: none; border-radius: 999px; padding: 2px 7px; background: #e7f0f7; color: #315b7c; font-size: 10px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.dataset-license { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.dataset-license a { color: var(--sky); font-weight: 800; }

.site-footer { border-top: 1px solid var(--line); padding-block: 40px; background: #0a0f0c; color: #dbe8df; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.footer-grid-network { grid-template-columns: 2fr 1fr 1fr; }
.footer-grid > * { min-width: 0; }
.footer-grid p { max-width: 640px; color: #b8c9bd; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 18px; }
.footer-links a { color: white; font-size: 14px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid #31473a; color: #9fb2a5; font-size: 12px; }

@media (max-width: 1000px) {
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 18px; gap: 12px; }
  .feature-grid, .split, .article-layout, .footer-grid, .hero-layout, .pulse-layout, .snapshot-layout { grid-template-columns: 1fr; }
  .featured-update-layout { grid-template-columns: 1fr; gap: 24px; }
  .hero-layout { gap: 24px; }
  .home-hero .hero-layout { padding: 24px; }
  .hero-content { max-width: 720px; padding-bottom: 18px; }
  .hero-visual { width: 100%; margin: 0; }
  .system-grid, .guide-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-stats { grid-template-columns: 1fr; }
  .article-layout { gap: 36px; }
  .aside-panel { position: static; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1152px); }
  .home-hero { padding-top: 16px; }
  .home-hero .hero-layout { border-radius: 20px; padding: 18px; }
  .hero-content { padding-block: 24px 16px; }
  .hero-visual { width: 100%; margin-bottom: 0; }
  .hero-visual::before { inset: -10%; }
  .hero-visual img { border-width: 1px; border-radius: 14px; }
  .hero-visual figcaption { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .hero-stats { grid-template-columns: 1fr; }
  .heading-row { align-items: start; flex-direction: column; gap: 12px; }
  .update-item { grid-template-columns: 1fr auto; gap: 7px 12px; padding-block: 16px; }
  .update-item time, .update-label { grid-column: auto; }
  .update-copy { grid-column: 1 / -1; }
  .update-item > span:last-child { display: none; }
  .path-grid, .system-grid, .guide-directory, .catalog-groups, .pulse-grid, .official-snapshot dl { grid-template-columns: 1fr; }
  .path-card { min-height: 0; grid-template-columns: 1fr auto; }
  .path-card b { display: none; }
  .system-card { min-height: 0; }
  .code-row { grid-template-columns: 1fr; gap: 10px; }
  .code-row .button { width: 100%; }
  .section { padding-block: 44px; }
  .native-ad { min-height: 250px; }
  .article-toc ol { columns: 1; }
  .mutation-calculator { padding: 18px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .calculator-result { align-items: flex-start; flex-direction: column; }
  .sources { grid-template-columns: 1fr; }
}

@media (max-height: 640px) {
  .hero-content { padding-block: 42px 36px; }
}

@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;
    scroll-behavior: auto !important;
  }
}
