/* =========================================================
   9棋牌电玩 · 内容中心 / 共享样式 site.css
   墨渊黑底 + 墨绿分区 + 铜金刻度 + 朱砂红版本标记
   ========================================================= */

:root {
  --ink-900: #0B120F;
  --ink-800: #10201A;
  --ink-700: #16332A;
  --green-600: #1F5C43;
  --gold: #C9A063;
  --gold-light: #E8C98A;
  --cinnabar: #C4452E;
  --cinnabar-light: #E4633F;
  --paper: #F4F1E9;
  --grey-green: #A8B3AC;
  --stone: #6E7C74;

  --line: rgba(201, 160, 99, 0.26);
  --line-soft: rgba(201, 160, 99, 0.13);

  --rail-w: 92px;
  --brandbar-h: 64px;
  --max-w: 1240px;
  --gap: 1.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

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

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  padding-top: var(--brandbar-h);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(201, 160, 99, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 160, 99, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--cinnabar);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

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

/* ---------- 中文排版基座 ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

#main-content {
  scroll-margin-top: calc(var(--brandbar-h) + 16px);
}

/* ---------- 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

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

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

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

.grid--compare {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}

/* ---------- 正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--grey-green);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose p {
  margin: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2em;
  color: var(--paper);
}

.prose a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(201, 160, 99, 0.45);
  text-underline-offset: 3px;
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--paper);
  text-decoration-color: var(--paper);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose strong {
  color: var(--paper);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  color: var(--gold-light);
  background: rgba(201, 160, 99, 0.12);
}

.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  color: var(--grey-green);
}

/* ---------- 标签与数据 ---------- */
.label,
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--gold);
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--grey-green);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid currentColor;
}

.tag--version {
  color: var(--cinnabar-light);
  background: rgba(196, 69, 46, 0.12);
}

.tag--rank {
  color: var(--gold);
  background: rgba(201, 160, 99, 0.1);
}

.tag--tool {
  color: var(--paper);
  background: var(--green-600);
  border-color: var(--green-600);
}

/* ---------- 章节抬头与色带 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.9rem 1.1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.section-head__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.section-head__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.divider-band {
  height: 6px;
  width: 100%;
  border: 0;
  margin: 0;
  background: var(--green-600);
}

.divider-band--version {
  background: linear-gradient(90deg, var(--cinnabar), var(--cinnabar-light));
}

.divider-band--review {
  background: linear-gradient(90deg, var(--green-600), var(--gold));
}

.divider-band--tool {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.frame {
  position: relative;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: var(--green-600);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--gold);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink-900);
  border-color: var(--gold-light);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  --btn-bg: var(--green-600);
  --btn-fg: var(--paper);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--gold-light);
  border-color: rgba(201, 160, 99, 0.55);
}

.btn--ghost:hover {
  --btn-bg: rgba(201, 160, 99, 0.12);
  --btn-fg: var(--gold-light);
  border-color: var(--gold);
}

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--grey-green);
  border-color: transparent;
  padding-inline: 0.25rem;
  clip-path: none;
}

.btn--quiet:hover {
  --btn-bg: transparent;
  --btn-fg: var(--gold-light);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: 1.35rem 1.5rem;
  background: var(--ink-700);
  border: 1px solid var(--line);
  color: var(--paper);
}

.card--paper {
  background: var(--paper);
  color: var(--ink-900);
  border-color: var(--gold);
  box-shadow: 10px 10px 0 rgba(11, 18, 15, 0.55);
}

.card--paper .card__title,
.card--paper .card__meta {
  color: var(--ink-900);
}

.card--index {
  padding: 1.1rem 1.25rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.card--index:hover,
.card--index:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 160, 99, 0.25), 0 12px 26px rgba(0, 0, 0, 0.42);
}

.card--evidence {
  background: var(--ink-800);
  border-left: 3px solid var(--gold);
}

.card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.card__meta {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- 图像容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background-color: var(--ink-700);
  background-image:
    radial-gradient(120% 90% at 18% 8%, rgba(31, 92, 67, 0.6), transparent 62%),
    linear-gradient(160deg, var(--ink-700), var(--ink-900));
}

.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide {
  aspect-ratio: 21 / 9;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media--tall {
  aspect-ratio: 4 / 5;
}

.media__caption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--grey-green);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--stone);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--stone);
}

.breadcrumb__link {
  color: var(--grey-green);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--gold-light);
}

.breadcrumb__current {
  color: var(--paper);
}

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--cinnabar-light));
  z-index: 90;
  pointer-events: none;
}

/* ---------- 显现动效 ---------- */
[data-reveal] {
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(12px);
}

