/* ============================================================
   凤凰体育赛事 · /assets/site.css
   夜场看台索引站：轨道导航 + 公告带 + 深墨蓝网格底
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

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

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

address { font-style: normal; }

/* ---------- tokens ---------- */
:root {
  --ink-950: #080D16;
  --ink-800: #101A2B;
  --ink-700: #1B2740;
  --flame-500: #FF4B1F;
  --flame-700: #C22A0C;
  --ember-300: #FFB27A;
  --signal-400: #35F0C0;
  --chalk-050: #F4F1EC;
  --steel-500: #6B7A90;
  --alert-450: #FFD166;

  --rail-w: 96px;
  --rail-w-open: 260px;
  --header-h: 64px;
  --notice-h: 40px;

  --gutter: 24px;
  --grid-line: rgba(107, 122, 144, 0.16);
  --hairline: 1px solid rgba(107, 122, 144, 0.28);
  --hairline-strong: 1px solid rgba(107, 122, 144, 0.5);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "JetBrains Mono", "SFMono-Regular", "Roboto Mono",
    ui-monospace, "Courier New", monospace;

  --ease-rail: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-rail: 180ms;
  --dur-hover: 240ms;
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-950);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 96px, 96px 100%;
  color: var(--chalk-050);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--flame-500);
  color: var(--ink-950);
}

:focus-visible {
  outline: 2px solid var(--signal-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(8, 13, 22, 0.9);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--signal-400);
  color: var(--ink-950);
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform var(--dur-hover) var(--ease-rail);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--chalk-050);
}

/* ---------- notice bar ---------- */
.notice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px calc(var(--gutter) * 0.75) 9px 16px;
  background: var(--flame-500);
  border-bottom: 1px solid var(--flame-700);
  color: var(--ink-950);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.notice-bar__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--ink-950);
  transform: rotate(45deg);
}

.notice-bar__label {
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-right: 10px;
  border-right: 1px solid rgba(8, 13, 22, 0.45);
}

.notice-bar__link {
  font-weight: 600;
  border-bottom: 1px solid rgba(8, 13, 22, 0.4);
  transition: border-color var(--dur-hover) var(--ease-rail),
    color var(--dur-hover) var(--ease-rail);
}

.notice-bar__link:hover,
.notice-bar__link:focus-visible {
  border-bottom-color: var(--ink-950);
  color: var(--ink-800);
}

/* ---------- header shell ---------- */
.site-header { position: relative; z-index: 120; }

/* ---------- rail ---------- */
.rail {
  position: fixed;
  top: var(--notice-h);
  left: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 18px 0 12px;
  background: var(--ink-800);
  border-right: 1px solid rgba(107, 122, 144, 0.32);
  overflow-y: auto;
  overflow-x: hidden;
  transition: width var(--dur-rail) var(--ease-rail),
    background-color var(--dur-rail) var(--ease-rail);
  scrollbar-width: thin;
}

.rail::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flame-500), var(--ember-300) 55%, transparent);
  pointer-events: none;
}

.rail__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0 12px 16px;
  border-bottom: var(--hairline);
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--chalk-050);
}

.rail__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--flame-500);
  border: 1px solid rgba(255, 75, 31, 0.55);
  background: rgba(255, 75, 31, 0.08);
  transition: color var(--dur-hover) var(--ease-rail),
    border-color var(--dur-hover) var(--ease-rail);
}

.rail__brand:hover .rail__mark,
.rail__brand:focus-visible .rail__mark {
  color: var(--ember-300);
  border-color: var(--ember-300);
}

.rail__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity var(--dur-rail) var(--ease-rail);
}

.rail__name strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}

.rail__name em {
  font-family: var(--font-data);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--steel-500);
  white-space: nowrap;
}

.rail__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 4px;
  color: var(--steel-500);
  font-size: 11px;
  letter-spacing: 0.2em;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-hover) var(--ease-rail);
}

