.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: #17324d;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* Coherent focus-visible system: a visible ring on any keyboard-focused
   interactive element that lacks a component-specific style. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid #2E8BC0;
  outline-offset: 2px;
  border-radius: 4px;
}
main:focus { outline: none; }

/* Respect reduced-motion: no required animation. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  color-scheme: light;
  --ink: #16212f;
  --muted: #5d6979;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #dfe4ea;
  --navy: #17324d;
  --teal: #167c80;
  --coral: #c9514a;
  --gold: #c7932b;
  --green: #4f7d55;
  --sky: #e8f3f5;
  --rose: #faece8;
  --mint: #edf6ef;
  --sand: #f6efe2;
  --shadow: 0 18px 50px rgba(22, 33, 47, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.93);
  border-bottom: 1px solid rgba(22, 33, 47, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--navy);
  border-radius: 8px;
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 11px;
  color: #334155;
  font-size: 14px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--ink);
  background: #eef3f4;
}

.site-nav a:focus-visible {
  color: var(--ink);
  background: #eef3f4;
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

.hero-band {
  position: relative;
  min-height: min(720px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.86), rgba(12, 25, 38, 0.38) 58%, rgba(12, 25, 38, 0.12)),
    url("/assets/brand/bcs-hero-v2.webp");
  background-position: center;
  background-size: cover;
}

.hero-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(0deg, var(--paper), rgba(251, 250, 247, 0));
}

.hero-content {
  position: relative;
  max-width: 870px;
  padding: clamp(72px, 10vw, 130px) clamp(22px, 7vw, 88px) 96px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #aee8e3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 82px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions,
.adventure-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.icon-button,
.filter-chip,
.option-button,
.scenario-start {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 17px;
  color: var(--ink);
  font-weight: 800;
  border-radius: 8px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
}

.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(201, 81, 74, 0.26);
}

.button.secondary {
  color: #17324d;
  background: rgba(255, 255, 255, 0.92);
}

.button.ghost {
  color: var(--navy);
  background: #edf3f5;
}

.button:hover,
.option-button:hover,
.scenario-start:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.option-button:focus-visible,
.scenario-start:focus-visible,
.filter-chip:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

.intro-band,
.principles-band,
.modules-band,
.scenario-band,
.worksheets-band,
.teacher-note-band,
.pilot-band,
.resource-band,
.intake-band,
.newsletter-band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-grid,
.teacher-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.25fr);
  gap: clamp(28px, 6vw, 76px);
  max-width: 1180px;
  margin: 0 auto;
}

.intro-copy p,
.teacher-note p {
  font-size: 18px;
}

.principles-band,
.scenario-band {
  background: #fff;
}

.modules-band {
  background: linear-gradient(180deg, #f5fbfb 0%, #fbfaf7 100%);
}

.worksheets-band {
  background: #f7f0e5;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:last-child {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  font-size: 17px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.principle-card,
.module-card,
.scenario-card,
.worksheet-card {
  background: var(--surface);
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: var(--radius);
}

.principle-card {
  padding: 24px;
}

.principle-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--teal);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 16px;
  max-width: 1460px;
  margin: 0 auto;
}

.module-card {
  display: grid;
  grid-template-rows: 170px auto;
  min-height: 610px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.08);
}

.module-art {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.module-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.34));
}

.module-number {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: rgba(22, 33, 47, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.module-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}

.module-body h3 {
  font-size: 20px;
}

.module-body p {
  margin-bottom: 0;
  font-size: 14px;
}

.concept-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.concept-list li,
.concept-list span,
.scenario-tag {
  padding: 5px 8px;
  color: #24415f;
  font-size: 12px;
  font-weight: 800;
  background: #e9f4f4;
  border-radius: 999px;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.how-band,
.demo-band,
.profile-band,
.module-studio-band,
.exercise-band,
.unlock-band,
.finish-band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.how-band,
.profile-band,
.finish-band {
  background: #fff;
}

.growth-hero {
  min-height: min(680px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  padding: clamp(76px, 10vw, 130px) clamp(22px, 7vw, 88px) 84px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.growth-hero-copy {
  max-width: 830px;
}

.growth-hero h1,
.growth-hero p,
.growth-hero .eyebrow {
  color: #fff;
}

.growth-hero p {
  max-width: 730px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.teacher-pilot-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.9), rgba(12, 25, 38, 0.42) 60%, rgba(12, 25, 38, 0.14)),
    url("/assets/themes/classic.webp");
}

.lessons-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.9), rgba(22, 124, 128, 0.48) 64%, rgba(12, 25, 38, 0.18)),
    url("/assets/themes/castle.webp");
}

.scenario-help-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.9), rgba(12, 25, 38, 0.5) 62%, rgba(12, 25, 38, 0.18)),
    url("/assets/themes/island.webp");
}

.educator-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.9), rgba(22, 124, 128, 0.42) 60%, rgba(12, 25, 38, 0.16)),
    url("/assets/themes/classic.webp");
}

.pilot-band,
.intake-band {
  background: #fff;
}

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

.pilot-card,
.lesson-card,
.fit-grid article,
.scenario-form,
.helper-panel,
.quote-box {
  background: var(--surface);
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.06);
}

.pilot-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 250px;
  padding: 22px;
}

.pilot-card span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--teal);
  border-radius: 8px;
}

.pilot-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.pilot-card small {
  align-self: end;
  color: var(--coral);
  font-weight: 900;
}

.resource-band {
  background: #fbfaf7;
}

.resource-band.alt {
  background: #f1f8f8;
}

.mental-skills-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.9), rgba(22, 124, 128, 0.5) 62%, rgba(12, 25, 38, 0.18)),
    url("/assets/mental-skills/lunch-table-first-week.webp");
}

.safety-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 72px);
  color: #24364c;
  background: #fff8df;
  border-block: 1px solid #ead99a;
}

.safety-strip div {
  max-width: 980px;
  line-height: 1.55;
}

.safety-strip strong {
  color: #7a3a28;
}

.safety-strip a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 12px;
  color: #ffffff;
  font-weight: 900;
  background: var(--coral);
  border-radius: 8px;
}

.mental-focus-grid,
.curriculum-grid,
.prompt-grid,
.section-plan-grid,
.source-grid {
  display: grid;
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

.mental-focus-grid {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
}

.curriculum-grid {
  grid-template-columns: repeat(4, minmax(230px, 1fr));
}

.prompt-grid,
.section-plan-grid,
.source-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.mental-focus-grid article,
.curriculum-card,
.prompt-card,
.section-plan-grid article,
.transition-list article,
.review-panel,
.source-grid a {
  background: var(--surface);
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.06);
}

.mental-focus-grid article,
.curriculum-card,
.section-plan-grid article,
.transition-list article,
.review-panel,
.source-grid a {
  padding: 22px;
}

.mental-focus-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 270px;
}

.mental-focus-grid svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.mental-focus-grid p,
.curriculum-card p,
.section-plan-grid p,
.transition-list p,
.review-panel p,
.source-grid span {
  margin-bottom: 0;
  font-size: 14px;
}

.mental-focus-grid small {
  align-self: end;
  color: var(--coral);
  font-weight: 900;
  line-height: 1.45;
}

.curriculum-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 380px;
}

.skill-module-list {
  display: grid;
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.skill-module-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(420px, 0.58fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(22, 33, 47, 0.08);
}

.skill-module-visual {
  min-height: 330px;
}

.image-visual {
  background: #dfe9ec;
}

.image-visual img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.skill-module-content {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(24px, 4vw, 38px);
}

.module-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-module-content h3 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 34px);
}

.module-summary {
  margin-bottom: 0;
  font-size: 17px;
}

.module-columns {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.82fr);
  gap: 14px;
  margin-top: 6px;
}

.module-columns div {
  padding: 16px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.module-columns strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.module-columns ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #455466;
  line-height: 1.55;
}

.module-columns p {
  margin-bottom: 0;
  font-size: 14px;
}

.module-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.mental-start-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  max-width: 640px;
  margin-top: 18px;
}

.mental-start-links a {
  min-width: 0;
  padding: 10px 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
  background: #ffffff;
  border: 1px solid #d9e4e8;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(22, 33, 47, 0.05);
}

.mental-start-links a:hover {
  color: #ffffff;
  background: var(--teal);
}

.mental-start-links a:focus-visible {
  color: #ffffff;
  background: var(--teal);
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

.mental-module-page {
  background: #f6f8fa;
}

.mental-module-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(320px, 0.42fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
  padding: clamp(52px, 8vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(17, 30, 43, 0.96), rgba(22, 124, 128, 0.84)),
    url("/assets/mental-skills/group-chat-pause.webp");
  background-position: center;
  background-size: cover;
}

.mental-module-hero-copy {
  display: grid;
  gap: 14px;
  align-content: center;
  max-width: 780px;
  color: #fff;
}

.mental-module-hero-copy h1,
.mental-module-hero-copy p,
.mental-module-hero-copy .eyebrow {
  color: #fff;
}

.mental-module-hero-copy > p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  color: #aee8e3;
  font-weight: 900;
}

.back-link svg {
  width: 17px;
  height: 17px;
}

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

.mental-module-meta span {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-height: 62px;
  padding: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.mental-module-meta svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.mental-module-hero-art {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mental-module-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.mental-module-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.28fr) minmax(0, 0.72fr);
  gap: 18px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 76px) clamp(18px, 5vw, 72px);
}

.mental-module-sidebar {
  position: sticky;
  top: 92px;
}

.mental-module-nav {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 33, 47, 0.06);
}

.mental-module-nav a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  background: #f7fafb;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
}

.mental-module-nav a.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.mental-module-nav span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 7px;
}

.mental-module-nav a.active span {
  color: var(--navy);
  background: #fff;
}

.mental-module-article {
  display: grid;
  gap: 18px;
}

.mental-lesson-block,
.mental-practice-panel,
.mental-check-card,
.mental-reflection-card,
.facilitator-note {
  padding: clamp(22px, 4vw, 34px);
  background: #ffffff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 33, 47, 0.06);
}

.scenario-block {
  background: #eef8f8;
}

.mental-lesson-block p:last-child,
.facilitator-note p:last-child {
  margin-bottom: 0;
}

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

.lesson-piece-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.lesson-piece-grid article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--teal);
  border-radius: 8px;
}

.lesson-piece-grid h3 {
  margin-bottom: 0;
  font-size: 19px;
}

.lesson-piece-grid p,
.lesson-piece-grid li {
  font-size: 14px;
}

.lesson-piece-grid ul,
.mental-practice-panel ol,
.mental-reflection-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #455466;
  line-height: 1.6;
}

.mental-practice-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
  background: #fff8df;
  border-color: #ead99a;
}

.mental-check-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.check-options {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.check-options div {
  padding: 12px;
  color: #334155;
  font-weight: 800;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.check-options div.correct {
  color: #123f42;
  background: #e7f6f4;
  border-color: #9fd3ce;
}

.mental-next-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.diagram-visual {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 18% 18%, rgba(22, 124, 128, 0.16), transparent 28%),
    linear-gradient(135deg, #eff8f8, #fffaf0);
}

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

.worry-sorter div {
  display: grid;
  min-height: 118px;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: var(--navy);
  border-radius: 8px;
}

.worry-sorter div:nth-child(2) {
  background: var(--teal);
}

.worry-sorter div:nth-child(3) {
  background: var(--coral);
}

.worry-sorter div:nth-child(4) {
  background: var(--green);
}

.thought-ladder {
  grid-template-columns: 1fr;
  justify-items: stretch;
}

.thought-ladder span {
  position: relative;
  min-height: 54px;
  padding: 15px 18px;
  color: #17324d;
  font-weight: 900;
  background: #ffffff;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(22, 33, 47, 0.06);
}

.thought-ladder span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -13px;
  width: 4px;
  height: 13px;
  background: var(--gold);
}

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

.reset-menu span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 15px;
  color: var(--navy);
  font-weight: 900;
  background: #ffffff;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
}

.reset-menu span:last-child {
  grid-column: 1 / -1;
  justify-content: center;
  color: #fff;
  background: var(--teal);
}

.reset-menu svg {
  width: 22px;
  height: 22px;
}

.values-compass {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  place-items: center;
  min-height: 330px;
}

.values-compass .compass-core {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  padding: 12px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  background: var(--navy);
  border: 6px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(22, 33, 47, 0.18);
}

.values-compass span {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--teal);
  border-radius: 50%;
}

.values-compass span:nth-of-type(2) {
  background: var(--coral);
}

.values-compass span:nth-of-type(3) {
  background: var(--green);
}

.values-compass span:nth-of-type(4) {
  background: var(--gold);
}

.curriculum-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--navy);
  border-radius: 8px;
}

.curriculum-card h3,
.section-plan-grid h3,
.transition-list strong,
.review-panel h3,
.source-grid strong {
  color: var(--navy);
}

.transition-list {
  display: grid;
  gap: 12px;
}

.transition-list article {
  display: grid;
  gap: 6px;
}

.prompt-card {
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
}

.prompt-card span {
  width: fit-content;
  margin: 20px 20px 0;
  padding: 5px 8px;
  color: #24415f;
  font-size: 12px;
  font-weight: 900;
  background: #e9f4f4;
  border-radius: 999px;
}

.prompt-card h3 {
  margin: 0 20px;
  color: var(--navy);
  font-size: 20px;
}

.prompt-card pre {
  min-height: 280px;
  max-height: 420px;
  margin: 0;
  padding: 18px 20px 20px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #304256;
  background: #f7f9fb;
  border-top: 1px solid #e1e8ee;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.review-panel {
  display: grid;
  gap: 14px;
}

.review-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #455466;
  line-height: 1.6;
}

.source-grid a {
  display: grid;
  gap: 8px;
  min-height: 155px;
}

.source-grid a:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 124, 128, 0.36);
}

.source-grid a:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid #ffd166;
  outline-offset: 2px;
  border-color: rgba(22, 124, 128, 0.36);
}

.source-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.fit-grid,
.lesson-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 16px;
}

.resource-layout .fit-grid {
  grid-template-columns: repeat(2, minmax(210px, 1fr));
}

.fit-grid article,
.lesson-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 220px;
  padding: 22px;
}

.fit-grid svg {
  width: 32px;
  height: 32px;
  color: var(--teal);
}

.fit-grid p,
.lesson-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.lesson-card span {
  width: fit-content;
  padding: 5px 8px;
  color: #24415f;
  font-size: 12px;
  font-weight: 900;
  background: #e9f4f4;
  border-radius: 999px;
}

.lesson-card h3 {
  font-size: 21px;
}

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

.lesson-card:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

.lesson-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.lesson-article-hero {
  margin-bottom: 36px;
}

.lesson-article-hero h1 {
  max-width: 840px;
  color: var(--ink);
}

.lesson-article-hero p {
  max-width: 780px;
  font-size: 19px;
}

.lesson-article-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.48fr);
  gap: 18px;
  align-items: start;
}

.quote-box {
  padding: 22px;
  background: #f0f7f7;
}

.quote-box strong {
  color: var(--teal);
}

.quote-box p {
  margin: 10px 0 0;
  color: #25405c;
  font-weight: 700;
}

.lesson-steps {
  margin-top: 30px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
}

.lesson-steps ol,
.helper-panel ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.lesson-steps li,
.helper-panel li {
  padding-left: 6px;
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.48fr);
  gap: 18px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.intake-band.alt {
  background: #f1f8f8;
}

.invite-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(320px, 0.48fr);
  gap: 18px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.scenario-form,
.helper-panel {
  padding: clamp(24px, 4vw, 38px);
}

.scenario-form label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #314256;
  font-size: 14px;
  font-weight: 800;
}

.scenario-form input,
.scenario-form select,
.scenario-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.scenario-form textarea {
  resize: vertical;
}

.invite-output {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.invite-output strong {
  color: var(--navy);
  font-size: 13px;
}

.invite-output p {
  overflow-wrap: anywhere;
  margin: 0;
  color: #314256;
  font-size: 14px;
}

.scenario-form .check-label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.scenario-form .check-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.qr-panel {
  display: grid;
  gap: 14px;
}

.qr-frame {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 18px;
  background: #f7f9fb;
  border: 1px dashed #c8d5df;
  border-radius: 8px;
}

.qr-frame img {
  width: min(100%, 260px);
  height: auto;
}

.qr-frame span {
  color: var(--muted);
  font-weight: 800;
}

.newsletter-band {
  background: #f6efe2;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 0.72fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.06);
}

.newsletter-panel h2 {
  max-width: 660px;
}

.newsletter-form {
  display: grid;
  gap: 13px;
}

.newsletter-form label {
  display: grid;
  gap: 7px;
  color: #314256;
  font-size: 14px;
  font-weight: 800;
}

.newsletter-form input,
.newsletter-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.newsletter-form .check-label {
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 700;
  line-height: 1.45;
}

.newsletter-form .check-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

.how-step {
  min-height: 260px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 33, 47, 0.06);
}

.how-step span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 900;
  background: var(--teal);
  border-radius: 8px;
}

.how-step h3 {
  font-size: 20px;
}

.how-step p {
  margin-bottom: 0;
  font-size: 14px;
}

.prize-step {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.prize-step h3,
.prize-step p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.prize-step img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 48%;
  object-fit: cover;
  opacity: 0.34;
}

.legal-note {
  max-width: 980px;
  margin: 22px auto 0;
  padding: 14px 16px;
  color: #5d4b22;
  background: #fff8df;
  border: 1px solid #ead99a;
  border-radius: 8px;
  font-size: 14px;
}

.demo-band {
  background:
    linear-gradient(120deg, rgba(23, 50, 77, 0.94), rgba(22, 124, 128, 0.88)),
    url("/assets/themes/spycraft.webp");
  background-position: center;
  background-size: cover;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.demo-copy,
.demo-copy p,
.demo-copy .eyebrow,
.demo-copy h2 {
  color: #fff;
}

.demo-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.demo-card {
  min-height: 440px;
  padding: clamp(20px, 3.4vw, 34px);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mini-graphic {
  min-height: 118px;
  padding: 13px;
  background: #f6f8fa;
  border: 1px solid #e3e8ed;
  border-radius: 8px;
}

.decision-map {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  gap: 8px;
  align-items: center;
}

.decision-node {
  min-height: 70px;
  padding: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
}

.decision-node.alt {
  background: var(--coral);
}

.decision-arrow {
  height: 4px;
  background: var(--gold);
}

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

.payoff-cell {
  min-height: 42px;
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 7px;
}

.trust-line {
  display: grid;
  gap: 8px;
}

.trust-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.trust-dot {
  width: 18px;
  height: 18px;
  background: var(--green);
  border-radius: 50%;
}

.signal-bars {
  display: grid;
  gap: 8px;
}

.signal-bar {
  height: 16px;
  overflow: hidden;
  background: #dbe3e9;
  border-radius: 999px;
}

.signal-bar span {
  display: block;
  height: 100%;
  background: var(--gold);
}

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

.norm-tile {
  min-height: 56px;
  padding: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: var(--navy);
  border-radius: 8px;
}

.norm-tile:nth-child(2) {
  background: var(--teal);
}

.norm-tile:nth-child(3) {
  background: var(--coral);
}

.adventure-band {
  padding: clamp(58px, 8vw, 106px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(23, 50, 77, 0.95), rgba(22, 124, 128, 0.86)),
    url("/assets/themes/spycraft.webp");
  background-position: center;
  background-size: cover;
}

.adventure-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.adventure-intro,
.adventure-intro p,
.adventure-intro .eyebrow {
  color: #fff;
}

.adventure-intro h2 {
  color: #fff;
}

.adventure-intro p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.rank-panel {
  display: grid;
  gap: 14px;
  max-width: 430px;
  margin-top: 28px;
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.rank-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rank-meter {
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.rank-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: #ffd166;
  border-radius: 999px;
  transition: width 260ms ease;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.adventure-card {
  min-height: 540px;
  padding: clamp(20px, 3.4vw, 34px);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.adventure-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#scenarioText {
  min-height: 92px;
  color: #3f4b5b;
  font-size: 18px;
}

.option-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.option-button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: #f7f9fb;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.option-button .letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--navy);
  border-radius: 7px;
}

.option-button.selected {
  border-color: var(--teal);
  background: #e9f6f5;
}

.feedback-box {
  min-height: 92px;
  padding: 14px 16px;
  color: #25405c;
  background: #f0f7f7;
  border: 1px solid #c8e5e5;
  border-radius: 8px;
}

.feedback-box strong {
  color: var(--teal);
}

.adventure-controls {
  justify-content: space-between;
}

.filter-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto 24px;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 13px;
  color: #385064;
  font-weight: 800;
  background: #edf3f5;
  border-radius: 999px;
}

.filter-chip.active {
  color: #fff;
  background: var(--navy);
}

.scenario-grid,
.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

.scenario-card,
.worksheet-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(22, 33, 47, 0.06);
}

.scenario-card h3,
.worksheet-card h3 {
  font-size: 20px;
}

.scenario-card p,
.worksheet-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.scenario-start {
  align-self: end;
  width: fit-content;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  font-weight: 800;
  background: var(--teal);
  border-radius: 8px;
}

.worksheet-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
}

.worksheet-icon svg {
  width: 25px;
  height: 25px;
}

.teacher-note {
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(22, 33, 47, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #d8e3ea;
  background: #111e2b;
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
  color: #aebdca;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 4px;
}

.course-page {
  background: #f6f8fa;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.96fr) minmax(320px, 0.74fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: stretch;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(17, 30, 43, 0.92), rgba(22, 124, 128, 0.78)),
    url("/assets/themes/classic.webp");
  background-position: center;
  background-size: cover;
}

.course-hero-copy {
  max-width: 760px;
  color: #fff;
}

.course-hero-copy .eyebrow,
.course-hero-copy h1,
.course-hero-copy p {
  color: #fff;
}

.course-hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

.course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.course-stats span {
  padding: 9px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.prize-card {
  display: grid;
  grid-template-rows: 240px auto;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.prize-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-card div {
  padding: 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(360px, 1.28fr);
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
}

.profile-card,
.preference-panel,
.lesson-panel,
.course-sidebar,
.exercise-card,
.finish-card {
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.06);
}

.profile-card,
.preference-panel {
  padding: clamp(22px, 3vw, 32px);
}

.profile-card label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #314256;
  font-size: 14px;
  font-weight: 800;
}

.profile-card input {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.profile-card .check-label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-card .check-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.profile-card .button {
  margin-top: 18px;
}

.terms-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.media-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 210px;
  overflow: hidden;
  padding: 14px;
  color: #fff;
  text-align: left;
  background: #172437;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.media-card:hover img,
.media-card:focus-visible img {
  transform: scale(1.04);
}

.media-card:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

.media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(8, 18, 31, 0.82));
}

.media-card strong,
.media-card small {
  position: relative;
  z-index: 1;
}

.media-card strong {
  font-size: 16px;
}

.media-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
}

.media-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
  border-radius: 8px;
}

.media-check svg {
  width: 18px;
  height: 18px;
}

.media-card.selected .media-check {
  background: var(--teal);
}

.module-studio-band {
  background: #f6f8fa;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(500px, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.course-sidebar {
  align-self: start;
  padding: 18px;
}

.course-sidebar h3 {
  margin-bottom: 14px;
}

.course-map {
  display: grid;
  gap: 10px;
}

.course-map-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.course-map-item.active {
  border-color: var(--teal);
  background: #eef8f8;
}

.course-map-main {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  width: 100%;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.course-map-main span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--navy);
  border-radius: 8px;
}

.course-map-main small,
.module-link-note {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.course-map-exercise {
  min-height: 36px;
  color: #fff;
  font-weight: 800;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.course-map-exercise:disabled {
  color: #64748b;
  background: #e2e8f0;
  cursor: not-allowed;
}

.lesson-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(320px, 0.58fr);
  min-height: 620px;
  overflow: hidden;
}

.lesson-art {
  min-height: 100%;
  background-position: center;
  background-size: cover;
}

.lesson-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 4vw, 38px);
}

.lesson-content .concept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
}

.lesson-box {
  padding: 18px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.lesson-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #455466;
  line-height: 1.6;
}

.lesson-actions,
.exercise-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.exercise-band {
  background:
    linear-gradient(120deg, rgba(23, 50, 77, 0.95), rgba(79, 125, 85, 0.84)),
    url("/assets/themes/spycraft.webp");
  background-position: center;
  background-size: cover;
}

.exercise-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.08fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.exercise-shell.in-progress {
  grid-template-columns: minmax(220px, 0.42fr) minmax(620px, 1.28fr);
  max-width: 1380px;
}

.exercise-shell.in-progress .exercise-intro h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.exercise-shell.in-progress #exerciseIntroText {
  display: none;
}

.exercise-intro,
.exercise-intro p,
.exercise-intro .eyebrow,
.exercise-intro h2 {
  color: #fff;
}

.exercise-intro p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.rank-panel.light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.4);
}

.rank-panel.light .rank-label {
  color: var(--muted);
}

.rank-panel.light .rank-meter {
  background: #e2e8f0;
}

.rank-panel.light .score-row {
  color: var(--ink);
}

.icon-button.dark {
  color: #fff;
  background: var(--navy);
}

.exercise-card {
  min-height: 700px;
  padding: clamp(20px, 3.4vw, 34px);
}

.exercise-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#exerciseText {
  min-height: 116px;
  color: #3f4b5b;
  font-size: 17px;
  line-height: 1.65;
}

.exercise-score-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.score-tile {
  min-height: 76px;
  padding: 10px 12px;
  background: #f7f9fb;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.score-tile strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.1;
}

.score-tile span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-tile small {
  color: #64748b;
  font-size: 12px;
}

.score-tile.original {
  border-color: #d7c18b;
  background: #fff8df;
}

.score-tile.learning {
  border-color: #b7dbc9;
  background: #eef8f0;
}

.score-tile.bonus {
  border-color: #ccd7ed;
  background: #f0f5ff;
}

.scenario-comic {
  display: block;
  width: 100%;
  max-height: 310px;
  margin-bottom: 18px;
  object-fit: cover;
  border: 1px solid #dce3ea;
  border-radius: 8px;
}

.scenario-comic[hidden] {
  display: none;
}

.overview-facts,
.score-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.score-summary .score-tile {
  min-height: 116px;
}

.score-summary .score-tile.bonus {
  grid-column: 1 / -1;
}

.option-button.locked {
  cursor: pointer;
}

.option-button.is-correct {
  border-color: #1f8a5b;
  background: #edf9f1;
}

.option-button.is-incorrect {
  border-color: #d46b62;
  background: #fff1ef;
}

.option-button.is-partial {
  border-color: #d2a844;
  background: #fff8df;
}

.option-button.reviewing {
  box-shadow: inset 0 0 0 2px rgba(22, 124, 128, 0.55);
}

.option-button .answer-copy {
  display: grid;
  gap: 5px;
}

.answer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.answer-badge {
  width: fit-content;
  padding: 3px 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
}

.answer-badge.correct {
  background: #1f8a5b;
}

.answer-badge.incorrect {
  background: #c9514a;
}

.answer-badge.partial {
  background: #b38124;
}

.answer-badge.original {
  background: var(--navy);
}

.answer-badge.reviewing {
  background: var(--teal);
}

.feedback-box.correct {
  color: #134d34;
  background: #edf9f1;
  border-color: #a7d8bb;
}

.feedback-box.incorrect {
  color: #7c2f28;
  background: #fff1ef;
  border-color: #efb5ad;
}

.feedback-box.partial {
  color: #725216;
  background: #fff8df;
  border-color: #ead48a;
}

.feedback-box.info {
  color: #25405c;
  background: #f0f7f7;
  border-color: #c8e5e5;
}

.overview-facts span,
.score-summary span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  color: #25405c;
  font-size: 13px;
  font-weight: 800;
  background: #edf7f7;
  border: 1px solid #cfe6e6;
  border-radius: 8px;
}

.overview-facts svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.unlock-band {
  background: #fff;
}

.unlock-status {
  max-width: 920px;
  margin: 0 auto 20px;
  padding: 16px;
  color: #25405c;
  background: #eef8f8;
  border: 1px solid #cfe6e6;
  border-radius: 8px;
}

.culture-grid {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
}

.culture-practice {
  min-height: 240px;
}

.finish-band {
  background: #f7f0e5;
}

.finish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
}

.finish-card p {
  max-width: 720px;
}

.terms-hero {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(17, 30, 43, 0.95), rgba(22, 124, 128, 0.82)),
    url("/assets/themes/superhero.webp");
  background-position: center;
  background-size: cover;
}

.terms-hero h1,
.terms-hero p,
.terms-hero .eyebrow {
  color: #fff;
}

.terms-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.terms-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.terms-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
}

.terms-nav a {
  padding: 9px 10px;
  color: #334155;
  font-weight: 800;
  background: #f7f9fb;
  border-radius: 8px;
}

.terms-content {
  display: grid;
  gap: 18px;
}

.terms-content section {
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
}

.terms-content h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.terms-content h3 {
  margin-top: 18px;
  font-size: 18px;
}

.terms-content li {
  margin-bottom: 8px;
  color: #455466;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .module-grid,
  .scenario-grid,
  .worksheet-grid,
  .media-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .module-card {
    min-height: 560px;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-band {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 76px;
  }

  .intro-grid,
  .teacher-note,
  .adventure-shell,
  .demo-shell,
  .course-hero,
  .profile-grid,
  .course-layout,
  .lesson-panel,
  .exercise-shell,
  .exercise-shell.in-progress,
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .principle-grid,
  .module-grid,
  .scenario-grid,
  .worksheet-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-art {
    min-height: 260px;
  }

  .course-sidebar {
    order: 2;
  }

  .lesson-panel {
    order: 1;
  }

  .terms-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 42%;
    text-align: center;
    background: #eef3f4;
  }

  .hero-band {
    min-height: 720px;
  }

  .hero-photo {
    background-position: 68% center;
  }

  .hero-content {
    padding: 70px 18px 76px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-copy,
  .intro-copy p,
  .teacher-note p,
  .adventure-intro p,
  #scenarioText {
    font-size: 16px;
  }

  .principle-grid,
  .module-grid,
  .scenario-grid,
  .worksheet-grid,
  .how-grid,
  .media-grid,
  .overview-facts,
  .score-summary {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: auto;
  }

  .module-art {
    min-height: 190px;
  }

  .adventure-card {
    min-height: 600px;
  }

  .adventure-controls {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .adventure-controls .button,
  .lesson-actions .button,
  .exercise-controls .button,
  .finish-card .button {
    width: 100%;
  }

  .lesson-actions,
  .exercise-controls,
  .finish-card {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .course-hero {
    padding-top: 44px;
  }

  .course-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .exercise-score-strip {
    grid-template-columns: 1fr;
  }

  .scenario-comic {
    max-height: 220px;
  }

  .media-card {
    min-height: 230px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* Theme-first course flow */
