:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #66726f;
  --paper: #f7f6f0;
  --panel: #ffffff;
  --line: #dde1d9;
  --brand: #b3212b;
  --brand-dark: #6c1319;
  --forest: #193c35;
  --gold: #c69a45;
  --blue: #244d70;
  --shadow: 0 20px 55px rgba(20, 25, 23, .14);
  --radius: 8px;
  --header-height: 132px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: visible;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(247, 246, 240, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 33, 31, .1);
  transition: box-shadow .2s ease, background .2s ease;
}

.site-header[data-elevated="true"] {
  box-shadow: 0 10px 30px rgba(23, 33, 31, .1);
  background: rgba(247, 246, 240, .96);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 24px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: 52px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: .78rem;
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 10px 24px rgba(179, 33, 43, .22);
}

.button-secondary {
  background: var(--forest);
  color: white;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .55);
}

.button-disabled {
  background: #d8d7cf;
  color: #7b817c;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .78;
}

.button-disabled:hover {
  transform: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  display: flex;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--ink);
  color: white;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #101513;
}

body[data-page="home"] .hero {
  min-height: min(74svh, 760px);
  align-items: start;
}

.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 82px) 24px clamp(28px, 4vw, 38px);
}

.compact-hero {
  min-height: 360px;
  display: grid;
  align-content: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.compact-hero h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.9vw, 4.6rem);
}

.compact-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 18, 16, .92), rgba(12, 18, 16, .62) 48%, rgba(12, 18, 16, .18)),
    linear-gradient(0deg, rgba(12, 18, 16, .86), transparent 42%),
    url("../Images/bg.jpg") center / cover no-repeat;
  transform: scale(1.03);
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(56px, 6vw, 72px) 24px clamp(32px, 4vw, 38px);
  color: white;
}

body[data-page="home"] .hero-content {
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(24px, 3vw, 30px);
}

body[data-page="home"] .hero-copy {
  margin-top: 16px;
}

body[data-page="home"] .hero-actions {
  margin-top: 20px;
}

body[data-page="home"] .hero-metrics {
  margin-top: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2bf66;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.7vw, 4.7rem);
  font-weight: 760;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.7rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 730px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 900px;
  gap: 1px;
  margin: 54px 0 0;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-metrics a {
  color: white;
  text-decoration: none;
}

.hero-metrics a {
  padding: 18px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  transition: background .18s ease, transform .18s ease;
}

.hero-metrics a:hover,
.hero-metrics a:focus-visible {
  background: rgba(255, 255, 255, .2);
  outline: none;
}

.hero-metrics strong {
  display: block;
  font-weight: 850;
}

.hero-metrics span {
  display: block;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .74);
}

.notice-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: var(--brand);
  color: white;
}

.notice-band div,
.notice-band a {
  max-width: 1200px;
}

.notice-band a {
  flex: 0 0 auto;
  font-weight: 850;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 6vw, 76px) 24px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  min-height: 168px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(23, 33, 31, .08);
}

.category-card span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card strong {
  font-size: 1.12rem;
  margin-bottom: 7px;
}

.category-card small {
  color: var(--muted);
  font-size: .95rem;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .65fr);
  gap: 28px;
  align-items: center;
  background: #ffffff80;
  border-block: 1px solid var(--line);
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.content-stack {
  display: grid;
  gap: 22px;
}

.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 36px rgba(23, 33, 31, .08);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.content-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.content-panel > header img {
  width: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbf8;
}

.credential-photo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 10px 28px rgba(23, 33, 31, .07);
}

.credential-photo-strip figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.credential-photo-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.credential-photo-strip figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.25;
}

.content-panel > header p:not(.eyebrow) {
  color: var(--muted);
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.info-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f8f4;
}