.rail__toggle:hover { color: var(--signal-400); }

.rail__toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  flex: 0 0 auto;
}

.rail__toggle-bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur-rail) var(--ease-rail),
    width var(--dur-rail) var(--ease-rail);
}

.rail__toggle-bars i:nth-child(2) { width: 70%; }
.rail__toggle-bars i:nth-child(3) { width: 45%; }

.rail__toggle-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}

/* nav */
.rail__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  min-height: 0;
}

.rail__nav-kicker {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--steel-500);
  margin-bottom: 10px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity var(--dur-rail) var(--ease-rail);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 10px 12px;
  color: var(--steel-500);
  font-size: 13px;
  line-height: 1.3;
  border-left: 2px solid transparent;
  transition: color var(--dur-hover) var(--ease-rail),
    border-color var(--dur-hover) var(--ease-rail),
    background-color var(--dur-hover) var(--ease-rail);
}

.nav-link__num {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--steel-500);
  flex: 0 0 auto;
  transition: color var(--dur-hover) var(--ease-rail);
}

.nav-link__text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  transition: opacity var(--dur-rail) var(--ease-rail);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--chalk-050);
  background: rgba(255, 75, 31, 0.08);
  border-left-color: var(--flame-700);
}

.nav-link:hover .nav-link__num { color: var(--ember-300); }

.nav-link[aria-current="page"] {
  color: var(--chalk-050);
  border-left-color: var(--flame-500);
  background: linear-gradient(90deg, rgba(255, 75, 31, 0.16), transparent 70%);
}

.nav-link[aria-current="page"] .nav-link__num { color: var(--flame-500); }

.rail__drawer-cta {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.rail__nav-note {
  display: none;
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--steel-500);
  border-top: var(--hairline);
  padding-top: 12px;
}

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px 4px;
  border-top: var(--hairline);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--steel-500);
}

.rail__foot-link {
  color: var(--signal-400);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color var(--dur-hover) var(--ease-rail);
}

.rail__foot-link:hover { border-bottom-color: var(--signal-400); }

.rail__foot-meta {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

/* ---------- rail open state (desktop + mobile) ---------- */
.rail[data-open="true"] {
  width: var(--rail-w-open);
  background: var(--ink-800);
}

.rail[data-open="true"] .rail__name,
.rail[data-open="true"] .rail__toggle-text,
.rail[data-open="true"] .rail__nav-kicker,
.rail[data-open="true"] .nav-link__text {
  opacity: 1;
  width: auto;
}

.rail[data-open="true"] .rail__toggle-bars i:nth-child(1) {
  width: 60%;
  transform: translateY(6px) rotate(45deg);
}
.rail[data-open="true"] .rail__toggle-bars i:nth-child(2) {
  width: 0;
  opacity: 0;
}
.rail[data-open="true"] .rail__toggle-bars i:nth-child(3) {
  width: 60%;
  transform: translateY(-6px) rotate(-45deg);
}

.rail[data-open="true"] .rail__drawer-cta { display: flex; }
.rail[data-open="true"] .rail__nav-note { display: block; }

.rail[data-open="true"] .nav-item {
  animation: rail-item-in var(--dur-rail) var(--ease-rail) both;
}
.rail[data-open="true"] .nav-item:nth-child(2) { animation-delay: 20ms; }
.rail[data-open="true"] .nav-item:nth-child(3) { animation-delay: 40ms; }
.rail[data-open="true"] .nav-item:nth-child(4) { animation-delay: 60ms; }
.rail[data-open="true"] .nav-item:nth-child(5) { animation-delay: 80ms; }
.rail[data-open="true"] .nav-item:nth-child(6) { animation-delay: 100ms; }

@keyframes rail-item-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- scrim (mobile) ---------- */
.rail-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(8, 13, 22, 0.72);
}

