@charset "UTF-8";
/* ============================================
   Future Course Template System — Version 2
   UMA Brand Guide + Team Recommendations
   ============================================ */

/* Google Fonts — Merriweather (hero H1) + Roboto (all body and subheadings) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@900&family=Roboto:wght@400;700&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Primary Brand Colors — UMA Brand Guide */
  --color-navy:    #0d3553;   /* Legend Blue  — hero, sidebar, dark headers */
  --color-blue:    #1d6ba6;   /* Hero Blue    — H2, links, active states    */
  --color-horizon: #0095c8;   /* Horizon Blue — tip callout, secondary icon */
  --color-cta:     #15eac4;   /* Journey Green — all buttons and CTAs        */

  /* Semantic Colors */
  --color-gold:    #f2b84b;   /* Important/Warning callout */
  --color-danger:  #c93f38;   /* Danger callout, incorrect answer */
  --color-success: #2f7d59;   /* Correct answer, success badge */
  --color-teal:        #2a9aaa;   /* Discussions category color */
  --color-teal-dark:   #1b6b7b;   /* Discussions dark text */
  --color-purple:      #7b5ab5;   /* Assignments category color */
  --color-purple-dark: #5a3a8c;   /* Assignments dark text */

  /* Surface + Text */
  --color-bg:            #f7f9fb;
  --color-surface:       #ffffff;
  --color-surface-muted: #eef4f7;
  --color-text:          #28323a;
  --color-muted:         #66737d;
  --color-border:        #d6e0e6;
  --color-focus:         #ffbf47;

  /* Typography */
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --font-hero: 'Merriweather', Georgia, "Times New Roman", serif;

  /* Spacing */
  --space-xxs:     0.25rem;
  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      1.5rem;
  --space-lg:      2rem;
  --space-xl:      3rem;
  --space-section: 3rem;

  /* Layout */
  --banner-v-padding: 1.25rem;

  /* Shape */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(13, 53, 83, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 53, 83, 0.12);
}

/* ============================================
   RESET + BASE
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--color-navy);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

table {
  border-collapse: collapse;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* ============================================
   SKIP LINK
   ============================================ */

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  z-index: 20;
  padding: 0.65rem 1rem;
  color: var(--color-navy);
  background: var(--color-focus);
  border-radius: var(--radius-pill);
  font-weight: 700;
  transform: translateY(-140%);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============================================
   TYPOGRAPHY
   V2: H1 = Merriweather hero only, non-italic
       H2 = Roboto Bold, Hero Blue
       H3+ = Roboto Bold, Legend Blue
   ============================================ */

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-sm);
  font-weight: 700;
  font-style: normal;
  line-height: 1.25;
}

/* H1 — hero banner only; Merriweather per brand guide */
h1 {
  font-family: var(--font-hero);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

/* H2 — Roboto Bold, Hero Blue, reduced margin per recommendation */
h2 {
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--color-blue);
  margin-bottom: 0.375rem;
}

/* H3 — Roboto Bold, Legend Blue */
h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-navy);
}

/* H4 — Roboto Bold, Legend Blue */
h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-navy);
}

p,
ul,
ol {
  margin-top: 0;
}


ul,
ol {
  padding-left: 1.35rem;
  margin-bottom: var(--space-sm);
}

li + li {
  margin-top: 0.35rem;
}

code {
  padding: 0.1rem 0.28rem;
  color: var(--color-navy);
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  font-size: 0.95em;
}

/* ============================================
   LAYOUT
   ============================================ */

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar — prototype navigation only
   Remove this element when deploying to D2L.
   Use D2L's native Table of Contents instead. */
.sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 260px;
  width: 260px;
  height: 100vh;
  padding: var(--space-md);
  overflow-y: auto;
  color: #ffffff;
  background: var(--color-navy);
}

