/* ============================================================
   TierTool — the board room
   Dark scoring-table look: deep navy, one lime signal colour,
   colour-coded tier bands, Archivo display over Inter text.
   ============================================================ */

:root {
  --ink: #0a1220;
  --ink-2: #0e1623;
  --panel: #121e2d;
  --line: #24354b;
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #edf4ff;
  --muted: #9db0c6;
  --muted-dim: rgba(157, 176, 198, 0.72);
  --prose: rgba(237, 244, 255, 0.88);
  --accent: #bbf65e;
  --accent-ink: #0a1220;

  --s: #f66b6b;
  --a: #ffa85b;
  --b: #ffd34e;
  --c: #a5ee62;
  --d: #5ed7ee;
  --f: #a276ff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 18px 44px -26px rgba(0, 0, 0, 0.85);

  --font-display: "Archivo", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -220px, rgba(32, 52, 78, 0.75) 0%, rgba(20, 36, 58, 0) 70%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { margin: 0; }

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

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

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 60;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 长文页（How it works、法务）用更窄的一栏，读起来更稳 */
.wrap--narrow { max-width: 800px; }

/* ---------------- header ---------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.top::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--s) 0 16%, var(--a) 16% 33%, var(--b) 33% 50%, var(--c) 50% 66%, var(--d) 66% 83%, var(--f) 83% 100%);
  opacity: 0.85;
}

.top__in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand__mark {
  display: inline-grid;
  gap: 2px;
  width: 22px;
}

.brand__mark i {
  display: block;
  height: 5px;
  border-radius: 2px;
}

.brand__mark i:nth-child(1) { width: 100%; background: var(--s); }
.brand__mark i:nth-child(2) { width: 72%; background: var(--b); }
.brand__mark i:nth-child(3) { width: 44%; background: var(--d); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 500;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__cta {
  margin-left: 6px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 700;
}

.nav__cta:hover { filter: brightness(1.08); }

.navtoggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.navtoggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.navtoggle span + span { margin-top: 4px; }

/* ---------------- hero ---------------- */

.hero { padding: 44px 0 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(187, 246, 94, 0.14);
}

.hero__h1 {
  margin: 14px 0 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  margin-top: 14px;
  max-width: 66ch;
  font-size: 18px;
  color: var(--muted);
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------- stage / board ---------------- */

.stage { padding: 24px 0 8px; }

#maker.stage[tabindex="-1"] { scroll-margin-top: 66px; }

.stage__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-dim);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stage__note--features { display: block; font-size: 12px; }

/* ---------------- sections ---------------- */

.section { padding: 48px 0 0; }
.section--tight { padding-top: 32px; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.section__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(187, 246, 94, 0.35);
  padding-bottom: 1px;
}

.section__link:hover { border-bottom-color: var(--accent); }

/* ---------------- template cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.tcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tcard:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  background: var(--panel);
}

.tcard__bars {
  display: flex;
  gap: 3px;
  height: 34px;
}

.tcard__bars i {
  display: block;
  flex: 1;
  border-radius: 4px;
  background: var(--bar, var(--line));
  opacity: 0.9;
}

.tcard__bars i:nth-child(1) { --bar: var(--s); flex: var(--f1, 1.5); }
.tcard__bars i:nth-child(2) { --bar: var(--a); flex: var(--f2, 1.3); }
.tcard__bars i:nth-child(3) { --bar: var(--b); flex: var(--f3, 1.1); }
.tcard__bars i:nth-child(4) { --bar: var(--c); flex: var(--f4, 0.9); }
.tcard__bars i:nth-child(5) { --bar: var(--d); flex: var(--f5, 0.7); }

/* The gallery uses the same score bands as the editor. */
/* The homepage rail is compact independently of related cards on template pages. */
.section--board-gallery { padding-top: 14px; }
.section--board-gallery .section__head { margin-bottom: 8px; }
.section--board-gallery .section__title { font-size: 20px; line-height: 1.25; }
.section--board-gallery .cards.cards--shots {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.section--board-gallery .tcard--shot {
  gap: 5px;
  padding: 6px;
}
.section--board-gallery .tcard__shot { border-radius: 8px; }
.section--board-gallery .tcard__shot::after { height: 4px; }
.section--board-gallery .tcard__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.35;
}
.section--board-gallery .tcard--text {
  min-height: 84px;
  justify-content: center;
  text-align: center;
}
.section--board-gallery .tcard--text .tcard__name { color: var(--text); }
#board.stage { scroll-margin-top: calc(var(--tt-board-header, 66px) + 24px); }
@media (max-width: 1023px) {
  .section--board-gallery .cards.cards--shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1090px) {
  .section--board-gallery > .wrap { padding-inline: 12px; }
  .section--board-gallery .cards.cards--shots { gap: 6px; }
}
@media (max-width: 599px) {
  .section--board-gallery .cards.cards--shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 16px) / 2.5);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .section--board-gallery .tcard--shot { scroll-snap-align: start; }
}
.cards.cards--shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tcard--shot { min-width: 0; gap: 8px; }
.tcard__shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--ink);
}
.tcard__shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--s) 0 16.67%, var(--a) 16.67% 33.33%, var(--b) 33.33% 50%, var(--c) 50% 66.67%, var(--d) 66.67% 83.33%, var(--f) 83.33%);
}
.tcard__shot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tcard__thumb ~ .tcard__sample { display: none; }
.tcard__sample {
  position: absolute;
  inset: 12% 9% 16%;
  display: grid;
  grid-template-rows: 2fr 1fr;
  gap: 6px;
}
.tcard__sample-rows {
  display: grid;
  gap: 3px;
}
.tcard__sample-rows i {
  display: block;
  border-radius: 3px;
  border: 1px solid var(--line);
  border-left: 13px solid var(--s);
  background: var(--panel);
}
.tcard__sample-rows i:nth-child(2) { border-left-color: var(--a); }
.tcard__sample-rows i:nth-child(3) { border-left-color: var(--b); }
.tcard__sample-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; min-height: 0; }
.tcard__sample-picks i {
  align-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 3px;
  background: var(--panel);
  padding: 0 3px;
  color: var(--muted);
  text-align: center;
  font: normal 600 12px/1.2 var(--font-body);
}
.tcard__sample-picks i::before { content: attr(data-pick); }
@media (max-width: 760px) {
  .cards.cards--shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcard--shot { padding: 8px; }
  .tcard--shot .tcard__name { overflow-wrap: anywhere; }
}