/* ---------- page shell ---------- */
.site-shell {
  padding-left: var(--rail-w);
  transition: padding-left var(--dur-rail) var(--ease-rail);
  min-height: 60vh;
}

.site-main {
  display: block;
  padding: 0 0 64px;
}

/* ---------- containers & grid ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.grid {
  display: grid;
  gap: var(--gutter);
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 960px) {
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

/* ---------- typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  transform: rotate(-2deg);
  transform-origin: left bottom;
  color: var(--chalk-050);
  text-shadow: 1px 1px 0 var(--flame-500), -1px -1px 0 rgba(8, 13, 22, 0.6);
}

.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--signal-400);
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  font-weight: 700;
}

.data-unit {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel-500);
  margin-left: 6px;
}

.annotation {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--steel-500);
}

.annotation--vertical {
  writing-mode: vertical-rl;
  letter-spacing: 0.32em;
}

.lead {
  font-size: 17px;
  line-height: 1.75;
  max-width: 34em;
  color: rgba(244, 241, 236, 0.88);
}

.prose p {
  max-width: 34em;
  margin-bottom: 0.9em;
}

.prose strong {
  font-weight: 700;
  color: var(--chalk-050);
  padding-left: 6px;
  border-left: 4px solid var(--flame-500);
}

/* ---------- page head ---------- */
.page-head {
  position: relative;
  padding: 56px 0 32px;
  border-bottom: var(--hairline);
}

.page-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 3px;
  background: var(--flame-500);
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--signal-400);
  margin-bottom: 14px;
}

.page-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal-400);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  transform: rotate(-2deg);
  transform-origin: left center;
  color: var(--chalk-050);
  text-shadow: 1px 1px 0 var(--flame-500);
}

.page-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--steel-500);
  max-width: 34em;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel-500);
  padding: 20px 0 0;
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 6px; }

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(107, 122, 144, 0.6);
}

.breadcrumb a {
  color: var(--steel-500);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-hover) var(--ease-rail),
    border-color var(--dur-hover) var(--ease-rail);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--signal-400);
  border-bottom-color: var(--signal-400);
}

.breadcrumb [aria-current="page"] { color: var(--chalk-050); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color var(--dur-hover) var(--ease-rail),
    color var(--dur-hover) var(--ease-rail),
    border-color var(--dur-hover) var(--ease-rail),
    transform var(--dur-hover) var(--ease-rail);
}

.btn:hover,
.btn:focus-visible { transform: translateY(-3px); }

.btn--flame {
  background: var(--flame-500);
  color: var(--ink-950);
  border-color: var(--flame-500);
}

.btn--flame:hover,
.btn--flame:focus-visible {
  background: var(--flame-700);
  border-color: var(--flame-700);
  color: var(--chalk-050);
}

.btn--ghost {
  background: transparent;
  color: var(--chalk-050);
  border-color: rgba(107, 122, 144, 0.55);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--flame-500);
  color: var(--ember-300);
}

.btn--signal {
  background: transparent;
  color: var(--signal-400);
  border-color: var(--signal-400);
}

.btn--signal:hover,
.btn--signal:focus-visible {
  background: var(--signal-400);
  color: var(--ink-950);
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  border: 1px solid rgba(107, 122, 144, 0.55);
  color: var(--steel-500);
  white-space: nowrap;
}

.tag--signal {
  color: var(--signal-400);
  border-color: rgba(53, 240, 192, 0.55);
  background: rgba(53, 240, 192, 0.08);
}

.tag--alert {
  color: var(--alert-450);
  border-color: rgba(255, 209, 102, 0.6);
  background: rgba(255, 209, 102, 0.1);
}

/* ---------- rules ---------- */
.rule {
  height: 1px;
  border: 0;
  background: var(--steel-500);
  opacity: 0.35;
  margin: 28px 0;
}

.rule--ember {
  background: linear-gradient(90deg, var(--flame-500), var(--ember-300), transparent);
  opacity: 0.85;
}

