/* ==========================================================================
   利升体育赛事 · 共享站点样式 /assets/site.css
   战术板体系：深墨绿连续画布 + 左侧品牌轨道 + 米白信息岛
   ========================================================================== */

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

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

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

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

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

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

a { color: inherit; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --ink-deep: #061A15;
  --ink-rail: #0B2A22;
  --ink-board: #10382D;
  --line-moss: #2E5A4B;
  --signal: #43F0D0;
  --signal-soft: #9FFCEB;
  --ember: #FF8A3D;
  --paper: #F3F1E7;
  --paper-ink: #10231D;
  --paper-muted: #465C53;
  --text: #C7D8D0;
  --muted: #7F9D92;

  --rail-w: 272px;
  --shell-w: 1180px;

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

  --radius: 2px;
  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 280ms;
}

/* 3. Base ---------------------------------------------------------------- */
body {
  min-height: 100vh;
  padding-left: 0;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(to right, rgba(46, 90, 75, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 90, 75, .16) 1px, transparent 1px);
  background-size: 76px 76px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.12;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.6rem); margin-bottom: .42em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.5rem); margin-bottom: .5em; }
h4 { font-size: 1.02rem; margin-bottom: .45em; }

p { margin-bottom: 1em; color: var(--text); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-soft); }

strong { color: var(--paper); font-weight: 700; }

::selection { background: var(--signal); color: #05241D; }

:focus-visible {
  outline: 2px solid var(--signal-soft);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* 4. Utilities ----------------------------------------------------------- */
.shell {
  width: min(100% - 2.5rem, var(--shell-w));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

.index-num {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--signal);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  flex: none;
}

.visually-hidden {
  position: absolute !important;
  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;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line-moss);
}

.ticks {
  display: block;
  height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--line-moss) 0 1px, transparent 1px 12px);
  opacity: .85;
}

/* 5. Layout blocks ------------------------------------------------------- */
.section { padding-block: clamp(2.25rem, 5vw, 4.5rem); }

.section__head {
  display: grid;
  gap: .6rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.section__title { font-size: clamp(1.6rem, 3vw, 2.8rem); margin-bottom: 0; }

.section__lede {
  max-width: 40em;
  font-size: .98rem;
  line-height: 1.8;
  color: var(--text);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

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

.panel {
  background: var(--ink-board);
  border: 1px solid var(--line-moss);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
}

.panel > h2,
.panel > h3 { color: var(--paper); }

.paper-card {
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid #DDD8C7;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
}

.paper-card h2,
.paper-card h3,
.paper-card h4 { color: var(--paper-ink); }

.paper-card p { color: var(--paper-muted); }

.paper-card a {
  color: #0A4A3A;
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

.paper-card a:hover { color: #06705A; }

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

/* 6. Prose --------------------------------------------------------------- */
.prose { max-width: 34em; }

.prose p { margin-bottom: 1.05em; line-height: 1.78; }

.prose ul,
.prose ol {
  margin: 0 0 1.05em;
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li { margin-bottom: .45em; color: var(--text); }

.prose a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }

/* 7. Buttons & tags ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.15rem;
  border: 1px solid var(--line-moss);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 180ms var(--ease);
}

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

.btn--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #05241D;
}

.btn--signal:hover { background: var(--signal-soft); border-color: var(--signal-soft); color: #05241D; }

.btn--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--paper-ink);
}

.btn--paper:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--paper-ink); }

.btn--ember {
  background: var(--ember);
  border-color: var(--ember);
  color: #2A1103;
}

.btn--ember:hover { background: #FFA469; border-color: #FFA469; color: #2A1103; }

.btn--ghost:hover { border-color: var(--signal); color: var(--signal-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .34rem .55rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .08em;
}

.tag--ember { color: var(--ember); }
.tag--mute { color: var(--muted); }

/* 8. Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.6;
  letter-spacing: .03em;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

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

.breadcrumb__link { color: var(--muted); }

.breadcrumb__link:hover { color: var(--signal-soft); }

.breadcrumb__sep { color: var(--line-moss); }

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

/* 9. Table --------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.data-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--paper-muted);
  padding-bottom: .6rem;
}

.data-table th,
.data-table td {
  padding: .68rem .7rem;
  text-align: left;
  border-bottom: 1px solid rgba(16, 35, 29, .18);
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--paper-muted);
}

.data-table td { color: var(--paper-ink); }

/* 10. Figure / image containers ------------------------------------------ */
.figure {
  display: grid;
  gap: .6rem;
  margin: 0;
}

.figure__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-moss);
  border-radius: var(--radius);
  background:
    linear-gradient(158deg, var(--ink-board) 0%, #08211A 100%);
  aspect-ratio: 16 / 10;
}

.figure__frame--wide { aspect-ratio: 21 / 9; }
.figure__frame--tall { aspect-ratio: 4 / 5; }

.figure__frame > img,
.figure__frame > svg,
.figure__frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 26, 21, 0) 52%, rgba(6, 26, 21, .58) 100%);
}

