/* =========================================================
   7安装游戏站 · 共享样式 / assets/site.css
   暖纸底 + 深墨绿文字 + 草原青绿骨架 + 暖橙动作高亮
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg, video { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--prairie); }

/* ---------- 2. Tokens ---------- */
:root {
  --paper: #F6F0E2;
  --ink: #0E2A23;
  --prairie: #1F8A70;
  --sky: #3E8FB0;
  --orange: #F28C28;
  --sand: #E3D3B4;
  --mist: #DCE9E2;
  --card: #FFFBF2;
  --glass: rgba(255, 255, 255, 0.62);
  --near-black: #101B16;
  --danger: #B5452F;

  --ink-70: rgba(14, 42, 35, 0.72);
  --ink-55: rgba(14, 42, 35, 0.56);
  --line: rgba(14, 42, 35, 0.16);
  --line-soft: rgba(14, 42, 35, 0.09);
  --on-dark: #F6F0E2;
  --on-dark-70: rgba(246, 240, 226, 0.72);
  --on-dark-45: rgba(246, 240, 226, 0.45);
  --line-dark: rgba(246, 240, 226, 0.16);

  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shell: 1180px;
  --gutter: clamp(14px, 4vw, 40px);

  --shadow-1: 0 18px 40px -30px rgba(14, 42, 35, 0.9);
  --shadow-2: 0 22px 48px -24px rgba(14, 42, 35, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
html {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(14, 42, 35, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 6vw, 4.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

::selection {
  background: rgba(242, 140, 40, 0.3);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--prairie);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer :focus-visible { outline-color: var(--orange); }

/* ---------- 4. Utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--prairie);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  color: var(--ink-70);
  max-width: 56ch;
  line-height: 1.8;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: clamp(28px, 5vw, 48px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.section-title { margin: 0; }

.prose { max-width: 64ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.6em 0 0.6em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.1em; list-style: disc; }
.prose li { margin-bottom: 0.4em; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #23130A;
  box-shadow: 0 10px 22px -14px rgba(242, 140, 40, 0.95);
}

.btn-primary:hover {
  background: #FF9B38;
  box-shadow: 0 14px 26px -14px rgba(242, 140, 40, 1);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14, 42, 35, 0.26);
}

.btn-ghost:hover {
  background: rgba(31, 138, 112, 0.12);
  border-color: var(--prairie);
  color: var(--ink);
}

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--orange);
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter) 0;
}

.header-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(14, 42, 35, 0.08);
  pointer-events: none;
}

.header-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--prairie) 0%, var(--sky) 55%, var(--orange) 100%);
  transition: width 0.12s linear;
}

.header-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px 12px 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(14, 42, 35, 0.14);
  background: var(--glass);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: padding 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.site-header.is-compact .header-shell {
  padding-top: 5px;
  padding-bottom: 5px;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 2px 0;
  border-radius: var(--r-pill);
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--paper);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink-55);
  white-space: nowrap;
  transition: opacity 0.18s var(--ease);
}

.site-header.is-compact .brand-tagline { opacity: 0.45; }

.brand-ver {
  margin-left: 2px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px dashed rgba(31, 138, 112, 0.55);
  color: var(--prairie);
  font-size: 11px;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.5);
}

/* nav */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-70);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
              box-shadow 0.16s var(--ease);
}

.nav-link:hover {
  background: rgba(31, 138, 112, 0.12);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  background: var(--prairie);
  color: #FFFFFF;
  box-shadow: 0 8px 18px -12px rgba(31, 138, 112, 0.95);
}

.nav-actions { display: none; }

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

.header-actions .btn {
  padding: 9px 15px;
  font-size: 13px;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(14, 42, 35, 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--prairie); }

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 14px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--prairie);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 9vw, 110px);
  background: var(--near-black);
  color: var(--on-dark);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--prairie) 0%, var(--sky) 42%, var(--orange) 74%, var(--sand) 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(246, 240, 226, 0.07) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.7;
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 2.1fr;
  gap: clamp(28px, 5vw, 64px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(26px, 4vw, 44px);
}

.footer-mast { min-width: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  text-decoration: none;
}

.footer-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--prairie);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-tagline {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
  text-transform: uppercase;
}

.footer-summary {
  margin-top: 10px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--on-dark-70);
}

.footer-version {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-version .mono {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-dark);
  color: var(--on-dark-70);
  font-size: 11px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(246, 240, 226, 0.28);
  background: rgba(246, 240, 226, 0.06);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}

.to-top:hover {
  background: rgba(242, 140, 40, 0.16);
  border-color: rgba(242, 140, 40, 0.65);
  transform: translateY(-1px);
}

.to-top-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  min-width: 0;
}

.footer-col { min-width: 0; }

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-45);
}

