/* ==========================================================================
   火博体育 · 共享站点样式 → /assets/site.css
   骨架：左侧框架导航 + 右侧内容区 + 顶部阅读进度
   ========================================================================== */

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

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

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

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

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

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --deep-900: #0B2E4F;
  --deep-700: #134A73;
  --deep-300: #7FB0C9;
  --coral-500: #FF6B4A;
  --coral-200: #FFB9A6;
  --sand-400: #E8B75B;
  --foam-50: #F7F5EF;
  --ink-900: #10222F;
  --moss-500: #2F6B5E;
  --clay-500: #A65B3C;
  --rock-400: #6E7A80;

  --rail-w: 276px;
  --sheet-max: 1200px;
  --measure: 68ch;

  --bw: 2px;
  --bw-bold: 3px;
  --shadow-hard: 6px 6px 0 var(--ink-900);
  --shadow-raise: 8px 8px 0 var(--ink-900);
  --shadow-soft: 4px 4px 0 var(--deep-700);

  --font-display: "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-17: 1.0625rem;
  --fs-21: 1.3125rem;
  --fs-28: 1.75rem;
  --fs-38: 2.375rem;
  --fs-54: 3.375rem;
  --fs-72: 4.5rem;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 200ms;
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-17);
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-900);
  background-color: var(--foam-50);
  background-image:
    linear-gradient(115deg, rgba(127, 176, 201, 0.09) 0 1px, transparent 1px 100%);
  background-size: 140px 140px;
  padding-left: var(--rail-w);
  min-height: 100vh;
  overflow-x: hidden;
}

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

::selection {
  background: var(--coral-200);
  color: var(--ink-900);
}

:focus-visible {
  outline: 3px solid var(--coral-500);
  outline-offset: 3px;
}

.mono,
.rail-nav__idx,
.rail-actions__label,
.rail-ticker,
.footer__contact-label,
.footer__icp,
.footer__meta,
.footer__col-title,
.footer__contact-title,
.section-head__meta,
.breadcrumbs,
.eyebrow,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  display: inline-block;
  padding: 10px 18px;
  background: var(--ink-900);
  color: var(--foam-50);
  font-weight: 700;
  font-size: var(--fs-14);
  text-decoration: none;
  border: var(--bw) solid var(--coral-500);
  box-shadow: 4px 4px 0 var(--coral-500);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. Read progress ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(11, 46, 79, 0.18);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral-500);
}

/* ---------- 6. Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--coral-500);
  border: var(--bw) solid var(--ink-900);
  box-shadow: 3px 3px 0 var(--ink-900);
}

.brand__arrow {
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--ink-900);
  border-right: 3px solid var(--ink-900);
  transform: rotate(45deg) translate(-2px, 2px);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-21);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.brand__latin {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--deep-300);
}

.brand--compact .brand__mark {
  width: 34px;
  height: 34px;
}

.brand--compact .brand__name {
  font-size: var(--fs-17);
}

.brand--footer .brand__name {
  font-size: var(--fs-21);
}

/* ---------- 7. Header / Rail ---------- */
.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.site-header__mobile {
  display: none;
}

.site-rail {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 22px;
  background: var(--deep-900);
  color: var(--foam-50);
  border-right: var(--bw-bold) solid var(--ink-900);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-rail::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 190px;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 22px,
    rgba(127, 176, 201, 0.16) 22px 24px
  );
}

.brand__tagline {
  position: relative;
  margin-top: 14px;
  padding-left: 11px;
  border-left: 3px solid var(--coral-500);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--deep-300);
}

/* ---------- 8. Rail nav ---------- */
.rail-nav {
  position: relative;
  margin-top: 26px;
}

.rail-nav__label {
  padding-bottom: 9px;
  margin-bottom: 8px;
  border-bottom: var(--bw) solid var(--deep-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep-300);
}

.rail-nav__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail-nav__item {
  display: block;
}

.rail-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: var(--foam-50);
  border: var(--bw) solid transparent;
  border-left: 3px solid transparent;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.rail-nav__link:hover {
  background: var(--deep-700);
  border-left-color: var(--coral-500);
  transform: translateX(2px);
}

.rail-nav__link[aria-current="page"] {
  background: var(--coral-500);
  color: var(--ink-900);
  border-color: var(--ink-900);
  box-shadow: 4px 4px 0 var(--ink-900);
  transform: none;
}

