/* ═══════════════════════════════════════════════════════════════════════════
   OPEN SKY LEADERSHIP LAB — Design System
   HRD 6355 · Designing Organizational Learning Interventions · Summer 2026
   Adapted from Interaction Impact / Hormel design language
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:            #f4f6fb;
  --bg-elevated:   #ffffff;
  --ink:           #1a2535;
  --ink-soft:      #2b3a52;
  --muted:         #546070;
  --accent:        #1762c2;
  --accent-deep:   #0f4d9c;
  --accent-2:      #3b8fd4;
  --accent-glow:   rgba(23, 98, 194, 0.20);
  --gold:          #e8a317;
  --gold-soft:     #fff7e0;
  --navy:          #0d3672;
  --card:          #ffffff;
  --line:          #dce2ec;
  --line-strong:   #c4cedc;
  --shadow-sm:     0 4px 14px rgba(13, 54, 114, 0.07);
  --shadow:        0 16px 40px rgba(13, 54, 114, 0.10);
  --shadow-lg:     0 28px 70px rgba(13, 54, 114, 0.14);
  --radius-sm:     12px;
  --radius-md:     18px;
  --radius-lg:     24px;
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --font-display:  "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-ui:       "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 110% 70% at 100% -10%, rgba(23, 98, 194, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 55% at -5% 35%, rgba(13, 54, 114, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(244,246,251,0.94) 0%, rgba(255,255,255,0.88) 40%, rgba(244,246,251,0.96) 100%),
    radial-gradient(circle, rgba(13, 54, 114, 0.045) 1px, transparent 1px);
  background-size: cover, cover, cover, 28px 28px;
  background-position: center top, center top, center top, top left;
  background-attachment: fixed, fixed, fixed, fixed;
}

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

a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid rgba(23, 98, 194, 0.45);
  outline-offset: 3px;
}

/* ─── CONTAINER ─────────────────────────────────────────────────────────── */
.container {
  width: min(1600px, 96vw);
  margin: 0 auto;
  padding: 48px 0 80px;
  position: relative;
}

.home-page .container { padding-top: 16px; }

/* Gradient top bar */
.container::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold), var(--navy));
  pointer-events: none;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.section-kicker,
.module-kicker,
.program-overview-kicker {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.title {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .title {
    background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 68ch;
}

.brand-label {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

/* ─── CURRENT WAYPOINT BANNER ────────────────────────────────────────────── */
.current-waypoint-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 12px 18px;
  border: 1px solid rgba(23, 98, 194, 0.28);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(228, 237, 255, 0.96), rgba(255, 255, 255, 0.88));
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(13, 54, 114, 0.08);
  transition: transform 0.18s var(--ease-out), border-color 0.18s;
}

.current-waypoint-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 98, 194, 0.50);
}

.current-waypoint-banner span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.current-waypoint-banner strong {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
}

.current-waypoint-banner em {
  color: var(--muted);
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

/* ─── SITE NAV ───────────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: -10px 0 30px;
  padding: 6px 6px 6px 10px;
  border: 1px solid rgba(196, 206, 220, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.16s var(--ease-out);
}

.site-nav a:hover {
  transform: translateY(-1px);
  background: rgba(23, 98, 194, 0.09);
  color: var(--accent);
}

.site-nav a:focus-visible {
  outline: 3px solid rgba(23, 98, 194, 0.35);
  outline-offset: 2px;
}

.site-nav a[aria-current="page"] {
  background: rgba(23, 98, 194, 0.12);
  color: var(--accent-deep);
}

/* ─── PAGE LAYOUT ────────────────────────────────────────────────────────── */
.homepage-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: 32px;
  align-items: start;
}

.homepage-main { min-width: 0; }

/* ─── SIDEBAR ────────────────────────────────────────────────────────────── */
.fp-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}

.fp-sidebar-header {
  padding: 0 0 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.fp-sidebar-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 3px;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: color 0.18s;
}

