:root {
  --bg: #0b0f0a;
  --bg-2: #10160f;
  --bg-3: #161e14;
  --card: #1a2418;
  --card-2: #202c1d;
  --line: rgba(140, 168, 118, 0.18);
  --line-strong: rgba(140, 168, 118, 0.38);
  --grass: #5d8c3e;
  --grass-2: #74a84f;
  --grass-3: #9dcc6e;
  --dirt: #8b6239;
  --gold: #d4a84b;
  --sky: #7eb7d4;
  --danger: #d36b58;
  --warn: #e0b25a;
  --ok: #6fbf6a;
  --text: #eef3ea;
  --muted: #a9b5a4;
  --faint: #7d8a78;
  --white: #f7faf5;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --nav-h: 76px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 500px at 8% -10%, rgba(93, 140, 62, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(126, 183, 212, 0.08), transparent 50%),
    var(--bg);
  min-height: 100%;
  padding-top: var(--nav-h);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--grass-3); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--white); }
code, kbd, .path {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #0d130c;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.08em 0.42em;
}
pre {
  overflow: auto;
  background: #0d130c;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
pre code { border: 0; background: none; padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.table-wrap { overflow-x: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--grass);
  color: #061004;
  padding: 0.6rem 1rem;
  z-index: 80;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  min-height: var(--nav-h);
  background: rgba(10, 15, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(116, 168, 79, 0.14);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
  isolation: isolate;
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: max-content;
}
.brand img { width: 34px; height: 34px; }
.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  background: rgba(93, 140, 62, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  background: linear-gradient(#87c25c, var(--grass));
  color: #081206;
  box-shadow: 0 8px 22px rgba(93, 140, 62, 0.35);
}
.btn-primary:hover { color: #081206; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.btn-gold {
  background: linear-gradient(#efc56a, var(--gold));
  color: #2a1d08;
}
.btn-sm { padding: 0.48rem 0.85rem; font-size: 0.92rem; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 3.4rem 0 2.4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--grass-3);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.05;
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  margin: 0 0 1rem;
  color: var(--white);
  animation: fadeUp 0.8s ease-out backwards;
}
.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
  animation: fadeUp 0.8s ease-out 0.15s backwards;
}
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; animation: fadeUp 0.8s ease-out 0.3s backwards; }
.hero-art {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
}
.hero-art img, .prose img, .split img { width: 100%; display: block; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
  color: var(--faint);
  font-size: 0.92rem;
}
.hero-meta strong { color: var(--text); display: block; }

.page-hero {
  position: relative;
  z-index: 1;
  padding: 2.4rem 0 1.4rem;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--faint);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

.notice, .callout {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 1.1rem 0;
}
.callout.official { border-color: rgba(126, 183, 212, 0.4); background: rgba(126, 183, 212, 0.08); }
.callout.warn { border-color: rgba(224, 178, 90, 0.4); background: rgba(224, 178, 90, 0.08); }
.callout.danger { border-color: rgba(211, 107, 88, 0.4); background: rgba(211, 107, 88, 0.08); }
.callout.ok { border-color: rgba(111, 191, 106, 0.4); background: rgba(111, 191, 106, 0.08); }
.callout h3, .callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; font-size: 1rem; }

.section { position: relative; z-index: 1; padding: 2.6rem 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
  color: var(--white);
}
.section-intro { color: var(--muted); max-width: 48rem; margin: 0 0 1.6rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.card img.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 4px;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--white);
}
.card p { margin: 0; color: var(--muted); }
.card a.more {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
}
.split img, .frame {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #111;
  overflow: hidden;
}

.steps { counter-reset: step; display: grid; gap: 0.9rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grass);
  color: #081206;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-family: var(--display);
}
.step h3 { margin: 0 0 0.25rem; color: var(--white); font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #22301f;
  color: var(--white);
  font-weight: 700;
}
.table-wrap { overflow-x: auto; }

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1.4rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--white); }

.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.8rem;
  align-items: start;
}
.side {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.side nav {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.side a { display: block; color: var(--muted); text-decoration: none; padding: 0.28rem 0; }
.side a:hover { color: var(--white); }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 0.55rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--white);
}
.faq details p { color: var(--muted); margin: 0.6rem 0 0.2rem; }