.rail-nav__idx {
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

.rail-nav__text {
  flex: 1;
  min-width: 0;
}

/* ---------- 9. Rail actions ---------- */
.rail-actions {
  position: relative;
  margin-top: auto;
  padding-top: 22px;
  border-top: var(--bw) solid var(--deep-700);
}

.rail-actions__label {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-300);
}

.rail-actions__list {
  display: grid;
  gap: 8px;
}

.rail-ticker {
  position: relative;
  margin-top: 14px;
  padding: 8px 10px;
  background: rgba(232, 183, 91, 0.16);
  border-left: 3px solid var(--sand-400);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #EBDCBC;
}

/* ---------- 10. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-14);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: var(--bw) solid var(--ink-900);
  border-radius: 0;
  background: var(--foam-50);
  color: var(--ink-900);
  box-shadow: 4px 4px 0 var(--ink-900);
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-raise);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink-900);
}

.btn--primary {
  background: var(--coral-500);
  color: var(--ink-900);
}

.btn--sm {
  padding: 8px 12px;
  font-size: 12.5px;
  box-shadow: 3px 3px 0 var(--ink-900);
}

.btn--rail {
  width: 100%;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 13px;
  background: transparent;
  color: var(--foam-50);
  border-color: var(--deep-300);
  box-shadow: 3px 3px 0 rgba(127, 176, 201, 0.32);
}

.btn--rail::after {
  content: "↗";
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.btn--rail:hover {
  background: var(--coral-500);
  color: var(--ink-900);
  border-color: var(--ink-900);
  box-shadow: 3px 3px 0 var(--ink-900);
}

.btn--footer {
  justify-self: start;
  background: var(--coral-500);
  color: var(--ink-900);
}

/* ---------- 11. Nav toggle ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--coral-500);
  color: var(--ink-900);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  border: var(--bw) solid var(--ink-900);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink-900);
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2.5px;
  background: var(--ink-900);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__text {
  letter-spacing: 0.1em;
}

.site-header[data-open] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--deep-900);
  color: var(--foam-50);
  border-top: var(--bw-bold) solid var(--ink-900);
}

.footer__stripe {
  height: 10px;
  border-bottom: var(--bw) solid var(--ink-900);
  background: repeating-linear-gradient(
    115deg,
    var(--coral-500) 0 28px,
    var(--sand-400) 28px 56px,
    var(--deep-700) 56px 84px
  );
}

.footer__inner {
  width: 100%;
  max-width: var(--sheet-max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 48px) 28px;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.footer__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer__brand {
  display: grid;
  gap: 16px;
  align-content: start;
}

.footer__closing {
  padding-left: 11px;
  border-left: 3px solid var(--sand-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-21);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #EBDCBC;
}

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

.footer__col {
  min-width: 0;
}

.footer__col-title {
  padding-bottom: 9px;
  margin-bottom: 12px;
  border-bottom: var(--bw) solid rgba(127, 176, 201, 0.34);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-400);
}

.footer__nav {
  display: grid;
  gap: 9px;
}

.footer__nav-link {
  display: inline-block;
  font-size: 15px;
  line-height: 1.5;
  color: var(--foam-50);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__nav-link:hover {
  color: var(--coral-200);
  border-bottom-color: var(--coral-500);
}

.footer__contact {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(19, 74, 115, 0.45);
  border: var(--bw) solid rgba(127, 176, 201, 0.34);
  border-left: 4px solid var(--coral-500);
}

.footer__contact-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-400);
}

.footer__contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 24px;
}

.footer__contact-item {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.footer__contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-300);
}

.footer__contact-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--foam-50);
  overflow-wrap: anywhere;
}

.footer__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(247, 245, 239, 0.72);
  max-width: 62ch;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: var(--bw) solid rgba(127, 176, 201, 0.28);
}

.footer__icp,
.footer__meta {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--deep-300);
}

/* ---------- 13. Layout utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--sheet-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.section {
  padding-block: clamp(40px, 6vw, 80px);
}

.section + .section {
  border-top: var(--bw) solid rgba(16, 34, 47, 0.14);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}

.grid--split {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}

.grid--main {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

/* ---------- 14. Text components ---------- */
.prose {
  max-width: var(--measure);
  font-size: var(--fs-17);
  line-height: 1.8;
}

.prose p + p,
.prose p + ul,
.prose p + ol,
.prose ul + p,
.prose ol + p {
  margin-top: 1em;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  font-size: var(--fs-28);
}

.prose h3 {
  font-size: var(--fs-21);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: revert;
}

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

.prose a {
  color: var(--deep-700);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-500);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 3px;
  background: var(--coral-500);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.section-head__title {
  font-size: clamp(1.5rem, 3.2vw, 2.375rem);
  font-weight: 900;
}