.flow-page {
  min-width: 0;
  background: #f6f8fa;
}

.theme-header .site-nav a.active {
  color: #fff;
  background: var(--navy);
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px 6px 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  background: #eef3f4;
  border-radius: 8px;
}

.theme-switcher select {
  max-width: 190px;
  min-height: 38px;
  padding: 4px 30px 4px 8px;
  color: var(--ink);
  font-weight: 800;
  background: #fff;
  border: 1px solid #cfdae3;
  border-radius: 7px;
}

.theme-hero,
.course-map-hero,
.finish-hero {
  min-height: min(560px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  padding: clamp(70px, 10vw, 132px) clamp(18px, 6vw, 82px);
  color: #fff;
  background-position: center;
  background-size: cover;
}

.course-map-hero,
.finish-hero {
  min-height: 430px;
}

.theme-hero-copy {
  max-width: 780px;
}

.theme-hero-copy h1,
.theme-hero-copy p,
.theme-hero-copy .eyebrow {
  color: #fff;
}

.theme-hero-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 7vw, 72px);
}

.theme-hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 18px;
}

.theme-picker-band,
.map-band,
.finish-flow-band {
  padding: clamp(54px, 8vw, 94px) clamp(18px, 5vw, 72px);
}

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
  max-width: 1380px;
  margin: 0 auto;
}

