@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@700;900&family=Roboto:wght@400;500;700;800;900&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;
}

.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-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;
}

/* ============================================
   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;
}

/* ============================================
   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[target="_blank"]::after {
  content: "↗";
}

.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;
}

/* ============================================
   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; }

/* 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: 0.82rem;
  height: 0.82rem;
  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);
  }
}

/* BEGIN MIGRATED UMA DESIGN SYSTEM - authoritative implementation */
/*
====================================================================
UMA D2L DESIGN SYSTEM
Version: 1.0
Author: Lea Vreeland

Purpose:
Master stylesheet for UMA D2L HTML course pages.

Used for:
- Getting Started Pages
- Course Design and Schedule
- Course Syllabus
- Course Outline
- Week Overview Pages
- Module Overview Pages
- Module Key Points Pages
- Practice / Resource Pages

Not used for:
- Native D2L Discussions
- Native D2L Assignments
- Native D2L Quizzes
- Native D2L Grades
====================================================================
*/

/* ==========================================================
   01. ROOT VARIABLES
========================================================== */

:root {
  --uma-font-heading: "merriweather", serif;
  --uma-font-body: "roboto", Arial, Helvetica, sans-serif;

  --uma-font-weight-regular: 400;
  --uma-font-weight-medium: 500;
  --uma-font-weight-semibold: 600;
  --uma-font-weight-bold: 700;
  --uma-font-weight-heading: 700;

  --uma-legend-blue: #0D3553;
  --uma-hero-blue: #1D6BA6;
  --uma-horizon-blue: #0095C8;
  --uma-journey-green: #15EAC4;

  --uma-gracious-gray: #F9F9F9;
  --uma-medium-gray-1: #DBDBDB;
  --uma-medium-gray-2: #A5A5A5;
  --uma-integrity-gray: #444444;

  --uma-white: #ffffff;
  --uma-black: #000000;

  --uma-info-bg: #eef8fc;
  --uma-warning-bg: #fff5f5;
  --uma-warning-border: #c0392b;
  --uma-warning-text: #9f2f24;

  --uma-radius-sm: 8px;
  --uma-radius-md: 14px;
  --uma-radius-lg: 22px;
  --uma-radius-pill: 999px;

  --uma-shadow-soft: 0 10px 28px rgba(13, 53, 83, 0.08);
  --uma-shadow-card: 0 6px 18px rgba(13, 53, 83, 0.06);

  --uma-space-1: 4px;
  --uma-space-2: 8px;
  --uma-space-3: 12px;
  --uma-space-4: 16px;
  --uma-space-5: 20px;
  --uma-space-6: 24px;
  --uma-space-7: 32px;
  --uma-space-8: 40px;

  --uma-max-width: 1040px;
  --uma-text-width: 760px;
}
/* ==========================================================
   02. RESET / BASE
========================================================== */

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--uma-font-body);
  color: var(--uma-integrity-gray);
  background: var(--uma-white);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ==========================================================
   LINKS
========================================================== */

:where(.uma-page) :where(a:link),
:where(.uma-page) :where(a:visited) {
  color: var(--uma-hero-blue);

  font-weight: 700;

  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

:where(.uma-page) :where(a:hover),
:where(.uma-page) :where(a:active) {
  color: var(--uma-legend-blue);

  text-decoration-thickness: 2px;
}

:where(.uma-page) :where(a:focus-visible) {
  outline: 3px solid rgba(29, 107, 166, 0.35);
  outline-offset: 3px;
}

:where(.uma-page) :where(a[target="_blank" i]) {
  --uma-link-icon: url("../icons/uma/uma-external-link.svg");
}

:where(.uma-page) :where(a[download]) {
  --uma-link-icon: url("../icons/uma/uma-download.svg");
}

:where(.uma-page) :where(a[href^="mailto:" i]) {
  --uma-link-icon: url("../icons/uma/uma-email.svg");
}

:where(.uma-page) :where(a[href^="tel:" i]) {
  --uma-link-icon: url("../icons/uma/uma-phone.svg");
}

:where(.uma-page)
  :where(
    a[target="_blank" i],
    a[download],
    a[href^="mailto:" i],
    a[href^="tel:" i]
  )::before {
  content: "";

  display: inline-block;

  width: 1.125rem;
  height: 1.125rem;
  margin-inline-end: 7px;

  background-color: currentColor;

  vertical-align: -0.2em;
  pointer-events: none;

  -webkit-mask-image: var(--uma-link-icon);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;

  mask-image: var(--uma-link-icon);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

/* ==========================================================
   CONTENT HEADINGS
========================================================== */

.uma-page h2 {
  margin: 2rem 0 1rem;

  color: var(--uma-legend-blue);

  font-family: var(--uma-font-body);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
}

.uma-page h3 {
  margin: 1.75rem 0 0.75rem;

  color: var(--uma-legend-blue);

  font-family: var(--uma-font-body);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}

.uma-page h4 {
  margin: 1.5rem 0 0.5rem;

  color: var(--uma-legend-blue);

  font-family: var(--uma-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

/* ==========================================================
   COMPONENT HEADING OVERRIDES
   These components have their own typography and should
   not inherit the standard content heading sizes.
========================================================== */

.uma-section-header h2,
.uma-week-heading h2 {
  margin: 0;
}
/* ==========================================================
   INSTRUCTION LINE
========================================================== */

.uma-instruction-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 850px;
    margin: var(--uma-space-5) 0 var(--uma-space-6);
}

.uma-instruction-icon-wrap {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: auto;
    margin: 0;
}

.uma-instruction-icon {
    display: block;
    width: 42px;
    height: 42px;
    margin: 0;
    object-fit: contain;
}

.uma-instruction-content {
    flex: 1 1 auto;
    min-width: 0;
}

.uma-instruction-content p {
    margin: 0;
    color: #425466;
    line-height: 1.65;
}

.uma-instruction-content strong {
    color: var(--uma-legend-blue);
    font-weight: 700;
}

@media (max-width: 600px) {
    .uma-instruction-line {
        gap: 12px;
        margin: 20px 0 24px;
    }

    .uma-instruction-icon-wrap {
        flex-basis: 36px;
        width: 36px;
    }

    .uma-instruction-icon {
        width: 36px;
        height: 36px;
    }
}
/* Quote */
.uma-blockquote {
  max-width: 850px;
  margin: var(--uma-space-6) 0;
  padding: 22px var(--uma-space-6);
  background: var(--uma-gracious-gray);
  border-left: 5px solid var(--uma-legend-blue);
  border-radius: 14px;
}

.uma-blockquote p {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--uma-legend-blue);
  font-weight: 700;
}

.uma-blockquote footer {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #5E6A73;
}

/* Standard Lists */
.uma-list,
.uma-number-list {
  max-width: 850px;
  margin: var(--uma-space-4) 0 22px 1.4rem;
  padding: 0;
  color: #4D5D6C;
  font-size: 1.02rem;
  line-height: 1.75;
}

.uma-list li,
.uma-number-list li {
  margin-bottom: var(--uma-space-2);
}

/* Large Number List */
.uma-large-number-list {
  max-width: 850px;
  margin: var(--uma-space-5) 0;
  padding: 0;
  list-style: none;
  counter-reset: uma-counter;
}

.uma-large-number-list li {
    counter-increment: uma-counter;

    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;   /* <-- This is the important part */

    gap: 18px;

    margin-bottom: var(--uma-space-4);
    padding: var(--uma-space-4) 18px;

    background: var(--uma-white);
    border: 1px solid #E8EDF2;
    border-radius: 14px;

    box-shadow: 0 2px 8px rgba(13,53,83,.03);
}

.uma-large-number-list li::before {
  content: counter(uma-counter);
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--uma-hero-blue);
  color: var(--uma-white);

  font-size: 1.2rem;
  font-weight: 800;

  align-self: center;
}

/* Checklist */
.uma-checklist,
.uma-x-list {
  max-width: 850px;
  list-style: none;
  margin: 18px 0 var(--uma-space-6);
  padding: 0;
  display: grid;
  gap: 10px;
}

.uma-checklist li,
.uma-x-list li {
  position: relative;
  padding: 14px 18px 14px 48px;
  border: 1px solid #E8EDF2;
  border-radius: 14px;
  background: var(--uma-white);
  box-shadow: 0 2px 8px rgba(13, 53, 83, 0.03);
  color: #4D5D6C;
  line-height: 1.6;
}

.uma-checklist li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 14px;
  color: var(--uma-hero-blue);
  font-weight: 900;
}

.uma-x-list li::before {
  content: "×";
  position: absolute;
  left: 18px;
  top: 12px;
  color: #9F2F24;
  font-weight: 900;
  font-size: 1.2rem;
}

/* ==========================================================
   04. PAGE LAYOUT
========================================================== */

.uma-page {
    max-width: var(--uma-max-width);
    margin: 0 auto;
    padding: var(--uma-space-3) 28px 44px;
}

.uma-section {
    margin: 36px 0;
}

.uma-narrow {
    max-width: var(--uma-text-width);
    width: 100%;
    margin: var(--uma-space-2) auto 0;
}

/* Content typography inside the reading column */
.uma-narrow p,
.uma-narrow li {
    font-family: var(--uma-font-body);
    font-size: 1.125rem; /* 18px */
    line-height: 1.55;
    color: #253746;
}

/* Standard Bullet & Number Lists */
.uma-narrow ul:not(.uma-checklist):not(.uma-x-list):not(.uma-checklist-panel):not(.uma-x-list-panel):not(.uma-completion-list):not(.uma-step-timeline),
.uma-narrow ol:not(.uma-large-number-list):not(.uma-step-timeline) {
    margin: 18px 0 24px;
    padding-left: 28px;
}

.uma-narrow ul:not(.uma-checklist):not(.uma-x-list):not(.uma-checklist-panel):not(.uma-x-list-panel):not(.uma-completion-list):not(.uma-step-timeline) li,
.uma-narrow ol:not(.uma-large-number-list):not(.uma-step-timeline) li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.uma-spacer-sm {
    margin-top: 12px;
}

.uma-spacer-md {
    margin-top: 24px;
}

.uma-spacer-lg {
    margin-top: 36px;
}
/* Tighten the space below the page banner */
.uma-page-content-with-section-nav {
    margin-top: 0;
    padding-top: 0;
}

.uma-page-content-with-section-nav > .uma-narrow {
    margin-top: 0;
}

.uma-page-intro > p:first-child {
    margin-top: 0;
}
/* ==========================================================
   PAGE READING COLUMN
========================================================== */

.uma-page-reading {
    max-width: 860px;
    margin: 0 auto;
}
/* ==========================================================
   PAGE CONTENT WITH SECTION RAIL
========================================================== */

.uma-page-content-with-section-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: start;
    column-gap: 16px;

    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Prevent content from forcing horizontal scrolling */
.uma-page-content-with-section-nav > .uma-narrow {
    min-width: 0;
    width: 100%;
}

/* ==========================================================
   FLOATING SECTION RAIL
========================================================== */

.uma-section-rail {
    position: sticky;
    top: 24px;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 36px;
    padding: 12px 5px;

    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #E1E7EC;
    border-radius: var(--uma-radius-pill);
    box-shadow: var(--uma-shadow-card);

    z-index: 10;
}

/* Each rail item */

.uma-section-rail-item {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 34px;

    color: var(--uma-medium-gray-2);
    text-decoration: none;
}

/* Connecting line */

.uma-section-rail-item:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);

    width: 2px;
    height: 24px;

    background: #D8E1E8;
    z-index: 0;
}

/* Dot */

.uma-section-rail-dot {
    position: relative;
    z-index: 1;

    width: 9px;
    height: 9px;

    background: var(--uma-white);
    border: 2px solid var(--uma-medium-gray-2);
    border-radius: 50%;

    transition:
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

/* Active section */

.uma-section-rail-item.is-active .uma-section-rail-dot {
    width: 13px;
    height: 13px;

    background: var(--uma-journey-green);
    border-color: var(--uma-legend-blue);
}

/* Completed section */

.uma-section-rail-item.is-complete .uma-section-rail-dot {
    background: var(--uma-hero-blue);
    border-color: var(--uma-hero-blue);
}

/* Hover label */

.uma-section-rail-label {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%) translateX(5px);

    padding: 6px 10px;

    background: var(--uma-legend-blue);
    color: var(--uma-white);

    border-radius: var(--uma-radius-sm);
    box-shadow: var(--uma-shadow-card);

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.uma-section-rail-item:hover .uma-section-rail-label,
.uma-section-rail-item:focus-visible .uma-section-rail-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Anchor spacing */

.uma-page-content-with-section-nav section[id] {
    scroll-margin-top: 24px;
}

/* Smaller D2L content area */

@media (max-width: 700px) {
    .uma-page-content-with-section-nav {
        grid-template-columns: minmax(0, 1fr) 30px;
        column-gap: 8px;
    }

    .uma-section-rail {
        width: 30px;
        padding: 10px 3px;
    }

    .uma-section-rail-label {
        right: 28px;
    }
}
@media (max-width: 520px) {
    .uma-page-content-with-section-nav {
        grid-template-columns: minmax(0, 1fr) 26px;
        column-gap: 6px;
    }

    .uma-section-rail {
        display: flex;
        width: 26px;
        padding: 8px 2px;
    }

    .uma-section-rail-item {
        width: 18px;
        height: 28px;
    }

    .uma-section-rail-dot {
        width: 7px;
        height: 7px;
    }

    .uma-section-rail-item.is-active .uma-section-rail-dot {
        width: 10px;
        height: 10px;
    }

    .uma-section-rail-item:not(:last-child)::after {
        top: 18px;
        height: 20px;
    }

    .uma-section-rail-label {
        right: 24px;
        font-size: 0.68rem;
    }
}
@media (max-width: 360px) {
    .uma-page-content-with-section-nav {
        display: block;
    }

    .uma-section-rail {
        display: none;
    }
}
/* ==========================================================
   TEMPLATE HOME NAVIGATION
========================================================== */

.uma-template-home-nav {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: var(--uma-space-5, 20px);
    padding: 10px 14px;
    border: 1px solid var(--uma-medium-gray-1, var(--color-border));
    border-radius: var(--uma-radius-sm, var(--radius-md));
    background: var(--uma-white, var(--color-surface));
}

.uma-template-home-nav a {
    display: inline-block;
    color: var(--uma-hero-blue, var(--color-blue));
    font-family: var(--uma-font-body, var(--font-body));
    font-size: 0.9rem;
    font-weight: var(--uma-font-weight-bold, 700);
    line-height: 1.4;
    text-decoration: none;
}

.uma-template-home-nav a:hover {
    color: var(--uma-legend-blue, var(--color-navy));
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.uma-template-home-nav a:focus-visible {
    outline: 3px solid rgba(29, 107, 166, 0.35);
    outline-offset: 3px;
}

/* ==========================================================
   05. PAGE HEADER
========================================================== */

.uma-page-header {
    position: relative;

    width: calc(100% + 32px);
    max-width: none;

    margin: 0 auto 18px;
    margin-left: -16px;
    margin-right: -16px;

    padding: 32px 48px;

    background: var(--uma-hero-blue);
    border: 1px solid rgba(255,255,255,.08);
    border-left: 6px solid var(--uma-legend-blue);
    border-radius: var(--uma-radius-lg);
    box-shadow: var(--uma-shadow-card);

    overflow: hidden;
}

.uma-page-header h1 {
    margin: 0 0 10px;

    font-family: var(--uma-font-heading);
    font-style: italic;
    font-size: clamp(3rem, 4.5vw, 4.2rem);
    font-weight: var(--uma-font-weight-heading);
    line-height: 1.02;
    letter-spacing: -0.02em;

    color: var(--uma-white);

    position: relative;
    z-index: 2;
}

.uma-page-header p {
    margin: 0;

    max-width: 700px;

    font-family: var(--uma-font-body);
    font-size: 0.98rem;
    font-weight: var(--uma-font-weight-regular);
    line-height: 1.5;

    color: rgba(255,255,255,.74);

    position: relative;
    z-index: 2;
}

/* Decorative circles */

.uma-page-header::after {
    content: "";

    position: absolute;

    top: -45px;
    right: -65px;

    width: 270px;
    height: 270px;

    background:
        radial-gradient(
            circle at center,
            transparent 58%,
            rgba(21,234,196,.14) 59%,
            transparent 60%
        ),

        radial-gradient(
            circle at center,
            transparent 42%,
            rgba(21,234,196,.10) 43%,
            transparent 44%
        ),

        radial-gradient(
            circle at center,
            transparent 26%,
            rgba(21,234,196,.07) 27%,
            transparent 28%
        );

    pointer-events: none;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width:900px){
    .uma-page-header p{
        font-size:.95rem;
    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:600px){
    .uma-page-header h1{
        line-height:1.08;
    }

    .uma-page-header p{

        font-size:.92rem;

    }

}
/* ==========================================================
   TABLET
========================================================== */

@media (max-width:900px){

    .uma-page-header{
        padding:22px 28px;
        margin-bottom:16px;
    }

    .uma-page-header h1{
        font-size:2.2rem;
    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:600px){

    .uma-page-header{

        padding:20px;

    }

    .uma-page-header h1{

        font-size:1.8rem;

    }

    .uma-page-header::after{

        opacity:.35;

    }

}
/* ==========================================================
   06. SECTION HEADER
========================================================== */

.uma-section-header {
    margin-bottom: var(--uma-space-4);
}

.uma-section-kicker {
    display: inline-block;
    margin-bottom: 8px;

    color: var(--uma-horizon-blue);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.uma-section-header h2 {
    margin: 0;
    color: var(--uma-hero-blue);
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.uma-section-header p {
    max-width: var(--uma-text-width);

    margin: 6px 0 0;

    color: #425466;

    font-size: 1.05rem;
    line-height: 1.65;
}
/* ==========================================================
   SVG ICONS
========================================================== */

.uma-icon {
    width: 58px;
    height: 58px;
    display: inline-block;
    flex-shrink: 0;
}
/* ==========================================================
   07. CONTENT BLOCKS
========================================================== */

/* ==========================================================
   INTRO BLOCK
========================================================== */

.uma-intro-block {
  max-width: var(--uma-text-width);

  margin: var(--uma-space-2) 0 var(--uma-space-4);
  padding: 0;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.uma-intro-block + h2 {
  margin-top: 1rem;
}

.uma-intro-block p {
  margin: 0;

  color: #4D5D6C;
  font-size: 1.05rem;
  line-height: 1.65;
}

.uma-intro-block strong {
  color: var(--uma-legend-blue);
  font-weight: 700;
}

.uma-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--uma-space-4);
}

.uma-info-block {
  background: var(--uma-white);
  border: 2px solid var(--uma-hero-blue);
  border-radius: var(--uma-radius-md);
  padding: 18px;
  box-shadow: 0 4px 12px rgba(13, 53, 83, 0.08);
}

.uma-info-block h3 {
  margin: 0 0 8px;
  color: var(--uma-legend-blue);
  font-size: 1.15rem;
}

.uma-info-block p {
  margin-bottom: 0;
}

.uma-note,
.uma-warning {
  border-radius: var(--uma-radius-md);
  padding: var(--uma-space-4) 18px;
  margin: 18px 0;
}

.uma-note {
  background: var(--uma-info-bg);
  border-left: 6px solid var(--uma-horizon-blue);
}

.uma-warning {
  background: var(--uma-warning-bg);
  border-left: 6px solid var(--uma-warning-border);
}

.uma-note-title,
.uma-warning-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.uma-note-title {
  color: var(--uma-legend-blue);
}

.uma-warning-title {
  color: var(--uma-warning-text);
}

.uma-quote {
  margin: 22px 0;
  padding: var(--uma-space-5) var(--uma-space-6);
  border-radius: var(--uma-radius-lg);
  background: var(--uma-legend-blue);
  color: var(--uma-white);
}

.uma-quote blockquote {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 700;
}

.uma-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.95rem;
  opacity: 0.9;
}
/* ==========================================================
   REFLECTION PROMPTS
   Temporary illustrations may be replaced by Multimedia.
========================================================== */

.uma-reflection-card-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================
   CARD
========================================================== */

.uma-reflection-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 38px 185px 38px 28px;
  background: var(--uma-info-bg);
  border: 1px solid #bfe2f2;
  border-radius: var(--uma-radius-lg);
}

/* Top accent line */
.uma-reflection-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--uma-hero-blue);
}

.uma-reflection-card-content {
  position: relative;
  z-index: 2;
}

/* ==========================================================
   LABEL
========================================================== */

.uma-reflection-card-header {
  margin: 0 0 14px;
}

.uma-reflection-card-header h4 {
  margin: 0;
  color: var(--uma-hero-blue);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================
   QUESTION
========================================================== */

.uma-reflection-card-question {
  max-width: 650px;
  margin: 0 0 14px;
  color: var(--uma-legend-blue);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
}

/* ==========================================================
   SUPPORTING TEXT
========================================================== */

.uma-reflection-card-support {
  max-width: 600px;
  margin: 0;
  color: var(--uma-integrity-gray);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

/* ==========================================================
   ILLUSTRATION
========================================================== */

.uma-reflection-card-illustration {
  position: absolute;
  right: 20px;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 145px;
  max-height: 155px;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

/* ==========================================================
   RESPONSIVE — NARROW D2L VIEW
========================================================== */

@media (max-width: 760px) {
  .uma-reflection-card {
    min-height: 190px;
    padding: 30px 135px 30px 22px;
  }

  .uma-reflection-card-illustration {
    right: 12px;
    width: 112px;
    max-height: 125px;
  }

  .uma-reflection-card-question {
    font-size: 1.2rem;
  }
}

/* ==========================================================
   RESPONSIVE — MOBILE
========================================================== */

@media (max-width: 520px) {
  .uma-reflection-card {
    min-height: 0;
    padding: 28px 20px 118px;
  }

  .uma-reflection-card-header {
    margin-bottom: 12px;
  }

  .uma-reflection-card-header h4 {
    font-size: 0.8rem;
  }

  .uma-reflection-card-question {
    font-size: 1.15rem;
  }

  .uma-reflection-card-illustration {
    right: 14px;
    bottom: 0;
    width: 105px;
    max-height: 108px;
  }
}

/* ==========================================================
   PRINT
========================================================== */

@media print {
  .uma-reflection-card {
    min-height: 0;
    break-inside: avoid;
    padding: 22px;
    background: #fff;
  }

  .uma-reflection-card::before {
    background: #555;
  }

  .uma-reflection-card-illustration {
    display: none;
  }
}
/* ==========================================================
   CALLOUT BLOCKS
========================================================== */

.uma-callout {
    position: relative;
    background: #ffffff;
    border: 1px solid #D1D5DB;
    border-radius: 18px;
    padding: 26px var(--uma-space-5) 18px;
    margin: 28px 0 22px;
    box-shadow: var(--uma-shadow-card);
    transition: box-shadow .2s ease;
}

/* Floating Pill */

.uma-callout-pill {
    position: absolute;
    top: -16px;
    left: 20px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 11px 5px 9px;
    min-height: 32px;

    border-radius: 999px;

    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;

    white-space: nowrap;
    user-select: none;

    box-shadow: 0 4px 10px rgba(0,59,92,.08);
}

/* Pill Icon */

.uma-callout-pill img{
    width:20px;
    height:20px;
    min-width:20px;
    min-height:20px;
    object-fit:contain;
    display:block;
    flex:0 0 20px;
}

/* Heading */

.uma-callout-heading{
    margin:0 0 8px;
    font-family:var(--uma-font-body);
    font-size:1.35rem;
    font-weight:700;
    color:var(--uma-legend-blue);
    line-height:1.3;
}

/* Body */

.uma-callout p{
    margin:0;
    color:#253746;
    line-height:1.6;
}

/* ==========================================================
   NOTE
========================================================== */

.uma-callout-note{
    border-color:#BFDFF1;
}

.uma-callout-note .uma-callout-pill{
    background:#D9EEF9;
    color:#005A9C;
}

/* ==========================================================
   TIP
========================================================== */

.uma-callout-tip{
    border-color:#F0C95B;
}

.uma-callout-tip .uma-callout-pill{
    background:#FFE7A3;
    color:#8A5600;
}

/* ==========================================================
   REMINDER
========================================================== */

.uma-callout-reminder{
    border-color:#9EE4D7;
}

.uma-callout-reminder .uma-callout-pill{
    background:#DFFAF5;
    color:#00796B;
}

/* ==========================================================
   IMPORTANT
========================================================== */

.uma-callout-important{
    border-color:#F3A9A1;
}

.uma-callout-important .uma-callout-pill{
    background:#FFDAD6;
    color:#9F2F24;
}

/* ==========================================================
   SUCCESS
========================================================== */

.uma-callout-success{
    border-color:#A8DFC1;
}

.uma-callout-success .uma-callout-pill{
    background:#D9F3E6;
    color:#1B8A5A;
}

/* ==========================================================
   NEED HELP
========================================================== */

.uma-callout-help{
    border-color:#BFD8FF;
}

.uma-callout-help .uma-callout-pill{
    background:#DDEBFF;
    color:#005A9C;
}

/* ==========================================================
   INSTRUCTOR'S NOTE
========================================================== */

.uma-callout-instructor{
    border-color:#D8C5F3;
}

.uma-callout-instructor .uma-callout-pill{
    background:#F1E8FF;
    color:#6A35B1;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:768px){

    .uma-callout{
        padding:24px 18px 16px;
        margin:24px 0 20px;
    }

    .uma-callout-pill{
        left:16px;
        top:-15px;
        font-size:.72rem;
        min-height:32px;
        padding:5px 10px;
    }

    .uma-callout-pill img{
        width:18px;
        height:18px;
        min-width:18px;
        min-height:18px;
    }

    .uma-callout-heading{
        font-size:1.2rem;
    }
}
/* ==========================================================
   CHECKLIST PANEL
========================================================== */

.uma-checklist-panel {
    list-style: none;
    margin: 18px 0 var(--uma-space-6);
    padding: var(--uma-space-4) 18px;
    max-width: 850px;
    background: var(--uma-white);
    border: 1px solid var(--uma-medium-gray-1);
    border-radius: var(--uma-radius-md);
    box-shadow: var(--uma-shadow-card);
}

.uma-checklist-panel li {
    position: relative;
    padding: 8px 0 8px 28px;
    margin-bottom: 6px;
    color: #4D5D6C;
    font-size: 1.05rem;
    line-height: 1.6;
    background: transparent;
    border: none;
    box-shadow: none;
}

.uma-checklist-panel li:last-child {
    margin-bottom: 0;
}

.uma-checklist-panel li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--uma-hero-blue);
    font-size: 1.05rem;
    font-weight: 700;
}
/* ==========================================================
   X LIST PANEL
========================================================== */

.uma-x-list-panel {
    list-style: none;
    margin: 18px 0 var(--uma-space-6);
    padding: var(--uma-space-4) 18px;

    max-width: 850px;

    background: var(--uma-white);
    border: 1px solid var(--uma-medium-gray-1);
    border-radius: var(--uma-radius-md);

    box-shadow: var(--uma-shadow-card);
}

.uma-x-list-panel li {
    position: relative;
    padding: 8px 0 8px 28px;
    margin-bottom: 6px;

    color: #4D5D6C;
    font-size: 1.05rem;
    line-height: 1.6;

    background: transparent;
    border: none;
    box-shadow: none;
}

.uma-x-list-panel li:last-child {
    margin-bottom: 0;
}

.uma-x-list-panel li::before {
    content: "✕";

    position: absolute;
    left: 0;
    top: 8px;

    color: #C0392B;

    font-size: 1.05rem;
    font-weight: 700;
}
/* ==========================================================
   COMPLETION LIST
   Reusable open checklist with circled checkmarks
========================================================== */

.uma-completion-list {
  display: grid;
  gap: 11px;

  max-width: 850px;

  margin: 18px 0 var(--uma-space-6);
  padding: 0;

  list-style: none;
}

.uma-completion-list > li {
  position: relative;

  margin: 0;
  padding: 0 0 0 36px;

  list-style: none;

  color: #253746;
  font-size: 1.05rem;
  line-height: 1.55;
}

.uma-completion-list > li::before {
  content: "✓";

  position: absolute;
  top: 0.18em;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  background: var(--uma-white);
  border: 2px solid var(--uma-hero-blue);
  border-radius: 50%;

  color: var(--uma-hero-blue);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}
/* ==========================================================
   TABLES
   Default: Horizontal Header Table
   Variations: Vertical Header Table and Matrix Table
========================================================== */

/* ==========================================================
   TABLE WRAPPER
========================================================== */

.uma-table-wrap {
  overflow-x: auto;
  margin: 18px 0 26px;
  border: 1px solid #D9E3EA;
  border-top: 4px solid var(--uma-hero-blue);
  border-radius: 12px;
  background: var(--uma-white);
  box-shadow: 0 6px 18px rgba(11, 58, 91, 0.06);
}

/* ==========================================================
   BASE TABLE
========================================================== */

.uma-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--uma-white);
}

