/* Starlink Mini Power Atlas — Design System v2
   OKLCH-grounded neutral ramp + single blue accent with amber semantic.
   Off-black #12232e, off-white #f7f9fb. AA-verified body text. */

:root {
  /* Neutral ramp */
  --n-900: #0f1e28;
  --n-800: #152939;
  --n-700: #1f3647;
  --n-600: #374f5f;
  --n-500: #526878;
  --n-400: #7a95a6;
  --n-300: #aec2ce;
  --n-200: #d4e2ea;
  --n-100: #ebf2f6;
  --n-50:  #f4f8fa;
  --n-0:   #ffffff;

  /* Blue accent ramp */
  --blue-700: #0f349e;
  --blue-600: #1740bb;
  --blue-500: #1e4bd2;   /* primary */
  --blue-400: #3a63e0;
  --blue-100: #dce8ff;
  --blue-50:  #eef4ff;

  /* Semantic */
  --green-700: #145236;
  --green-600: #1b6543;
  --green-100: #d9f0e4;
  --amber-700: #7a4100;
  --amber-600: #965206;
  --amber-400: #e8980a;
  --amber-100: #fef0cc;
  --red-700:   #8c1f26;
  --red-600:   #a82830;
  --red-100:   #fde0e2;

  /* Role aliases */
  --ink:     var(--n-900);
  --ink-2:   var(--n-700);
  --muted:   var(--n-500);
  --blue:    var(--blue-500);
  --blue-dark: var(--blue-700);
  --ice:     var(--blue-50);
  --sage:    #eaf4ee;
  --cream:   #fdf5e6;
  --deep:    var(--n-900);
  --paper:   var(--n-0);
  --surface: var(--n-50);
  --line:    var(--n-200);
  --amber:   var(--amber-600);
  --amber-bright: var(--amber-400);
  --green:   var(--green-600);
  --red:     var(--red-600);

  /* Geometry */
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Type */
  --font: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(15,30,40,0.07), 0 1px 2px rgba(15,30,40,0.04);
  --shadow-md: 0 4px 12px rgba(15,30,40,0.08), 0 2px 4px rgba(15,30,40,0.05);
  --shadow-lg: 0 10px 28px rgba(15,30,40,0.10), 0 4px 10px rgba(15,30,40,0.06);
  --shadow-xl: 0 20px 44px rgba(15,30,40,0.14), 0 6px 14px rgba(15,30,40,0.07);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.60 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

a {
  color: var(--blue);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.14s;
}
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

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

h1, h2, h3, h4, p, figure { margin: 0; }

h1, h2, h3 {
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 720; }
p  { margin: 12px 0; }

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

.wrap, .container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.small  { font-size: 13.5px; line-height: 1.55; }
.muted  { color: var(--muted); }

.eyebrow, .kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 12px;
  display: inline-block;
}

.skip {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 100;
  background: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-weight: 650;
}
.skip:focus { top: 10px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(15,30,40,0.04);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.14s, background 0.14s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-50);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-100);
  font-weight: 720;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}
.nav-toggle:hover { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  background: var(--blue);
  border: 1.5px solid var(--blue);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(30,75,210,0.25);
}
.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,75,210,0.30);
}
.btn:active { transform: translateY(0); box-shadow: none; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 32px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
  margin: 14px 0 0;
}

.hero-proof {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  margin-top: 20px;
  align-items: center;
}
.hero-proof span::before { content: '✓ '; color: var(--blue); font-weight: 800; }
.hero-proof a {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue-100);
  padding-bottom: 1px;
}
.hero-proof a:hover { border-bottom-color: var(--blue); }