.sidebar-badge {
  display: inline-block;
  margin-bottom: var(--space-sm);
  padding: 0.2rem 0.6rem;
  color: var(--color-navy);
  background: var(--color-cta);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-title {
  margin: 0 0 var(--space-sm);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  max-width: none;
  margin: 0;
}

.sidebar-nav a,
.nav-section-label {
  display: block;
  border-radius: var(--radius-sm);
}

.sidebar-nav a {
  padding: 0.48rem 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-nav a[aria-current="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-nav a.active::before,
.sidebar-nav a[aria-current="true"]::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--color-cta);
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.nav-section-label {
  padding: calc(var(--space-md) + 0.35rem) 0.75rem 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar-nav li:first-child .nav-section-label { border-top: none; padding-top: 0.35rem; }

/* Module sub-group labels (e.g. "Module 1", "Module 2") */
.nav-sub-label {
  display: block;
  padding: 0.5rem 0.75rem 0.15rem 1.1rem;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

/* Indented links under a sub-group */
.nav-sub-item a {
  padding-left: 1.4rem;
}

/* Learner-facing course navigation labels: keep content types visible without turning the rail into an anchor sitemap. */
.nav-module a {
  padding-top: 0.65rem;
  padding-bottom: 0.35rem;
  color: #ffffff;
  font-weight: 700;
}

.nav-module-label,
.nav-module-title {
  display: block;
}

.nav-module-label {
  color: var(--color-cta);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-module-title {
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.25;
}

.nav-sub-item a {
  display: block;
  padding-top: 0.32rem;
  padding-bottom: 0.32rem;
  padding-left: 1.4rem;
  font-size: 0.82rem;
}

.nav-content-type {
  display: block;
  margin-bottom: 0.14rem;
  color: var(--color-cta);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
}

/* Full-width variant — docs/app pages like the Component Library.
   Text readability is maintained by the existing max-width: 72ch on p and li. */
.main-content--full {
  max-width: none;
  margin: 0;
}

.content-section {
  margin-bottom: var(--space-section);
  scroll-margin-top: var(--space-md);
}

/* ============================================
   HERO BANNER
   ============================================ */

.course-header {
  padding: var(--banner-v-padding) var(--space-xl);
  margin-bottom: var(--space-lg);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(13, 53, 83, 0.97) 0%, rgba(29, 107, 166, 0.90) 100%),
    var(--color-navy);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative accent in hero — brand-aligned angular shape */
.course-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  background: rgba(21, 234, 196, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.course-header h1 {
  color: #ffffff;
  max-width: none;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.course-label {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: var(--space-sm) 0 0;
  list-style: none;
}

.course-meta li {
  max-width: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: none;
  border-radius: 0;
  font-size: 0.875rem;
}

/* Course metadata appears on the light page surface below the hero. */
.main-content > .course-meta,
.content-section .course-meta {
  gap: 0.55rem;
  margin: 0 0 var(--space-md);
}

.main-content > .course-meta li,
.content-section .course-meta li {
  padding: 0.45rem 0.7rem;
  color: var(--color-navy);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.main-content > .course-meta li + li,
.content-section .course-meta li + li {
  margin-top: 0;
}

.main-content > .course-meta li + li::before,
.content-section .course-meta li + li::before {
  content: none;
}

.course-meta li + li {
  margin-top: 0;
}

.course-meta li + li::before {
  content: "\00B7";
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.meta-label {
  font-weight: 700;
}

/* ============================================
   IN-PAGE ANCHOR NAVIGATION (data source)
   Hidden pill bar — JS reads it and builds the
   floating .page-toc panel from its links.
   ============================================ */

.inpage-nav {
  display: none;
}

/* ============================================
   FLOATING PAGE TOC
   Fixed left-side collapsible panel aligned with
   the main content area. Tab stays accessible
   while the student scrolls.
   Built dynamically from .inpage-nav link data.
   ============================================ */

.page-toc {
  position: fixed;
  left: 260px; /* align with main content left edge (sidebar width) */
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.page-toc-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 32px;
  padding: 0.65rem 0;
  background: var(--color-cta);
  color: var(--color-navy);
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
  box-shadow: 2px 2px 10px rgba(13, 53, 83, 0.2);
}

.page-toc-toggle:hover {
  background: var(--color-navy);
  color: var(--color-cta);
}

.page-toc-toggle:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.page-toc-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: block;
}

/* Vertical label — always visible on desktop */
.page-toc-toggle-text {
  display: block;
  writing-mode: vertical-lr;
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.page-toc-panel {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.26s ease, opacity 0.18s ease;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
}

.page-toc.is-open .page-toc-panel {
  max-width: 190px;
  overflow-y: auto;
  max-height: 72vh;
  opacity: 1;
}

.page-toc-heading {
  display: block;
  padding: 0.75rem 1rem 0.4rem;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.page-toc-panel a {
  display: block;
  padding: 0.48rem 1rem;
  color: var(--color-blue);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  line-height: 1.4;
}

.page-toc-panel a:hover {
  background: var(--color-surface-muted);
  color: var(--color-navy);
  border-left-color: var(--color-cta);
}

.page-toc-panel a[aria-current="true"] {
  color: var(--color-navy);
  background: rgba(21, 234, 196, 0.12);
  border-left-color: var(--color-cta);
  font-weight: 700;
}

/* At tablet the sidebar becomes a horizontal bar — drop the 260px offset */
@media (max-width: 900px) {
  .page-toc {
    left: 0;
  }
}

/* ============================================
   SECTION HEADERS + KICKERS
   ============================================ */

.section-header {
  margin-bottom: var(--space-sm);
}

/* Auto-spacing: section-header after content inside module sections or content sections */
.module-section-body > .section-header {
  margin-top: var(--space-md);
}

.content-section > * + .section-header {
  margin-top: var(--space-lg);
}

/* Primary content heading inside a section-header —
   larger and darker than the global h2 so it clearly
   dominates the small kicker label above it. */
.section-header h2 {
  font-size: 1.75rem;
  color: var(--color-navy);
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .section-header h2 { font-size: 1.35rem; }
}

/* Section kicker — small uppercase marker above the h2.
   Subordinate to the content heading below it. */
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.3rem;
  padding-bottom: 0.25rem;
  color: var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--color-blue);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   OVERVIEW GRID + CARD GRID
   ============================================ */

.overview-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

/* Row variant — forces horizontal layout for 3-objective lesson pages */
.card-grid--row {
  grid-template-columns: repeat(3, 1fr);
}

.overview-item,
.card,
.reflection-block,
.checklist-block,
.knowledge-check,
.next-steps {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* No hover lift on non-link cards — removes misleading interactive cue */
.overview-item h3,
.card-title,
.reflection-block h3,
.checklist-block h3,
.knowledge-check h3,
.next-steps h3 {
  margin-bottom: var(--space-xs);
}

.overview-item p:last-child,
.card p:last-child,
.reflection-block p:last-child,
.checklist-block p:last-child,
.knowledge-check p:last-child,
.next-steps p:last-child,
.callout p:last-child,
.accordion-panel p:last-child,
.tab-panel p:last-child {
  margin-bottom: 0;
}

/* Guided learning digest — visible teaching content with a small number of purposeful tools. */
.learning-digest {
  margin: var(--space-md) 0;
}

.learning-digest-intro {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
}

.learning-digest-intro h3 {
  margin-bottom: var(--space-xs);
}

.learning-card-grid,
.source-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.learning-card,
.source-map-card {
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.learning-card h3,
.source-map-card h3 {
  margin-bottom: var(--space-xs);
}

.learning-card-body > :first-child {
  margin-top: 0;
}

.learning-card-body > :last-child,
.source-map-card > :last-child {
  margin-bottom: 0;
}

.learning-card-source {
  margin-top: var(--space-sm);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-style: italic;
}

.learning-card--takeaways {
  border-top: 4px solid var(--color-success);
  background: #f2fbf7;
}

.learning-card--visual {
  border-top: 4px solid var(--color-cta);
  background: #f7fbfd;
}

.learning-try {
  margin-top: var(--space-md);
  border-top: 4px solid var(--color-cta);
}

.learning-try p:not(.card-eyebrow) {
  max-width: none;
}

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

.source-map-card {
  border-top: 4px solid var(--color-blue);
}

.source-map-card ul {
  margin: var(--space-sm) 0 0;
  padding-left: 1.1rem;
}

.source-map-card li {
  margin-bottom: 0.65rem;
}

.source-map-card li:last-child {
  margin-bottom: 0;
}

.source-map-card li strong,
.source-map-card li span {
  display: block;
}

.source-map-card li span {
  margin-top: 0.15rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Full lesson sequence — content stays visible; hierarchy does the organizing. */
.lesson-content {
  margin: var(--space-md) 0;
}

.lesson-intro {
  margin-bottom: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
}

.lesson-intro h3 {
  margin-bottom: var(--space-xs);
}

.lesson-sequence {
  display: grid;
  gap: var(--space-md);
}

.lesson-section {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.lesson-section-heading {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.lesson-section-number {
  display: inline-grid;
  flex: 0 0 2rem;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  background: var(--color-navy);
  border-radius: 50%;
  font-weight: 800;
}

.lesson-section-heading .card-eyebrow {
  margin-bottom: 0.2rem;
}

.lesson-section-heading h3 {
  margin-bottom: 0;
}

.lesson-section-body > :first-child {
  margin-top: 0;
}

.lesson-section-body > :last-child {
  margin-bottom: 0;
}

.lesson-section--visual {
  border-left-color: var(--color-cta);
  background: #f7fbfd;
}

.lesson-section--review {
  border-left-color: var(--color-success);
  background: #f2fbf7;
}

.lesson-source-note {
  margin: var(--space-md) 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.assignment-rubric-heading {
  margin-top: var(--space-lg);
}

/* ============================================
   CALLOUTS
   V2: Four distinct types with unique icons,
   colors, and labels for rapid scan recognition.
   ============================================ */

.callout {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left-width: 5px;
  border-radius: var(--radius-md);
}

.callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  background: var(--color-blue);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
}

.callout-body {
  flex: 1;
}

.callout-title {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* NOTE — Hero Blue */
.callout-info {
  border-left-color: var(--color-success);
  background: #eef8f3;
}

.callout-info .callout-icon {
  background: var(--color-success);
  color: #ffffff;
}

.callout-info .callout-title {
  color: var(--color-success);
}

/* TIP — Journey Green */
.callout-tip {
  border-left-color: var(--color-cta);
  background: #e6fff9;
}

.callout-tip .callout-icon {
  background: var(--color-cta);
  color: var(--color-navy);
}

.callout-tip .callout-title {
  color: #0a7a5c;
}

/* IMPORTANT — Gold (accessible navy text on gold) */
.callout-warning {
  border-left-color: var(--color-gold);
  background: #fff8e8;
}

.callout-warning .callout-icon {
  background: var(--color-gold);
  color: var(--color-navy);
}

.callout-warning .callout-title {
  color: #8a5a00;
}

/* DANGER — Red */
.callout-danger {
  border-left-color: var(--color-danger);
  background: #fff0ee;
}

.callout-danger .callout-icon {
  background: var(--color-danger);
  color: #ffffff;
}

.callout-danger .callout-title {
  color: #a12c26;
}

/* ============================================
   HIGHLIGHTED TEXT — Full-width block behavior
   The global max-width: 72ch on p and li is
   correct for body prose but must not apply
   inside colored-background containers, where
   the container width is already the limit.
   Also ensures <mark> and similar elements
   render as solid full-width bands rather than
   the per-line inline staircase effect.
   ============================================ */

/* Remove text-width constraint inside all highlighted/colored containers */
.callout p,
.callout li,
.alert-bar p,
.alert-bar li,
.scenario-block p,
.scenario-block li,
.jumbotron p,
.jumbotron li,
.section-banner p,
.help-block p,
.help-block li,
.submit-cta p,
.knowledge-check p,
.info-card p,
.next-steps p {
  max-width: none;
}

/* <mark> — override inline default so the highlight forms a solid
   full-width rectangle instead of wrapping each line individually */
mark {
  display: block;
  padding: 0.3em var(--space-sm);
  background: #fff3c2;
  border-radius: var(--radius-sm);
  color: inherit;
  max-width: none;
}

/* ============================================
   TABLES
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  margin: var(--space-md) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  background: var(--color-surface);
  /* No global min-width — rubric table opts in via .rubric-table */
}

caption {
  padding: 0.8rem var(--space-sm);
  color: var(--color-muted);
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
}

thead {
  color: #ffffff;
  background: var(--color-navy);
}

th,
td {
  padding: 0.75rem var(--space-sm);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 700;
}

tbody th {
  color: var(--color-navy);
  background: #dce6ed;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) td {
  background: #f9fbfc;
}

/* Rubric table — opts into min-width since it genuinely needs column space */
.rubric-table {
  min-width: 580px;
}

.rubric-table td,
.rubric-table th {
  min-width: 120px;
}

/* ============================================
   MEDIA BLOCK
   V2: 16:9 responsive container, required
   metadata fields, black caption text.
   ============================================ */

.media-block {
  margin: var(--space-md) 0;
}

.media-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.5rem;
}

.media-type-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  color: #ffffff;
  background: var(--color-navy);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.media-duration {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 700;
}

/* 16:9 intrinsic ratio container — scales correctly at all widths */
.media-ratio {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--color-surface-muted);
  border: 1px dashed var(--color-blue);
  border-radius: var(--radius-md);
}

.media-ratio-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xs);
}

.media-placeholder-text {
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.media-placeholder-note {
  color: var(--color-muted);
  font-size: 0.82rem;
  text-align: center;
  max-width: 36ch;
}

/* Caption — black text per recommendation */
.media-caption {
  margin: 0.65rem 0 0.35rem;
  color: var(--color-text);
  font-size: 0.9rem;
  max-width: none;
}

.media-transcript {
  margin: 0;
  font-size: 0.875rem;
  max-width: none;
}

.media-transcript a {
  font-weight: 700;
}

/* ============================================
   TABS
   V2: Dark navy active state with white text —
   unambiguous which tab is selected.
   ============================================ */

.tabs {
  margin: var(--space-md) 0;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0.3rem 0.3rem 0;
  margin-bottom: 0;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tab-button {
  min-height: 2.5rem;
  padding: 0.5rem var(--space-sm);
  color: var(--color-navy);
  background: transparent;
  border: 0;
  border-left: 1px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

/* Thin divider between adjacent tabs */
.tab-button + .tab-button {
  border-left-color: var(--color-border);
}

.tab-button:hover:not([aria-selected="true"]) {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

/* Active tab — Journey Green background + navy text */
.tab-button[aria-selected="true"] {
  background: var(--color-cta);
  color: var(--color-navy);
  box-shadow: none;
  border-left-color: transparent;
}

/* Hide divider on the button immediately after the active tab */
.tab-button[aria-selected="true"] + .tab-button {
  border-left-color: transparent;
}

.tab-panel {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.tab-panel > .accordion {
  margin-top: 0;
  margin-bottom: 0;
}

/* ============================================
   ACCORDIONS
   V2: Open trigger changes to dark navy with
   white text + internal top padding added.
   ============================================ */

.accordion {
  overflow: hidden;
  margin: var(--space-md) 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-cta);
  border-radius: var(--radius-md);
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--color-border);
}

.accordion-item h3 {
  margin: 0;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.25rem;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-navy);
  background: var(--color-surface);
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.accordion-trigger:hover:not([aria-expanded="true"]) {
  background: var(--color-surface-muted);
}

/* Open state — dark navy header with white text */
.accordion-trigger[aria-expanded="true"] {
  background: var(--color-navy);
  color: #ffffff;
}

.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.65rem;
  width: 1.65rem;
  height: 1.65rem;
  margin-left: var(--space-sm);
  color: var(--color-navy);
  background: var(--color-cta);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.14s ease;
}

.accordion-icon::before {
  content: "+";
  font-weight: 700;
  position: relative;
  top: -1px;
}

/* Icon on open trigger — semi-transparent against dark background */
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::before {
  content: "−";
}

/* Panel — top padding added per recommendation */
.accordion-panel {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

/* ============================================
   KNOWLEDGE CHECK
   ============================================ */

.knowledge-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.choice-list {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 var(--space-sm);
}

.choice-button {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem var(--space-sm);
  color: var(--color-navy);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.choice-button:hover:not([disabled]) {
  border-color: var(--color-blue);
  background: var(--color-surface);
}

.choice-button[disabled] {
  cursor: not-allowed;
}

.choice-button.is-correct {
  color: #ffffff;
  background: var(--color-success);
  border-color: var(--color-success);
}

.choice-button.is-incorrect {
  color: #ffffff;
  background: var(--color-danger);
  border-color: var(--color-danger);
}

.knowledge-feedback {
  min-height: 1.5rem;
  margin: 0 0 var(--space-xs);
  font-weight: 700;
  font-size: 0.9rem;
}

.knowledge-feedback.is-success {
  color: var(--color-success);
}

.knowledge-feedback.is-error {
  color: var(--color-danger);
}

.knowledge-check > .knowledge-check-label {
  display: block;
  margin: 0 0 var(--space-xs);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.knowledge-check > .knowledge-question {
  margin: 0 0 var(--space-sm);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
}

/* ============================================
   STAGED WORKPLACE SCENARIO
   ============================================ */

.scenario-simulation {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-cta);
  border-radius: var(--radius-md);
}

.media-ratio-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.media-ratio-link:hover,
.media-ratio-link:focus-visible {
  border-style: solid;
  border-color: var(--color-cta);
  background: var(--color-surface);
}

.media-ratio-link:focus-visible {
  outline: 3px solid var(--color-cta);
  outline-offset: 3px;
}

.scenario-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0;
  margin: 0 0 var(--space-md);
  list-style: none;
}

.scenario-progress li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  color: var(--color-muted);
  border-bottom: 2px solid var(--color-border);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scenario-progress li span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.45rem;
  width: 1.45rem;
  height: 1.45rem;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.scenario-progress li.is-current,
.scenario-progress li.is-complete {
  color: var(--color-navy);
  border-color: var(--color-cta);
}

.scenario-progress li.is-current span,
.scenario-progress li.is-complete span {
  color: var(--color-navy);
  background: var(--color-cta);
  border-color: var(--color-cta);
}

.scenario-stage {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.scenario-stage h3 {
  margin-top: 0;
}

.scenario-stage h4 {
  margin-top: 0;
  color: var(--color-navy);
  font-size: 1.18rem;
}

.interactive-lab {
  border-top: 4px solid var(--color-cta);
}

.interactive-lab-header {
  padding: var(--space-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.interactive-lab-header h3 {
  margin-bottom: 0.35rem;
}

.interactive-scene,
.interactive-preview-figure {
  position: relative;
  overflow: hidden;
  margin: var(--space-md) 0;
  background: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.interactive-scene img,
.interactive-preview-figure img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.interactive-hotspots {
  position: absolute;
  inset: 0;
}

.interactive-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: #ffffff;
  background: var(--color-blue);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.14s ease, background 0.14s ease;
}

.interactive-hotspot:hover,
.interactive-hotspot:focus-visible {
  background: var(--color-cta);
  transform: translate(-50%, -50%) scale(1.1);
}

.interactive-hotspot.is-selected {
  background: var(--color-success);
}

.hotspot-1 { left: 24%; top: 30%; }
.hotspot-2 { left: 68%; top: 30%; }
.hotspot-3 { left: 27%; top: 72%; }
.hotspot-4 { left: 76%; top: 70%; }

.interactive-cue-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: var(--space-md) 0;
}

.interactive-cue-key {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  background: var(--color-surface-muted);
  border-left: 3px solid var(--color-blue);
  border-radius: var(--radius-sm);
}

.interactive-cue-key span {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.interactive-preview {
  background: linear-gradient(135deg, rgba(0, 136, 184, 0.06), transparent 60%);
}

.interactive-preview-figure {
  max-width: 52rem;
}

.interactive-preview-figure img {
  max-height: 20rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.scenario-instruction {
  color: var(--color-muted);
  font-weight: 700;
}

.scenario-cues,
.scenario-choice-list {
  display: grid;
  gap: 0.65rem;
  margin: var(--space-md) 0;
}

.scenario-cue,
.scenario-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  width: 100%;
  padding: 0.75rem;
  color: var(--color-navy);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.scenario-cue:hover,
.scenario-choice:hover {
  border-color: var(--color-blue);
  background: var(--color-surface);
  transform: translateY(-1px);
}

.scenario-cue.is-selected,
.scenario-choice.is-selected {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 2px rgba(0, 136, 184, 0.14);
}

.scenario-cue.is-correct,
.scenario-choice.is-correct {
  color: #ffffff;
  background: var(--color-success);
  border-color: var(--color-success);
}

.scenario-choice.is-incorrect {
  color: #ffffff;
  background: var(--color-danger);
  border-color: var(--color-danger);
}

.scenario-cue .cue-number {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  color: #ffffff;
  background: var(--color-navy);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.scenario-cue strong,
.scenario-choice strong {
  font-size: 0.95rem;
}

.scenario-cue span:last-child {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.scenario-detail,
.scenario-feedback {
  min-height: 2.7rem;
  padding: 0.75rem;
  margin: var(--space-sm) 0;
  background: var(--color-surface-muted);
  border-left: 3px solid var(--color-blue);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

/* Compact observation stage: keep the visual prompt and the interaction
   controls in one view instead of stacking a full-size image above them. */
.interactive-observe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(14rem, 0.8fr);
  gap: 0.85rem;
  align-items: start;
  margin: var(--space-sm) 0 var(--space-md);
}

.interactive-observe-layout .interactive-scene {
  min-width: 0;
  margin: 0;
}

.interactive-observe-layout .interactive-scene img {
  aspect-ratio: 16 / 9;
  max-height: 19rem;
  object-fit: cover;
}

.interactive-observe-layout .figure-caption {
  color: var(--color-navy);
  background: var(--color-surface-muted);
}

.interactive-observe-panel {
  min-width: 0;
  padding: 0.75rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.interactive-panel-label {
  margin: 0 0 0.45rem;
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.interactive-observe-layout .interactive-cue-key-grid {
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin: 0;
}

.interactive-observe-layout .interactive-cue-key {
  padding: 0.5rem 0.6rem;
  background: var(--color-surface);
  font-size: 0.86rem;
}

.interactive-observe-layout .scenario-cues {
  gap: 0.4rem;
  margin: 0;
}

.interactive-observe-layout .scenario-cue {
  padding: 0.55rem;
  font-size: 0.84rem;
}

.interactive-observe-layout .scenario-cue span:last-child {
  font-size: 0.78rem;
}

.interactive-hotspots .interactive-hotspot {
  position: absolute !important;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #ffffff;
  background: var(--color-blue);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

.interactive-hotspots .interactive-hotspot .cue-number {
  grid-row: auto;
  width: auto;
  height: auto;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: 0.82rem;
}

.interactive-hotspots .interactive-hotspot:hover,
.interactive-hotspots .interactive-hotspot:focus-visible,
.interactive-hotspots .interactive-hotspot.is-selected {
  color: #ffffff;
  background: var(--color-success);
  transform: translate(-50%, -50%) scale(1.08);
}

.interactive-lab .scenario-stage {
  padding: 1rem;
}

.interactive-lab .scenario-instruction {
  margin-bottom: 0.6rem;
}

.scenario-feedback.is-success {
  color: var(--color-success);
  border-left-color: var(--color-success);
}

.scenario-feedback.is-error {
  color: var(--color-danger);
  border-left-color: var(--color-danger);
}

.scenario-order {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: var(--space-md) 0;
  list-style: none;
  counter-reset: sequence;
}

.scenario-order li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.scenario-order::before {
  content: "Drag items to reorder, or use the arrow buttons.";
  display: block;
  margin: 0 0 0.35rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.scenario-order li {
  cursor: grab;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

.scenario-order li:active {
  cursor: grabbing;
}

.scenario-order li.is-dragging {
  opacity: 0.45;
  border-style: dashed;
}

.scenario-order li.is-drag-over {
  border-color: var(--color-cta);
  background: rgba(0, 203, 171, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 203, 171, 0.16);
}

.scenario-order .sequence-text {
  position: relative;
  cursor: grab;
}

.scenario-order .sequence-text::before {
  content: "::";
  position: absolute;
  left: -0.1rem;
  top: 0;
  color: var(--color-muted);
  font-weight: 900;
  letter-spacing: -0.2em;
  line-height: 1.1;
}

.scenario-order .sequence-text {
  padding-left: 1rem;
}

.sequence-instruction {
  margin: 0.5rem 0 0.75rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.sequence-number {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  color: #ffffff;
  background: var(--color-navy);
  border-radius: 50%;
  font-weight: 800;
}

.sequence-controls {
  display: flex;
  gap: 0.25rem;
}

.sequence-controls button {
  width: 2rem;
  height: 2rem;
  color: var(--color-navy);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
}

.sequence-controls button:hover {
  color: #ffffff;
  background: var(--color-blue);
}

.scenario-simulation [data-scenario-next] {
  margin-left: 0.45rem;
}

.scenario-simulation [disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.scenario-simulation.is-complete {
  border-top-color: var(--color-success);
}

@media (max-width: 640px) {
  .scenario-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-order li {
    grid-template-columns: 2rem 1fr;
  }

  .interactive-cue-key-grid {
    grid-template-columns: 1fr;
  }

  .interactive-observe-layout {
    grid-template-columns: 1fr;
  }

  .interactive-observe-layout .interactive-scene img {
    max-height: 15rem;
  }

  .interactive-hotspot {
    width: 2.25rem;
    height: 2.25rem;
  }

  .sequence-controls {
    grid-column: 2;
  }
}

/* ============================================
   REFLECTION BLOCK
   ============================================ */

.reflection-block,
.knowledge-check {
  border-left: 3px solid var(--color-cta);
}

.reflection-label {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}

.reflection-label span {
  font-weight: 400;
  color: var(--color-muted);
}

.reflection-block textarea {
  width: 100%;
  min-height: 120px;
  margin-top: var(--space-sm);
  padding: 0.65rem var(--space-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
}

.reflection-block textarea:focus {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 107, 166, 0.15);
}

/* ============================================
   ASSESSMENT QUESTION ICONS
   Displays the assessment-type icon to the left
   of each question heading. Container class sets
   the icon; data-question-type overrides the
   knowledge-check default (MC) for TF and Scenario.
   ============================================ */

.knowledge-check h3,
.knowledge-check h4,
.dropdown-question h3,
.dropdown-question h4,
.multi-select h3,
.multi-select h4,
.reflection-block h3,
.reflection-block h4 {
  display: flex;
  align-items: center;
  gap: 0.45em;
}

.reveal-block .reveal-question {
  display: flex;
  align-items: flex-start;
  gap: 0.45em;
}

.knowledge-check h3::before,
.knowledge-check h4::before,
.dropdown-question h3::before,
.dropdown-question h4::before,
.multi-select h3::before,
.multi-select h4::before,
.reflection-block h3::before,
.reflection-block h4::before,
.reveal-block .reveal-question::before {
  content: "";
  flex-shrink: 0;
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.75;
}

/* Multiple Choice — default for any .knowledge-check */
.knowledge-check h3::before,
.knowledge-check h4::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

/* True / False */
.knowledge-check[data-question-type="true-false"] h3::before,
.knowledge-check[data-question-type="true-false"] h4::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='5' width='22' height='14' rx='7' ry='7'/%3E%3Ccircle cx='8' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Scenario */
.knowledge-check[data-question-type="scenario"] h3::before,
.knowledge-check[data-question-type="scenario"] h4::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

/* Dropdown */
.dropdown-question h3::before,
.dropdown-question h4::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}

/* Check All That Apply */
.multi-select h3::before,
.multi-select h4::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 11 12 14 22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}

/* Click and Reveal */
.reveal-block .reveal-question::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  margin-top: 0.15em;
}

/* Reflection */
.reflection-block h3::before,
.reflection-block h4::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
}

/* ============================================
   CHECKLIST BLOCK
   ============================================ */

.checklist-block {
  margin-top: var(--space-md);
}

.checklist {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

/* ============================================
   INSTRUCTION LIST
   ============================================ */

.instruction-list {
  display: grid;
  gap: 0.85rem;
  padding-left: 1.45rem;
}

.instruction-list li {
  padding-left: 0.25rem;
}

/* ============================================
   RESOURCE LIST
   V2: Clear link affordance — left accent border,
   arrow that moves on hover.
   ============================================ */

.resource-list {
  padding: 0;
  margin: var(--space-md) 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.resource-list li {
  max-width: none;
  margin: 0;
}

.resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.85rem var(--space-md);
  color: var(--color-navy);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-cta);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.resource-list a::after {
  content: "→";
  color: var(--color-cta);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.resource-list a:hover {
  border-color: var(--color-border);
  border-left-color: var(--color-blue);
  box-shadow: var(--shadow-sm);
  color: var(--color-navy);
}

.resource-list a:hover::after {
  transform: translateX(5px);
  color: var(--color-blue);
}

/* ============================================
   BUTTONS
   V2: Pill shape + correct Journey Green (#15eac4)
   ============================================ */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.4rem;
  color: var(--color-navy);
  background: var(--color-cta);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  color: var(--color-navy);
  background: var(--color-cta);
}

.btn:hover {
  background: #0fd9b5;
  color: var(--color-navy);
  box-shadow: 0 4px 12px rgba(21, 234, 196, 0.35);
}

.btn-lg {
  min-height: 3.1rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.95rem;
}

.btn-sm {
  min-height: 2.1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ============================================
   SUBMIT CTA BLOCK — Assignment page
   ============================================ */

.submit-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  background: linear-gradient(
    135deg,
    rgba(21, 234, 196, 0.07) 0%,
    rgba(29, 107, 166, 0.05) 100%
  );
  border: 2px solid var(--color-cta);
  border-radius: var(--radius-md);
}

.submit-cta-body h3 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.submit-cta-body p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: 52ch;
}

.completion-status {
  margin: -0.65rem 0 var(--space-md);
  color: var(--color-muted);
  font-size: 0.82rem;
}
.btn.is-complete {
  background: var(--color-success);
  border-color: var(--color-success);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary {
  color: var(--color-navy);
  background: #dceef8;
}

.badge-warning {
  color: #6f4a00;
  background: #fff1cc;
}

.badge-success {
  color: #19583d;
  background: #daf4e8;
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
  height: 1px;
  margin: var(--space-lg) 0;
  background: var(--color-border);
  border: 0;
}

/* ============================================
   NEXT STEPS BLOCK
   ============================================ */

.next-steps {
  margin-top: var(--space-lg);
}

/* ============================================
   PAGE FOOTER
   ============================================ */

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  color: var(--color-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
}

.footer-nav a {
  color: var(--color-muted);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.14s ease;
}

.footer-nav a:hover {
  color: var(--color-blue);
}

/* ============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================ */

@media (max-width: 900px) {
  .page-wrapper {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main-content {
    max-width: none;
    padding: var(--space-md);
  }

  .course-header {
    padding: var(--space-md);
  }

  .course-header h1 {
    max-width: none;
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .card-grid--row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
  }

  .submit-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
  }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================ */

@media (max-width: 640px) {
  .course-meta,
  .button-row,
  .tab-list {
    display: grid;
  }

  .course-meta li + li::before {
    display: none;
  }

  .btn,
  .tab-button {
    width: 100%;
    text-align: center;
  }

  .callout {
    display: block;
  }

  .callout-icon {
    margin-bottom: var(--space-xs);
  }

  h2 {
    font-size: 1.3rem;
  }

  .card-grid--row {
    grid-template-columns: 1fr;
  }

  /* Page TOC — mobile: bottom-left floating action button */
  .page-toc {
    top: auto;
    left: 1rem;
    bottom: 1.25rem;
    transform: none;
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .page-toc-toggle {
    width: auto;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    flex-direction: row;
    gap: 0.4em;
    box-shadow: var(--shadow-md);
  }

  .page-toc-toggle-text {
    display: inline;
    writing-mode: horizontal-tb;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .page-toc-panel {
    border-left: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
  }

  .page-toc.is-open .page-toc-panel {
    max-width: 240px;
    max-height: 55vh;
  }

  /* Mobile rubric — stacked card view
     Replaces horizontal scroll with readable vertical layout */
  .rubric-table {
    min-width: 0;
  }

  .rubric-table thead {
    display: none;
  }

  .rubric-table tbody,
  .rubric-table tr,
  .rubric-table td,
  .rubric-table th {
    display: block;
    width: 100%;
  }

  .rubric-table tr {
    margin-bottom: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .rubric-table tr:last-child {
    margin-bottom: 0;
  }

  .rubric-table th[scope="row"] {
    background: var(--color-navy);
    color: #ffffff;
    font-size: 0.9rem;
    padding: 0.6rem var(--space-sm);
    border-bottom: 0;
  }

  .rubric-table td {
    padding: 0.55rem var(--space-sm) 0.55rem var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
  }

  .rubric-table td:last-child {
    border-bottom: 0;
  }

  /* Column label injected before each cell value */
  .rubric-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--color-blue);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
  }

  /* Even rows — remove zebra in stacked view */
  .rubric-table tbody tr:nth-child(even) td,
  .rubric-table tbody tr:nth-child(even) th {
    background: var(--color-surface);
  }

  .submit-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   PHASE 2 — NEW COMPONENTS
   ============================================ */

/* COMPARISON BLOCK */
.comparison-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: var(--space-md) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-col { padding: var(--space-md); }
.comparison-col h3 {
  text-align: center;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 1rem;
  color: inherit;
}
.comparison-col p,
.comparison-col li { font-size: 0.9rem; line-height: 1.65; max-width: none; margin-bottom: var(--space-xs); }
.comparison-col ul { padding-left: 1.2rem; margin-bottom: 0; }
.comparison-col li + li { margin-top: 0.4rem; }
.comparison-col--a { background: var(--color-navy); color: rgba(255,255,255,0.92); }
.comparison-col--a h3 { color: #ffffff; }
.comparison-col--b { background: var(--color-blue); color: rgba(255,255,255,0.92); border-left: 1px solid rgba(255,255,255,0.15); }
.comparison-col--b h3 { color: #ffffff; }
@media (max-width: 640px) {
  .comparison-block { grid-template-columns: 1fr; }
  .comparison-col--b { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); }
}

/* SCENARIO BLOCK */
.scenario-block {
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-horizon);
  border-radius: var(--radius-md);
}
.scenario-label {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  margin-bottom: var(--space-sm);
  background: var(--color-navy);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.scenario-block p { max-width: none; line-height: 1.75; margin-bottom: var(--space-sm); }
.scenario-block p:last-child { margin-bottom: 0; }

/* QUOTE / EMPHASIS BLOCK */
.quote-block {
  position: relative;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  background: #f2faf6;
  border-left: 4px solid #5aaa7a;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.quote-block::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: var(--space-md);
  font-size: 3rem;
  line-height: 1;
  color: #5aaa7a;
  opacity: 0.45;
  pointer-events: none;
}
.quote-block p { margin: 0; padding-left: var(--space-md); font-size: 1.05rem; font-style: italic; font-weight: 500; color: var(--color-navy); line-height: 1.7; max-width: none; }

/* ICON CHECKLIST — dark gray circles so content remains primary focus */
.icon-checklist { list-style: none; padding: 0; margin: var(--space-sm) 0; display: grid; gap: 0.55rem; }
.icon-checklist li { display: flex; align-items: flex-start; gap: 0.65rem; max-width: none; margin: 0; }
.icon-checklist li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  background: #4a5568;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.1rem;
  line-height: 1;
}

/* KEY TAKEAWAY CALLOUT */
.callout-key { border-left-color: var(--color-navy); background: #edf2f7; }
.callout-key .callout-icon { background: var(--color-navy); color: #ffffff; font-size: 0.9rem; }
.callout-key .callout-title { color: var(--color-navy); }
.callout-key .callout-body p:not(.callout-title) { font-size: 1.025rem; font-weight: 500; line-height: 1.65; color: var(--color-navy); }

/* ALERT BAR */
.alert-bar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  background: #fff4e6;
  border: 1px solid #f0c080;
  border-left: 5px solid #e07c10;
  border-radius: var(--radius-md);
}
.alert-bar--urgent { background: #fff8e8; border-color: #f2d78c; border-left-color: var(--color-gold); }
.alert-bar-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #e07c10;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 900;
  margin-top: 0.05rem;
}
.alert-bar--urgent .alert-bar-icon { background: var(--color-gold); color: var(--color-navy); }
.alert-bar-body { flex: 1; }
.alert-bar-body strong { display: block; color: var(--color-navy); font-size: 0.95rem; margin-bottom: 0.2rem; }
.alert-bar-body p { margin: 0; font-size: 0.875rem; color: var(--color-text); max-width: none; }

/* DUE DATE CALLOUT */
.due-date {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  background: #fff8e8;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  margin: var(--space-sm) 0;
}
.due-date-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #8a5a00; white-space: nowrap; }
.due-date-value { font-weight: 700; color: var(--color-navy); font-size: 0.95rem; }

/* SUBMISSION HELP BLOCK */
.help-block { padding: var(--space-md); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-top: var(--space-md); }
.help-block-title { display: block; font-size: 0.9rem; font-weight: 700; color: var(--color-navy); margin-bottom: var(--space-sm); }
.help-block ol { margin: 0 0 var(--space-xs); padding-left: 1.25rem; }
.help-block li { font-size: 0.875rem; color: var(--color-text); }
.help-block li + li { margin-top: 0.3rem; }
.help-block-note { margin: var(--space-xs) 0 0; font-size: 0.82rem; color: var(--color-muted); max-width: none; }

/* STEP FLOW */
.step-flow { display: grid; gap: var(--space-sm); margin: var(--space-md) 0; }
.step-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-md);
}
.step-number { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: var(--color-navy); color: #ffffff; border-radius: 50%; font-weight: 700; font-size: 0.875rem; }
.step-number--learn    { background: var(--color-blue);    }
.step-number--practice { background: var(--color-teal);    }
.step-number--do       { background: var(--color-success); }
.step-number--apply    { background: var(--color-purple);  }
.step-content { flex: 1; min-width: 0; }
.step-content h4 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.step-content p  { margin: 0; font-size: 0.875rem; color: var(--color-muted); max-width: none; }

/* ACTIVITY TYPE LABELS */
.activity-type-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: var(--space-sm) 0 var(--space-md); }
.activity-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.activity-label--learn    { background: #dceef8; color: var(--color-navy); border-color: #b8d9ef; }
.activity-label--practice { background: #e2f7f9; color: #1b6b7b;           border-color: #8dd0d8; }
.activity-label--do       { background: #daf4e8; color: #19583d;           border-color: #a6e0c4; }
.activity-label--apply    { background: #f0eafb; color: #5a2d82;           border-color: #c9b2e8; }

.framework-stage {
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(0, 136, 184, 0.07), rgba(21, 234, 196, 0.05));
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-md);
}

.framework-stage-intro {
  max-width: 68ch;
  color: var(--color-muted);
}

.framework-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.framework-focus-grid > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

.framework-focus-grid strong {
  color: var(--color-navy);
}

.throughline-card {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  border-left: 4px solid var(--color-cta);
  border-radius: var(--radius-md);
  background: #f1fbfa;
}

.throughline-card h3 {
  margin-bottom: var(--space-xs);
}

.throughline-continuity {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.activity-handoff-card {
  border-left: 4px solid var(--color-purple);
  background: #faf8fd;
}

.support-card {
  height: 100%;
}

.support-card-link {
  display: inline-flex;
  margin-top: var(--space-sm);
  color: var(--color-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.support-card-link:hover {
  color: var(--color-navy);
}

.discussion-lead {
  font-size: 1.08rem;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .framework-focus-grid {
    grid-template-columns: 1fr;
  }
}

.discussion-design {
  padding: var(--space-md);
  margin: var(--space-md) 0;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-cta);
  border-radius: var(--radius-md);
}

.discussion-design h3 {
  margin-top: 0;
}

.discussion-steps {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.35rem;
}

.discussion-steps li {
  padding-left: 0.25rem;
}

.discussion-reply {
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.discussion-reply p:last-child {
  margin-bottom: 0;
}

.reading-group + .reading-group {
  margin-top: var(--space-sm);
}

.reading-group-description {
  color: var(--color-muted);
}

.reading-group-section + .reading-group-section {
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.reading-group-section h4 {
  color: var(--color-blue);
  font-size: 1rem;
}

/* ACTIVITY BADGES */
.activity-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.65rem; border-radius: var(--radius-sm); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.activity-badge--graded   { background: #daf4e8; color: #19583d; border: 1px solid #a6e0c4; }
.activity-badge--practice  { background: var(--color-surface-muted); color: var(--color-muted); border: 1px solid var(--color-border); }
.activity-badge--resource  { background: var(--color-surface-muted); color: var(--color-muted); border: 1px solid var(--color-border); }

/* QUICK LINKS */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-sm); margin: var(--space-md) 0; }
.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  gap: 0.4rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.quick-link-card:hover { border-color: var(--color-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quick-link-icon  { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; color: var(--color-blue); flex-shrink: 0; }
.quick-link-label { font-size: 0.82rem; font-weight: 700; color: var(--color-navy); }

/* HOME PAGE */
.home-hero {
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.home-hero::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 300px; height: 300px; background: rgba(21,234,196,0.06); border-radius: 50%; pointer-events: none; }
.home-hero h1 { color: #ffffff; max-width: 26ch; margin-bottom: var(--space-sm); }
.home-hero p  { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 90ch; margin-bottom: var(--space-md); }
.home-hero > p:last-of-type { margin-bottom: 0; }
.home-nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); margin: var(--space-md) 0; }
.home-nav-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-cta);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 53, 83, 0.08);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.home-nav-card:hover {
  border-color: var(--color-cta);
  box-shadow: 0 10px 36px rgba(21, 234, 196, 0.30);
  transform: translateY(-4px);
}
.home-nav-card:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}
.home-nav-kicker { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-blue); margin-bottom: 0.3rem; }
.home-nav-card h3 { margin-bottom: 0.3rem; font-size: 1rem; color: var(--color-navy); transition: color 0.18s ease; }
.home-nav-card:hover h3 { color: var(--color-blue); }
.home-nav-card p  { margin: 0; font-size: 0.85rem; color: var(--color-muted); max-width: none; flex: 1; }
.card-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-navy);
  transition: color 0.18s ease, transform 0.18s ease;
}
.home-nav-card:hover .card-action {
  color: var(--color-blue);
  transform: translateX(4px);
}
.mvp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-sm); margin: var(--space-md) 0; }
.mvp-item { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--color-surface); border: 1px solid var(--color-border); border-left: 3px solid var(--color-border); border-radius: var(--radius-md); }
.mvp-number { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; background: var(--color-navy); color: #ffffff; border-radius: 50%; font-size: 0.75rem; font-weight: 700; }
.mvp-item-body { flex: 1; }
.mvp-item-name { font-weight: 700; font-size: 0.875rem; color: var(--color-navy); margin: 0 0 0.1rem; display: block; }
.mvp-item-tier { font-size: 0.72rem; color: var(--color-muted); }

/* Tier 1 — blue accent */
.mvp-item--tier1 { border-left-color: var(--color-blue); }
.mvp-item--tier1 .mvp-number { background: var(--color-blue); }

/* Tier 2 — green accent */
.mvp-item--tier2 { border-left-color: var(--color-success); }
.mvp-item--tier2 .mvp-number { background: var(--color-success); }

/* INFO CARD — static, non-interactive informational card */
.info-card {
  padding: var(--space-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: default;
}

.info-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-navy);
}

.info-card p:last-child { margin-bottom: 0; }

/* TIER LEGEND — non-interactive key for tier categories */
.tier-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-sm) 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.tier-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
}

.tier-legend-swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.tier-legend-swatch--t1 { background: var(--color-blue); }
.tier-legend-swatch--t2 { background: var(--color-success); }

/* COMPONENT LIBRARY PAGE */
.cl-intro { padding: var(--space-md); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-lg); }
.cl-section { margin-bottom: var(--space-xl); }
.cl-section-header { padding-bottom: var(--space-sm); margin-bottom: var(--space-md); border-bottom: 2px solid var(--color-blue); }
.cl-section-header h2 { margin-bottom: 0.2rem; }
.cl-section-header p  { margin: 0; color: var(--color-muted); font-size: 0.9rem; max-width: none; }
.cl-component { margin-bottom: var(--space-lg); padding: var(--space-md); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.cl-component-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-sm); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-border); flex-wrap: wrap; }
.cl-component-meta { flex: 1; }
.cl-component-name { margin: 0 0 0.2rem; color: var(--color-navy); font-size: 1rem; }
.cl-component-desc { margin: 0; color: var(--color-muted); font-size: 0.85rem; max-width: none; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.cl-tag { display: inline-block; padding: 0.18rem 0.55rem; border-radius: var(--radius-sm); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.cl-tag--tier1 { background: var(--color-navy); color: #ffffff; }
.cl-tag--tier2 { background: var(--color-blue);  color: #ffffff; }
.cl-tag--high  { background: #daf4e8; color: #19583d; }
.cl-tag--med   { background: #fff8e8; color: #6f4a00; }
.cl-preview { padding: var(--space-md); background: var(--color-bg); border: 1px dashed var(--color-border); border-radius: var(--radius-sm); }
.cl-preview-label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: var(--space-sm); }

/* DISCUSSION PAGE */
.discussion-intro { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.discussion-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; background: var(--color-blue); color: #ffffff; border-radius: 50%; font-size: 1.3rem; }
.discussion-questions { margin: var(--space-md) 0; }
.discussion-questions h3 { margin-bottom: var(--space-sm); color: var(--color-blue); }
.discussion-questions ol { display: grid; gap: var(--space-sm); padding-left: 1.35rem; margin-bottom: 0; }
.discussion-questions li { line-height: 1.7; max-width: none; font-size: 1rem; padding-left: 0.25rem; }

/* ============================================
   PHASE 3 — WEEK / MODULE FLOW COMPONENTS
   ============================================ */

/* WEEK ROADMAP — "This Week at a Glance" */
.week-roadmap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin: var(--space-md) 0;
}

.roadmap-step {
  flex: 1;
  min-width: 130px;
  cursor: default;
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.roadmap-step--module  { border-top-color: var(--color-navy); }
.roadmap-step--learn   { border-top-color: var(--color-blue); }
.roadmap-step--practice { border-top-color: #2a9aaa; }
.roadmap-step--do      { border-top-color: var(--color-success); }

.roadmap-step-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  color: var(--color-muted);
}
.roadmap-step--module  .roadmap-step-eyebrow { color: var(--color-navy); }
.roadmap-step--learn   .roadmap-step-eyebrow { color: var(--color-blue); }
.roadmap-step--practice .roadmap-step-eyebrow { color: #1b6b7b; }
.roadmap-step--do      .roadmap-step-eyebrow { color: var(--color-success); }

.roadmap-step-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.roadmap-step-detail {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  max-width: none;
  line-height: 1.45;
}

.roadmap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
  font-size: 1.4rem;
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 640px) {
  .week-roadmap { flex-direction: column; }
  .roadmap-arrow { display: none; }
}

/* FLOW CARDS — Week Landing Learn / Practice / Do */
.flow-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.flow-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.flow-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.flow-card--learn    { border-left-color: var(--color-cta); }
.flow-card--practice { border-left-color: #2a9aaa; }
.flow-card--do       { border-left-color: var(--color-success); }

.flow-card-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  color: var(--color-muted);
}
.flow-card--learn    .flow-card-eyebrow { color: var(--color-navy); }
.flow-card--practice .flow-card-eyebrow { color: #1b6b7b; }
.flow-card--do       .flow-card-eyebrow { color: var(--color-success); }

.flow-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--color-navy);
}

.flow-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  max-width: none;
  flex: 1;
}

.flow-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 0.4rem;
}

.flow-card-arrow {
  color: var(--color-cta);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* RESOURCE CARDS — Learn Dashboard */
.resource-cards {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.resource-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resource-card h3 {
  margin: 0;
  font-size: 1rem;
}

.resource-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: none;
  flex: 1;
}

.resource-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* TIME TAG */
.time-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ACTIVITY ROWS — Do Page */
.activity-rows {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.activity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.activity-row-body {
  flex: 1;
  min-width: 200px;
}

.activity-row-body h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1rem;
}

.activity-row-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  max-width: none;
}

.activity-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  text-align: right;
  flex-shrink: 0;
}

.points-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--color-navy);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .activity-row { flex-direction: column; }
  .activity-row-meta { align-items: flex-start; text-align: left; }
}

/* FIGURE CARD — Key Points Page */
.figure-card {
  width: 100%;
  max-width: 860px;
  margin: var(--space-md) auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

/* Images inside figure-card are always fluid and never overflow */
.figure-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .figure-card {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.figure-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: var(--color-surface-muted);
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  padding: var(--space-md);
  gap: 0.35rem;
}

.figure-placeholder small {
  font-weight: 400;
  font-size: 0.8rem;
  max-width: 40ch;
  line-height: 1.5;
}

.figure-caption {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text);
  max-width: none;
  margin: 0;
  line-height: 1.55;
}

/* ============================================
   PHASE 4 — LEARNING MATERIALS PAGE COMPONENTS
   ============================================ */

/* SIDEBAR COMING SOON — placeholder non-link nav item */
.sidebar-coming-soon {
  display: block;
  padding: 0.48rem 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  font-style: italic;
  cursor: default;
}

.sidebar-coming-soon::after {
  content: " — soon";
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sidebar placeholder links (href="#") — remove interactivity cues.
   These are Module 2+ pages not yet built. JS already prevents scroll-to-top. */
.sidebar-nav a[href="#"] {
  color: rgba(255, 255, 255, 0.3) !important;
  cursor: default;
  pointer-events: none;
  font-style: italic;
}

/* Prevent hover state on non-functional sidebar links */
.sidebar-nav a[href="#"]:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
}

/* PROGRESS STEPS — 3-step learner orientation bar */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.progress-step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-muted);
  background: var(--color-surface-muted);
}

.progress-step--learn .progress-step-number {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #ffffff;
}

.progress-step--practice .progress-step-number {
  background: #2a9aaa;
  border-color: #2a9aaa;
  color: #ffffff;
}

.progress-step--complete .progress-step-number {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #ffffff;
}

.progress-step-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.progress-step-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
  line-height: 1.2;
}

.progress-step-desc {
  font-size: 0.7rem;
  color: var(--color-muted);
  white-space: nowrap;
  max-width: none;
  line-height: 1.3;
}

.progress-connector {
  flex: 1;
  min-width: 1.5rem;
  max-width: 3rem;
  height: 2px;
  background: var(--color-border);
  margin: 0 0.35rem;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .progress-step-desc { display: none; }
  .progress-connector { min-width: 0.75rem; max-width: 1.25rem; }
}

/* MODULE SECTION — week learning materials container */
.module-section {
  margin: var(--space-lg) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.module-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-navy);
}

.module-number-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.module-section-header-text {
  flex: 1;
  min-width: 0;
}

.module-section-header h2 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
  color: #ffffff;
  font-family: var(--font-body);
}

.module-section-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  max-width: none;
}

.module-section-body {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
}

@media (max-width: 640px) {
  .module-section-header {
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .module-section-body {
    padding: var(--space-md);
  }
}

/* ACTIVITY CARD GRID — compact module activity cards */
.activity-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.activity-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.activity-card:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.activity-card--video       { border-left-color: var(--color-blue); }
.activity-card--reading     { border-left-color: var(--color-navy); }
.activity-card--interactive { border-left-color: var(--color-cta); }
.activity-card--key-points  { border-left-color: var(--color-cta); }
.activity-card--self-check  { border-left-color: #2a9aaa; }

.activity-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.activity-card h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-navy);
  line-height: 1.3;
}

.activity-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  max-width: none;
  line-height: 1.5;
  flex: 1;
}

.activity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.4rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  gap: 0.35rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .activity-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  .activity-card-grid { grid-template-columns: 1fr; }
}

/* WEEKLY ACTIVITIES SECTION — graded activities at page bottom */
.weekly-activities-section {
  margin: var(--space-xl) 0 0;
  padding: var(--space-lg);
  background: linear-gradient(
    135deg,
    rgba(13, 53, 83, 0.04) 0%,
    rgba(29, 107, 166, 0.02) 100%
  );
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-navy);
  border-radius: var(--radius-md);
}

.weekly-activities-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.weekly-activities-header h2 { margin-bottom: 0.2rem; }
.weekly-activities-header p  { margin: 0; color: var(--color-muted); font-size: 0.9rem; max-width: none; }

.weekly-activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.weekly-activity-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.weekly-activity-card--discussion { border-top-color: var(--color-blue); }
.weekly-activity-card--assignment  { border-top-color: var(--color-navy); }
.weekly-activity-card--test        { border-top-color: var(--color-gold); }

.weekly-activity-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  color: var(--color-navy);
}

.weekly-activity-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: none;
  flex: 1;
  line-height: 1.55;
}

.weekly-activity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .weekly-activities-section { padding: var(--space-md); }
}

/* ============================================
   TIER COLUMNS — Home page 2-column component layout
   ============================================ */

.tier-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.tier-column {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.tier-column-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
}

.tier-column-header--t1 { background: var(--color-blue); }
.tier-column-header--t2 { background: var(--color-success); }

.tier-column-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.tier-column-header-text {
  flex: 1;
}

.tier-column-header-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.tier-column-header-text span {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  max-width: none;
  margin: 0;
}

.tier-list li:last-child {
  border-bottom: none;
}

.tier-list-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.tier-column--t1 .tier-list-number { background: var(--color-blue); }
.tier-column--t2 .tier-list-number { background: var(--color-success); }

@media (max-width: 700px) {
  .tier-columns { grid-template-columns: 1fr; }
}

/* ============================================
   DESIGN SYSTEM — COMPONENT LIBRARY ADDITIONS
   ============================================ */

/* JUMP NAVIGATION */
.jump-nav-section {
  margin: var(--space-md) 0 var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-cta);
  border-radius: var(--radius-md);
}
.jump-nav-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}
.jump-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* TYPE SPECIMEN */
.type-specimen { display: grid; gap: 0.5rem; margin: var(--space-sm) 0; }
.type-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.type-meta {
  flex-shrink: 0;
  width: 140px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.type-sample { flex: 1; margin: 0; min-width: 0; }

/* COLOR SWATCHES */
.color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}
.color-swatch {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.color-chip { display: block; height: 3.5rem; }
.color-info { padding: 0.5rem var(--space-sm); background: var(--color-surface); }
.color-name { display: block; font-size: 0.78rem; font-weight: 700; color: var(--color-navy); margin-bottom: 0.1rem; }
.color-hex  { display: block; font-size: 0.68rem; color: var(--color-muted); font-family: monospace; }
.color-role { display: block; font-size: 0.65rem; color: var(--color-muted); margin-top: 0.1rem; }

/* ICON GRID */
.icon-category-section { margin-bottom: var(--space-md); }
.icon-category-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 var(--space-xs);
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}
.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}
.icon-symbol { font-size: 1.35rem; line-height: 1; display: block; }
.icon-svg { display: block; width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
.icon-label  { font-size: 0.65rem; font-weight: 700; color: var(--color-navy); line-height: 1.3; max-width: none; margin: 0; }

/* JUMBOTRON */
.jumbotron {
  padding: var(--space-xl) var(--space-xl);
  margin: var(--space-sm) 0;
  background: linear-gradient(135deg, var(--color-surface-muted) 0%, #e8f4fb 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.jumbotron h3 { color: var(--color-navy); font-size: 1.5rem; }
.jumbotron p  { color: var(--color-muted); font-size: 0.95rem; max-width: none; margin: 0 0 var(--space-md); text-align: left; }
.jumbotron .button-row { justify-content: flex-start; }

/* SECTION BANNER */
.section-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-sm) 0;
  background: var(--color-navy);
  border-radius: var(--radius-md);
  color: #ffffff;
}
.section-banner-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 1.1rem;
}
.section-banner h3 { margin: 0 0 0.2rem; color: #ffffff; font-size: 1rem; }
.section-banner p  { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.875rem; max-width: none; }

/* COLUMN LAYOUTS */
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin: var(--space-sm) 0; }
.col-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin: var(--space-sm) 0; }
.col-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); margin: var(--space-sm) 0; }
.col-panel {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.col-panel strong { display: block; color: var(--color-navy); margin-bottom: 0.2rem; }
.col-panel p { margin: 0; max-width: none; font-size: 0.82rem; }
@media (max-width: 640px) {
  .col-2, .col-3, .col-4 { grid-template-columns: 1fr; }
}

/* TWO PANEL */
.two-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-sm) 0;
}
.two-panel-item {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.two-panel-item h4 { margin-bottom: var(--space-xs); }
.two-panel-item p  { margin: 0; font-size: 0.875rem; max-width: none; }
@media (max-width: 640px) {
  .two-panel { grid-template-columns: 1fr; }
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: var(--space-sm) 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.9rem;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-md);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.2rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-surface);
  border: 2.5px solid var(--color-blue);
  border-radius: 50%;
  z-index: 1;
}
.timeline-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.timeline-content h4 { margin-bottom: 0.2rem; font-size: 0.95rem; }
.timeline-content p  { margin: 0; font-size: 0.875rem; color: var(--color-muted); max-width: none; }