.uma-table caption {
  padding: 0;
}

.uma-table th,
.uma-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid #E2E8ED;
  border-bottom: 1px solid #E2E8ED;
}

.uma-table th:last-child,
.uma-table td:last-child {
  border-right: 0;
}

.uma-table tr:last-child th,
.uma-table tr:last-child td {
  border-bottom: 0;
}

.uma-table th {
  background: #EAF4F8;
  color: var(--uma-legend-blue);
  font-weight: 700;
  line-height: 1.4;
}

.uma-table td {
  color: var(--uma-text-color);
  line-height: 1.5;
}

.uma-table tbody tr:nth-child(even) td {
  background: #F8FAFB;
}

/* ==========================================================
   DEFAULT HORIZONTAL HEADER TABLE
   Existing tables need no additional classes.
========================================================== */

.uma-table thead th {
  background: #EAF4F8;
}

/* ==========================================================
   VERTICAL HEADER TABLE
   Add class="uma-table uma-table-vertical" to the table.
========================================================== */

.uma-table-vertical {
  table-layout: fixed;
  border-left: 4px solid var(--uma-hero-blue);
}

.uma-table-vertical tbody th {
  width: 34%;
  background: #EAF4F8;
  color: var(--uma-legend-blue);
  font-weight: 700;
}

.uma-table-vertical tbody td {
  background: var(--uma-white);
}

.uma-table-vertical tbody tr:nth-child(even) td {
  background: #F8FAFB;
}

/*
  The wrapper already has the default top accent.
  Remove it when the table is identified as vertical.

  :has() is supported by current Chrome, Edge, Safari,
  and Firefox versions.
*/

.uma-table-wrap:has(.uma-table-vertical) {
  border-top-width: 1px;
}

/* ==========================================================
   MATRIX TABLE
   Add class="uma-table uma-table-matrix" to the table.
========================================================== */

.uma-table-matrix {
  border-left: 4px solid var(--uma-hero-blue);
}

.uma-table-matrix thead th,
.uma-table-matrix tbody th {
  background: #EAF4F8;
  color: var(--uma-legend-blue);
  font-weight: 700;
}

.uma-table-matrix thead th:not(:first-child),
.uma-table-matrix tbody td {
  text-align: center;
}

.uma-table-matrix thead th:first-child {
  background: #DDEEF5;
}

.uma-table-matrix tbody tr:nth-child(even) td {
  background: #F8FAFB;
}
.uma-table-wrap-vertical {
  border-top: 1px solid #D9E3EA;
  border-left: 4px solid var(--uma-hero-blue);
}

.uma-table-wrap-matrix {
  border-top: 4px solid var(--uma-hero-blue);
  border-left: 4px solid var(--uma-hero-blue);
}
/* ==========================================================
   COURSE INFORMATION TABLE
   Preserves existing course pages.
========================================================== */

.uma-table-wrap-course-info {
  overflow: hidden;
  margin: 18px 0 26px;
  border: 1px solid #D9E3EA;
  border-left: 4px solid var(--uma-hero-blue);
  border-radius: 12px;
  background: var(--uma-white);
  box-shadow: 0 6px 18px rgba(11, 58, 91, 0.06);
}

.uma-table-course-info {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--uma-white);
}

.uma-table-course-info th,
.uma-table-course-info td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid #E2E8ED;
  border-bottom: 1px solid #E2E8ED;
}

.uma-table-course-info th {
  width: 34%;
  background: #EAF4F8;
  color: var(--uma-legend-blue);
  font-weight: 700;
  line-height: 1.4;
}

.uma-table-course-info td {
  background: var(--uma-white);
  color: var(--uma-text-color);
  line-height: 1.5;
}

.uma-table-course-info th:last-child,
.uma-table-course-info td:last-child {
  border-right: 0;
}

.uma-table-course-info tr:last-child th,
.uma-table-course-info tr:last-child td {
  border-bottom: 0;
}

.uma-table-course-info tbody tr:nth-child(even) td {
  background: #F8FAFB;
}

.uma-table-course-info tr:hover th,
.uma-table-course-info tr:hover td {
  background: #F7FBFD;
}

/* ==========================================================
   VISUALLY HIDDEN
========================================================== */

.uma-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;
}

/* ==========================================================
   RESPONSIVE TABLES
========================================================== */

@media (max-width: 700px) {

  .uma-table-wrap,
  .uma-table-wrap-course-info {
    border-radius: 10px;
  }

  /*
    Horizontal and matrix tables remain horizontally scrollable
    so their row-and-column relationships are preserved.
  */

  .uma-table:not(.uma-table-vertical) {
    min-width: 560px;
  }

  /*
    Vertical tables become stacked label-and-value groups.
  */

  .uma-table-vertical,
  .uma-table-vertical tbody,
  .uma-table-vertical tr,
  .uma-table-vertical th,
  .uma-table-vertical td,
  .uma-table-course-info,
  .uma-table-course-info tbody,
  .uma-table-course-info tr,
  .uma-table-course-info th,
  .uma-table-course-info td {
    display: block;
    width: 100%;
  }

  .uma-table-vertical,
  .uma-table-course-info {
    min-width: 0;
  }

  .uma-table-vertical tr,
  .uma-table-course-info tr {
    border-bottom: 1px solid #D9E3EA;
  }

  .uma-table-vertical tr:last-child,
  .uma-table-course-info tr:last-child {
    border-bottom: 0;
  }

  .uma-table-vertical tbody th,
  .uma-table-course-info th {
    width: 100%;
    padding: 12px 14px 4px;
    border-right: 0;
    border-bottom: 0;
    background: #EAF4F8;
  }

  .uma-table-vertical tbody td,
  .uma-table-course-info td {
    padding: 4px 14px 12px;
    border-right: 0;
    border-bottom: 0;
    background: var(--uma-white);
  }

  .uma-table-course-info tr:hover th,
  .uma-table-course-info tr:hover td {
    background: inherit;
  }
}

/* ==========================================================
   PRINT
========================================================== */

@media print {

  .uma-table-wrap,
  .uma-table-wrap-course-info {
    overflow: visible;
    border-top-color: #555;
    border-left-color: #555;
    box-shadow: none;
    break-inside: avoid;
  }

  .uma-table {
    min-width: 0 !important;
  }

  .uma-table-vertical,
  .uma-table-matrix {
    border-left-color: #555;
  }
}

/* ==========================================================
   09. INTERACTIVE COMPONENTS
   Journey Green is reserved for clickable/action items.
========================================================== */

.uma-action-btn,
.uma-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--uma-journey-green);
  color: var(--uma-legend-blue) !important;
  border: 1px solid var(--uma-journey-green);
  border-radius: var(--uma-radius-pill);
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.2;
}

.uma-action-btn:hover,
.uma-action-btn:focus,
.uma-print-btn:hover,
.uma-print-btn:focus {
  background: var(--uma-white);
  color: var(--uma-legend-blue) !important;
  border-color: var(--uma-journey-green);
}

.uma-action-btn:focus-visible,
.uma-print-btn:focus-visible {
  outline: 3px solid rgba(29, 107, 166, 0.35);
  outline-offset: 3px;
}

.uma-secondary-btn {
  display: inline-block;
  background: var(--uma-white);
  color: var(--uma-hero-blue) !important;
  border: 1px solid var(--uma-hero-blue);
  border-radius: var(--uma-radius-pill);
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}

.uma-secondary-btn:hover,
.uma-secondary-btn:focus {
  background: var(--uma-hero-blue);
  color: var(--uma-white) !important;
}

/* ==========================================================
   UMA ACCORDION
========================================================== */

.uma-accordion {
  display: grid;
  gap: 12px;
  width: 100%;
}

/* ==========================================================
   Accordion Item
========================================================== */

.uma-accordion-item {
  overflow: hidden;

  background: var(--uma-white);
  border: 1px solid var(--uma-hero-blue);
  border-radius: 12px;

  box-shadow: 0 2px 8px rgba(13, 53, 83, 0.05);

  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.uma-accordion-item:hover {
  box-shadow: 0 5px 14px rgba(13, 53, 83, 0.1);
}

/* ==========================================================
   Accordion Header Button
========================================================== */

.uma-accordion-button {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  min-height: 52px;

  padding: 11px 64px 11px 18px;

  background: var(--uma-white);
  border: 0;

  color: var(--uma-legend-blue);

  font-family: var(--uma-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease;
}

/* ==========================================================
   Journey Green Divider
========================================================== */

.uma-accordion-button::before {
  content: "";

  position: absolute;
  top: 10px;
  right: 45px;
  bottom: 10px;

  width: 3px;

  background: var(--uma-journey-green);
  border-radius: var(--uma-radius-pill);
}

/* ==========================================================
   Chevron
========================================================== */

.uma-accordion-button::after {
  content: "";

  position: absolute;
  top: 50%;
  right: 18px;

  width: 9px;
  height: 9px;

  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;

  transform:
    translateY(-65%)
    rotate(45deg);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

/* ==========================================================
   Hover
========================================================== */

.uma-accordion-button:hover {
  background: var(--uma-info-bg);
}

.uma-accordion-button[aria-expanded="true"]:hover {
  background: #165B8E;
}

/* ==========================================================
   Expanded State
========================================================== */

.uma-accordion-button[aria-expanded="true"] {
  background: var(--uma-hero-blue);
  color: var(--uma-white);
}

.uma-accordion-button[aria-expanded="true"]::before {
  background: var(--uma-journey-green);
}

.uma-accordion-button[aria-expanded="true"]::after {
  transform:
    translateY(-25%)
    rotate(225deg);
}

/* ==========================================================
   Keyboard Focus
========================================================== */

.uma-accordion-button:focus-visible {
  z-index: 2;

  outline: 3px solid rgba(21, 234, 196, 0.5);
  outline-offset: 3px;
}

/* ==========================================================
   Accordion Panel
========================================================== */

.uma-interactive-accordion-panel {
  padding: 22px;

  background: var(--uma-white);
  border-top: 1px solid rgba(13, 53, 83, 0.16);

  color: #253746;
}

.uma-interactive-accordion-panel > :first-child {
  margin-top: 0;
}

.uma-interactive-accordion-panel > :last-child {
  margin-bottom: 0;
}

.uma-interactive-accordion-panel p,
.uma-interactive-accordion-panel ul,
.uma-interactive-accordion-panel ol {
  margin-top: 0;
}

/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 600px) {
  .uma-accordion {
    gap: 10px;
  }

  .uma-accordion-button {
    min-height: 54px;

    padding:
      13px
      58px
      13px
      16px;

    font-size: 0.95rem;
  }

  .uma-accordion-button::before {
    right: 40px;
  }

  .uma-accordion-button::after {
    right: 15px;
  }

  .uma-interactive-accordion-panel {
    padding: 18px;
  }
}

/* ==========================================================
   Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {
  .uma-accordion-item,
  .uma-accordion-button,
  .uma-accordion-button::after {
    transition: none;
  }
}

/* ==========================================================
   Print
========================================================== */

@media print {
  .uma-accordion {
    display: block;
  }

  .uma-accordion-item {
    margin-bottom: 12px;

    border: 1px solid #777;
    box-shadow: none;

    break-inside: avoid;
  }

  .uma-accordion-button,
  .uma-accordion-button[aria-expanded="true"] {
    background: var(--uma-white);
    color: var(--uma-black);
  }

  .uma-accordion-button::before,
  .uma-accordion-button::after {
    display: none;
  }

  .uma-interactive-accordion-panel {
    border-top: 1px solid #999;
  }

  .uma-interactive-accordion-panel[hidden] {
    display: block !important;
  }
}
/* ==========================================================
   INTERACTIVE COMPONENT DOCUMENTATION
   MATCHES MEDIA + ASSESSMENT PAGE PATTERN
   Add this block to the bottom of the centralized CSS.
========================================================== */

/* ----------------------------------------------------------
   PAGE INTRO + QUICK NAVIGATION
---------------------------------------------------------- */

.uma-interactive-intro {
  margin: 0 0 var(--uma-space-6);
}

.uma-interactive-quick-nav {
  margin: var(--uma-space-5) 0 28px;
  padding: 18px var(--uma-space-5);
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
  box-shadow: var(--uma-shadow-card);
}

.uma-interactive-quick-nav h2 {
  margin: 0 0 10px;
  color: var(--uma-legend-blue);
  font-size: 1.2rem;
}

.uma-interactive-quick-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--uma-space-2) var(--uma-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.uma-interactive-quick-nav li {
  position: relative;
  margin: 0;
  padding-left: 18px;
}

.uma-interactive-quick-nav li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--uma-journey-green);
  border: 1px solid var(--uma-legend-blue);
  border-radius: 50%;
  transform: translateY(-50%);
}

.uma-interactive-quick-nav a {
  color: var(--uma-hero-blue);
  font-weight: 700;
  text-decoration: none;
}

