/* ==========================================================================
   OTTSA Learning — shared stylesheet
   System fonts only. No external assets. No images.
   ========================================================================== */

:root {
  --navy: #10263F;
  --ocean: #0B1A2C;
  --blue: #245DA8;
  --teal: #128779;
  --gold: #C5A46B;
  --ivory: #FAF8F3;
  --soft-blue: #EDF4FA;
  --white: #FFFFFF;
  --text: #27394B;
  --muted: #697789;
  --border: #DFE7EC;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 38, 63, .06), 0 2px 8px rgba(16, 38, 63, .05);
  --shadow: 0 4px 14px rgba(16, 38, 63, .08), 0 14px 40px rgba(16, 38, 63, .06);
  --container: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.36rem); }
h4 { font-size: 1.08rem; font-family: var(--font-sans); letter-spacing: 0; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
strong { color: var(--navy); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.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: 16px; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--ocean); padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ----------------------------- Header ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 38, 63, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand-mark {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-mark::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--white);
}
.brand-mark::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 8px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.12rem; letter-spacing: .14em; }
.brand-name span { color: var(--teal); }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .03em; margin-top: 3px; }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white); border: 0; border-radius: 10px;
  padding: 10px 14px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-list > li { margin: 0; position: relative; }
.nav-link, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 11px; border-radius: 8px;
  font: inherit; font-size: .89rem; font-weight: 600; color: var(--text);
  text-decoration: none; background: transparent; border: 0; cursor: pointer;
  transition: background .2s, color .2s;
}
.nav-link:hover, .dropdown-toggle:hover { background: var(--soft-blue); color: var(--navy); }
.nav-link[aria-current="page"], .dropdown-toggle.is-active {
  color: var(--navy); background: var(--soft-blue);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.nav-cta { background: var(--navy); color: var(--white) !important; margin-left: 6px; }
.nav-cta:hover { background: var(--blue); }
.nav-cta[aria-current="page"] { background: var(--teal); box-shadow: none; }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-1px); }

.dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 260px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 0 0 3px 3px; }
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px; color: var(--text);
  text-decoration: none; font-size: .92rem; font-weight: 500;
}
.dropdown a:hover { background: var(--soft-blue); color: var(--navy); }
.dropdown a[aria-current="page"] { background: var(--soft-blue); color: var(--navy); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 12px 24px 22px; gap: 4px; }
  .nav-link, .dropdown-toggle { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .dropdown {
    position: static; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--border);
    border-radius: 0; margin: 4px 0 8px 14px; padding: 0 0 0 8px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .dropdown::before { display: none; }
  .dropdown.is-open { display: block; }
}

/* ------------------------------- Hero ----------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(36, 93, 168, .55), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(18, 135, 121, .35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--ocean) 100%);
  padding: 64px 0 76px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px);
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 85%);
  mask: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 440px; height: 440px; right: -120px; top: 50%; transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(197, 164, 107, .35);
  box-shadow: 0 0 0 40px rgba(197,164,107,.04), 0 0 0 90px rgba(197,164,107,.03), 0 0 0 150px rgba(255,255,255,.02);
}
.hero[data-motif="2"]::after { border-radius: 30px; transform: translateY(-50%) rotate(18deg); width: 380px; height: 380px; }
.hero[data-motif="3"]::after { border-radius: 0 50% 50% 50%; transform: translateY(-50%) rotate(45deg); }
.hero[data-motif="4"]::after { width: 300px; height: 520px; border-radius: 160px; right: -60px; transform: translateY(-50%) rotate(-24deg); }

.hero h1 { color: var(--white); max-width: 900px; }
.hero .lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: rgba(255,255,255,.84); max-width: 760px; margin-bottom: 1.6em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }

.hero-home { padding: 84px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn::after { content: "→"; transition: transform .2s; }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--gold); color: var(--ocean); }
.btn-primary:hover { background: #D4B781; color: var(--ocean); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn.no-arrow::after { content: none; }

/* CSS-only open book motif */
.hero-art { position: relative; height: 360px; }
.book {
  position: absolute; left: 50%; top: 52%; width: 300px; height: 200px; transform: translate(-50%, -50%);
  perspective: 900px;
}
.book-page {
  position: absolute; top: 0; width: 50%; height: 100%;
  background: linear-gradient(180deg, #fff, #F1EDE3);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  padding: 26px 20px;
}
.book-page.left { left: 0; transform: rotateY(14deg); transform-origin: right center; border-radius: 10px 2px 2px 10px; }
.book-page.right { right: 0; transform: rotateY(-14deg); transform-origin: left center; border-radius: 2px 10px 10px 2px; }
.book-page span { display: block; height: 6px; border-radius: 3px; background: #DCE4EC; margin-bottom: 12px; }
.book-page span:nth-child(1) { width: 60%; background: var(--blue); opacity: .7; }
.book-page span:nth-child(3) { width: 80%; }
.book-page span:nth-child(5) { width: 70%; }
.book-page.right span:nth-child(1) { background: var(--teal); }
.book-spine { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 4px; transform: translateX(-50%); background: var(--gold); border-radius: 2px; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); }
.orbit.o1 { width: 340px; height: 340px; left: 50%; top: 52%; transform: translate(-50%, -50%); }
.orbit.o2 { width: 250px; height: 250px; left: 50%; top: 52%; transform: translate(-50%, -50%); border-color: rgba(197,164,107,.35); border-style: solid; }
.dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; }
.dot.d1 { background: var(--gold); top: 8%; left: 38%; }
.dot.d2 { background: var(--teal); bottom: 12%; right: 14%; width: 16px; height: 16px; }
.dot.d3 { background: #7FA6DA; top: 40%; right: 2%; width: 8px; height: 8px; }
.tag {
  position: absolute; padding: 7px 13px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: var(--white);
}
.tag.t1 { top: 4%; right: 6%; }
.tag.t2 { bottom: 4%; left: 4%; }
.tag.t3 { top: 46%; left: -4%; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 26px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; }
.breadcrumbs li { margin: 0; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--gold); }
.breadcrumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--white); font-weight: 600; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-meta span {
  font-size: .8rem; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.88);
}

