/* MDP Design System — Health Design Sprint */

/* Layer ordering for cascade management */
@layer tokens, base, components, utilities;

:root {
  /* Typography stacks */
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Core palette — hex fallbacks */
  --black: #1a1a1a;
  --body: #333333;
  --secondary: #555555;
  --subtle: #767676;
  --border: #e0e0e0;
  --bg-subtle: #f5f5f5;
  --bg: #ffffff;
  --accent: #1a1a1a;
  --accent-hover: #333333;

  /* Inverted text (on dark backgrounds) */
  --text-on-dark: #b0b0b0;
  --text-on-dark-muted: #a0a0a0;

  /* Accent hue — desaturated teal for healthcare branding */
  --teal: #2a7f8a;
  --teal-subtle: #e8f4f6;

  /* Semantic states */
  --success: #2d7a3a;
  --warning: #8a6d00;
  --error: #c53030;
  --info: #2b6cb0;

  /* Gradient divider */
  --divider: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);

  /* Layout measurements — keep in sync with header sizing */
  --header-height: 3.25rem;
}

/* OKLCH progressive enhancement — perceptually uniform grays */
@supports (color: oklch(0 0 0)) {
  :root {
    --black: oklch(0.17 0 0);
    --body: oklch(0.30 0 0);
    --secondary: oklch(0.42 0 0);
    --subtle: oklch(0.55 0 0);
    --border: oklch(0.90 0 0);
    --bg-subtle: oklch(0.97 0 0);
    --bg: oklch(1.00 0 0);
    --accent: oklch(0.17 0 0);
    --accent-hover: oklch(0.30 0 0);
    --text-on-dark: oklch(0.74 0 0);
    --text-on-dark-muted: oklch(0.68 0 0);
    --teal: oklch(0.55 0.08 195);
    --teal-subtle: oklch(0.96 0.02 195);
    --success: oklch(0.52 0.14 145);
    --warning: oklch(0.55 0.12 85);
    --error: oklch(0.48 0.16 25);
    --info: oklch(0.52 0.10 250);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  color: var(--body);
  line-height: 1.6;
  background: var(--bg);
}

/* Header */
header {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--black);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo:hover { color: var(--secondary); }

.logo-text {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 400;
}

/* Navigation */
nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav a {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--secondary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

nav a:hover {
  background: var(--bg-subtle);
  color: var(--black);
}

nav a.active {
  background: var(--bg-subtle);
  color: var(--black);
  font-weight: 500;
}

/* Layout */
.container {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Page content — left-aligned on mobile, justified on wider screens */
.page-content {
  text-align: left;
}

.page-content p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.page-content ol {
  margin-bottom: 1rem;
}

.page-content ol li {
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

/* Hero — tighter spacing */
.hero {
  padding: 1.5rem 0 1rem;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
  background: var(--bg-subtle);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.025em;
}

h1 {
  font-family: var(--mono);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.byline {
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.thesis {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
}

.thesis em {
  color: var(--black);
  font-style: italic;
}

/* Sections — tighter spacing, gradient divider */
section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-image: var(--divider) 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}



.chevron {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--subtle);
  transition: transform 0.2s ease;
}

/* ========================================
   Collapsible <details> Sections
   ======================================== */

.collapsible {
  border: none;
}

/* Remove browser default disclosure triangle */
.collapsible > summary {
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  /* Expanded hit area — permanent so hover doesn't cause layout shift */
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 6px;
}

.collapsible > summary::-webkit-details-marker {
  display: none;
}

.collapsible > summary::marker {
  content: '';
}

/* Expand/collapse indicator for collapsible summaries */
.collapsible > summary .chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.2s ease;
}

/* Override chevron text to show + / - */
.collapsible > summary .chevron::after {
  content: '+';
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--body);
  line-height: 1;
}

/* Hide the original chevron text */
.collapsible > summary .chevron {
  font-size: 0;
  color: transparent;
}

/* When open: show minus */
.collapsible[open] > .section-header .chevron::after {
  content: '\2212';
}

/* Chevron rotation when open */
.collapsible[open] > .section-header .chevron {
  background: var(--accent);
  border-color: var(--accent);
}

.collapsible[open] > .section-header .chevron::after {
  color: var(--bg);
}

/* Hover/focus affordance on summary */
.collapsible > summary:hover {
  background: var(--bg-subtle);
}

.collapsible > summary:hover .chevron {
  border-color: var(--secondary);
}

.collapsible > summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

h2 {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h3 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.375rem;
}

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

/* Markdown content styling */
.page-content h2 {
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  border-image: var(--divider) 1;
}

.page-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.page-content li {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

.page-content code {
  font-family: var(--mono);
  font-size: 0.875rem;
  background: var(--bg-subtle);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

.page-content pre {
  background: var(--bg-subtle);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.page-content pre code {
  background: none;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.page-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

.page-content th {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--black);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.page-content td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

/* Schedule table — base styles; fixed layout applied at 768px+ */
.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
  white-space: nowrap;
  padding-left: 1.25rem;
  text-align: center;
}

.schedule-table td:nth-child(3) {
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: break-word;
}

/* Keep filenames and inline code on one line inside tables */
.page-content td code {
  white-space: nowrap;
}

.page-content strong {
  color: var(--black);
}

.page-content em {
  color: var(--black);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: left;
}

.card h3 {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.card p {
  font-size: 1rem;
  color: var(--body);
  margin-bottom: 0;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--black);
  background: var(--bg-subtle);
  padding: 0.3rem 0.625rem;
  border-radius: 4px;
}

/* Quick links grid */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.quick-link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  text-decoration: none;
  transition: background 0.15s;
}

.quick-link:hover {
  background: var(--border);
}

.quick-link .chevron {
  font-size: 0.875rem;
  flex-shrink: 0;
}

.quick-link span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
}

/* Workflow phases */
.workflow-week {
  margin-bottom: 1rem;
}

.workflow-week:last-child {
  margin-bottom: 0;
}

.week-label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
}

.phases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.375rem;
}

.phase {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

.phase-num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.phase-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.3;
}

/* Pilot details */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.detail-item {
  display: flex;
  gap: 1rem;
}

.detail-item label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  width: 80px;
  flex-shrink: 0;
  padding-top: 0.125rem;
}

.detail-item span {
  font-size: 0.9375rem;
  color: var(--black);
}

/* Chevron list */
.chevron-list {
  list-style: none;
  margin: 0 0 0.75rem;
}

.chevron-list li {
  font-size: 0.9375rem;
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--body);
}

.chevron-list li::before {
  content: '>';
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--subtle);
  position: absolute;
  left: 0;
  top: 0.4rem;
}

/* Footer */
footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-image: var(--divider) 1;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.instructor-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.125rem;
}

.instructor-title {
  font-size: 0.8125rem;
  color: var(--secondary);
  line-height: 1.5;
}

.footer-links {
  text-align: right;
}

.footer-links a {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
}

.tagline {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--subtle);
  letter-spacing: 0.025em;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  border-image: var(--divider) 1;
}

/* Links */
a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--secondary);
}