.uma-interactive-quick-nav a:hover,
.uma-interactive-quick-nav a:focus-visible {
  color: var(--uma-legend-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------
   DOCUMENTATION SECTION + CARD
---------------------------------------------------------- */

.uma-interactive-section {
  margin: 36px 0 var(--uma-space-8);
  scroll-margin-top: 28px;
}

.uma-interactive-component-card {
  margin-top: var(--uma-space-4);
  overflow: hidden;
  background: var(--uma-page-background);
  border: 1px solid #D7E0E7;
  border-radius: var(--uma-radius-lg);
  box-shadow: var(--uma-shadow-card);
}

/* ----------------------------------------------------------
   GRAY STAGE + ELEVATED WHITE EXAMPLE
---------------------------------------------------------- */

.uma-interactive-example-stage {
  padding: 18px var(--uma-space-5);
  background: #E9EEF2;
  border-bottom: 1px solid #D7E0E7;
}

.uma-interactive-example-card {
  min-width: 0;
  padding: 18px;
  background: var(--uma-white);
  border: 1px solid #D4DDE5;
  border-radius: var(--uma-radius-md);
  box-shadow:
    0 10px 24px rgba(13, 53, 83, 0.10),
    0 2px 6px rgba(13, 53, 83, 0.05);
}

.uma-interactive-docs
.uma-interactive-example-card
.uma-interactive-demo {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.uma-interactive-demo h3 {
  margin: 0 0 16px;
  color: var(--uma-legend-blue);
  font-size: 1.22rem;
}

.uma-interactive-demo h4 {
  margin: 20px 0 10px;
  color: var(--uma-legend-blue);
  font-size: 1.05rem;
}

.uma-interactive-demo h4:first-child {
  margin-top: 0;
}

/* ----------------------------------------------------------
   THREE-COLUMN DOCUMENTATION ROW
---------------------------------------------------------- */

.uma-interactive-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 18px var(--uma-space-5) var(--uma-space-4);
  background: var(--uma-white);
  border-bottom: 1px solid #E1E7EC;
}

.uma-interactive-meta-item {
  position: relative;
  min-width: 0;
  padding: 4px 22px 4px 52px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.uma-interactive-meta-item + .uma-interactive-meta-item {
  border-left: 1px solid #DDE5EB;
}

.uma-interactive-meta-item::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 12px;
  width: 30px;
  height: 30px;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0.14;
}

.uma-interactive-meta-item::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 19px;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* Purpose */
.uma-interactive-meta--purpose {
  color: var(--uma-hero-blue);
}

.uma-interactive-meta--purpose::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2zm1 15h-2v-6h2zm0-8h-2V7h2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2zm1 15h-2v-6h2zm0-8h-2V7h2z'/%3E%3C/svg%3E");
}

/* Best Used For */
.uma-interactive-meta--best {
  color: #087F6A;
}

.uma-interactive-meta--best::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10h-2a8 8 0 1 1-2.34-5.66l-2.13 2.13A5 5 0 1 0 17 12h-2a3 3 0 1 1-.88-2.12l-2.83 2.83 1.42 1.42 2.83-2.83A5 5 0 0 0 12 7a5 5 0 1 0 5 5h-2a3 3 0 1 1-3-3v2l5-5h-3V3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10h-2a8 8 0 1 1-2.34-5.66l-2.13 2.13A5 5 0 1 0 17 12h-2a3 3 0 1 1-.88-2.12l-2.83 2.83 1.42 1.42 2.83-2.83A5 5 0 0 0 12 7a5 5 0 1 0 5 5h-2a3 3 0 1 1-3-3v2l5-5h-3V3z'/%3E%3C/svg%3E");
}

/* Accessibility */
.uma-interactive-meta--accessibility {
  color: #7452A6;
}

.uma-interactive-meta--accessibility::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-7 5h14v2h-5v4.5l3.5 7.5h-2.3L12 15l-3.2 6H6.5l3.5-7.5V9H5V7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-7 5h14v2h-5v4.5l3.5 7.5h-2.3L12 15l-3.2 6H6.5l3.5-7.5V9H5V7z'/%3E%3C/svg%3E");
}

.uma-interactive-meta-label {
  display: block;
  margin: 0 0 5px;
  color: var(--uma-legend-blue);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.uma-interactive-meta-item p {
  margin: 0;
  color: var(--uma-text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Detailed accessibility note */
.uma-interactive-component-card > .uma-interactive-accessibility {
  margin: 0;
  padding: 14px var(--uma-space-5);
  background: var(--uma-info-bg);
  border: 0;
  border-left: 5px solid var(--uma-horizon-blue);
  border-radius: 0;
}

/* ----------------------------------------------------------
   CORE INTERACTIVE COMPONENT STYLES
---------------------------------------------------------- */

.uma-interactive-instructions {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--uma-info-bg);
  border-left: 5px solid var(--uma-horizon-blue);
  border-radius: var(--uma-radius-sm);
  color: #253746;
  font-weight: 400;
}
.uma-interactive-demo .uma-accordion-button:hover,
.uma-interactive-demo .uma-accordion-button:focus-visible,
.uma-interactive-demo .uma-tab-button:hover,
.uma-interactive-demo .uma-tab-button:focus-visible,
.uma-interactive-hotspot-button:hover,
.uma-interactive-hotspot-button:focus-visible,
.uma-interactive-carousel-button:hover,
.uma-interactive-carousel-button:focus-visible {
  outline: 3px solid rgba(29, 107, 166, 0.35);
  outline-offset: 2px;
}

.uma-interactive-accordion-panel {
  padding: 18px;
  border-top: 1px solid var(--uma-medium-gray-1);
}

.uma-interactive-accordion-panel p,
.uma-interactive-accordion-panel ul {
  margin-top: 0;
}

.uma-interactive-tabs {
  display: grid;
  gap: var(--uma-space-3);
}

.uma-interactive-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  padding-bottom: var(--uma-space-2);
  border-bottom: 1px solid var(--uma-medium-gray-1);
}

.uma-interactive-demo .uma-tab-button {
  padding: 10px 15px;
  background: var(--uma-white);
  border: 1px solid var(--uma-hero-blue);
  border-radius: var(--uma-radius-pill);
  color: var(--uma-hero-blue);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
}

.uma-interactive-demo .uma-tab-button[aria-selected="true"] {
  background: var(--uma-hero-blue);
  color: var(--uma-white);
}

.uma-interactive-demo .uma-tab-panel {
  padding: 18px;
  background: var(--uma-gracious-gray);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-interactive-demo .uma-tab-panel h4 {
  margin-top: 0;
}

.uma-interactive-tabs-vertical {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
}

.uma-interactive-tabs-vertical .uma-interactive-tab-list {
  flex-direction: column;
  padding: 0 14px 0 0;
  border-right: 1px solid var(--uma-medium-gray-1);
  border-bottom: 0;
}

.uma-interactive-tabs-vertical .uma-tab-button {
  border-radius: var(--uma-radius-sm);
  text-align: left;
}

.uma-interactive-reveal-list {
  display: grid;
  gap: var(--uma-space-3);
}

.uma-interactive-reveal-item {
  padding: var(--uma-space-4);
  background: var(--uma-gracious-gray);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-interactive-reveal-item h4 {
  margin-top: 0;
}

.uma-interactive-reveal-panel {
  margin-top: var(--uma-space-3);
  padding: 14px var(--uma-space-4);
  background: var(--uma-white);
  border-left: 5px solid var(--uma-horizon-blue);
  border-radius: var(--uma-radius-sm);
}

.uma-interactive-flip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.uma-interactive-demo .uma-flip-card {
  min-height: 245px;
  perspective: 1000px;
  cursor: pointer;
}

.uma-interactive-demo .uma-flip-card:focus-visible {
  outline: 3px solid rgba(29, 107, 166, 0.45);
  outline-offset: 4px;
  border-radius: var(--uma-radius-md);
}

.uma-interactive-flip-card-inner {
  position: relative;
  min-height: 245px;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

.uma-flip-card.is-flipped .uma-interactive-flip-card-inner {
  transform: rotateY(180deg);
}

.uma-interactive-flip-card-front,
.uma-interactive-flip-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: auto;
  backface-visibility: hidden;
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
  box-shadow: var(--uma-shadow-card);
}

.uma-interactive-flip-card-front {
  background: var(--uma-white);
}

.uma-interactive-flip-card-back {
  background: var(--uma-info-bg);
  transform: rotateY(180deg);
}

.uma-interactive-flip-card-front h4,
.uma-interactive-flip-card-back h4 {
  margin: 0 0 10px;
}

.uma-interactive-flip-hint {
  display: inline-block;
  margin-top: 16px;
  color: var(--uma-hero-blue);
  font-size: 0.9rem;
  font-weight: 600;
}

.uma-interactive-hotspot {
  display: grid;
  gap: 14px;
}

.uma-interactive-hotspot-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #F7FBFD;
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-lg);
}

.uma-interactive-hotspot-diagram {
  position: absolute;
  inset: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.uma-interactive-diagram-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: 18px;
  background: var(--uma-white);
  border: 2px solid #CFEAF5;
  border-radius: var(--uma-radius-md);
  color: var(--uma-legend-blue);
  font-weight: 600;
  text-align: center;
}

.uma-interactive-hotspot-button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--uma-journey-green);
  border: 1px solid var(--uma-legend-blue);
  border-radius: 50%;
  color: var(--uma-legend-blue);
  cursor: pointer;
  font-weight: 900;
  box-shadow: var(--uma-shadow-card);
}

.uma-interactive-hotspot-button[aria-expanded="true"] {
  background: var(--uma-legend-blue);
  color: var(--uma-white);
}

.uma-interactive-hotspot-button-1 {
  left: 18%;
  top: 21%;
}

.uma-interactive-hotspot-button-2 {
  right: 21%;
  top: 25%;
}

.uma-interactive-hotspot-button-3 {
  left: 22%;
  bottom: 21%;
}

.uma-interactive-hotspot-button-4 {
  right: 18%;
  bottom: 23%;
}

.uma-interactive-hotspot-panels {
  min-height: 150px;
}

.uma-interactive-hotspot-panel,
.uma-interactive-carousel-panel {
  padding: 18px;
  background: var(--uma-gracious-gray);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-interactive-timeline {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.uma-interactive-timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--uma-medium-gray-1);
}

.uma-interactive-timeline-item:first-child {
  padding-top: 0;
}

.uma-interactive-timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.uma-interactive-timeline-date {
  color: var(--uma-hero-blue);
  font-weight: 700;
}

.uma-interactive-carousel {
  display: grid;
  gap: var(--uma-space-3);
}

.uma-interactive-carousel-stage {
  min-height: 210px;
}

.uma-interactive-carousel-panel h4 {
  margin-top: 0;
}

.uma-interactive-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.uma-interactive-carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  background: var(--uma-white);
  border: 1px solid var(--uma-hero-blue);
  border-radius: var(--uma-radius-pill);
  color: var(--uma-hero-blue);
  cursor: pointer;
  font-weight: 700;
}

.uma-interactive-carousel-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.uma-interactive-carousel-status {
  color: var(--uma-legend-blue);
  font-weight: 700;
}

.uma-interactive-demo .uma-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 53, 83, 0.72);
}

.uma-interactive-demo .uma-modal[hidden] {
  display: none;
}

.uma-interactive-modal-content {
  width: min(620px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  padding: 24px;
  background: var(--uma-white);
  border-radius: var(--uma-radius-lg);
  box-shadow: 0 20px 45px rgba(13, 53, 83, 0.22);
}

.uma-interactive-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.uma-interactive-modal-header h4 {
  margin: 0;
}

.uma-interactive-modal-close {
  flex: 0 0 auto;
}

.uma-interactive-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.uma-interactive-comparison-card {
  padding: var(--uma-space-4);
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-interactive-comparison-card h4 {
  margin-top: 0;
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 800px) {
  .uma-interactive-meta {
    grid-template-columns: 1fr;
    gap: var(--uma-space-3);
  }

  .uma-interactive-meta-item {
    padding: 4px 0 4px 48px;
  }

  .uma-interactive-meta-item + .uma-interactive-meta-item {
    padding-top: 18px;
    border-top: 1px solid #DDE5EB;
    border-left: 0;
  }

  .uma-interactive-meta-item::before {
    left: 4px;
  }

  .uma-interactive-meta-item::after {
    left: 11px;
  }

  .uma-interactive-meta-item + .uma-interactive-meta-item::before {
    top: 16px;
  }

  .uma-interactive-meta-item + .uma-interactive-meta-item::after {
    top: 23px;
  }
}

@media (max-width: 760px) {
  .uma-interactive-quick-nav ul,
  .uma-interactive-flip-grid,
  .uma-interactive-comparison-grid {
    grid-template-columns: 1fr;
  }

  .uma-interactive-tabs-vertical {
    grid-template-columns: 1fr;
  }

  .uma-interactive-tabs-vertical .uma-interactive-tab-list {
    flex-direction: row;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--uma-medium-gray-1);
  }

  .uma-interactive-hotspot-map {
    min-height: 430px;
  }

  .uma-interactive-hotspot-diagram {
    grid-template-columns: 1fr;
  }

  .uma-interactive-hotspot-button-1 {
    left: 12%;
    top: 12%;
  }

  .uma-interactive-hotspot-button-2 {
    right: 12%;
    top: 33%;
  }

  .uma-interactive-hotspot-button-3 {
    left: 12%;
    bottom: 31%;
  }

  .uma-interactive-hotspot-button-4 {
    right: 12%;
    bottom: 10%;
  }

  .uma-interactive-timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .uma-interactive-example-stage {
    padding: 14px;
  }

  .uma-interactive-example-card {
    padding: 14px;
  }

  .uma-interactive-meta,
  .uma-interactive-component-card > .uma-interactive-accessibility {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 520px) {
  .uma-interactive-tab-list {
    flex-direction: column;
  }

  .uma-interactive-demo .uma-tab-button {
    width: 100%;
    border-radius: var(--uma-radius-sm);
    text-align: left;
  }

  .uma-interactive-carousel-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .uma-interactive-carousel-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uma-interactive-flip-card-inner,
  .uma-interactive-demo .uma-accordion-button,
  .uma-interactive-demo .uma-tab-button,
  .uma-interactive-carousel-button {
    transition: none;
  }
}

/* ----------------------------------------------------------
   PRINT
---------------------------------------------------------- */

@media print {
  .uma-interactive-quick-nav,
  .uma-interactive-control,
  .uma-interactive-tab-list,
  .uma-interactive-carousel-controls,
  .uma-interactive-hotspot-map,
  .uma-interactive-modal-close {
    display: none !important;
  }

  .uma-interactive-component-card,
  .uma-interactive-example-stage,
  .uma-interactive-example-card,
  .uma-interactive-demo,
  .uma-interactive-hotspot-panel,
  .uma-interactive-carousel-panel,
  .uma-interactive-comparison-card,
  .uma-interactive-demo .uma-accordion-item,
  .uma-interactive-demo .uma-tab-panel,
  .uma-interactive-modal-content {
    break-inside: avoid;
    background: var(--uma-white) !important;
    box-shadow: none !important;
  }

  .uma-interactive-example-stage {
    padding: 12px 0;
  }

  .uma-interactive-meta {
    display: block !important;
    padding: 12px 0;
  }

  .uma-interactive-meta-item {
    margin-bottom: 12px;
    padding-left: 0;
  }

  .uma-interactive-meta-item::before,
  .uma-interactive-meta-item::after {
    display: none;
  }

  .uma-interactive-demo [hidden],
  .uma-interactive-demo .uma-modal[hidden] {
    display: block !important;
  }

  .uma-interactive-flip-card-inner,
  .uma-flip-card.is-flipped .uma-interactive-flip-card-inner {
    display: block;
    min-height: 0;
    transform: none !important;
  }

  .uma-interactive-flip-card-front,
  .uma-interactive-flip-card-back {
    position: static;
    min-height: 0;
    margin: 0 0 12px;
    overflow: visible;
    transform: none !important;
    backface-visibility: visible;
  }

  .uma-interactive-demo .uma-modal {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .uma-interactive-modal-content {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0;
  }
}

/* ==========================================================
   10. UMA FOOTER
========================================================== */

.uma-footer {
  border-top: 1px solid var(--uma-medium-gray-1);
  margin-top: 34px;
  padding: 18px 0 var(--uma-space-2);
}

.uma-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.uma-footer-actions {
  display: flex;
  align-items: center;
}

.uma-footer-brand {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.uma-footer-logo {
  display: block;
  height: 45px;
  width: auto;
  max-width: 220px;
}

.uma-print-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

@media (max-width: 520px) {
  .uma-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .uma-footer-brand {
    align-self: flex-start;
  }
}

/* ==========================================================
   11. UTILITIES
========================================================== */

.uma-text-center {
  text-align: center;
}

.uma-text-left {
  text-align: left;
}

.uma-full-width {
  width: 100%;
}

.uma-muted {
  color: var(--uma-medium-gray-2);
}

.uma-highlight {
  color: var(--uma-legend-blue);
  font-weight: 700;
}
/* ==========================================================
   CONTENT WRAPPER
========================================================== */

.uma-content {
    max-width: 800px !important;
    width: 100%;
    margin: 36px auto 0 !important;
}

.uma-content p,
.uma-content h2,
.uma-content h3,
.uma-content h4,
.uma-content h5,
.uma-content ul,
.uma-content ol,
.uma-content blockquote {
    max-width: 800px;
}

/* ==========================================================
   STEP TIMELINE
========================================================== */

.uma-step-timeline {
    list-style: none;
    margin: var(--uma-space-5) 0 28px;
    padding: 0;
    max-width: 850px;
}

.uma-step-timeline li {
    position: relative;
    padding: 0 0 22px 70px;
}

.uma-step-timeline li:last-child {
    padding-bottom: 0;
}

/* Vertical line */
.uma-step-timeline li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 38px;
    bottom: 0;
    width: 3px;
    background: var(--uma-hero-blue);
}

/* Hide the line after the last item */
.uma-step-timeline li:last-child::before {
    display: none;
}

/* Number Circle */
.uma-step-number {
    position: absolute;
    left: 0;
    top: 0;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    background: var(--uma-hero-blue);
    color: var(--uma-white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
    font-weight: 800;

    z-index: 2;
}

/* Title */
.uma-step-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--uma-legend-blue);
}

/* Description */
.uma-step-description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #253746;
}
/* ==========================================================
   RESPONSIVE VERTICAL TIMELINE
========================================================== */

.uma-vertical-timeline {
  position: relative;
  list-style: none;
  margin: 32px 0 12px;
  padding: 0;
}

.uma-vertical-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--uma-hero-blue);
  border-radius: 999px;
  transform: translateX(-50%);
}

.uma-vertical-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 28px;
}

.uma-vertical-timeline-item:last-child {
  margin-bottom: 0;
}

.uma-vertical-timeline-marker {
  position: relative;
  z-index: 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--uma-hero-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 0 2px var(--uma-hero-blue);
}

.uma-vertical-timeline-card {
  position: relative;
  padding: 18px 20px;
  border: 1px solid #cfdce5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(13, 53, 83, 0.08);
}

.uma-vertical-timeline-item:nth-child(odd)
  .uma-vertical-timeline-card {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.uma-vertical-timeline-item:nth-child(even)
  .uma-vertical-timeline-card {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}

.uma-vertical-timeline-item:nth-child(odd)
  .uma-vertical-timeline-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 16px;
  height: 16px;
  border-top: 1px solid #cfdce5;
  border-right: 1px solid #cfdce5;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.uma-vertical-timeline-item:nth-child(even)
  .uma-vertical-timeline-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -9px;
  width: 16px;
  height: 16px;
  border-bottom: 1px solid #cfdce5;
  border-left: 1px solid #cfdce5;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.uma-vertical-timeline-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--uma-hero-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uma-vertical-timeline-card h4 {
  margin: 0 0 8px;
  color: var(--uma-legend-blue);
}

.uma-vertical-timeline-card p {
  margin: 0;
}

/* Narrow D2L and mobile layout */
@media (max-width: 760px) {
  .uma-vertical-timeline {
    padding-left: 58px;
  }

  .uma-vertical-timeline::before {
    left: 22px;
    transform: none;
  }

  .uma-vertical-timeline-item {
    display: block;
    margin-bottom: 24px;
  }

  .uma-vertical-timeline-marker {
    position: absolute;
    top: 18px;
    left: -58px;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .uma-vertical-timeline-item:nth-child(odd)
    .uma-vertical-timeline-card,
  .uma-vertical-timeline-item:nth-child(even)
    .uma-vertical-timeline-card {
    text-align: left;
  }

  .uma-vertical-timeline-item:nth-child(odd)
    .uma-vertical-timeline-card::after {
    display: none;
  }

  .uma-vertical-timeline-item:nth-child(even)
    .uma-vertical-timeline-card::before {
    top: 28px;
    left: -9px;
    display: block;
  }
}

@media print {
  .uma-vertical-timeline::before {
    background: #666;
  }

  .uma-vertical-timeline-marker {
    border-color: #fff;
    background: #fff;
    color: #000;
    box-shadow: 0 0 0 2px #666;
  }

  .uma-vertical-timeline-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* ==========================================================
   MEDIA COMPONENTS
========================================================== */

body.uma-modal-open {
  overflow: hidden;
}

.uma-media-intro {
  margin: 0 0 var(--uma-space-6);
}

.uma-media-best-practices {
  margin: 18px 0 var(--uma-space-6);
}

.uma-narrow .uma-media-quick-nav ul,
.uma-narrow .uma-media-card-grid,
.uma-narrow .uma-image-grid,
.uma-narrow .uma-image-pair,
.uma-narrow .uma-media-placeholder-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uma-media-quick-nav {
  margin: var(--uma-space-5) 0 28px;
  padding: 18px var(--uma-space-5);
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
  box-shadow: var(--uma-shadow-card);
}

.uma-media-quick-nav h2 {
  margin: 0 0 10px;
  color: var(--uma-legend-blue);
  font-size: 1.2rem;
}

.uma-media-quick-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.uma-media-quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--uma-hero-blue);
  font-weight: 700;
  text-decoration: none;
}