.info-card-link {
  display: block;
  position: relative;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(20, 25, 23, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.info-card-link:hover,
.info-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(179, 33, 43, .4);
  box-shadow: 0 16px 34px rgba(20, 25, 23, .12);
  outline: none;
}

.info-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.card-cue {
  display: inline-flex;
  margin-top: 14px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
}

.card-cue::after {
  content: "->";
  margin-left: 8px;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding-left: 22px;
}

.check-list li::marker {
  color: var(--brand);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.image-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f2f2ec;
}

.logo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.logo-gallery figure {
  min-height: 128px;
  margin: 0;
  display: grid;
  gap: 10px;
  place-items: center;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.logo-gallery img {
  width: auto;
  max-width: 118px;
  max-height: 68px;
  object-fit: contain;
}

.logo-gallery figcaption {
  max-width: 100%;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.25;
  text-align: center;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.partner-tile {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 31, .12);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 25, 23, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.partner-tile:hover,
.partner-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(179, 33, 43, .4);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f7 100%);
  box-shadow: 0 16px 32px rgba(20, 25, 23, .12);
  outline: none;
}

.partner-tile strong {
  color: var(--brand-dark);
}

.partner-tile span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.partner-tile-featured {
  grid-column: span 3;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.partner-tile-featured:hover {
  transform: none;
}

.partner-tile-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(20, 25, 23, .18);
}

.partner-tile-body {
  display: grid;
  gap: 8px;
}

.partner-tile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.partner-tile-tabs a {
  padding: 7px 10px;
  border: 1px solid rgba(179, 33, 43, .24);
  border-radius: 999px;
  background: #fff8f7;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.partner-tile-tabs a:hover,
.partner-tile-tabs a:focus-visible {
  border-color: rgba(179, 33, 43, .55);
  background: #ffffff;
  outline: none;
}

.state-curricula-section {
  padding-top: 32px;
}

.state-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.state-curriculum-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, .13);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, #ffffff 0%, #f7f6f0 100%),
    linear-gradient(90deg, rgba(36, 77, 112, .1), rgba(179, 33, 43, .08));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(20, 25, 23, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.state-curriculum-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold), var(--blue));
}

.state-curriculum-card:hover,
.state-curriculum-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(179, 33, 43, .45);
  background:
    linear-gradient(145deg, #ffffff 0%, #fff8f7 100%),
    linear-gradient(90deg, rgba(36, 77, 112, .12), rgba(179, 33, 43, .1));
  box-shadow: 0 20px 42px rgba(20, 25, 23, .14);
  outline: none;
}