/* LINK VARIANTS */
a.link-ext::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.3em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231d6ba6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
a.link-dl::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.3em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231d6ba6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
a.link-modal::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.3em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231d6ba6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* ============================================
   MEDIA MODAL
   Placeholder overlay for video / image links.
   ============================================ */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-modal[hidden] { display: none; }
.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 53, 83, 0.72);
}
.media-modal-box {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  max-width: 600px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.media-modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-navy);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease;
}
.media-modal-close:hover { background: var(--color-surface-muted); }
.media-modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-muted);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  min-height: 240px;
  gap: var(--space-sm);
}
.media-modal-play {
  width: 52px;
  height: 52px;
  stroke: var(--color-muted);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: var(--space-xs);
}
.media-modal-placeholder p  { font-weight: 700; color: var(--color-navy); margin: 0; font-size: 1rem; max-width: none; }
.media-modal-placeholder span { font-size: 0.85rem; color: var(--color-muted); max-width: 34ch; line-height: 1.5; }

/* CLICK AND REVEAL — native <details> element */
details.click-reveal {
  margin: var(--space-sm) 0;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-cta);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}
details.click-reveal summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--space-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-navy);
  list-style: none;
  user-select: none;
  transition: background 0.14s ease;
}
details.click-reveal summary::-webkit-details-marker { display: none; }
details.click-reveal summary::after {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-cta);
  color: var(--color-navy);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
