/* ==========================================================================
   爱体育赛场 · 共享样式  /assets/site.css
   纸感米白 + 深空墨蓝 + 草坪绿 / 跑道橙 / 荧光黄
   ========================================================================== */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  --paper: #F7F2E6;
  --paper-2: #EFE8D7;
  --ink: #101C33;
  --grass: #1E7A4B;
  --orange: #E4561F;
  --neon: #D9F24B;
  --field: #CFE6D6;
  --clay: #A8341A;
  --teal: #177E8C;
  --slate: #5A6879;
  --white: #FFFFFF;

  --line: rgba(16, 28, 51, 0.14);
  --line-strong: rgba(16, 28, 51, 0.30);
  --line-bone: rgba(247, 242, 230, 0.18);
  --line-bone-strong: rgba(247, 242, 230, 0.38);
  --ink-70: rgba(16, 28, 51, 0.72);
  --bone-70: rgba(247, 242, 230, 0.72);

  --font-sans: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1180px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 44px -30px rgba(16, 28, 51, 0.6);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.28vw + 14.4px, 17px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 94% 2%, rgba(30, 122, 75, 0.08), transparent 38%),
    radial-gradient(circle at 2% 98%, rgba(228, 86, 31, 0.07), transparent 36%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(30px, 5vw, 56px); line-height: 1.14; }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(18px, 1.5vw, 23px); letter-spacing: -0.01em; }

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

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

a { color: var(--clay); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

strong, b { font-weight: 700; }
small { font-size: 0.82em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--grass);
  outline-offset: 2px;
  border-radius: 4px;
}
.header-nav :focus-visible,
.site-footer :focus-visible,
.section--dark :focus-visible,
.section--grass :focus-visible {
  outline-color: var(--neon);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#main-content { display: block; scroll-margin-top: 128px; }
#main-content:focus { outline: none; }

/* 标题的起跑动势（页面主标题可套用） */
.h-display {
  display: inline-block;
  transform: skewX(-3deg);
  transform-origin: left center;
  letter-spacing: -0.02em;
}

/* ---- 3. Skip link ------------------------------------------------------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 0; color: var(--neon); }

/* ---- 4. Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
    var(--grass) 0 40%,
    var(--orange) 40% 68%,
    var(--neon) 68% 100%);
}

.header-top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 10px var(--pad);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 6px 16px -10px rgba(30, 122, 75, 0.9);
}
.brand-mark svg { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transform: skewX(-3deg);
  transform-origin: left center;
}
.brand-sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
  white-space: nowrap;
}

/* 上层短说明 */
.header-tagline {
  display: none;
  margin: 0;
  padding-left: clamp(10px, 1.6vw, 22px);
  border-left: 1px solid var(--line-strong);
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
  max-width: 22ch;
}

/* 上层工具入口 */
.header-tools {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.tool-link {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.tool-link:hover {
  color: var(--grass);
  border-color: var(--grass);
  background: rgba(30, 122, 75, 0.06);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}
.nav-toggle-box span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: center;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), background-color 0.18s var(--ease);
}
.nav-toggle[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--neon);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span { background: var(--neon); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 下层导航 */
.header-nav {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--grass);
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: 52px;
}
.nav-tools { display: none; }
.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(2px, 1.2vw, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { margin: 0; }
.nav-link {
  display: block;
  padding: 13px 12px;
  border-bottom: 3px solid transparent;
  color: rgba(247, 242, 230, 0.82);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-link:hover { color: var(--neon); }
.nav-link[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--orange);
}
.nav-note {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(247, 242, 230, 0.52);
  white-space: nowrap;
}

/* ---- 5. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  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);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--orange); color: #FFF8EE; }
.btn--primary:hover { background: #C9481A; color: #FFF8EE; }

.btn--solid { background: var(--grass); color: var(--paper); }
.btn--solid:hover { background: #17603B; color: var(--paper); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--grass); color: var(--grass); background: rgba(30, 122, 75, 0.06); }

.btn--on-dark {
  border-color: var(--line-bone-strong);
  color: var(--paper);
}
.btn--on-dark:hover { border-color: var(--neon); color: var(--neon); }

.btn--sm { padding: 10px 17px; font-size: 14px; }

/* ---- 6. Layout ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 780px; }
.prose { max-width: 64ch; }

.section { padding-block: clamp(44px, 7vw, 92px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--field { background: var(--field); color: var(--ink); }
.section--grass { background: var(--grass); color: var(--paper); }
.section--grass h1, .section--grass h2, .section--grass h3 { color: var(--paper); }
.section--paper2 { background: var(--paper-2); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---- 7. Section heading ------------------------------------------------- */
.section-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.section-title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.index-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--clay);
  white-space: nowrap;
}
.section--dark .index-tag,
.section--grass .index-tag { color: var(--neon); }
.head-rule {
  position: relative;
  flex: 1 1 60px;
  min-width: 40px;
  height: 1px;
  background: var(--line-strong);
  align-self: center;
}
.head-rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.section--dark .head-rule,
.section--grass .head-rule { background: var(--line-bone-strong); }

/* ---- 8. Tags / chips / breadcrumb --------------------------------------- */
.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--field);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.mono-tag--dark {
  background: rgba(217, 242, 75, 0.14);
  color: var(--neon);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}
