/* How to Snowboard — main stylesheet
   Tokens follow DESIGN-SYSTEM.md: snow, paper, ink, cobalt, ice, line, lime. */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }

:root {
  --snow: #F7F9FC;
  --paper: #FFFFFF;
  --ink: #101C32;
  --ink-2: #33415C;
  --muted: #4A5872;
  --cobalt: #2454FF;
  --cobalt-dark: #1740D6;
  --ice: #E8EEF7;
  --ice-2: #F0F4FA;
  --line: #CAD4E3;
  --line-soft: #DDE4EF;
  --lime: #D6FF5F;
  --lime-line: #C7E600;
  --navy: #101C32;
  --navy-2: #17264A;
  --danger: #B42318;
  --ok: #12703A;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 28, 50, .05), 0 2px 8px rgba(16, 28, 50, .04);
  --shadow-lift: 0 6px 20px rgba(16, 28, 50, .10);
  --container: 1240px;
  --gutter: 20px;
  --header-h: 64px;
  --section: 48px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--cobalt);

  --z-header: 50;
  --z-nav: 40;
  --z-skip: 60;
}

@media (min-width: 640px) { :root { --gutter: 28px; --section: 64px; } }
@media (min-width: 960px) { :root { --gutter: 40px; --header-h: 72px; --section: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (min-width: 960px) { body { font-size: 1.0625rem; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cobalt); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-dark); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: var(--z-skip);
  background: var(--ink); color: #fff; border: 0; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.d-block { display: block; }

/* ---------- Typography ---------- */
.display, .h2, .h3, .h4, .card-title, .brand-name, .step-num, .faq-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em;
}
.display { font-size: clamp(3rem, 12vw, 3.5rem); line-height: .92; letter-spacing: -.015em; margin: 0 0 .25em; text-wrap: balance; }
@media (min-width: 640px) { .display { font-size: clamp(3.5rem, 7vw, 4.75rem); } }
@media (min-width: 960px) { .display { font-size: clamp(4.5rem, 6.4vw, 5.9rem); } }
.display-xl { font-size: clamp(3.25rem, 14vw, 3.75rem); }
@media (min-width: 640px) { .display-xl { font-size: clamp(4rem, 9vw, 5.5rem); } }
@media (min-width: 960px) { .display-xl { font-size: clamp(5.5rem, 8vw, 6.5rem); } }
.display-sm { font-size: clamp(2.75rem, 10vw, 4.25rem); }
.h1-kicker { display: block; font-size: .36em; line-height: 1.1; letter-spacing: .01em; margin-top: .3em; color: var(--ink-2); font-weight: 700; }
.h2 { font-size: clamp(2rem, 7vw, 2.4rem); line-height: 1; }
@media (min-width: 960px) { .h2 { font-size: 3rem; } }
.h3 { font-size: 1.75rem; line-height: 1.05; }
.h4 { font-size: 1.35rem; line-height: 1.1; }
.lead { font-size: 1.15rem; line-height: 1.45; color: var(--ink-2); margin: 0 0 1.25rem; max-width: 36em; }
@media (min-width: 960px) { .lead { font-size: 1.3rem; } }
.lead-strong { color: var(--ink); }
.hero-text { color: var(--muted); max-width: 34em; }
.section-lead { font-size: 1.1rem; color: var(--ink-2); margin: .4rem 0 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 .9rem;
  font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::after { content: ""; width: 36px; height: 2px; background: var(--lime-line); flex: none; }
.eyebrow-sm { font-size: .7rem; margin-bottom: .55rem; }
.eyebrow-row { display: flex; flex-wrap: wrap; column-gap: 18px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #C8F240; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 12px 26px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 4px; background: none; border: 0;
  color: var(--cobalt); font-weight: 600; text-decoration: underline; text-underline-offset: .2em;
}
.btn-text .icon { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.05rem; }
.text-link .icon { width: 20px; height: 20px; }
.more-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.more-link .icon { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.icon-lg { width: 36px; height: 36px; }
.icon-xl { width: 56px; height: 56px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(247, 249, 252, .96); border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.logo-mark { width: 46px; height: auto; flex: none; }
.brand-name { font-size: 1.65rem; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
@media (min-width: 960px) { .logo-mark { width: 56px; } .brand-name { font-size: 2rem; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: none; border: 0; color: var(--ink); border-radius: var(--radius); margin-right: -8px;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: var(--z-nav);
  background: var(--snow); padding: 16px var(--gutter) 32px; overflow-y: auto; border-top: 1px solid var(--line-soft);
}
.nav-list { list-style: none; margin: 0 0 20px; padding: 0; }
.nav-list a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--ink); text-decoration: none;
}
.nav-list a[aria-current="page"] { color: var(--cobalt); }
.nav-cta { width: 100%; }
.nav-search { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-search .icon { width: 22px; height: 22px; }
body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 28px; position: static; padding: 0; background: none; border: 0; overflow: visible; flex: 1;
  }
  .nav-list { display: flex; gap: 8px; margin: 0 auto; }
  .nav-list a {
    min-height: 44px; padding: 0 14px; border: 0; font-family: var(--font-body); font-weight: 500; font-size: .95rem;
    border-radius: var(--radius);
  }
  .nav-list a:hover { color: var(--cobalt); }
  .nav-list a[aria-current="page"] { color: var(--cobalt); box-shadow: inset 0 -2px 0 var(--cobalt); border-radius: 0; }
  .nav-cta { width: auto; }
  .nav-search { margin: 0; width: 44px; height: 44px; justify-content: center; }
  .nav-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Hero (shared) ---------- */
.hero { position: relative; padding: 20px 0 8px; }
.hero-grid { display: grid; gap: 20px; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; }
.hero-badges { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.hero-badges li { display: flex; align-items: center; gap: 10px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); max-width: 170px; line-height: 1.35; }
.hero-badges .icon { width: 30px; height: 30px; flex: none; color: var(--ink); }

@media (min-width: 960px) {
  .hero { padding: 28px 0 40px; min-height: 440px; overflow: hidden; }
  .hero-grid { grid-template-columns: minmax(0, 46%) 1fr; gap: 0; }
  .hero-copy { padding: 8px 0 12px; }
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; }
  .hero-media picture, .hero-media img { width: 100%; height: 100%; }
  .hero-media img { aspect-ratio: auto; border-radius: 0; object-position: 60% 45%; }
  .hero-media::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--snow) 0%, rgba(247, 249, 252, .85) 14%, rgba(247, 249, 252, 0) 42%);
  }
}