/* =========================================================
   页头
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 95;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--gold-light);
  border: 1px solid var(--gold);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline-offset: 2px;
}

.brand-bar {
  position: relative;
  z-index: 82;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--brandbar-h);
  padding: 0 clamp(0.9rem, 3vw, 1.5rem);
  background: var(--ink-800);
  border-bottom: 1px solid rgba(201, 160, 99, 0.35);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink-900);
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-bar__chapter {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(201, 160, 99, 0.45);
  cursor: pointer;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

/* ---------- 轨道导航 ---------- */
.rail {
  position: fixed;
  top: var(--brandbar-h);
  left: 0;
  bottom: 0;
  z-index: 78;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 1.5rem 0 1.25rem;
  overflow: visible;
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  border-right: 1px solid var(--line-soft);
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: auto 0;
  padding: 0;
  list-style: none;
}

.rail__item {
  display: block;
  width: 100%;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.35rem 0.25rem;
  color: var(--grey-green);
  border-left: 3px solid transparent;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.rail__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--stone);
  transition: color 0.25s var(--ease);
}

.rail__label {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  z-index: 5;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--paper);
  background: var(--green-600);
  border: 1px solid var(--gold);
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.rail__link:hover .rail__label,
.rail__link:focus-visible .rail__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.rail__link:hover .rail__num {
  color: var(--gold-light);
}

.rail__link[aria-current="page"] {
  color: var(--paper);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(31, 92, 67, 0.85), rgba(31, 92, 67, 0));
}

.rail__link[aria-current="page"] .rail__num {
  color: var(--gold-light);
}

.rail__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--cinnabar-light);
  transform: translateY(-50%) rotate(45deg);
}

.rail__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0.75rem 0.55rem 0;
  padding: 0.55rem 0.25rem;
  font-family: var(--font-mono);
  color: var(--gold);
  text-align: center;
  background: rgba(22, 51, 42, 0.7);
  border: 1px solid rgba(201, 160, 99, 0.5);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.rail__badge-key {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--grey-green);
}

.rail__badge-value {
  font-size: 0.82rem;
  font-weight: 700;
}

.rail__badge:hover,
.rail__badge:focus-visible {
  color: var(--paper);
  background: var(--cinnabar);
  border-color: var(--cinnabar-light);
}

.rail__badge:hover .rail__badge-key,
.rail__badge:focus-visible .rail__badge-key {
  color: var(--paper);
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: 5rem;
  color: var(--grey-green);
  background: var(--ink-900);
  font-size: 0.92rem;
}

.site-footer__band {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--green-600) 0 33%,
    var(--gold) 33% 66%,
    var(--cinnabar) 66% 100%
  );
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.6fr;
  gap: 2.5rem 3rem;
  padding-block: 3.25rem 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand--footer .brand__mark {
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
}

.footer-brand__note {
  max-width: 30ch;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--grey-green);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.footer__col {
  min-width: 0;
}

.footer__title {
  margin: 0 0 0.9rem;
  padding-bottom: 0.55rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line-soft);
}

.footer__list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list--plain {
  gap: 0.55rem;
}

.footer__link {
  position: relative;
  display: inline-block;
  padding-left: 0.95rem;
  color: var(--grey-green);
  transition: color 0.2s var(--ease);
}

.footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--stone);
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--gold-light);
}

.footer__link:hover::before,
.footer__link:focus-visible::before {
  width: 12px;
  background: var(--gold-light);
}

.footer__meta {
  display: inline-block;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--grey-green);
  word-break: break-word;
}

.footer__meta--mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey-green);
}

.site-footer__copy {
  margin: 0;
}

.site-footer__icp {
  margin: 0;
}

.site-footer__icp-num {
  letter-spacing: 0.04em;
  color: var(--stone);
}

/* =========================================================
   响应式
   ========================================================= */
@media (min-width: 900px) {
  body {
    padding-left: var(--rail-w);
  }
}

@media (max-width: 1023px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .brand-bar__chapter {
    display: none;
  }

  .rail {
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    padding: 5rem 1.25rem 1.5rem;
    overflow-y: auto;
    background: var(--ink-800);
    border-right: 0;
    border-left: 1px solid rgba(201, 160, 99, 0.4);
    justify-content: flex-start;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
  }

  .rail[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.32s var(--ease), visibility 0s linear 0s;
  }

  .rail__list {
    margin: 0;
    gap: 0;
  }

  .rail__link {
    justify-content: flex-start;
    gap: 0.9rem;
    min-height: 54px;
    padding: 0.55rem 0.25rem;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .rail__link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(31, 92, 67, 0.7), rgba(31, 92, 67, 0));
    border-bottom-color: var(--gold);
  }

  .rail__link[aria-current="page"]::after {
    right: 4px;
  }

  .rail__label {
    position: static;
    display: block;
    padding: 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: inherit;
    background: none;
    border: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

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

  .rail__badge {
    flex-direction: row;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.25rem 0 0;
    padding: 0.8rem;
  }

  .rail__badge-key {
    font-size: 0.68rem;
  }
}

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

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

  .site-footer__inner {
    padding-block: 2.5rem 1.25rem;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }

  .footer-brand__note {
    max-width: none;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .card--paper {
    box-shadow: 6px 6px 0 rgba(11, 18, 15, 0.55);
  }
}

@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],
  [data-reveal].is-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}