.state-badge {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.state-curriculum-card strong {
  color: var(--brand-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.2;
}

.state-curriculum-card span:not(.state-badge) {
  color: var(--muted);
  font-size: .95rem;
}

.state-curriculum-card em {
  align-self: end;
  margin-top: auto;
  color: var(--brand);
  font-size: .78rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.state-curriculum-card em::after {
  content: "->";
  margin-left: 8px;
}

.affiliate-toolbar {
  margin: 8px 0 18px;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.affiliate-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 166px;
  padding: 16px;
  border: 1px solid rgba(23, 33, 31, .12);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(248, 248, 244, .96)),
    radial-gradient(circle at 18% 0%, rgba(198, 154, 69, .16), transparent 38%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(20, 25, 23, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.affiliate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  opacity: .72;
}

.affiliate-card:hover,
.affiliate-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(179, 33, 43, .42);
  box-shadow: 0 16px 30px rgba(20, 25, 23, .12);
  outline: none;
}

.affiliate-card.is-featured {
  border-color: rgba(179, 33, 43, .34);
  box-shadow: 0 12px 28px rgba(108, 19, 25, .1);
}

.affiliate-badge {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.affiliate-name {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

.affiliate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.affiliate-tags em,
.affiliate-offer {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f2ec;
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
}

.affiliate-offer {
  align-self: end;
  background: rgba(179, 33, 43, .08);
  color: var(--brand-dark);
}

.affiliate-cta {
  align-self: end;
  color: var(--forest);
  font-size: .82rem;
  font-weight: 850;
}

.affiliate-cta::after {
  content: "->";
  margin-left: 8px;
}

.quiz-section {
  padding-top: 44px;
}

.quiz-grid,
.resource-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quiz-card,
.resource-path-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 25, 23, .08);
}

.quiz-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.quiz-card:hover,
.quiz-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(179, 33, 43, .45);
  box-shadow: 0 18px 38px rgba(20, 25, 23, .14);
  outline: none;
}

.quiz-card.primary-quiz {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--forest), #244d70);
  color: white;
}

.quiz-card.primary-quiz span:not(.quiz-number) {
  color: rgba(255, 255, 255, .78);
}

.quiz-number {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .08em;
}

.primary-quiz .quiz-number {
  color: var(--gold);
}

.quiz-card strong {
  max-width: 540px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.1;
}

.quiz-card span:not(.quiz-number) {
  color: var(--muted);
}

.resource-path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-path-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.resource-path-card p {
  color: var(--muted);
}

.resource-path-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.resource-path-card a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.resource-path-card a:hover,
.resource-path-card a:focus-visible {
  border-color: rgba(179, 33, 43, .4);
  color: var(--brand-dark);
  outline: none;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.faq-card {
  display: block;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 25, 23, .06);
  scroll-margin-top: calc(var(--header-height) + 18px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.faq-card:hover,
.faq-card:focus-visible,
.faq-card:target {
  transform: translateY(-2px);
  border-color: rgba(179, 33, 43, .45);
  box-shadow: 0 18px 34px rgba(20, 25, 23, .12);
  outline: none;
}

.faq-card h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.02rem;
  line-height: 1.25;
}

.faq-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.faq-card span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.faq-card span::after {
  content: "->";
  margin-left: 8px;
}

.faq-detail-stack {
  display: grid;
  gap: 18px;
}

.faq-detail {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 25, 23, .08);
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.faq-detail:target {
  border-color: rgba(179, 33, 43, .48);
  box-shadow: 0 22px 48px rgba(20, 25, 23, .16);
}

.faq-detail h2 {
  max-width: 900px;
  font-size: clamp(1.65rem, 2.8vw, 2.7rem);
}

.faq-detail p:not(.eyebrow) {
  max-width: 940px;
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, .14);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(20, 25, 23, .1);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(179, 33, 43, .45);
  box-shadow: 0 22px 44px rgba(20, 25, 23, .16);
  outline: none;
}

.video-card img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  background: #d9ddd5;
}

.video-card strong,
.video-card span:not(.play-mark) {
  margin-inline: 18px;
}

.video-card strong {
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.video-card span:not(.play-mark) {
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--muted);
}

.play-mark {
  position: absolute;
  top: 126px;
  left: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(179, 33, 43, .94);
  box-shadow: 0 10px 26px rgba(20, 25, 23, .22);
}

.play-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-left: 15px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.pricing-table-wrap.compact {
  margin-top: 20px;
  box-shadow: none;
}

.resource-grid.expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card .eyebrow {
  margin-bottom: 8px;
}

.resource-card h3 {
  line-height: 1.25;
}