.tcard__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tcard__meta {
  font-size: 12.5px;
  color: var(--muted-dim);
  line-height: 1.45;
}

/* ---------------- steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 18px 18px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(187, 246, 94, 0.12);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.step__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.home-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 3px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.home-quick__steps {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 3px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}
.home-quick__steps li { white-space: nowrap; }
.home-quick__guide { white-space: nowrap; }
.home-cat__title { margin: 0; }
.home-cat__title a:hover { text-decoration: underline; }
.home-cat__links {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 9px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  font-size: 13px;
  line-height: 1.35;
}
.home-cat__links a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.home-cat__links a:hover,
.home-cat__links a:focus-visible { color: var(--accent); }

.home-popular__more { margin-top: 14px; }

/* Category covers are part of the same destination link as the category name. */
.home-cat__title > a { display: block; }
.cat .tcard__shot {
  flex: none;
  margin-bottom: 5px;
  border-radius: var(--radius-sm);
}
.cat .tcard__shot::after {
  height: 3px;
  background: var(--cat, var(--accent));
}

/* ---------------- categories ---------------- */

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 14px;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.cat::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cat, var(--accent));
}

.cat:hover { background: var(--panel); border-color: var(--line); }

.cat__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.cat__tag {
  font-size: 12.5px;
  color: var(--muted-dim);
  line-height: 1.45;
}

.cat__count {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------------- page head ---------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--muted-dim);
}

.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: 0.5; }

.phead { padding: 16px 0 0; }

.phead__cta { margin-top: 16px; }

.phead h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 30ch;
}

.phead__lede {
  margin-top: 12px;
  max-width: 74ch;
  font-size: 16.5px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  text-transform: capitalize;
}

.metastrip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted-dim);
}

.metastrip a { color: var(--accent); }

/* ---------------- prose ---------------- */

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  color: var(--prose);
}

.prose > * + * { margin-top: 14px; }

.prose h2 {
  margin-top: 34px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.prose h3 {
  margin-top: 26px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.prose p { color: var(--prose); }

.prose ul,
.prose ol {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--prose);
}

.prose li + li { margin-top: 6px; }

.prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(187, 246, 94, 0.3);
}

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

.prose blockquote {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(187, 246, 94, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}

.prose table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.prose th {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------------- split / panel ---------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.panel {
  padding: 20px;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.panel h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.panel li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  text-transform: capitalize;
}

.panel li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.panel p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-dim);
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line-soft);
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}

.note strong { color: var(--text); }

/* ---------------- roster ---------------- */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.roster__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.roster__tile {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

/* ---------------- faq ---------------- */

.faq {
  display: grid;
  gap: 8px;
  max-width: 78ch;
}

.faq details {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0 16px;
}

.faq details[open] { border-color: var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq p {
  padding: 0 0 16px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 66ch;
}

/* ---------------- CTA ---------------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 8% 0%, rgba(187, 246, 94, 0.12), transparent 70%),
    var(--ink-2);
}

.cta h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cta p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.btn:hover { filter: brightness(1.08); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* ---------------- footer ---------------- */

.foot {
  margin-top: 64px;
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 15, 26, 0.6);
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 40px 0 28px;
}

.foot__about p {
  margin-top: 12px;
  max-width: 42ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-dim);
}

.foot h3 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.foot li a {
  font-size: 14px;
  color: var(--muted);
}

.foot li a:hover { color: var(--text); }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted-dim);
}

/* ---------------- 404 ---------------- */

.nf {
  padding: 80px 0 40px;
  text-align: left;
}

.nf h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; }
.nf p { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.nf .btn { margin-top: 22px; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero { padding: 28px 0 4px; }
  .hero__h1 { font-size: 28px; }
  .hero__lede { font-size: 16px; }
  .section { padding-top: 36px; }
  .section__title { font-size: 22px; }
  .phead h1 { font-size: 28px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 20px; }
  .faq summary { font-size: 14.5px; }
  .cta { padding: 20px; }
  .cta .btn { width: 100%; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: #0b1422;
    border-bottom: 1px solid var(--line);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px; }
  .nav__cta { margin: 6px 0 0; text-align: center; }
  .navtoggle { display: block; }
  .roster { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
