/* =========================================================
   EBET 易博 V2.0 — 全站共享样式 /assets/site.css
   01 变量  02 重置  03 中文排版  04 侧轨头部  05 页脚
   06 通用组件  07 图片容器  08 动效  09 响应式
   ========================================================= */

/* ---------- 01 变量 ---------- */
:root {
  --blue-900: #061426;
  --blue-700: #0B2545;
  --blue-600: #10345C;
  --green-500: #2BE0A6;
  --green-700: #0E9F74;
  --orange-500: #FF8A3D;
  --cyan-400: #38D9FF;
  --violet-500: #7C5CFF;
  --violet-300: #A48CFF;
  --white-100: #EAF2FA;
  --grey-400: #8FA3B8;
  --glass-08: rgba(234, 242, 250, 0.08);
  --glass-04: rgba(234, 242, 250, 0.04);
  --warm-050: #F7FAFD;
  --line: rgba(143, 163, 184, 0.22);
  --line-soft: rgba(143, 163, 184, 0.12);
  --rail-w: 96px;
  --shell-max: 1240px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;
  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.2s;
  --shadow-lift: 0 28px 70px -40px rgba(0, 0, 0, 0.95);
  --read-progress: 0;
}

/* ---------- 02 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; min-height: 100%; }

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
a { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 03 中文排版与底层氛围 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--white-100);
  background-color: var(--blue-900);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    radial-gradient(920px 620px at 8% -10%, rgba(43, 224, 166, 0.16), transparent 58%),
    radial-gradient(820px 560px at 96% 2%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 50% 118%, rgba(56, 217, 255, 0.10), transparent 62%);
  background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--white-100);
}
h1 { font-size: clamp(34px, 5.2vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }

strong { font-weight: 700; color: var(--white-100); }
::selection { background: var(--green-500); color: var(--blue-900); }

/* ---------- 04 侧轨头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 10px 16px;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0.98) 0%, rgba(6, 20, 38, 0.99) 62%, #061426 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(43, 224, 166, 0.20) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  background: linear-gradient(90deg, var(--green-500), var(--cyan-400) 52%, var(--violet-500));
  transform: scaleX(var(--read-progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--green-500);
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.rail-top {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 2px;
  border-radius: var(--r-sm);
  color: var(--white-100);
  text-align: center;
}
.brand:hover { color: var(--white-100); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--green-500), var(--cyan-400));
  color: var(--blue-900);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(43, 224, 166, 0.35), 0 14px 30px -16px rgba(43, 224, 166, 0.85);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--white-100);
  white-space: nowrap;
}
.brand-descriptor {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--grey-400);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 4;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass-08);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: rgba(56, 217, 255, 0.55); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--white-100);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.rail-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.rail-label {
  padding-left: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--grey-400);
  opacity: 0.75;
}

.rail-list { display: flex; flex-direction: column; gap: 2px; }

.rail-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 8px 7px 9px;
  border-radius: 12px;
  border-left: 2px solid transparent;
  color: var(--grey-400);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rail-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--grey-400);
  opacity: 0.75;
  transition: color var(--dur) var(--ease);
}
.rail-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--white-100);
  transition: color var(--dur) var(--ease);
}
.rail-link:hover,
.rail-link:focus-visible {
  background: rgba(43, 224, 166, 0.10);
  border-left-color: rgba(43, 224, 166, 0.55);
}
.rail-link:hover .rail-text,
.rail-link:hover .rail-index,
.rail-link:focus-visible .rail-text,
.rail-link:focus-visible .rail-index { color: var(--green-500); }

.rail-link[aria-current="page"] {
  background: rgba(43, 224, 166, 0.14);
  border-left-color: var(--green-500);
}
.rail-link[aria-current="page"] .rail-text { color: var(--green-500); }
.rail-link[aria-current="page"] .rail-index { color: var(--green-500); opacity: 1; }

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(43, 224, 166, 0.30);
  background: rgba(43, 224, 166, 0.10);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--green-500);
  text-align: center;
}
.status-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(43, 224, 166, 0.18);
}

.rail-cta {
  display: block;
  padding: 8px 6px;
  border-radius: 12px;
  background: var(--green-500);
  color: var(--blue-900);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rail-cta:hover { background: var(--cyan-400); color: var(--blue-900); }
.rail-cta--ghost {
  background: transparent;
  color: var(--white-100);
  border: 1px solid var(--line);
}
.rail-cta--ghost:hover {
  background: var(--glass-08);
  border-color: rgba(56, 217, 255, 0.55);
  color: var(--cyan-400);
}

/* ---------- 05 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(32px, 5vw, 64px) 0 0;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0.85), rgba(6, 20, 38, 0.98));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000, transparent 78%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
}

.footer-brandline {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--white-100);
  max-width: 22ch;
}
.footer-update {
  margin-top: 12px;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey-400);
}
.footer-brand .status-chip { margin-top: 18px; }

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

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--grey-400);
}
.footer-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(43, 224, 166, 0.16);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 14px;
  color: rgba(234, 242, 250, 0.72);
  transition: color var(--dur) var(--ease);
}
.footer-link:hover { color: var(--green-500); }

.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.65; }
.contact-key {
  flex: 0 0 34px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--green-500);
}
.contact-val { color: rgba(234, 242, 250, 0.86); word-break: break-word; }
.contact-val--note { font-size: 12.5px; color: var(--grey-400); }

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--green-500);
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-cta:hover { background: var(--cyan-400); color: var(--blue-900); }

.footer-legal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 18px clamp(18px, 4vw, 40px) 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--grey-400);
}
.legal-copy { line-height: 1.6; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-links a { color: var(--grey-400); transition: color var(--dur) var(--ease); }
.legal-links a:hover { color: var(--cyan-400); }

/* ---------- 06 通用组件 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(234, 242, 250, 0.86);
}
.prose p + p { margin-top: 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--green-500);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--green-500);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.divider {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: clamp(24px, 4vw, 48px) 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.2vw, 28px);
}

.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(234, 242, 250, 0.09), rgba(234, 242, 250, 0.03));
  box-shadow: var(--shadow-lift);
}
.card--flat {
  background: rgba(11, 37, 69, 0.62);
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--glass-04);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--grey-400);
}
.tag--green {
  color: var(--green-500);
  border-color: rgba(43, 224, 166, 0.4);
  background: rgba(43, 224, 166, 0.1);
}
.tag--violet {
  color: var(--violet-300);
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.14);
}
.tag--orange {
  color: var(--orange-500);
  border-color: rgba(255, 138, 61, 0.45);
  background: rgba(255, 138, 61, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--primary {
  background: var(--green-500);
  color: var(--blue-900);
  box-shadow: 0 16px 34px -22px rgba(43, 224, 166, 0.95);
}
.btn--primary:hover { background: var(--cyan-400); color: var(--blue-900); }
.btn--accent { background: var(--orange-500); color: var(--blue-900); }
.btn--accent:hover { background: #FF9F63; color: var(--blue-900); }
.btn--ghost {
  background: var(--glass-08);
  color: var(--white-100);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: rgba(56, 217, 255, 0.12);
  border-color: rgba(56, 217, 255, 0.6);
  color: var(--cyan-400);
}
.btn--sm { padding: 8px 16px; font-size: 13px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--grey-400);
}
.breadcrumb a { color: var(--grey-400); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--cyan-400); }
.breadcrumb-sep { color: rgba(143, 163, 184, 0.5); }
.breadcrumb [aria-current="page"] { color: var(--green-500); }

/* ---------- 07 图片容器 ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid rgba(56, 217, 255, 0.28);
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(43, 224, 166, 0.22), transparent 62%),
    radial-gradient(120% 120% at 92% 100%, rgba(124, 92, 255, 0.26), transparent 60%),
    var(--blue-700);
}
.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(234, 242, 250, 0.20) 1px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.45;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(234, 242, 250, 0.16);
  border-radius: calc(var(--r-md) - 10px);
  pointer-events: none;
}
.img-frame > img,
.img-frame > svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }
.img-frame--21x9 { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }

.img-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--grey-400);
}

/* ---------- 08 动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .read-progress { transition: none; }
}

/* ---------- 09 响应式 ---------- */
@media (max-width: 899px) {
  body {
    background-attachment: scroll;
    background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%, 100% 100%;
  }
  body.nav-open { overflow: hidden; }

  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 20, 38, 0.97);
    overflow: visible;
  }
  .site-header::before { display: none; }

  .read-progress { height: 2px; }

  .rail-top {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .brand { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 10px; }
  .brand-text { align-items: flex-start; }
  .brand-name { font-size: 12px; }
  .brand-descriptor { display: block; font-size: 10px; }

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

  .rail-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    width: 100%;
    padding: 78px 18px 28px;
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.99), rgba(6, 20, 38, 0.995));
    border-right: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .site-header[data-open] .rail-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-header[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .site-header[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .rail-label { padding-left: 0; margin-bottom: 6px; font-size: 10px; }
  .rail-list { gap: 4px; }
  .rail-link {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 14px;
  }
  .rail-index { font-size: 11px; }
  .rail-text { font-size: 16px; }
  .rail-foot { margin-top: 24px; }
  .status-chip { width: 100%; padding: 10px; font-size: 10.5px; }
  .rail-cta { padding: 13px 16px; border-radius: var(--r-pill); font-size: 14px; }
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }
  .skip-link { left: calc(var(--rail-w) + 12px); }
  .footer-grid { grid-template-columns: 1.6fr 0.8fr 0.9fr 1.3fr; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