/* Responsive — mobile-first: 1.25rem → 2rem (640) → 4rem (768) */
@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }

  header {
    padding: 1.25rem 2rem;
  }

  .day-nav-inner {
    padding: 0 2rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .page-content {
    text-align: justify;
    -webkit-hyphens: none;
    hyphens: none;
  }

  /* Fallback for browsers without container queries */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--half {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reset when container queries are supported — let @container rules handle layout */
  @supports (container-type: inline-size) {
    .card-grid {
      grid-template-columns: 1fr;
    }
  }

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

@media (min-width: 768px) {
  .container {
    padding: 0 4rem;
  }

  header {
    padding: 1.25rem 4rem;
  }

  .day-nav-inner {
    padding: 0 4rem;
  }

  h1 {
    font-size: 2rem;
  }

  .phases {
    grid-template-columns: repeat(5, 1fr);
  }

  .phase {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    min-height: 4.5rem;
  }

  .phase-num {
    margin-bottom: 0.25rem;
  }

  .phase-name {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* ========================================
   Interactive Elements — Accent Treatment
   ======================================== */

/* Exercise cards — dark accent, inverted text */
.exercise-card {
  display: block;
  background: var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 0.75rem;
}

.exercise-card:hover {
  background: var(--accent-hover);
}

.exercise-card .exercise-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.exercise-card h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 0.125rem;
}

.exercise-card .exercise-subtitle {
  font-size: 0.8125rem;
  color: var(--text-on-dark);
  margin-bottom: 0.375rem;
}

.exercise-card .exercise-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-on-dark-muted);
}

/* Download button — dark accent */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 0.75rem;
}

.download-btn:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

/* Prompt blocks — copy/paste prompts for students */
.prompt-block {
  background: var(--bg-subtle);
  border-left: 3px solid var(--teal);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
  font-style: italic;
}

.prompt-block strong {
  font-style: normal;
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--subtle);
  margin-bottom: 0.25rem;
  padding-top: 1rem;
}

.breadcrumb a {
  color: var(--subtle);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--black);
}

/* Day navigation */
.day-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.day-nav-inner {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.day-nav-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.day-nav-label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.125rem;
}

.day-btn {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
  background: var(--bg-subtle);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.day-btn:hover {
  background: var(--border);
  color: var(--black);
}

.day-btn.active {
  background: var(--accent);
  color: var(--bg);
}

.day-btn.upcoming {
  color: var(--subtle);
  border: 1px dashed var(--border);
  background: none;
}

.day-nav-sep {
  width: 1px;
  height: 0.875rem;
  background: var(--border);
  margin: 0 0.125rem;
}

/* Home button in day-nav */
.day-nav-home {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--subtle);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.15s;
}

.day-nav-home:hover {
  color: var(--black);
}

/* ========================================
   Dashboard — Current Day Hero
   ======================================== */

.dash-hero {
  background: var(--accent);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  margin-top: 1.25rem;
  position: relative;
  overflow: hidden;
  /* dot-grid overlay for texture */
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.dash-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.dash-hero-day {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dash-hero-day-num {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
  letter-spacing: -2px;
}

.dash-hero-day-label {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.dash-hero-day-label a {
  color: var(--bg);
  text-decoration: none;
}

.dash-hero-day-label a:hover {
  text-decoration: underline;
}

.dash-hero-date {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-on-dark);
  margin-top: 0.125rem;
}

.dash-hero-theme {
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bg);
  margin-top: 0.5rem;
}

.dash-hero-theme a {
  color: var(--bg);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.dash-hero-theme a:hover {
  border-bottom-color: var(--bg);
}

.dash-hero-next {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.dash-hero-next a {
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: none;
}

.dash-hero-next a:hover {
  color: var(--bg);
}

@media (min-width: 640px) {
  .dash-hero {
    padding: 2.5rem 2rem;
  }

  .dash-hero-day-num {
    font-size: 5.5rem;
  }

  .dash-hero-theme {
    font-size: 1.25rem;
  }
}

/* ========================================
   Dashboard — Section Cards (4-up)
   ======================================== */

.dash-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (min-width: 640px) {
  .dash-sections {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .dash-sections {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dash-section-card {
  display: flex;
  gap: 0.875rem;
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 1rem 1.125rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  border: 1px solid var(--border);
  align-items: flex-start;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

.dash-section-card:hover {
  background: var(--border);
  transform: translateY(-1px);
}

.dash-section-card--bonus {
  border-left: 3px solid var(--teal);
}

.dash-section-card--bonus:hover {
  border-left-color: var(--teal);
}

.dash-section-icon {
  font-family: var(--mono);
  font-size: 1.125rem;
  color: var(--teal);
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-subtle);
  border-radius: 6px;
  line-height: 1;
}

.dash-section-body {
  flex: 1;
  min-width: 0;
}

.dash-section-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
  margin-bottom: 0.25rem;
}

.dash-section-title {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.125rem;
  line-height: 1.3;
}

.dash-section-meta {
  font-size: 0.75rem;
  color: var(--secondary);
  line-height: 1.4;
}

/* Sessions card — spans 2 columns on larger grids */
@media (min-width: 960px) {
  .dash-section-card--sessions {
    grid-column: span 2;
  }
}

/* Session bullet list inside card */
.dash-session-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.dash-session-list li {
  font-size: 0.8125rem;
  color: var(--body);
  padding: 0.2rem 0;
  line-height: 1.4;
}

.dash-session-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--subtle);
  margin-right: 0.25rem;
}

/* ========================================
   Dashboard — Links Bar
   ======================================== */

.dash-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 2rem;
}

.dash-link-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1.125rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}

.dash-link-btn:hover {
  background: var(--accent-hover);
}

.dash-link-btn--subtle {
  background: var(--bg-subtle);
  color: var(--secondary);
  border: 1px solid var(--border);
}

.dash-link-btn--subtle:hover {
  background: var(--border);
  color: var(--black);
}

/* ========================================
   Dashboard — Guest Spotlight
   ======================================== */

.dash-spotlight {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--teal);
}

.dash-spotlight-icon {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--teal);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.125rem;
}

.dash-spotlight-name {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.125rem;
}

.dash-spotlight-affil {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
  margin-bottom: 0.25rem;
}

.dash-spotlight-topic {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.dash-spotlight p {
  font-size: 0.875rem;
  color: var(--body);
  margin-bottom: 0;
  line-height: 1.5;
}

.dash-spotlight-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
}

.dash-spotlight-link:hover {
  text-decoration: underline;
}

/* ========================================
   Dashboard — Media Spotlight
   ======================================== */

.dash-media {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: background 0.15s;
  border: 1px solid var(--border);
}

.dash-media:hover {
  background: var(--border);
}

.dash-media-badge {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
  flex-shrink: 0;
  white-space: nowrap;
  padding-top: 0.25rem;
}

.dash-media-title {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.125rem;
}

.dash-media-source {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
  margin-bottom: 0.375rem;
}

.dash-media p {
  font-size: 0.8125rem;
  color: var(--body);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Day coming soon notice */
.day-coming-soon {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.day-coming-soon p {
  font-size: 0.9375rem;
  color: var(--body);
  margin-bottom: 0;
}

/* Steps (numbered) */
.step-num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--subtle);
  margin-right: 0.125rem;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   Gateway — Two-audience homepage
   ======================================== */

.gateway-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.gateway-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  min-height: 5rem;
}

.gateway-cta-chevron {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 300;
  flex-shrink: 0;
}



.gateway-cta-title {
  display: block;
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
  white-space: nowrap;
}

