/* ============================================================
   AOA 赛事主站 · /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, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }

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

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

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

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

table { border-collapse: collapse; width: 100%; }

i { font-style: normal; }

/* 2. Variables --------------------------------------------- */
:root {
  --dsp-900: #071426;
  --dsp-700: #0E2A4D;
  --dsp-500: #1B4478;
  --orange-500: #FF6A2B;
  --orange-200: #FFB98F;
  --cyan-400: #2FD3E0;
  --lime-400: #C6FF4F;
  --paper-050: #F6F3EC;
  --paper-100: #FFFDF8;
  --ink-900: #12161F;
  --neutral-400: #7C879B;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "DIN Alternate", "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-17: 1.0625rem;
  --fs-22: 1.375rem;

  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1240px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --line: rgba(27, 68, 120, .55);
  --line-soft: rgba(27, 68, 120, .28);
  --on-dark: rgba(246, 243, 236, .82);
  --on-dark-weak: rgba(246, 243, 236, .66);
}

/* 3. Base -------------------------------------------------- */
body {
  font-family: var(--sans);
  font-size: var(--fs-17);
  line-height: 1.75;
  color: var(--ink-900);
  background: var(--paper-050);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange-500); color: #08111f; }

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

#main-content { scroll-margin-top: 132px; }

/* 4. Utilities --------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .22em;
  color: var(--neutral-400);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-200%);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--orange-500);
  color: #0a1220;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .1em;
  transition: transform .22s var(--ease);
}

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

/* 5. Masthead ---------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--paper-050);
  background-color: var(--dsp-900);
  background-image:
    repeating-linear-gradient(90deg, rgba(246, 243, 236, .045) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, rgba(14, 42, 77, .92), rgba(7, 20, 38, 1) 78%);
  border-bottom: 1px solid var(--line);
  transition: border-color .24s var(--ease);
}

.masthead[data-open] { border-bottom-color: rgba(255, 106, 43, .6); }

.masthead__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 15px 11px;
}

.masthead__signature {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .16em;
  color: var(--neutral-400);
}

.masthead__signature::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange-500);
  flex: 0 0 auto;
}

.masthead__brand {
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.masthead__wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1;
  letter-spacing: .1em;
  color: var(--paper-050);
  transition: color .22s var(--ease);
}

.masthead__brand:hover .masthead__wordmark { color: var(--orange-200); }

.masthead__version {
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .1em;
  color: var(--cyan-400);
  border: 1px solid rgba(47, 211, 224, .38);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  transform: translateY(-3px);
}

.masthead__status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
}

.masthead__status-text { color: var(--on-dark-weak); }

/* 状态点 */
.status-dot {
  --dot: 198, 255, 79;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--dot));
  box-shadow: 0 0 0 3px rgba(var(--dot), .18);
  animation: breathe 2.4s var(--ease) infinite;
}

.status-dot--cyan { --dot: 47, 211, 224; }
.status-dot--orange { --dot: 255, 106, 43; }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--dot), .20); }
  50% { box-shadow: 0 0 0 7px rgba(var(--dot), .04); }
}

/* 移动端胶囊按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  justify-self: end;
  padding: 8px 15px;
  border: 1px solid rgba(246, 243, 236, .28);
  border-radius: var(--radius-pill);
  color: var(--paper-050);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .12em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover { border-color: var(--orange-500); color: var(--orange-200); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease);
}

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

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

/* 主导航 */
.nav {
  border-top: 1px solid var(--line-soft);
  counter-reset: nav;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  padding-block: 10px;
}

.nav__item { counter-increment: nav; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 6px 2px;
  font-size: var(--fs-14);
  letter-spacing: .03em;
  color: rgba(246, 243, 236, .78);
  transition: color .22s var(--ease);
}

.nav__link::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0;
  color: rgba(124, 135, 155, .9);
  transition: color .22s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.nav__link:hover { color: var(--paper-050); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--orange-500); }
.nav__link[aria-current="page"]::before { color: var(--orange-500); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 阅读进度 */
.progress {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(27, 68, 120, .55);
}

.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-400), var(--orange-500));
  transition: width .12s linear;
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* 6. Footer ------------------------------------------------ */
.footer {
  position: relative;
  color: var(--on-dark);
  background-color: var(--dsp-900);
  background-image:
    repeating-linear-gradient(115deg, rgba(246, 243, 236, .035) 0 1px, transparent 1px 48px),
    radial-gradient(95% 120% at 88% 0%, rgba(255, 106, 43, .16), transparent 62%),
    radial-gradient(70% 95% at 6% 100%, rgba(47, 211, 224, .13), transparent 60%);
  clip-path: polygon(0 clamp(0px, 4vw, 56px), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(clamp(52px, 7vw, 88px) + clamp(0px, 4vw, 56px));
  padding-bottom: 0;
}

.footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr .9fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(34px, 5vw, 60px);
}