@media (max-width: 639px) {
  .hero-home .hero-badges { display: none; }
  .hero-home .btn-row .btn { width: 100%; }
  .hero-home .btn-row { margin: 1.1rem 0 .5rem; }
  .hero-home .hero-text { display: none; }
}

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .85rem; color: var(--ink-2); }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--muted); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; padding: 10px 0; }
.breadcrumbs a:hover { color: var(--cobalt); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Home ---------- */
.hero-home .hero-media img { object-position: 72% 55%; }
@media (min-width: 960px) {
  .hero-home { min-height: 520px; padding-top: 32px; }
  .hero-home .hero-media { width: 60%; }
  .hero-home .hero-grid { grid-template-columns: minmax(0, 52%) 1fr; }
  .hero-home .btn-lg { padding: 12px 20px; font-size: 1.05rem; }
}
.banner-strip { background: var(--navy); color: #fff; }
.banner-inner { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 64px; padding-top: 12px; padding-bottom: 12px; position: relative; }
.banner-text { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.15; text-align: center; position: relative; padding-bottom: 8px; }
.banner-text::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 2px; margin-left: -20px; background: var(--lime); }
.banner-sign { display: none; }
@media (min-width: 960px) {
  .banner-text { font-size: 1.65rem; }
  .banner-sign { display: flex; position: absolute; right: var(--gutter); }
}
.banner-sign, .footer-sign { flex-direction: column; margin: 0; font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5; }

.section { padding: var(--section) 0 calc(var(--section) * .5); }
.section-tight { padding-top: calc(var(--section) * .5); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.section-head .h2 { margin: 0; }

.path-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.path-card { position: relative; display: grid; grid-template-columns: 104px 1fr 22px; align-items: center; gap: 0 14px; padding: 8px 12px 8px 8px; }
.path-card-body { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.path-card-body .step-num { grid-row: 1 / span 2; margin: 0; font-size: 1.7rem; }
.path-card-body .step-num::after { width: 16px; }
.path-card-body .card-title { font-size: 1.35rem; margin: 0; }
.path-card-body .card-text { margin: 2px 0 0; font-size: .9rem; }
.path-card-media { grid-column: 1; grid-row: 1; }
.path-card-media img { width: 104px; height: 68px; object-fit: cover; border-radius: 6px; }
.path-card .row-card-arrow { grid-column: 3; }
.path-note { margin: 18px 0 0; color: var(--muted); font-size: .95rem; max-width: 60em; }
@media (min-width: 640px) and (max-width: 1099px) { .path-grid { max-width: 760px; } .path-card-body .step-num::after { width: 28px; } }
@media (min-width: 1100px) {
  .path-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .path-card { display: flex; flex-direction: column; align-items: stretch; padding: 14px 14px 14px; }
  .path-card-body { display: block; }
  .path-card-body .step-num { margin-bottom: 10px; font-size: 2rem; }
  .path-card-body .step-num::after { width: 28px; }
  .path-card-body .card-title { font-size: 1.3rem; }
  .path-card-body .card-text { font-size: .88rem; min-height: 3em; margin-bottom: 12px; }
  .path-card-media { margin-top: auto; }
  .path-card-media img { width: 100%; height: auto; aspect-ratio: 5 / 4; }
  .path-card .row-card-arrow { display: none; }
}

.step-num {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 6px;
  font-size: 2rem; line-height: 1; color: var(--cobalt); font-weight: 800;
}
.step-num::after { content: ""; width: 28px; height: 2px; background: var(--lime-line); }

.care-teaser { display: grid; background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-top: calc(var(--section) * .5); }
.care-media img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.care-copy { position: relative; padding: 28px var(--gutter) 32px; }
.care-copy p { color: var(--ink-2); max-width: 32em; margin-top: .6rem; }
.scribble {
  display: none; font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 1.15rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); max-width: 120px; transform: rotate(-12deg);
  padding-bottom: 8px; border-bottom: 2px solid var(--lime-line);
}
@media (min-width: 1200px) {
  .scribble { display: block; }
  .care-copy { padding-right: 230px !important; }
  .care-copy .scribble { max-width: 130px; margin-top: -40px; }
}
@media (min-width: 960px) {
  .care-teaser { grid-template-columns: 47% 1fr; }
  .care-copy { padding: 36px 48px; align-self: center; }
  .scribble { position: absolute; right: 40px; top: 50%; margin: -40px 0 0; }
  .care-copy .h2 { font-size: 3.2rem; max-width: 9.5em; }
}
.guide-article { border-top: 1px solid var(--line-soft); margin-top: var(--section); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-lift); border-color: var(--line); }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-link:hover { color: var(--cobalt); text-decoration: none; }
.card-link:focus-visible { box-shadow: none; }
.card-link:focus-visible::after { box-shadow: var(--focus); }
.card:has(.card-link:hover) .card-more { text-decoration-thickness: 2px; }
.card-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.guide-card { display: flex; flex-direction: column; overflow: hidden; }
.card-media { overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-title { font-size: 1.55rem; line-height: 1.05; margin: 0 0 6px; }
.card-text { color: var(--ink-2); font-size: .95rem; line-height: 1.5; margin: 0 0 12px; }
.card-more {
  margin: auto 0 0; display: inline-flex; align-items: center; gap: 8px; color: var(--cobalt);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .25em;
}
.card-more .icon { width: 15px; height: 15px; }

.row-card { display: grid; grid-template-columns: 110px 1fr 24px; gap: 14px; align-items: center; padding: 8px 14px 8px 8px; }
.row-card-media img { width: 110px; height: 70px; object-fit: cover; border-radius: 6px; }
.row-card .card-title { font-size: 1.3rem; }
.row-card .card-text { margin: 0; font-size: .88rem; }
.row-card-arrow { color: var(--cobalt); }
.row-card-arrow .icon { width: 22px; height: 22px; }

/* ---------- Article layout ---------- */
.article-layout { display: grid; gap: 0; padding-bottom: var(--section); }
.article-main { min-width: 0; }
.article-aside { margin: 8px 0 20px; }
.toc-mobile { background: var(--ice); border-radius: var(--radius); }
.toc-mobile summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 8px 18px;
  cursor: pointer; list-style: none; border-radius: var(--radius);
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile .h4 { font-size: 1.5rem; }
.toc-icon { width: 24px; height: 24px; color: var(--cobalt); transition: transform .2s; }
.toc-mobile[open] .toc-icon { transform: rotate(180deg); }
.toc-mobile .toc-list { padding: 0 10px 12px; }
.toc-desktop, .aside-related { display: none; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-link {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 44px; padding: 6px 12px;
  background: none; border: 0; border-left: 2px solid transparent; text-align: left; color: var(--ink-2); font-size: .95rem;
}
.toc-link:hover { color: var(--cobalt); }
.toc-link.is-active { color: var(--cobalt); border-left-color: var(--cobalt); font-weight: 500; }
.toc-num { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--cobalt); min-width: 1.6em; }
.toc-numbered .toc-link { border-left: 0; padding-left: 0; }

@media (min-width: 960px) {
  .article-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 0 44px; }
  .article-aside { margin: 0; border-right: 1px solid var(--line-soft); padding: 24px 24px 0 0; }
  .aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
  .toc-mobile { display: none; }
  .toc-desktop { display: block; }
  .toc-desktop .toc-list { border-left: 1px solid var(--line-soft); }
  .toc-desktop .toc-numbered { border-left: 0; }
  .toc-link { margin-left: -1px; }
  .aside-related { display: block; border-top: 1px solid var(--line-soft); margin-top: 28px; padding-top: 28px; }
  .aside-related ul { list-style: none; padding: 0; margin: 0; }
  .aside-related a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); text-decoration: none; }
  .aside-related a:hover { color: var(--cobalt); }
  .aside-related .icon { width: 18px; height: 18px; color: var(--cobalt); }
  .article-main { padding-top: 24px; }
}