.theme-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 390px;
  overflow: hidden;
  padding: 18px;
  color: #fff;
  text-align: left;
  background: #111e2b;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(17, 30, 43, 0.14);
}

.theme-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.theme-card:hover img,
.theme-card:focus-visible img {
  transform: scale(1.04);
}

.theme-card:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 3px;
}

.theme-card.selected {
  border-color: var(--theme-accent, var(--teal));
}

.theme-card strong,
.theme-card small,
.theme-card p {
  position: relative;
  z-index: 1;
}

.theme-card strong {
  font-size: 21px;
}

.theme-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 900;
}

.theme-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.45;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 18px;
  padding: 9px 13px;
  color: #fff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(560px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.course-module-list {
  display: grid;
  gap: 12px;
}

.path-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-left: 5px solid #d7e1e8;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 33, 47, 0.06);
}

.path-card.done {
  border-left-color: var(--theme-accent, var(--teal));
}

.path-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--navy);
  border-radius: 8px;
}

.path-card h3 {
  margin-bottom: 5px;
  font-size: 21px;
}

.path-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.path-scenario {
  margin-top: 8px;
  color: #4c5d70;
}

.path-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.48;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.module-reader {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(480px, 0.56fr);
  min-height: calc(100vh - 70px);
}

.module-side {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 620px;
  padding: clamp(34px, 6vw, 76px);
  color: #fff;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.module-side::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, rgba(17, 30, 43, 0.86), rgba(17, 30, 43, 0.3));
}