.uma-media-quick-nav a::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--uma-journey-green);
  border: 1px solid var(--uma-legend-blue);
  flex: 0 0 auto;
}

.uma-media-quick-nav a:hover,
.uma-media-quick-nav a:focus-visible {
  color: var(--uma-legend-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.uma-media-section {
  margin: 36px 0 var(--uma-space-8);
  scroll-margin-top: 28px;
}

.uma-media-component {
  margin: 26px 0;
  padding: 24px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-lg);
  box-shadow: var(--uma-shadow-card);
}

.uma-media-component-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.uma-media-component-header h3 {
  margin: 0 0 6px;
  color: var(--uma-legend-blue);
  font-size: 1.25rem;
  line-height: 1.25;
}

.uma-media-component-header p {
  margin: 0;
}

.uma-media-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  background: var(--uma-info-bg);
  border: 1px solid #cfeaf5;
  border-radius: var(--uma-radius-pill);
  color: var(--uma-legend-blue);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.uma-media-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.uma-media-meta {
  padding: 14px;
  background: var(--uma-gracious-gray);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-sm);
}

.uma-media-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--uma-legend-blue);
}

.uma-media-meta p {
  margin: 0;
  font-size: 0.98rem;
}

.uma-media-guidance {
  margin: 16px 0 0;
  padding: 14px var(--uma-space-5);
  background: var(--uma-info-bg);
  border-left: 5px solid var(--uma-horizon-blue);
  border-radius: var(--uma-radius-sm);
}

.uma-media-guidance strong {
  color: var(--uma-legend-blue);
}

.uma-media-card-grid,
.uma-image-grid,
.uma-image-pair,
.uma-media-placeholder-grid {
  display: grid;
  gap: 14px;
}

.uma-media-card-grid,
.uma-image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.uma-media-placeholder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uma-media-figure {
  margin: 0;
  overflow: hidden;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-media-figure img,
.uma-media-image {
  display: block;
  width: 100%;
  height: auto;
}

.uma-media-figure--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.uma-media-caption,
.uma-media-figure figcaption {
  padding: 12px 14px;
  background: var(--uma-gracious-gray);
  border-top: 1px solid var(--uma-medium-gray-1);
  color: #253746;
  font-size: 0.98rem;
  line-height: 1.55;
}

.uma-image-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--uma-legend-blue);
  font-weight: 700;
}

.uma-image-align {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.uma-image-align--right {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
}

.uma-image-align--right .uma-media-figure {
  order: 2;
}

.uma-image-align--right .uma-image-align-content {
  order: 1;
}

.uma-image-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: var(--uma-radius-md);
  cursor: zoom-in;
  text-align: left;
}

.uma-image-zoom-trigger img {
  display: block;
  width: 100%;
  height: auto;
}

.uma-image-zoom-trigger:hover,
.uma-image-zoom-trigger:focus-visible,
.uma-image-gallery-thumb:hover,
.uma-image-gallery-thumb:focus-visible,
.uma-image-comparison-range:focus-visible,
.uma-media-playlist-button:hover,
.uma-media-playlist-button:focus-visible {
  outline: 3px solid rgba(29, 107, 166, 0.35);
  outline-offset: 3px;
}

.uma-image-zoom-hint {
  display: block;
  padding: 10px 12px;
  background: var(--uma-info-bg);
  color: var(--uma-legend-blue);
  font-size: 0.92rem;
  font-weight: 600;
}

.uma-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 53, 83, 0.74);
}

.uma-modal[hidden] {
  display: none;
}

.uma-modal-dialog {
  width: min(880px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  background: var(--uma-white);
  border-radius: var(--uma-radius-lg);
  box-shadow: 0 20px 45px rgba(13, 53, 83, 0.22);
}

.uma-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 0;
}

.uma-modal-header h3,
.uma-modal-header h4 {
  margin: 0;
  color: var(--uma-legend-blue);
}

.uma-modal-body {
  padding: 20px 22px 22px;
}

.uma-image-zoom-modal .uma-modal-dialog {
  width: min(1040px, 100%);
}

.uma-image-zoom-large {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: var(--uma-gracious-gray);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-sm);
}

.uma-image-gallery {
  display: grid;
  gap: 16px;
}

.uma-image-gallery-main {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-image-gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.uma-image-gallery-thumb {
  display: grid;
  gap: 6px;
  padding: 8px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-sm);
  color: var(--uma-integrity-gray);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.uma-image-gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.uma-image-gallery-thumb.is-selected,
.uma-image-gallery-thumb[aria-pressed="true"] {
  border-color: var(--uma-hero-blue);
  box-shadow: inset 0 0 0 2px var(--uma-journey-green);
}

.uma-image-comparison {
  --uma-image-comparison-position: 50%;
}

.uma-image-comparison-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--uma-gracious-gray);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-image-comparison-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uma-image-comparison-after {
  clip-path: inset(0 calc(100% - var(--uma-image-comparison-position)) 0 0);
}

.uma-image-comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--uma-image-comparison-position);
  width: 3px;
  background: var(--uma-journey-green);
  box-shadow: 0 0 0 1px var(--uma-legend-blue);
}

.uma-image-comparison-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-pill);
  color: var(--uma-legend-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.uma-image-comparison-label--before {
  left: 12px;
}

.uma-image-comparison-label--after {
  right: 12px;
}

.uma-image-comparison-controls {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.uma-image-comparison-range {
  width: 100%;
  accent-color: var(--uma-hero-blue);
}

.uma-image-comparison-print {
  display: none;
}

.uma-media-frame {
  overflow: hidden;
  background: var(--uma-gracious-gray);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-media-ratio {
  position: relative;
  aspect-ratio: 16 / 9;
}

.uma-media-ratio > iframe,
.uma-media-ratio > video,
.uma-media-ratio > .uma-video-placeholder,
.uma-media-ratio > .uma-media-placeholder-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.uma-media-ratio iframe,
.uma-media-ratio video {
  border: 0;
}

.uma-video-placeholder,
.uma-media-placeholder-visual {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(29, 107, 166, 0.10), rgba(21, 234, 196, 0.14)),
    var(--uma-gracious-gray);
  color: var(--uma-legend-blue);
  text-align: center;
}

.uma-video-placeholder strong,
.uma-media-placeholder-visual strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.uma-media-transcript {
  margin: 14px 0 0;
  padding: var(--uma-space-4);
  background: var(--uma-gracious-gray);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-media-transcript h4 {
  margin-top: 0;
  color: var(--uma-legend-blue);
}

.uma-video-card,
.uma-audio-card,
.uma-media-placeholder-card {
  overflow: hidden;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
  box-shadow: var(--uma-shadow-card);
}

.uma-video-card-body,
.uma-audio-card-body,
.uma-media-placeholder-card-body {
  padding: var(--uma-space-4);
}

.uma-video-card h4,
.uma-audio-card h4,
.uma-media-placeholder-card h4 {
  margin: 0 0 8px;
  color: var(--uma-legend-blue);
}

.uma-video-thumbnail,
.uma-audio-artwork {
  display: grid;
  place-items: center;
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(13, 53, 83, 0.92), rgba(29, 107, 166, 0.82)),
    var(--uma-legend-blue);
  color: var(--uma-white);
  font-weight: 700;
  text-align: center;
}

.uma-video-thumbnail {
  aspect-ratio: 16 / 9;
}

.uma-audio-artwork {
  aspect-ratio: 1 / 1;
}

.uma-media-player,
.uma-audio-player {
  width: 100%;
}

.uma-media-playlist {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: var(--uma-space-4);
  align-items: start;
}

.uma-media-playlist-panel {
  min-width: 0;
}

.uma-media-playlist-list {
  display: grid;
  gap: 10px;
}

.uma-media-playlist-button {
  width: 100%;
  padding: 14px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-sm);
  color: var(--uma-integrity-gray);
  cursor: pointer;
  text-align: left;
}

.uma-media-playlist-button strong {
  display: block;
  color: var(--uma-legend-blue);
}

.uma-media-playlist-button span {
  display: block;
  margin-top: 3px;
  color: #4D5D6C;
  font-size: 0.92rem;
}

.uma-media-playlist-button.is-selected,
.uma-media-playlist-button[aria-pressed="true"] {
  border-color: var(--uma-hero-blue);
  background: var(--uma-info-bg);
}

.uma-pronunciation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--uma-space-4);
  background: var(--uma-gracious-gray);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-pronunciation h4 {
  margin: 0 0 4px;
  color: var(--uma-legend-blue);
}

.uma-pronunciation p {
  margin: 0;
}

.uma-media-print-summary {
  display: none;
}

.uma-media-print-only {
  display: none;
}

.uma-media-placeholder-card {
  min-height: 100%;
}

.uma-media-placeholder-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  background: var(--uma-info-bg);
  border-radius: var(--uma-radius-pill);
  color: var(--uma-legend-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.uma-media-size-table th:first-child,
.uma-media-size-table td:first-child {
  white-space: nowrap;
}
/* ==========================================================
   MEDIA COMPONENT DOCUMENTATION — ELEVATED EXAMPLE LAYOUT
   No JavaScript required.
========================================================== */

/* Whole documentation component */
.uma-component-docs .uma-media-component {
  margin: var(--uma-space-5) 0;
  padding: 0;
  overflow: hidden;
  background: var(--uma-page-background);
  border: 1px solid #D7E0E7;
  border-radius: var(--uma-radius-lg);
  box-shadow: var(--uma-shadow-card);
}

/* Component name, purpose, and status pill */
.uma-component-docs .uma-media-component-header {
  margin: 0;
  padding: 18px var(--uma-space-5);
  background: var(--uma-page-background);
  border-bottom: 1px solid #DFE6EC;
}

/* Gray stage that visually separates documentation from the real example */
.uma-media-example-stage {
  padding: 18px var(--uma-space-5);
  background: #E9EEF2;
  border-bottom: 1px solid #D7E0E7;
}

/* The real component example becomes the visual focus */
.uma-media-example-card {
  min-width: 0;
  padding: 18px;
  background: var(--uma-white);
  border: 1px solid #D4DDE5;
  border-radius: var(--uma-radius-md);
  box-shadow:
    0 10px 24px rgba(13, 53, 83, 0.10),
    0 2px 6px rgba(13, 53, 83, 0.05);
}

/* Prevent extra outside margins from weakening the example frame */
.uma-media-example-card > :first-child {
  margin-top: 0;
}

.uma-media-example-card > :last-child {
  margin-bottom: 0;
}

/* Documentation details below the example — no boxed mini-panels */
.uma-component-docs .uma-media-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 18px var(--uma-space-5) var(--uma-space-4);
  background: var(--uma-white);
  border-bottom: 1px solid #E1E7EC;
}

.uma-component-docs .uma-media-meta {
  position: relative;
  min-width: 0;
  padding: 4px 22px 4px 52px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.uma-component-docs .uma-media-meta + .uma-media-meta {
  border-left: 1px solid #DDE5EB;
}

/* Icon circle */
.uma-component-docs .uma-media-meta::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.14;
}

/* White SVG-like icon rendered with a CSS mask */
.uma-component-docs .uma-media-meta::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 19px;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* Target / best-used-for icon */
.uma-component-docs .uma-media-meta--best {
  color: #087F6A;
}

.uma-component-docs .uma-media-meta--best::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10h-2a8 8 0 1 1-2.34-5.66l-2.13 2.13A5 5 0 1 0 17 12h-2a3 3 0 1 1-.88-2.12l-2.83 2.83 1.42 1.42 2.83-2.83A5 5 0 0 0 12 7a5 5 0 1 0 5 5h-2a3 3 0 1 1-3-3v2l5-5h-3V3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10h-2a8 8 0 1 1-2.34-5.66l-2.13 2.13A5 5 0 1 0 17 12h-2a3 3 0 1 1-.88-2.12l-2.83 2.83 1.42 1.42 2.83-2.83A5 5 0 0 0 12 7a5 5 0 1 0 5 5h-2a3 3 0 1 1-3-3v2l5-5h-3V3z'/%3E%3C/svg%3E");
}

/* Document / format and behavior icon */
.uma-component-docs .uma-media-meta--format {
  color: var(--uma-hero-blue);
}

.uma-component-docs .uma-media-meta--format::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h8l4 4v16H6V2zm2 2v16h8V7h-3V4H8zm2 7h4v2h-4v-2zm0 4h4v2h-4v-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h8l4 4v16H6V2zm2 2v16h8V7h-3V4H8zm2 7h4v2h-4v-2zm0 4h4v2h-4v-2z'/%3E%3C/svg%3E");
}

/* Lightbulb / guidance icon */
.uma-component-docs .uma-media-meta--guidance {
  color: #7452A6;
}

.uma-component-docs .uma-media-meta--guidance::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 21h6v-2H9v2zm3-19a7 7 0 0 0-4 12.74V17h8v-2.26A7 7 0 0 0 12 2zm2.85 11.1-.85.62V15h-4v-1.28l-.85-.62A5 5 0 1 1 14.85 13.1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 21h6v-2H9v2zm3-19a7 7 0 0 0-4 12.74V17h8v-2.26A7 7 0 0 0 12 2zm2.85 11.1-.85.62V15h-4v-1.28l-.85-.62A5 5 0 1 1 14.85 13.1z'/%3E%3C/svg%3E");
}

.uma-component-docs .uma-media-meta-label {
  display: block;
  margin: 0 0 5px;
  color: var(--uma-legend-blue);
  font-size: 0.92rem;
  font-weight: var(--uma-font-weight-bold);
  line-height: 1.3;
}

.uma-component-docs .uma-media-meta p {
  margin: 0;
  color: var(--uma-text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Accessibility guidance remains a separate full-width note */
.uma-component-docs .uma-media-component > .uma-media-guidance {
  margin: 0;
  padding: 14px var(--uma-space-5);
  background: var(--uma-info-bg);
  border: 0;
  border-left: 5px solid var(--uma-horizon-blue);
  border-radius: 0;
}

/* Preserve nested guidance inside examples such as modals/transcripts */
.uma-component-docs .uma-media-example-card .uma-media-guidance {
  margin-top: 16px;
  border-radius: var(--uma-radius-sm);
}

/* Tablet */
@media (max-width: 800px) {
  .uma-component-docs .uma-media-meta-grid {
    grid-template-columns: 1fr;
    gap: var(--uma-space-3);
  }

  .uma-component-docs .uma-media-meta {
    padding: 4px 0 4px 48px;
  }

  .uma-component-docs .uma-media-meta + .uma-media-meta {
    padding-top: 18px;
    border-top: 1px solid #DDE5EB;
    border-left: 0;
  }

  .uma-component-docs .uma-media-meta::before {
    left: 4px;
  }

  .uma-component-docs .uma-media-meta::after {
    left: 11px;
  }

  .uma-component-docs .uma-media-meta + .uma-media-meta::before {
    top: 16px;
  }

  .uma-component-docs .uma-media-meta + .uma-media-meta::after {
    top: 23px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .uma-media-example-stage {
    padding: 14px;
  }

  .uma-media-example-card {
    padding: 14px;
  }

  .uma-component-docs .uma-media-component-header,
  .uma-component-docs .uma-media-meta-grid,
  .uma-component-docs .uma-media-component > .uma-media-guidance {
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* Print */
@media print {
  .uma-component-docs .uma-media-component,
  .uma-media-example-stage,
  .uma-media-example-card {
    background: var(--uma-white) !important;
    box-shadow: none !important;
  }

  .uma-media-example-stage {
    padding: 12px 0;
  }

  .uma-component-docs .uma-media-meta-grid {
    display: block;
    padding: 12px 0;
  }

  .uma-component-docs .uma-media-meta {
    margin-bottom: 12px;
    padding-left: 0;
  }

  .uma-component-docs .uma-media-meta::before,
  .uma-component-docs .uma-media-meta::after {
    display: none;
  }
}
/* ==========================================================
   12. RESPONSIVE
========================================================== */

@media (max-width: 800px) {
  .uma-page {
    padding: var(--uma-space-3) 28px 44px;
  }

  .uma-page-header {
    border-radius: 0 0 26px 0;
  }

  .uma-info-grid {
    grid-template-columns: 1fr;
  }

  .uma-media-quick-nav ul,
  .uma-media-meta-grid,
  .uma-media-card-grid,
  .uma-image-grid,
  .uma-image-pair,
  .uma-media-placeholder-grid,
  .uma-media-playlist {
    grid-template-columns: 1fr;
  }

  .uma-media-component-header,
  .uma-pronunciation {
    align-items: stretch;
    flex-direction: column;
  }

  .uma-image-align,
  .uma-image-align--right {
    grid-template-columns: 1fr;
  }

  .uma-image-align--right .uma-media-figure,
  .uma-image-align--right .uma-image-align-content {
    order: initial;
  }

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

  .uma-timeline-item {
    grid-template-columns: 1fr;
  }

  .uma-print-footer {
    align-items: flex-start;
    flex-direction: column;
	}
}

/* ==========================================================
   13. PRINT
========================================================== */

@media print {
  .uma-footer-inner {
    justify-content: flex-end;
  }

  .uma-action-btn,
  .uma-print-btn,
  .uma-media-screen-only,
  .uma-image-zoom-trigger,
  .uma-image-gallery-thumbs,
  .uma-image-comparison-controls,
  .uma-media-player,
  .uma-audio-player,
  .uma-media-playlist-list,
  .uma-modal-header button,
  .uma-media-component button,
  video,
  audio,
  iframe {
    display: none;
  }

  .uma-page {
    max-width: 100%;
    padding: 0;
  }

  .uma-page-header,
  .uma-info-block,
  .uma-activity,
  .uma-reflection,
  .uma-ai-activity,
  .uma-media-component,
  .uma-media-figure,
  .uma-video-card,
  .uma-audio-card,
  .uma-media-placeholder-card,
  .uma-media-meta,
  .uma-media-guidance {
    box-shadow: none;
  }

  .uma-page-header::after {
    display: none;
  }

  .uma-media-section,
  .uma-media-component,
  .uma-media-figure,
  .uma-video-card,
  .uma-audio-card,
  .uma-media-placeholder-card,
  .uma-media-transcript,
  .uma-image-pair,
  .uma-image-grid,
  .uma-media-placeholder-grid {
    break-inside: avoid;
  }

  .uma-media-component,
  .uma-media-quick-nav,
  .uma-media-meta,
  .uma-media-guidance,
  .uma-video-card,
  .uma-audio-card,
  .uma-media-placeholder-card,
  .uma-media-transcript {
    background: var(--uma-white) !important;
  }

  .uma-media-print-summary,
  .uma-media-print-only {
    display: block !important;
  }

  .uma-media-print-summary {
    margin: 10px 0;
    padding: 10px 12px;
    border: 1px solid var(--uma-medium-gray-1);
    border-radius: var(--uma-radius-sm);
  }

  .uma-media-meta-grid,
  .uma-media-card-grid,
  .uma-image-grid,
  .uma-image-pair,
  .uma-media-placeholder-grid,
  .uma-media-playlist,
  .uma-image-align,
  .uma-image-align--right {
    display: block;
  }

  .uma-media-meta,
  .uma-video-card,
  .uma-audio-card,
  .uma-media-placeholder-card,
  .uma-media-figure,
  .uma-image-comparison-print figure {
    margin: 0 0 12px;
  }

  .uma-image-comparison-stage {
    display: none;
  }

  .uma-image-comparison-print {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .uma-modal,
  .uma-modal[hidden] {
    position: static;
    display: block !important;
    padding: 0;
    background: transparent;
  }

  .uma-modal-dialog {
    width: 100%;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .uma-modal-header,
  .uma-modal-body {
    padding: 0;
  }

  .uma-video-placeholder,
  .uma-media-placeholder-visual,
  .uma-video-thumbnail,
  .uma-audio-artwork {
    min-height: auto;
    padding: 12px;
    background: var(--uma-white) !important;
    color: var(--uma-legend-blue) !important;
    border: 1px solid var(--uma-medium-gray-1);
  }

  .uma-accordion-item {
    break-inside: avoid;
    box-shadow: none !important;
    background: var(--uma-white) !important;
  }

  .uma-accordion-button,
  .uma-media-component .uma-accordion-button {
    display: block;
    padding: 10px 0;
    background: transparent !important;
    color: var(--uma-legend-blue) !important;
    border: 0;
    font-size: 1rem;
  }

  .uma-accordion-button::after {
    display: none;
  }

  .uma-accordion [hidden] {
    display: block !important;
  }
}

/* ==========================================================
   14. INTERACTIVE CONTENT PRINT EXPANSION
   Forces hidden instructional content in accordions, tabs,
   click-and-reveal, and flip cards to print in full,
   regardless of on-screen open/closed state. Screen behavior
   is unchanged.
========================================================== */

@media print {
  .uma-accordion-button + [hidden] {
    display: block !important;
  }

  .uma-tabs [role="tablist"] {
    display: none !important;
  }

  .uma-tabs .uma-tab-panel[hidden] {
    display: block !important;
  }

  .uma-tabs .uma-tab-panel {
    margin: 0 0 16px;
  }

  .uma-reveal-button + [hidden] {
    display: block !important;
  }

  .uma-flip-card,
  .uma-flip-card * {
    transform: none !important;
  }

  .uma-flip-card [class$="-flip-card-front"],
  .uma-flip-card [class$="-flip-card-back"] {
    position: static;
    overflow: visible;
    backface-visibility: visible;
    margin: 0 0 12px;
  }
}

/* ==========================================================
   WELCOME WIDGET
========================================================== */

.uma-welcome-widget {
  padding-top: 22px;
  padding-bottom: 36px;
  font-family: Roboto, Arial, sans-serif;
  color: var(--uma-legend-blue);
  background: var(--uma-white);
}

.uma-welcome-widget .uma-section {
  margin: 0;
}

.uma-widget-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
}

.uma-widget-heading-line {
  flex: 1 1 72px;
  max-width: 180px;
  height: 2px;
  background: var(--uma-journey-green);
  border-radius: var(--uma-radius-pill);
}

.uma-widget-badge-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
  display: block;
}

.uma-widget-heading h1 {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: var(--uma-legend-blue);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.uma-widget-checklist {
  grid-template-columns: 1fr;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.uma-widget-card-grid {
  margin-top: 18px;
}

.uma-welcome-widget .uma-info-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #F5FAFD;
  border-color: #D6EAF7;
}

.uma-welcome-widget .uma-info-block h3,
.uma-welcome-widget .uma-callout-title {
  font-size: 1.05rem;
}

.uma-welcome-widget .uma-info-block p,
.uma-welcome-widget .uma-callout-content p {
  margin: 0;
  line-height: 1.5;
  color: #253746;
}

.uma-welcome-widget strong {
  color: var(--uma-hero-blue);
  font-weight: 700;
}

.uma-widget-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}

.uma-widget-ready {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--uma-legend-blue);
  text-align: center;
}

.uma-widget-ready h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
}

.uma-widget-ready-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 52px;
}

@media (max-width: 700px) {
  .uma-widget-badge-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .uma-widget-heading {
    gap: 10px;
  }

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

  .uma-welcome-widget .uma-info-block,
  .uma-widget-ready {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .uma-widget-heading-line {
    display: none;
  }

  .uma-widget-heading h1 {
    white-space: normal;
  }

  .uma-welcome-widget {
    padding-right: 18px;
    padding-left: 18px;
  }

  .uma-widget-ready-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

/* ==========================================================
   12. ASSESSMENT COMPONENTS
========================================================== */

.uma-assessment-section {
  margin: 36px 0 var(--uma-space-8);
  scroll-margin-top: 24px;
}

.uma-assessment-card {
  max-width: 100%;
  min-width: 0;
  margin-top: 20px;
  padding: 24px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-lg);
  box-shadow: var(--uma-shadow-card);
  box-sizing: border-box;
}

.uma-assessment-card--compact {
  padding: 20px;
}

.uma-assessment-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.uma-assessment-card-header h3 {
  margin: 0 0 6px;
  color: var(--uma-legend-blue);
  font-size: 1.2rem;
}

.uma-assessment-card-header > div {
  flex: 1 1 280px;
  min-width: 0;
}

.uma-assessment-card-header p {
  margin: 0;
  color: #4a5b6a;
}

.uma-assessment-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: var(--uma-radius-pill);
  background: #f2f7fb;
  color: var(--uma-hero-blue);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}

.uma-assessment-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.uma-assessment-meta-grid > div {
  min-width: 0;
  padding: 14px 16px;
  background: #f7fbfd;
  border: 1px solid #dfeef6;
  border-radius: var(--uma-radius-md);
}

.uma-assessment-meta-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--uma-legend-blue);
}