.gateway-cta-desc {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Primary CTA — dark accent (student dashboard) */
.gateway-cta--primary {
  background: var(--accent);
}

.gateway-cta--primary .gateway-cta-chevron {
  color: var(--subtle);
}

.gateway-cta--primary .gateway-cta-title {
  color: var(--bg);
}

.gateway-cta--primary .gateway-cta-desc {
  color: var(--text-on-dark);
}

.gateway-cta--primary:hover {
  background: var(--accent-hover);
}

/* Secondary CTA — outlined (about / visitors) */
.gateway-cta--secondary {
  background: var(--bg);
  border: 1.5px solid var(--border);
}

.gateway-cta--secondary .gateway-cta-chevron {
  color: var(--subtle);
}

.gateway-cta--secondary .gateway-cta-title {
  color: var(--black);
}

.gateway-cta--secondary .gateway-cta-desc {
  color: var(--secondary);
}

.gateway-cta--secondary:hover {
  border-color: var(--secondary);
  background: var(--bg-subtle);
}

/* Gateway summary — tighter top spacing since CTAs provide visual break */
.gateway-summary {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  border-image: var(--divider) 1;
}

/* Desktop: side-by-side CTAs */
@media (min-width: 640px) {
  .gateway-ctas {
    flex-direction: row;
  }

  .gateway-cta {
    flex: 1;
  }
}

/* ========================================
   Day-nav — "Main" escape link
   ======================================== */

.day-nav-site {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--subtle);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.15s;
  white-space: nowrap;
}

.day-nav-site:hover {
  color: var(--black);
}

/* ========================================
   Phase links — clickable day phases
   ======================================== */

.phase-link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.phase-link:hover .phase-name {
  color: var(--secondary);
}

@media (min-width: 768px) {
  .phase-link {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .phase-link .phase-num {
    margin-bottom: 0.25rem;
  }

  .phase-link .phase-name {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* ========================================
   Visual Components — Show, Don't Tell
   ======================================== */

/* Pull Quote — Extract key insights from prose */
.pull-quote {
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--black);
  border-left: 3px solid var(--teal);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin: 1.25rem 0;
  line-height: 1.45;
  text-align: left;
}

.pull-quote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  font-style: normal;
  color: var(--subtle);
  margin-top: 0.375rem;
}

/* Stat Block — Highlight key numbers */
.stat-row {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.stat-block {
  flex: 1;
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: 8px;
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* Paradigm Shift — Before/After comparison */
.paradigm-shift {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 1.5rem 0;
  border-radius: 10px;
}

.paradigm-before {
  border-radius: 10px 0 0 10px;
}

.paradigm-after {
  border-radius: 0 10px 10px 0;
}

.paradigm-before,
.paradigm-after {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-hyphens: none;
  hyphens: none;
}

.paradigm-before {
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-right: none;
}

.paradigm-after {
  background: var(--accent);
  border: 2px solid var(--accent);
}

.paradigm-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-subtle);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.paradigm-label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
}

.paradigm-before .paradigm-label {
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}

.paradigm-after .paradigm-label {
  color: var(--text-on-dark);
  border: 1.5px solid var(--text-on-dark);
}

.paradigm-before .paradigm-text {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.paradigm-after .paradigm-text {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.paradigm-text em {
  font-style: normal;
  color: inherit;
}

/* Technical Term Tooltips — hover/focus popups for jargon */
.term-tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--subtle);
  font-weight: inherit;
}

.term-tooltip[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 100;
  text-transform: none;
  letter-spacing: normal;
}

.term-tooltip[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--black);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 100;
}

.term-tooltip:hover::before,
.term-tooltip:hover::after,
.term-tooltip:focus::before,
.term-tooltip:focus::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 479px) {
  .term-tooltip[data-tooltip]::before {
    left: 0;
    transform: none;
    max-width: 220px;
  }
  .term-tooltip[data-tooltip]::after {
    left: 1rem;
    transform: none;
  }
}

@media (max-width: 479px) {
  .paradigm-shift {
    flex-direction: column;
  }

  .paradigm-before {
    border-radius: 10px 10px 0 0;
    border-right: 2px solid var(--border);
    border-bottom: none;
  }

  .paradigm-after {
    border-radius: 0 0 10px 10px;
  }

  .paradigm-arrow {
    padding: 0.5rem 0;
    font-size: 0;
    background: transparent;
    border: none;
  }

  .paradigm-arrow::after {
    content: '\2193';
    font-size: 1.5rem;
    font-family: var(--mono);
    font-weight: 700;
    color: var(--accent);
  }
}

@media (min-width: 640px) {
  .paradigm-before .paradigm-text,
  .paradigm-after .paradigm-text {
    font-size: 1.375rem;
  }
}

/* Flow Diagram — Interactive process visualization */
.flow-diagram {
  display: grid;
  gap: 0;
  margin: 1.25rem 0;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  transition: background 0.15s;
  border-radius: 6px;
}

.flow-step:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}

.flow-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  min-width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.flow-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.flow-title {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.125rem;
}

.flow-desc {
  font-size: 0.8125rem;
  color: var(--secondary);
  line-height: 1.5;
}

.flow-loop-back {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--subtle);
  text-align: center;
  padding: 0.625rem;
  border: 1px dashed var(--border);
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* Desktop: 2-column flow grid */
@media (min-width: 640px) {
  .flow-diagram--grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
  }

  .flow-diagram--grid .flow-step {
    padding: 0.625rem;
    border-bottom: none;
    border-bottom: 1px dashed var(--border);
  }

  .flow-diagram--grid .flow-step:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .flow-diagram--grid .flow-loop-back {
    grid-column: 1 / -1;
  }
}

/* Tool Map — Visual tool connections */
.tool-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.25rem 0;
}

.tool-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--bg-subtle);
}

.tool-node--you {
  background: var(--accent);
}

.tool-icon {
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 300;
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
  color: var(--subtle);
}

.tool-node--you .tool-icon {
  color: var(--text-on-dark-muted);
}

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-role {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  margin-bottom: 0.0625rem;
}

.tool-node--you .tool-role {
  color: var(--text-on-dark-muted);
}

.tool-name-label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
}

.tool-node--you .tool-name-label {
  color: var(--bg);
}

.tool-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--subtle);
}

@media (min-width: 640px) {
  .tool-map--horizontal {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    align-items: center;
    gap: 0;
  }

  .tool-map--horizontal .tool-node {
    flex-direction: column;
    text-align: center;
    padding: 0.875rem 0.5rem;
    gap: 0.375rem;
  }

  .tool-map--horizontal .tool-connector {
    padding: 0;
    min-width: 1.5rem;
  }
}

/* Callout — Important insight highlight */
.callout {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-left: 3px solid var(--teal);
  text-align: left;
}

.callout-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.callout p {
  font-size: 0.9375rem;
  color: var(--body);
  margin-bottom: 0;
}

.callout strong {
  color: var(--black);
}

/* Checklist — Visual checkmarks */
.checklist {
  list-style: none;
  margin: 0 0 0.75rem;
}

.checklist li {
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--bg-subtle);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: '\25A1';
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--subtle);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

/* PRD Layer Stack — Visual accumulation indicator */
.prd-stack {
  display: flex;
  gap: 0.25rem;
  margin: 1rem 0;
}

.prd-layer {
  flex: 1;
  padding: 0.5rem 0.375rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--bg-subtle);
  border-radius: 4px;
  color: var(--secondary);
  line-height: 1.3;
  transition: background 0.15s, color 0.15s;
}

.prd-layer--active {
  background: var(--accent);
  color: var(--bg);
}

/* Daily Rhythm — Visual time block bar */
.rhythm-bar {
  display: flex;
  gap: 2px;
  margin: 1rem 0;
  border-radius: 6px;
  overflow: hidden;
  height: 2rem;
}

.rhythm-block {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--bg-subtle);
  white-space: nowrap;
  overflow: hidden;
}