details.click-reveal[open] summary::after { content: "−"; }
details.click-reveal summary:hover { background: var(--color-surface-muted); }
.click-reveal-body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* FLIP CARDS */
.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-md);
  margin: var(--space-sm) 0;
}

.flip-card-instructions {
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
  font-weight: 600;
}
.flip-card {
  height: 180px;
  perspective: 900px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
  cursor: pointer;
}
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-md); }

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: none;
  }
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  text-align: center;
  border: 1px solid var(--color-border);
}
.flip-card-front {
  background: var(--color-navy);
  border-left: 3px solid var(--color-cta);
}
.flip-card-front h4 { margin: 0 0 0.3rem; font-size: 0.95rem; color: #ffffff; }
.flip-card-front p  { margin: 0; font-size: 0.72rem; color: rgba(255,255,255,0.65); max-width: none; }
.flip-card-front .flip-card-hint { color: rgba(255,255,255,0.5); }
.flip-card-hint {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-cta);
  margin-top: var(--space-xs);
}
.flip-card-back {
  background: var(--color-navy);
  transform: rotateY(180deg);
}
.flip-card-back p { margin: 0; font-size: 0.875rem; color: rgba(255,255,255,0.9); max-width: none; line-height: 1.6; }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0;
  font-size: 0.875rem;
}
.breadcrumb li { max-width: none; margin: 0; display: flex; align-items: center; gap: 0.35rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--color-muted); }
.breadcrumb a { color: var(--color-blue); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { color: var(--color-navy); }
.breadcrumb li:last-child span { color: var(--color-muted); font-weight: 400; }

/* PREV / NEXT NAVIGATION */
.prev-next-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: var(--space-sm) 0;
}
.prev-next-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 700;
  padding: 0.35rem var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background 0.14s ease;
  flex: 1;
}
.prev-next-link:hover { background: var(--color-surface-muted); color: var(--color-navy); }
.prev-next-link--next { justify-content: flex-end; text-align: right; }
.prev-next-meta { display: flex; flex-direction: column; }
.prev-next-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); }
.prev-next-title { font-size: 0.9rem; color: var(--color-navy); }
.prev-next-arrow { font-size: 2rem; font-weight: 900; color: var(--color-cta); flex-shrink: 0; }