.report {
  border-left: 4px solid var(--gold);
  background: var(--card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.report .meta { color: var(--faint); font-size: 0.86rem; }

.tool {
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.tool label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.tool input[type="range"] { width: 100%; accent-color: var(--grass); }
.tool output {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--grass-3);
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.gallery figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.gallery figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-band {
  margin: 1.4rem 0 0;
  padding: 1.6rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(93,140,62,0.22), rgba(139,98,57,0.18)),
    var(--card);
  border: 1px solid var(--line-strong);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: #090d08;
  padding: 2.4rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.4rem;
}
.site-footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 0 0 0.6rem;
}
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 0.18rem 0; }
.site-footer a:hover { color: var(--white); }
.legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.86rem;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0 0; }
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  background: rgba(0,0,0,0.18);
}

.search-box {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}
.search-box input {
  flex: 1;
  background: #0d130c;
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.issue-list a {
  display: block;
  padding: 0.85rem 1rem;
  margin: 0.45rem 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}
.issue-list a:hover { border-color: var(--grass); }
.issue-list small { display: block; color: var(--muted); }

.copy-row { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.copy-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #0d130c;
  color: var(--grass-3);
  border-radius: 8px;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
}

.prose h2 { margin-top: 2rem; }
.prose h3 {
  font-family: var(--display);
  color: var(--white);
  margin: 1.4rem 0 0.4rem;
}
.prose p, .prose ul, .prose ol { color: var(--muted); }
.prose li { margin: 0.28rem 0; }
.prose ul { padding-left: 1.15rem; }

@media (max-width: 980px) {
  .hero-grid, .split, .layout, .footer-grid, .cards, .gallery {
    grid-template-columns: 1fr;
  }
  .side { position: static; }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.4rem 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.stat b {
  display: block;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.15rem;
}
.stat span { color: var(--muted); font-size: 0.9rem; }

.figure-note {
  color: var(--faint);
  font-size: 0.88rem;
  margin: 0.45rem 0 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.choice-grid label {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}
.choice-grid input { margin-right: 0.4rem; }

#edition-result, #ram-advice {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(93, 140, 62, 0.12);
  border: 1px solid var(--line-strong);
}
#edition-result h3 { margin-top: 0; }

@media (max-width: 980px) {
  .stat-grid, .choice-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* -------------------------------------------------------------------------- */
/* 2026 subpages refresh: same professional style as homepage                 */
/* -------------------------------------------------------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px rgba(93,140,62,.28); }
  50% { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 36px rgba(93,140,62,.45); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:root {
  --max: 1240px;
  --nav-h: 68px;
  --radius: 14px;
  --radius-sm: 10px;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.68;
  background:
    radial-gradient(1000px 420px at 12% -8%, rgba(116, 168, 79, 0.16), transparent 52%),
    radial-gradient(760px 360px at 100% 0%, rgba(126, 183, 212, 0.06), transparent 45%),
    #0e1410;
  padding-top: var(--nav-h);
}

body::before {
  opacity: 0.1;
  background-size: 40px 40px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  min-height: var(--nav-h);
  background: rgba(10, 15, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(116, 168, 79, 0.14);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
  isolation: isolate;
}

.site-header.is-scrolled {
  background: rgba(10, 15, 11, 0.92);
  border-bottom-color: rgba(116, 168, 79, 0.32);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
  position: relative;
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 4px;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.92;
}

.brand__icon {
  width: 34px;
  height: 34px;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 6px rgba(116, 168, 79, 0.25));
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  justify-content: center;
}

.brand__title {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f3f6ee;
}

.nav a {
  position: relative;
  padding: 10px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: #c4d0bd;
  border-radius: 4px;
  transition: color 0.18s ease, background 0.18s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 36px;
  background: transparent;
}

.nav a:hover {
  color: #f3f6ee;
  background: rgba(116, 168, 79, 0.08);
}

.nav a[aria-current="page"]:not(.nav-cta) {
  color: #8fd45a;
  background: transparent;
}

.nav a[aria-current="page"]:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: #8fd45a;
  box-shadow: 0 0 8px rgba(143, 212, 90, 0.7);
  border-radius: 1px;
}

.nav-cta,
.nav a.nav-cta,
.nav a.nav-cta[aria-current="page"] {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0e1410 !important;
  background: linear-gradient(180deg, #8fd45a 0%, #5d8c3e 100%) !important;
  border: 2px solid #2d4d1d;
  border-radius: 4px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 3px 0 #1c3a14, 0 6px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  height: 36px !important;
  text-decoration: none;
}

.nav-cta::after,
.nav a.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 5px 0 #1c3a14, 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 22px rgba(116, 168, 79, 0.45);
}

.nav-cta:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 1px 0 #1c3a14;
}

.nav-cta .dl-ic {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: #0e1410;
  clip-path: polygon(40% 0, 60% 0, 60% 55%, 80% 55%, 50% 100%, 20% 55%, 40% 55%);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(116, 168, 79, 0.4);
  border-radius: 4px;
  background: rgba(26, 34, 27, 0.6);
  transition: border-color 0.15s ease, background 0.15s ease;
  padding: 0;
  cursor: pointer;
}

.menu-btn:hover {
  border-color: #74a84f;
  background: rgba(116, 168, 79, 0.10);
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  display: block;
  position: absolute;
  width: 18px;
  height: 2px;
  background: #f3f6ee;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-btn span {
  position: relative;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.menu-btn.is-open span {
  background: transparent;
}

.menu-btn.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    left: 16px;
    right: 16px;
    z-index: 999;
    background: rgba(10, 15, 11, 0.98);
    border: 1.5px solid rgba(116, 168, 79, 0.32);
    border-radius: 8px;
    padding: 10px;
    gap: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(116, 168, 79, 0.08);
  }

  .nav.is-open a {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    border-radius: 4px;
    height: auto;
    justify-content: flex-start;
  }

  .nav.is-open a[aria-current="page"] {
    background: rgba(116, 168, 79, 0.12);
  }

  .nav.is-open a[aria-current="page"]::after {
    display: none;
  }

  .nav.is-open .nav-cta {
    margin: 6px 0 0;
    justify-content: center;
    padding: 14px 18px;
    font-size: 11px;
    height: auto !important;
  }
}

.page-hero {
  padding: 2.3rem 0 1.1rem;
}

.crumbs {
  margin-top: 0.25rem;
  margin-bottom: 0.8rem;
  color: #8a9a85;
}

.crumbs a {
  color: #c4d0bd;
}

.page-hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.lede {
  color: #c4d0bd;
  font-size: 1.08rem;
  max-width: 52rem;
}

.hero-actions {
  margin-top: 1rem;
}

.btn {
  border-radius: 10px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #8fd45a 0%, #6fa84a 100%);
  color: #0e1410;
  border: 1px solid rgba(45, 77, 29, 0.85);
  box-shadow: 0 8px 24px rgba(93, 140, 62, 0.3);
  animation: pulseGlow 4s infinite ease-in-out alternate;
}

.btn-primary:hover {
  color: #0e1410;
  filter: brightness(1.05);
  animation-play-state: paused;
}

.btn-ghost {
  border-radius: 10px;
  border-color: rgba(116, 168, 79, 0.32);
  color: #f3f6ee;
}

.section {
  padding: 2.5rem 0;
}

.section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  margin-bottom: 0.6rem;
}

.section-intro,
.prose p,
.prose li {
  color: #c4d0bd;
}

.card,
.step,
.toc,
.issue-list a,
.faq details,
.tool,
table,
.report,
.cta-band {
  border-color: rgba(116, 168, 79, 0.2);
  background: linear-gradient(145deg, rgba(34, 43, 34, 0.85), rgba(23, 31, 24, 0.94));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.callout,
.notice {
  border-radius: 12px;
  border-color: rgba(116, 168, 79, 0.25);
}

.callout.official {
  border-color: rgba(126, 183, 212, 0.3);
}

.callout.warn {
  border-color: rgba(224, 178, 90, 0.35);
}

.callout.danger {
  border-color: rgba(211, 107, 88, 0.4);
}

.callout.ok {
  border-color: rgba(111, 191, 106, 0.35);
}

.step::before {
  border-radius: 8px;
}

main .hero-art,
main .frame,
main .gallery figure,
main .split img,
main .prose > img,
main .prose figure,
main .section > .wrap > img {
  border-radius: 14px;
  border: 1px solid rgba(116, 168, 79, 0.24);
  background: #0a0f0a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

main .hero-art > img,
main .frame > img,
main .gallery figure > img,
main .split img,
main .prose > img,
main .prose figure > img,
main .section > .wrap > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

main .prose > img,
main .section > .wrap > img {
  margin: 1rem 0;
}

.gallery figure > img {
  aspect-ratio: 16 / 9;
  background: #0a0f0a;
}

.figure-note,
.gallery figcaption {
  color: #8a9a85;
}

.site-footer {
  border-top: 1px solid rgba(116, 168, 79, 0.18);
  background: linear-gradient(180deg, rgba(10, 15, 11, 0.65), #080c09);
  padding: 2.6rem 0 1.5rem;
}

.site-footer h2 {
  color: #8fd45a;
  letter-spacing: 0.1em;
}

.site-footer a:hover {
  color: #8fd45a;
}

.legal {
  color: #8a9a85;
  border-top-color: rgba(116, 168, 79, 0.16);
}

@media (max-width: 980px) {
  .nav.open .nav-links {
    border-bottom: 1px solid rgba(116, 168, 79, 0.2);
    background: rgba(10, 15, 11, 0.98);
    gap: 0.2rem;
  }

  .nav.open .nav-links a {
    padding: 0.8rem 0.85rem;
    border-radius: 8px;
  }

  .nav.open .btn {
    margin: 0.6rem 0.8rem 1rem;
  }
}

/* Real-image polish for subpages */
.section > .wrap,
.section > .wrap.prose,
.page-hero > .wrap {
  max-width: 1120px;
}

.page-hero {
  padding-bottom: 1.4rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lede {
  max-width: 64ch;
}

.page-visual {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #121a13 0%, #0a0f0a 100%);
  border: 1px solid rgba(116, 168, 79, 0.25);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.prose figure {
  margin: 1rem 0 1.5rem;
}

.prose figure .page-visual {
  margin: 0;
}

.prose figure figcaption {
  margin-top: 0.65rem;
  color: #8a9a85;
}

.split {
  align-items: start;
}

.split figure {
  margin: 0;
}

.split .page-visual {
  min-height: 320px;
}

@media (max-width: 980px) {
  .page-hero h1 {
    max-width: none;
  }

  .split .page-visual {
    min-height: 0;
  }
}

/* Language switcher */
.lang-switch {
  position: relative;
  margin-inline-end: 8px;
  flex-shrink: 0;
  z-index: 1002;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.35rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(116, 168, 79, 0.28);
  border-radius: 9999px;
  background: rgba(14, 20, 16, 0.85);
  color: #d8e8d0;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn {
  border-color: rgba(168, 232, 106, 0.45);
  background: rgba(20, 30, 22, 0.95);
}

.lang-switch-globe {
  font-size: 0.85rem;
  line-height: 1;
}

.lang-switch-chevron {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.18s ease;
}

.lang-switch.is-open .lang-switch-chevron {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(116, 168, 79, 0.25);
  border-radius: 12px;
  background: #0e1410;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 1003;
}

.lang-switch-menu[hidden] {
  display: none !important;
}

.lang-switch.is-open .lang-switch-menu {
  display: block;
}

.lang-switch-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: #c8d8c0;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switch-menu a:hover {
  background: rgba(116, 168, 79, 0.12);
  color: #e8f4e0;
}

.lang-switch-menu a[aria-current="true"] {
  background: rgba(116, 168, 79, 0.22);
  color: #a8e86a;
}

html[dir="rtl"] .site-header__bar {
  direction: rtl;
}

html[dir="rtl"] .nav {
  direction: rtl;
}

html[dir="rtl"] .crumbs,
html[dir="rtl"] .prose,
html[dir="rtl"] .foot__grid {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .lang-switch-menu {
  inset-inline-end: auto;
  inset-inline-start: 0;
}

html[lang="zh-CN"] body,
html[lang="ja"] body,
html[lang="hi"] body {
  font-family: "Source Sans 3", "Noto Sans SC", "Noto Sans JP", "Noto Sans Devanagari", sans-serif;
}

html[lang="he"] body {
  font-family: "Source Sans 3", "Noto Sans Hebrew", sans-serif;
}

@media (max-width: 1080px) {
  .site-header__bar {
    flex-wrap: nowrap;
  }

  .site-header__bar .lang-switch {
    order: 2;
    margin-inline-start: auto;
    margin-inline-end: 0;
  }

  .site-header__bar .menu-btn {
    order: 3;
    flex-shrink: 0;
  }

  .lang-switch-menu {
    position: fixed;
    top: calc(var(--nav-h) + 6px);
    inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
    inset-inline-start: auto;
    max-height: min(70vh, 360px);
    overflow-y: auto;
    z-index: 1100;
  }
}