/* ------------------------------ Sections -------------------------------- */
.section { padding: 76px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--soft-blue); }
.section.ivory { background: var(--ivory); }
.section.dark { background: linear-gradient(160deg, var(--navy), var(--ocean)); color: rgba(255,255,255,.86); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark strong { color: var(--white); }
.section.dark a { color: var(--gold); }
.section + .section:not(.alt):not(.ivory):not(.dark) { border-top: 1px solid var(--border); }

.kicker {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.section.dark .kicker { color: var(--gold); }
.section-head { max-width: 820px; margin-bottom: 36px; }
.section-head h2 { position: relative; padding-bottom: 16px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center h2::after { left: 50%; transform: translateX(-50%); background: var(--gold); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.dark .section-head p { color: rgba(255,255,255,.75); }

.prose { max-width: 800px; }
.prose h3 { margin-top: 1.6em; }
.prose > :last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split.wide-left { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 28px; } }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CBD8E2; }
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { font-size: .99rem; }
.card-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
  font-family: var(--font-serif); font-weight: 700; color: var(--white);
  background: linear-gradient(145deg, var(--blue), var(--teal));
}
.card.accent-top { border-top: 3px solid var(--teal); }
.card.accent-gold { border-top: 3px solid var(--gold); }
.section.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.85); box-shadow: none; }
.section.dark .card h3 { color: var(--white); }

