/* ===========================================================
   华体汇手机版 · 共享样式 /assets/site.css
   1 reset | 2 tokens | 3 排版 | 4 头部 | 5 页脚 | 6 组件 | 7 响应式
   =========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #070B14;
}

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

ul, ol { list-style: none; }

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

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2 tokens ---------- */
:root {
  --ink: #070B14;
  --graphite: #101724;
  --steel: #1C2637;
  --cyan: #22E3D6;
  --orange: #FF7A1A;
  --mist: #8C99A8;
  --silver: #D5DCE4;
  --white: #FFFFFF;
  --cyan-deep: #0E6E68;
  --orange-deep: #3A2210;

  --line: rgba(213, 220, 228, 0.16);
  --line-strong: rgba(213, 220, 228, 0.32);
  --cyan-line: rgba(34, 227, 214, 0.42);
  --orange-line: rgba(255, 122, 26, 0.45);

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

  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 72px;

  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 400ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 3 排版与基础节奏 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--silver);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(34, 227, 214, 0.055) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(65deg, rgba(140, 153, 168, 0.05) 0 1px, transparent 1px 64px),
    radial-gradient(120% 80% at 10% -12%, rgba(34, 227, 214, 0.10), transparent 62%),
    radial-gradient(90% 70% at 100% 0%, rgba(255, 122, 26, 0.07), transparent 58%);
}

main { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(26px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; }
h4 { font-size: 20px; font-weight: 800; }
h5 { font-size: 17px; font-weight: 800; }

p { max-width: 72ch; }
p + p { margin-top: 0.9em; }

.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 13vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
}

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.85;
  color: var(--silver);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
}

.muted { color: var(--mist); }

.prose {
  max-width: 68ch;
  color: var(--silver);
}
.prose > * + * { margin-top: 1.1em; }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
}

section[id],
[data-spy-section] { scroll-margin-top: calc(var(--header-h) + 26px); }

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