.fp-sidebar-label:hover { color: var(--accent-deep); }

.fp-sidebar-sublabel {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

.fp-mini-path {
  padding: 9px 10px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.fp-mini-path-label {
  display: block;
  margin: 0 0 7px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.fp-mini-path-track {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 2px;
  align-items: start;
}

.fp-mini-path-stop {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  color: var(--muted);
  text-decoration: none;
}

.fp-mini-path-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #c4d0e4;
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.fp-mini-path-stop.is-complete .fp-mini-path-dot {
  background: #4a6080;
  border-color: #4a6080;
  color: #fff;
}

.fp-mini-path-stop.is-current .fp-mini-path-dot {
  background: linear-gradient(135deg, #ffe082, #f2b705);
  border-color: rgba(242,183,5,0.35);
  color: #332600;
  box-shadow: 0 0 0 3px rgba(242,183,5,0.18);
}

.fp-mini-path-verb {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fp-mini-path-stop.is-current .fp-mini-path-verb { color: #8a6500; }

.fp-tile {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(6px);
  transition: border-color 0.18s, box-shadow 0.18s;
  min-height: 100px;
}

.fp-tile:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.fp-tile-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 1px;
}

.fp-tile-icon { color: var(--navy); opacity: 0.7; display: flex; align-items: center; flex: 0 0 auto; }
.fp-tile:hover .fp-tile-icon { opacity: 1; color: var(--accent); }

.fp-tile-eyebrow {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.fp-tile-value {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.fp-tile-sub {
  font-family: var(--font-ui);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.fp-tile-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  display: inline-block;
  transition: color 0.15s;
}

.fp-tile-link:hover { color: var(--accent-deep); }

.fp-tile-progress {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  margin: 6px 0 4px;
}

.fp-tile-progress-step {
  height: 5px;
  border-radius: 999px;
  background: #dce2ec;
}

.fp-tile-progress-step.is-complete { background: #4a6080; }
.fp-tile-progress-step.is-current  {
  background: linear-gradient(135deg, #ffe082, #f2b705);
  box-shadow: 0 0 0 2px rgba(242, 183, 5, 0.2);
}

/* ─── HOME HERO ──────────────────────────────────────────────────────────── */
.home-hero {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.home-hero-emblem {
  width: clamp(100px, 12vw, 156px);
  height: clamp(100px, 12vw, 156px);
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--navy), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(13, 54, 114, 0.22);
}

.home-hero-emblem svg {
  width: 52%;
  height: 52%;
  color: #fff;
}

.home-hero-text { flex: 1; min-width: 0; }
.home-hero .brand-label { margin-bottom: 4px; }
.home-hero .title { font-size: clamp(24px, 3.4vw, 42px); margin: 0 0 10px; line-height: 1.06; }
.home-hero .subtitle { font-size: 15px; line-height: 1.65; margin: 0 0 18px; color: var(--muted); max-width: none; }
.home-hero .hero-actions { margin: 0; }

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

.hero-text-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap 0.18s var(--ease-out), color 0.18s;
  gap: 4px;
}

.hero-text-link:hover { color: var(--accent-deep); gap: 8px; }

/* ─── PROGRAM PILLARS BAND ───────────────────────────────────────────────── */
.program-pillars-band {
  background: linear-gradient(135deg, rgba(228, 237, 255, 0.55), rgba(255, 255, 255, 0.85)), #f8faff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 0;
}

.program-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.program-pillar {
  padding: 22px 18px;
  border-right: 1px solid rgba(196, 206, 220, 0.72);
  border-top: 3px solid var(--pillar-accent, rgba(255,255,255,0.1));
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.18s;
  text-decoration: none;
}

.program-pillar:last-child { border-right: 0; }
.program-pillar:hover { background: rgba(255,255,255,0.52); }

.program-pillar:nth-child(1) { --pillar-accent: #4a6080; }
.program-pillar:nth-child(2) { --pillar-accent: var(--gold); }
.program-pillar:nth-child(3) { --pillar-accent: var(--accent); }
.program-pillar:nth-child(4) { --pillar-accent: #1a8040; }

.program-pillar-stat {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--pillar-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.program-pillar-name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.program-pillar-desc {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── SECTIONS ───────────────────────────────────────────────────────────── */
.section {
  margin-top: 52px;
  animation: section-rise 0.7s var(--ease-out) both;
}

@keyframes section-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section p { color: var(--muted); }

/* ─── JOURNEY MAP ────────────────────────────────────────────────────────── */
.journey-map-intro-block { margin-bottom: 24px; }
.journey-map-intro-block .module-kicker { margin: 0 0 4px; }
.journey-map-intro-block h2 { border: none; padding: 0; margin: 0 0 8px; }

.journey-map-lead {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 72ch;
  margin: 0;
}

.journey-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
}

.journey-track {
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    #4a6080 0%, #4a6080 8%,
    #e8a317 10%, #e8a317 18%,
    #d0daea 20%, #d0daea 100%
  );
  z-index: 0;
}

.journey-stop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px 2px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.journey-stop:hover { transform: translateY(-3px); }

.journey-stop-marker {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 3px solid #c4d0e4;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.journey-marker-icon { display: block; }

.journey-stop-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.journey-verb {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey-chapter {
  display: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.journey-module {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--muted);
}

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

.journey-stop:nth-child(2) .journey-verb  { color: #4a6080; }
.journey-stop:nth-child(3) .journey-verb  { color: #e8a317; }
.journey-stop:nth-child(4) .journey-verb  { color: #c56a10; }
.journey-stop:nth-child(5) .journey-verb  { color: #1e6b3d; }
.journey-stop:nth-child(6) .journey-verb  { color: var(--accent); }
.journey-stop:nth-child(7) .journey-verb  { color: #1e6b8a; }
.journey-stop:nth-child(8) .journey-verb  { color: var(--navy); }
.journey-stop:nth-child(9) .journey-verb  { color: #6a30a0; }
.journey-stop:nth-child(10) .journey-verb { color: #1a8040; }

.journey-stop.is-complete .journey-stop-marker {
  border-color: #4a6080;
  background: #4a6080;
  color: #fff;
}

.journey-stop.is-current .journey-stop-marker {
  border-color: #f2b705;
  background: linear-gradient(145deg, #ffe082, #f2b705);
  color: #3b2b00;
  box-shadow: 0 0 0 4px rgba(242,183,5,0.28), 0 12px 28px rgba(242,183,5,0.35);
  animation: journey-pulse 2.4s ease-in-out infinite;
}

@keyframes journey-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(242,183,5,0.28), 0 12px 28px rgba(242,183,5,0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(242,183,5,0.18), 0 14px 32px rgba(242,183,5,0.4); }
}

.journey-stop.is-current .journey-chapter { color: #6b4f00; }

.journey-stop.is-upcoming .journey-stop-marker {
  border-color: #c4d0e4;
  background: #f8faff;
  color: #8a9ab0;
  font-size: 22px;
  font-weight: 400;
}

.journey-stop.is-upcoming .journey-chapter { color: var(--muted); }

.journey-map-footnote {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
}

.journey-map-footnote a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── PANELS & CARDS ─────────────────────────────────────────────────────── */
.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.panel:hover { box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; font-size: 20px; }

.module-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 200px;
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.module-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -40% auto;
  width: 160px; height: 160px;
  background: rgba(23, 98, 194, 0.07);
  border-radius: 50%;
}

.module-card h3 { margin: 0; font-size: 20px; }

.module-card .card-kicker {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.module-card p { font-size: 14px; font-family: var(--font-ui); color: var(--muted); margin: 0; }

.module-card ul {
  margin: 0; padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.module-card ul li { padding-left: 14px; position: relative; }
.module-card ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-size: 11px; top: 2px; }

.card-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  display: inline-block;
}

.module-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 20px;
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* ─── DETAIL HEADER ──────────────────────────────────────────────────────── */
.detail-header {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}

.detail-header.has-aside {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
}

.page-schedule-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  margin: 0 0 12px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 98, 194, 0.18);
  border-radius: 999px;
  background: rgba(228, 237, 255, 0.84);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.page-schedule-badge span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 13px;
  border: 1px solid rgba(23, 98, 194, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.breadcrumbs:hover { border-color: rgba(23, 98, 194, 0.3); color: var(--accent); }

/* ─── BADGES ─────────────────────────────────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.badge {
  padding: 6px 12px;
  background: linear-gradient(135deg, #eef4ff, #dce8ff);
  border: 1px solid rgba(23, 98, 194, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 600;
  color: #1a4080;
}

.due-date {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 163, 23, 0.15);
  color: #7a4d00;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px var(--accent-glow);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), filter 0.18s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
  filter: brightness(1.04);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  filter: none;
}

/* ─── FORMS / LAB TOOLS ──────────────────────────────────────────────────── */
.lab-tool {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}

.lab-tool h3 { margin: 0; font-size: 18px; }
.lab-tool h4 { margin: 0 0 4px; font-size: 15px; font-family: var(--font-ui); font-weight: 700; color: var(--ink-soft); }

.lab-tool label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── PRINT / PDF ────────────────────────────────────────────────────────── */
@media print {
  /* Hide everything except the generated portfolio output */
  .current-waypoint-banner,
  .site-nav,
  .fp-sidebar,
  .detail-header,
  .section > h2,
  .section > p,
  .lab-tool,
  #pdfActions,
  .footer,
  .container::before {
    display: none !important;
  }

  body {
    background: #fff !important;
    background-image: none !important;
    font-family: "Source Serif 4", Georgia, serif;
    color: #1a2535;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .homepage-layout {
    display: block !important;
  }

  .homepage-main {
    width: 100% !important;
  }

  #portfolioOutput {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 0 !important;
  }

  #portfolioOutput h2 {
    font-size: 28px;
    border-bottom: 2px solid #1762c2;
    padding-bottom: 10px;
    margin-bottom: 24px;
  }

  #portfolioOutput h3 {
    font-size: 16px;
    margin-top: 24px;
    padding-left: 10px;
    border-left: 3px solid #1762c2;
    page-break-after: avoid;
  }

  #portfolioOutput p {
    font-size: 13px;
    line-height: 1.6;
    color: #1a2535;
    margin: 6px 0 16px;
  }

  /* Keep sections together where possible */
  #portfolioOutput > div > div {
    page-break-inside: avoid;
  }

  @page {
    margin: 2cm 2.2cm;
    size: letter;
  }
}

.lab-tool textarea,
.lab-tool input[type="text"],
.lab-tool select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fafcff;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lab-tool textarea:focus,
.lab-tool input[type="text"]:focus,
.lab-tool select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 98, 194, 0.12);
}

.lab-tool textarea { min-height: 90px; }

.field-group { display: grid; gap: 6px; }

.save-btn {
  justify-self: start;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--accent-glow);
  transition: transform 0.18s var(--ease-out), filter 0.18s;
}

.save-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ─── REFLECTION CARDS ───────────────────────────────────────────────────── */
.reflection-card {
  background: linear-gradient(135deg, rgba(228, 237, 255, 0.55), rgba(255,255,255,0.85));
  border: 1px solid rgba(23, 98, 194, 0.14);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}

.reflection-card .prompt-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.reflection-card .prompt {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ─── WHY THIS MATTERS ───────────────────────────────────────────────────── */
.why-matters {
  border-left: 4px solid var(--navy);
  background: linear-gradient(135deg, rgba(220, 232, 255, 0.65), rgba(255,255,255,0.9));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
}

.why-matters h3 { margin-top: 0; font-size: 18px; }

/* ─── TIMELINE ───────────────────────────────────────────────────────────── */
.timeline { display: grid; gap: 12px; margin-top: 12px; }

.timeline-item {
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 14px;
  align-items: start;
}

.timeline-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.timeline-content h4 { margin: 0 0 3px; font-size: 15px; font-family: var(--font-ui); font-weight: 700; color: var(--ink); }
.timeline-content p  { margin: 0; font-size: 13px; font-family: var(--font-ui); color: var(--muted); }

/* ─── TABLE ──────────────────────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 14px;
}

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

.table th { font-weight: 700; color: var(--ink-soft); background: rgba(228,237,255,0.4); }
.table tr:last-child td { border-bottom: 0; }

/* ─── ASSIGNMENT CARDS ───────────────────────────────────────────────────── */
.assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.assignment-card {
  padding: 20px;
  border: 1px solid rgba(23, 98, 194, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}

.assignment-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(228,237,255,0.88), rgba(255,255,255,0.82));
  border-color: rgba(23, 98, 194, 0.22);
}

.assignment-card h3 { margin: 8px 0 10px; font-size: 18px; }

.assignment-card ul {
  padding-left: 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
}

.assignment-card li { margin: 7px 0; }

/* ─── PROGRAM OVERVIEW DETAILS ───────────────────────────────────────────── */
.program-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(196, 206, 220, 0.72);
}

.program-about-outcomes {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-about-outcomes li {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.program-about-outcomes li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  top: 1px;
}

/* ─── CHAPTER BOOK CARD ──────────────────────────────────────────────────── */
.chapter-book-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.chapter-book-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}

.chapter-book-card h3 { margin: 0 0 6px; font-size: 17px; }
.chapter-book-card p  { margin: 0 0 10px; font-size: 13px; font-family: var(--font-ui); color: var(--muted); }

.chapter-book-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.chapter-book-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.chapter-book-links a:hover { color: var(--accent-deep); }

/* ─── COURSE MODEL FLOW ──────────────────────────────────────────────────── */
.course-model-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.course-model-step {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  position: relative;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.course-model-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.course-model-step .step-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2px;
}

.course-model-step h4 { margin: 0; font-size: 15px; color: var(--navy); }
.course-model-step p  { margin: 2px 0 0; font-size: 11px; font-family: var(--font-ui); color: var(--muted); }

.course-model-arrow {
  font-size: 16px;
  color: var(--accent);
  line-height: 1;
  padding: 3px 0;
  opacity: 0.5;
}

/* ─── OBJECTIVES INLINE ──────────────────────────────────────────────────── */
.module-objectives-inline {
  margin: 14px 0;
}

.module-objectives-inline p {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft) !important;
  margin: 0 0 6px;
}

.module-objectives-inline ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-objectives-inline li {
  padding-left: 16px;
  position: relative;
}

.module-objectives-inline li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 2px;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.footer-brand span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .homepage-layout { grid-template-columns: minmax(220px, 255px) 1fr; gap: 22px; }
}

@media (max-width: 760px) {
  .homepage-layout { grid-template-columns: 1fr; }
  .fp-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .fp-sidebar-header { width: 100%; }
  .fp-tile { flex: 1; min-width: 155px; }
  .program-pillars-grid { grid-template-columns: 1fr 1fr; }
  .program-pillar:nth-child(2) { border-right: 0; }
  .journey-map { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
  .journey-track { display: none; }
  .detail-header.has-aside { grid-template-columns: 1fr; }
  .program-about-grid { grid-template-columns: 1fr; gap: 14px; }
  .assignment-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .program-pillars-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 2px; padding: 4px 6px; }
  .site-nav a { font-size: 12px; padding: 7px 10px; }
  .journey-map { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .home-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .home-hero-emblem { width: min(90px, 20vw); height: min(90px, 20vw); }
}