.icon {
  position: relative; display: block; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: var(--soft-blue); border: 1px solid var(--border);
}
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-book::before { left: 11px; top: 13px; width: 11px; height: 18px; border: 2px solid var(--blue); border-right: 1px solid var(--blue); border-radius: 3px 0 0 3px; }
.icon-book::after { left: 23px; top: 13px; width: 11px; height: 18px; border: 2px solid var(--teal); border-left: 1px solid var(--teal); border-radius: 0 3px 3px 0; }
.icon-chat::before { left: 10px; top: 11px; width: 22px; height: 16px; border: 2px solid var(--blue); border-radius: 6px; }
.icon-chat::after { left: 16px; top: 26px; width: 8px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: skewY(-30deg); background: var(--soft-blue); }
.icon-target::before { left: 11px; top: 11px; width: 24px; height: 24px; border: 2px solid var(--teal); border-radius: 50%; }
.icon-target::after { left: 19px; top: 19px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.icon-grid::before { left: 11px; top: 11px; width: 10px; height: 10px; background: var(--blue); border-radius: 3px; box-shadow: 14px 0 0 var(--teal), 0 14px 0 var(--teal), 14px 14px 0 var(--gold); }
.icon-path::before { left: 10px; top: 30px; width: 26px; height: 2px; background: var(--blue); transform: rotate(-35deg); transform-origin: left; }
.icon-path::after { left: 8px; top: 27px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 20px -14px 0 var(--gold); }
.icon-check::before { left: 14px; top: 12px; width: 10px; height: 18px; border-right: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(45deg); left: 18px; }
.icon-scale::before { left: 22px; top: 10px; width: 2px; height: 26px; background: var(--blue); }
.icon-scale::after { left: 10px; top: 14px; width: 26px; height: 2px; background: var(--blue); box-shadow: -2px 10px 0 -0px transparent; border-bottom: 0; }
.icon-people::before { left: 12px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 13px 0 0 var(--teal); }
.icon-people::after { left: 9px; top: 24px; width: 16px; height: 10px; border-radius: 8px 8px 2px 2px; background: var(--blue); box-shadow: 13px 0 0 var(--teal); }

/* Callouts */
.callout {
  position: relative; padding: 22px 24px 22px 26px; border-radius: 12px;
  background: #E9F5F3; border-left: 4px solid var(--teal); margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.callout.gold { background: #F8F2E6; border-left-color: var(--gold); }
.callout.gold .callout-title { color: #8A6B33; }
.callout.blue { background: var(--soft-blue); border-left-color: var(--blue); }
.callout.blue .callout-title { color: var(--blue); }

/* Definition list */
.defs { display: grid; gap: 14px; margin: 1.4em 0; }
.defs div { padding: 16px 20px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; }
.defs dt { font-weight: 800; color: var(--navy); font-family: var(--font-serif); font-size: 1.05rem; }
.defs dd { margin: 4px 0 0; color: var(--text); font-size: .98rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--teal), var(--gold)); }
.timeline > li { position: relative; padding: 0 0 28px 68px; margin: 0; counter-increment: step; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-family: var(--font-serif);
  background: var(--white); color: var(--navy); border: 2px solid var(--teal); box-shadow: 0 0 0 6px var(--soft-blue);
}
.section.alt .timeline > li::before { box-shadow: 0 0 0 6px var(--soft-blue); }
.section:not(.alt) .timeline > li::before { box-shadow: 0 0 0 6px var(--white); }
.section.ivory .timeline > li::before { box-shadow: 0 0 0 6px var(--ivory); }
.timeline h3 { margin-bottom: .3em; padding-top: 8px; }
.timeline p { margin-bottom: 0; }
.section.dark .timeline > li::before { background: var(--navy); color: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px var(--ocean); }

/* Pathway (horizontal) */
.pathway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: pstep; }
.pathway > div { position: relative; padding: 24px 20px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; counter-increment: pstep; }
.pathway > div::before { content: "Step " counter(pstep); display: block; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.pathway > div:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: translateY(-50%) rotate(45deg); }
.pathway h3 { font-size: 1.1rem; }
.pathway p { font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .pathway { grid-template-columns: 1fr 1fr; } .pathway > div::after { display: none; } }
@media (max-width: 560px) { .pathway { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--white); margin: 1.4em 0; box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .96rem; }
caption { text-align: left; padding: 14px 18px; font-weight: 700; color: var(--navy); background: var(--ivory); border-bottom: 1px solid var(--border); caption-side: top; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--navy); color: var(--white); font-size: .84rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: #F7FAFC; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { color: var(--navy); font-weight: 700; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding: 12px 14px 12px 46px; margin: 0 0 10px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--teal);
}
.checklist li::after {
  content: ""; position: absolute; left: 21px; top: 18px; width: 6px; height: 11px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}
.checklist.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 720px) { .checklist.two-col { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); }

.warn-list { list-style: none; padding: 0; }
.warn-list li { position: relative; padding: 12px 14px 12px 46px; margin-bottom: 10px; border-radius: 10px; background: #FBF4EA; border: 1px solid #EEDFC4; }
.warn-list li::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--white); background: #B07D2E; }

