/* ==========================================================================
   乐竞体育 · 城市主场 —— 共享样式 /assets/site.css
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

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

ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

:root {
  /* 色彩体系 */
  --fd-ink: #071A12;
  --fd-moss: #0E2B1F;
  --fd-moss-mid: #174A36;
  --fd-lime: #D6FF3F;
  --fd-lime-soft: #EDFF9E;
  --fd-orange: #F0642B;
  --fd-clay: #B8664A;
  --fd-stone: #8F9C91;
  --fd-paper: #F3EEDF;
  --fd-black: #121512;

  --fd-line: rgba(143, 156, 145, 0.26);
  --fd-line-strong: rgba(143, 156, 145, 0.45);
  --fd-text-soft: rgba(243, 238, 223, 0.76);

  /* 字体 */
  --fd-font-head: "Oswald", "Bebas Neue", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --fd-font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --fd-font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 节奏 */
  --fd-gutter: clamp(1.25rem, 5vw, 4.5rem);
  --fd-radius: 18px;
}

body {
  font-family: var(--fd-font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--fd-paper);
  background-color: var(--fd-ink);
  background-image:
    radial-gradient(rgba(243, 238, 223, 0.045) 1px, transparent 1.2px),
    radial-gradient(120% 78% at 86% -12%, rgba(23, 74, 54, 0.85), transparent 62%),
    radial-gradient(92% 60% at -14% 6%, rgba(23, 74, 54, 0.5), transparent 58%);
  background-size: 3px 3px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#main-content { padding-top: clamp(86px, 9vw, 112px); }

h1, h2, h3, h4, h5 {
  font-family: var(--fd-font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.075em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--fd-lime);
  outline-offset: 3px;
}

/* ------------------------------ 布局工具 ------------------------------ */
.fd-container {
  width: min(1180px, calc(100% - (var(--fd-gutter) * 2)));
  margin-inline: auto;
}

.fd-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.fd-span-4 { grid-column: span 4; }
.fd-span-5 { grid-column: span 5; }
.fd-span-6 { grid-column: span 6; }
.fd-span-7 { grid-column: span 7; }
.fd-span-8 { grid-column: span 8; }

.fd-section { padding-block: clamp(44px, 7vw, 96px); }

/* ------------------------------ 排版工具 ------------------------------ */
.fd-display {
  font-family: var(--fd-font-head);
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0.055em;
  text-wrap: balance;
}

.fd-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.85;
  color: var(--fd-text-soft);
  max-width: 56ch;
  letter-spacing: 0.012em;
}

.fd-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--fd-font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fd-stone);
}

.fd-eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--fd-lime);
}

.fd-note {
  font-family: var(--fd-font-mono);
  font-size: 0.72rem;
  line-height: 1.9;
  letter-spacing: 0.11em;
  color: var(--fd-stone);
}

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

/* ------------------------------ 标签 ------------------------------ */
.fd-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.34em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--fd-line-strong);
  background: rgba(23, 74, 54, 0.36);
  color: var(--fd-stone);
  font-family: var(--fd-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fd-tag--lime {
  background: var(--fd-lime);
  border-color: var(--fd-lime);
  color: var(--fd-ink);
}

.fd-tag--orange {
  background: rgba(240, 100, 43, 0.16);
  border-color: rgba(240, 100, 43, 0.55);
  color: #FFA982;
}

.fd-tag--clay {
  background: rgba(184, 102, 74, 0.2);
  border-color: rgba(184, 102, 74, 0.5);
  color: #E3A98E;
}

/* ------------------------------ 按钮 ------------------------------ */
.fd-btn {
  --fd-btn-bg: var(--fd-lime);
  --fd-btn-fg: var(--fd-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.86em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--fd-btn-bg);
  color: var(--fd-btn-fg);
  font-family: var(--fd-font-head);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px rgba(214, 255, 63, 0.95);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.fd-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -16px rgba(214, 255, 63, 0.95);
}

.fd-btn:active { transform: translateY(0); }

.fd-btn--line {
  background: transparent;
  color: var(--fd-paper);
  border-color: var(--fd-line-strong);
  box-shadow: none;
}

.fd-btn--line:hover {
  border-color: var(--fd-lime);
  color: var(--fd-lime);
  box-shadow: none;
}

.fd-btn--orange {
  --fd-btn-bg: var(--fd-orange);
  --fd-btn-fg: #1B0A03;
  box-shadow: 0 12px 26px -16px rgba(240, 100, 43, 0.95);
}

.fd-btn--orange:hover { box-shadow: 0 18px 30px -16px rgba(240, 100, 43, 0.95); }

/* ------------------------------ 卡片 ------------------------------ */
.fd-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--fd-line);
  border-radius: var(--fd-radius);
  background: linear-gradient(160deg, rgba(23, 74, 54, 0.7), rgba(14, 43, 31, 0.7));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fd-card:hover {
  border-color: var(--fd-lime);
  box-shadow: 7px 7px 0 0 rgba(214, 255, 63, 0.16);
  transform: translate(-1px, -1px);
}

