/* Self-hosted latin-only faces — ace11 PageSpeed pass */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 700;
  font-display: optional;
  src: url('/assets/fonts/xn7gYHE41ni1AdIRggexSvfedN4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: optional;
  src: url('/assets/fonts/o-0bIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjc5a7du3mhPy0.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #2457A7;
  --primary-ink: #163A72;
  --accent: #A044C5;
  --accent-soft: rgba(160, 68, 197, 0.12);
  --background: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #E9EEF7;
  --surface-3: #DCE5F2;
  --ink: #1B2638;
  --text: #1B2638;
  --muted: #5A6B80;
  --border: #CDD8E8;
  --border-strong: #B4C3D9;
  --hero-ink: #0E1726;
  --hero-text: #F4F7FC;
  --hero-muted: #C4D0E2;
  --success: #1F7A4C;
  --warning: #9A5B00;
  --danger: #A1262F;
  --focus: #2457A7;
  --shadow-sm: 0 1px 2px rgba(27, 38, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 38, 56, 0.08);
  --shadow-lg: 0 18px 48px rgba(27, 38, 56, 0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 72px;
  --sticky-cta-h: 64px;
  --font-display: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Noto Sans", "Noto Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 96px;
}

/* Metric-matched fallbacks to limit font-swap CLS */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("sans-serif");
  size-adjust: 103%;
  ascent-override: 98%;
  descent-override: 20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Noto Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("sans-serif");
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-ink); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  z-index: 10000;
}
.skip-link:focus { left: 12px; top: 12px; }
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(246, 248, 252, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header.is-scrolled {
  /* retained for compatibility; no layout-affecting delta */
  background: rgba(255,255,255,0.98);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary), #1a3f7a);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--primary-ink);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary,
.header-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(36, 87, 167, 0.22);
}
.btn-primary:hover,
.header-cta:hover { background: var(--primary-ink); color: #fff; }
.btn-secondary,
.header-cta-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover,
.header-cta-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { filter: brightness(0.95); color: #fff; }
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 300;
  position: relative;
  padding: 0;
}
.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 260;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(104%);
  transition: transform .22s ease;
  z-index: 270;
  padding: 20px 18px 32px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.nav-open .mobile-drawer { transform: translateX(0); }
body.nav-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.drawer-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 14px;
  border-radius: 12px;
  background: var(--background);
  border: 1px solid var(--border);
}
.drawer-cta { display: grid; gap: 10px; margin-top: auto; }

/* Chapter breaks — signature device */
.chapter-break {
  position: relative;
  padding: 28px 0 10px;
  margin: 8px 0 0;
}
.chapter-break::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.chapter-break-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--background);
  padding-right: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chapter-break-inner span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--primary);
  letter-spacing: 0;
}

/* Hero — image-first cover */
.hero-cover {
  position: relative;
  min-height: clamp(480px, 68vh, 720px);
  display: grid;
  align-items: end;
  color: var(--hero-text);
  overflow: hidden;
  background: var(--hero-ink);
}
.hero-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  max-width: none;
}
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,23,38,0.92) 0%, rgba(14,23,38,0.72) 42%, rgba(14,23,38,0.28) 100%),
    linear-gradient(0deg, rgba(14,23,38,0.78) 0%, transparent 48%);
}
.hero-cover-content {
  position: relative;
  z-index: 1;
  padding: 88px 0 56px;
  max-width: 720px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D7B4EE;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(160,68,197,0.25);
}
.hero-cover h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
}
.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--hero-muted);
  max-width: 58ch;
  margin: 0 0 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--hero-muted);
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 650;
}
.page-hero {
  padding: 42px 0 28px;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-media {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.page-hero .hero-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.page-hero .lede {
  color: var(--muted);
  max-width: 70ch;
  margin: 0;
  font-size: 18px;
}

/* Sections */
main { padding-bottom: calc(var(--sticky-cta-h) + 24px); }
.section {
  padding: var(--space-7) 0;
}
.section.tonal { background: var(--surface-2); }
.section.surface { background: var(--surface); border-block: 1px solid var(--border); }
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 760px;
}
.section-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b2488;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

/* Utility strip */
.utility-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 650;
}
.utility-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.utility-strip strong { color: var(--ink); }

/* Dense numbered list */
.dense-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.dense-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 18px;
  border-top: 1px solid var(--border);
  min-width: 0;
}
.dense-list li:first-child { border-top: 0; }
.dense-list .idx {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.dense-list h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.dense-list h3 a { color: inherit; text-decoration: none; }
.dense-list h3 a:hover { color: var(--primary); }
.dense-list p { margin: 0; color: var(--muted); font-size: 15px; }
.dense-list .meta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Decision table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 15px;
}
table.data-table th,
table.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
table.data-table th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
table.data-table tr:last-child td { border-bottom: 0; }
table.data-table td:first-child,
table.data-table th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--border);
  font-weight: 700;
}
table.data-table th:first-child { background: var(--surface-2); }

