/* ==========================================================================
   九博体育会馆 · /assets/site.css
   共享外壳：reset、变量、中文排版、页头、页脚、通用组件
   ========================================================================== */

/* ---------- 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 { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

/* ---------- Variables ---------- */
:root {
  --ink-night: #081813;
  --green-hall: #0B211B;
  --green-deep: #123329;
  --green-field: #1E4A3B;
  --paper: #F6F0E3;
  --paper-old: #EDE4D2;
  --amber: #C99A3C;
  --orange: #E0652E;
  --slate: #8FA6A0;
  --wine: #6E2B33;
  --indigo: #2E2C4A;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --w-wide: 1280px;
  --w-text: 68ch;
  --header-h: 68px;

  --line-soft: rgba(15, 30, 25, 0.14);
  --line-amber: rgba(201, 154, 60, 0.45);
  --line-light: rgba(246, 240, 227, 0.18);

  --ease-drawer: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-plaque: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -28px rgba(0, 0, 0, 0.75);
}

/* ---------- Base ---------- */
body {
  background: var(--paper);
  color: var(--green-deep);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.site-main { flex: 1 0 auto; }

::selection { background: var(--amber); color: var(--ink-night); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.18;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  transform: translateY(-120%);
  transition: transform 220ms var(--ease-drawer);
}
.skip-link:focus-visible,
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-hall);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}

.command-bar { position: relative; }

.command-bar__inner {
  width: min(100% - 32px, var(--w-wide));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

/* Brand */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding-block: 10px;
}

.brand-mark__seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(201, 154, 60, 0.16);
}

.brand-mark__text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark__short { display: none; }

.brand-mark:hover .brand-mark__seal,
.brand-mark:focus-visible .brand-mark__seal {
  background: var(--amber);
  color: var(--ink-night);
}

/* Navigation */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(246, 240, 227, 0.78);
  border-radius: 2px;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--slate);
  transition: color 160ms ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--paper);
  background: rgba(246, 240, 227, 0.07);
}

.nav__link[aria-current="page"] {
  color: var(--paper);
}

.nav__link[aria-current="page"] .nav__index {
  color: var(--orange);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
}

/* Bar actions */
.command-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.help-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: background-color 160ms ease, color 160ms ease;
}

.help-trigger__icon { font-size: 14px; line-height: 1; }

.help-trigger:hover,
.help-trigger:focus-visible {
  background: var(--amber);
  color: var(--ink-night);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-light);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 2px;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease-drawer), opacity 160ms ease;
}

/* Status bar */
.status-bar {
  background: var(--ink-night);
  color: var(--slate);
  border-top: 1px solid rgba(246, 240, 227, 0.06);
}

.status-bar__inner {
  width: min(100% - 32px, var(--w-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 30px;
  padding-block: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.status-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--amber);
  white-space: nowrap;
}

.status-bar__dot {
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}

.status-bar__track {
  flex: 1 1 auto;
  height: 2px;
  background: rgba(143, 166, 160, 0.22);
  overflow: hidden;
}

.status-bar__fill {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--amber), var(--orange));
  transition: width 120ms linear;
}

.status-bar__hint { white-space: nowrap; opacity: 0.7; }

/* ---------- Layout shells ---------- */
.shell {
  width: min(100% - 40px, var(--w-wide));
  margin-inline: auto;
}

.shell--narrow { max-width: 860px; }

.section { padding-block: clamp(56px, 8vw, 112px); }

.section--paper { background: var(--paper); color: var(--green-deep); }
.section--old { background: var(--paper-old); color: var(--green-deep); }
.section--deep { background: var(--green-hall); color: var(--paper); }
.section--field { background: var(--green-field); color: var(--paper); }
.section--indigo { background: var(--indigo); color: var(--paper); }
.section--wine { background: var(--wine); color: var(--paper); }

.section--deep .section-title,
.section--field .section-title,
.section--indigo .section-title,
.section--wine .section-title { color: var(--paper); }

/* 12 栏底座 */
.layout-split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.layout-split > * { grid-column: span 12; }