/* ---------- toc ---------- */
.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid rgba(107, 122, 144, 0.35);
  padding-left: 14px;
}

.toc__link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--steel-500);
  transition: color var(--dur-hover) var(--ease-rail),
    padding-left var(--dur-hover) var(--ease-rail);
}

.toc__link:hover,
.toc__link:focus-visible {
  color: var(--chalk-050);
  padding-left: 6px;
}

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-700);
  border: 1px solid rgba(107, 122, 144, 0.28);
  aspect-ratio: 16 / 10;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(120% 90% at 80% 0%, rgba(255, 178, 122, 0.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(8, 13, 22, 0.35) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.media-frame > img,
.media-frame > picture > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel-500);
}

/* ---------- reveal & section state ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-rail), transform 420ms var(--ease-rail);
}

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

[data-scroll-section].is-active {
  border-left: 2px solid var(--signal-400);
  padding-left: 14px;
  animation: section-breathe 1.2s ease-in-out 1;
}

@keyframes section-breathe {
  0% { background: rgba(53, 240, 192, 0.08); }
  100% { background: transparent; }
}

/* ---------- back to top ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--signal-400);
  background: rgba(16, 26, 43, 0.94);
  border: 1px solid rgba(53, 240, 192, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur-hover) var(--ease-rail),
    transform var(--dur-hover) var(--ease-rail),
    visibility var(--dur-hover) var(--ease-rail);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover,
.back-top:focus-visible { border-color: var(--signal-400); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-800);
  background-image:
    linear-gradient(90deg, rgba(107, 122, 144, 0.14) 1px, transparent 1px);
  background-size: 96px 100%;
  border-top: 2px solid var(--flame-500);
  padding: 56px 0 0;
  font-size: 14px;
  color: rgba(244, 241, 236, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1.1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 44px;
}

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

.footer-brand { border-left: 2px solid var(--flame-500); padding-left: 16px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--chalk-050);
}

.footer-logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--flame-500);
  border: 1px solid rgba(255, 75, 31, 0.5);
  background: rgba(255, 75, 31, 0.08);
  flex: 0 0 auto;
}

.footer-logo__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.footer-claim {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--chalk-050);
  margin-bottom: 12px;
}

.footer-meta {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel-500);
  max-width: 30em;
}

.footer-title {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--signal-400);
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: var(--hairline);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  color: rgba(244, 241, 236, 0.78);
  font-size: 13.5px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-hover) var(--ease-rail),
    border-color var(--dur-hover) var(--ease-rail),
    transform var(--dur-hover) var(--ease-rail);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--flame-500);
  border-bottom-color: var(--flame-500);
  transform: translateX(3px);
}

.footer-address {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(244, 241, 236, 0.78);
  margin-bottom: 12px;
  word-break: break-word;
}

.footer-address a {
  color: var(--chalk-050);
  border-bottom: 1px solid rgba(107, 122, 144, 0.5);
  transition: color var(--dur-hover) var(--ease-rail),
    border-color var(--dur-hover) var(--ease-rail);
}

.footer-address a:hover,
.footer-address a:focus-visible {
  color: var(--signal-400);
  border-bottom-color: var(--signal-400);
}

.footer-cta { margin: 4px 0 14px; }

.footer-rss {
  display: block;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel-500);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-hover) var(--ease-rail),
    border-color var(--dur-hover) var(--ease-rail);
}

.footer-rss:hover,
.footer-rss:focus-visible {
  color: var(--ember-300);
  border-bottom-color: var(--ember-300);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px var(--gutter) 22px;
  border-top: var(--hairline);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel-500);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal__links a {
  color: var(--steel-500);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-hover) var(--ease-rail),
    border-color var(--dur-hover) var(--ease-rail);
}

.footer-legal__links a:hover,
.footer-legal__links a:focus-visible {
  color: var(--signal-400);
  border-bottom-color: var(--signal-400);
}

.footer-legal__copy { margin-left: auto; }
.footer-legal__icp { color: var(--steel-500); }

/* ============================================================
   responsive
   ============================================================ */