.module-side-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-side-content {
  position: relative;
  z-index: 1;
}

.module-side h1,
.module-side p,
.module-side .eyebrow {
  color: #fff;
}

.module-side h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.mentor-note {
  margin-top: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.mentor-note span {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
}

.mentor-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.module-lesson {
  display: grid;
  align-content: center;
  min-height: 620px;
  padding: clamp(34px, 6vw, 76px);
  background: #fff;
}

.lesson-progress,
.worksheet-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lesson-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lesson-progress a,
.worksheet-top a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.story-intro h2 {
  max-width: 760px;
  font-size: clamp(32px, 4.6vw, 56px);
}

.story-paragraphs {
  display: grid;
  gap: 15px;
  max-width: 780px;
}

.story-paragraphs p {
  margin-bottom: 0;
  color: #3f4b5b;
  font-size: 18px;
  line-height: 1.7;
}

.module-lesson h2 {
  max-width: 760px;
  font-size: clamp(32px, 4.6vw, 56px);
}

.module-lesson > p {
  max-width: 760px;
  font-size: 18px;
}

.lesson-bullets {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 16px 0 22px;
}

.lesson-example {
  max-width: 760px;
  margin-top: 18px;
  padding: 16px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-left: 5px solid var(--theme-accent, var(--teal));
  border-radius: 8px;
}

.lesson-example span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-example p {
  margin-bottom: 0;
  color: #34465a;
}

.lesson-takeaways {
  max-width: 760px;
  margin-top: 16px;
  padding: 16px;
  background: #fff8df;
  border: 1px solid #ead99a;
  border-radius: 8px;
}

.lesson-takeaways h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.lesson-takeaways .lesson-bullets {
  margin: 0;
}

.lesson-takeaways .lesson-bullets div {
  background: #fffdf4;
}

body.has-bottom-progress {
  padding-bottom: 172px;
}

.bottom-progress {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  padding: 12px clamp(14px, 3vw, 34px) 14px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(22, 33, 47, 0.13);
  box-shadow: 0 -16px 38px rgba(17, 30, 43, 0.14);
  backdrop-filter: blur(16px);
}

.bottom-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1380px;
  margin: 0 auto 9px;
}