/* Media split */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: stretch;
}
.media-split > * { min-width: 0; }
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.media-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.stack { display: grid; gap: 14px; }
.stack h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.stack p { margin: 0; color: var(--muted); }

/* Pull quote */
.pull-quote {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
}
.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 750;
}
.pull-quote footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

/* Topic rail */
ul.topic-rail { list-style: none; margin: 0; padding: 0; }
.topic-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.topic-chip {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.topic-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--ink);
}
.topic-chip span { color: var(--muted); font-size: 14px; }

/* Bracket board */
.bracket-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bracket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.bracket-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.bracket-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
}
.bracket-card p { margin: 0; color: var(--muted); font-size: 14px; }
.bracket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
}
.pill.accent { background: var(--accent-soft); color: #6b2488; border-color: transparent; }

/* Identity panels */
.identity-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.identity-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.mono {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  background: var(--primary);
}
.identity-panel h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
}
.identity-panel p { margin: 0; color: var(--muted); font-size: 14px; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--border-strong);
}
.timeline li {
  position: relative;
  padding: 0 0 22px 22px;
  min-width: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
}
.timeline strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }

/* Split checklist */
.split-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.check-card,
.note-card,
.card,
.data-card,
.step-card,
.loose-card,
.hub-card,
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.check-card h3,
.note-card h3,
.card h3,
.data-card h3,
.step-card h3,
.loose-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.check-card ul,
.note-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.check-card li + li,
.note-card li + li { margin-top: 8px; }

/* Safety */
.safety-band {
  background: #EEF3FA;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.safety-band h2 { margin-top: 0; }
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.safety-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.safety-grid h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
}
.safety-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* Closing CTA */
.closing-cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(160,68,197,0.16), transparent 40%),
    linear-gradient(135deg, #13233d 0%, #1b3f74 55%, #2457A7 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.closing-cta h2 {
  color: #fff;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
}
.closing-cta p { margin: 0 0 20px; color: #d5e0f2; max-width: 60ch; }
.closing-cta .hero-actions .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

/* Content cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card p, .data-card p, .loose-card p, .hub-card p, .blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.step-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
}
.loose-card {
  background: linear-gradient(135deg, rgba(36,87,167,0.06) 0%, rgba(160,68,197,0.04) 100%);
  border: 1px solid rgba(36,87,167,0.18);
}
.band {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Inline image rows */
.inline-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 28px 0;
}
.inline-image-row img,
.inline-image-row .visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.inline-image-row.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.inline-image-row.reverse .visual { order: 2; }
.inline-image-row figcaption,
figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.content-image-card {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.content-image-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
}
.faq-item p { margin: 0; color: var(--muted); font-size: 15px; }
details.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 750;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] summary { margin-bottom: 8px; }

/* Article body */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
  scroll-margin-top: 90px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 24px 0 10px;
  scroll-margin-top: 90px;
}
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { color: var(--muted); }
.toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.toc strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--primary); }
section[id], .article-body h2[id], .article-body h3[id] { scroll-margin-top: 90px; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 650;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

/* Footer */
.site-footer {
  background: #101a2b;
  color: #d7e0ef;
  padding: 56px 0 28px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}
.site-footer h2,
.site-footer h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer p { color: #a9b7cc; font-size: 14px; margin: 0 0 12px; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: #c9d6ea;
  text-decoration: none;
  font-size: 14px;
}
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: #8fa0b8;
  font-size: 13px;
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 240;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246,248,252,0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: none;
}
.mobile-sticky-cta .btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* Trust / stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.stat-tile span { color: var(--muted); font-size: 13px; }

/* Related */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Helpers */
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-cta-ghost { display: none; }
  .hamburger { display: inline-flex; }
  .media-split,
  .split-check,
  .article-layout,
  .inline-image-row,
  .inline-image-row.reverse {
    grid-template-columns: 1fr;
  }
  .inline-image-row.reverse .visual { order: 0; }
  .identity-row,
  .card-grid,
  .related-grid,
  .safety-grid,
  .stat-row,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toc { position: static; }
}

@media (max-width: 899px) {
  .hero-cover {
    min-height: 480px !important;
    max-height: 720px !important;
  }
  .hero-cover-content { padding: 80px 0 48px; }
  .hero-cover h1 { font-size: 32px !important; line-height: 1.1 !important; }
  .hero-lede { font-size: 16px !important; line-height: 1.5 !important; }
  .hero-actions .btn { flex: 1 1 auto; }
  .dense-list li {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .dense-list .meta {
    grid-column: 2;
    white-space: normal;
  }
  .bracket-board,
  .faq-grid,
  .grid-2,
  .identity-row,
  .card-grid,
  .related-grid,
  .safety-grid,
  .stat-row,
  .footer-grid,
  .card-grid.two {
    grid-template-columns: 1fr;
  }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 0; }
}

@media (max-width: 430px) {
  .container { width: min(100% - 24px, var(--container)); }
  .header-cta { display: none; }
  .page-hero .hero-media img { aspect-ratio: 16 / 10; }
  .closing-cta { padding: 28px 18px; }
  .article-body { padding: 18px; }
}

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