/* tablet */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer-legal__copy { margin-left: 0; }
}

/* mobile: rail becomes drawer */
@media (max-width: 860px) {
  :root { --rail-w: 0px; --gutter: 18px; }

  .site-shell { padding-left: 0; }

  .notice-bar {
    font-size: 12px;
    padding: 8px 14px;
    gap: 8px;
  }

  .notice-bar__label { padding-right: 8px; }

  .rail {
    top: 0;
    width: 300px;
    max-width: 88vw;
    padding-top: 16px;
    transform: translateX(-102%);
    transition: transform var(--dur-rail) var(--ease-rail);
    box-shadow: 12px 0 40px rgba(8, 13, 22, 0.7);
  }

  .rail[data-open="true"] {
    width: 300px;
    max-width: 88vw;
    transform: translateX(0);
  }

  .rail[data-open="true"] .rail__nav-kicker,
  .rail[data-open="true"] .rail__nav-note { display: block; }

  .rail__name,
  .rail__toggle-text,
  .rail__nav-kicker,
  .nav-link__text {
    opacity: 1;
    width: auto;
  }

  .rail__name em { display: none; }

  .nav-link { font-size: 15px; padding: 12px 8px 12px 14px; }

  .rail__drawer-cta { display: flex; }

  .rail__foot { display: none; }

  .rail-scrim { display: block; opacity: 0; pointer-events: none; transition: opacity var(--dur-rail) var(--ease-rail); }
  .rail-scrim.is-on { opacity: 1; pointer-events: auto; }

  /* mobile trigger: keep a fixed bar so nav is always reachable */
  .site-header { height: 0; }

  .rail__toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 150;
    width: auto;
    padding: 10px 14px;
    background: var(--ink-800);
    border: 1px solid rgba(255, 75, 31, 0.5);
    color: var(--flame-500);
    letter-spacing: 0.16em;
  }

  .rail[data-open="true"] .rail__toggle {
    position: static;
    width: 100%;
    border-color: rgba(107, 122, 144, 0.4);
    color: var(--steel-500);
  }

  .rail__toggle-text { font-size: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }

  .footer-brand { border-left-width: 2px; }

  .site-footer { padding-top: 40px; }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 10.5px;
  }

  .page-head { padding: 40px 0 26px; }

  .back-top { right: 14px; bottom: 14px; }
}

@media (max-width: 480px) {
  .notice-bar { font-size: 11.5px; }
  .notice-bar__label { display: none; }
  .footer-title { font-size: 10px; }
  .display { text-shadow: 1px 1px 0 var(--flame-500); }
}

/* desktop: rail hover-preview expansion */
@media (min-width: 861px) {
  .rail[data-open="false"]:hover,
  .rail[data-open="false"]:focus-within {
    width: var(--rail-w-open);
  }

  .rail[data-open="false"]:hover .rail__name,
  .rail[data-open="false"]:hover .rail__toggle-text,
  .rail[data-open="false"]:hover .rail__nav-kicker,
  .rail[data-open="false"]:hover .nav-link__text,
  .rail[data-open="false"]:focus-within .rail__name,
  .rail[data-open="false"]:focus-within .rail__toggle-text,
  .rail[data-open="false"]:focus-within .rail__nav-kicker,
  .rail[data-open="false"]:focus-within .nav-link__text {
    opacity: 1;
    width: auto;
  }

  /* rail is fixed; keep main content from jumping when preview expands */
  .rail[data-open="false"]:hover ~ * { }
}

/* ---------- 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;
  }

  .display,
  .page-title { transform: none; }

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

  .btn:hover,
  .btn:focus-visible { transform: none; }

  .footer-list a:hover,
  .footer-list a:focus-visible { transform: none; }
}