.bottom-progress-meta span {
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bottom-progress-meta strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.bottom-progress-meta small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  background: var(--coral);
  border-radius: 999px;
}

.time-pill svg {
  width: 16px;
  height: 16px;
}

.bottom-progress-line {
  max-width: 1380px;
  height: 5px;
  margin: 0 auto 10px;
  overflow: hidden;
  background: #dfe8ed;
  border-radius: 999px;
}

.bottom-progress-line span {
  display: block;
  height: 100%;
  background: var(--theme-accent, var(--teal));
  border-radius: 999px;
  transition: width 180ms ease;
}

.bottom-progress-modules {
  display: flex;
  gap: 9px;
  max-width: 1380px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.progress-module {
  flex: 1 1 0;
  min-width: 160px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  color: var(--ink);
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.progress-module.active {
  border-color: var(--theme-accent, var(--teal));
  background: #eef8f8;
}

.progress-module.done {
  background: #f0f7f1;
}

.major-tick {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: #94a3b8;
  border-radius: 8px;
}

.progress-module.active .major-tick,
.progress-module.done .major-tick {
  background: var(--theme-accent, var(--teal));
}

.module-label {
  min-width: 0;
  overflow: hidden;
  color: #26384c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
  white-space: normal;
}

.minor-ticks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(30px, 1fr));
  gap: 4px;
}

.minor-tick {
  min-height: 20px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  background: #e6edf3;
  border-radius: 999px;
}

.minor-tick.done {
  color: #fff;
  background: #6ca373;
}

.minor-tick.active {
  color: #fff;
  background: var(--coral);
}

.lesson-bullets div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  color: #314256;
  font-weight: 800;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.lesson-bullets svg {
  width: 20px;
  height: 20px;
  color: var(--theme-accent, var(--teal));
}

.worksheet-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(520px, 0.56fr);
  min-height: calc(100vh - 70px);
  background: #f2f5f7;
}

.worksheet-art {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  min-height: 620px;
  padding: clamp(18px, 3vw, 32px);
  background: #111e2b;
}

.worksheet-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.worksheet-panel {
  display: grid;
  align-content: center;
  min-height: 620px;
  padding: clamp(24px, 5vw, 64px);
  background: #fff;
}

.worksheet-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4.6vw, 58px);
}

.worksheet-panel h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3.2vw, 34px);
}

.worksheet-panel > p {
  max-width: 820px;
  font-size: 17px;
}

.worksheet-actions,
.finish-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.practice-handoff {
  margin-top: 22px;
  padding: 20px;
  background: #eef8f8;
  border: 1px solid #9fd3ce;
  border-radius: 12px;
}

.practice-handoff[hidden],
#finishWorksheet[hidden],
#unitCheckFinish[hidden] {
  display: none !important;
}

.practice-handoff:focus {
  outline: 3px solid #2e8bc0;
  outline-offset: 3px;
}

.practice-handoff h2 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 30px);
}

.practice-handoff p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.practice-handoff-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.finish-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(330px, 0.48fr);
  gap: 18px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
}

.finish-summary,
.entry-card {
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.06);
}

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

.finish-module-list {
  display: grid;
  gap: 8px;
}

.finish-module-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  background: #f7f9fb;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.finish-module-row span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: #94a3b8;
  border-radius: 8px;
}

.finish-module-row.complete span {
  background: var(--theme-accent, var(--teal));
}

.finish-module-row small {
  color: var(--muted);
  font-weight: 800;
}

.entry-card label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #314256;
  font-size: 14px;
  font-weight: 800;
}

.entry-card input {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.entry-card .check-label {
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 700;
  line-height: 1.45;
}

.entry-card .check-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.entry-card .button {
  width: 100%;
  margin-top: 16px;
}

.prize-preview {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 10px;
  padding: 10px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.prize-preview img {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border-radius: 7px;
}

.prize-preview strong,
.prize-preview small {
  display: block;
}

.prize-preview small {
  margin-top: 5px;
  color: var(--muted);
}

.quote-band {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
  background: #ffffff;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.quote-card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 33, 47, 0.06);
}

.quote-card.parent {
  border-top-color: var(--coral);
}

.quote-card.teacher {
  border-top-color: var(--gold);
}

.quote-card span,
.quote-strip span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 800;
  line-height: 1.32;
}

.quote-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #dfe8ed;
  border-bottom: 1px solid #dfe8ed;
}

.quote-strip div {
  min-height: 138px;
  padding: clamp(18px, 3vw, 28px);
  background: #ffffff;
}