/* VERTICAL TABS */
.vtabs {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-sm) 0;
}
.vtab-list {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  background: var(--color-surface-muted);
  border-right: 1px solid var(--color-border);
  padding: 0;
  margin: 0;
  list-style: none;
}
.vtab-btn {
  display: block;
  width: 100%;
  padding: 0.75rem var(--space-md);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  text-align: left;
  transition: background 0.14s ease;
  white-space: nowrap;
}
.vtab-btn:last-child { border-bottom: none; }
.vtab-btn:hover:not([aria-selected="true"]) { background: var(--color-surface); }
.vtab-btn[aria-selected="true"] {
  background: var(--color-cta);
  color: var(--color-navy);
  box-shadow: none;
}
.vtab-panels { flex: 1; padding: var(--space-md); background: var(--color-surface); min-width: 0; }
@media (max-width: 640px) {
  .vtabs { flex-direction: column; }
  .vtab-list { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--color-border); }
  .vtab-btn { border-bottom: none; border-right: 1px solid var(--color-border); }
  .vtab-btn[aria-selected="true"] { box-shadow: none; }
}

/* MATCHING ACTIVITY */
.matching-activity { display: grid; gap: var(--space-sm); margin: var(--space-sm) 0; }
.matching-pair {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr;
  align-items: center;
  gap: var(--space-sm);
}
.matching-term, .matching-def {
  padding: 0.55rem var(--space-sm);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}