@media (min-width: 860px) {
  .layout-split > .split-main { grid-column: 1 / span 7; }
  .layout-split > .split-side { grid-column: 9 / span 4; }
  .layout-split--offset > .split-main { grid-column: 2 / span 7; }
  .layout-split--offset > .split-side { grid-column: 10 / span 3; }
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-field);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--amber);
}

.section--deep .eyebrow,
.section--field .eyebrow,
.section--indigo .eyebrow,
.section--wine .eyebrow { color: var(--amber); }

.section-title {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  max-width: 24ch;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  max-width: 48ch;
  color: var(--green-deep);
}

.section--deep .lede,
.section--field .lede,
.section--indigo .lede,
.section--wine .lede { color: rgba(246, 240, 227, 0.82); }

.prose { max-width: var(--w-text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 2em; }
.prose h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 1.6em; }
.prose a { color: var(--green-field); border-bottom: 1px solid var(--amber); }
.prose a:hover { color: var(--orange); }
.prose ul { list-style: none; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--amber);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--paper-old);
  padding: 0.12em 0.4em;
  border-radius: 2px;
}

.section--deep .prose a,
.section--field .prose a { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-drawer);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus-visible { background: #c9521f; }

.btn--ghost {
  border-color: var(--line-amber);
  color: var(--amber);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--amber);
  color: var(--ink-night);
}

.btn--quiet {
  border-color: var(--line-soft);
  color: var(--green-deep);
}
.btn--quiet:hover,
.btn--quiet:focus-visible {
  border-color: var(--green-field);
  background: var(--paper-old);
}

.section--deep .btn--quiet,
.section--field .btn--quiet {
  border-color: var(--line-light);
  color: var(--paper);
}
.section--deep .btn--quiet:hover,
.section--field .btn--quiet:hover {
  background: rgba(246, 240, 227, 0.1);
}

/* ---------- Plaque (金属铭牌) ---------- */
.plaque {
  position: relative;
  padding: 18px 20px 20px;
  background: var(--green-deep);
  color: var(--paper);
  border: 1px solid var(--line-amber);
  border-radius: 2px;
  box-shadow: var(--shadow-plaque);
}
.plaque::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 154, 60, 0.22);
  pointer-events: none;
}
.plaque__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.plaque__value {
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}
.plaque__value a { border-bottom: 1px solid var(--line-amber); }
.plaque__value a:hover { color: var(--amber); }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-soft);
  color: var(--green-field);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.tag--wine { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.tag--indigo { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }

/* ---------- File index (编号索引) ---------- */
.file-index {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.file-index__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 160ms ease, padding-left 160ms ease;
  font-size: 15px;
}

.file-index__item:hover { background: var(--paper-old); padding-left: 12px; }

.file-index__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.section--deep .file-index,
.section--field .file-index { border-color: var(--line-light); }
.section--deep .file-index__item,
.section--field .file-index__item { border-color: var(--line-light); }
.section--deep .file-index__item:hover,
.section--field .file-index__item:hover { background: rgba(246, 240, 227, 0.06); }

/* ---------- Anchor rail ---------- */
.anchor-rail {
  position: sticky;
  top: calc(var(--header-h) + 46px);
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line-soft);
  padding-left: 14px;
}

.anchor-rail__link {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(18, 51, 41, 0.66);
  border-left: 2px solid transparent;
  margin-left: -16px;
  padding-left: 14px;
  transition: color 160ms ease, border-color 160ms ease;
}
.anchor-rail__link:hover { color: var(--green-deep); }
.anchor-rail__link[aria-current="true"],
.anchor-rail__link.is-active {
  color: var(--green-deep);
  border-left-color: var(--orange);
  font-weight: 600;
}

.section--deep .anchor-rail,
.section--field .anchor-rail { border-color: var(--line-light); }
.section--deep .anchor-rail__link,
.section--field .anchor-rail__link { color: rgba(246, 240, 227, 0.66); }
.section--deep .anchor-rail__link.is-active,
.section--field .anchor-rail__link.is-active { color: var(--paper); }