.hero-art {
  margin: 0;
  background: var(--n-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero-art img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-art figcaption {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 14px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
}

/* ── Checker layout ─────────────────────────────────────────────────── */
.checker-layout, .tool-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
  margin-top: 10px;
}

.checker-card, .panel-inputs {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.result-card, .panel-telemetry {
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 26px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow-sm);
}

.step-heading {
  font-size: 1.1rem;
  font-weight: 740;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.step-badge {
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-100);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.preset-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.preset-btn {
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: 20px;
  color: var(--n-600);
  font-size: 12px;
  font-weight: 650;
  min-height: 34px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.14s;
}
.preset-btn:hover { border-color: var(--blue-400); background: var(--blue-50); color: var(--blue); }
.preset-btn.is-active { border-color: var(--blue); background: var(--blue-100); color: var(--blue); font-weight: 720; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full { grid-column: 1/-1; }

.field label {
  font-size: 13px;
  font-weight: 680;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field label span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  border: 1.5px solid var(--n-200);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.field input:hover,
.field select:hover { border-color: var(--n-300); }
.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,75,210,0.12);
  outline: none;
}

.input-with-unit { display: flex; gap: 8px; }
.input-with-unit input { flex: 1; }

.unit-toggle {
  min-width: 76px;
  min-height: 46px;
  background: var(--surface);
  border: 1.5px solid var(--n-200);
  border-radius: var(--radius);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}
.unit-toggle:hover { background: var(--blue-50); border-color: var(--blue); }

.field-error { color: var(--red); font-size: 13px; font-weight: 650; margin-top: 4px; }

/* ── Energy / Voltage scale track ───────────────────────────────────── */
.energy-scale { padding: 6px 0 8px; margin: 14px 0 18px; }

.energy-track {
  position: relative;
  height: 10px;
  display: grid;
  grid-template-columns: 100fr 60fr 40fr;
  gap: 3px;
  border-radius: 10px;
  background: var(--n-100);
  padding: 2px;
}
.energy-track span { border-radius: 4px; }
.energy-track span:nth-child(1) { background: #6ec99a; }
.energy-track span:nth-child(2) { background: #f4c14a; }
.energy-track span:nth-child(3) { background: #eb8690; }

.energy-pin {
  position: absolute;
  top: -6px;
  left: 45%;
  width: 3px;
  height: 22px;
  background: var(--ink);
  border-radius: 3px;
  box-shadow: 0 0 0 2px var(--paper);
  transition: left 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.energy-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--muted);
  margin-top: 6px;
  font-family: var(--mono);
}

/* ── Status banner & KPI boxes ──────────────────────────────────────── */
.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border-left: 3px solid var(--green);
  background: var(--paper);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.status-banner.is-pass { border-left-color: var(--green); }
.status-banner.is-warn { border-left-color: var(--amber-400); background: #fffdf6; }
.status-banner.is-fail { border-left-color: var(--red); background: #fff7f7; }

.status-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  background: var(--green-100);
  color: var(--green-700);
  flex: none;
}
.status-banner.is-warn .status-tag { background: var(--amber-100); color: var(--amber-700); }
.status-banner.is-fail .status-tag { background: var(--red-100); color: var(--red-700); }

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.kpi-box {
  background: var(--paper);
  border: 1px solid var(--n-200);
  border-radius: var(--radius);
  padding: 14px 15px;
  transition: border-color 0.14s;
}
.kpi-box:hover { border-color: var(--n-300); }

.kpi-label { font-size: 11.5px; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.kpi-value { font-family: var(--mono); font-size: 1.5rem; font-weight: 760; color: var(--ink); line-height: 1.1; }
.kpi-sub   { font-size: 11px; color: var(--muted); margin-top: 3px; }

.telemetry-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--blue-100);
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-border { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.section-head p { color: var(--muted); max-width: 54ch; margin: 8px 0 0; }

/* ── Tinted path cards ──────────────────────────────────────────────── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px 22px 24px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.path-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--n-300);
  text-decoration: none;
}
.path-card.ice   { background: var(--blue-50); border-color: var(--blue-100); }
.path-card.sage  { background: #eaf4ee; border-color: #c4dece; }
.path-card.cream { background: #fdf5e6; border-color: #e8d7b2; }

.path-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
  transition: transform 220ms ease;
}
.path-card:hover img { transform: rotate(2deg) translateY(-3px); }
.path-card h3 { font-size: 1.35rem; font-weight: 800; margin: 6px 0 10px; }
.path-card p { font-size: 14.5px; color: var(--ink-2); max-width: 29ch; margin: 0 auto 16px; line-height: 1.5; }

.path-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: auto; margin-bottom: 14px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.80);
  color: var(--ink);
  border: 1px solid rgba(15,30,40,0.10);
}

.path-arrow {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  transition: background 0.14s, transform 0.14s;
}
.path-card:hover .path-arrow { background: var(--blue); transform: scale(1.08); }

/* ── Spec-label lesson ──────────────────────────────────────────────── */
.learn-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.label-lesson {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.device-label {
  position: relative;
  border: 1px solid var(--n-200);
  border-radius: 16px;
  background: var(--paper);
  padding: 34px 18px 18px;
  box-shadow: var(--shadow-md);
  transform: rotate(-2.5deg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}
.device-port {
  position: absolute;
  top: 12px;
  left: 42%;
  width: 28px;
  height: 5px;
  background: var(--n-300);
  border-radius: 4px;
}
.device-label .tiny {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.device-label > strong { font-size: 22px; letter-spacing: -0.03em; }
.label-energy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue-100);
  padding: 8px 10px;
  color: var(--blue-700);
  border-radius: 6px;
  font-size: 11px;
}
.label-energy em { font-family: var(--mono); font-size: 18px; font-style: normal; font-weight: 760; }
.label-power {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.label-notes { display: flex; flex-direction: column; gap: 16px; }
.note-marker {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 2px solid var(--blue-100);
  display: inline-block;
  margin-bottom: 4px;
}

.story-list { display: flex; flex-direction: column; }
.story-list > a {
  display: flex;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.13s;
}
.story-list > a:last-child { border-bottom: 1px solid var(--line); }
.story-list > a:hover { text-decoration: none; }
.story-list > a:hover h3 { color: var(--blue); }
.story-list > a:hover .story-icon { background: var(--blue-100); }

.story-icon {
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--blue);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  transition: background 0.14s;
}
.story-list h3 { font-size: 1.08rem; margin: 0 0 4px; transition: color 0.14s; }
.story-list p  { font-size: 13.5px; color: var(--muted); margin: 0; }
.story-arrow   { margin-left: auto; color: var(--blue); font-size: 1.1rem; }

/* ── Dark band (architecture) ───────────────────────────────────────── */
.dark-band {
  background: var(--n-900);
  color: #f0f4f7;
  padding: 64px 0;
}
.dark-band h2 { color: #fff; }
.dark-band .kicker { color: var(--amber-400); }

.topology-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.path-tabs { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.path-tab {
  text-align: left;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  color: #c8d6e0;
  cursor: pointer;
  transition: all 0.15s;
}
.path-tab:hover,
.path-tab.is-active {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  border-left-color: var(--amber-400);
  color: #fff;
}
.path-tab strong {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.path-tab span { font-size: 13px; color: #9ab0bf; display: block; }
.path-tab.is-active span { color: #c8d6e0; }

.schematic-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

/* ── Tables & DB ────────────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }

.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }

th, td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--n-50);
  font-weight: 720;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: sticky;
  top: 0;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--n-50); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-pass { background: var(--green-100); color: var(--green-700); }
.pill-warn { background: var(--amber-100); color: var(--amber-700); }
.pill-fail { background: var(--red-100);   color: var(--red-700); }

/* ── Guides grid ────────────────────────────────────────────────────── */
.gcards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
}

.gcards a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.13s;
}
.gcards a:hover { text-decoration: none; }
.gcards a:hover .gt { color: var(--blue); }

.guide-number {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-50);
  padding: 4px 8px;
  border-radius: 6px;
  flex: none;
  transition: background 0.14s;
}
.gcards a:hover .guide-number { background: var(--blue-100); }
.guide-text { display: grid; gap: 5px; }
.gt { font-weight: 740; font-size: 1.08rem; transition: color 0.14s; }
.gd { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.guide-arrow { margin-left: auto; color: var(--blue); font-size: 1.1rem; }

/* ── Trust strip ────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-xl);
  padding: 26px 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.trust-seal {
  font-size: 26px;
  color: var(--blue);
  background: var(--paper);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-100);
  border-radius: 50%;
  flex: none;
  box-shadow: var(--shadow-sm);
}

/* ── Page grid (article + sidebar) ─────────────────────────────────── */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px) 260px;
  gap: 48px;
  align-items: start;
  padding: 44px 0 64px;
}

.doc h2 {
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.side {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.side h3 {
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.side ol, .side ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; }

/* ── Card grids ─────────────────────────────────────────────────────── */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.spec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.spec-card:hover { box-shadow: var(--shadow-md); border-color: var(--n-300); }

.callout {
  background: #fff9ea;
  border-left: 3px solid var(--amber-400);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.callout strong { display: block; margin-bottom: 4px; color: var(--amber-700); }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.14s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 56px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--n-50);
  font-size: 14px;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-brand:hover { color: var(--ink); }

.footer-cols h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-2);
  margin-bottom: 12px;
  font-weight: 740;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-cols a { color: var(--muted); text-decoration: none; transition: color 0.13s; }
.footer-cols a:hover { color: var(--blue); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  font-family: var(--mono);
}

body.is-embed {
  background: var(--surface);
  padding: 16px;
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-border { border-top: 1px solid var(--line); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 740px) {
  .wrap, .container { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    box-shadow: var(--shadow-lg);
    z-index: 39;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 12px 10px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a[aria-current="page"] { background: var(--blue-50); border-radius: var(--radius); }
  .hero { background: var(--blue-50); }
  .hero-grid,
  .checker-layout,
  .tool-grid,
  .path-grid,
  .learn-grid,
  .label-lesson,
  .topology-grid,
  .gcards,
  .page-grid,
  .card-grid-3,
  .card-grid-2,
  .footer-cols { grid-template-columns: 1fr; }
  .result-card, .panel-telemetry { position: static; }
  .form-grid, .kpi-grid { grid-template-columns: 1fr; }
  .trust-strip { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.btn.ghost, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  background: var(--paper);
  color: var(--ink-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.btn.ghost:hover, .btn-secondary:hover {
  background: var(--blue-50);
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  background: var(--paper);
  color: var(--ink-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.btn.ghost:hover, .btn-secondary:hover {
  background: var(--blue-50);
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}