.matching-arrow {
  text-align: center;
  font-size: 1rem;
  color: var(--color-cta);
  font-weight: 700;
}
@media (max-width: 500px) {
  .matching-pair { grid-template-columns: 1fr; }
  .matching-arrow::after { content: "↓"; }
  .matching-arrow { content: ""; }
}

/* DROPDOWN QUIZ */
.dropdown-question { margin: var(--space-sm) 0; }
.dropdown-question label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}
.dropdown-question select {
  width: 100%;
  padding: 0.65rem var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
}

/* AI COMPONENTS */
.ai-block {
  padding: var(--space-md);
  margin: var(--space-sm) 0;
  border-radius: var(--radius-md);
  border: 1px solid #c9a8e8;
  border-left: 4px solid #9b59b6;
  background: #faf7ff;
}
.ai-label {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  background: #f0e8fb;
  border: 1px solid #c9a8e8;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a2d82;
  margin-bottom: var(--space-sm);
}
.ai-block h3, .ai-block h4 { color: #3d1a6e; margin-bottom: var(--space-xs); }
.ai-block p  { max-width: none; color: var(--color-text); }
.ai-block textarea {
  width: 100%;
  min-height: 80px;
  margin-top: var(--space-xs);
  padding: 0.65rem var(--space-sm);
  border: 1px solid #c9a8e8;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #f8f4fe;
  resize: vertical;
  color: var(--color-text);
}

/* COMING SOON */
.coming-soon-block {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.coming-soon-badge {
  flex-shrink: 0;
  padding: 0.18rem 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

/* RESOURCE CARD VARIANTS */
.resource-card--download { border-left-color: var(--color-success); }
.resource-card--external { border-left-color: var(--color-blue); }
.resource-card--tool     { border-left-color: var(--color-gold); }

/* ============================================
   RESPONSIVE LAYOUT — Main page structure
   Prototype sidebar collapses to a top nav bar
   on tablet and mobile devices.
   ============================================ */

/* Tablet → sidebar becomes a compact horizontal top bar */
@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    top: auto;
    flex: none;
    width: 100%;
    height: auto;
    padding: var(--space-xs) var(--space-md);
  }

  /* Hide verbose sidebar elements — only keep nav links */
  .sidebar-badge,
  .sidebar-title {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: var(--space-xs) 0;
  }

  .sidebar-nav li {
    margin: 0;
  }

  /* Section labels become visual separators — hide text, add gap */
  .nav-section-label {
    display: none;
  }

  .sidebar-nav a {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .sidebar-nav a.active,
  .sidebar-nav a[aria-current="true"] {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-cta);
  }

  /* Remove the active left-border indicator — not visible in pill layout */
  .sidebar-nav a.active::before,
  .sidebar-nav a[aria-current="true"]::before {
    display: none;
  }

  /* Full width for main content on all pages when sidebar is on top */
  .main-content,
  .main-content--full {
    max-width: none;
    padding: var(--space-md) var(--space-lg);
  }
}

/* Mobile → tighten padding, single-column where applicable */
@media (max-width: 600px) {
  .sidebar {
    padding: var(--space-xs) var(--space-sm);
  }

  .sidebar-nav a {
    font-size: 0.78rem;
    padding: 0.25rem 0.55rem;
  }

  .main-content,
  .main-content--full {
    padding: var(--space-sm);
  }

  .course-header {
    padding: var(--space-md);
  }

  .home-hero {
    padding: var(--space-md);
  }

  /* Ensure section-header badges wrap cleanly on small screens */
  .cl-section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

/* PRINT */
@media print {
  .sidebar, .inpage-nav, .page-toc, .page-footer, .home-hero .button-row { display: none !important; }
  .page-wrapper { display: block; }
  .main-content { max-width: none; padding: 1rem 0; }
  .course-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================
   COMPONENT LIBRARY — STICKY LEFT NAV
   Documentation-style two-column layout.
   ============================================ */

.cl-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.cl-left-nav {
  flex: 0 0 164px;
  position: sticky;
  top: var(--space-lg);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0 var(--space-xs);
}

.cl-left-nav-title {
  display: block;
  padding: 0 0.85rem var(--space-xs);
  margin-bottom: var(--space-xs);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

.cl-left-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-left-nav li {
  max-width: none;
  margin: 0;
}

.cl-left-nav a {
  display: block;
  padding: 0.42rem 0.85rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  border-left: 3px solid transparent;
  line-height: 1.35;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.cl-left-nav a:hover {
  background: var(--color-surface-muted);
  color: var(--color-navy);
  border-left-color: var(--color-border);
}

.cl-left-nav a.active,
.cl-left-nav a[aria-current="true"] {
  background: var(--color-surface-muted);
  color: var(--color-navy);
  font-weight: 700;
  border-left-color: var(--color-cta);
}

.cl-sections {
  flex: 1;
  min-width: 0;
}

/* COMPONENT STATUS BADGES */
.cl-status-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cl-status-badge--available {
  color: #19583d;
  background: #d4edda;
  border: 1px solid #a8d5b5;
}

.cl-status-badge--prototype {
  color: #1a4e78;
  background: #cce5f6;
  border: 1px solid #90c8ef;
}

.cl-status-badge--planned {
  color: #7a5a00;
  background: #fff3c2;
  border: 1px solid #f2d878;
}

.cl-status-badge--future {
  color: #555566;
  background: #ebebf0;
  border: 1px solid #c8c8d4;
}

.cl-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.cl-section-header-row h2 {
  margin-bottom: 0;
}

/* PLACEHOLDER CARD — non-interactive, used in hub pages for planned pages */
.home-nav-card--placeholder {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
  border-style: dashed;
}

.home-nav-card--placeholder::after {
  display: none;
}

/* COURSE EXPERIENCE FLOW — visual step flow on hub pages */
.ce-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: var(--space-sm) 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.ce-flow-step {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.ce-flow-step--module  { border-color: var(--color-navy);    color: var(--color-navy); }
.ce-flow-step--learn   { border-color: var(--color-blue);    color: var(--color-blue); }
.ce-flow-step--practice { border-color: #8a5a00; color: #8a5a00; }
.ce-flow-step--do      { border-color: var(--color-success); color: var(--color-success); }

.ce-flow-arrow {
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .cl-layout {
    flex-direction: column;
  }
  .cl-left-nav {
    flex: none;
    width: 100%;
    position: static;
    max-height: none;
    padding: var(--space-sm);
  }
  .cl-left-nav-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.35rem;
  }
  .cl-left-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .cl-left-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--color-surface-muted);
    font-size: 0.82rem;
  }
  .cl-left-nav a.active,
  .cl-left-nav a[aria-current="true"] {
    border-left: none;
    border-bottom-color: var(--color-cta);
  }
  .cl-left-nav a:hover {
    border-left: none;
    border-bottom-color: var(--color-border);
  }
}

/* ============================================
   H5P ACTIVITY EMBED
   Standardized container for H5P iframe activities.
   Prototype: shows a branded placeholder panel.
   Production: replace .h5p-embed-frame contents
   with a live <iframe> and remove aria-hidden.
   ============================================ */

.h5p-embed {
  margin: var(--space-md) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.h5p-embed-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem var(--space-md);
  background: var(--color-navy);
}

.h5p-embed-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  background: rgba(21, 234, 196, 0.14);
  border: 1px solid rgba(21, 234, 196, 0.32);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1;
}

.h5p-embed-title {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.h5p-embed-subtitle {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.h5p-embed-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 260px;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-surface-muted);
  border-top: 1px dashed var(--color-border);
  text-align: center;
}

.h5p-placeholder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  background: var(--color-blue);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.h5p-placeholder-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  max-width: none;
}

.h5p-placeholder-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
  max-width: 46ch;
  line-height: 1.6;
}

/* ============================================
   INFO CARD — DARK MODIFIER
   For high-contrast comparison layouts.
   ============================================ */

.info-card--dark {
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.info-card--dark h3 {
  color: #ffffff;
}

.info-card--dark p,
.info-card--dark li {
  color: rgba(255, 255, 255, 0.82);
  max-width: none;
}

.info-card--dark ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.info-card--dark li + li {
  margin-top: 0.4rem;
}

.info-card--dark .card-eyebrow {
  color: rgba(255, 255, 255, 0.48);
}

/* ============================================
   ACCESSIBILITY UTILITY
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   MULTI-SELECT (CHECK ALL THAT APPLY)
   ============================================ */

.multi-select {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-cta);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: var(--space-md) 0;
}

.multi-select h3 {
  margin-bottom: var(--space-xs);
}

.multi-select-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
  max-width: none;
}