/* ---------- Media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--green-field);
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 154, 60, 0.35);
  pointer-events: none;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 16 / 9; }

.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

/* ---------- Skill tree ---------- */
.tree {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 26px;
}

.tree__line {
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), rgba(143, 166, 160, 0.3));
}

.tree__node {
  position: relative;
  padding: 14px 0 14px 4px;
  opacity: 0.45;
  transition: opacity 400ms ease;
}
.tree__node::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  background: var(--paper);
}
.tree__node.is-lit { opacity: 1; }
.tree__node.is-lit::before { background: var(--orange); border-color: var(--orange); }

.section--deep .tree__node::before,
.section--field .tree__node::before { background: var(--green-hall); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(18, 51, 41, 0.6);
  padding-block: 16px;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--amber); }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-drawer), transform 600ms var(--ease-drawer);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-night);
  color: rgba(246, 240, 227, 0.8);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line-amber);
}

.footer-grid {
  width: min(100% - 40px, var(--w-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 240, 227, 0.1);
}

.footer-brand__line {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 22ch;
}

.footer-brand__summary {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  max-width: 46ch;
  color: rgba(246, 240, 227, 0.62);
}

.footer-brand__cta { margin-top: 22px; }

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.footer-col__list { display: grid; gap: 9px; }

.footer-col__list a {
  font-size: 14px;
  color: rgba(246, 240, 227, 0.74);
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

.footer-contact {
  width: min(100% - 40px, var(--w-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-block: 32px;
  border-bottom: 1px solid rgba(246, 240, 227, 0.1);
}

.footer-legal {
  width: min(100% - 40px, var(--w-wide));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  padding-block: 22px 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(246, 240, 227, 0.48);
}

.footer-legal__icp { margin-left: auto; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: var(--amber);
  border: 1px solid var(--line-amber);
  border-radius: 2px;
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms var(--ease-drawer), visibility 200ms;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--amber); color: var(--ink-night); }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
  .footer-contact { grid-template-columns: repeat(2, 1fr); }
  .footer-contact .plaque--wide { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  :root { --header-h: 74px; }
  .footer-contact { grid-template-columns: repeat(2, 1fr) 1.4fr; }
  .footer-contact .plaque--wide { grid-column: auto; }
}

/* 平板：收起索引编号，压缩间距 */
@media (max-width: 1080px) {
  .nav__index { display: none; }
  .nav__link { padding: 10px 9px; font-size: 13.5px; }
  .brand-mark__text { font-size: 17px; }
}

/* 移动：底部命令条 */
@media (max-width: 860px) {
  :root { --header-h: 60px; }

  .site-header {
    position: sticky;
    top: auto;
    bottom: 0;
    border-top: 1px solid var(--line-amber);
    border-bottom: 0;
    background: var(--ink-night);
  }

  .status-bar { display: none; }

  .command-bar__inner {
    min-height: 58px;
    gap: 12px;
  }

  .brand-mark__text { display: none; }
  .brand-mark__short {
    display: inline;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
  }
  .brand-mark__seal { width: 28px; height: 28px; font-size: 15px; }

  .help-trigger__text { display: none; }
  .help-trigger { padding: 8px 10px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 58px;
    z-index: 99;
    background: var(--green-hall);
    border-top: 1px solid var(--line-amber);
    padding: 10px 16px 20px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    transform: translateY(calc(100% + 70px));
    opacity: 0;
    visibility: hidden;
    transition: transform 280ms var(--ease-drawer), opacity 200ms ease, visibility 280ms;
  }

  .site-header[data-open] .nav,
  .nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-header[data-open] .nav-toggle {
    color: var(--orange);
    border-color: var(--orange);
  }

  .site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nav__link {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 6px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-light);
    border-radius: 0;
  }
  .nav__index { display: inline; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] {
    color: var(--orange);
  }

  body { padding-bottom: 58px; }

  .back-to-top { bottom: 76px; }
}

@media (max-width: 520px) {
  .status-bar__hint { display: none; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-legal__icp { margin-left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tree__node { opacity: 1; }
}