.uma-assessment-demo {
  max-width: 100%;
  min-width: 0;
  margin: 22px 0;
  padding: 24px;
  background: #f7fbfd;
  border: 1px solid #dceef8;
  border-radius: var(--uma-radius-lg);
  box-sizing: border-box;
}

.uma-assessment-demo *,
.uma-assessment-demo *::before,
.uma-assessment-demo *::after {
  box-sizing: border-box;
}

.uma-assessment-demo img,
.uma-assessment-demo svg {
  max-width: 100%;
  height: auto;
}

.uma-assessment-guidance {
  margin: 12px 0 0;
  padding: 14px var(--uma-space-5);
  color: #4f5e6d;
}

.uma-assessment-quick-nav {
  margin: var(--uma-space-5) 0 28px;
  padding: 18px var(--uma-space-5);
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-lg);
  box-shadow: var(--uma-shadow-card);
}

.uma-assessment-quick-nav h2 {
  margin: 0 0 10px;
  color: var(--uma-legend-blue);
  font-size: 1.1rem;
}

.uma-assessment-quick-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uma-assessment-quick-nav a {
  color: var(--uma-hero-blue);
  font-weight: 700;
  text-decoration: none;
}

.uma-assessment-quick-nav a:hover,
.uma-assessment-quick-nav a:focus-visible {
  color: var(--uma-legend-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.uma-assessment-form {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.uma-assessment-fieldset {
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dceef8;
  border-radius: var(--uma-radius-md);
}

.uma-assessment-fieldset legend {
  max-width: 100%;
  margin-bottom: 12px;
  padding: 0;
  color: var(--uma-legend-blue);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.uma-assessment-choice-list {
  display: grid;
  gap: 10px;
}

.uma-assessment-choice-list--compact {
  gap: 8px;
}

.uma-assessment-option,
.uma-assessment-binary-option,
.uma-assessment-likert-option,
.uma-assessment-match-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-sm);
  box-sizing: border-box;
  color: var(--uma-integrity-gray);
  font: inherit;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.uma-assessment-option,
.uma-assessment-binary-option,
.uma-assessment-likert-option {
  cursor: pointer;
}

.uma-assessment-match-btn {
  appearance: none;
  text-align: left;
  cursor: pointer;
}

.uma-assessment-option input,
.uma-assessment-binary-option input,
.uma-assessment-likert-option input,
.uma-assessment-image-option input,
.uma-assessment-hotspot-alternatives input,
.uma-assessment-option input[type="radio"],
.uma-assessment-option input[type="checkbox"] {
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--uma-hero-blue);
}

.uma-assessment-option span,
.uma-assessment-binary-option span,
.uma-assessment-likert-option span,
.uma-assessment-image-option span {
  min-width: 0;
}

.uma-assessment-option.is-selected,
.uma-assessment-binary-option.is-selected,
.uma-assessment-likert-option.is-selected,
.uma-assessment-match-btn.is-selected,
.uma-assessment-image-option.is-selected {
  border-color: var(--uma-hero-blue);
  box-shadow: inset 0 0 0 1px rgba(29, 107, 166, 0.18);
}

.uma-assessment-option:hover,
.uma-assessment-binary-option:hover,
.uma-assessment-likert-option:hover,
.uma-assessment-image-option:hover,
.uma-assessment-match-btn:hover {
  border-color: var(--uma-horizon-blue);
}

.uma-assessment-option:focus-within,
.uma-assessment-binary-option:focus-within,
.uma-assessment-likert-option:focus-within,
.uma-assessment-image-option:focus-within,
.uma-assessment-match-btn:focus-visible,
.uma-assessment-hotspot-btn:focus-visible,
.uma-assessment-text-input:focus,
.uma-assessment-textarea:focus,
.uma-assessment-categorization-row select:focus {
  outline: 3px solid rgba(29, 107, 166, 0.28);
  outline-offset: 2px;
  border-color: var(--uma-hero-blue);
}

.uma-assessment-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.uma-assessment-controls > button {
  max-width: 100%;
}

.uma-assessment-reset[hidden],
.uma-assessment-sample-response[hidden],
.uma-assessment-case-summary[hidden],
.uma-assessment-case-step[hidden] {
  display: none !important;
}

.uma-assessment-feedback {
  margin-top: 4px;
  padding: 14px 16px;
  border-left: 5px solid var(--uma-horizon-blue);
  border-radius: var(--uma-radius-sm);
  background: var(--uma-white);
}

.uma-assessment-feedback[data-state="correct"] {
  border-color: #2f7d59;
  background: #f3fbf6;
}

.uma-assessment-feedback[data-state="incorrect"] {
  border-color: var(--uma-warning-border);
  background: var(--uma-warning-bg);
}

.uma-assessment-feedback[data-state="partial"] {
  border-color: #f2b84b;
  background: #fff8e8;
}

.uma-assessment-feedback[data-state="informational"] {
  border-color: var(--uma-hero-blue);
  background: #f2f8fc;
}

.uma-assessment-feedback strong {
  display: block;
  margin-bottom: 4px;
  color: var(--uma-legend-blue);
}

.uma-assessment-text-label,
.uma-assessment-prompt {
  display: block;
  font-weight: 700;
  color: var(--uma-legend-blue);
}

.uma-assessment-text-input,
.uma-assessment-textarea,
.uma-assessment-categorization-row select {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-sm);
  color: var(--uma-integrity-gray);
  background: var(--uma-white);
}

.uma-assessment-textarea {
  min-height: 120px;
  resize: vertical;
}

.uma-assessment-sample-response {
  padding: 16px 18px;
  background: #f3f8fb;
  border: 1px solid #dceef8;
  border-radius: var(--uma-radius-md);
}

.uma-assessment-sample-response h4 {
  margin: 0 0 6px;
  color: var(--uma-legend-blue);
}

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

.uma-assessment-matching-grid > div {
  min-width: 0;
}

.uma-assessment-matching-grid h4 {
  margin: 0 0 10px;
  color: var(--uma-legend-blue);
}

.uma-assessment-match-results {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px dashed var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-sm);
  background: var(--uma-white);
  overflow-wrap: anywhere;
}

.uma-assessment-match-result {
  padding: 4px 0;
}

.uma-assessment-categorization-list {
  display: grid;
  gap: 10px;
}

.uma-assessment-categorization-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.uma-assessment-categorization-row label {
  min-width: 0;
  color: var(--uma-legend-blue);
  font-weight: 700;
  line-height: 1.4;
}

.uma-assessment-order-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.uma-assessment-order-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-sm);
}

.uma-assessment-order-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--uma-hero-blue);
  color: var(--uma-white);
  font-weight: 800;
}

.uma-assessment-order-label {
  flex: 1;
  font-weight: 700;
  color: var(--uma-legend-blue);
}

.uma-assessment-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uma-assessment-order-actions .uma-secondary-btn {
  min-width: 44px;
  padding: 8px 10px;
}

.uma-assessment-scenario {
  padding: 14px 16px;
  border-left: 4px solid var(--uma-hero-blue);
  background: #f3f8fb;
  border-radius: var(--uma-radius-sm);
  overflow-wrap: anywhere;
}

.uma-assessment-binary-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.uma-assessment-likert-scale {
  display: grid;
  gap: 8px;
}

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

.uma-assessment-image-option {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
  cursor: pointer;
}

.uma-assessment-image-option img {
  display: block;
  width: 100%;
  border-radius: var(--uma-radius-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.uma-assessment-image-option span {
  font-weight: 700;
  color: var(--uma-legend-blue);
}

.uma-assessment-hotspot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
}

.uma-assessment-hotspot-graphic {
  position: relative;
  min-width: 0;
  padding: 12px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-assessment-hotspot-graphic svg {
  display: block;
  width: 100%;
}

.uma-assessment-hotspot-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border: 1px solid var(--uma-hero-blue);
  border-radius: 50%;
  background: var(--uma-white);
  color: var(--uma-legend-blue);
  font-weight: 800;
  cursor: pointer;
}

.uma-assessment-hotspot-graphic [data-hotspot-value="a"] {
  top: 38%;
  left: 31%;
}

.uma-assessment-hotspot-graphic [data-hotspot-value="b"] {
  top: 38%;
  left: 68%;
}

.uma-assessment-hotspot-graphic [data-hotspot-value="c"] {
  top: 68%;
  left: 31%;
}

.uma-assessment-hotspot-graphic [data-hotspot-value="d"] {
  top: 68%;
  left: 68%;
}

.uma-assessment-hotspot-btn.is-selected {
  background: var(--uma-hero-blue);
  color: var(--uma-white);
}

.uma-assessment-hotspot-alternatives {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-assessment-hotspot-alternatives h4,
.uma-assessment-hotspot-alternatives legend {
  margin: 0 0 8px;
  padding: 0;
  color: var(--uma-legend-blue);
  font-weight: 600;
}

.uma-assessment-hotspot-alternatives ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uma-assessment-hotspot-alternatives label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #f7fbfd;
  border: 1px solid #dceef8;
  border-radius: var(--uma-radius-sm);
}

.uma-assessment-labeling-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.uma-assessment-labeling-layout > div,
.uma-assessment-labeling-controls {
  min-width: 0;
}

.uma-assessment-labeling-controls {
  display: grid;
  gap: 10px;
}

.uma-assessment-labeling-figure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-assessment-labeling-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  border-radius: var(--uma-radius-sm);
  background: #f3f8fb;
  color: var(--uma-legend-blue);
  font-size: 1.15rem;
  font-weight: 600;
}

.uma-assessment-case-study {
  display: grid;
  gap: 12px;
}

.uma-assessment-progress {
  margin: 0;
  color: var(--uma-hero-blue);
  font-weight: 600;
}

.uma-assessment-case-step {
  padding: 16px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
}

.uma-assessment-case-step h4 {
  margin-top: 0;
  color: var(--uma-legend-blue);
}

.uma-assessment-summary-card {
  padding: 20px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-lg);
}

.uma-assessment-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.uma-assessment-summary-stats > div {
  min-width: 0;
  padding: 14px 16px;
  background: #f3f8fb;
  border-radius: var(--uma-radius-md);
}

.uma-assessment-summary-stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--uma-legend-blue);
}

.uma-assessment-summary-review ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .uma-assessment-meta-grid,
  .uma-assessment-image-grid {
    grid-template-columns: 1fr;
  }

  .uma-assessment-matching-grid,
  .uma-assessment-hotspot-layout,
  .uma-assessment-labeling-layout {
    grid-template-columns: 1fr;
  }

  .uma-assessment-binary-group {
    grid-template-columns: 1fr;
  }

  .uma-assessment-categorization-row {
    grid-template-columns: 1fr;
  }

  .uma-assessment-order-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .uma-assessment-order-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .uma-assessment-card,
  .uma-assessment-demo {
    padding: 18px;
  }

  .uma-assessment-fieldset {
    padding: 14px;
  }

  .uma-assessment-card-header {
    flex-direction: column;
  }

  .uma-assessment-quick-nav ul {
    grid-template-columns: 1fr;
  }

  .uma-assessment-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .uma-assessment-controls > button {
    width: 100%;
  }

  .uma-assessment-order-actions {
    width: 100%;
  }

  .uma-assessment-order-actions .uma-secondary-btn {
    flex: 1 1 0;
  }

  .uma-assessment-hotspot-btn {
    width: 34px;
    height: 34px;
  }

  .uma-assessment-summary-stats {
    grid-template-columns: 1fr;
  }
}

@media print {
  .uma-assessment-quick-nav,
  .uma-assessment-controls,
  .uma-assessment-order-actions,
  .uma-assessment-hotspot-graphic,
  .uma-assessment-hotspot-btn,
  .uma-assessment-case-study [data-case-reset] {
    display: none !important;
  }

  .uma-assessment-section,
  .uma-assessment-card,
  .uma-assessment-demo,
  .uma-assessment-fieldset,
  .uma-assessment-summary-card {
    break-inside: avoid;
    box-shadow: none !important;
    background: var(--uma-white) !important;
  }

  .uma-assessment-feedback,
  .uma-assessment-sample-response,
  .uma-assessment-case-step,
  .uma-assessment-case-summary {
    display: block !important;
  }

  .uma-assessment-feedback:empty {
    display: none !important;
  }

  .uma-assessment-case-step[hidden],
  .uma-assessment-case-summary[hidden] {
    display: block !important;
  }

  .uma-assessment-matching-grid,
  .uma-assessment-hotspot-layout,
  .uma-assessment-labeling-layout,
  .uma-assessment-meta-grid,
  .uma-assessment-summary-stats {
    display: block !important;
  }

  .uma-assessment-matching-grid > div,
  .uma-assessment-hotspot-alternatives,
  .uma-assessment-labeling-figure,
  .uma-assessment-labeling-controls,
  .uma-assessment-meta-grid > div,
  .uma-assessment-summary-stats > div {
    margin-bottom: 12px;
  }
}

/* ==========================================================
   ASSESSMENT COMPONENT DOCUMENTATION
   ELEVATED EXAMPLE + THREE-COLUMN GUIDANCE
========================================================== */

/*
   These rules apply only to the Assessment Components
   documentation page when the body contains:

   uma-component-docs uma-assessment-docs
*/

/* ----------------------------------------------------------
   DOCUMENTATION CARD
---------------------------------------------------------- */

.uma-assessment-docs .uma-assessment-card {
  max-width: 100%;
  min-width: 0;
  margin: var(--uma-space-5) 0;
  padding: 0;
  overflow: hidden;

  background: var(--uma-page-background);
  border: 1px solid #D7E0E7;
  border-radius: var(--uma-radius-lg);
  box-shadow: var(--uma-shadow-card);
  box-sizing: border-box;
}

.uma-assessment-docs .uma-assessment-card--compact {
  padding: 0;
}

/* ----------------------------------------------------------
   COMPONENT TITLE, PURPOSE, AND TYPE PILL
---------------------------------------------------------- */

.uma-assessment-docs .uma-assessment-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;

  margin: 0;
  padding: 18px var(--uma-space-5);

  background: var(--uma-page-background);
  border-bottom: 1px solid #DFE6EC;
}

/* ----------------------------------------------------------
   GRAY STAGE AROUND THE REAL EXAMPLE
---------------------------------------------------------- */

.uma-assessment-example-stage {
  padding: 18px var(--uma-space-5);

  background: #E9EEF2;
  border-bottom: 1px solid #D7E0E7;
}

/* ----------------------------------------------------------
   ELEVATED WHITE REAL-EXAMPLE CARD
---------------------------------------------------------- */

.uma-assessment-example-card {
  min-width: 0;
  padding: 18px;

  background: var(--uma-white);
  border: 1px solid #D4DDE5;
  border-radius: var(--uma-radius-md);

  box-shadow:
    0 10px 24px rgba(13, 53, 83, 0.10),
    0 2px 6px rgba(13, 53, 83, 0.05);
}

/*
   The example card now provides the white surface, border,
   radius, and elevation. Remove the older demo container styling.
*/

.uma-assessment-docs
.uma-assessment-example-card
.uma-assessment-demo {
  max-width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ----------------------------------------------------------
   THREE-COLUMN DOCUMENTATION DETAILS
---------------------------------------------------------- */

.uma-assessment-docs .uma-assessment-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;

  margin: 0;
  padding: 18px var(--uma-space-5) var(--uma-space-4);

  background: var(--uma-white);
  border-bottom: 1px solid #E1E7EC;
}

.uma-assessment-docs .uma-assessment-meta-grid > div {
  position: relative;
  min-width: 0;

  padding: 4px 22px 4px 52px;

  background: transparent;
  border: 0;
  border-radius: 0;
}

.uma-assessment-docs
.uma-assessment-meta-grid
> div
+ div {
  border-left: 1px solid #DDE5EB;
}

/* ----------------------------------------------------------
   DOCUMENTATION ICON CIRCLES
---------------------------------------------------------- */

.uma-assessment-docs
.uma-assessment-meta-grid
> div::before {
  content: "";

  position: absolute;
  top: 2px;
  left: 12px;

  width: 30px;
  height: 30px;

  background-color: currentColor;
  border-radius: 50%;
  opacity: 0.14;
}

/* ----------------------------------------------------------
   DOCUMENTATION ICONS
---------------------------------------------------------- */