.multi-select-hint {
  margin-bottom: var(--space-sm);
  font-size: 0.82rem;
  color: var(--color-muted);
  font-style: italic;
  max-width: none;
}

.multi-select-options {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 var(--space-sm);
  padding: 0;
  border: 0;
}

.multi-select-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem var(--space-sm);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
  user-select: none;
}

.multi-select-option:not(.is-locked):hover {
  border-color: var(--color-blue);
  background: var(--color-surface);
}

.multi-select-option input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--color-blue);
  cursor: pointer;
}

.multi-select-option span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.45;
}

.multi-select-option.is-correct {
  border-color: var(--color-success);
  background: #eef8f3;
}

.multi-select-option.is-correct span {
  color: var(--color-success);
}

.multi-select-option.is-incorrect {
  border-color: var(--color-danger);
  background: #fff0ee;
}

.multi-select-option.is-incorrect span {
  color: var(--color-danger);
}

.multi-select-option.is-missed {
  border-color: var(--color-gold);
  background: #fff8e8;
}

.multi-select-option.is-missed span {
  color: #8a5a00;
}

.multi-select-option.is-locked {
  cursor: default;
  pointer-events: none;
  opacity: 0.9;
}

.multi-select-feedback {
  min-height: 1.5rem;
  margin: var(--space-xs) 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  max-width: none;
}

.multi-select-feedback.is-success { color: var(--color-success); }
.multi-select-feedback.is-error   { color: var(--color-danger); }
.multi-select-feedback.is-partial { color: #8a5a00; }

/* ============================================
   DROPDOWN QUESTION
   ============================================ */

.dropdown-question {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-cta);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: var(--space-md) 0;
}

.dropdown-question h3 {
  margin-bottom: var(--space-xs);
}

.dropdown-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  max-width: none;
}

.dropdown-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.dropdown-select {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 2.5rem 0.65rem var(--space-sm);
  background-color: var(--color-surface-muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%230d3553' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.dropdown-select:focus {
  border-color: var(--color-blue);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.dropdown-select.is-correct {
  border-color: var(--color-success);
  background-color: #eef8f3;
}

.dropdown-select.is-incorrect {
  border-color: var(--color-danger);
  background-color: #fff0ee;
}

.dropdown-feedback {
  min-height: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  max-width: none;
}

.dropdown-feedback.is-success { color: var(--color-success); }
.dropdown-feedback.is-error   { color: var(--color-danger); }

/* ============================================
   CLICK AND REVEAL
   ============================================ */

.reveal-block {
  margin: var(--space-sm) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.reveal-question {
  padding: var(--space-sm) var(--space-md);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  max-width: none;
  line-height: 1.5;
}

.reveal-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem var(--space-md);
  background: var(--color-surface-muted);
  border: 0;
  border-top: 1px solid var(--color-border);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-blue);
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.reveal-trigger:hover {
  background: #dceef8;
  color: var(--color-navy);
}

.reveal-trigger[aria-expanded="true"] {
  background: var(--color-blue);
  color: #ffffff;
  border-top-color: var(--color-blue);
}

.reveal-trigger-icon {
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-left: var(--space-sm);
  display: inline-block;
  transition: transform 0.2s ease;
}

.reveal-trigger[aria-expanded="true"] .reveal-trigger-icon {
  transform: rotate(180deg);
}

.reveal-panel {
  padding: var(--space-sm) var(--space-md);
  background: #eef8f3;
  border-top: 1px solid var(--color-border);
  border-left: 4px solid var(--color-success);
}

.reveal-panel p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  max-width: none;
}

.reveal-panel p + p {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .flip-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* ============================================
   ICON SIZING — contextual overrides
   The icon-svg class sets 22px as default.
   These overrides scale icons down for tight
   contexts: callout circles, labels, nav pills,
   and kicker text.
   ============================================ */

/* Callout circles: SVG replaces letter badge */
.callout-icon .icon-svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Activity label icons */
.activity-label .icon-svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* In-page nav pill icon rules removed — .inpage-nav is now a hidden data source */


/* ============================================
   ACTIVITY LABELS — ensure text is perfectly
   vertically centered within each badge
   ============================================ */

.activity-label {
  line-height: 1;
}

/* ============================================
   SECTION HEADING SPACING
   Extra breathing room before major section
   headings, especially in self-assessment pages.
   ============================================ */

.content-section > .section-header {
  padding-top: var(--space-xs);
}

/* ============================================
   FUTURE DEVELOPMENT NOTE
   Replaces "coming soon" for planned Phase 5
   features. Clearly signals planned work without
   implying the component is broken.
   ============================================ */

.future-dev-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0.65rem var(--space-md);
  margin: var(--space-xs) 0 var(--space-sm);
  background: #f2f2f7;
  border: 1px dashed #b8b8cc;
  border-radius: var(--radius-md);
  color: #555566;
  font-size: 0.82rem;
  line-height: 1.5;
  flex-wrap: wrap;
}

.future-dev-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  background: #e0e0eb;
  border: 1px solid #b8b8cc;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #444455;
  white-space: nowrap;
  margin-top: 0.1rem;
}

/* ============================================
   VIDEO PLACEHOLDER — standardized component
   Use until Kaltura iframe is embedded.
   ============================================ */

.video-placeholder {
  position: relative;
  padding-top: 56.25%;
  background: var(--color-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-sm) 0;
}

.video-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-md);
}

.video-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
}

.video-placeholder-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.video-placeholder-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cta);
  margin-bottom: 0.2rem;
}

.video-placeholder-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: none;
}

.video-placeholder-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  max-width: 38ch;
  line-height: 1.5;
}

/* ============================================
   IMAGE PLACEHOLDER — standardized component
   Use to demonstrate image placement.
   ============================================ */

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: var(--color-surface-muted);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
  gap: 0.5rem;
  padding: var(--space-md);
  margin: var(--space-sm) 0;
}

.img-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--color-border);
  border-radius: 50%;
  color: var(--color-muted);
  opacity: 0.7;
}

.img-placeholder-text {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.875rem;
  margin: 0;
  max-width: none;
}

.img-placeholder-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0;
  max-width: 32ch;
  line-height: 1.5;
}

/* Demo/disabled link state for component library previews */
.btn-demo-disabled,
a.btn-demo-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   TOPIC RAIL — sticky in-page navigation
   Used on week2-module1.html for left-side
   scrolling context (desktop) / top bar (mobile)
   ============================================ */
.module-layout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
}

.topic-rail {
  flex-shrink: 0;
  width: 152px;
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  padding-top: var(--space-md);
}

.topic-rail-heading {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted);
  padding: 0 0.75rem 0.6rem;
  margin: 0;
}

.topic-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-rail-list li + li {
  margin-top: 1px;
}

.topic-rail-link {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  border-left: 2px solid var(--color-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  line-height: 1.3;
}

.topic-rail-link:hover {
  color: var(--color-navy);
  border-left-color: var(--color-cta);
  background: rgba(21, 234, 196, 0.07);
  text-decoration: none;
}

.topic-rail-link.is-active {
  color: var(--color-navy);
  font-weight: 600;
  border-left-color: var(--color-cta);
  background: rgba(21, 234, 196, 0.07);
}

.module-content {
  flex: 1;
  min-width: 0;
}

/* ====================================================
   COURSE OUTLINE — STAT CARDS
   ==================================================== */

.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-navy);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.stat-card-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.stat-card-sub {
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.stat-card--emphasized {
  background: var(--color-navy);
  border: none;
}

.stat-card--emphasized .stat-card-number { color: var(--color-cta); }
.stat-card--emphasized .stat-card-label  { color: rgba(255, 255, 255, 0.65); }

.stat-card-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: var(--space-sm);  margin-top: var(--space-md); }
.grade-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); margin-top: var(--space-md); }

/* ====================================================
   COURSE OUTLINE — MODULE-BASED STRUCTURE
   ==================================================== */

.outline-objectives-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.outline-objectives {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  display: grid;
  gap: 0.5rem;
}

.outline-objective {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
}

.outline-objective::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--color-cta);
  border-radius: 50%;
}

.outline-subobjectives {
  list-style: none;
  padding: 0.3rem 0 0 0.75rem;
  margin: 0.3rem 0 0;
  border-left: 2px solid var(--color-border);
  display: grid;
  gap: 0.2rem;
}

.outline-subobjectives li {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.4;
  padding-left: 0.4rem;
}

.outline-module {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.outline-module-header {
  padding: 0.5rem var(--space-sm);
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.outline-section {
  border-top: 1px solid var(--color-border);
}

.outline-section-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem var(--space-sm);
  background: var(--color-surface-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
}

.outline-section-bar .icon-svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.outline-section--learn .outline-section-bar    { color: var(--color-blue); }
.outline-section--practice .outline-section-bar { color: var(--color-success); }

.outline-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem var(--space-sm);
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

.outline-item-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--color-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outline-item-name {
  flex: 1;
  min-width: 0;
}

.outline-deliverables {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-sm);
}

.outline-deliverables-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem var(--space-sm);
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-navy);
}

.outline-deliverables-bar .icon-svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.outline-deliverables .outline-item:first-of-type {
  border-top: none;
}

.outline-apply {
  background: #f7f2fd;
  border: 1px solid #ddd0f5;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-sm);
}

.outline-apply-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem var(--space-sm);
  background: #ede4fb;
  border-bottom: 1px solid #ddd0f5;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #5a3a8c;
}

.outline-apply-bar .icon-svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.outline-apply .outline-item {
  border-top-color: #ddd0f5;
}

.outline-apply .outline-item:first-of-type {
  border-top: none;
}

.outline-item--capstone {
  background: #ede4fb;
  font-weight: 600;
}

/* ============================================
   COURSE PAGE GENERATOR PROTOTYPE
   Demonstrates how centralized snippets can be
   generated from structured authoring fields.
   ============================================ */

.generator-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1.28fr);
  gap: var(--space-lg);
  align-items: start;
  margin-top: var(--space-md);
}

.generator-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.generator-input-panel {
  padding: var(--space-lg);
  position: sticky;
  top: var(--space-md);
}

.generator-output-panel {
  overflow: hidden;
}

.generator-panel-header,
.generator-output-header,
.generator-code-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  align-items: flex-start;
}

.generator-output-header,
.generator-code-header {
  padding: var(--space-md);
}

.generator-output-header {
  border-bottom: 1px solid var(--color-border);
}

.generator-code-header {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.generator-panel-header h3,
.generator-output-header h3,
.generator-code-header h3 {
  margin-bottom: 0;
}

.generator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.generator-field {
  display: grid;
  gap: 0.35rem;
}

.generator-field--full {
  grid-column: 1 / -1;
}

.generator-field label {
  color: var(--color-navy);
  font-size: 0.84rem;
  font-weight: 700;
}

.generator-form input,
.generator-form select,
.generator-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem var(--space-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.45;
}

.generator-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.generator-form > .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: var(--space-xs);
}