.quote-strip p {
  max-width: 440px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.38;
}

.legal-callout {
  padding: 18px;
  margin-bottom: 20px;
  background: #eef8f8;
  border: 1px solid #cfe6e6;
  border-radius: 8px;
}

.legal-callout.warning {
  color: #5d4b22;
  background: #fff8df;
  border-color: #ead99a;
}

.legal-callout p {
  margin: 7px 0 0;
  color: inherit;
}

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

.legal-grid div {
  min-height: 112px;
  padding: 14px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.legal-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-grid strong {
  color: var(--ink);
  line-height: 1.35;
}

.legal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.terms-content,
.terms-content section,
.terms-nav,
.legal-table-wrap {
  min-width: 0;
}

.legal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dfe8ed;
}

.legal-table th {
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.terms-content a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1180px) {
  .theme-card-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }

  .module-grid,
  .pilot-grid,
  .fit-grid,
  .lesson-card-grid,
  .mental-focus-grid,
  .curriculum-grid,
  .prompt-grid,
  .section-plan-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .path-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .path-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .theme-switcher {
    width: 100%;
  }

  .theme-switcher select {
    flex: 1;
    max-width: none;
  }

  .theme-card-grid,
  .map-shell,
  .module-reader,
  .mental-module-hero,
  .mental-module-body,
  .worksheet-stage,
  .finish-grid,
  .resource-layout,
  .skill-module-card,
  .lesson-article-grid,
  .intake-layout,
  .invite-layout,
  .newsletter-panel {
    grid-template-columns: 1fr;
  }

  .quote-grid,
  .quote-strip,
  .legal-grid,
  .pilot-grid,
  .fit-grid,
  .lesson-card-grid,
  .mental-focus-grid,
  .curriculum-grid,
  .prompt-grid,
  .section-plan-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .safety-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .safety-strip a {
    width: fit-content;
  }

  .resource-layout .fit-grid {
    grid-template-columns: 1fr;
  }

  .skill-module-visual,
  .image-visual img {
    min-height: 260px;
  }

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

  .mental-start-links {
    grid-template-columns: 1fr;
  }

  .mental-module-sidebar {
    position: static;
  }

  .mental-module-meta,
  .lesson-piece-grid,
  .mental-practice-panel,
  .mental-check-grid {
    grid-template-columns: 1fr;
  }

  .mental-module-hero-art,
  .mental-module-hero-art img {
    min-height: 300px;
  }

  .module-reader,
  .worksheet-stage {
    min-height: auto;
  }

  .module-side,
  .module-lesson,
  .worksheet-panel {
    min-height: auto;
  }

  .worksheet-art {
    position: static;
    height: auto;
    min-height: auto;
  }

  .worksheet-art img {
    height: auto;
    max-height: 460px;
  }

  .score-summary.wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .theme-hero,
  .course-map-hero,
  .finish-hero,
  .growth-hero {
    min-height: 560px;
    padding: 58px 18px;
  }

  .theme-card-grid {
    grid-template-columns: 1fr;
  }

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

  .theme-card {
    min-height: 330px;
  }

  .path-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .path-number {
    width: 40px;
    height: 40px;
  }

  .path-actions,
  .worksheet-actions,
  .finish-actions,
  .form-actions {
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: column;
  }

  .path-actions .button,
  .worksheet-actions .button,
  .finish-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .skill-module-content {
    padding: 22px;
  }

  .worry-sorter,
  .reset-menu {
    grid-template-columns: 1fr;
  }

  .worry-sorter div {
    min-height: 84px;
  }

  .values-compass {
    min-height: 300px;
  }

  .values-compass .compass-core {
    width: 112px;
    height: 112px;
  }

  .values-compass span {
    width: 96px;
    height: 96px;
  }

  .mental-module-hero {
    padding: 48px 18px;
  }

  .mental-module-body {
    padding: 34px 18px;
  }

  .mental-next-nav,
  .mental-next-nav .button {
    width: 100%;
  }

  .module-side,
  .module-lesson,
  .worksheet-panel,
  .finish-summary,
  .entry-card,
  .scenario-form,
  .helper-panel,
  .invite-output,
  .lesson-steps {
    padding: 24px 18px;
  }

  .lesson-progress,
  .worksheet-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .finish-module-row,
  .prize-preview {
    grid-template-columns: 1fr;
  }

  .quote-strip div,
  .quote-card {
    min-height: auto;
  }

  .finish-module-row span {
    width: 34px;
    height: 34px;
  }

  body.has-bottom-progress {
    padding-bottom: 104px;
  }

  .bottom-progress {
    padding: 6px 8px 7px;
  }

  .bottom-progress-meta {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .time-pill {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .bottom-progress-meta {
    margin-bottom: 5px;
  }

  .bottom-progress-meta span {
    font-size: 10px;
  }

  .bottom-progress-meta strong {
    display: none;
  }

  .bottom-progress-line {
    height: 3px;
    margin-bottom: 5px;
  }

  .bottom-progress-modules {
    gap: 5px;
  }

  .progress-module {
    min-width: 48px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    padding: 4px;
  }

  .major-tick {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .module-label {
    display: none;
  }

  .minor-ticks {
    grid-template-columns: repeat(5, 6px);
    justify-content: center;
    gap: 3px;
  }

  .minor-tick {
    width: 6px;
    min-height: 6px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
}

/* =====================================================================
   BCS unit engine, curriculum hub, gamification, unified nav (2026-07)
   ===================================================================== */

/* ---- Unified header / mobile nav ---- */
.bcs-header { flex-wrap: nowrap; }
.bcs-nav-primary { display: flex; align-items: center; gap: 6px; }
.bcs-nav-primary .nav-cta { margin-left: 10px; padding: 9px 16px; }
.bcs-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.bcs-nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.bcs-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bcs-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bcs-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.bcs-mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1002;
  display: grid;
  gap: 2px;
  padding: 14px clamp(18px, 5vw, 40px) 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Critical: the [hidden] attribute must win over display:grid above,
   otherwise the panel renders while "closed" (was the mobile-nav blocker). */
.bcs-mobile-nav[hidden] { display: none !important; }
.bcs-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.45);
}
.bcs-nav-backdrop[hidden] { display: none !important; }
/* Header must establish a stacking context above page content when open. */
.bcs-header { position: relative; z-index: 1000; }
/* Scroll lock: body is fixed while the menu is open; JS stores/restores scrollY. */
body.bcs-nav-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.bcs-mobile-nav a {
  padding: 11px 12px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
}
.bcs-mobile-nav a:hover, .bcs-mobile-nav a:focus-visible { background: var(--sky); }
.bcs-mobile-group {
  margin: 12px 0 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 920px) {
  .bcs-header .bcs-nav-primary { display: none; }
  .bcs-nav-toggle { display: flex; }
}
@media (min-width: 921px) {
  .bcs-mobile-nav { display: none !important; }
}

/* ---- Shared footer ---- */
.bcs-footer {
  margin-top: 60px;
  padding: 44px clamp(18px, 5vw, 54px) 26px;
  background: var(--navy);
  color: #e9eef4;
}
.bcs-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.bcs-footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin: 0 0 10px; }
.bcs-footer-note { color: #b9c5d2; max-width: 340px; line-height: 1.5; margin: 0; }
.bcs-footer nav { display: grid; gap: 8px; align-content: start; }
.bcs-footer nav p { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #8fa2b5; }
.bcs-footer nav a { color: #dbe4ec; }
.bcs-footer nav a:hover { color: #ffffff; text-decoration: underline; }
.bcs-footer-legal {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9c5d2;
  font-size: 13px;
  line-height: 1.5;
}
.bcs-footer-legal a { color: #ffffff; text-decoration: underline; }
@media (max-width: 760px) {
  .bcs-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Layout shell for unit pages ---- */
.unit-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 32px) 60px;
}

/* ---- Curriculum hub ---- */
.curriculum-hero { max-width: 780px; margin-bottom: 34px; }
.curriculum-hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 8px 0 14px; color: var(--navy); }
.curriculum-hero p { line-height: 1.6; color: var(--ink); }
.curriculum-hero-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.curriculum-hero-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.curriculum-hero-meta svg { width: 17px; height: 17px; color: var(--teal); }
.curriculum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.curriculum-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.curriculum-card:hover, a.curriculum-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.curriculum-card.planned { opacity: 0.75; background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 12px, #f4f2ec 12px, #f4f2ec 13px); }
.curriculum-card-head { display: flex; align-items: flex-start; gap: 14px; }
.curriculum-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--unit-accent, var(--teal));
  color: #fff;
}
.curriculum-number svg { width: 24px; height: 24px; }
.curriculum-card-head h3 { margin: 2px 0 0; font-size: 18px; color: var(--navy); }
.curriculum-card-head .eyebrow { margin: 0; }
.curriculum-status { margin-left: auto; flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; }
.curriculum-status.live { background: var(--mint); color: var(--green); }
.curriculum-status.review { background: var(--sand); color: var(--gold); }
.curriculum-status.planned { background: #eef0f3; color: var(--muted); }
.curriculum-tagline { margin: 0; color: var(--muted); line-height: 1.55; }
.curriculum-gate { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--muted); }
.curriculum-gate svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.curriculum-progress, .unit-hero-progress {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: #e8ebef;
  overflow: visible;
  margin-top: 6px;
}
.curriculum-progress > span, .unit-hero-progress > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: var(--unit-accent, var(--teal));
}
.curriculum-progress small, .unit-hero-progress small { position: relative; top: 12px; font-size: 12px; color: var(--muted); }
.curriculum-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--unit-accent, var(--teal)); }
.curriculum-cta svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .curriculum-grid { grid-template-columns: 1fr; }
}