.glance { margin: 0 0 18px; }
.glance-title { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 500; }
.prereq { background: var(--ice-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 12px; }
.prereq-list { margin: 0 0 10px; }
.prereq-list li { margin-bottom: 4px; }

.lesson-section { padding: 26px 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 18px; }
.lesson-section:first-of-type { padding-top: 8px; }
.section-title { margin: 2px 0 8px; }
.section-title:focus { outline: none; }
.prose { max-width: 46em; }
.prose p, .prose li { color: var(--ink-2); }
.prose h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.05rem; margin: 1.2em 0 .3em; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; background: var(--paper); }
.prose th, .prose td { border: 1px solid var(--line-soft); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--ice); }
.table-wrap { overflow-x: auto; }
.prose .tip { background: var(--ice-2); border-left: 3px solid var(--cobalt); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.section-media { display: grid; gap: 10px; }
.media-2 { grid-template-columns: 1fr 1fr; }
.section-media figure { margin: 0; }
.section-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.section-media figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 1100px) {
  .has-side-image { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
  .has-side-image .section-media img { aspect-ratio: 16 / 10; }
}

/* Practice goals */
.goals { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; margin: 28px 0 14px; display: grid; gap: 16px; }
.goals .eyebrow, .goals .goals-title { color: #fff; }
.goals-title { margin: 0 0 8px; font-size: 2.2rem; }
.goals-note { color: #C9D3E6; font-size: .9rem; margin: 0; }
.goals-list { border: 0; margin: 0; padding: 0; }
.check-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.check-row input, .check-item input {
  appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 2px 0 0; border-radius: 5px;
  border: 2px solid currentColor; background: transparent; display: grid; place-content: center; cursor: pointer;
}
.check-row input::before, .check-item input::before {
  content: ""; width: 13px; height: 8px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor;
  transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .12s;
}
.check-row input:checked::before, .check-item input:checked::before { transform: rotate(-45deg) scale(1); }
.check-row label { cursor: pointer; padding-top: 1px; }
.goals .check-row input:checked { background: var(--lime); border-color: var(--lime); color: var(--navy); }
@media (min-width: 960px) { .goals { grid-template-columns: 1fr 1fr; padding: 26px 30px; align-items: center; } }

.next-step {
  display: grid; gap: 16px; align-items: center; background: var(--ice); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 28px;
}
.next-step .h3 { margin-bottom: 4px; font-size: 2rem; }
.next-step p { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) { .next-step { grid-template-columns: 1fr auto; } }

.faq { margin: 12px 0 28px; }
.faq-title { margin: 0 0 14px; }
.faq-item { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 8px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.faq-icon { flex: none; width: 22px; height: 22px; transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-a { padding: 0 16px 14px; color: var(--ink-2); }
.faq-a p:last-child { margin-bottom: 0; }

.sources { border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 8px; font-size: .92rem; }
.sources .h4 { margin-bottom: 8px; }
.sources ul { margin: 0; padding-left: 1.1em; }
.sources li { margin-bottom: 6px; }
.source-note { color: var(--muted); }
.updated { color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* Related section */
.related { border-top: 1px solid var(--line-soft); }

/* ---------- Gear / sizing ---------- */
.hero-sizing .hero-media img { object-position: 50% 40%; }
.fit-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: 22px 18px; margin: 20px 0 0;
}
.fit-head { display: grid; gap: 4px; margin-bottom: 16px; }
.fit-title { font-size: 2.2rem; }
.fit-sub { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.fit-grid { display: grid; gap: 14px 20px; margin-bottom: 18px; }
@media (min-width: 640px) {
  .fit-card { padding: 26px; }
  .fit-grid { grid-template-columns: 1fr 1fr; }
  .fit-head { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
}
@media (min-width: 960px) {
  .hero-sizing { min-height: 0; }
  .hero-sizing .hero-grid { grid-template-columns: minmax(0, 54%) 1fr; }
  .hero-sizing .hero-media { width: 50%; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="search"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36, 84, 255, .25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hint { margin: 0; font-size: .82rem; color: var(--muted); }
.field-error { margin: 0; font-size: .88rem; font-weight: 500; color: var(--danger); }
.field-error::before { content: "! "; font-weight: 700; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.select-icon { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; }
.input-unit { display: flex; gap: 8px; }
.input-unit input { flex: 1; min-width: 0; }
.segmented { display: flex; border: 0; margin: 0; padding: 0; min-width: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label {
  display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--paper); font-size: .92rem; cursor: pointer; margin-left: -1px;
}
.segmented label:first-of-type { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.segmented label:last-of-type { border-radius: 0 var(--radius) var(--radius) 0; }
.segmented input:checked + label { background: var(--cobalt); border-color: var(--cobalt); color: #fff; position: relative; }
.segmented input:focus-visible + label { box-shadow: var(--focus); position: relative; z-index: 1; }
.form-alert { background: #FDECEA; border: 1px solid #F4B8B2; color: var(--danger); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-weight: 500; }
.form-alert p { margin: 0; }
.form-success { background: #E9F7EF; border: 1px solid #A7DDBD; border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.form-success p { margin: 6px 0 0; }

.next-band {
  display: grid; gap: 16px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 22px;
  margin: 24px auto 0; max-width: calc(var(--container) + 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
}
.next-band .h2, .next-band .eyebrow { color: #fff; }
.next-band .h2 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-bottom: 6px; }
.next-band p { color: #D5DDEC; margin: 0 0 8px; }
.next-band-icon { display: none; }
.next-band .btn { justify-self: start; }
.fit-profile:empty { display: none; }
.fit-profile { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.fit-summary { color: #fff !important; font-size: 1.05rem; }
.fit-steps { margin: 0 0 8px; padding-left: 1.3em; color: #D5DDEC; }
.fit-steps li { margin-bottom: 4px; }
.fit-steps strong, .fit-profile strong { color: #fff; }
.fit-note { font-size: .88rem; }
@media (min-width: 960px) {
  .next-band { grid-template-columns: auto 1fr auto; align-items: center; padding: 24px 36px; gap: 28px; }
  .next-band-icon { display: block; border: 2px solid #fff; border-radius: 10px; padding: 8px; }
}

.steps-band { padding-bottom: 8px; }
.step-cards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; }
.step-card { display: flex; flex-direction: column; gap: 12px; }
.step-card-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.step-card-head .h4 { margin-bottom: 4px; }
.step-card-head p:not(.step-num) { margin: 0; color: var(--ink-2); font-size: .92rem; }
.step-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); margin-top: auto; }
@media (min-width: 900px) {
  .step-cards { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .step-card { padding: 0 20px; border-left: 1px solid var(--line-soft); }
  .step-card:first-child { padding-left: 0; border-left: 0; }
  .step-card:last-child { padding-right: 0; }
}

/* ---------- Care ---------- */
.hero-care .hero-media img { object-position: 62% 50%; }
.hero-care .btn { margin: 4px 0 0; }
.tools { padding: 8px 0 18px; }
.tools .h2 { margin-bottom: 4px; }
.tool-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tool-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 12px 14px; }
.tool-card img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.tool-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 4px; }
.tool-card p { margin: 0; font-size: .85rem; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tool-grid { grid-template-columns: repeat(5, 1fr); } }
.overview { padding: 12px 0 8px; }
.overview-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.overview-card { display: grid; grid-template-columns: 130px 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 8px 14px 10px 8px; }
.overview-card img { grid-column: 1; grid-row: 1 / span 3; width: 130px; height: 100%; min-height: 96px; object-fit: cover; border-radius: 6px; }
.overview-card .step-num { grid-column: 2; font-size: 1.7rem; margin: 4px 0 2px; }
.overview-title { grid-column: 2; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin: 0 0 4px; }
.overview-card p:not(.step-num) { grid-column: 2; margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 1100px) {
  .overview-grid { grid-template-columns: repeat(5, 1fr); }
  .overview-card { display: flex; flex-direction: column; padding: 12px 12px 14px; }
  .overview-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; min-height: 0; margin: 4px 0 10px; }
}
.callout { display: flex; gap: 16px; align-items: flex-start; background: var(--ice); border: 1px solid #C9D6F2; border-radius: var(--radius); padding: 16px 20px; margin: 16px 0 12px; }
.callout-icon { width: 36px; height: 36px; flex: none; color: var(--cobalt); }
.callout-title { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin: 0 0 2px; }
.callout p:last-child { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* ---------- Guides index ---------- */
.search-form { display: flex; gap: 0; margin: 8px 0 16px; max-width: 520px; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field input {
  width: 100%; min-height: 54px; padding: 10px 14px 10px 48px; border: 1px solid var(--line); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); background: var(--paper); font-size: 1rem;
}
.search-field input:focus-visible { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36, 84, 255, .25); }
.search-icon { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--ink-2); }
.search-form .btn { border-radius: 0 var(--radius) var(--radius) 0; min-height: 54px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.topic-chip:hover { border-color: var(--cobalt); color: var(--cobalt); text-decoration: none; }
.topic-chip[aria-current="page"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.hero-index .hero-media img { object-position: 70% 40%; }
.result-count { margin: 0; font-weight: 600; color: var(--ink-2); }
.guide-group { margin-bottom: 36px; }
.group-title { margin: 0 0 4px; }
.group-intro { color: var(--ink-2); margin-bottom: 14px; max-width: 48em; }
.guide-group .card-grid { margin-top: 12px; }
.empty-state { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; margin-bottom: 24px; }
.empty-state p { font-weight: 600; font-size: 1.1rem; }
.clear-row { text-align: center; }
.cta-band { background: var(--navy); color: #fff; }
.cta-inner { position: relative; display: grid; gap: 18px; padding-top: 36px; padding-bottom: 36px; }
.cta-band .h2 { color: #fff; }
.cta-band p { color: #D5DDEC; margin: 6px 0 0; }
.cta-band .btn { justify-self: start; }
.scribble-light { color: #fff; }
@media (min-width: 960px) {
  .cta-inner { grid-template-columns: 1fr auto 170px; align-items: center; gap: 36px; }
  .cta-band .scribble { position: static; margin: 0; border-color: var(--lime); }
}

/* ---------- Checklist ---------- */
.checklist-layout { display: grid; gap: 20px; }
.checklist-main, .checklist-side { min-width: 0; }
.hero-checklist { padding-bottom: var(--section); }
.checklist-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 18px; margin-top: 20px; }
.checklist-head { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.checklist-head .h2 { font-size: 2.2rem; }
.progress-text { margin: 0 0 6px; font-weight: 600; }
.progress { width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--ice); overflow: hidden; appearance: none; -webkit-appearance: none; display: block; }
.progress::-webkit-progress-bar { background: var(--ice); border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--cobalt); border-radius: 999px; transition: width .25s; }
.progress::-moz-progress-bar { background: var(--cobalt); border-radius: 999px; }
.storage-warning { background: #FFF6DB; border-radius: var(--radius); padding: 10px 12px; font-size: .9rem; margin: 12px 0 0; }
.check-group { border: 0; margin: 0; padding: 16px 0 10px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.check-group legend { padding: 0; margin-bottom: 8px; display: block; width: 100%; }
.check-group legend .eyebrow { margin: 0; }
.check-group-title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; margin-top: 4px; }
.check-items { list-style: none; margin: 0; padding: 0; }
.check-item { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; }
.check-item input { color: var(--ink); border-color: var(--line); border-width: 2px; margin-top: 1px; }
.check-item input:checked { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.check-item label { cursor: pointer; display: flex; flex-direction: column; }
.check-label { font-weight: 500; }
.check-item input:checked + label .check-label { text-decoration: line-through; text-decoration-color: var(--muted); }
.check-desc { font-size: .87rem; color: var(--muted); line-height: 1.45; }
.complete-msg { background: #E9F7EF; border: 1px solid #A7DDBD; color: var(--ok); border-radius: var(--radius); padding: 12px 14px; font-weight: 600; margin: 14px 0 0; }
.checklist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; }
.checklist-actions .btn .icon { width: 22px; height: 22px; }
.undo { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.privacy-micro { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.checklist-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 8; object-fit: cover; }
.note-panel { display: none; }
.checklist-extra { padding-bottom: var(--section); }
.checklist-extra .article-main { max-width: 900px; }
@media (min-width: 960px) {
  .hero-checklist { overflow: visible; min-height: 0; }
  .checklist-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .checklist-card { padding: 24px 22px; }
  .checklist-head { grid-template-columns: 1fr 180px; align-items: center; }
  .checklist-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
  .checklist-media img { aspect-ratio: 45 / 58; max-height: 580px; }
  .note-panel { display: block; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 26px 26px 22px; }
  .note-panel .eyebrow, .note-panel .h2 { color: #fff; }
  .note-panel .h2 { font-size: 2.3rem; margin-bottom: 10px; }
  .note-panel p { color: #D5DDEC; }
  .note-foot { display: flex; align-items: center; gap: 16px; margin: 16px 0 0; color: #fff !important; }
}

/* ---------- Static pages ---------- */
.page-hero { padding: 28px 0 12px; }
.page-body { padding-bottom: var(--section); }
.page-body h2 { font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin: 1.4em 0 .4em; }
.page-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; margin: 1.2em 0 .3em; }
.contact-form { padding: 22px; display: grid; gap: 16px; max-width: 640px; margin-top: 18px; }
.contact-form .btn { justify-self: start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link-list { padding-left: 1.1em; }
.link-list li { margin-bottom: 6px; }
.link-list a { display: inline-block; padding: 6px 0; }
.error-page .search-form { margin-bottom: 28px; }
.error-page .h3 { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 28px 0 18px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .logo-mark path:not(:first-child) { fill: var(--navy); stroke: var(--navy); }
.brand-light .logo-mark path:last-child { fill: none; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.footer-brand { grid-column: 1 / -1; }
.footer-tagline { margin: 2px 0 0 58px; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #C9D3E6; }
.footer-line { margin: 10px 0 0; color: #C9D3E6; font-size: .9rem; }
.footer-heading { font-family: var(--font-body); font-size: .85rem; font-weight: 700; margin: 6px 0 4px; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-block; padding: 6px 0; font-size: .92rem; }
.footer-sign { display: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .8rem; color: #C9D3E6; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-legal a { display: inline-block; padding: 8px 0; color: #C9D3E6; }
@media (min-width: 960px) {
  .site-footer { padding: 30px 0 18px; }
  .footer-grid { grid-template-columns: 1.3fr .8fr .8fr 1fr; align-items: start; }
  .footer-brand { grid-column: auto; }
  .footer-sign { display: flex; align-self: center; justify-self: end; position: relative; padding-right: 50px; color: #fff; }
  .footer-sign::after { content: ""; position: absolute; right: 0; bottom: .8em; width: 36px; height: 2px; background: var(--lime); }
}

/* ---------- Series / pillar links ---------- */
.series-link { display: flex; align-items: center; gap: 8px; margin: -4px 0 8px; font-size: .92rem; color: var(--ink-2); }
.series-link .icon { width: 18px; height: 18px; flex: none; color: var(--cobalt); }
.series-link a { font-weight: 600; padding: 6px 0; }
.byline { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.byline a { color: var(--ink-2); padding: 6px 0; }
.series { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 22px 12px; margin: 28px 0; }
.series .h2 { font-size: 1.9rem; margin-bottom: 12px; }
.series-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.series-list li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.series-list a { font-weight: 600; font-size: 1.02rem; padding: 4px 0; }
.series-list span { color: var(--muted); font-size: .9rem; }
@media (min-width: 760px) { .series-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hub-card { padding: 16px 18px; }
.hub-card .card-title { font-size: 1.4rem; }
.hub-count { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
@media (min-width: 640px) { .hub-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .hub-list { grid-template-columns: repeat(3, 1fr); } }
.icon-sm { width: 18px; height: 18px; }

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

/* Inline SVG diagrams in articles */
.diagram { margin: 8px 0 18px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* Wide tables scroll inside their own box on small screens instead of widening the page */
.lesson-section, .lesson-section-text, .article-main, .prose { min-width: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.prose > table { display: block; overflow-x: auto; max-width: 100%; }
.prose table th, .prose table td { min-width: 7em; }

/* ---------- Consent banner, settings dialog, back to top ---------- */
.footer-button { background: none; border: 0; color: #C9D3E6; font-size: .8rem; padding: 8px 0; text-decoration: underline; text-underline-offset: .2em; }
.footer-button:hover { color: #fff; }
.btn-inline { min-height: 0; padding: 0; font-size: inherit; display: inline; }
.btn-on-dark { color: var(--lime); }
.goals-save { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: #C9D3E6; }
.consent-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 10px 40px rgba(16, 28, 50, .22); padding: 18px 18px 16px; max-width: 980px; margin: 0 auto; }
.consent-inner { display: grid; gap: 12px; }
.consent-title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin: 0 0 4px; }
.consent-text p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
@media (min-width: 760px) { .consent-inner { grid-template-columns: 1fr auto; align-items: center; gap: 24px; } }
.consent-dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: 0 20px 60px rgba(16, 28, 50, .35); color: var(--ink); }
.consent-dialog::backdrop { background: rgba(16, 28, 50, .55); }
.consent-form { position: relative; padding: 24px 22px 20px; }
.consent-form > p { color: var(--ink-2); font-size: .95rem; }
.consent-options { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.consent-option { display: flex; gap: 12px; align-items: flex-start; background: var(--ice-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 14px; }
.consent-option input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--cobalt); }
.consent-option label { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.consent-option label span { color: var(--muted); }
.consent-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--radius); color: var(--ink); display: grid; place-items: center; }
.icon-x { transform: rotate(45deg); width: 24px; height: 24px; }
.back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lift); }
.back-to-top:hover { background: var(--cobalt); }
.icon-up { transform: rotate(-90deg); width: 22px; height: 22px; }
.placeholder-note { background: #FFF6DB; border: 1px dashed #D9A400; border-radius: var(--radius); padding: 12px 14px; font-size: .92rem; }
@media print { .consent-banner, .consent-dialog, .back-to-top { display: none !important; } }
.check-row-light input { color: var(--ink); border-color: var(--line); }
.check-row-light input:checked { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.field-check label { font-weight: 400; font-size: .92rem; }
.form-alert h2, .form-success h2 { margin-bottom: 4px; }
.error-links { display: grid; gap: 8px 32px; margin-bottom: 20px; }
@media (min-width: 700px) { .error-links { grid-template-columns: 1fr 1fr; } }
.page-related { border-top: 1px solid var(--line-soft); margin-top: 28px; padding-top: 12px; }
/* Keep footer links clear of the fixed back-to-top button */
.site-footer { padding-bottom: 84px; }
.footer-legal { flex-wrap: wrap; gap: 4px 18px; }
.footer-legal a, .footer-button { white-space: nowrap; }