.uma-assessment-docs
.uma-assessment-meta-grid
> div::after {
  content: "";

  position: absolute;
  top: 9px;
  left: 19px;

  width: 16px;
  height: 16px;

  background-color: currentColor;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* Best Used For — target icon */

.uma-assessment-docs .uma-assessment-meta--best {
  color: #087F6A;
}

.uma-assessment-docs
.uma-assessment-meta--best::after {
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10h-2a8 8 0 1 1-2.34-5.66l-2.13 2.13A5 5 0 1 0 17 12h-2a3 3 0 1 1-.88-2.12l-2.83 2.83 1.42 1.42 2.83-2.83A5 5 0 0 0 12 7a5 5 0 1 0 5 5h-2a3 3 0 1 1-3-3v2l5-5h-3V3z'/%3E%3C/svg%3E");

  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10h-2a8 8 0 1 1-2.34-5.66l-2.13 2.13A5 5 0 1 0 17 12h-2a3 3 0 1 1-.88-2.12l-2.83 2.83 1.42 1.42 2.83-2.83A5 5 0 0 0 12 7a5 5 0 1 0 5 5h-2a3 3 0 1 1-3-3v2l5-5h-3V3z'/%3E%3C/svg%3E");
}

/* Accessibility — universal access icon */

.uma-assessment-docs .uma-assessment-meta--accessibility {
  color: var(--uma-hero-blue);
}

.uma-assessment-docs
.uma-assessment-meta--accessibility::after {
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-7 5h14v2h-5v4.5l3.5 7.5h-2.3L12 15l-3.2 6H6.5l3.5-7.5V9H5V7z'/%3E%3C/svg%3E");

  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-7 5h14v2h-5v4.5l3.5 7.5h-2.3L12 15l-3.2 6H6.5l3.5-7.5V9H5V7z'/%3E%3C/svg%3E");
}

/* Instructional Guidance — lightbulb icon */

.uma-assessment-docs .uma-assessment-meta--guidance {
  color: #7452A6;
}

.uma-assessment-docs
.uma-assessment-meta--guidance::after {
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 21h6v-2H9v2zm3-19a7 7 0 0 0-4 12.74V17h8v-2.26A7 7 0 0 0 12 2zm2.85 11.1-.85.62V15h-4v-1.28l-.85-.62A5 5 0 1 1 14.85 13.1z'/%3E%3C/svg%3E");

  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 21h6v-2H9v2zm3-19a7 7 0 0 0-4 12.74V17h8v-2.26A7 7 0 0 0 12 2zm2.85 11.1-.85.62V15h-4v-1.28l-.85-.62A5 5 0 1 1 14.85 13.1z'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------
   DOCUMENTATION LABELS AND TEXT
---------------------------------------------------------- */

.uma-assessment-docs .uma-assessment-meta-label {
  display: block;

  margin: 0 0 5px;

  color: var(--uma-legend-blue);

  font-size: 0.92rem;
  font-weight: var(--uma-font-weight-bold);
  line-height: 1.3;
}

.uma-assessment-docs .uma-assessment-meta-grid p {
  margin: 0;

  color: var(--uma-text-muted);

  font-size: 0.94rem;
  line-height: 1.55;
}

/* ----------------------------------------------------------
   NOTES BELOW THE THREE COLUMNS
---------------------------------------------------------- */

.uma-assessment-docs
.uma-assessment-card
> .uma-assessment-guidance {
  margin: 0;
  padding: 14px var(--uma-space-5);

  color: var(--uma-text-muted);

  background: var(--uma-info-bg);
  border: 0;
  border-left: 5px solid var(--uma-horizon-blue);
  border-radius: 0;
}

.uma-assessment-docs
.uma-assessment-card
> .uma-assessment-guidance
+ .uma-assessment-guidance {
  padding-top: 4px;
  border-left-color: var(--uma-hero-blue);
}

/* ==========================================================
   ASSESSMENT DOCUMENTATION — TABLET
========================================================== */

@media (max-width: 800px) {
  .uma-assessment-docs .uma-assessment-meta-grid {
    grid-template-columns: 1fr;
    gap: var(--uma-space-3);
  }

  .uma-assessment-docs
  .uma-assessment-meta-grid
  > div {
    padding: 4px 0 4px 48px;
  }

  .uma-assessment-docs
  .uma-assessment-meta-grid
  > div
  + div {
    padding-top: 18px;

    border-top: 1px solid #DDE5EB;
    border-left: 0;
  }

  .uma-assessment-docs
  .uma-assessment-meta-grid
  > div::before {
    left: 4px;
  }

  .uma-assessment-docs
  .uma-assessment-meta-grid
  > div::after {
    left: 11px;
  }

  .uma-assessment-docs
  .uma-assessment-meta-grid
  > div
  + div::before {
    top: 16px;
  }

  .uma-assessment-docs
  .uma-assessment-meta-grid
  > div
  + div::after {
    top: 23px;
  }
}

/* ==========================================================
   ASSESSMENT DOCUMENTATION — MOBILE
========================================================== */

@media (max-width: 560px) {
  .uma-assessment-example-stage {
    padding: 14px;
  }

  .uma-assessment-example-card {
    padding: 14px;
  }

  .uma-assessment-docs .uma-assessment-card-header,
  .uma-assessment-docs .uma-assessment-meta-grid,
  .uma-assessment-docs
  .uma-assessment-card
  > .uma-assessment-guidance {
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* ==========================================================
   ASSESSMENT DOCUMENTATION — PRINT
========================================================== */

@media print {
  .uma-assessment-docs .uma-assessment-card,
  .uma-assessment-example-stage,
  .uma-assessment-example-card {
    background: var(--uma-white) !important;
    box-shadow: none !important;
  }

  .uma-assessment-example-stage {
    padding: 12px 0;
  }

  .uma-assessment-docs .uma-assessment-meta-grid {
    display: block !important;
    padding: 12px 0;
  }

  .uma-assessment-docs
  .uma-assessment-meta-grid
  > div {
    margin-bottom: 12px;
    padding-left: 0;
  }

  .uma-assessment-docs
  .uma-assessment-meta-grid
  > div::before,
  .uma-assessment-docs
  .uma-assessment-meta-grid
  > div::after {
    display: none;
  }
}
/* ==========================================================
   ASSESSMENT DOCUMENTATION — MATCH MEDIA COMPONENT PAGE
   Add this at the very bottom of the centralized CSS.
========================================================== */

/* Page-specific scope */
.uma-assessment-docs .uma-assessment-card {
  overflow: hidden;
  background: var(--uma-page-background);
  border: 1px solid #D7E0E7;
  border-radius: var(--uma-radius-lg);
  box-shadow: var(--uma-shadow-card);
}

/* Header area */
.uma-assessment-docs .uma-assessment-card-header {
  background: var(--uma-page-background);
  border-bottom: 1px solid #DFE6EC;
}

/* Gray stage */
.uma-assessment-docs .uma-assessment-example-stage {
  background: #E9EEF2;
  border-bottom: 1px solid #D7E0E7;
}

/* Elevated white live example */
.uma-assessment-docs .uma-assessment-example-card {
  min-width: 0;
  background: var(--uma-white);
  border: 1px solid #D4DDE5;
  border-radius: var(--uma-radius-md);
  box-shadow:
    0 10px 24px rgba(13, 53, 83, 0.10),
    0 2px 6px rgba(13, 53, 83, 0.05);
}

/* Remove the older blue demo panel styling */
.uma-assessment-docs
.uma-assessment-example-card
.uma-assessment-demo {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Keep the live assessment itself clean and white */
.uma-assessment-docs
.uma-assessment-example-card
.uma-assessment-fieldset {
  background: var(--uma-white);
}

/* Three-column documentation row */
.uma-assessment-docs .uma-assessment-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--uma-white);
  border-bottom: 1px solid #E1E7EC;
}

.uma-assessment-docs .uma-assessment-meta-grid > div {
  position: relative;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.uma-assessment-docs .uma-assessment-meta-grid > div + div {
  border-left: 1px solid #DDE5EB;
}

/* Icon circle */
.uma-assessment-docs .uma-assessment-meta-grid > div::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.14;
}

/* Icon */
.uma-assessment-docs .uma-assessment-meta-grid > div::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 19px;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* Best Used For */
.uma-assessment-docs .uma-assessment-meta--best {
  color: #087F6A;
}

.uma-assessment-docs .uma-assessment-meta--best::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10h-2a8 8 0 1 1-2.34-5.66l-2.13 2.13A5 5 0 1 0 17 12h-2a3 3 0 1 1-.88-2.12l-2.83 2.83 1.42 1.42 2.83-2.83A5 5 0 0 0 12 7a5 5 0 1 0 5 5h-2a3 3 0 1 1-3-3v2l5-5h-3V3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10h-2a8 8 0 1 1-2.34-5.66l-2.13 2.13A5 5 0 1 0 17 12h-2a3 3 0 1 1-.88-2.12l-2.83 2.83 1.42 1.42 2.83-2.83A5 5 0 0 0 12 7a5 5 0 1 0 5 5h-2a3 3 0 1 1-3-3v2l5-5h-3V3z'/%3E%3C/svg%3E");
}

/* Accessibility */
.uma-assessment-docs .uma-assessment-meta--accessibility {
  color: var(--uma-hero-blue);
}

.uma-assessment-docs .uma-assessment-meta--accessibility::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-7 5h14v2h-5v4.5l3.5 7.5h-2.3L12 15l-3.2 6H6.5l3.5-7.5V9H5V7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-7 5h14v2h-5v4.5l3.5 7.5h-2.3L12 15l-3.2 6H6.5l3.5-7.5V9H5V7z'/%3E%3C/svg%3E");
}

/* Instructional Guidance */
.uma-assessment-docs .uma-assessment-meta--guidance {
  color: #7452A6;
}

.uma-assessment-docs .uma-assessment-meta--guidance::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 21h6v-2H9v2zm3-19a7 7 0 0 0-4 12.74V17h8v-2.26A7 7 0 0 0 12 2zm2.85 11.1-.85.62V15h-4v-1.28l-.85-.62A5 5 0 1 1 14.85 13.1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 21h6v-2H9v2zm3-19a7 7 0 0 0-4 12.74V17h8v-2.26A7 7 0 0 0 12 2zm2.85 11.1-.85.62V15h-4v-1.28l-.85-.62A5 5 0 1 1 14.85 13.1z'/%3E%3C/svg%3E");
}

.uma-assessment-docs .uma-assessment-meta-label {
  display: block;
  color: var(--uma-legend-blue);
  font-size: 0.92rem;
  font-weight: var(--uma-font-weight-bold);
  line-height: 1.3;
}

.uma-assessment-docs .uma-assessment-meta-grid p {
  color: var(--uma-text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Notes below documentation row */
.uma-assessment-docs
.uma-assessment-card
> .uma-assessment-guidance {
  background: var(--uma-info-bg);
  border: 0;
  border-left: 5px solid var(--uma-horizon-blue);
  border-radius: 0;
}

.uma-assessment-docs
.uma-assessment-card
> .uma-assessment-guidance
+ .uma-assessment-guidance {
  border-left-color: var(--uma-hero-blue);
}

/* Quick Navigation — match Media page */
.uma-assessment-docs .uma-assessment-quick-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--uma-space-2) var(--uma-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.uma-assessment-docs .uma-assessment-quick-nav li {
  position: relative;
  margin: 0;
  padding-left: 18px;
}

.uma-assessment-docs .uma-assessment-quick-nav li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--uma-journey-green);
  border: 1px solid var(--uma-legend-blue);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Tablet */
@media (max-width: 800px) {
  .uma-assessment-docs .uma-assessment-meta-grid {
    grid-template-columns: 1fr;
  }

  .uma-assessment-docs .uma-assessment-meta-grid > div + div {
    border-top: 1px solid #DDE5EB;
    border-left: 0;
  }

  .uma-assessment-docs .uma-assessment-meta-grid > div::before {
    left: 4px;
  }

  .uma-assessment-docs .uma-assessment-meta-grid > div::after {
    left: 11px;
  }

  .uma-assessment-docs .uma-assessment-meta-grid > div + div::before {
    top: 16px;
  }

  .uma-assessment-docs .uma-assessment-meta-grid > div + div::after {
    top: 23px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .uma-assessment-docs .uma-assessment-example-stage {
    padding: 14px;
  }

  .uma-assessment-docs .uma-assessment-example-card {
    padding: 14px;
  }

  .uma-assessment-docs .uma-assessment-card-header,
  .uma-assessment-docs .uma-assessment-meta-grid,
  .uma-assessment-docs
  .uma-assessment-card
  > .uma-assessment-guidance {
    padding-right: 18px;
    padding-left: 18px;
  }

  .uma-assessment-docs .uma-assessment-quick-nav ul {
    grid-template-columns: 1fr;
  }
}

/* Print */
@media print {
  .uma-assessment-docs .uma-assessment-card,
  .uma-assessment-docs .uma-assessment-example-stage,
  .uma-assessment-docs .uma-assessment-example-card {
    background: var(--uma-white) !important;
    box-shadow: none !important;
  }

  .uma-assessment-docs .uma-assessment-example-stage {
    padding: 12px 0;
  }

  .uma-assessment-docs .uma-assessment-meta-grid {
    display: block !important;
    padding: 12px 0;
  }

  .uma-assessment-docs .uma-assessment-meta-grid > div {
    margin-bottom: 12px;
    padding-left: 0;
  }

  .uma-assessment-docs .uma-assessment-meta-grid > div::before,
  .uma-assessment-docs .uma-assessment-meta-grid > div::after {
    display: none;
  }
}
/* ==========================================================
   WEEK OVERVIEW PAGE
========================================================== */

.uma-week-overview {
  --uma-week-content-indent: 52px;
  --uma-week-heading-icon-size: 40px;
}

/* ==========================================================
   WEEK OVERVIEW HERO
========================================================== */

.uma-week-overview .uma-week-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 34px;
  align-items: center;

  margin: 0 0 12px;
  padding: 26px 0 34px;
}

.uma-week-overview .uma-week-hero-copy,
.uma-week-overview .uma-week-hero-media {
  min-width: 0;
}

.uma-week-overview .uma-week-hero h1 {
  margin: 0;

  font-family: var(--uma-font-heading);
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;

  color: var(--uma-legend-blue);
}

.uma-week-overview .uma-week-hero-rule {
  width: 68px;
  height: 4px;

  margin: 18px 0 20px;

  background: var(--uma-journey-green);
  border-radius: var(--uma-radius-pill);
}

.uma-week-overview .uma-week-hero p {
  max-width: 650px;
  margin: 0 0 10px;

  color: #253746;
  font-size: 1.08rem;
  line-height: 1.7;
}

.uma-week-overview .uma-week-hero-image {
  display: block;

  width: 100%;
  max-width: 430px;
  height: auto;

  margin-left: auto;

  object-fit: contain;
}

/* ==========================================================
   WEEK OVERVIEW SECTIONS
========================================================== */

.uma-week-overview .uma-week-section {
  margin: 0;
  padding: 34px 0;

  border-bottom: 1px solid #dfe6ec;
}

.uma-week-overview .uma-week-section:last-of-type {
  border-bottom: 0;
}

/* ==========================================================
   WEEK OVERVIEW SECTION HEADINGS
========================================================== */

.uma-week-overview .uma-week-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;

  margin-bottom: 22px;
}

.uma-week-overview .uma-week-heading-icon {
  display: block;

  width: var(--uma-week-heading-icon-size);
  height: var(--uma-week-heading-icon-size);
  flex: 0 0 var(--uma-week-heading-icon-size);

  margin-top: 2px;

  object-fit: contain;
}

.uma-week-overview .uma-week-heading > div {
  min-width: 0;
}

.uma-week-overview .uma-week-heading .uma-section-kicker {
  display: block;

  margin: 0 0 4px;
}

.uma-week-overview .uma-week-heading h2 {
  margin: 0;

  color: var(--uma-legend-blue);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
}

/* ==========================================================
   WEEK OVERVIEW STANDARD CONTENT
========================================================== */

.uma-week-overview .uma-week-copy {
  margin-left: var(--uma-week-content-indent);
}

.uma-week-overview .uma-week-copy p {
  margin: 0;
}

/* ==========================================================
   WEEK OVERVIEW TOPIC GRID
========================================================== */

.uma-week-overview .uma-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 44px;

  margin-left: var(--uma-week-content-indent);
}

.uma-week-overview .uma-topic-item {
  min-width: 0;
}

.uma-week-overview .uma-topic-item h3 {
  margin: 0 0 8px;

  color: var(--uma-legend-blue);
  font-size: 1.08rem;
  line-height: 1.35;
}

.uma-week-overview .uma-topic-item p {
  margin: 0;
}

/* ==========================================================
   WEEK OVERVIEW MODULE GRID
========================================================== */

.uma-week-overview .uma-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.uma-week-overview .uma-module-card {
  min-width: 0;
  min-height: 250px;

  padding: 20px 18px;

  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
  box-shadow: var(--uma-shadow-card);
}