/* ---- Unit landing ---- */
.unit-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-bottom: 26px; }
.unit-hero h1 { font-size: clamp(28px, 4.6vw, 40px); margin: 8px 0 12px; color: var(--navy); }
.unit-hero-tagline { max-width: 620px; line-height: 1.6; }
.unit-hero-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; }
.unit-hero-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.unit-hero-meta svg { width: 16px; height: 16px; color: var(--unit-accent, var(--teal)); }
.unit-hero-progress { max-width: 340px; margin-bottom: 22px; }
.unit-hero-emblem {
  display: grid;
  place-items: center;
  width: clamp(110px, 16vw, 170px);
  aspect-ratio: 1;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--unit-accent, var(--teal)), var(--navy));
  box-shadow: var(--shadow);
}
.unit-hero-emblem svg { width: 46%; height: 46%; color: rgba(255, 255, 255, 0.92); }
.unit-signature {
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px dashed var(--unit-accent, var(--teal));
  background: var(--sky);
  margin-bottom: 26px;
}
.unit-signature h2 { margin: 4px 0 8px; color: var(--navy); }
.unit-signature p { margin: 0; line-height: 1.55; }
.unit-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.unit-module-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.unit-module-card:hover, .unit-module-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.unit-module-card.done { border-color: var(--green); background: var(--mint); }
.unit-module-card-top { display: flex; justify-content: space-between; align-items: center; }
.unit-module-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--unit-accent, var(--teal));
}
.unit-module-time { font-size: 12px; font-weight: 700; color: var(--muted); }
.unit-module-done { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--green); }
.unit-module-done svg { width: 14px; height: 14px; }
.unit-module-card h3 { margin: 2px 0 0; font-size: 17px; color: var(--navy); }
.unit-module-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.unit-module-concept { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--unit-accent, var(--teal)); }
.unit-module-concept svg { width: 15px; height: 15px; }
.unit-footer-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  margin-top: 34px;
  padding: 26px;
  border-radius: 14px;
  background: var(--sand);
}
.unit-footer-panel h2 { margin: 6px 0 10px; color: var(--navy); }
.unit-footer-panel p { line-height: 1.55; }
.unit-review-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.unit-review-note svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 2px; }
@media (max-width: 920px) {
  .unit-module-grid { grid-template-columns: repeat(2, 1fr); }
  .unit-footer-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .unit-hero { grid-template-columns: 1fr; }
  .unit-hero-emblem { display: none; }
  .unit-module-grid { grid-template-columns: 1fr; }
}

/* ---- Unit module page ---- */
.unit-module-hero { display: grid; gap: 18px; margin-bottom: 26px; }
.unit-module-hero h1 { font-size: clamp(26px, 4.4vw, 36px); margin: 8px 0 10px; color: var(--navy); }
.unit-module-hero > div > p { max-width: 640px; line-height: 1.6; }
.unit-module-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.unit-module-meta span { display: inline-flex; align-items: flex-start; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.unit-module-meta svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--unit-accent, var(--teal)); }
.unit-module-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.unit-module-steps a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-weight: 800;
  color: var(--muted);
  background: var(--surface);
}
.unit-module-steps a.active { border-color: var(--unit-accent, var(--teal)); color: var(--unit-accent, var(--teal)); }
.unit-module-steps a.done { background: var(--unit-accent, var(--teal)); border-color: var(--unit-accent, var(--teal)); color: #fff; }
.unit-module-article { display: grid; gap: 26px; }
.unit-lesson-block { padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.unit-lesson-block h2 { margin: 6px 0 12px; color: var(--navy); }
.unit-lesson-block > p { line-height: 1.6; }
.scenario-block { border-left: 5px solid var(--unit-accent, var(--teal)); }
.scenario-hook { font-weight: 700; color: var(--navy); }
.lesson-example { font-size: 14px; color: var(--muted); font-style: italic; }

/* Signature mechanic table */
.mechanic-block { background: var(--sky); border-color: transparent; }
.mechanic-table { display: grid; gap: 8px; margin-top: 14px; }
.mechanic-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.45;
}
.mechanic-row.mechanic-head { background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.03em; }
.mechanic-note { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--navy); }
@media (max-width: 640px) {
  .mechanic-row { grid-template-columns: 1fr; gap: 4px; }
  .mechanic-row.mechanic-head { display: none; }
  .mechanic-row span[role="cell"]:nth-child(2)::before { content: "Right now: "; font-weight: 700; }
  .mechanic-row span[role="cell"]:nth-child(3)::before { content: "Later: "; font-weight: 700; }
}

/* Check block */
.unit-check { padding: 24px; border-radius: 14px; border: 2px solid var(--unit-accent, var(--teal)); background: var(--surface); }
.unit-check h2 { margin: 6px 0 10px; color: var(--navy); }
.worksheet-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.worksheet-options { display: grid; gap: 10px; margin-bottom: 14px; }
#unitCheckFinish { margin-top: 14px; }
.unit-check-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
@media (max-width: 760px) {
  .worksheet-scores { grid-template-columns: 1fr; }
  .unit-check-grid { grid-template-columns: 1fr; }
}