/* ------------------------------ 纸张 ------------------------------ */
.fd-paper {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--fd-radius);
  background: var(--fd-paper);
  color: var(--fd-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 30px 56px -40px rgba(0, 0, 0, 0.95);
}

.fd-paper::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(7, 26, 18, 0.14);
  border-radius: 12px;
  pointer-events: none;
}

.fd-paper h2, .fd-paper h3, .fd-paper h4 { color: var(--fd-ink); }
.fd-paper .fd-note { color: #52635A; }

/* ------------------------------ 图片容器 ------------------------------ */
.fd-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--fd-line);
  background-color: var(--fd-moss);
  background-image:
    linear-gradient(180deg, rgba(7, 26, 18, 0.18), rgba(7, 26, 18, 0.86)),
    repeating-linear-gradient(135deg, rgba(23, 74, 54, 0.9) 0 14px, rgba(14, 43, 31, 0.9) 14px 28px);
  isolation: isolate;
}

.fd-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fd-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(7, 26, 18, 0.55) 1px, transparent 1.2px);
  background-size: 3px 3px;
  opacity: 0.5;
}

.fd-figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 16px 20px;
  font-family: var(--fd-font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 238, 223, 0.92);
  background: linear-gradient(to top, rgba(7, 26, 18, 0.92), rgba(7, 26, 18, 0));
}

.fd-figure--wide { aspect-ratio: 21 / 9; }
.fd-figure--tall { aspect-ratio: 4 / 5; }
.fd-figure--square { aspect-ratio: 1 / 1; }

/* ------------------------------ 面包屑 ------------------------------ */
.fd-crumbs {
  font-family: var(--fd-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--fd-stone);
  padding-block: clamp(14px, 2vw, 22px);
}

.fd-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-crumbs li { display: flex; align-items: center; gap: 0.7em; }

.fd-crumbs li + li::before {
  content: "/";
  color: rgba(143, 156, 145, 0.6);
}

.fd-crumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.fd-crumbs a:hover {
  color: var(--fd-lime);
  border-bottom-color: var(--fd-lime);
}

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

/* ------------------------------ 章节索引 ------------------------------ */
.fd-rail {
  position: sticky;
  top: 118px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--fd-line);
}

.fd-rail a {
  position: relative;
  margin-left: -16px;
  padding: 0.42em 0 0.42em 14px;
  border-left: 2px solid transparent;
  font-family: var(--fd-font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  color: var(--fd-stone);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.fd-rail a:hover { color: var(--fd-paper); }

.fd-rail a[aria-current] {
  color: var(--fd-lime);
  border-left-color: var(--fd-lime);
}

/* ==========================================================================
   页头 —— 悬浮胶囊导航
   ========================================================================== */
.fd-skip {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  background: var(--fd-lime);
  color: var(--fd-ink);
  font-family: var(--fd-font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  transform: translate(-50%, -220%);
  transition: transform 0.22s ease;
}

.fd-skip:focus { transform: translate(-50%, 0); }

.fd-header {
  position: fixed;
  top: 22px;
  left: 22px;
  right: 22px;
  z-index: 100;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

.fd-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(143, 156, 145, 0.16);
  pointer-events: none;
}

.fd-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--fd-lime), var(--fd-orange));
  transition: width 0.12s linear;
}