/* ---------- 4 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.98), rgba(7, 11, 20, 0.90));
  border-bottom: 1px solid var(--line);
}

.ht-progress {
  height: 2px;
  background: rgba(28, 38, 55, 0.85);
}
.ht-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 55%, var(--orange) 100%);
  transition: width 120ms linear;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -64px;
  z-index: 90;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: 10px; }

.header-inner {
  position: relative;
  z-index: 66;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand-zone {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  min-width: 0;
}

.fav-dock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 11px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--orange);
  background: rgba(255, 122, 26, 0.14);
  border: 1px solid var(--orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
  white-space: nowrap;
}
.fav-dock:hover,
.fav-dock:focus-visible { background: var(--orange); color: var(--ink); }

.fav-dock__mark { font-size: 10px; line-height: 1; }
.fav-dock__short { display: none; }

.fav-dock.is-pulse { animation: dock-pulse var(--t-slow) var(--ease) 1; }

@keyframes dock-pulse {
  0% {
    background: var(--orange);
    color: var(--ink);
    border-color: var(--orange);
  }
  100% {
    background: rgba(255, 122, 26, 0.14);
    color: var(--orange);
    border-color: var(--orange);
  }
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-version {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid var(--cyan-line);
  padding: 2px 6px;
  line-height: 1.3;
  white-space: nowrap;
}

.nav-rail { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-ticket {
  position: relative;
  z-index: 0;
  display: block;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--mist);
  white-space: nowrap;
  transition: color var(--t-base) var(--ease);
}

.nav-ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-9deg);
  background: rgba(28, 38, 55, 0.55);
  border: 1px solid var(--steel);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.nav-ticket:hover,
.nav-ticket:focus-visible { color: var(--white); }
.nav-ticket:hover::before,
.nav-ticket:focus-visible::before {
  background: var(--steel);
  border-color: var(--cyan-deep);
}

.nav-ticket[aria-current="page"] { color: var(--ink); }
.nav-ticket[aria-current="page"]::before {
  background: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--silver);
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--white); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.nav-toggle__bars i {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transform: skewX(-14deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0.35; }

.nav-toggle__text { font-size: 11px; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(7, 11, 20, 0.76);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(16px, 3vw, 26px);
  z-index: 52;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--orange);
  background: rgba(255, 122, 26, 0.14);
  border: 1px solid var(--orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  cursor: pointer;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.to-top:hover { background: var(--orange); color: var(--ink); }

/* ---------- 5 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 110px);
  background: linear-gradient(180deg, var(--graphite), var(--ink) 88%);
  border-top: 1px solid var(--line);
  color: var(--silver);
}

.footer-tagband {
  background: linear-gradient(90deg, rgba(34, 227, 214, 0.10), transparent 62%);
  border-bottom: 1px solid var(--line);
  border-top: 2px solid var(--steel);
}

.footer-tagband__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 14px;
}

.footer-tagband__label {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.tagband-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.tagband-link {
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.tagband-link:hover,
.tagband-link:focus-visible {
  color: var(--cyan);
  background: rgba(34, 227, 214, 0.08);
  border-color: var(--cyan-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(26px, 4vw, 64px);
  padding-block: clamp(34px, 5vw, 56px) clamp(26px, 4vw, 42px);
}

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

.brand-lockup--footer .brand-name { font-size: 21px; }

.footer-note {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-note--mono {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.85;
}

.footer-heading {
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-links {
  display: grid;
  gap: 9px;
}
.footer-links a {
  display: inline-block;
  font-size: 15px;
  color: var(--silver);
  text-decoration: none;
  transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.footer-links a::before {
  content: "▸";
  margin-right: 8px;
  color: var(--steel);
  font-size: 11px;
  transition: color var(--t-base) var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--cyan); transform: translateX(3px); }
.footer-links a:hover::before,
.footer-links a:focus-visible::before { color: var(--orange); }

.contact-list {
  display: grid;
  gap: 12px;
}
.contact-list li {
  display: grid;
  gap: 3px;
}

.contact-key {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.contact-val {
  font-size: 15px;
  line-height: 1.65;
  color: var(--silver);
  word-break: break-word;
}

.footer-cta { margin-top: 18px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-block: 18px clamp(24px, 4vw, 36px);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mist);
}
.footer-legal a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--cyan); border-color: var(--cyan); }

.footer-legal__sep { color: var(--steel); }

/* ---------- 6 通用组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(46px, 7vw, 104px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.band {
  background: var(--graphite);
  border-block: 1px solid var(--line);
  padding-block: clamp(26px, 4vw, 46px);
}
.band--cyan {
  background:
    linear-gradient(90deg, rgba(34, 227, 214, 0.13), transparent 58%),
    var(--graphite);
  border-block-color: var(--cyan-line);
}
.band--orange {
  background:
    linear-gradient(90deg, rgba(255, 122, 26, 0.13), transparent 58%),
    var(--graphite);
  border-block-color: var(--orange-line);
}

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}
.grid--7-4 { grid-template-columns: 7fr 4fr; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--orange-deep);
  color: var(--orange);
  border-color: var(--orange);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--ink);
}
.btn--cyan:hover,
.btn--cyan:focus-visible {
  background: var(--cyan-deep);
  color: var(--white);
  border-color: var(--cyan);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--silver);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  background: rgba(16, 23, 36, 0.7);
  border: 1px solid var(--line-strong);
}
.chip--cyan { color: var(--cyan); border-color: var(--cyan-line); }
.chip--orange { color: var(--orange); border-color: var(--orange-line); }

.tick-frame {
  position: relative;
  padding: clamp(22px, 3.6vw, 48px);
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 20, 0.55);
}
.tick-frame::before,
.tick-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 18px);
}
.tick-frame::before { top: 0; }
.tick-frame::after { bottom: 0; }

.board {
  position: relative;
  background: var(--graphite);
  border: 1px solid var(--line);
}
.board::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 38px;
  height: 2px;
  background: var(--cyan);
}

.board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
}

.board__content {
  padding: 18px 20px 22px;
  color: var(--silver);
  font-size: 16px;
  line-height: 1.8;
}

details.board > summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
details.board > summary::-webkit-details-marker { display: none; }
details.board > summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
}
details.board[open] > summary {
  border-bottom-color: var(--line);
  color: var(--cyan);
}
details.board[open] > summary::after { content: "−"; }
details.board > summary:hover { color: var(--cyan); }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(140deg, var(--graphite), var(--steel));
  border: 1px solid var(--line);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(34, 227, 214, 0.07) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(213, 220, 228, 0.05) 0 1px, transparent 1px 26px);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.92);
}
.media-frame--ratio { aspect-ratio: 16 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame__caption {
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.stat {
  padding-left: 16px;
  border-left: 2px solid var(--cyan);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.breadcrumbs {
  padding-top: clamp(18px, 3vw, 28px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--steel);
}
.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
}
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--silver); }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc-link {
  display: inline-block;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  color: var(--mist);
  text-decoration: none;
  background: rgba(28, 38, 55, 0.5);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transition: color var(--t-base) var(--ease), background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.toc-link:hover,
.toc-link:focus-visible { color: var(--white); border-color: var(--cyan-deep); }
.toc-link.is-current,
.toc-link[aria-current="true"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-btn {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: color var(--t-base) var(--ease), background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.filter-btn:hover { color: var(--white); border-color: var(--cyan-deep); }
.filter-btn[aria-pressed="true"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}
.is-filtered { display: none !important; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 7 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-ticket { padding: 9px 13px; font-size: 14px; }
  .brand-name { font-size: 17px; }
  .grid--7-4 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --header-h: 62px; }

  .header-inner { gap: 12px; }

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

  .nav-rail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 340px);
    margin: 0;
    padding: calc(var(--header-h) + 26px) 22px 42px;
    background: var(--graphite);
    border-left: 1px solid var(--line-strong);
    transform: translateX(102%);
    transition: transform var(--t-slow) var(--ease);
    overflow-y: auto;
    z-index: 70;
  }
  .nav-rail[data-open] { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav-ticket { padding: 15px 18px; font-size: 16px; }

  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }

  body { font-size: 16px; }

  .fav-dock { padding: 7px 11px 7px 9px; font-size: 12px; }
  .fav-dock__text { display: none; }
  .fav-dock__short { display: inline; }

  .brand-name { font-size: 16px; }
  .brand-version { font-size: 10px; padding: 1px 5px; }

  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .fav-dock.is-pulse { animation: none; }
}