.generator-form input:focus,
.generator-form select:focus,
.generator-form textarea:focus {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 107, 166, 0.15);
}

.generator-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.generator-preview {
  min-height: 400px;
  padding: var(--space-md);
  background: var(--color-bg);
  overflow: auto;
}

.generator-preview .uma-course-template {
  max-width: 860px;
  margin: 0 auto;
}

.generator-preview .main-content {
  max-width: none;
  padding: 0;
}

.generator-preview .course-header {
  margin-bottom: var(--space-md);
}

.generator-preview .page-toc {
  display: none;
}

.empty-state {
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  max-width: none;
  margin: 0;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  padding: var(--space-lg);
}

.generator-code-box {
  max-height: 320px;
  margin: 0;
  padding: var(--space-md);
  overflow: auto;
  color: #dceef8;
  background: #102b3f;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.generator-code-box code {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

.generator-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--color-success);
  font-size: 0.82rem;
  font-weight: 700;
  max-width: none;
}

/* Mobile: convert rail to sticky horizontal top bar */
@media (max-width: 768px) {
  .module-layout {
    flex-direction: column;
    gap: 0;
  }

  .topic-rail {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    padding: 0;
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-cta);
    box-shadow: 0 2px 8px rgba(13, 53, 83, 0.08);
    margin-bottom: var(--space-md);
  }

  .topic-rail-heading {
    display: none;
  }

  .topic-rail-list {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topic-rail-list::-webkit-scrollbar {
    display: none;
  }

  .topic-rail-link {
    white-space: nowrap;
    flex-shrink: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.6rem 0.875rem;
    font-size: 0.8rem;
    margin-bottom: -2px;
  }

  .topic-rail-link:hover,
  .topic-rail-link.is-active {
    background: transparent;
    border-left-color: transparent;
    border-bottom-color: var(--color-cta);
    color: var(--color-navy);
  }

  .module-content {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .generator-shell {
    grid-template-columns: 1fr;
  }

  .generator-input-panel {
    position: static;
  }

  .generator-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .generator-output-header,
  .generator-code-header {
    display: grid;
  }

  .generator-actions {
    justify-content: stretch;
  }
}

/* ============================================
   WIDGET STEP 1
   ============================================ */

body.widget-step-page {
  color: var(--color-navy);
  background: #f5f7f9;
  line-height: 1.35;
}

.widget-step-shell {
  min-height: 100vh;
  padding: 32px 40px;
}

.widget-step-card {
  width: min(100%, 1070px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
}

.widget-step-content {
  padding: 22px 42px 8px;
}

.widget-step-begin-panel {
  width: min(100%, 760px);
  margin: 0 auto;
}

.widget-step-badge-divider {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}

.widget-step-badge-divider::before,
.widget-step-badge-divider::after {
  content: "";
  height: 2px;
  background: var(--color-cta);
}

.widget-step-badge-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.widget-step-title {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

.widget-step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-step-item {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 7px 28px 7px 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f6fc, #edf4fb);
}

.widget-step-item-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin-right: 28px;
  object-fit: contain;
}

.widget-step-item p,
.widget-step-note p,
.widget-step-support-copy p {
  margin: 0;
}

.widget-step-item p {
  font-size: 1.05rem;
  color: var(--color-navy);
}

.widget-step-item strong {
  color: var(--color-blue);
  font-weight: 700;
}

.widget-step-note {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  padding: 12px 28px 14px 22px;
  border-left: 8px solid #007d8a;
  border-radius: 8px;
  background: linear-gradient(90deg, #d7f4f3, #d9f5f4);
}

.widget-step-note-icon {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.widget-step-note-copy {
  flex: 1;
}

.widget-step-note-copy h2 {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.2;
  color: var(--color-blue);
}

.widget-step-note-copy p {
  max-width: 590px;
  font-size: 0.98rem;
  line-height: 1.28;
  color: var(--color-navy);
}

.widget-step-support {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 14px;
  padding: 18px 66px 21px;
  border-top: 1px solid var(--color-border);
}

.widget-step-support-icon {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.widget-step-support-copy h2 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.2;
  color: var(--color-navy);
}

.widget-step-support-copy p {
  max-width: 370px;
  font-size: 0.98rem;
  line-height: 1.28;
  color: var(--color-navy);
}

@media (max-width: 720px) {
  .widget-step-shell {
    padding: 18px 12px;
  }

  .widget-step-content {
    padding: 24px 18px 20px;
  }

  .widget-step-badge-divider {
    gap: 10px;
  }

  .widget-step-title {
    font-size: 1.35rem;
  }

  .widget-step-item {
    min-height: 68px;
    padding: 10px 16px;
  }

  .widget-step-item-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    margin-right: 16px;
  }

  .widget-step-item p {
    font-size: 0.98rem;
  }

  .widget-step-note {
    gap: 16px;
    padding: 14px 16px 16px;
  }

  .widget-step-note-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .widget-step-note-copy h2 {
    text-align: left;
  }

  .widget-step-support {
    gap: 18px;
    padding: 20px 24px 24px;
  }

  .widget-step-support-icon {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 500px) {
  .widget-step-item,
  .widget-step-note,
  .widget-step-support {
    align-items: flex-start;
  }

  .widget-step-item-icon,
  .widget-step-note-icon,
  .widget-step-support-icon {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .widget-step-item-icon {
    margin-right: 14px;
  }

  .widget-step-note {
    gap: 14px;
  }

  .widget-step-support {
    padding-inline: 18px;
  }
}

/* ============================================
   RESEARCH PRESENTATION PAGE
   ============================================ */

.presentation-page {
  background:
    linear-gradient(180deg, rgba(238, 244, 247, 0.85) 0%, rgba(247, 249, 251, 0.4) 42rem),
    var(--color-bg);
}

.presentation-page .skip-link {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  z-index: 100;
  transform: translateY(-150%);
}

.presentation-page .skip-link:focus {
  transform: translateY(0);
}

.presentation-hero {
  position: relative;
  display: flex;
  min-height: min(720px, 84vh);
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
  background: #0d3553;
}

.presentation-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presentation-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 53, 83, 0.94) 0%, rgba(13, 53, 83, 0.78) 45%, rgba(13, 53, 83, 0.28) 100%),
    linear-gradient(0deg, rgba(13, 53, 83, 0.88) 0%, rgba(13, 53, 83, 0) 42%);
}

.presentation-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem) var(--space-lg);
}

.presentation-hero .course-label {
  color: var(--color-cta);
}

.presentation-hero h1 {
  max-width: 920px;
  color: #ffffff;
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: 1.05;
}

.presentation-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.presentation-hero-link {
  color: #ffffff;
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.presentation-hero-link:hover,
.presentation-hero-link:focus {
  color: var(--color-navy);
  background: var(--color-cta);
  border-color: var(--color-cta);
}

.presentation-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: var(--space-lg);
}

.presentation-progress {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg);
  padding: 0.75rem var(--space-lg);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.presentation-progress a {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  color: var(--color-navy);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.presentation-progress a:hover,
.presentation-progress a:focus {
  color: var(--color-navy);
  background: var(--color-surface-muted);
}

.presentation-progress-home {
  color: #ffffff !important;
  background: var(--color-navy);
}

.presentation-progress-home:hover,
.presentation-progress-home:focus {
  color: var(--color-navy) !important;
  background: var(--color-cta) !important;
}

.presentation-slide {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.presentation-slide .section-header {
  max-width: 860px;
  margin-bottom: var(--space-lg);
}

.presentation-slide .section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.presentation-slide--band {
  margin-right: calc(-1 * var(--space-lg));
  margin-left: calc(-1 * var(--space-lg));
  padding-right: var(--space-lg);
  padding-left: var(--space-lg);
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.presentation-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
  gap: var(--space-lg);
  align-items: start;
}

.presentation-before-after,
.presentation-evidence-grid,
.presentation-component-grid,
.presentation-claim-grid,
.presentation-metric-row {
  display: grid;
  gap: var(--space-md);
}

.presentation-before-after article,
.presentation-evidence-card,
.presentation-claim-grid article {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.presentation-tag,
.presentation-source {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: var(--space-xs);
  padding: 0.22rem 0.55rem;
  color: #ffffff;
  background: var(--color-danger);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.presentation-tag--good {
  color: var(--color-navy);
  background: var(--color-cta);
}

.presentation-source {
  color: var(--color-navy);
  background: var(--color-surface-muted);
}

.presentation-evidence-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.presentation-evidence-card h3,
.presentation-claim-grid h3 {
  margin-top: 0;
}

.presentation-evidence-card a {
  font-weight: 700;
}

.presentation-metric-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-lg);
}

.presentation-component-grid,
.presentation-claim-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.presentation-component-grid > * {
  min-width: 0;
  height: 100%;
}

.presentation-tabs,
.presentation-resource-cards {
  min-width: 0;
}

.presentation-resource-cards {
  display: grid;
}

.presentation-resource-cards .resource-card {
  height: 100%;
}

.presentation-share-panel {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.presentation-share-panel h3,
.presentation-share-panel p {
  margin: 0;
}

.presentation-share-panel p {
  margin-top: 0.25rem;
}

.research-brief-hero {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(13, 53, 83, 0.98), rgba(29, 107, 166, 0.92)),
    var(--color-navy);
}

.research-brief-hero-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--space-lg);
}

.research-brief-hero h1 {
  max-width: 980px;
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1.08;
}

.research-brief-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
}

.automation-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.automation-layer-grid article,
.automation-source-card,
.automation-output-shell {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.automation-layer-grid article {
  border-top: 6px solid var(--color-blue);
}

.automation-layer-grid .automation-level--generator:has(.automation-hidden-generator[open]) {
  grid-column: 1 / -1;
}

.automation-extension-preview {
  margin: var(--space-sm) 0;
}

.automation-extension-preview img {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.automation-extension-preview figcaption {
  margin-top: var(--space-xs);
  color: var(--color-muted);
  font-size: 0.82rem;
}

.automation-hidden-generator {
  margin-top: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.automation-hidden-generator summary {
  display: grid;
  gap: 0.2rem;
  padding: var(--space-md);
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
}

.automation-hidden-generator summary::-webkit-details-marker {
  display: none;
}

.automation-hidden-generator summary span {
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.automation-hidden-generator summary strong {
  font-size: 1.12rem;
}

.automation-hidden-generator summary strong::after {
  content: " +";
  color: var(--color-blue);
}

.automation-hidden-generator[open] summary strong::after {
  content: " -";
}

.automation-hidden-generator-body {
  padding: 0 var(--space-md) var(--space-md);
}

.automation-source-card h3,
.automation-output-shell .course-header {
  margin-top: 0;
}

.automation-output-shell {
  padding: var(--space-lg);
}

.automation-output-shell .main-content,
.automation-output-shell .content-section {
  max-width: none;
}

.automation-output-shell .course-header {
  margin-bottom: var(--space-md);
}

.presentation-page .week-roadmap {
  margin-top: 0;
}

.presentation-page .roadmap-step {
  min-width: 0;
}

.presentation-page .scenario-block {
  margin-top: 0;
}

@media (max-width: 1020px) {
  .presentation-evidence-grid,
  .presentation-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation-split,
  .presentation-component-grid,
  .presentation-claim-grid,
  .automation-layer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .presentation-hero {
    min-height: 680px;
  }

  .presentation-hero::after {
    background: linear-gradient(0deg, rgba(13, 53, 83, 0.96) 0%, rgba(13, 53, 83, 0.78) 68%, rgba(13, 53, 83, 0.4) 100%);
  }

  .presentation-hero-content,
  .presentation-main,
  .presentation-slide--band {
    padding-right: var(--space-sm);
    padding-left: var(--space-sm);
  }

  .presentation-progress {
    margin-right: calc(-1 * var(--space-sm));
    margin-left: calc(-1 * var(--space-sm));
    padding-right: var(--space-sm);
    padding-left: var(--space-sm);
  }

  .presentation-slide--band {
    margin-right: calc(-1 * var(--space-sm));
    margin-left: calc(-1 * var(--space-sm));
  }

  .presentation-evidence-grid,
  .presentation-metric-row {
    grid-template-columns: 1fr;
  }

  .presentation-share-panel {
    display: grid;
  }

  .research-brief-hero-inner {
    padding-right: var(--space-sm);
    padding-left: var(--space-sm);
  }
}