.footer__mark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1;
  letter-spacing: .1em;
  color: var(--paper-050);
}

.footer__version {
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .1em;
  color: var(--orange-500);
  border: 1px solid rgba(255, 106, 43, .45);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  transform: translateY(-4px);
}

.footer__tagline {
  margin-top: 14px;
  max-width: 24ch;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--on-dark-weak);
}

.footer__title {
  font-family: var(--mono);
  font-size: var(--fs-12);
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--orange-200);
  margin-bottom: 14px;
}

.footer__list li + li { margin-top: 9px; }

.footer__link {
  position: relative;
  font-size: var(--fs-14);
  color: var(--on-dark-weak);
  transition: color .2s var(--ease);
}

.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.footer__link:hover { color: var(--cyan-400); }
.footer__link:hover::after { transform: scaleX(1); }

.footer__link[aria-current="page"] { color: var(--orange-500); }

.footer__contact-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: var(--fs-14);
  line-height: 1.7;
}

.footer__contact-key {
  flex: 0 0 34px;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .12em;
  color: var(--neutral-400);
}

.footer__contact-value { color: var(--paper-050); word-break: break-word; }

.footer__contact-value--mono {
  font-family: var(--mono);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(27, 68, 120, .9);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  color: var(--neutral-400);
}

.footer__legal { color: var(--neutral-400); }
.footer__note { color: rgba(124, 135, 155, .85); }

/* 7. Section ----------------------------------------------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 132px); }
.section--paper { background: var(--paper-050); color: var(--ink-900); }
.section--dark { background: var(--dsp-900); color: var(--on-dark); }
.section--panel { background: var(--dsp-700); color: var(--on-dark); }

.section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(12px, 2.2vw, 32px);
  row-gap: 10px;
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.section__index {
  grid-row: span 3;
  font-family: var(--mono);
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: .86;
  letter-spacing: -.02em;
  color: var(--orange-500);
  font-variant-numeric: tabular-nums;
}

.section__kicker {
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .2em;
  color: var(--dsp-500);
}

.section--dark .section__kicker,
.section--panel .section__kicker { color: var(--cyan-400); }

.section__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.section--dark .section__title,
.section--panel .section__title { color: var(--paper-050); }

.section__lead {
  max-width: 40ch;
  font-size: var(--fs-17);
  line-height: 1.8;
  color: rgba(18, 22, 31, .74);
}

.section--dark .section__lead,
.section--panel .section__lead { color: var(--on-dark-weak); }

.section__aside {
  font-family: var(--mono);
  font-size: var(--fs-12);
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--neutral-400);
}

.rule-cut {
  height: 2px;
  border: 0;
  margin-block: clamp(28px, 4vw, 56px);
  background: linear-gradient(90deg, var(--orange-500), rgba(255, 106, 43, 0) 52%, var(--cyan-400));
  transform: rotate(-.8deg);
  transform-origin: left center;
  opacity: .85;
}

/* 8. Grid -------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
}

.grid--2 { --cols: 2; }
.grid--3 { --cols: 3; }
.grid--4 { --cols: 4; }

/* 9. Card -------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid rgba(7, 20, 38, .1);
  border-radius: var(--radius-lg);
  background: var(--paper-100);
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 43, .55);
  box-shadow: 0 20px 44px -30px rgba(7, 20, 38, .7);
}

.card--dark {
  background: var(--dsp-700);
  border-color: rgba(47, 211, 224, .22);
  color: var(--on-dark);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__title {
  font-size: var(--fs-22);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.card--dark .card__title { color: var(--paper-050); }

.card__meta {
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .06em;
  color: var(--neutral-400);
  font-variant-numeric: tabular-nums;
}

.card__body {
  font-size: var(--fs-14);
  line-height: 1.75;
  color: rgba(18, 22, 31, .72);
}

.card--dark .card__body { color: var(--on-dark-weak); }

.card__foot { margin-top: auto; padding-top: 6px; }

/* 10. Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .82em 1.7em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}

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

.btn--primary { background: var(--orange-500); color: #0b1220; }
.btn--primary:hover { background: #ff8347; }

.btn--ghost { border-color: rgba(246, 243, 236, .32); color: var(--paper-050); }
.btn--ghost:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

.btn--quiet { border-color: rgba(7, 20, 38, .22); color: var(--dsp-900); }
.btn--quiet:hover { border-color: var(--orange-500); color: var(--orange-500); }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* 11. Pills ------------------------------------------------ */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .45em 1em;
  border: 1px solid rgba(27, 68, 120, .45);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .06em;
  color: var(--dsp-500);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.pill:hover { border-color: var(--cyan-400); color: var(--dsp-900); }