.resource-card h3,
.partner-tile strong,
.resource-path-card a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.private-lock {
  width: 15px;
  height: 12px;
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  overflow: hidden;
  color: var(--accent);
  font-size: 0;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.private-lock::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 8px;
  left: 1px;
  top: -8px;
  border: 2px solid var(--accent);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.resource-card.is-private,
.partner-tile.is-private {
  border-color: rgba(180, 51, 51, .28);
}

.policy-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.intro-panel p,
.contact-card p,
.policy-grid p {
  color: var(--muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.testimonial-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  box-shadow: 0 10px 28px rgba(23, 33, 31, .07);
}

.testimonial-summary {
  margin: 0;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.5;
}

.testimonial-head {
  display: grid;
  gap: 4px;
}

.testimonial-head strong {
  font-size: 1rem;
}

.testimonial-head span {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.3;
}

.testimonial-quote {
  margin: 0;
  padding: 14px 15px;
  border-left: 4px solid var(--brand);
  background: #fff7f6;
  color: var(--brand-dark);
  font-size: .96rem;
  line-height: 1.55;
  white-space: pre-line;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) 1.2fr;
  gap: 28px;
  align-items: stretch;
}

.intro-panel {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.program-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-program,
.program-card,
.policy-grid article,
.contact-card,
.resource-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-program {
  padding: 18px;
}

.mini-program strong {
  display: block;
  margin-bottom: 5px;
}

.mini-program span {
  color: var(--muted);
  font-size: .92rem;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 750;
}

.filter.active {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.program-card {
  display: grid;
  min-height: 315px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(23, 33, 31, .08);
}

.program-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #d8d7cf;
}

.program-card-body {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.tagline {
  color: var(--brand);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.program-card p {
  color: var(--muted);
  margin: 10px 0 16px;
}

.program-card a {
  margin-top: auto;
  color: var(--forest);
  font-weight: 850;
  text-decoration: none;
}

.split-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.section-index {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
}

#detail-tabs {
  display: grid;
  gap: 8px;
}

.detail-tab {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(255, 255, 255, .66);
  color: var(--muted);
  cursor: pointer;
  font-weight: 780;
}

.detail-tab.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.detail-surface {
  min-height: 430px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-surface header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.detail-surface header img {
  width: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.detail-surface ul {
  padding-left: 20px;
}

.detail-surface li + li {
  margin-top: 7px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pricing-controls {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin-bottom: 18px;
}

.pricing-controls label {
  font-weight: 800;
}

.pricing-controls input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: white;
}

.pricing-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 16px 38px rgba(23, 33, 31, .08);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 14px 34px rgba(23, 33, 31, .07);
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.term-table,
.reference-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td,
.term-table th,
.term-table td,
.reference-table th,
.reference-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pricing-table th,
.term-table th,
.reference-table th {
  position: sticky;
  top: 0;
  background: var(--forest);
  color: white;
}

.table-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.table-sort span {
  font-size: .8em;
  line-height: 1;
  opacity: .72;
}

.table-sort.active span {
  opacity: 1;
}

.table-sort:hover,
.table-sort:focus-visible {
  text-decoration: underline;
}

.pricing-table tbody tr:nth-child(even),
.term-table tbody tr:nth-child(even),
.reference-table tbody tr:nth-child(even) {
  background: #f3f4ee;
}

.term-table td:first-child,
.reference-table td:first-child {
  width: 190px;
  color: var(--brand-dark);
  font-weight: 850;
  text-transform: capitalize;
}

.term-table td:nth-child(2) {
  width: 220px;
}

.term-table a {
  color: var(--brand);
  text-decoration: none;
}

.term-table a:hover,
.term-table a:focus-visible {
  text-decoration: underline;
}

.reference-table a {
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}

.reference-table a:hover,
.reference-table a:focus-visible {
  text-decoration: underline;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.policy-grid article {
  padding: 20px;
}

.embed-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.embed-frame iframe {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  padding: 18px;
}

.resource-card h3 {
  margin-bottom: 10px;
}

.resource-card a {
  display: block;
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.resource-card a + a {
  margin-top: 8px;
}

.quiz-panel > header {
  align-items: center;
}

.quiz-actions {
  display: grid;
  gap: 10px;
  justify-content: flex-end;
}

.quiz-level-control {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 750;
}

.quiz-level-control select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.quiz-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.quiz-question {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.quiz-question legend {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  font-weight: 850;
  line-height: 1.35;
}

.quiz-question legend span {
  flex: 0 0 auto;
  color: var(--brand);
}

.quiz-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.quiz-choice {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 246, 240, .58);
  cursor: pointer;
}

.quiz-choice:hover,
.quiz-choice:focus-within {
  border-color: rgba(179, 33, 43, .45);
  background: #fff;
}

.quiz-choice input {
  margin-top: 4px;
  accent-color: var(--brand);
}

.quiz-choice strong {
  color: var(--brand-dark);
}

.quiz-result {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.quiz-score {
  margin-top: 26px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--forest);
  color: white;
}

.quiz-score .eyebrow,
.quiz-score p {
  color: rgba(255,255,255,.78);
}

.quiz-score strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
}

.quiz-review-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.quiz-review {
  padding: 18px;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: var(--radius);
  background: white;
}

.quiz-review.correct {
  border-left-color: #2f7d52;
}

.quiz-review.missed {
  border-left-color: var(--brand);
}

.quiz-review h3 {
  margin-bottom: 10px;
}

.quiz-review p {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) 1.1fr;
  gap: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.credential-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.credential-wall img {
  width: 100%;
  max-height: 116px;
  object-fit: contain;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbf8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 24px;
  background: var(--ink);
  color: white;
}

.site-footer div,
.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a,
.site-footer span {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
  }

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

  .quick-actions .button {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    max-width: none;
    max-height: calc(100svh - 76px);
    overflow-y: auto;
    padding: 18px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: calc(50% - 4px);
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    align-items: start;
  }

  .compact-hero {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .hero-metrics,
  .intro-grid,
  .split-section,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .resource-grid,
  .category-grid,
  .resource-grid.expanded,
  .affiliate-grid,
  .testimonial-grid,
  .quiz-grid,
  .resource-path-grid,
  .faq-grid,
  .video-grid,
  .state-curriculum-grid,
  .partner-strip,
  .policy-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-tile-featured {
    grid-column: 1 / -1;
  }

  .quiz-choice-grid {
    grid-template-columns: 1fr;
  }

  .quiz-card.primary-quiz {
    grid-column: span 2;
  }

  .split-band,
  .content-panel > header {
    grid-template-columns: 1fr;
  }

  .content-panel > header img {
    width: 100%;
  }

  .credential-photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card-grid,
  .logo-gallery,
  .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-index {
    position: static;
  }

  #detail-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-inline: 16px;
  }

  .brand img {
    width: 54px;
  }

  .brand small {
    display: none;
  }

  .hero-content,
  .section,
  .page-hero {
    padding-inline: 18px;
  }

  .hero-content {
    padding-top: 12px;
    padding-bottom: 18px;
  }

  body[data-page="home"] .hero {
    min-height: auto;
  }

  body[data-page="home"] .hero-content {
    padding-top: 4px;
    padding-bottom: 14px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    width: 100%;
  }

  .compact-hero {
    padding-top: 46px;
    padding-bottom: 24px;
  }

  .compact-hero h1 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .compact-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero .eyebrow {
    margin-bottom: 6px;
  }

  .hero-copy {
    margin-top: 14px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-metrics {
    margin-top: 28px;
  }

  body[data-page="home"] .hero-copy {
    margin-top: 10px;
  }

  body[data-page="home"] .hero-actions {
    margin-top: 14px;
  }

  body[data-page="home"] .hero-metrics {
    margin-top: 18px;
  }

  .hero-metrics,
  .program-strip,
  .program-grid,
  .policy-grid,
  .resource-grid,
  .resource-grid.expanded,
  .testimonial-grid,
  .credential-wall,
  .affiliate-grid,
  .quiz-grid,
  .resource-path-grid,
  .faq-grid,
  .video-grid,
  .state-curriculum-grid,
  .partner-strip,
  #detail-tabs,
  .category-grid,
  .info-card-grid,
  .logo-gallery,
  .image-gallery,
  .policy-grid.wide {
    grid-template-columns: 1fr;
  }

  .quiz-question {
    padding: 16px;
  }

  .quiz-choice {
    grid-template-columns: 18px 24px minmax(0, 1fr);
  }

  .quiz-card.primary-quiz {
    grid-column: auto;
  }

  .credential-photo-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px;
  }

  .credential-photo-strip figure {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 16px;
  }

  .testimonial-quote {
    font-size: .92rem;
  }

  .content-panel {
    padding: 22px;
  }

  .content-panel > header {
    gap: 16px;
  }

  .partner-tile-featured {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .site-footer nav,
  .site-footer div {
    gap: 10px;
  }

  .notice-band,
  .site-footer {
    flex-direction: column;
  }

  .detail-surface {
    padding: 22px;
  }

  .detail-surface header {
    grid-template-columns: 1fr;
  }

  .detail-surface header img {
    width: 100%;
  }
}