/* Stat / pill strip */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0 1.4em; }
.pill { padding: 7px 14px; border-radius: 999px; background: var(--soft-blue); border: 1px solid var(--border); font-size: .88rem; font-weight: 600; color: var(--navy); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #C9D7E2; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; color: var(--navy); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft-blue); color: var(--blue); font-size: 1.2rem; font-weight: 700; transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; background: var(--teal); color: var(--white); }
.faq .faq-body { padding: 0 22px 20px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* Lesson plan */
.plan-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.plan-head { padding: 26px 28px; background: linear-gradient(140deg, var(--navy), var(--blue)); color: var(--white); }
.plan-head h3 { color: var(--white); margin-bottom: .3em; }
.plan-head p { margin: 0; color: rgba(255,255,255,.82); }
.plan-meta { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.plan-meta div { padding: 16px 20px; border-right: 1px solid var(--border); }
.plan-meta div:last-child { border-right: 0; }
.plan-meta dt { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.plan-meta dd { margin: 4px 0 0; font-weight: 600; color: var(--navy); font-size: .95rem; }
@media (max-width: 760px) { .plan-meta { grid-template-columns: 1fr 1fr; } .plan-meta div:nth-child(2) { border-right: 0; } .plan-meta div:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
.plan-body { padding: 24px 28px; }
.plan-card .table-wrap { margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--border); box-shadow: none; }

/* Resource cards */
.resource-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text); height: 100%;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.resource-top { position: relative; height: 108px; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.resource-top::before { content: ""; position: absolute; width: 140px; height: 140px; right: -30px; top: -40px; border-radius: 50%; border: 18px solid rgba(255,255,255,.08); }
.resource-top::after { content: ""; position: absolute; left: 24px; bottom: 20px; width: 64px; height: 4px; background: var(--gold); border-radius: 2px; box-shadow: 0 -12px 0 rgba(255,255,255,.25), 0 -24px 0 rgba(255,255,255,.15); }
.resource-card.v2 .resource-top { background: linear-gradient(135deg, #0E5E55, var(--teal)); }
.resource-card.v3 .resource-top { background: linear-gradient(135deg, var(--ocean), #36506E); }
.resource-card.v4 .resource-top { background: linear-gradient(135deg, #6E5630, var(--gold)); }
.resource-label { position: absolute; top: 18px; left: 24px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.resource-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.resource-body h3 { margin-bottom: .4em; }
.resource-body p { font-size: .97rem; flex: 1; }
.resource-link { font-weight: 700; color: var(--blue); font-size: .94rem; }
.resource-card:hover .resource-link { color: var(--teal); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 20px; padding: 48px;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: rgba(255,255,255,.88);
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 30px solid rgba(197,164,107,.15); }
.cta-band h2 { color: var(--white); margin-bottom: .35em; }
.cta-band p { margin: 0; }
.cta-band .btn { position: relative; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 34px 26px; } }

.next-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.next-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--white); text-decoration: none; font-weight: 600; color: var(--navy); font-size: .95rem;
}
.next-links a::after { content: "→"; color: var(--teal); }
.next-links a:hover { border-color: var(--teal); color: var(--teal); }

/* Compare columns */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { padding: 24px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); }
.compare .pros { border-top: 3px solid var(--teal); }
.compare .cons { border-top: 3px solid var(--gold); }
.compare h4 { margin-bottom: .6em; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* Method blocks */
.method { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--border); }
.method:first-of-type { border-top: 0; padding-top: 0; }
.method-tag { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.method-side h3 { margin-top: 6px; }
@media (max-width: 820px) { .method { grid-template-columns: 1fr; gap: 10px; } }

/* Example box */
.example { background: var(--ivory); border: 1px dashed #D8CCB2; border-radius: 12px; padding: 20px 22px; margin: 1.4em 0; }
.example-title { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8A6B33; display: block; margin-bottom: 6px; }
.example p:last-child, .example ul:last-child, .example ol:last-child { margin-bottom: 0; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 7px; font-size: .95rem; }
.field .req { color: #A14A2E; }
.field .hint { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: #FBFCFD; border: 1.5px solid #CBD7E1; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36,93,168,.15); background: var(--white); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #B5492E; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 24px 20px; } }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: #F8F2E6; border-left: 4px solid var(--gold); font-size: .96rem; }
.form-status[hidden] { display: none; }

/* ------------------------------- Footer --------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 48px 0 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--teal) 50%, var(--gold)); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: var(--white); }
.site-footer .brand-sub { color: rgba(255,255,255,.6); }
.site-footer .brand-name span { color: var(--gold); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav li { margin: 0; }
.footer-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .93rem; font-weight: 500; }
.footer-nav a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; font-size: .86rem; }
.footer-notice { max-width: 700px; margin: 0; color: rgba(255,255,255,.7); }
.footer-copy { margin: 0; color: rgba(255,255,255,.6); }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead-text { font-size: 1.14rem; color: var(--text); }
.divider-gold { width: 80px; height: 3px; background: var(--gold); border: 0; margin: 28px 0; border-radius: 2px; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 56px 0; }
  .hero, .hero-home { padding: 44px 0 56px; }
  .container { padding: 0 18px; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card:hover, .resource-card:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-art, .cta-band { display: none; }
  .hero { background: none; color: var(--text); padding: 20px 0; }
  .hero h1, .hero .lead { color: var(--navy); }
}

/* Prevent grid children (e.g., wide tables) from forcing horizontal overflow */
.split > *, .grid > *, .hero-grid > *, .method > * { min-width: 0; }
@media (max-width: 420px) {
  .brand { gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1rem; letter-spacing: .08em; }
  .nav-toggle { padding: 9px 11px; }
  .header-inner { gap: 10px; }
}