.rhythm-block--accent {
  background: var(--accent);
  color: var(--bg);
}

.rhythm-block--break {
  background: var(--bg);
  border: 1px dashed var(--border);
  color: var(--subtle);
}

/* ========================================
   Accessibility
   ======================================== */

/* Screen-reader only 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;
}

/* Skip-to-content link */
.skip-to-content {
  position: absolute;
  top: -3rem;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
  z-index: 102;
  transition: top 0.15s;
}

.skip-to-content:focus {
  top: 0;
  color: var(--bg);
}

/* Focus-visible styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
.day-btn:focus-visible,
.exercise-card:focus-visible,
.download-btn:focus-visible,
.gateway-cta:focus-visible,
.quick-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: var(--bg-subtle);
  color: var(--black);
}

/* Disabled day-nav buttons for future/upcoming days */
.day-btn.upcoming {
  color: var(--subtle);
  border: 1px dashed var(--border);
  background: none;
  opacity: 0.7;
}

/* ========================================
   Grain Texture Overlay
   ======================================== */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
}

/* ========================================
   Dot-Grid Hero Background
   ======================================== */

.hero {
  position: relative;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}

/* ========================================
   Specular Card Borders (Linear look)
   ======================================== */

.card {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: linear-gradient(
    135deg,
    var(--border) 0%,
    transparent 40%,
    transparent 60%,
    var(--border) 100%
  );
  z-index: -1;
}

.exercise-card {
  position: relative;
  overflow: hidden;
}

.exercise-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.06) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gateway-cta--secondary {
  position: relative;
}

.gateway-cta--secondary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: linear-gradient(
    135deg,
    var(--border) 0%,
    transparent 40%,
    transparent 60%,
    var(--border) 100%
  );
  z-index: -1;
}

/* ========================================
   Scroll-Driven Reading Progress Bar
   ======================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 99;
}

@supports (animation-timeline: scroll()) {
  .reading-progress {
    animation: progress-grow linear;
    animation-timeline: scroll();
  }

  @keyframes progress-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* ========================================
   View Transitions
   ======================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 150ms ease-out fade-out;
}

::view-transition-new(root) {
  animation: 150ms ease-in fade-in;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   Container Queries — Card Grid
   ======================================== */

.card-grid {
  container-type: inline-size;
  container-name: card-grid;
}

@container card-grid (min-width: 400px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@container card-grid (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Dark Mode
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --black: #f0f0f0;
    --body: #d4d4d4;
    --secondary: #a3a3a3;
    --subtle: #8a8a8a;
    --border: #333333;
    --bg-subtle: #1c1c1c;
    --bg: #111111;
    --accent: #f0f0f0;
    --accent-hover: #d4d4d4;
    --text-on-dark: #b0b0b0;
    --text-on-dark-muted: #8a8a8a;
    --success: #4ade80;
    --warning: #facc15;
    --error: #f87171;
    --info: #60a5fa;
    --teal: #3db8c8;
    --teal-subtle: #1a2e30;
    --divider: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
  }

  @supports (color: oklch(0 0 0)) {
    :root {
      --black: oklch(0.95 0 0);
      --body: oklch(0.85 0 0);
      --secondary: oklch(0.70 0 0);
      --subtle: oklch(0.60 0 0);
      --border: oklch(0.28 0 0);
      --bg-subtle: oklch(0.16 0 0);
      --bg: oklch(0.12 0 0);
      --accent: oklch(0.95 0 0);
      --accent-hover: oklch(0.85 0 0);
      --text-on-dark: oklch(0.74 0 0);
      --text-on-dark-muted: oklch(0.60 0 0);
      --teal: oklch(0.72 0.10 195);
      --teal-subtle: oklch(0.20 0.02 195);
      --success: oklch(0.72 0.18 145);
      --warning: oklch(0.80 0.16 85);
      --error: oklch(0.65 0.20 25);
      --info: oklch(0.68 0.14 250);
    }
  }

  /* Dark mode: exercise cards use slightly lighter bg */
  .exercise-card {
    background: #1c1c1c;
  }

  .exercise-card:hover {
    background: #252525;
  }

  .exercise-card h3 {
    color: #f0f0f0;
  }

  /* Dark mode: dashboard hero — stand out on dark page */
  .dash-hero {
    background-color: #252525;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    border: 1px solid #404040;
  }

  .dash-hero-day-num {
    color: #f0f0f0;
  }

  .dash-hero-day-label,
  .dash-hero-day-label a {
    color: #e0e0e0;
  }

  .dash-hero-date {
    color: #a0a0a0;
  }

  .dash-hero-theme,
  .dash-hero-theme a {
    color: #f0f0f0;
  }

  .dash-hero-next {
    border-top-color: #404040;
    color: #808080;
  }

  .dash-hero-next a {
    color: #a0a0a0;
  }

  /* Dark mode: section cards */
  .dash-section-card {
    background: #1c1c1c;
    border-color: #333;
  }

  .dash-section-card:hover {
    background: #252525;
  }

  .dash-section-icon {
    background: rgba(42, 127, 138, 0.15);
  }

  .dash-section-title {
    color: #e0e0e0;
  }

  .dash-section-meta {
    color: #909090;
  }

  /* Dark mode: gateway primary CTA */
  .gateway-cta--primary {
    background: #1c1c1c;
  }

  .gateway-cta--primary:hover {
    background: #252525;
  }

  .gateway-cta--primary .gateway-cta-title {
    color: #f0f0f0;
  }

  /* Dark mode: download button */
  .download-btn {
    background: #1c1c1c;
    color: #f0f0f0;
  }

  .download-btn:hover {
    background: #252525;
    color: #f0f0f0;
  }

  /* Dark mode: day-btn active */
  .day-btn.active {
    background: #f0f0f0;
    color: #111111;
  }

  /* Dark mode: code blocks */
  .page-content code {
    background: #1c1c1c;
  }

  .page-content pre {
    background: #1c1c1c;
  }

  /* Dark mode: grain overlay inverts */
  body::after {
    opacity: 0.04;
    mix-blend-mode: overlay;
  }

  /* Dark mode: specular card borders brighten */
  .card::before {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.04) 100%
    );
  }

  /* Dark mode: hero dot-grid */
  .hero {
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  }

  /* Dark mode: skip-to-content link */
  .skip-to-content {
    background: #f0f0f0;
    color: #111111;
  }

  .skip-to-content:focus {
    color: #111111;
  }

  /* Dark mode: visual components */
  .paradigm-after {
    background: #1c1c1c;
  }

  .paradigm-after .paradigm-text {
    color: #f0f0f0;
  }

  .paradigm-after .paradigm-text em {
    color: #f0f0f0;
  }

  .flow-num {
    background: #f0f0f0;
    color: #111111;
  }

  .tool-node--you {
    background: #1c1c1c;
  }

  .tool-node--you .tool-name-label {
    color: #f0f0f0;
  }

  .prd-layer--active {
    background: #1c1c1c;
    color: #f0f0f0;
  }

  .rhythm-block--accent {
    background: #1c1c1c;
    color: #f0f0f0;
  }

  /* Dark mode: guest highlight */
  .guest-highlight {
    background: var(--teal-subtle);
  }

  .guest-icon {
    color: var(--teal);
  }

  /* Dark mode: copy button */
  .copy-btn {
    background: var(--bg-subtle);
  }

  /* Dark mode: glossary filter */
  .glossary-filter input {
    background: var(--bg-subtle);
    border-color: var(--border);
    color: var(--black);
  }
}