.fd-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--fd-line-strong);
  border-radius: 999px;
  background: rgba(11, 34, 24, 0.9);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(243, 238, 223, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.fd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fd-paper);
  transition: background-color 0.18s ease;
}

.fd-brand:hover { background: rgba(23, 74, 54, 0.6); }

.fd-brand-mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fd-lime);
  box-shadow: inset 0 0 0 2px rgba(7, 26, 18, 0.92);
  transition: box-shadow 0.2s ease;
}

.fd-brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--fd-ink);
  transform: translate(-50%, -50%) rotate(45deg);
}

.fd-brand:hover .fd-brand-mark { box-shadow: inset 0 0 0 2px rgba(7, 26, 18, 0.92), 0 0 0 3px rgba(214, 255, 63, 0.22); }

.fd-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}

.fd-brand-name {
  font-family: var(--fd-font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.fd-brand-sub {
  font-family: var(--fd-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fd-stone);
  margin-top: 3px;
}

.fd-pill-divider {
  flex: none;
  width: 1px;
  height: 22px;
  margin-inline: 3px;
  background: var(--fd-line-strong);
}

.fd-nav { display: flex; min-width: 0; }

.fd-nav-list {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.fd-nav-link {
  position: relative;
  display: inline-block;
  padding: 8px clamp(8px, 1.05vw, 13px);
  border-radius: 999px;
  font-size: 0.855rem;
  letter-spacing: 0.05em;
  color: rgba(243, 238, 223, 0.72);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.fd-nav-link::after {
  content: "";
  position: absolute;
  left: clamp(8px, 1.05vw, 13px);
  right: clamp(8px, 1.05vw, 13px);
  bottom: 4px;
  height: 1px;
  background: var(--fd-lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.fd-nav-link:hover { color: var(--fd-paper); }
.fd-nav-link:hover::after { transform: scaleX(1); }

.fd-nav-link[aria-current="page"] {
  background: var(--fd-lime);
  color: var(--fd-ink);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--fd-lime), 0 0 0 3px rgba(214, 255, 63, 0.1);
}

.fd-nav-link[aria-current="page"]::after { display: none; }

.fd-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--fd-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fd-paper);
  font-family: var(--fd-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

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

.fd-nav-toggle-bars {
  display: block;
  flex: none;
  width: 16px;
  height: 10px;
  background-image:
    linear-gradient(var(--fd-lime), var(--fd-lime)),
    linear-gradient(var(--fd-lime), var(--fd-lime)),
    linear-gradient(var(--fd-lime), var(--fd-lime));
  background-repeat: no-repeat;
  background-size: 100% 2px, 100% 2px, 100% 2px;
  background-position: 0 0, 0 4px, 0 8px;
}

.fd-nav-toggle-text { line-height: 1; }

.fd-pill[data-open] .fd-nav-toggle {
  border-color: var(--fd-lime);
  color: var(--fd-ink);
  background: var(--fd-lime);
}

.fd-pill[data-open] .fd-nav-toggle-bars {
  background-image:
    linear-gradient(var(--fd-ink), var(--fd-ink)),
    linear-gradient(var(--fd-ink), var(--fd-ink)),
    linear-gradient(var(--fd-ink), var(--fd-ink));
}

/* ==========================================================================
   页脚 —— 闭场记分牌
   ========================================================================== */
.fd-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 132px);
  padding-block: clamp(42px, 6vw, 76px) clamp(24px, 4vw, 40px);
  background: var(--fd-moss);
  border-top: 1px solid var(--fd-line);
}

.fd-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(280px, 42%);
  height: 2px;
  background: var(--fd-lime);
}

.fd-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.fd-footer-kicker {
  font-family: var(--fd-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fd-lime);
  margin-bottom: 0.9rem;
}

.fd-footer-title {
  font-family: var(--fd-font-head);
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--fd-paper);
}

.fd-footer-note {
  max-width: 36ch;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--fd-stone);
}