.figure__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .5rem;
  padding: 1.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--muted);
  background-image:
    linear-gradient(to right, rgba(46, 90, 75, .28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 90, 75, .28) 1px, transparent 1px);
  background-size: 32px 32px;
}

.figure__cap {
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.65;
  letter-spacing: .03em;
  color: var(--muted);
}

/* 11. Skip link ---------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 200;
  padding: .62rem .95rem;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 200ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--paper-ink);
}

/* 12. Site header (desktop rail) ----------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: var(--rail-w);
  padding: 1.55rem 1.3rem 1.35rem;
  overflow-y: auto;
  background: rgba(6, 26, 21, .42);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border-right: 1px solid var(--line-moss);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] {
  background: var(--ink-rail);
  box-shadow: 0 0 0 1px rgba(67, 240, 208, .05), 26px 0 60px -44px #000000;
}

.site-header[data-solid="true"] { background: var(--ink-rail); }

.rail-ticks {
  display: block;
  height: 8px;
  flex: none;
  background-image: repeating-linear-gradient(90deg, var(--line-moss) 0 1px, transparent 1px 9px);
  opacity: .8;
}

.site-header__top {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--paper);
}

.site-brand:hover { color: var(--paper); }

.site-brand__mark {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--signal);
  border-radius: var(--radius);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}

.site-brand__text { display: grid; gap: .16rem; min-width: 0; }

.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--paper);
}

.site-brand__tagline {
  font-family: var(--font-sans);
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--muted);
}

.site-status {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: .62rem .72rem;
  border-left: 2px solid var(--signal);
  background: rgba(16, 56, 45, .55);
  font-family: var(--font-mono);
  font-size: .71rem;
  line-height: 1.5;
  letter-spacing: .03em;
  color: var(--text);
}

.site-status__item { display: flex; align-items: center; gap: .42rem; }

.site-status__item--muted { color: var(--muted); }

.pulse-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 2400ms ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(67, 240, 208, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(67, 240, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 240, 208, 0); }
}

.primary-nav { display: flex; flex-direction: column; }

.primary-nav__list {
  display: flex;
  flex-direction: column;
  gap: .12rem;
}

.primary-nav__item { display: block; }

.primary-nav__link {
  display: flex;
  align-items: baseline;
  gap: .62rem;
  padding: .5rem .55rem;
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}

.primary-nav__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color 200ms var(--ease);
}

.primary-nav__label { min-width: 0; }

.primary-nav__link:hover {
  color: var(--signal-soft);
  background: rgba(67, 240, 208, .07);
  border-left-color: rgba(67, 240, 208, .5);
}

.primary-nav__link[aria-current="page"] {
  color: var(--signal);
  background: rgba(67, 240, 208, .1);
  border-left-color: var(--signal);
}

.primary-nav__link[aria-current="page"] .primary-nav__num { color: var(--signal); }

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: .15rem;
  padding: .74rem 1rem;
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  background: var(--signal);
  color: #05241D;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 200ms var(--ease), transform 180ms var(--ease);
}

.site-header__cta::after { content: "\2192"; font-family: var(--font-mono); }

.site-header__cta:hover {
  background: var(--signal-soft);
  border-color: var(--signal-soft);
  color: #05241D;
  transform: translateY(-1px);
}

.site-header__foot {
  margin-top: auto;
  display: grid;
  gap: .55rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line-moss);
}

.site-header__meta {
  font-family: var(--font-mono);
  font-size: .67rem;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--muted);
}

.scroll-meter {
  display: block;
  height: 3px;
  overflow: hidden;
  background: rgba(46, 90, 75, .6);
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--signal), var(--ember));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .62rem;
  border: 1px solid var(--line-moss);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1;
  letter-spacing: .08em;
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--signal); color: var(--signal-soft); }

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

.nav-toggle__bars > span {
  display: block;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 200ms var(--ease), opacity 160ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 13. Site footer -------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line-moss);
  background: var(--ink-rail);
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--line-moss) 0 1px, transparent 1px 14px);
  opacity: .9;
}

.site-footer__inner { padding-block: clamp(2rem, 4vw, 3.1rem) 1.3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.6rem, 3vw, 2.75rem);
}

.footer-brand__line {
  margin-bottom: .8rem;
  max-width: 22em;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--paper);
}

.footer-brand__note {
  max-width: 26em;
  font-size: .84rem;
  line-height: 1.75;
  color: var(--muted);
}

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

.footer-heading {
  margin-bottom: .9rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line-moss);
  font-family: var(--font-mono);
  font-size: .73rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--signal);
}

.footer-list {
  display: grid;
  gap: .5rem;
}

.footer-link {
  display: inline-block;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.4;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.footer-link:hover {
  color: var(--signal-soft);
  border-bottom-color: var(--signal);
}

.footer-link[aria-current="page"] { color: var(--signal); }

.footer-contact {
  display: grid;
  gap: .55rem;
  margin-bottom: .8rem;
  font-style: normal;
}

.footer-contact__row { display: grid; gap: .12rem; }

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: .69rem;
  line-height: 1;
  letter-spacing: .12em;
  color: var(--muted);
}

.footer-contact__val {
  font-size: .89rem;
  line-height: 1.65;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-note {
  max-width: 30em;
  font-size: .77rem;
  line-height: 1.75;
  color: var(--muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-moss);
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
}

.footer-legal-link {
  font-family: var(--font-mono);
  font-size: .77rem;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--text);
}

.footer-legal-link:hover { color: var(--signal); }

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .73rem;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--muted);
}

.footer-icp { color: var(--muted); }

/* 14. Back to top -------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .62rem .85rem;
  border: 1px solid var(--line-moss);
  border-radius: var(--radius);
  background: var(--ink-rail);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1;
  letter-spacing: .06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms, border-color 200ms var(--ease), color 200ms var(--ease);
}

.to-top::before { content: "\2191"; }

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { border-color: var(--signal); color: var(--signal-soft); }

/* 15. Responsive --------------------------------------------------------- */
@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1079px) {
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem 1rem;
    padding: .72rem 1.1rem .85rem;
    overflow: visible;
    background: rgba(6, 26, 21, .86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-right: 0;
    border-bottom: 1px solid var(--line-moss);
  }

  .site-header[data-scrolled="true"] { background: var(--ink-rail); }

  .rail-ticks { display: none; }

  .site-header__top {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-brand__mark { width: 2.1rem; height: 2.1rem; font-size: .82rem; }
  .site-brand__name { font-size: .98rem; }
  .site-brand__tagline { font-size: .66rem; }

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

  .site-status { display: none; }

  .primary-nav {
    order: 5;
    flex: 1 0 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    border-top: 1px solid transparent;
    transition: max-height 320ms var(--ease), visibility 320ms var(--ease), border-color 320ms var(--ease);
  }

  .primary-nav[data-open="true"] {
    max-height: min(68vh, 540px);
    overflow-y: auto;
    visibility: visible;
    padding-top: .5rem;
    border-top-color: var(--line-moss);
  }

  .primary-nav__list { gap: .16rem; }

  .primary-nav__link {
    padding: .72rem .8rem;
    border-left-width: 3px;
    font-size: 1rem;
  }

  .site-header__cta {
    order: 6;
    flex: 1 0 100%;
    display: none;
    margin-top: .35rem;
  }

  .primary-nav[data-open="true"] ~ .site-header__cta { display: inline-flex; }

  .site-header__foot {
    order: 7;
    flex: 1 0 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    gap: 0;
  }

  .site-header__meta { display: none; }

  .scroll-meter { height: 2px; background: rgba(46, 90, 75, .45); }

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

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

  .to-top { right: .9rem; bottom: .9rem; }
}

@media (max-width: 720px) {
  body { background-size: 48px 48px; }

  .shell { width: min(100% - 1.75rem, var(--shell-w)); }

  .paper-card { box-shadow: 4px 4px 0 rgba(0, 0, 0, .45); }

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

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

  .footer-copy { font-size: .7rem; }

  .figure__frame { aspect-ratio: 4 / 3; }
  .figure__frame--wide { aspect-ratio: 16 / 9; }
  .figure__frame--tall { aspect-ratio: 4 / 5; }
}

@media (max-width: 420px) {
  .site-brand__tagline { display: none; }
  .site-status { font-size: .68rem; }
}

/* 16. Motion & print ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .pulse-dot { animation: none; box-shadow: 0 0 0 3px rgba(67, 240, 208, .22); }
}

@media print {
  body {
    background: #FFFFFF;
    color: var(--paper-ink);
    padding-left: 0;
  }

  .site-header,
  .site-footer::before,
  .to-top,
  .skip-link { display: none !important; }

  .site-footer { background: #FFFFFF; border-top: 1px solid #999999; }

  .paper-card { box-shadow: none; border: 1px solid #999999; }

  .footer-brand__line,
  .footer-heading,
  .footer-link,
  .footer-contact__val,
  .footer-copy,
  .footer-note,
  .footer-contact__key,
  .footer-legal-link { color: var(--paper-ink); }

  a { color: var(--paper-ink); text-decoration: underline; }
}