.footer-col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.footer-list { display: grid; gap: 8px; }

.footer-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark-70);
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.16s var(--ease), text-decoration-color 0.16s var(--ease);
}

.footer-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--orange);
}

.footer-link--sm { font-size: 12.5px; }

.footer-contact-list { gap: 10px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark-70);
}

.footer-contact-key {
  flex: 0 0 42px;
  padding-top: 2px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--sand);
  opacity: 0.85;
}

.footer-contact-val { min-width: 0; word-break: break-word; }

.footer-note {
  margin-top: 14px;
  padding-left: 10px;
  border-left: 2px solid rgba(242, 140, 40, 0.55);
  font-size: 12px;
  line-height: 1.75;
  color: var(--on-dark-45);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter) 22px;
  border-top: 1px solid var(--line-dark);
}

.footer-copy {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--on-dark-45);
}

.footer-copy .mono { font-size: 11.5px; letter-spacing: 0.05em; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

/* ---------- 9. Page scaffolding & shared components ---------- */
.page-main {
  display: block;
  padding-top: clamp(20px, 4vw, 40px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-55);
}

.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.5;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.breadcrumb a:hover {
  color: var(--prairie);
  border-bottom-color: currentColor;
}

.split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}

.grid {
  display: grid;
  gap: clamp(14px, 2.4vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  position: relative;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 16px 34px -32px rgba(14, 42, 35, 0.9);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 138, 112, 0.45);
  box-shadow: 0 22px 40px -30px rgba(14, 42, 35, 0.85);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: none;
}

.tag--sky {
  background: rgba(62, 143, 176, 0.16);
  color: #245A70;
}

.tag--orange {
  background: rgba(242, 140, 40, 0.18);
  color: #8A4406;
}

.star-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(242, 140, 40, 0.5);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}

.star-btn:hover { background: rgba(242, 140, 40, 0.1); }
.star-btn:active { transform: scale(0.96); }

.star-btn[aria-pressed="true"] {
  background: rgba(242, 140, 40, 0.16);
  border-color: var(--orange);
  color: #8A4406;
}

.timeline {
  display: flex;
  gap: 12px;
  padding: 4px 2px 14px;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.timeline-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.timeline-issue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 132px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.timeline-issue:hover {
  border-color: var(--prairie);
  transform: translateY(-2px);
}

.timeline-issue[aria-current] {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(242, 140, 40, 0.28);
}

.timeline-issue .mono { color: var(--prairie); }

/* 图片容器基础规则（页面阶段放小屏截图 / 抽象图形） */
.media-figure { margin: 0; }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--mist);
  aspect-ratio: 16 / 10;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--tall {
  aspect-ratio: 9 / 16;
  max-width: 320px;
}

.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-55);
}

/* 显现动效 */
.reveal {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

html.reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1024px) {
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .header-actions .btn { padding: 8px 12px; font-size: 12.5px; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-summary { max-width: 46ch; }
}

@media (max-width: 880px) {
  .site-header { padding: 10px 12px 0; }

  .header-shell {
    gap: 8px;
    padding: 7px 8px 7px 10px;
  }

  .brand-name { font-size: 14px; }
  .brand-tagline,
  .brand-ver { display: none; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }

  .nav-toggle { display: inline-flex; margin-left: auto; order: 3; }

  .header-actions { order: 2; margin-left: 0; }
  .header-actions .btn { padding: 8px 11px; font-size: 12.5px; }
  .header-actions .btn-primary,
  .header-actions .btn-ghost { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 90;
    margin: 0;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 22px;
    border: 1px solid rgba(14, 42, 35, 0.16);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 42px -24px rgba(14, 42, 35, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
  }

  .nav-list {
    flex: 1 1 auto;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-list::-webkit-scrollbar { display: none; }

  .nav-link {
    padding: 8px 11px;
    font-size: 13px;
    background: rgba(31, 138, 112, 0.06);
  }

  .nav-actions { display: none; }

  .site-nav[data-open="true"] {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 24px;
  }

  .site-nav[data-open="true"] .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .site-nav[data-open="true"] .nav-link {
    display: block;
    text-align: center;
    padding: 11px 8px;
  }

  .site-nav[data-open="true"] .nav-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .site-nav[data-open="true"] .nav-actions .btn { flex: 1 1 0; }

  body { padding-bottom: 88px; }

  .split { grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .footer-nav { grid-template-columns: 1fr; gap: 22px; }
  .header-actions .btn-primary { display: none; }
  .footer-legal { gap: 6px 14px; }
  .timeline-issue { min-width: 118px; }
}

/* ---------- 11. Accessibility ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.reveal-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .timeline-issue:hover,
  .to-top:hover { transform: none; }
}