.section-head__meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rock-400);
}

/* ---------- 15. Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  border-bottom: var(--bw) solid rgba(16, 34, 47, 0.12);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rock-400);
}

.breadcrumbs__link {
  color: var(--deep-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.breadcrumbs__link:hover {
  border-bottom-color: var(--coral-500);
}

.breadcrumbs__sep {
  color: var(--deep-300);
}

.breadcrumbs__current {
  font-weight: 700;
  color: var(--ink-900);
}

/* ---------- 16. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  background: var(--coral-200);
  color: var(--ink-900);
  border: var(--bw) solid var(--ink-900);
}

.tag--deep {
  background: var(--deep-900);
  color: var(--foam-50);
}

.tag--sand {
  background: var(--sand-400);
}

.tag--moss {
  background: var(--moss-500);
  color: var(--foam-50);
}

/* ---------- 17. Cards ---------- */
.card {
  padding: clamp(18px, 2.5vw, 26px);
  background: #FFFFFF;
  border: var(--bw) solid var(--ink-900);
  box-shadow: var(--shadow-hard);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-raise);
}

.card--flat,
.card--flat:hover {
  box-shadow: none;
  transform: none;
}

/* ---------- 18. Data table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: var(--bw) solid var(--ink-900);
  font-size: 15px;
}

.data-table caption {
  caption-side: top;
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rock-400);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: var(--bw) solid rgba(16, 34, 47, 0.12);
}

.data-table thead th {
  background: var(--deep-900);
  color: var(--foam-50);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: var(--bw-bold) solid var(--ink-900);
}

.data-table tbody tr {
  transition: background var(--dur) var(--ease);
}

.data-table tbody tr:hover {
  background: #FFF6E9;
}

.data-table .num {
  text-align: right;
  color: var(--deep-900);
  font-weight: 600;
}

/* ---------- 19. Media frames ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--deep-700);
  background-image:
    repeating-linear-gradient(
      115deg,
      rgba(247, 245, 239, 0.08) 0 20px,
      transparent 20px 40px
    );
  border: var(--bw-bold) solid var(--ink-900);
  box-shadow: var(--shadow-hard);
}

.media > img,
.media > picture,
.media > picture > img,
.media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--coral-500);
  color: var(--ink-900);
  border-right: var(--bw) solid var(--ink-900);
  border-bottom: var(--bw) solid var(--ink-900);
}

.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--foam-50);
  background: rgba(11, 46, 79, 0.86);
  border-top: var(--bw) solid var(--ink-900);
}

/* ---------- 20. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

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

.rule-draw {
  display: block;
  width: 0;
  height: 3px;
  background: var(--coral-500);
  transition: width 220ms var(--ease);
}

.is-revealed .rule-draw,
.rule-draw.is-revealed {
  width: 48px;
}

/* ---------- 21. Responsive ---------- */
@media (min-width: 1024px) and (max-width: 1280px) {
  :root { --rail-w: 232px; }
}

@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: 64px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    background: var(--deep-900);
    border-bottom: var(--bw-bold) solid var(--ink-900);
    z-index: 80;
  }

  .site-header__mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 60px;
    padding: 0 16px;
    border-bottom: var(--bw) solid transparent;
  }

  .site-rail {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    flex: none;
    height: auto;
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-top: var(--bw) solid var(--deep-700);
    transform: translateY(-104%);
    visibility: hidden;
    transition: transform 240ms var(--ease), visibility 0s linear 240ms;
  }

  .site-header[data-open] .site-rail {
    transform: translateY(0);
    visibility: visible;
    transition: transform 240ms var(--ease), visibility 0s linear 0s;
  }

  .site-rail > .brand,
  .site-rail > .brand__tagline {
    display: none;
  }

  .rail-nav {
    margin-top: 0;
  }

  .rail-nav__link {
    padding: 13px 12px;
    font-size: 16px;
  }

  .rail-actions {
    margin-top: 26px;
  }

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

  .btn--rail {
    justify-content: center;
    padding: 12px 6px;
    font-size: 12.5px;
  }

  .btn--rail::after {
    display: none;
  }

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

@media (max-width: 900px) {
  .grid--split,
  .grid--main {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

  .section + .section {
    border-top-width: 1px;
  }
}

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

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

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

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

  .nav-toggle__text {
    display: none;
  }
}

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

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

  .rule-draw {
    width: 48px;
  }

  .btn:hover,
  .card:hover,
  .rail-nav__link:hover {
    transform: none;
  }
}