.chip {
  padding: 8px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.chip:hover { border-color: var(--grass); color: var(--grass); }
.chip[aria-pressed="true"] {
  background: var(--grass);
  border-color: var(--grass);
  color: var(--paper);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--slate);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
}
.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.breadcrumb a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---- 9. Cards / KPI / timeline ------------------------------------------ */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(16, 28, 51, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--clay);
}
.card:focus-within { outline: 2px solid var(--grass); outline-offset: 3px; }
.card--data {
  background: var(--ink);
  border-color: rgba(217, 242, 75, 0.24);
  color: var(--paper);
}
.card--data h3, .card--data h2 { color: var(--paper); }
.card--data:focus-within { outline-color: var(--neon); }

.kpi { display: grid; gap: 2px; margin: 0; }
.kpi-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card--data .kpi-value,
.section--dark .kpi-value { color: var(--neon); }
.kpi-unit {
  margin-left: 3px;
  font-size: 0.48em;
  font-weight: 500;
  color: var(--slate);
}
.card--data .kpi-unit,
.section--dark .kpi-unit { color: var(--bone-70); }
.kpi-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--slate);
}
.card--data .kpi-label,
.section--dark .kpi-label { color: rgba(247, 242, 230, 0.6); }

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
  border-left: 2px solid var(--line-strong);
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.timeline-item { position: relative; margin: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--clay);
}
.timeline-item--now::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(228, 86, 31, 0.18);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--clay);
}
.timeline-title {
  margin: 4px 0 6px;
  font-size: 19px;
  font-weight: 700;
}

/* ---- 10. Figure containers ---------------------------------------------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px 6px 22px 6px;
  background: var(--field);
  isolation: isolate;
}
.figure > img,
.figure > svg,
.figure > picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.figure--wide { aspect-ratio: 21 / 9; }
.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--slate);
  background:
    repeating-linear-gradient(135deg, rgba(30, 122, 75, 0.13) 0 12px, transparent 12px 24px),
    var(--field);
}
.figure__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 7px 14px;
  border-radius: 0 10px 0 0;
  background: rgba(16, 28, 51, 0.84);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---- 11. Reveal --------------------------------------------------------- */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
}
html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.32s var(--ease) var(--reveal-delay, 0ms),
    transform 0.32s var(--ease) var(--reveal-delay, 0ms);
}

/* ---- 12. Scroll progress（JS 注入） ------------------------------------- */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--grass), var(--neon), var(--orange));
  pointer-events: none;
}

/* ---- 13. Footer --------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--grass) 0 34%,
    var(--neon) 34% 42%,
    var(--orange) 42% 100%);
}
.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 58px) var(--pad) clamp(20px, 3vw, 30px);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: clamp(24px, 4vw, 42px);
  border-bottom: 1px solid var(--line-bone);
}
.footer-brand { min-width: 0; }
.footer-mark {
  display: inline-block;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
  transform: skewX(-3deg);
  transform-origin: left center;
}
.footer-line {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(247, 242, 230, 0.58);
}
.footer-coordinate {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(247, 242, 230, 0.42);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
}
.footer-col { min-width: 0; }
.footer-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--neon);
}
.footer-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.55;
}
.footer-list li { margin: 0; }
.footer-list a {
  color: rgba(247, 242, 230, 0.86);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-list a:hover {
  color: var(--neon);
  border-bottom-color: var(--orange);
}
.footer-list--plain li { color: rgba(247, 242, 230, 0.66); }
.footer-list--plain a { color: rgba(247, 242, 230, 0.86); word-break: break-word; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--line-bone);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(247, 242, 230, 0.5);
}
.legal-line { margin: 0; }
.legal-meta { margin: 0; white-space: nowrap; }

/* ---- 14. Responsive ----------------------------------------------------- */
@media (min-width: 900px) {
  .header-tagline { display: block; }
  .header-tools { display: flex; }
}

@media (max-width: 899px) {
  .header-top { position: relative; z-index: 95; }
  .nav-toggle { display: inline-flex; }

  .header-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    overflow-y: auto;
    border-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }
  .header-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: calc(88px + env(safe-area-inset-top)) var(--pad) 48px;
  }
  .nav-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
  }
  .nav-tool {
    flex: 1 1 130px;
    padding: 12px 14px;
    border: 1px solid var(--line-bone-strong);
    border-radius: 999px;
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  }
  .nav-tool:hover { color: var(--neon); border-color: var(--neon); }
  .nav-tool--accent {
    background: var(--orange);
    border-color: var(--orange);
    color: #FFF8EE;
  }
  .nav-tool--accent:hover { background: #C9481A; border-color: #C9481A; color: #FFF8EE; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line-bone); }
  .nav-link {
    padding: 16px 4px;
    border-bottom: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
  }
  .nav-link[aria-current="page"] {
    color: var(--neon);
    box-shadow: inset 3px 0 0 var(--orange);
    padding-left: 14px;
  }
  .nav-note {
    margin: 26px 0 0;
    white-space: normal;
    font-size: 12px;
  }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  #main-content { scroll-margin-top: 76px; }
}

@media (max-width: 639px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-top { align-items: flex-start; }
  .footer-coordinate { display: none; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .brand-sub { display: none; }
}

@media (max-width: 399px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle-text { display: none; }
}

/* ---- 15. Reduced motion ------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
  html.js-reveal .reveal,
  html.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover,
  .btn:active { transform: none; }
}