/* Sources */
.unit-sources { padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.unit-sources ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.unit-sources a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--teal); }
.unit-sources a:hover { text-decoration: underline; }
.unit-sources a svg { width: 13px; height: 13px; }
.unit-sources li span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---- Gamification toast ---- */
.bcs-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: min(92vw, 560px);
  flex-wrap: wrap;
}
.bcs-toast.visible { transform: translate(-50%, 0); opacity: 1; }
.bcs-toast strong { font-size: 18px; color: #ffd66b; }
.bcs-toast-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.bcs-toast-badge svg { width: 34px; height: 34px; }
.bcs-toast-level { font-weight: 800; color: #9fe3c0; }
.bcs-toast a { color: #cfe3f5; text-decoration: underline; font-size: 13px; }

/* ---- Progress dashboard ---- */
.progress-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; margin-bottom: 34px; align-items: start; }
.progress-hero h1 { font-size: clamp(28px, 4.6vw, 40px); margin: 8px 0 8px; color: var(--navy); }
.progress-xp-line { color: var(--muted); }
.progress-xp-line strong { color: var(--navy); font-size: 18px; }
.progress-level-bar { position: relative; height: 12px; max-width: 420px; border-radius: 99px; background: #e8ebef; margin: 12px 0; overflow: hidden; }
.progress-level-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.progress-hero-meta { display: flex; gap: 18px; margin-top: 10px; }
.progress-hero-meta span { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); }
.progress-hero-meta svg { width: 18px; height: 18px; color: var(--coral); }
.progress-privacy-card { padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.progress-privacy-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.progress-privacy-card details summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px; }
.progress-privacy-card form { display: flex; gap: 8px; margin-top: 10px; }
.progress-privacy-card input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.button.danger { color: var(--coral); border-color: var(--coral); justify-self: start; }
.progress-units h2, .progress-badges h2 { margin: 6px 0 16px; color: var(--navy); }
.progress-unit-list { display: grid; gap: 10px; margin-bottom: 34px; }
.progress-unit-row {
  display: grid;
  grid-template-columns: auto 1.2fr 2fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.progress-unit-row:hover { box-shadow: var(--shadow); }
.progress-unit-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--unit-accent, var(--teal)); color: #fff; }
.progress-unit-icon svg { width: 19px; height: 19px; }
.progress-unit-name { font-weight: 700; color: var(--navy); }
.progress-unit-bar { position: relative; height: 8px; border-radius: 99px; background: #e8ebef; overflow: hidden; }
.progress-unit-bar span { position: absolute; inset: 0 auto 0 0; background: var(--unit-accent, var(--teal)); border-radius: 99px; }
.progress-unit-count { font-weight: 800; font-size: 13px; color: var(--muted); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.badge-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.badge-card .badge-art { width: 64px; height: 64px; }
.badge-card .badge-art svg { width: 100%; height: 100%; }
.badge-card.locked { opacity: 0.45; filter: grayscale(1); }
.badge-card strong { font-size: 14px; color: var(--navy); }
.badge-card small { font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (max-width: 760px) {
  .progress-hero { grid-template-columns: 1fr; }
  .progress-unit-row { grid-template-columns: auto 1fr auto; }
  .progress-unit-bar { display: none; }
}

/* ---- Homepage curriculum band ---- */
.curriculum-band { padding: 56px clamp(18px, 5vw, 54px); background: var(--sky); }
.curriculum-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 26px auto 0;
}
.curriculum-band-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--unit-accent, var(--teal));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.curriculum-band-card:hover, .curriculum-band-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.curriculum-band-card svg { width: 26px; height: 26px; color: var(--unit-accent, var(--teal)); }
.curriculum-band-card strong { color: var(--navy); font-size: 16px; }
.curriculum-band-card span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.curriculum-band-card.more { background: var(--navy); border-color: var(--navy); }
.curriculum-band-card.more svg { color: #ffd66b; }
.curriculum-band-card.more strong { color: #fff; }
.curriculum-band-card.more span { color: #c3cfdc; }
@media (max-width: 920px) { .curriculum-band-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .curriculum-band-grid { grid-template-columns: 1fr; } }

/* ============ The Long Game promo band ============ */
.game-band {
  background: linear-gradient(120deg, #0f5a5d, var(--teal) 55%, #1d8a8f);
  color: #fff;
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}
.game-band::after {
  content: "🃏";
  position: absolute;
  font-size: 220px;
  opacity: 0.07;
  right: -30px;
  top: -40px;
  transform: rotate(18deg);
  pointer-events: none;
}
.game-band-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.game-band-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd98a;
  margin: 0 0 10px;
}
.game-band h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin: 0 0 4px;
  color: #fff;
}
.game-band-tag {
  font-size: 1.15rem;
  font-weight: 600;
  color: #d8f0f0;
  margin: 0 0 14px;
}
.game-band-body {
  color: #e6f4f4;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 46ch;
}
.game-band-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.button.game-cta {
  background: #e8a838;
  color: #2d1f04;
  border: 0;
  font-size: 1.06rem;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 12px;
  box-shadow: 0 4px 0 #96690f, var(--shadow);
  transition: transform 0.08s ease;
}
.button.game-cta:hover { background: #f2b64d; color: #2d1f04; transform: translateY(-1px); }
.button.game-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #96690f; }
.game-band-note { font-size: 0.85rem; color: #cfe9e9; }
.game-band-visual { display: flex; justify-content: center; }
.game-phone {
  background: #fff;
  border-radius: 26px;
  padding: 12px 12px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(3deg);
  max-width: 320px;
  width: 100%;
}
.game-phone img {
  width: 100%;
  border-radius: 16px;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.game-phone-ui { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.game-pill {
  background: #f2f0e8;
  color: #16212f;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.game-pill.gold { background: #ffedc9; }
@media (max-width: 820px) {
  .game-band-inner { grid-template-columns: 1fr; gap: 28px; }
  .game-phone { transform: rotate(0deg); max-width: 300px; }
}

/* Compact promo strip (curriculum + course pages) */
.game-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, #0f5a5d, var(--teal));
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 18px auto 26px;
  max-width: 1080px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.game-strip strong { font-size: 1.05rem; }
.game-strip span { color: #d8f0f0; font-size: 0.92rem; }
.game-strip .button.game-cta { margin-left: auto; padding: 10px 20px; font-size: 0.95rem; }
@media (max-width: 640px) {
  .game-strip .button.game-cta { margin-left: 0; width: 100%; text-align: center; }
}

/* ============ Evergreen guide pages ============ */
.guide-page {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 54px) 80px;
  background: linear-gradient(180deg, #f2f7f8 0, var(--paper) 520px);
}
.guide-page > article { max-width: 1080px; margin: 0 auto; }
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: 44px;
}
.guide-hero-copy h1 {
  margin: 8px 0 16px;
  color: var(--navy);
  font-size: clamp(2.45rem, 5.5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.guide-lede { max-width: 62ch; font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.65; color: var(--ink-soft); }
.guide-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(23, 50, 77, 0.2);
}
.guide-section {
  max-width: 850px;
  margin: 28px auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(23, 50, 77, 0.06);
}
.guide-section h2 { margin: 6px 0 14px; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2.15rem); }
.guide-section p, .guide-section li { color: var(--ink-soft); line-height: 1.72; }
.guide-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr); gap: 28px; max-width: 980px; }
.guide-callout { align-self: start; padding: 22px; border-radius: 16px; background: #eaf5f4; border-left: 5px solid var(--teal); }
.guide-callout strong { color: var(--navy); font-size: 1.05rem; }
.guide-callout p { margin-bottom: 0; }
.guide-practice { background: #fffaf0; border-color: #ead7a9; }
.guide-practice label { display: grid; gap: 8px; margin: 20px 0; color: var(--navy); font-weight: 750; }
.guide-practice textarea {
  width: 100%;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid #b7c2cb;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}
.guide-practice textarea:focus-visible { outline: 3px solid rgba(22, 124, 128, 0.35); border-color: var(--teal); }
.guide-check { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.guide-check summary { cursor: pointer; padding: 15px 18px; color: var(--navy); font-weight: 700; }
.guide-check p { margin: 0; padding: 0 18px 18px; }
.guide-limit { border-color: #e7c8bd; background: #fff8f5; }
.guide-next { max-width: 850px; margin: 34px auto 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide-next a { padding: 18px; border-radius: 13px; background: var(--navy); color: #fff; font-weight: 750; }
.guide-next a:hover, .guide-next a:focus-visible { background: var(--teal-dark); color: #fff; }
.guide-meta { max-width: 850px; margin: 0 auto; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.not-found { max-width: 760px; margin: 0 auto; padding: 12vh 24px; text-align: center; }
.not-found h1 { color: var(--navy); font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1; }
.not-found .hero-actions { justify-content: center; }
.guide-home-band { padding: 58px clamp(18px, 5vw, 54px); }
.guide-card-grid { max-width: 1080px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-home-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 28px rgba(23, 50, 77, 0.08); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.guide-home-card:hover, .guide-home-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(23, 50, 77, 0.16); }
.guide-home-card img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.guide-home-card span { display: grid; gap: 6px; padding: 18px; }
.guide-home-card strong { color: var(--navy); font-size: 1.1rem; }
.guide-home-card small { color: var(--muted); line-height: 1.5; }
@media (max-width: 780px) {
  .guide-hero, .guide-split { grid-template-columns: 1fr; }
  .guide-hero img { grid-row: 1; }
  .guide-next { grid-template-columns: 1fr; }
  .guide-card-grid { grid-template-columns: 1fr; }
}