.pill--active {
  background: var(--orange-500);
  border-color: transparent;
  color: #0b1220;
}

/* 12. Meter ------------------------------------------------ */
.meter {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(27, 68, 120, .18);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-400), var(--lime-400));
  transition: width .5s var(--ease);
}

.meter--orange .meter__fill {
  background: linear-gradient(90deg, var(--orange-500), var(--orange-200));
}

/* 13. Media ------------------------------------------------ */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--dsp-700);
  background-image:
    repeating-linear-gradient(90deg, rgba(246, 243, 236, .07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(246, 243, 236, .05) 0 1px, transparent 1px 44px),
    radial-gradient(120% 110% at 10% 0%, rgba(47, 211, 224, .22), transparent 58%),
    radial-gradient(90% 90% at 100% 100%, rgba(255, 106, 43, .22), transparent 60%);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

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

.media__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: .35em .9em;
  border-radius: var(--radius-pill);
  background: rgba(7, 20, 38, .74);
  color: var(--lime-400);
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .08em;
}

.media__caption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  color: var(--neutral-400);
}

/* 14. Breadcrumb ------------------------------------------- */
.breadcrumb { margin-block: clamp(18px, 3vw, 32px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6em;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .06em;
  color: var(--neutral-400);
}

.breadcrumb__link { transition: color .2s var(--ease); }
.breadcrumb__link:hover { color: var(--orange-500); }

.breadcrumb__sep { color: rgba(124, 135, 155, .55); }

.breadcrumb__item[aria-current="page"] { color: var(--ink-900); }

.section--dark .breadcrumb__item[aria-current="page"],
.section--panel .breadcrumb__item[aria-current="page"] { color: var(--paper-050); }

/* 15. Prose ------------------------------------------------ */
.prose {
  max-width: 66ch;
  font-size: var(--fs-17);
  line-height: 1.85;
}

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

.prose h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-top: 1.7em;
}

.prose h3 {
  font-size: var(--fs-22);
  font-weight: 700;
  margin-top: 1.4em;
}

.prose ul li {
  position: relative;
  padding-left: 1.5em;
}

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

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 12px;
  height: 2px;
  background: var(--orange-500);
}

.prose a {
  color: var(--dsp-500);
  border-bottom: 1px solid rgba(47, 211, 224, .6);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.prose a:hover { color: var(--orange-500); border-bottom-color: var(--orange-500); }

/* 16. Rail ------------------------------------------------- */
.rail {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail__list { display: flex; flex-direction: column; gap: 10px; }

.rail__link {
  display: block;
  padding-left: 10px;
  border-left: 2px solid transparent;
  font-family: var(--mono);
  font-size: var(--fs-12);
  letter-spacing: .08em;
  color: var(--neutral-400);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.rail__link:hover { color: var(--dsp-500); border-left-color: var(--cyan-400); }

.rail__link[aria-current="true"] {
  color: var(--orange-500);
  border-left-color: var(--orange-500);
}

/* 17. Reveal states ---------------------------------------- */
.reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
  will-change: opacity, transform;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

/* 18. Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .grid--3, .grid--4 { --cols: 2; }
}

@media (max-width: 899px) {
  .masthead__bar {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding-block: 12px;
  }

  .masthead__signature { display: none; }
  .masthead__brand { justify-self: start; }
  .masthead__status { justify-self: end; }
  .masthead__status-text { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    border-top: 1px solid var(--line-soft);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }

  .masthead[data-open] .nav {
    display: block;
    animation: navIn .24s var(--ease);
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding-block: 4px 14px;
  }

  .nav__item + .nav__item { border-top: 1px dashed rgba(27, 68, 120, .85); }

  .nav__link {
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 4px;
    font-size: var(--fs-17);
  }

  .nav__link::after { display: none; }

  .rail { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section__head { grid-template-columns: 1fr; }

  .section__index {
    grid-row: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
  }

  .section__index::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: .35;
  }

  .grid { --cols: 1; }

  .footer__grid { grid-template-columns: 1fr; }

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

/* 19. Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .status-dot { animation: none; }
  .reveal-ready { opacity: 1; transform: none; }
  .rule-cut { transform: none; }
}