.fd-footer-nav { justify-self: end; width: 100%; }

.fd-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1.05em;
  border: 1px solid var(--fd-line-strong);
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  color: rgba(243, 238, 223, 0.82);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.fd-footer-links a:hover {
  border-color: var(--fd-lime);
  background: var(--fd-lime);
  color: var(--fd-ink);
  transform: translateY(-2px);
}

.fd-footer-mid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 42px);
  margin-top: clamp(32px, 5vw, 58px);
  padding-top: clamp(24px, 4vw, 38px);
  border-top: 1px solid var(--fd-line);
}

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

.fd-footer-label {
  font-family: var(--fd-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fd-stone);
  margin-bottom: 0.65rem;
}

.fd-footer-value {
  font-family: var(--fd-font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--fd-paper);
  overflow-wrap: anywhere;
}

.fd-footer-col .fd-footer-note {
  margin-top: 0.65rem;
  font-family: var(--fd-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.fd-copy {
  margin-left: 0.65em;
  padding: 0.16em 0.68em;
  border: 1px solid var(--fd-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fd-stone);
  font-family: var(--fd-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  vertical-align: middle;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.fd-copy:hover,
.fd-copy[data-copied] {
  border-color: var(--fd-lime);
  background: var(--fd-lime);
  color: var(--fd-ink);
}

.fd-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: clamp(18px, 3vw, 26px);
  border-top: 1px solid var(--fd-line);
  font-family: var(--fd-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--fd-stone);
}

.fd-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-footer-legal a {
  color: var(--fd-stone);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 156, 145, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.fd-footer-legal a:hover {
  color: var(--fd-lime);
  border-bottom-color: var(--fd-lime);
}

.fd-footer-fine { margin: 0; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 980px) {
  .fd-header {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .fd-pill { gap: 8px; padding: 6px 8px 6px 6px; }

  .fd-pill-divider { display: none; }

  .fd-brand { padding-right: 4px; }

  .fd-brand-sub { display: none; }

  .fd-brand-name { font-size: 0.88rem; letter-spacing: 0.14em; }

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

  .fd-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px;
    border: 1px solid var(--fd-line-strong);
    border-radius: 22px;
    background: rgba(9, 30, 21, 0.97);
    box-shadow: 0 26px 52px -30px rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .fd-pill[data-open] .fd-nav { display: block; }

  .fd-nav-list {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .fd-nav-list::-webkit-scrollbar { height: 4px; }
  .fd-nav-list::-webkit-scrollbar-thumb {
    background: rgba(143, 156, 145, 0.55);
    border-radius: 99px;
  }

  .fd-nav-list > li { flex: none; scroll-snap-align: start; }

  .fd-nav-link {
    display: block;
    padding: 9px 16px;
    font-size: 0.84rem;
    background: rgba(23, 74, 54, 0.55);
    border: 1px solid var(--fd-line);
  }

  .fd-nav-link::after { display: none; }

  .fd-footer-top { grid-template-columns: minmax(0, 1fr); }

  .fd-footer-nav { justify-self: start; }

  .fd-footer-links { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .fd-span-4,
  .fd-span-5,
  .fd-span-6,
  .fd-span-7,
  .fd-span-8 { grid-column: 1 / -1; }

  .fd-rail {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 6px;
    border-left: 0;
    border-bottom: 1px solid var(--fd-line);
  }

  .fd-rail a {
    margin-left: 0;
    padding: 0.35em 0;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .fd-rail a[aria-current] { border-left: 0; border-bottom-color: var(--fd-lime); }

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

@media (max-width: 480px) {
  body { font-size: 16px; }

  .fd-brand-mark { width: 28px; height: 28px; }

  .fd-brand-mark::after { width: 9px; height: 9px; }

  .fd-btn { width: 100%; }
}

@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;
  }
}