/* ========================================
   Table Scroll Wrapper — Mobile overflow
   ======================================== */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.table-scroll table {
  margin-bottom: 0;
}

/* ========================================
   Interactive Checklist — localStorage
   ======================================== */

.checklist[data-persist] li {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
}

.checklist[data-persist] li.checked {
  opacity: 0.5;
}

.checklist[data-persist] li.checked::before {
  content: '\2713';
  color: var(--teal);
}

/* ========================================
   Copy-to-Clipboard Button
   ======================================== */

.copy-wrap {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--subtle);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 1;
}

.copy-wrap:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}

.copy-btn.copied {
  color: var(--teal);
  border-color: var(--teal);
}

/* ========================================
   Glossary Search / Filter
   ======================================== */

.glossary-filter {
  position: relative;
  margin-bottom: 1.25rem;
}

.glossary-filter input {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--black);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.625rem 1rem 0.625rem 2.25rem;
  outline: none;
  transition: border-color 0.15s;
}

.glossary-filter input:focus {
  border-color: var(--teal);
}

.glossary-filter input::placeholder {
  color: var(--subtle);
}

.glossary-filter::before {
  content: '>';
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--subtle);
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
}

.glossary-term.hidden {
  display: none;
}

.glossary-section.hidden {
  display: none;
}

.glossary-no-results {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--subtle);
  text-align: center;
  padding: 2rem 0;
  display: none;
}

.glossary-no-results.visible {
  display: block;
}

/* ========================================
   Next/Previous Day Navigation
   ======================================== */

.day-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-image: var(--divider) 1;
  margin-top: 1.5rem;
}

.day-pager a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  max-width: 45%;
}

.day-pager a:last-child {
  text-align: right;
  margin-left: auto;
}

.day-pager-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}

.day-pager-title {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  transition: color 0.15s;
}

.day-pager a:hover .day-pager-title {
  color: var(--teal);
}

/* ========================================
   Custom 404 Page
   ======================================== */

.four-oh-four {
  text-align: center;
  padding: 3rem 0;
}

.four-oh-four-code {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.four-oh-four p {
  font-size: 0.9375rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.four-oh-four-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.four-oh-four-links a {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--black);
  background: var(--bg-subtle);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}

.four-oh-four-links a:hover {
  background: var(--border);
}

/* ========================================
   Learning Target Cards
   ======================================== */

.learning-targets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .learning-targets {
    grid-template-columns: repeat(3, 1fr);
  }
}

.learning-targets .card ul {
  list-style: none;
  margin: 0;
}

.learning-targets .card li {
  font-size: 0.8125rem;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
  color: var(--body);
}

.learning-targets .card li::before {
  content: '>';
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--subtle);
  position: absolute;
  left: 0;
  top: 0.3rem;
}

/* ========================================
   Guest Speaker Highlight
   ======================================== */

.guest-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--teal-subtle);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.guest-icon {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.guest-highlight h3 {
  margin-bottom: 0.125rem;
}

.guest-highlight p {
  font-size: 0.8125rem;
  color: var(--secondary);
  margin-bottom: 0;
}

/* ========================================
   Section intro text — replaces inline styles
   ======================================== */

.section-intro {
  margin-bottom: 1.5rem;
}

.section-intro-sm {
  margin-bottom: 1rem;
}

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

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

  .reading-progress {
    display: none;
  }
}

/* ========================================
   Desktop Polish Pass
   Additive overrides for ≥768px and ≥1200px.
   Mobile styles are preserved untouched.
   ======================================== */

/* --- P1: Wider Desktop Layout --- */

@media (min-width: 768px) {
  .container {
    max-width: 800px;
  }

  .day-nav-inner {
    max-width: 800px;
  }

  header {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 820px;
    padding: 0 2rem;
  }

  /* Pages with grids/cards can go wider — applied via container queries already */

  .day-nav-inner {
    max-width: 820px;
    padding: 0 2rem;
  }

  header {
    padding: 1.25rem 3rem;
  }
}