.uma-week-overview .uma-module-label {
  display: block;

  margin-bottom: 6px;

  color: var(--uma-hero-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.uma-week-overview .uma-module-card h3 {
  margin: 0 0 14px;

  color: var(--uma-legend-blue);
  font-size: 1.08rem;
  line-height: 1.35;
}

.uma-week-overview .uma-module-card p {
  margin: 0;
}

/* ==========================================================
   WEEK OVERVIEW COMPLETION CHECKLIST
========================================================== */

.uma-week-overview .uma-completion-list {
  display: grid;
  gap: 11px;

  list-style: none !important;

  margin: 0 0 0 var(--uma-week-content-indent) !important;
  padding: 0 !important;
}

.uma-week-overview .uma-completion-list > li {
  position: relative;

  list-style: none !important;

  margin: 0 !important;
  padding: 0 0 0 36px !important;

  color: #253746;
  font-size: 1.05rem;
  line-height: 1.55;
}

.uma-week-overview .uma-completion-list > li::before {
  content: "✓";

  position: absolute;
  top: 0.18em;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  background: var(--uma-white);
  border: 1px solid var(--uma-hero-blue);
  border-radius: 50%;

  color: var(--uma-hero-blue);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

/* ==========================================================
   WEEK OVERVIEW RESPONSIVE — TABLET
========================================================== */

@media (max-width: 900px) {
  .uma-week-overview .uma-week-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  }

  .uma-week-overview .uma-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================
   WEEK OVERVIEW RESPONSIVE — MOBILE
========================================================== */

@media (max-width: 700px) {
  .uma-week-overview {
    --uma-week-content-indent: 0;
    --uma-week-heading-icon-size: 36px;
  }

  .uma-week-overview .uma-week-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .uma-week-overview .uma-week-hero-media {
    order: -1;
  }

  .uma-week-overview .uma-week-hero-image {
    max-width: 340px;
    margin: 0 auto;
  }

  .uma-week-overview .uma-topic-grid,
  .uma-week-overview .uma-module-grid {
    grid-template-columns: 1fr;
  }

  .uma-week-overview .uma-week-copy,
  .uma-week-overview .uma-topic-grid,
  .uma-week-overview .uma-completion-list {
    margin-left: 0 !important;
  }

  .uma-week-overview .uma-module-card {
    min-height: 0;
  }
}

/* ==========================================================
   WEEK OVERVIEW PRINT
========================================================== */

@media print {
  .uma-week-overview .uma-week-hero,
  .uma-week-overview .uma-week-section,
  .uma-week-overview .uma-module-card {
    break-inside: avoid;
  }

  .uma-week-overview .uma-module-card {
    box-shadow: none;
  }
}
    /* ==========================================================
       WEEK 1 OVERVIEW — PAGE-SPECIFIC LAYOUT
    ========================================================== */

    .uma-week-overview .uma-week-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
      gap: 34px;
      align-items: center;
      margin: 0 0 12px;
      padding: 26px 0 34px;
    }

    .uma-week-overview .uma-week-hero-copy {
      min-width: 0;
    }

    .uma-week-overview .uma-week-hero h1 {
      margin: 0;
      font-family: var(--uma-font-heading);
      font-size: clamp(2.3rem, 4.5vw, 4rem);
      font-weight: 700;
      line-height: 1.08;
      color: var(--uma-legend-blue);
    }

    .uma-week-overview .uma-week-hero-rule {
      width: 68px;
      height: 4px;
      margin: 18px 0 20px;
      background: var(--uma-journey-green);
      border-radius: var(--uma-radius-pill);
    }

    .uma-week-overview .uma-week-hero p {
      max-width: 650px;
      margin: 0 0 10px;
      color: #253746;
      font-size: 1.08rem;
      line-height: 1.7;
    }

    .uma-week-overview .uma-week-hero-media {
      min-width: 0;
    }

    .uma-week-overview .uma-week-hero-image {
      display: block;
      width: 100%;
      max-width: 430px;
      margin-left: auto;
      object-fit: contain;
    }

    .uma-week-overview .uma-week-section {
      margin: 0;
      padding: 34px 0;
      border-bottom: 1px solid #dfe6ec;
    }

    .uma-week-overview .uma-week-section:last-of-type {
      border-bottom: 0;
    }

    .uma-week-overview .uma-week-heading {
       display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

    .uma-week-overview .uma-week-heading-icon {
     width: 35px;
    height: 35px;
    flex: 0 0 20px;
    object-fit: contain;
    margin-top: 2px;
}

    .uma-week-overview .uma-week-heading h2 {
      margin: 0;
      color: var(--uma-legend-blue);
      font-size: clamp(1.5rem, 2.4vw, 2rem);
      line-height: 1.2;
    }

    .uma-week-overview .uma-week-heading .uma-section-kicker {
      display: block;
      margin: 0 0 4px;
    }

    .uma-week-overview .uma-week-copy {
      margin-left: 52px;
    }

    .uma-week-overview .uma-week-copy p {
      margin: 0;
    }

    .uma-week-overview .uma-topic-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 28px 44px;
      margin-left: 52px;
    }

    .uma-week-overview .uma-topic-item {
      min-width: 0;
    }

    .uma-week-overview .uma-topic-item h3 {
      margin: 0 0 8px;
      color: var(--uma-legend-blue);
      font-size: 1.08rem;
      line-height: 1.35;
    }

    .uma-week-overview .uma-topic-item p {
      margin: 0;
    }

    .uma-week-overview .uma-module-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .uma-week-overview .uma-module-card {
      min-width: 0;
      min-height: 250px;
      padding: 20px 18px;
      background: var(--uma-white);
      border: 1px solid var(--uma-medium-gray-1);
      border-radius: var(--uma-radius-md);
      box-shadow: var(--uma-shadow-card);
    }

    .uma-week-overview .uma-module-label {
      display: block;
      margin-bottom: 6px;
      color: var(--uma-hero-blue);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .uma-week-overview .uma-module-card h3 {
      margin: 0 0 14px;
      color: var(--uma-legend-blue);
      font-size: 1.08rem;
      line-height: 1.35;
    }

    .uma-week-overview .uma-module-card p {
      margin: 0;
    }

  /* ==========================================================
   WEEK OVERVIEW COMPLETION CHECKLIST
========================================================== */

.uma-week-overview .uma-completion-list {
  display: grid;
  gap: 11px;

  list-style: none !important;

  margin: 0 0 0 var(--uma-week-content-indent) !important;
  padding: 0 !important;
}

.uma-week-overview .uma-completion-list > li {
  position: relative;

  list-style: none !important;

  margin: 0 !important;
  padding: 0 0 0 36px !important;

  color: #253746;
  font-size: 1.05rem;
  line-height: 1.55;
}

.uma-week-overview .uma-completion-list > li::before {
  content: "✓";

  position: absolute;
  top: 0.18em;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  background: var(--uma-white);
  border: 2px solid var(--uma-hero-blue);
  border-radius: 50%;

  color: var(--uma-hero-blue);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}
/* ==========================================================
MODULE OVERVIEW PAGE
========================================================== */

.uma-module-overview {
  --uma-module-overview-indent: 52px;
  --uma-module-overview-icon-size: 40px;
}

/* ==========================================================
   MODULE OVERVIEW HERO
========================================================== */

.uma-module-overview .uma-module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 34px;
  align-items: center;

  margin: 0 0 12px;
  padding: 26px 0 34px;
}

.uma-module-overview .uma-module-hero-copy,
.uma-module-overview .uma-module-hero-media {
  min-width: 0;
}

.uma-module-overview .uma-module-eyebrow {
  display: block;
  margin: 0 0 10px;

  color: var(--uma-hero-blue);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.uma-module-overview .uma-module-hero h1 {
  margin: 0;

  color: var(--uma-legend-blue);
  font-family: var(--uma-font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
}

.uma-module-overview .uma-module-hero-rule {
  width: 68px;
  height: 4px;

  margin: 18px 0 20px;

  background: var(--uma-journey-green);
  border-radius: var(--uma-radius-pill);
}

.uma-module-overview .uma-module-hero p {
  max-width: 650px;
  margin: 0 0 10px;

  color: #253746;
  font-size: 1.08rem;
  line-height: 1.7;
}

.uma-module-overview .uma-module-time {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 20px;

  color: var(--uma-legend-blue);
  font-size: 1rem;
  line-height: 1.4;
}

.uma-module-overview .uma-module-time strong {
  color: var(--uma-hero-blue);
}

.uma-module-overview .uma-module-time-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.uma-module-overview .uma-module-hero-image {
  display: block;

  width: 100%;
  max-width: 430px;
  height: auto;

  margin-left: auto;

  border-radius: var(--uma-radius-lg);
  object-fit: cover;
}

/* ==========================================================
   MODULE OVERVIEW SECTIONS
========================================================== */

.uma-module-overview .uma-module-section {
  margin: 0;
  padding: 34px 0;

  border-bottom: 1px solid #dfe6ec;
}

.uma-module-overview .uma-module-section:last-of-type {
  border-bottom: 0;
}

.uma-module-overview .uma-module-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;

  margin-bottom: 22px;
}

.uma-module-overview .uma-module-heading-icon {
  display: block;

  width: var(--uma-module-overview-icon-size);
  height: var(--uma-module-overview-icon-size);
  flex: 0 0 var(--uma-module-overview-icon-size);

  margin-top: 2px;

  object-fit: contain;
}

.uma-module-overview .uma-module-heading > div {
  min-width: 0;
}

.uma-module-overview .uma-module-heading .uma-section-kicker {
  display: block;
  margin: 0 0 4px;
}

.uma-module-overview .uma-module-heading h2 {
  margin: 0;

  color: var(--uma-legend-blue);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.uma-module-overview .uma-module-copy {
  margin-left: var(--uma-module-overview-indent);
}

/* ==========================================================
   LEARNING OBJECTIVES
========================================================== */

.uma-module-overview .uma-module-objectives {
  margin: 0;
  padding-left: 1.35rem;
}

.uma-module-overview .uma-module-objectives li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.uma-module-overview .uma-module-objectives li:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   LEARN AND PRACTICE SUMMARY
========================================================== */

.uma-module-overview .uma-module-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.uma-module-overview .uma-module-path-card {
  min-width: 0;
  padding: 22px;

  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
  box-shadow: var(--uma-shadow-card);
}

.uma-module-overview .uma-module-path-card h3 {
  margin: 0 0 8px;

  color: var(--uma-legend-blue);
  font-size: 1.35rem;
  line-height: 1.3;
}

.uma-module-overview .uma-module-path-card > p {
  margin: 0 0 18px;
}

.uma-module-overview .uma-module-item-list {
  display: grid;
  gap: 14px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.uma-module-overview .uma-module-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;

  margin: 0;
  padding: 14px 0 0;

  border-top: 1px solid #dfe6ec;
}

.uma-module-overview .uma-module-item-icon {
  display: block;

  width: 30px;
  height: 30px;

  object-fit: contain;
}

.uma-module-overview .uma-module-item h4 {
  margin: 0 0 4px;

  color: var(--uma-legend-blue);
  font-size: 1rem;
  line-height: 1.35;
}

.uma-module-overview .uma-module-item p {
  margin: 0;

  color: #425466;
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ==========================================================
   MODULE OVERVIEW RESPONSIVE — TABLET
========================================================== */

@media (max-width: 900px) {
  .uma-module-overview .uma-module-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
  }
}

/* ==========================================================
   MODULE OVERVIEW RESPONSIVE — MOBILE
========================================================== */

@media (max-width: 700px) {
  .uma-module-overview {
    --uma-module-overview-indent: 0;
    --uma-module-overview-icon-size: 36px;
  }

  .uma-module-overview .uma-module-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .uma-module-overview .uma-module-hero-media {
    order: -1;
  }

  .uma-module-overview .uma-module-hero-image {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .uma-module-overview .uma-module-copy {
    margin-left: 0;
  }
}

/* ==========================================================
   MODULE OVERVIEW PRINT
========================================================== */

@media print {
  .uma-module-overview .uma-module-hero,
  .uma-module-overview .uma-module-section,
  .uma-module-overview .uma-module-path-card {
    break-inside: avoid;
  }

  .uma-module-overview .uma-module-path-card {
    box-shadow: none;
  }
}
/* ==========================================================
   SECTION RAIL FIRST-TIME GUIDE
========================================================== */

.uma-section-rail-guide {
    position: absolute;
    top: 6px;
    right: 52px;

    width: min(310px, calc(100vw - 80px));
    padding: 18px 18px 16px;

    background: var(--uma-white);
    border: 1px solid #CFE0EB;
    border-left: 5px solid var(--uma-journey-green);
    border-radius: var(--uma-radius-md);
    box-shadow: 0 14px 34px rgba(13, 53, 83, 0.18);

    color: var(--uma-text-color);

    z-index: 50;
}

/* Pointer aimed toward the rail */

.uma-section-rail-guide::before {
    content: "";

    position: absolute;
    top: 24px;
    right: -10px;

    width: 18px;
    height: 18px;

    background: var(--uma-white);
    border-top: 1px solid #CFE0EB;
    border-right: 1px solid #CFE0EB;

    transform: rotate(45deg);
}

.uma-section-rail-guide-title {
    margin: 0 0 8px;

    color: var(--uma-legend-blue);

    font-family: var(--uma-font-body);
    font-size: 1.08rem;
    font-weight: var(--uma-font-weight-bold);
    line-height: 1.3;
}

.uma-section-rail-guide-text {
    margin: 0 0 14px;

    color: var(--uma-text-color);

    font-size: 0.95rem;
    line-height: 1.55;
}

.uma-section-rail-guide-actions {
    display: flex;
    justify-content: flex-end;
}

.uma-section-rail-guide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 9px 16px;

    background: var(--uma-journey-green);
    border: 2px solid var(--uma-journey-green);
    border-radius: var(--uma-radius-pill);

    color: var(--uma-legend-blue);

    font-family: var(--uma-font-body);
    font-size: 0.92rem;
    font-weight: var(--uma-font-weight-bold);
    line-height: 1;

    cursor: pointer;
}

.uma-section-rail-guide-button:hover {
    background: var(--uma-white);
}

.uma-section-rail-guide-button:focus-visible {
    outline: 3px solid rgba(29, 107, 166, 0.35);
    outline-offset: 3px;
}

/* Closing animation */

.uma-section-rail-guide.is-closing {
    opacity: 0;
    transform: translateX(8px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

/* Tablet and narrow D2L frame */

@media (max-width: 700px) {
    .uma-section-rail-guide {
        right: 42px;
        width: min(280px, calc(100vw - 64px));
    }
}

/* Very small screens */

@media (max-width: 520px) {
    .uma-section-rail-guide {
        position: fixed;

        top: auto;
        right: 16px;
        bottom: 16px;
        left: 16px;

        width: auto;
    }

    .uma-section-rail-guide::before {
        display: none;
    }
}

/* Do not print the guide */

@media print {
    .uma-section-rail-guide {
        display: none !important;
    }
}
/* ==========================================================
   QUICK NAVIGATION DOT FIX
   Makes Interactive and Assessment match Media Components
========================================================== */

/* Remove the older dot attached to the list item */

.uma-interactive-quick-nav li::before,
.uma-assessment-quick-nav li::before {
  display: none !important;
  content: none !important;
}

/* Remove the extra list-item indentation */

.uma-narrow .uma-interactive-quick-nav li,
.uma-narrow .uma-assessment-quick-nav li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Match the Media Components link-and-dot structure */

.uma-interactive-quick-nav a,
.uma-assessment-quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--uma-hero-blue);
  font-weight: 700;
  text-decoration: none;
}

/* Journey Green dot */

.uma-interactive-quick-nav a::before,
.uma-assessment-quick-nav a::before {
  content: "";

  width: 9px;
  height: 9px;
  flex: 0 0 9px;

  background: var(--uma-journey-green);
  border: 1px solid var(--uma-legend-blue);
  border-radius: 50%;
}

/* Hover and keyboard focus */

.uma-interactive-quick-nav a:hover,
.uma-interactive-quick-nav a:focus-visible,
.uma-assessment-quick-nav a:hover,
.uma-assessment-quick-nav a:focus-visible {
  color: var(--uma-legend-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* ==========================================================
   ASSESSMENT INTERACTION CLARITY FIXES
   Add to the bottom of the centralized CSS.
========================================================== */

.uma-assessment-interaction-instructions {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #253746;
  background: var(--uma-info-bg);
  border-left: 4px solid var(--uma-horizon-blue);
  border-radius: var(--uma-radius-sm);
  font-size: 0.98rem;
  line-height: 1.55;
}

.uma-assessment-order-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

/* ==========================================================
   TOOLTIP
========================================================== */

.uma-tooltip {
  --uma-tooltip-arrow-left: 50%;

  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: min(260px, calc(100vw - 16px));
  padding: 7px 10px;
  color: var(--uma-white);
  background: var(--uma-integrity-gray);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  font-family: var(--uma-font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 150ms ease,
    visibility 0s linear 150ms;
}

.uma-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.uma-tooltip::after {
  content: "";
  position: absolute;
  left: var(--uma-tooltip-arrow-left);
  width: 8px;
  height: 8px;
  background: var(--uma-integrity-gray);
  transform: translateX(-50%) rotate(45deg);
}

.uma-tooltip[data-placement="top"]::after {
  bottom: -4px;
}

.uma-tooltip[data-placement="bottom"]::after {
  top: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .uma-tooltip {
    transition: none;
  }
}

@media print {
  .uma-tooltip {
    display: none !important;
  }
}

/* ==========================================================
   09B. UMA INTERACTIVE FAMILY — FINAL PRECISION PASS
   Matches the approved Interactive Family design boards.
   This block intentionally uses stronger selectors so it wins
   over the original component-library rules without changing
   the compact D2L spacing.
========================================================== */

.uma-interactive-docs {
  --uma-interactive-line: #B8D1E4;
  --uma-interactive-line-strong: var(--uma-hero-blue);
  --uma-interactive-panel: #FFFFFF;
  --uma-interactive-panel-soft: #F8FAFC;
  --uma-interactive-active-soft: #EEF7FC;
  --uma-interactive-green: var(--uma-journey-green);
  --uma-interactive-control-radius: 8px;
}

/* ---------- Shared focus treatment ---------- */
.uma-interactive-docs .uma-interactive-demo :is(
  .uma-tab-button,
  .uma-reveal-button,
  .uma-interactive-carousel-button,
  .uma-action-btn,
  .uma-secondary-btn,
  .uma-accordion-button,
  .uma-interactive-hotspot-button,
  .uma-flip-card
):focus-visible {
  outline: 3px solid rgba(21, 234, 196, 0.55) !important;
  outline-offset: 3px !important;
}

/* ---------- Accordion + Glossary ---------- */
.uma-interactive-docs .uma-interactive-demo .uma-accordion {
  gap: 10px;
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-item {
  overflow: hidden;
  background: var(--uma-white);
  border: 1px solid var(--uma-hero-blue);
  border-radius: var(--uma-interactive-control-radius);
  box-shadow: 0 2px 8px rgba(13, 53, 83, 0.05);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-item:hover {
  border-color: var(--uma-legend-blue);
  box-shadow: 0 5px 14px rgba(13, 53, 83, 0.10);
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-button {
  position: relative;
  min-height: 50px;
  padding: 10px 54px 10px 16px;
  background: var(--uma-white);
  color: var(--uma-legend-blue);
  border: 0;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-button::before {
  top: 10px;
  right: 38px;
  bottom: 10px;
  left: auto;
  width: 3px;
  background: var(--uma-journey-green);
  border-radius: 999px;
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-button::after {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: transparent;
  border: 0;
  border-right: 3px solid var(--uma-hero-blue);
  border-bottom: 3px solid var(--uma-hero-blue);
  border-radius: 0;
  transform: translateY(-65%) rotate(45deg);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-button:hover {
  background: #F3F8FB;
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-button[aria-expanded="true"] {
  background: var(--uma-hero-blue);
  color: var(--uma-white);
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-button[aria-expanded="true"]::before {
  background: var(--uma-journey-green);
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-button[aria-expanded="true"]::after {
  border-color: var(--uma-white);
  transform: translateY(-25%) rotate(225deg);
}

.uma-interactive-docs .uma-interactive-demo .uma-accordion-button[aria-expanded="true"]:hover {
  background: #165B8E;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-accordion-panel {
  padding: 14px 16px 16px;
  background: var(--uma-white);
  border-top: 1px solid rgba(13, 53, 83, 0.16);
}

/* ---------- Horizontal Tabs + Comparison Reveal ---------- */
.uma-interactive-docs .uma-interactive-demo .uma-interactive-tab-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  padding: 0 0 11px;
  border-bottom: 1px solid #CFDCE6;
}

.uma-interactive-docs .uma-interactive-demo .uma-tab-button {
  position: relative;
  min-height: 42px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--uma-hero-blue);
  border-radius: var(--uma-interactive-control-radius) !important;
  color: var(--uma-legend-blue);
  font-weight: 700;
  line-height: 1.15;
  box-shadow: none;
}

.uma-interactive-docs .uma-interactive-demo .uma-tab-button::after {
  content: none;
}

.uma-interactive-docs .uma-interactive-demo .uma-tab-button {
  box-shadow: inset 0 -3px 0 var(--uma-journey-green);
}


.uma-interactive-docs .uma-interactive-demo .uma-tab-button:hover {
  background: #F3F8FB;
}

.uma-interactive-docs .uma-interactive-demo .uma-tab-button[aria-selected="true"] {
  background: var(--uma-hero-blue);
  border-color: var(--uma-hero-blue);
  color: #fff;
  box-shadow:
    inset 0 -3px 0 var(--uma-journey-green),
    0 3px 8px rgba(29, 107, 166, .16);
}

.uma-interactive-docs .uma-interactive-demo .uma-tab-panel {
  padding: 18px;
  background: #fff;
  border: 1px solid #D4DEE6;
  border-radius: 10px;
}

/* ---------- Vertical Tabs ---------- */
.uma-interactive-docs .uma-interactive-demo .uma-interactive-tabs-vertical {
  grid-template-columns: minmax(130px, 175px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-tabs-vertical .uma-interactive-tab-list {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 7px;
  padding: 0 14px 0 0;
  border-right: 1px solid #CFDCE6;
  border-bottom: 0;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-tabs-vertical .uma-tab-button {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  text-align: left;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-tabs-vertical .uma-tab-button::after {
  content: none;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-tabs-vertical .uma-tab-button {
  box-shadow: inset 3px 0 0 var(--uma-journey-green);
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-tabs-vertical .uma-tab-button[aria-selected="true"] {
  box-shadow:
    inset 3px 0 0 var(--uma-journey-green),
    0 3px 8px rgba(29, 107, 166, .16);
}


.uma-interactive-docs .uma-interactive-demo .uma-interactive-tabs-vertical .uma-tab-panel {
  min-height: 100%;
}

/* ---------- Click & Reveal ---------- */
.uma-interactive-docs .uma-interactive-demo .uma-interactive-reveal-list {
  gap: 12px;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-reveal-item {
  padding: 16px;
  background: #fff;
  border: 1px solid #D4DEE6;
  border-radius: 10px;
}

.uma-interactive-docs .uma-interactive-demo .uma-reveal-button,
.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-button,
.uma-interactive-docs .uma-interactive-demo .uma-secondary-btn {
  position: relative;
  min-height: 42px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--uma-hero-blue);
  border-radius: var(--uma-interactive-control-radius) !important;
  color: var(--uma-legend-blue) !important;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--uma-journey-green);
}

.uma-interactive-docs .uma-interactive-demo .uma-reveal-button::after,
.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-button::after,
.uma-interactive-docs .uma-interactive-demo .uma-secondary-btn::after {
  content: none;
}

.uma-interactive-docs .uma-interactive-demo .uma-reveal-button:hover,
.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-button:hover,
.uma-interactive-docs .uma-interactive-demo .uma-secondary-btn:hover {
  background: #F3F8FB;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-reveal-panel {
  margin-top: 14px;
  padding: 13px 15px;
  background: #F8FAFC;
  border: 1px solid #D4DEE6;
  border-left: 4px solid var(--uma-hero-blue);
  border-radius: 8px;
}

/* ---------- Flip Cards ---------- */
.uma-interactive-docs .uma-interactive-demo .uma-interactive-flip-grid {
  gap: 14px;
}

.uma-interactive-docs .uma-interactive-demo .uma-flip-card,
.uma-interactive-docs .uma-interactive-demo .uma-interactive-flip-card-inner {
  min-height: 220px;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-flip-card-front,
.uma-interactive-docs .uma-interactive-demo .uma-interactive-flip-card-back {
  padding: 17px;
  border: 1px solid #D4DEE6;
  border-top: 4px solid var(--uma-journey-green);
  border-radius: 10px;
  box-shadow: none;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-flip-hint {
  position: relative;
  width: fit-content;
  color: var(--uma-legend-blue);
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-flip-hint::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 5px;
  background: var(--uma-journey-green);
  border-radius: 999px;
}

/* ---------- Hotspot ---------- */
.uma-interactive-docs .uma-interactive-demo .uma-interactive-hotspot-map {
  min-height: 340px;
  background: #fff;
  border: 1px solid #D4DEE6;
  border-radius: 10px;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-diagram-card {
  background: #fff;
  border: 1px solid #D4DEE6;
  border-radius: 10px;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-hotspot-button {
  width: 40px;
  height: 40px;
  background: var(--uma-journey-green);
  border: 1px solid var(--uma-legend-blue);
  color: var(--uma-legend-blue);
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-hotspot-button[aria-expanded="true"] {
  background: var(--uma-hero-blue);
  border-color: var(--uma-journey-green);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(21, 234, 196, .35);
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-hotspot-panel {
  padding: 16px;
  background: #fff;
  border: 1px solid #D4DEE6;
  border-left: 4px solid var(--uma-hero-blue);
  border-radius: 10px;
}

/* ---------- Carousel ---------- */
.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-stage {
  min-height: 200px;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-panel {
  min-height: 190px;
  padding: 18px;
  background: #fff;
  border: 1px solid #D4DEE6;
  border-radius: 10px;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-button:first-child {
  justify-self: start;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-button:last-child {
  justify-self: end;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-status {
  justify-self: center;
  color: var(--uma-legend-blue);
  font-weight: 700;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-button:disabled {
  border-color: #BCC9D3;
  color: #8795A0 !important;
  box-shadow: inset 0 -3px 0 #D5DEE5;
  opacity: .65;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-button:disabled::after {
  content: none;
}

/* ---------- Modal ---------- */
.uma-interactive-docs .uma-interactive-demo .uma-action-btn {
  min-height: 42px;
  padding: 10px 16px;
  background: var(--uma-journey-green);
  border: 1px solid var(--uma-journey-green);
  border-radius: var(--uma-interactive-control-radius) !important;
  color: var(--uma-legend-blue) !important;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-modal-content {
  width: min(560px, 100%);
  padding: 22px;
  background: #fff;
  border-top: 5px solid var(--uma-journey-green);
  border-radius: 10px;
}

/* ---------- Comparison cards ---------- */
.uma-interactive-docs .uma-interactive-demo .uma-interactive-comparison-grid {
  gap: 12px;
}

.uma-interactive-docs .uma-interactive-demo .uma-interactive-comparison-card {
  padding: 15px 16px;
  background: #fff;
  border: 1px solid #D4DEE6;
  border-radius: 10px;
}

/* ---------- Documentation shell ---------- */
.uma-interactive-docs .uma-interactive-component-card {
  border-color: #C8D9E6;
}

.uma-interactive-docs .uma-interactive-example-stage {
  padding: 16px;
  background: #EEF4F7;
}

.uma-interactive-docs .uma-interactive-example-card {
  padding: 18px;
  border: 1px solid #D1DCE5;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(13, 53, 83, .09);
}

/* ---------- Narrow D2L / responsive ---------- */
@media (max-width: 760px) {
  .uma-interactive-docs .uma-interactive-demo .uma-interactive-tabs-vertical {
    grid-template-columns: 1fr;
  }

  .uma-interactive-docs .uma-interactive-demo .uma-interactive-tabs-vertical .uma-interactive-tab-list {
    flex-direction: column;
    padding: 0 0 11px;
    border-right: 0;
    border-bottom: 1px solid #CFDCE6;
  }

  }

@media (max-width: 520px) {
  .uma-interactive-docs .uma-interactive-example-stage,
  .uma-interactive-docs .uma-interactive-example-card {
    padding: 14px;
  }

  .uma-interactive-docs .uma-interactive-demo .uma-interactive-tab-list {
    flex-direction: column;
  }

  .uma-interactive-docs .uma-interactive-demo .uma-tab-button {
    width: 100%;
    text-align: left;
  }

  .uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-controls {
    grid-template-columns: 1fr auto 1fr;
  }
}

@media print {
  .uma-interactive-docs .uma-interactive-demo .uma-accordion-button::before,
  .uma-interactive-docs .uma-interactive-demo .uma-accordion-button::after,
  .uma-interactive-docs .uma-interactive-demo .uma-tab-button::after,
  .uma-interactive-docs .uma-interactive-demo .uma-reveal-button::after,
  .uma-interactive-docs .uma-interactive-demo .uma-interactive-carousel-button::after,
  .uma-interactive-docs .uma-interactive-demo .uma-secondary-btn::after {
    display: none !important;
  }
}


/* ==========================================================
   INTERACTIVE STEP PROCESS
========================================================== */

.uma-interactive-stepper {
  display: grid;
  gap: 18px;
}

.uma-interactive-stepper > h4 {
  margin: 0;
  color: var(--uma-legend-blue);
}

.uma-interactive-stepper-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.uma-interactive-stepper-track::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--uma-hero-blue);
  z-index: 0;
}

.uma-interactive-stepper-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--uma-legend-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.uma-interactive-stepper-marker {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 3px solid var(--uma-journey-green);
  border-radius: 50%;
  color: var(--uma-legend-blue);
  font-weight: 800;
  box-shadow: 0 0 0 3px #fff;
}

.uma-interactive-stepper-step.is-complete .uma-interactive-stepper-marker {
  background: var(--uma-journey-green);
}

.uma-interactive-stepper-step.is-complete .uma-interactive-stepper-marker::before {
  content: "✓";
  font-size: 1.15rem;
}

.uma-interactive-stepper-step.is-complete .uma-interactive-stepper-marker {
  font-size: 0;
}

.uma-interactive-stepper-step.is-current .uma-interactive-stepper-marker {
  background: var(--uma-hero-blue);
  color: #fff;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--uma-journey-green);
}

.uma-interactive-stepper-label {
  line-height: 1.25;
  text-align: center;
}

.uma-interactive-stepper-step:focus-visible {
  outline: 3px solid rgba(21, 234, 196, .55);
  outline-offset: 4px;
  border-radius: 8px;
}

.uma-interactive-stepper-panel {
  min-height: 150px;
  padding: 18px;
  background: #fff;
  border: 1px solid #c8dbe9;
  border-radius: 10px;
}

.uma-interactive-stepper-panel > :first-child {
  margin-top: 0;
}

.uma-interactive-stepper-panel > :last-child {
  margin-bottom: 0;
}

.uma-interactive-stepper-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.uma-interactive-stepper-button {
  min-height: 42px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--uma-hero-blue);
  border-radius: 9px;
  color: var(--uma-legend-blue);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--uma-journey-green);
  cursor: pointer;
}

.uma-interactive-stepper-button:disabled {
  border-color: #bcc9d3;
  color: #8795a0;
  box-shadow: inset 0 -3px 0 #d5dee5;
  opacity: .65;
  cursor: not-allowed;
}

/* ==========================================================
   INTERACTIVE TIMELINE
========================================================== */

.uma-interactive-timeline {
  display: grid;
  gap: 16px;
}

.uma-interactive-timeline > h4 {
  margin: 0;
  color: var(--uma-legend-blue);
}

.uma-interactive-timeline-layout {
  display: grid;
  grid-template-columns: minmax(220px, .95fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}

.uma-interactive-timeline-list {
  position: relative;
  display: grid;
  gap: 4px;
}

.uma-interactive-timeline-list::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 15px;
  width: 2px;
  background: var(--uma-hero-blue);
}

.uma-interactive-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  width: 100%;
  padding: 9px 8px 9px 0;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--uma-legend-blue);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.uma-interactive-timeline-item:hover {
  background: #f5fafc;
}

.uma-interactive-timeline-marker {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  background: #fff;
  border: 3px solid var(--uma-journey-green);
  border-radius: 50%;
}

.uma-interactive-timeline-item.is-current .uma-interactive-timeline-marker {
  background: var(--uma-hero-blue);
  box-shadow: 0 0 0 3px #fff;
}

.uma-interactive-timeline-summary {
  display: grid;
  gap: 3px;
  line-height: 1.35;
}

.uma-interactive-timeline-summary span {
  color: #41566a;
  font-size: .92rem;
}

.uma-interactive-timeline-item:focus-visible {
  outline: 3px solid rgba(21, 234, 196, .55);
  outline-offset: 2px;
}

.uma-interactive-timeline-panel {
  min-height: 178px;
  padding: 18px;
  background: #fff;
  border: 1px solid #c8dbe9;
  border-left: 4px solid var(--uma-hero-blue);
  border-radius: 10px;
}

.uma-interactive-timeline-panel > :first-child {
  margin-top: 0;
}

.uma-interactive-timeline-panel > :last-child {
  margin-bottom: 0;
}

/* ==========================================================
   CAROUSEL PAGINATION DOTS
========================================================== */

.uma-interactive-carousel-position {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.uma-interactive-carousel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.uma-interactive-carousel-dot {
  width: 17px;
  height: 17px;
  padding: 0;
  background: #fff;
  border: 3px solid var(--uma-journey-green);
  border-radius: 50%;
  cursor: pointer;
}

.uma-interactive-carousel-dot.is-active,
.uma-interactive-carousel-dot[aria-current="true"] {
  background: var(--uma-hero-blue);
  box-shadow: 0 0 0 2px #fff;
}

.uma-interactive-carousel-dot:focus-visible {
  outline: 3px solid rgba(21, 234, 196, .55);
  outline-offset: 3px;
}

/* ==========================================================
   RESPONSIVE INTERACTIVE PROCESS COMPONENTS
========================================================== */

@media (max-width: 700px) {
  .uma-interactive-stepper-track {
    grid-template-columns: repeat(4, minmax(54px, 1fr));
    gap: 4px;
  }

  .uma-interactive-stepper-marker {
    width: 38px;
    height: 38px;
  }

  .uma-interactive-stepper-track::before {
    top: 19px;
  }

  .uma-interactive-stepper-label {
    font-size: .78rem;
  }

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

  .uma-interactive-timeline-panel {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .uma-interactive-stepper-controls {
    flex-direction: column;
  }

  .uma-interactive-stepper-button {
    width: 100%;
  }

  .uma-interactive-carousel-controls {
    grid-template-columns: 1fr auto 1fr;
  }
}

/* ==========================================================
   PRINT — STEP PROCESS, TIMELINE, CAROUSEL DOTS
========================================================== */

@media print {
  .uma-interactive-stepper-track,
  .uma-interactive-stepper-controls,
  .uma-interactive-timeline-list,
  .uma-interactive-carousel-pagination {
    display: none !important;
  }

  .uma-interactive-stepper-panels,
  .uma-interactive-timeline-panels {
    display: grid !important;
    gap: 10px;
  }

  .uma-interactive-stepper-panel,
  .uma-interactive-stepper-panel[hidden],
  .uma-interactive-timeline-panel,
  .uma-interactive-timeline-panel[hidden] {
    display: block !important;
    min-height: 0;
    break-inside: avoid;
  }
}


/* ==========================================================
   12B. ASSESSMENT FAMILY — FINAL REFINEMENT
   Removes the floating legend treatment while preserving
   fieldset and legend semantics for assistive technology.
========================================================== */

.uma-assessment-docs {
  --uma-assessment-line: #C9D9E5;
  --uma-assessment-line-soft: #E4EBF0;
  --uma-assessment-panel-soft: #F7FAFC;
  --uma-assessment-selected-soft: #EEF7FC;
}

/* ---------- Accessible question grouping ---------- */
.uma-assessment-docs .uma-assessment-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.uma-assessment-docs .uma-assessment-fieldset legend {
  float: left;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: var(--uma-legend-blue);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.uma-assessment-docs .uma-assessment-fieldset legend + * {
  clear: both;
}

/* ---------- Shared interaction instruction ---------- */
.uma-assessment-docs .uma-assessment-interaction-instructions {
  position: relative;
  margin: 0 0 16px;
  padding: 13px 16px 13px 46px;
  color: #253746;
  background: var(--uma-info-bg);
  border: 1px solid #CBE6F2;
  border-left: 4px solid var(--uma-horizon-blue);
  border-radius: var(--uma-radius-sm);
  font-size: 0.98rem;
  line-height: 1.55;
}

.uma-assessment-docs .uma-assessment-interaction-instructions::before {
  content: "i";
  position: absolute;
  top: 13px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--uma-white);
  background: var(--uma-hero-blue);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

/* ---------- Question options ---------- */
.uma-assessment-docs .uma-assessment-choice-list {
  gap: 9px;
}

.uma-assessment-docs :is(
  .uma-assessment-option,
  .uma-assessment-binary-option,
  .uma-assessment-likert-option,
  .uma-assessment-image-option,
  .uma-assessment-match-btn
) {
  border-color: var(--uma-assessment-line);
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.uma-assessment-docs :is(
  .uma-assessment-option,
  .uma-assessment-binary-option,
  .uma-assessment-likert-option,
  .uma-assessment-image-option,
  .uma-assessment-match-btn
):hover {
  background: #F8FBFD;
  border-color: var(--uma-hero-blue);
}

.uma-assessment-docs :is(
  .uma-assessment-option,
  .uma-assessment-binary-option,
  .uma-assessment-likert-option,
  .uma-assessment-image-option
).is-selected,
.uma-assessment-docs .uma-assessment-match-btn.is-selected {
  background: var(--uma-assessment-selected-soft);
  border-color: var(--uma-hero-blue);
  box-shadow: inset 4px 0 0 var(--uma-hero-blue);
}

.uma-assessment-docs .uma-assessment-demo :is(
  input,
  select,
  textarea,
  button,
  .uma-assessment-option,
  .uma-assessment-binary-option,
  .uma-assessment-likert-option,
  .uma-assessment-image-option
):focus-visible {
  outline: 3px solid rgba(21, 234, 196, 0.55);
  outline-offset: 3px;
}

/* ---------- Matching ---------- */
.uma-assessment-docs .uma-assessment-matching-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.uma-assessment-docs .uma-assessment-matching-grid > div {
  min-width: 0;
  padding: 16px;
  background: var(--uma-assessment-panel-soft);
  border: 1px solid var(--uma-assessment-line-soft);
  border-radius: var(--uma-radius-md);
}

.uma-assessment-docs .uma-assessment-matching-grid h4 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  color: var(--uma-legend-blue);
  border-bottom: 2px solid var(--uma-hero-blue);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uma-assessment-docs .uma-assessment-match-btn {
  align-items: center;
  min-height: 48px;
  text-align: left;
  cursor: pointer;
}

.uma-assessment-docs .uma-assessment-match-btn.is-selected {
  transform: translateY(-1px);
}

.uma-assessment-docs .uma-assessment-match-results {
  display: grid;
  gap: 8px;
  min-height: 52px;
  padding: 12px;
  color: #526271;
  background: var(--uma-white);
  border: 1px dashed #AFC4D4;
  border-radius: var(--uma-radius-md);
  line-height: 1.5;
}

.uma-assessment-docs .uma-assessment-match-results.is-empty {
  align-items: center;
}

.uma-assessment-docs .uma-assessment-match-result {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 28px minmax(0, 1.4fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #253746;
  background: var(--uma-assessment-selected-soft);
  border: 1px solid #C8DFEC;
  border-radius: var(--uma-radius-sm);
}

.uma-assessment-docs .uma-assessment-match-source,
.uma-assessment-docs .uma-assessment-match-target {
  min-width: 0;
  overflow-wrap: anywhere;
}

.uma-assessment-docs .uma-assessment-match-source {
  color: var(--uma-legend-blue);
  font-weight: 600;
}

.uma-assessment-docs .uma-assessment-match-arrow {
  color: var(--uma-hero-blue);
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
}

/* ---------- Responsive matching ---------- */
@media (max-width: 700px) {
  .uma-assessment-docs .uma-assessment-matching-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .uma-assessment-docs .uma-assessment-match-result {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .uma-assessment-docs .uma-assessment-match-arrow {
    text-align: left;
    transform: rotate(90deg);
    transform-origin: left center;
  }
}

@media print {
  .uma-assessment-docs .uma-assessment-fieldset legend {
    float: none;
  }

  .uma-assessment-docs .uma-assessment-match-result {
    break-inside: avoid;
    background: #fff;
    border-color: #777;
  }
}
/* END MIGRATED UMA DESIGN SYSTEM */

/* ==========================================================
   PROTOTYPE LIBRARY DASHBOARD
   Uses UMA v2 tokens and components for the leadership demo hub.
========================================================== */

.prototype-dashboard {
  background: #f3f7f9;
}

.prototype-dashboard-page {
  width: min(100%, 1240px);
  max-width: 1240px;
  padding: clamp(18px, 4vw, 48px);
}

.prototype-skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--uma-white);
  background: var(--uma-legend-blue);
  border-radius: var(--uma-radius-pill);
  font-weight: var(--uma-font-weight-bold);
  transform: translateY(-160%);
}

.prototype-skip-link:focus {
  transform: translateY(0);
}

.prototype-dashboard-hero {
  margin-bottom: clamp(28px, 5vw, 54px);
}

.prototype-dashboard-eyebrow {
  margin: 0 0 8px;
  color: var(--uma-journey-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prototype-dashboard-summary {
  max-width: 760px;
}

.prototype-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 28px 0 0;
}

.prototype-dashboard-stat {
  padding: 14px 16px;
  color: var(--uma-legend-blue);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--uma-radius-md);
  box-shadow: var(--uma-shadow-card);
}

.prototype-dashboard-stat strong,
.prototype-dashboard-stat span {
  display: block;
}

.prototype-dashboard-stat strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.prototype-dashboard-stat span {
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 700;
}

.prototype-category-nav {
  margin: 0 0 clamp(38px, 6vw, 70px);
  padding: 18px;
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-radius: var(--uma-radius-md);
  box-shadow: var(--uma-shadow-card);
}

.prototype-category-nav p {
  margin: 0 0 10px;
  color: var(--uma-legend-blue);
  font-weight: 800;
}

.prototype-category-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prototype-category-nav li {
  margin: 0;
}

.prototype-category-nav a:link,
.prototype-category-nav a:visited {
  display: inline-flex;
  padding: 8px 13px;
  color: var(--uma-legend-blue);
  background: rgba(21, 234, 196, 0.18);
  border: 1px solid rgba(13, 53, 83, 0.12);
  border-radius: var(--uma-radius-pill);
  font-size: 0.86rem;
  text-decoration: none;
}

.prototype-category-nav a:hover,
.prototype-category-nav a:focus-visible {
  color: var(--uma-white);
  background: var(--uma-legend-blue);
}

.prototype-library-category {
  margin: 0 0 clamp(54px, 8vw, 86px);
  scroll-margin-top: 24px;
}

.prototype-library-category > .uma-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 20px;
  align-items: end;
  margin-bottom: 22px;
}

.prototype-library-category > .uma-section-header p {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0;
}

.prototype-category-count {
  align-self: center;
  padding: 6px 11px;
  color: var(--uma-legend-blue);
  background: var(--uma-journey-green);
  border-radius: var(--uma-radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.prototype-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

:where(.uma-page) .prototype-link-card:link,
:where(.uma-page) .prototype-link-card:visited {
  position: relative;
  display: flex;
  min-height: 176px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  color: var(--uma-integrity-gray);
  background: var(--uma-white);
  border: 1px solid var(--uma-medium-gray-1);
  border-top: 5px solid var(--uma-hero-blue);
  border-radius: var(--uma-radius-md);
  box-shadow: var(--uma-shadow-card);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

:where(.uma-page) .prototype-link-card::before {
  display: none !important;
}

:where(.uma-page) .prototype-link-card:hover {
  color: var(--uma-integrity-gray);
  border-color: var(--uma-hero-blue);
  box-shadow: var(--uma-shadow-soft);
  transform: translateY(-3px);
}

.prototype-link-card:focus-visible {
  outline: 4px solid rgba(21, 234, 196, 0.65);
  outline-offset: 3px;
}

.prototype-link-type {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  color: var(--uma-legend-blue);
  background: rgba(21, 234, 196, 0.2);
  border-radius: var(--uma-radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prototype-link-card strong {
  color: var(--uma-legend-blue);
  font-size: 1.05rem;
  line-height: 1.3;
}

.prototype-link-card p {
  margin: 9px 0 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.prototype-link-path {
  margin-top: auto;
  color: var(--uma-hero-blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.prototype-dashboard-footer {
  padding: 26px 0 10px;
  border-top: 1px solid var(--uma-medium-gray-1);
  color: var(--uma-integrity-gray);
  text-align: center;
}

/* Shared UMA structure added to historical prototypes. */
.uma-migrated-legacy .uma-page {
  width: 100%;
}

.uma-migrated-legacy .sidebar {
  background: var(--uma-legend-blue);
}

.uma-migrated-legacy .sidebar-badge {
  color: var(--uma-legend-blue);
  background: var(--uma-journey-green);
}

@media (max-width: 700px) {
  .prototype-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .prototype-library-category > .uma-section-header {
    grid-template-columns: 1fr;
  }

  .prototype-library-category > .uma-section-header p {
    grid-column: auto;
  }

  .prototype-category-count {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.uma-page) .prototype-link-card:link,
  :where(.uma-page) .prototype-link-card:visited {
    transition: none;
  }
}