/* Wide container for pages that benefit from more room (cards, grids) */
@media (min-width: 1200px) {
  .gateway-ctas {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- P2: Desktop Typography Scaling --- */

/* Fluid type using clamp — scales between breakpoints */
@media (min-width: 768px) {
  body {
    font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);
    line-height: 1.65;
  }

  h1 {
    font-size: clamp(2rem, 2.5vw + 1rem, 2.625rem);
    letter-spacing: -0.75px;
  }

  h2 {
    font-size: clamp(0.875rem, 0.5vw + 0.7rem, 1rem);
  }

  .page-content h2 {
    font-size: clamp(0.9375rem, 0.5vw + 0.75rem, 1.125rem);
  }

  h3 {
    font-size: clamp(1rem, 0.4vw + 0.85rem, 1.25rem);
  }

  .page-content h3 {
    font-size: clamp(1rem, 0.4vw + 0.85rem, 1.25rem);
  }

  .page-content p,
  .page-content li,
  .thesis,
  .chevron-list li {
    font-size: clamp(0.9375rem, 0.2vw + 0.88rem, 1.0625rem);
    line-height: 1.7;
  }

  nav a {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .page-content th {
    font-size: 0.8125rem;
    padding: 0.75rem 1rem;
  }

  .page-content td {
    font-size: clamp(0.875rem, 0.15vw + 0.85rem, 1rem);
    padding: 0.75rem 1rem;
  }

  .card h3 {
    font-size: 0.9375rem;
  }

  .card p {
    font-size: clamp(1rem, 0.15vw + 0.95rem, 1.0625rem);
  }

  .badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  .byline {
    font-size: 1rem;
  }

  small, .stat-label, .callout-label {
    font-size: 0.8125rem;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 2.625rem;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: 1.0625rem;
  }

  .page-content h2 {
    font-size: 1.1875rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .page-content h3 {
    font-size: 1.25rem;
  }

  .page-content p,
  .page-content li,
  .thesis,
  .chevron-list li {
    font-size: 1.0625rem;
  }

  nav a {
    font-size: 1rem;
  }

  .page-content th {
    font-size: 0.9375rem;
  }

  .page-content td {
    font-size: 1rem;
  }

  .card p {
    font-size: 1.0625rem;
  }

  small, .stat-label, .callout-label {
    font-size: 0.875rem;
  }
}

/* --- P3: Table Layout Fixes --- */

@media (min-width: 768px) {
  .page-content table {
    table-layout: fixed;
  }

  .schedule-table th:nth-child(1),
  .schedule-table td:nth-child(1) {
    width: 7rem;
  }

  .schedule-table th:nth-child(2),
  .schedule-table td:nth-child(2) {
    width: 9rem;
  }
}

/* Mobile: stacked card layout for schedule tables */
@media (max-width: 767px) {
  .schedule-table thead {
    display: none;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .schedule-table tr:last-child {
    border-bottom: none;
  }

  .schedule-table td {
    border-bottom: none;
    padding: 0.125rem 0;
  }

  .schedule-table td:nth-child(1) {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: auto;
    white-space: normal;
  }

  .schedule-table td:nth-child(2) {
    font-weight: 600;
    color: var(--black);
    width: auto;
    text-align: left;
    padding-left: 0;
  }

  .schedule-table td:nth-child(3) {
    font-size: 0.875rem;
    color: var(--secondary);
  }
}

/* --- P4: Chevron Section Labels — Inline with headings --- */

@media (min-width: 768px) {
  .section-header {
    gap: 0.625rem;
    margin-bottom: 1rem;
  }

  .chevron {
    font-size: 1rem;
    color: var(--teal);
    line-height: 1;
  }

  .section-header h2 {
    font-size: clamp(0.875rem, 0.5vw + 0.7rem, 1rem);
  }
}

@media (min-width: 1200px) {
  .section-header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .chevron {
    font-size: 1.125rem;
  }
}

/* --- P5a: Cards & Containers --- */

@media (min-width: 768px) {
  .card {
    padding: 1.25rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .gateway-ctas {
    gap: 1rem;
  }

  .gateway-cta {
    padding: 1.5rem 1.75rem;
    min-height: 6rem;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  }

  .gateway-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .gateway-cta-title {
    font-size: 1.125rem;
  }

  .gateway-cta-desc {
    font-size: 0.9375rem;
  }

  .gateway-cta-chevron {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .card {
    padding: 1.5rem 1.75rem;
  }

  .gateway-cta {
    padding: 1.75rem 2rem;
    min-height: 7rem;
  }

  .gateway-cta-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .gateway-cta-desc {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Paradigm shift — bigger and more dramatic on desktop */
@media (min-width: 768px) {
  .paradigm-shift {
    margin: 2rem 0;
  }

  .paradigm-before {
    border-radius: 10px 0 0 10px;
  }

  .paradigm-after {
    border-radius: 0 10px 10px 0;
  }

  .paradigm-before,
  .paradigm-after {
    padding: 1.5rem 1.75rem;
  }

  .paradigm-label {
    font-size: 0.6875rem;
    margin-bottom: 0.5rem;
  }

  .paradigm-before .paradigm-text,
  .paradigm-after .paradigm-text {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
  }

  .paradigm-arrow {
    font-size: 1.5rem;
    padding: 0 0.625rem;
  }
}

@media (min-width: 1200px) {
  .paradigm-shift {
    margin: 2.5rem -1.5rem;
  }

  .paradigm-before,
  .paradigm-after {
    padding: 2rem 2.25rem;
  }

  .paradigm-before .paradigm-text,
  .paradigm-after .paradigm-text {
    font-size: 1.25rem;
  }
}

/* Section background alternation for visual rhythm (gateway page only) */
@media (min-width: 768px) {
  .gateway-summary {
    background: var(--bg-subtle);
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 8px;
  }
}

@media (min-width: 1200px) {
  .gateway-summary {
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* --- P5b: Loop Diagram (Flow Steps) --- */

@media (min-width: 768px) {
  .flow-diagram {
    margin: 2rem 0;
  }

  .flow-diagram--grid {
    gap: 0 1.5rem;
  }

  .flow-step {
    padding: 0.875rem;
    border-radius: 8px;
    transition: background 0.15s;
  }

  .flow-step:hover {
    background: var(--bg-subtle);
  }

  .flow-num {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
    background: var(--teal);
  }

  .flow-title {
    font-size: 0.9375rem;
  }

  .flow-desc {
    font-size: 0.9375rem;
  }

  .flow-loop-back {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .flow-diagram {
    margin: 2.5rem 0;
  }

  .flow-diagram--grid {
    gap: 0 2rem;
  }

  .flow-step {
    padding: 1rem 1.25rem;
  }

  .flow-num {
    min-width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8125rem;
  }

  .flow-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .flow-desc {
    font-size: 1rem;
    line-height: 1.55;
  }
}

/* --- P5c: Daily Structure / Rhythm Bar --- */

@media (min-width: 768px) {
  .rhythm-bar {
    height: 2.5rem;
    margin: 1.5rem 0;
  }

  .rhythm-block {
    font-size: 0.5625rem;
  }

  .prd-stack {
    gap: 0.375rem;
    margin: 1.5rem 0;
  }

  .prd-layer {
    padding: 0.625rem 0.5rem;
    font-size: 0.625rem;
    border-radius: 6px;
  }
}

@media (min-width: 1200px) {
  .rhythm-bar {
    height: 3rem;
    margin: 2rem 0;
    border-radius: 8px;
  }

  .rhythm-block {
    font-size: 0.625rem;
  }

  .prd-stack {
    gap: 0.5rem;
    margin: 2rem 0;
  }

  .prd-layer {
    padding: 0.75rem 0.625rem;
    font-size: 0.6875rem;
  }
}

/* --- P5d: Day Navigation Bar --- */

@media (min-width: 768px) {
  .day-nav {
    padding: 0.625rem 0;
  }

  .day-nav-inner {
    gap: 0.625rem;
  }

  .day-nav-group {
    gap: 0.375rem;
  }

  .day-nav-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-right: 0.25rem;
  }

  .day-btn {
    font-size: 0.75rem;
    padding: 0.4375rem 0.75rem;
    min-height: 2.25rem;
    border-radius: 5px;
    transition: background 0.15s, color 0.15s, transform 0.15s;
  }

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

  .day-btn.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .day-nav-sep {
    height: 1rem;
    margin: 0 0.25rem;
  }

  .day-nav-home {
    font-size: 0.75rem;
  }

  .day-nav-site {
    font-size: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .day-nav {
    padding: 0.75rem 0;
  }

  .day-nav-inner {
    gap: 0.75rem;
  }

  .day-nav-group {
    gap: 0.5rem;
  }

  .day-nav-label {
    font-size: 0.75rem;
  }

  .day-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
    min-height: 2.5rem;
  }

  .day-nav-home {
    font-size: 0.8125rem;
  }
}

/* --- P5e: Spacing & Whitespace --- */

@media (min-width: 768px) {
  section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .callout {
    margin: 2rem 0;
  }

  .pull-quote {
    margin: 2rem 0;
  }

  .stat-row {
    margin: 2rem 0;
  }

  .workflow-week {
    margin-bottom: 1.5rem;
  }

  .card-grid {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .detail-grid {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .tool-map {
    margin: 2rem 0;
  }

  footer {
    padding: 2.5rem 0;
    margin-top: 1rem;
  }
}

@media (min-width: 1200px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .callout {
    margin: 2.5rem 0;
  }

  .pull-quote {
    margin: 2.5rem 0;
  }

  .stat-row {
    margin: 2.5rem 0;
    gap: 1rem;
  }

  .workflow-week {
    margin-bottom: 2rem;
  }

  .card-grid {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .detail-grid {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .tool-map {
    margin: 2.5rem 0;
  }

  footer {
    padding: 3rem 0;
  }

  .page-content h2 {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .page-content h3 {
    margin-top: 2rem;
  }
}

/* --- P5f: Key Insight Callout — Desktop prominence --- */

@media (min-width: 768px) {
  .callout {
    padding: 1.5rem 1.75rem;
    border-left-width: 4px;
    border-radius: 10px;
    background: var(--teal-subtle);
  }

  .callout-label {
    font-size: 0.6875rem;
    margin-bottom: 0.375rem;
  }

  .callout p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .callout strong {
    font-size: 1.0625rem;
  }
}

@media (min-width: 1200px) {
  .callout {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 1.75rem 2rem;
  }

  .callout p {
    font-size: 1.0625rem;
  }

  .callout strong {
    font-size: 1.125rem;
  }

  /* Pull quote — break out of text column for visual interest */
  .pull-quote {
    margin-left: -1rem;
    padding-left: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.5;
  }
}

/* --- P6: Navigation Polish --- */

@media (min-width: 768px) {
  /* Sticky header nav */
  header {
    position: sticky;
    top: 0;
    z-index: 101;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Translucent background for glass effect */
  @supports (backdrop-filter: blur(8px)) {
    header {
      background: color-mix(in srgb, var(--bg) 85%, transparent);
    }
  }

  /* Day nav sits below sticky header */
  .day-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  nav {
    gap: 0.25rem;
  }

  nav a {
    border-radius: 6px;
    position: relative;
  }

  /* Active nav indicator — bottom accent line */
  nav a.active {
    background: var(--bg-subtle);
    color: var(--black);
    font-weight: 600;
  }

  nav a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 2px;
    background: var(--teal);
    border-radius: 1px;
  }

  nav a:hover {
    background: var(--bg-subtle);
    color: var(--black);
  }

  /* Logo sizing */
  .logo {
    font-size: 1.625rem;
  }

  .logo-text {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1200px) {
  nav {
    gap: 0.375rem;
  }

  nav a {
    padding: 0.625rem 1rem;
  }

  .logo {
    font-size: 1.75rem;
  }

  .logo-text {
    font-size: 1rem;
  }
}

/* --- Stat blocks — desktop scaling --- */

@media (min-width: 768px) {
  .stat-block {
    padding: 1.25rem 1rem;
    border-radius: 10px;
  }

  .stat-value {
    font-size: 2rem;
    margin-bottom: 0.375rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }
}

@media (min-width: 1200px) {
  .stat-block {
    padding: 1.5rem 1.25rem;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* --- Tool map — desktop scaling --- */

@media (min-width: 768px) {
  .tool-map--horizontal .tool-node {
    padding: 1rem 0.75rem;
    border-radius: 10px;
    transition: transform 0.15s;
  }

  .tool-map--horizontal .tool-node:hover {
    transform: translateY(-2px);
  }

  .tool-icon {
    font-size: 1.375rem;
  }

  .tool-role {
    font-size: 0.6875rem;
  }

  .tool-name-label {
    font-size: 0.9375rem;
  }

  .tool-connector {
    font-size: 0.8125rem;
  }
}

@media (min-width: 1200px) {
  .tool-map--horizontal .tool-node {
    padding: 1.25rem 1rem;
  }

  .tool-icon {
    font-size: 1.5rem;
  }

  .tool-name-label {
    font-size: 1rem;
  }
}

/* --- Phase grid — desktop scaling --- */

@media (min-width: 768px) {
  .phases {
    gap: 0.5rem;
  }

  .phase {
    padding: 0.625rem;
    border-radius: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 5rem;
  }

  .phase:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .phase-num {
    font-size: 0.75rem;
  }

  .phase-name {
    font-size: 0.9375rem;
  }

  .week-label {
    font-size: 0.75rem;
    margin-bottom: 0.625rem;
  }
}

@media (min-width: 1200px) {
  .phases {
    gap: 0.625rem;
  }

  .phase {
    padding: 0.75rem;
    min-height: 5.5rem;
  }

  .phase-name {
    font-size: 1rem;
  }

  .week-label {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
  }
}

/* --- Detail grid — desktop two-column --- */

@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-item label {
    font-size: 0.75rem;
    width: 90px;
  }

  .detail-item span {
    font-size: 1rem;
  }
}

/* --- Workflow sections — wider content area indicator --- */

@media (min-width: 768px) {
  .gateway-summary {
    padding-top: 2rem;
  }
}

@media (min-width: 1200px) {
  .gateway-summary {
    padding-top: 2.5rem;
  }
}

/* --- Exercise cards — desktop scaling --- */

@media (min-width: 768px) {
  .exercise-card {
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  }

  .exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .exercise-card h3 {
    font-size: 1.125rem;
  }

  .exercise-card .exercise-subtitle {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1200px) {
  .exercise-card {
    padding: 1.75rem 2rem;
  }

  .exercise-card h3 {
    font-size: 1.25rem;
  }

  .exercise-card .exercise-subtitle {
    font-size: 1rem;
  }
}

/* --- Quick links — desktop scaling --- */

@media (min-width: 768px) {
  .quick-links {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
  }

  .quick-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.15s, transform 0.15s;
  }

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

  .quick-link span {
    font-size: 0.9375rem;
  }
}

/* --- Checklist — desktop scaling --- */

@media (min-width: 768px) {
  .checklist li {
    font-size: 1rem;
    padding: 0.625rem 0;
    padding-left: 2.25rem;
  }
}

/* --- Dashboard hero — desktop scaling --- */

@media (min-width: 768px) {
  .dash-hero {
    padding: 2.5rem 2rem;
    border-radius: 12px;
  }
}

/* --- Day pager — desktop scaling --- */

@media (min-width: 768px) {
  .day-pager {
    padding: 2rem 0;
    margin-top: 2rem;
  }

  .day-pager-title {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1200px) {
  .day-pager {
    padding: 2.5rem 0;
    margin-top: 2.5rem;
  }

  .day-pager-title {
    font-size: 1rem;
  }

  .day-pager-label {
    font-size: 0.6875rem;
  }
}

/* --- Download button — desktop scaling --- */

@media (min-width: 768px) {
  .download-btn {
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
  }

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

/* --- Prompt block — desktop scaling --- */

@media (min-width: 768px) {
  .prompt-block {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 0 8px 8px 0;
  }
}

@media (min-width: 1200px) {
  .prompt-block {
    padding: 1.25rem 1.5rem;
    font-size: 1.0625rem;
    margin-left: -0.75rem;
  }
}

/* --- Guest highlight — desktop scaling --- */

@media (min-width: 768px) {
  .guest-highlight {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
  }

  .guest-highlight p {
    font-size: 0.9375rem;
  }
}

/* --- Learning targets — desktop grid --- */

@media (min-width: 768px) {
  .learning-targets .card li {
    font-size: 0.9375rem;
  }
}

/* --- Breadcrumb — desktop scaling --- */

@media (min-width: 768px) {
  .breadcrumb {
    font-size: 0.8125rem;
    padding-top: 1.25rem;
  }
}

/* ========================================
   Small-screen fixes (≤ 479px)
   ======================================== */

@media (max-width: 479px) {
  /* Reduce container padding so content isn't cramped on 320px devices */
  .container {
    padding: 0 1rem;
  }

  header {
    padding: 1rem;
  }

  /* Stack stat blocks vertically instead of crushing them side-by-side */
  .stat-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Larger touch targets for quick links (WCAG ≥ 44px) */
  .quick-link {
    padding: 0.75rem 1rem;
    min-height: 2.75rem;
  }

  /* Let detail labels flow instead of fixed 80px width */
  .detail-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .detail-item label {
    width: auto;
  }

  /* Reduce gateway CTA min-height */
  .gateway-cta {
    min-height: 3.5rem;
    padding: 1rem;
  }

  /* Rhythm bar: hide labels on very narrow screens, keep color blocks */
  .rhythm-block {
    font-size: 0;
    padding: 0;
  }

  /* Ensure schedule table cards have clear separation */
  .schedule-table tr {
    padding: 0.75rem 0;
    margin-bottom: 0.25rem;
  }

  /* Allow table headers to wrap on small screens */
  .page-content th {
    white-space: normal;
  }

  /* Hero dot grid: larger spacing so it's less busy on small screens */
  .hero {
    background-size: 32px 32px;
  }
}

/* ========================================
   Day Lifecycle System
   ======================================== */

/* Badge variants */
.badge--planned {
  border: 1px dashed var(--border);
  background: none;
  color: var(--subtle);
}

.badge--active {
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
  border: 1px solid var(--teal);
}

.badge--closed {
  background: var(--bg-subtle);
  color: var(--secondary);
  border: 1px solid var(--border);
}

/* Lifecycle notice (planned state) */
.lifecycle-notice {
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.lifecycle-notice p {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--subtle);
  margin-bottom: 0;
  text-align: center;
}

/* Planned state — muted preview */
[data-lifecycle="planned"] .hero {
  opacity: 0.85;
}

[data-lifecycle="planned"] .page-content > .collapsible,
[data-lifecycle="planned"] .page-content > section {
  opacity: 0.7;
}

/* Schedule preview (planned) — no detail column */
.schedule-table--preview th:nth-child(2),
.schedule-table--preview td:nth-child(2) {
  padding-left: 1.25rem;
}

/* Active state — teal accent */
[data-lifecycle="active"] .hero {
  border-left: 4px solid var(--teal);
  padding-left: 1rem;
}

/* Closed state — recap block */
.recap-block {
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
  margin: 1rem 0 1.5rem;
}

.recap-summary {
  padding: 0 0 0.75rem;
}

.recap-summary p {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Recap section headers — not collapsible, just labels */
.recap-section {
  padding: 0.75rem 0;
}

.recap-section-header {
  margin-bottom: 0.5rem;
}

.recap-section-header h2 {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Reference sub-header variant */
.recap-section-header--ref {
  padding-top: 1rem;
  margin-bottom: 0.75rem;
}

.recap-narrative p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
}

.recap-moments {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recap-moments li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--body);
}

.recap-moments li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* Student highlight quotes */
.recap-quote {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  font-style: normal;
  border: none;
}

.recap-quote p {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.recap-quote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  font-style: normal;
  color: var(--subtle);
}

/* Reference sections (closed state) — subdued */
.lifecycle-reference {
  opacity: 0.65;
}

.reference-label {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--subtle);
  text-transform: none;
  letter-spacing: normal;
}

/* Look-ahead callout */
.recap-look-ahead {
  margin-top: 1.5rem;
}

/* Dashboard Course Map — lifecycle variants */
.phase--active {
  background: var(--teal-subtle);
  border: 1px solid var(--teal);
}

.phase--active .phase-num {
  color: var(--teal);
}

.phase--closed {
  background: var(--bg-subtle);
}

.phase--planned {
  background: none;
  border: 1px dashed var(--border);
}

.phase--planned .phase-name {
  color: var(--subtle);
}

/* Day-nav lifecycle indicators */
.day-btn.day-btn--closed {
  color: var(--subtle);
  background: var(--bg-subtle);
}

.day-btn.day-btn--active {
  background: var(--teal);
  color: var(--bg);
}

.day-btn.day-btn--planned {
  color: var(--subtle);
  border: 1px dashed var(--border);
  background: none;
}

/* ============================================================
   SPRINT ARCHIVE STYLES
   ============================================================ */

/* Sprint hero */
.sprint-hero {
  border-bottom: 2px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

/* Archive badge */
.archive-badge {
  background: var(--bg-subtle);
  color: var(--subtle);
  border: 1px dashed var(--border);
}

/* Sprint narrative summary */
.sprint-narrative-summary {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 1.5rem;
}

/* Sprint quote */
.sprint-quote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-subtle);
}
.sprint-quote p {
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.sprint-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--subtle);
}

/* Sprint stats bar */
.sprint-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sprint-stat {
  text-align: center;
  min-width: 5rem;
}
.sprint-stat-value {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}
.sprint-stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin-top: 0.15rem;
}

/* Showcase grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.showcase-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
}
.showcase-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin-bottom: 0.5rem;
}
.showcase-card img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.showcase-card h3 {
  font-family: var(--mono);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.showcase-card p {
  font-size: 0.9rem;
  color: var(--secondary);
  margin: 0;
}
.showcase-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.showcase-link:hover {
  text-decoration: underline;
}
.showcase-card--text-only {
  display: flex;
  flex-direction: column;
}
.showcase-pipeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.showcase-pipeline-step {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--secondary);
  padding: 0.3rem 0.5rem;
}
.showcase-pipeline-num {
  display: inline-block;
  width: 1.2em;
  color: var(--teal);
  font-weight: 600;
}

/* Sprint timeline (compact day list on landing page) */
.sprint-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}
.sprint-timeline-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--body);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.sprint-timeline-item:hover {
  background: var(--bg-subtle);
}
.sprint-timeline-day {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  min-width: 3.5rem;
}
.sprint-timeline-theme {
  font-weight: 500;
  white-space: nowrap;
}
.sprint-timeline-summary {
  font-size: 0.85rem;
  color: var(--subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sprint card grid (for /sprints/ index) */
.sprint-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.sprint-card {
  display: block;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sprint-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.sprint-card-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--subtle);
  margin-bottom: 0.5rem;
}
.sprint-card h2 {
  font-family: var(--mono);
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: var(--black);
}
.sprint-card-dates {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal);
  margin: 0 0 0.25rem;
}
.sprint-card-meta {
  font-size: 0.8rem;
  color: var(--subtle);
  margin: 0 0 0.75rem;
}
.sprint-card-summary {
  font-size: 0.9rem;
  color: var(--secondary);
  margin: 0;
  line-height: 1.5;
}

/* Breadcrumb navigation */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--subtle);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--subtle);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--teal);
}
.breadcrumb-sep {
  margin: 0 0.35rem;
  color: var(--border);
}

/* Sprint explore links at bottom of landing page */
.sprint-explore {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .sprint-stats {
    gap: 0.5rem;
  }
  .sprint-stat {
    min-width: 4rem;
  }
  .sprint-timeline-summary {
    display: none;
  }
}

/* Print */
@media print {
  body { font-size: 11pt; }
  body::after { display: none; }
  .reading-progress { display: none; }
  .container { max-width: 100%; padding: 0; }
  header, section, footer { padding-left: 0; padding-right: 0; }
  section { border-image: none; }
  nav, .day-nav { display: none; }
  .phase { background: none; border: 1px solid #e0e0e0; }
  .card { border: 1px solid #e0e0e0; background: none; }
  .card::before { display: none; }
  .exercise-card { background: none; border: 2px solid #1a1a1a; }
  .exercise-card::before { display: none; }
  .exercise-card h3, .exercise-card .exercise-subtitle { color: #1a1a1a; }
  .download-btn { background: none; color: #1a1a1a; border: 1px solid #1a1a1a; }
  .dash-hero { background: none; border: 1px solid #1a1a1a; }
  .dash-hero-day-num, .dash-hero-day-label, .dash-hero-theme, .dash-hero-theme a { color: #1a1a1a; }
  .gateway-cta--primary { background: none; border: 2px solid #1a1a1a; }
  .gateway-cta--primary .gateway-cta-title, .gateway-cta--primary .gateway-cta-desc { color: #1a1a1a; }
  .gateway-cta--secondary::before { display: none; }
  .hero { background-image: none; }
  .paradigm-after { background: none; border: 2px solid #1a1a1a; }
  .paradigm-after .paradigm-text { color: #1a1a1a; }
  .flow-num { background: #1a1a1a; color: #ffffff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tool-node--you { background: none; border: 2px solid #1a1a1a; }
  .tool-node--you .tool-name-label { color: #1a1a1a; }
  .prd-layer--active { background: none; border: 1px solid #1a1a1a; color: #1a1a1a; }
  .rhythm-bar { display: none; }
  .stat-block { border: 1px solid #e0e0e0; }
  .collapsible > summary:hover { background: none; }
  .collapsible[open] > .section-header .chevron { transform: none; }
}
