/*
============================================================
THE CREW BLUEPRINT — MASTER GLOBAL STYLESHEET
Version: 1.0
Purpose:
- Public marketing/training pages
- Course and resource pages
- Contact and legal pages

Design direction (recovered from the live WordPress export,
2026-08-13 — exact hex values, not guessed):
- Near-black industrial foundation
- Gold/amber identity, reserved for actions and emphasis
- High-contrast, muted-body typography
- Own schema, deliberately separate from Deadhang Labor's
  (see governance/BRAND_STYLE_GUIDE.md in the 50yearroadmap repo)
============================================================
*/

/* ---------------------------------------------------------
   1. FONTS
   --------------------------------------------------------- */

/* Loaded from HTML <head> to avoid @import-driven flash/reflow.
   Chosen, not recovered: the WordPress export used font-family:
   inherit everywhere, so no real typeface was captured. Space
   Grotesk (display) + Inter (body) match the tight, modern
   negative-tracking headline style already in the real CSS
   (letter-spacing: -.05em) — easy to swap if you want something
   else. */

/* ---------------------------------------------------------
   2. DESIGN TOKENS (real values, recovered from the export)
   --------------------------------------------------------- */

:root {
  /* Core backgrounds */
  --cb-bg: #05060a;
  --cb-bg-deep: #050708;
  --cb-panel: #0d1117;
  --cb-card: #141a21;
  --cb-card-2: #181f27;
  --cb-elevated: #1f262e;

  /* Gold identity */
  --cb-gold: #f5b400;
  --cb-gold-strong: #ffd45a;
  --cb-amber: #ffcf3a;

  /* Neutral text */
  --cb-text: #f4f6f8;
  --cb-muted: #b8c1cc;
  --cb-muted-2: #a7b0ba;

  /* Borders */
  --cb-border: rgba(255, 255, 255, 0.12);
  --cb-border-strong: rgba(255, 255, 255, 0.18);
  --cb-gold-border: rgba(245, 180, 0, 0.38);

  /* Semantic states */
  --cb-success: #38d477;
  --cb-warning-bg: rgba(245, 180, 0, 0.10);
  --cb-warning-border: rgba(245, 180, 0, 0.48);

  /* Shadows */
  --cb-shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.28);
  --cb-shadow-md: 0 20px 46px rgba(0, 0, 0, 0.24);
  --cb-shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.48);

  /* Layout */
  --cb-nav-height: 76px;
  --cb-radius-sm: 8px;
  --cb-radius-md: 14px;
  --cb-radius-lg: 20px;
  --cb-radius-pill: 999px;
  --cb-max-width: 1280px;
  --cb-transition: 180ms ease;
}

/* ---------------------------------------------------------
   3. RESET
   --------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(245, 180, 0, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--cb-bg) 0%, #0a0f14 55%, var(--cb-bg) 100%);
  color: var(--cb-text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  color: var(--cb-text);
  margin: 0;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: min(var(--cb-max-width), 100%);
  margin: 0 auto;
  padding-inline: 20px;
}

/* ---------------------------------------------------------
   4. NAVIGATION
   --------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--cb-nav-height);
  border-bottom: 1px solid var(--cb-border);
  background: rgba(5, 6, 10, 0.92);
  backdrop-filter: blur(6px);
}

.nav-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--cb-max-width), 100%);
  margin: 0 auto;
  padding-inline: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  height: 100%;
  color: var(--cb-text);
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav-logo-text {
  display: block;
  width: 180px;
  height: 52px;
  overflow: hidden;
  background: url("../images/crew-blueprint-logo-master.jpeg") center -126px / 180px auto no-repeat;
  color: transparent;
  font-size: 0;
  white-space: nowrap;
}

.nav-logo-text span { color: transparent; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 2vw, 0.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding-inline: 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--cb-radius-sm);
  color: var(--cb-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--cb-transition), color var(--cb-transition), border-color var(--cb-transition);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--cb-text);
  background: rgba(245, 180, 0, 0.08);
  border-color: var(--cb-gold-border);
}

.nav-links a.nav-cta {
  color: var(--cb-bg-deep);
  background: var(--cb-gold);
  font-weight: 800;
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible {
  background: var(--cb-gold-strong);
  color: var(--cb-bg-deep);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-sm);
  color: var(--cb-text);
  background: var(--cb-card);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: var(--cb-radius-pill);
  background: currentColor;
  transition: transform var(--cb-transition), opacity var(--cb-transition);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--cb-bg-deep);
    border-bottom: 1px solid var(--cb-border);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a { width: 100%; }
}

@media (max-width: 390px) {
  .nav-logo-text {
    width: 150px;
    height: 44px;
    background-size: 150px auto;
    background-position: center -105px;
  }
}

/* ---------------------------------------------------------
   5. SHARED PAGE / SECTION PATTERNS
   --------------------------------------------------------- */

.cb-page {
  padding: clamp(36px, 6vw, 76px) 18px;
}

.cb-wrap {
  width: min(var(--cb-max-width), 100%);
  margin: 0 auto;
}

.cb-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--cb-muted-2);
}

.cb-breadcrumb a { color: var(--cb-muted); text-decoration: none; }
.cb-breadcrumb a:hover { color: var(--cb-gold-strong); }
.cb-breadcrumb .cb-breadcrumb-sep { color: var(--cb-border); }
.cb-breadcrumb .cb-breadcrumb-current { color: var(--cb-gold-strong); font-weight: 700; }

.cb-center { text-align: center; margin-inline: auto; }

.cb-label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--cb-bg-deep);
  background: var(--cb-gold);
  border-radius: var(--cb-radius-pill);
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cb-hero {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: clamp(42px, 7vw, 78px);
}

.cb-hero h1 {
  margin: 20px auto 16px;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.cb-hero p,
.cb-section-intro {
  max-width: 760px;
  margin: 0 auto 26px;
  color: var(--cb-muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.65;
}

.cb-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: var(--cb-radius-md);
  text-decoration: none !important;
  font-weight: 900;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform var(--cb-transition), background var(--cb-transition);
}

.cb-btn-primary { background: var(--cb-gold); color: var(--cb-bg-deep) !important; }
.cb-btn-primary:hover { background: var(--cb-gold-strong); }

.cb-btn-secondary {
  background: rgba(0, 0, 0, 0.4);
  color: var(--cb-text) !important;
  border: 1px solid var(--cb-border-strong);
}
.cb-btn-secondary:hover { background: rgba(0, 0, 0, 0.55); }

.cb-section {
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.cb-section h2 {
  max-width: 780px;
  margin: 0 auto 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.cb-card, .cb-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  box-shadow: var(--cb-shadow-md);
}

.cb-card { padding: 24px; text-align: center; }
.cb-card h3 { margin: 0 0 10px; color: var(--cb-gold-strong); font-size: 21px; line-height: 1.2; }
.cb-card p { margin: 0; color: var(--cb-muted); line-height: 1.6; }

.cb-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.cb-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.cb-grid-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }

.cb-course-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 42px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(245, 180, 0, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.cb-course-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }

.cb-pill {
  border: 1px solid var(--cb-gold-border);
  color: var(--cb-gold-strong);
  background: rgba(245, 180, 0, 0.09);
  border-radius: var(--cb-radius-pill);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cb-list {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.cb-list li { color: var(--cb-muted); padding-left: 28px; position: relative; line-height: 1.55; }
.cb-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--cb-success); font-weight: 900; }

.cb-warning {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--cb-warning-border);
  background: var(--cb-warning-bg);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.cb-warning strong { display: block; color: var(--cb-gold-strong); margin-bottom: 8px; font-size: 17px; }
.cb-warning p { margin: 0; color: var(--cb-muted); line-height: 1.65; }

/* ---------------------------------------------------------
   6. LEGAL / LONG-FORM CONTENT PAGES
   --------------------------------------------------------- */

.cb-legal {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 20px;
}

.cb-legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.cb-legal .cb-updated { color: var(--cb-muted-2); font-size: 14px; margin-bottom: 32px; }
.cb-legal h2 { font-size: 22px; margin: 36px 0 12px; color: var(--cb-gold-strong); }
.cb-legal p, .cb-legal li { color: var(--cb-muted); line-height: 1.75; }
.cb-legal ul { padding-left: 22px; }
.cb-legal a { color: var(--cb-gold-strong); text-decoration: underline; }
.cb-legal h3 { font-size: 17px; margin: 24px 0 10px; color: var(--cb-text); }

.cb-legal-callout {
  padding: 18px 20px;
  margin: 20px 0;
  background: var(--cb-warning-bg);
  border: 1px solid var(--cb-warning-border);
  border-left: 4px solid var(--cb-gold);
  border-radius: var(--cb-radius-md);
}
.cb-legal-callout strong { color: var(--cb-gold-strong); }

.cb-legal-summary {
  padding: 18px 20px;
  margin: 0 0 32px;
  background: var(--cb-panel);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-md);
}
.cb-legal-summary strong { color: var(--cb-gold-strong); }

.cb-legal-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--cb-border); border-radius: var(--cb-radius-md); }
.cb-legal-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.cb-legal-table th, .cb-legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cb-border); }
.cb-legal-table th { color: var(--cb-gold); background: var(--cb-elevated); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.cb-legal-table td { color: var(--cb-muted); }
.cb-legal-table tr:last-child td { border-bottom: none; }

.cb-legal-contact-box {
  padding: 20px;
  margin: 16px 0;
  background: var(--cb-panel);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-md);
}
.cb-legal-contact-box div { margin-bottom: 6px; color: var(--cb-muted); }
.cb-legal-contact-box strong { color: var(--cb-text); }

.cb-legal-small { font-size: 13px; color: var(--cb-muted-2); }

/* ---------------------------------------------------------
   7. FOOTER
   --------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--cb-border);
  background: var(--cb-bg-deep);
  padding-block: 56px 32px;
  text-align: center;
}

.footer-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto 36px;
}

.footer-main {
  flex: 1 1 480px;
  max-width: 560px;
}

.footer-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.footer-mark {
  display: inline-block;
  width: 48px;
  height: 72px;
  flex: 0 0 48px;
  overflow: hidden;
  background: url("../images/crew-blueprint-mark.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.footer-wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.footer-wordmark span { color: var(--cb-gold); }

.footer-tagline {
  color: var(--cb-muted-2);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
  text-align: center;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cb-gold-strong);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
}
.footer-col a { color: var(--cb-muted); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--cb-text); }

@media (max-width: 640px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 100%; }
  .footer-col h4 { font-size: 11px; }
  .footer-col a { font-size: 12px; overflow-wrap: break-word; word-break: break-word; }
}

.footer-disclaimer {
  flex: 0 0 300px;
  max-width: 300px;
  padding: 20px 22px;
  border: 1px solid var(--cb-warning-border);
  background: var(--cb-warning-bg);
  border-radius: var(--cb-radius-md);
  text-align: left;
}

.footer-disclaimer strong {
  display: block;
  color: var(--cb-gold-strong);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.footer-disclaimer p { margin: 0; color: var(--cb-muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 760px) {
  .footer-layout { flex-direction: column; align-items: center; gap: 28px; }
  .footer-main { order: 1; flex-basis: auto; max-width: 100%; width: 100%; }
  .footer-disclaimer { order: 2; flex-basis: auto; max-width: 480px; width: 100%; text-align: center; }
}

.footer-bottom {
  border-top: 1px solid var(--cb-border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 20px;
  color: var(--cb-muted-2);
  font-size: 13px;
}

.footer-legal a { color: var(--cb-muted-2); text-decoration: underline; }
.footer-legal a:hover { color: var(--cb-text); }

@media (max-width: 760px) {
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ---------------------------------------------------------
   8. COOKIE NOTICE (matches Deadhang's behavior/pattern)
   --------------------------------------------------------- */

.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--cb-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-md);
  box-shadow: var(--cb-shadow-lg);
}

.cookie-notice p { margin: 0; flex: 1 1 240px; font-size: 13px; color: var(--cb-muted); line-height: 1.5; }
.cookie-notice a { color: var(--cb-gold-strong); }

.cookie-notice-dismiss {
  flex-shrink: 0;
  border: none;
  border-radius: var(--cb-radius-sm);
  padding: 8px 16px;
  background: var(--cb-gold);
  color: var(--cb-bg-deep);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

/* ---------------------------------------------------------
   9. DIAGRAMS & ICON ROWS
   Hand-built inline SVG diagrams and icon sets, styled to match
   the panel/card language above instead of loose floating images.
   --------------------------------------------------------- */

.cb-diagram {
  margin: 28px auto;
  max-width: 760px;
  padding: clamp(20px, 3.5vw, 34px);
  background: var(--cb-panel);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  text-align: center;
}

.cb-diagram-label {
  display: block;
  margin: 0 0 16px;
  color: var(--cb-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cb-diagram svg {
  width: 100%;
  height: auto;
  max-width: 680px;
  display: block;
  margin: 0 auto;
}

.cb-diagram-caption {
  margin: 16px 0 0;
  color: var(--cb-muted);
  font-size: 13px;
  line-height: 1.55;
}

.cb-icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 18px;
  margin: 26px 0;
}

.cb-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 104px;
}

.cb-icon-item svg {
  width: 34px;
  height: 34px;
  color: var(--cb-gold-strong);
  flex-shrink: 0;
}

.cb-icon-item span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cb-muted);
  text-align: center;
  line-height: 1.35;
}

.cb-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.cb-split-col {
  padding: 16px 18px;
  border-radius: var(--cb-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cb-border);
  border-left-width: 3px;
}

.cb-split-can { border-left-color: var(--cb-success); }
.cb-split-cant { border-left-color: var(--cb-gold); }

.cb-split-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cb-split-can h4 { color: var(--cb-success); }
.cb-split-cant h4 { color: var(--cb-gold-strong); }

.cb-split-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cb-split-col li { position: relative; padding-left: 22px; color: var(--cb-muted); font-size: 13.5px; line-height: 1.5; }
.cb-split-can li::before { content: "\2713"; position: absolute; left: 0; color: var(--cb-success); font-weight: 900; }
.cb-split-cant li::before { content: "\2715"; position: absolute; left: 0; color: var(--cb-gold); font-weight: 900; }

@media (max-width: 640px) {
  .cb-split-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   10. DEPARTMENT COURSE DIRECTORY
   Used on the main Courses page to organize department pathways
   by course level, without routing discovery through a lesson.
   --------------------------------------------------------- */

.cb-dept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}

.cb-dept-card { padding: 24px; }

.cb-dept-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
  color: var(--cb-text);
}

.cb-dept-card .cb-dept-tagline {
  margin: 0 0 16px;
  color: var(--cb-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.cb-dept-course-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }

.cb-dept-course-list a,
.cb-dept-course-list li.cb-dept-locked > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--cb-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cb-border);
  text-decoration: none;
  transition: border-color var(--cb-transition), background var(--cb-transition);
}

.cb-dept-course-list a:hover,
.cb-dept-course-list a:focus-visible {
  border-color: var(--cb-gold-border);
  background: rgba(245, 180, 0, 0.06);
}

.cb-dept-course-level {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: var(--cb-radius-pill);
  background: var(--cb-gold);
  color: var(--cb-bg-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cb-dept-course-list li.cb-dept-locked .cb-dept-course-level {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cb-muted-2);
}

.cb-dept-course-list li.cb-dept-locked > div {
  cursor: default;
  opacity: 0.6;
}

.cb-dept-course-title {
  color: var(--cb-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .cb-dept-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   10A. CURRICULUM TIER SYSTEM
   Named learning layers keep Course 1/Course 2 numbering clear
   while distinguishing research-ready, review-gated, and live work.
   --------------------------------------------------------- */

.cb-tier-stack { display: grid; gap: 32px; margin-top: 32px; }

.cb-tier {
  position: relative;
  padding: 28px;
  text-align: left;
}

.cb-tier-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cb-tier-heading h3 { margin: 4px 0 6px; color: var(--cb-text); font-size: 24px; }
.cb-tier-heading p { margin: 0; max-width: 760px; color: var(--cb-muted); font-size: 14px; }

.cb-tier-kicker {
  display: inline-block;
  color: var(--cb-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cb-tier-status {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid var(--cb-gold-border);
  border-radius: var(--cb-radius-pill);
  background: rgba(245,180,0,0.08);
  color: var(--cb-gold-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cb-tier-status.cb-tier-status-review {
  border-color: var(--cb-border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--cb-muted);
}

.cb-field-skill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.cb-field-skill-card {
  display: block;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-md);
  background: rgba(255,255,255,0.025);
  text-decoration: none;
  transition: border-color var(--cb-transition), background var(--cb-transition), transform var(--cb-transition);
}

.cb-field-skill-card:hover,
.cb-field-skill-card:focus-visible {
  border-color: var(--cb-gold-border);
  background: rgba(245,180,0,0.06);
  transform: translateY(-2px);
}

.cb-field-skill-card strong { display: block; margin-bottom: 6px; color: var(--cb-text); font-size: 14px; }
.cb-field-skill-card span { display: block; color: var(--cb-muted-2); font-size: 11px; line-height: 1.45; }

.cb-owner-audit-notice {
  margin: 0 0 32px;
  padding: 18px 20px;
  border: 1px solid var(--cb-gold-border);
  border-left: 4px solid var(--cb-gold);
  border-radius: var(--cb-radius-md);
  background: rgba(245, 180, 0, 0.07);
  color: var(--cb-muted);
}

.cb-owner-audit-notice strong { color: var(--cb-gold-strong); }

#learning-layers a[href^="courses/"]::after,
#advanced-training a[href^="courses/"]::after {
  content: "Owner audit review";
  display: block;
  margin-left: auto;
  color: var(--cb-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.course-lock-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 10%, rgba(245, 180, 0, 0.09), transparent 36%),
    var(--cb-bg);
}

.course-lock-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.course-lock-card {
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--cb-border-strong);
  border-top: 4px solid var(--cb-gold);
  border-radius: var(--cb-radius-lg);
  background: var(--cb-panel);
  box-shadow: var(--cb-shadow-lg);
}

.course-lock-brand {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--cb-text);
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.course-lock-brand span,
.course-lock-status { color: var(--cb-gold); }

.course-lock-status {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-lock-name { margin: 0 0 10px; color: var(--cb-muted-2); font-weight: 700; }
.course-lock-card h1 { margin: 0 0 18px; font-size: clamp(34px, 7vw, 58px); line-height: 0.98; }
.course-lock-card > p { color: var(--cb-muted); }
.course-lock-card > p strong { color: var(--cb-text); }
.course-lock-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 560px) {
  .course-lock-actions { flex-direction: column; }
  .course-lock-actions .cb-btn { width: 100%; }
}

.cb-tier-gate {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--cb-gold);
  background: rgba(245,180,0,0.045);
  color: var(--cb-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .cb-field-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cb-tier { padding: 20px; }
  .cb-tier-heading { flex-direction: column; }
  .cb-field-skill-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   11. BLUEPRINT LINE SYSTEM & VISUAL MOTIFS
   Thin technical lines, nodes, connectors inspired by production
   drawings, signal paths, rigging diagrams, and stage plots.
   --------------------------------------------------------- */

.cb-blueprint-path {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 28px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--cb-muted);
}

.cb-blueprint-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: var(--cb-card);
  border: 1.5px solid var(--cb-border-strong);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cb-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.cb-blueprint-node.cb-node-primary {
  border-color: var(--cb-gold-border);
  background: rgba(245, 180, 0, 0.06);
  color: var(--cb-gold-strong);
}

.cb-blueprint-connector {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--cb-border-strong), transparent);
  position: relative;
  min-width: 20px;
}

.cb-blueprint-connector::after {
  content: "→";
  position: absolute;
  right: -8px;
  top: -8px;
  color: var(--cb-muted-2);
  font-size: 14px;
}

.cb-blueprint-transition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-md);
}

.cb-blueprint-transition .cb-blueprint-node { min-width: 32px; height: 32px; font-size: 11px; padding: 0 10px; }

/* ---------------------------------------------------------
   12. SEMANTIC LESSON COMPONENTS
   Consistent visual treatment for instructional meaning.
   --------------------------------------------------------- */

.cb-field-note,
.cb-why-matters,
.cb-watch-for,
.cb-know-limit,
.cb-check-understanding,
.cb-on-call {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: var(--cb-radius-md);
  border-left: 3px solid;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cb-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cb-field-note {
  border-left-color: var(--cb-gold-border);
  background: rgba(245, 180, 0, 0.06);
}

.cb-field-note::before {
  content: "📋 ";
  font-weight: 700;
  color: var(--cb-gold-strong);
  margin-right: 6px;
}

.cb-why-matters {
  border-left-color: rgba(56, 212, 119, 0.48);
  background: rgba(56, 212, 119, 0.06);
}

.cb-why-matters::before {
  content: "💡 ";
  font-weight: 700;
  color: var(--cb-success);
  margin-right: 6px;
}

.cb-why-matters strong {
  color: var(--cb-text);
}

.cb-watch-for {
  border-left-color: var(--cb-warning-border);
  background: var(--cb-warning-bg);
}

.cb-watch-for::before {
  content: "⚠ ";
  font-weight: 700;
  color: var(--cb-gold-strong);
  margin-right: 6px;
}

.cb-know-limit {
  border-left-color: rgba(255, 255, 255, 0.18);
}

.cb-know-limit::before {
  content: "📍 ";
  font-weight: 700;
  color: var(--cb-muted);
  margin-right: 6px;
}

.cb-check-understanding {
  border-left-color: rgba(56, 212, 119, 0.38);
}

.cb-check-understanding::before {
  content: "✓ ";
  font-weight: 900;
  color: var(--cb-success);
  margin-right: 6px;
}

.cb-on-call {
  border-left-color: var(--cb-gold-border);
  background: rgba(245, 180, 0, 0.04);
}

.cb-on-call::before {
  content: "📞 ";
  font-weight: 700;
  color: var(--cb-gold-strong);
  margin-right: 6px;
}

/* Remove automatic emoji prefix if element uses data-icon="false" */
.cb-field-note[data-icon="false"]::before,
.cb-why-matters[data-icon="false"]::before,
.cb-watch-for[data-icon="false"]::before,
.cb-know-limit[data-icon="false"]::before,
.cb-check-understanding[data-icon="false"]::before,
.cb-on-call[data-icon="false"]::before {
  content: "";
  margin-right: 0;
}

/* ---------------------------------------------------------
   13. PHOTOGRAPHY & CONTEXTUAL IMAGE COMPONENTS
   Environmental images with restrained overlays and captions.
   --------------------------------------------------------- */

.cb-hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 28px 0;
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  box-shadow: var(--cb-shadow-md);
}

.cb-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cb-hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 10, 0.7), transparent);
  z-index: 1;
}

.cb-hero-image-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px;
  color: var(--cb-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cb-contextual-image {
  position: relative;
  width: 100%;
  margin: 32px 0;
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  background: var(--cb-elevated);
}

.cb-contextual-image img {
  width: 100%;
  height: auto;
  display: block;
}

.cb-image-caption {
  margin: 12px 0 0;
  color: var(--cb-muted-2);
  font-size: 13px;
  line-height: 1.55;
  font-style: italic;
}

.cb-image-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--cb-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   14. BLUEPRINT GRID BACKGROUND PATTERN & TRUSS DIVIDER
   SVG-05: Subtle atmospheric grid texture for major sections
   SVG-06: Truss structure visual transition element
   --------------------------------------------------------- */

.cb-blueprint-bg {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgMjQwIiB3aWR0aD0iMjQwIiBoZWlnaHQ9IjI0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgc2xpY2UiPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9ImJsdWVwcmludC1ncmlkLWZpbmUiIHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgIDxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjIwIiB5Mj0iMCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMC44IiBvcGFjaXR5PSIwLjA4Ii8+CiAgICAgIDxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjAiIHkyPSIyMCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMC44IiBvcGFjaXR5PSIwLjA4Ii8+CiAgICA8L3BhdHRlcm4+CiAgICA8cGF0dGVybiBpZD0iYmx1ZXByaW50LWdyaWQtbWFqb3IiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHJlY3Qgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbGw9InVybCgjYmx1ZXByaW50LWdyaWQtZmluZSkiLz4KICAgICAgPGxpbmUgeDE9IjAiIHkxPSIwIiB4Mj0iMTAwIiB5Mj0iMCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS4yIiBvcGFjaXR5PSIwLjEyIi8+CiAgICAgIDxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjAiIHkyPSIxMDAiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjEuMiIgb3BhY2l0eT0iMC4xMiIvPgogICAgPC9wYXR0ZXJuPgogIDwvZGVmcz4KCiAgPCEtLSBNYWpvciBncmlkIGJhY2tncm91bmQgLS0+CiAgPHJlY3Qgd2lkdGg9IjI0MCIgaGVpZ2h0PSIyNDAiIGZpbGw9InVybCgjYmx1ZXByaW50LWdyaWQtbWFqb3IpIi8+CgogIDwhLS0gT2NjYXNpb25hbCBkcmFmdGluZyByZWZlcmVuY2UgbWFya3MgYXQgc2VsZWN0IGludGVyc2VjdGlvbnMgLS0+CiAgPGcgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMSIgb3BhY2l0eT0iMC4xIiBmaWxsPSJub25lIj4KICAgIDwhLS0gQ3Jvc3NoYWlyIGF0ICg1MCwgNTApIC0tPgogICAgPGxpbmUgeDE9IjQ4IiB5MT0iNTAiIHgyPSI1MiIgeTI9IjUwIi8+CiAgICA8bGluZSB4MT0iNTAiIHkxPSI0OCIgeDI9IjUwIiB5Mj0iNTIiLz4KICAgIDxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjMiLz4KCiAgICA8IS0tIENyb3NzaGFpciBhdCAoMTUwLCAxNTApIC0tPgogICAgPGxpbmUgeDE9IjE0OCIgeTE9IjE1MCIgeDI9IjE1MiIgeTI9IjE1MCIvPgogICAgPGxpbmUgeDE9IjE1MCIgeTE9IjE0OCIgeDI9IjE1MCIgeTI9IjE1MiIvPgogICAgPGNpcmNsZSBjeD0iMTUwIiBjeT0iMTUwIiByPSIzIi8+CgogICAgPCEtLSBTbWFsbCByZWZlcmVuY2UgbWFyayBhdCAoMjAwLCA4MCkgLS0+CiAgICA8bGluZSB4MT0iMTk4IiB5MT0iODAiIHgyPSIyMDIiIHkyPSI4MCIvPgogICAgPGxpbmUgeDE9IjIwMCIgeTE9Ijc4IiB4Mj0iMjAwIiB5Mj0iODIiLz4KICAKICAKICAKICAGPC9nPgo8L3N2Zz4=');
  background-size: 240px 240px;
  background-attachment: fixed;
  background-repeat: repeat;
}

.cb-truss-divider {
  max-width: 100%;
  height: auto;
  color: var(--cb-muted-2);
  margin: 48px 0;
  opacity: 0.6;
}

.cb-truss-accent {
  color: var(--cb-gold);
}

/* ---------------------------------------------------------
   15. LEARNING SHELL — 3-COLUMN COURSE LAYOUT
   Desktop: left nav (280px) | center content (1fr) | right context (260px)
   Mobile: stacked with collapsible nav
   --------------------------------------------------------- */

.cb-learning-shell {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 24px;
  padding: 28px 20px 60px;
  max-width: 1600px;
  margin: 0 auto;
}

.cb-learning-nav {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--cb-panel);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  padding: 16px;
}

.cb-learning-nav-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cb-muted-2);
  padding: 8px 8px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--cb-border);
}

.cb-learning-module {
  padding: 12px;
  margin-bottom: 4px;
  border-radius: var(--cb-radius-md);
  cursor: pointer;
  transition: all 200ms ease;
}

.cb-learning-module:hover {
  background: rgba(245, 180, 0, 0.08);
}

.cb-learning-module.active {
  background: rgba(245, 180, 0, 0.12);
  border-left: 3px solid var(--cb-gold);
  padding-left: 9px;
}

.cb-learning-module h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--cb-text);
}

.cb-learning-module .cb-muted {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.cb-learning-lessons {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--cb-border);
}

.cb-learning-lesson {
  display: block;
  padding: 6px 8px;
  margin: 4px 0;
  background: none;
  border: none;
  border-radius: var(--cb-radius-sm);
  color: var(--cb-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  text-align: left;
}

.cb-learning-lesson:hover {
  color: var(--cb-gold-strong);
  background: rgba(255, 255, 255, 0.05);
}

.cb-learning-lesson.active {
  color: var(--cb-gold-strong);
  background: rgba(245, 180, 0, 0.1);
  font-weight: 700;
}

.cb-learning-content {
  min-width: 0;
}

.cb-learning-hero {
  background: linear-gradient(135deg, rgba(245, 180, 0, 0.1), transparent 38%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.cb-learning-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cb-learning-hero p {
  margin: 0;
  color: var(--cb-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}

.cb-learning-content-main {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.cb-learning-content-main h2 {
  margin: 0 0 16px;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.15;
}

.cb-learning-content-main p {
  margin: 0 0 16px;
  color: var(--cb-muted);
  line-height: 1.7;
}

.cb-learning-content-main ul,
.cb-learning-content-main ol {
  margin: 12px 0 16px;
  padding-left: 24px;
  color: var(--cb-muted);
}

.cb-learning-content-main li {
  margin: 8px 0;
  line-height: 1.65;
}

.cb-learning-nav-footer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--cb-border);
}

.cb-learning-nav-btn {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cb-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
}

.cb-learning-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cb-text);
}

.cb-learning-nav-btn.prev::before {
  content: "← ";
}

.cb-learning-nav-btn.next::after {
  content: " →";
}

.cb-learning-sidebar-right {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.cb-progress-rail {
  width: 100%;
  max-width: 100%;
  color: var(--cb-muted-2);
  margin-bottom: 24px;
}

.cb-learning-context {
  background: var(--cb-panel);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.cb-learning-context-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cb-muted-2);
  margin-bottom: 10px;
  display: block;
}

.cb-learning-context-label {
  display: block;
  font-weight: 700;
  color: var(--cb-text);
  margin-bottom: 6px;
}

.cb-learning-context p {
  margin: 0 0 12px;
  color: var(--cb-muted);
}

/* ---------------------------------------------------------
   16. RESPONSIVE LEARNING SHELL
   --------------------------------------------------------- */

@media (max-width: 1200px) {
  .cb-learning-shell {
    grid-template-columns: 240px 1fr 220px;
    gap: 18px;
    padding: 20px 16px 60px;
  }

  .cb-learning-nav {
    top: 100px;
    max-height: calc(100vh - 120px);
  }
}

@media (max-width: 900px) {
  .cb-learning-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 16px 60px;
  }

  .cb-learning-nav {
    position: static;
    max-height: none;
    margin-bottom: 20px;
  }

  .cb-learning-sidebar-right {
    position: static;
    max-height: none;
    order: 3;
  }

  .cb-learning-content {
    order: 2;
  }

  .cb-learning-nav-footer {
    gap: 12px;
  }

  .cb-learning-nav-btn {
    padding: 12px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .cb-learning-shell {
    padding: 16px 12px 40px;
  }

  .cb-learning-nav {
    border-radius: var(--cb-radius-md);
    padding: 12px;
  }

  .cb-learning-hero {
    padding: 16px;
  }

  .cb-learning-content-main {
    padding: 16px;
  }

  .cb-learning-hero h1 {
    font-size: 20px;
  }

  .cb-learning-context {
    padding: 12px;
    font-size: 12px;
  }
}

/* Mobile lesson footer navigation */
.cb-learning-mobile-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cb-bg);
  border-top: 1px solid var(--cb-border);
  padding: 12px 16px;
  gap: 8px;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cb-btn-sm {
  font-size: 13px;
  padding: 8px 12px;
  flex: 1;
  min-width: 90px;
}

/* ---------------------------------------------------------
   17. RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .cb-learning-mobile-footer { display: flex; }
  .cb-page { padding-bottom: 80px; }
  .cb-grid-2, .cb-grid-3, .cb-grid-4 { grid-template-columns: 1fr; }
  .cb-actions { flex-direction: column; }
  .cb-actions .cb-btn { width: 100%; }
  .cb-blueprint-path { flex-wrap: wrap; }
  .cb-blueprint-connector { min-width: 16px; }
}

/* Responsive SVG diagrams */
.cb-dept-branches text {
  font-size: clamp(11px, 1.8vw, 14px);
}

.cb-progress-rail circle {
  opacity: 0.6;
}

@media (max-width: 900px) {
  .cb-dept-branches {
    max-height: 400px;
    overflow-x: auto;
  }

  .cb-dept-branches text {
    font-size: clamp(10px, 1.6vw, 12px);
  }
}

@media (max-width: 640px) {
  .cb-diagram svg text { font-size: 11px; }
  .cb-blueprint-transition { flex-direction: column; gap: 12px; }
  .cb-blueprint-transition .cb-blueprint-node { width: 100%; }
  .cb-hero-image-overlay { background: linear-gradient(180deg, transparent, rgba(5, 6, 10, 0.9)); }

  /* Improve mobile SVG readability */
  .cb-dept-branches {
    max-height: 350px;
  }

  .cb-dept-branches text {
    font-size: 9px;
  }

  .cb-dept-branches line,
  .cb-dept-branches circle,
  .cb-dept-branches rect {
    stroke-width: 1.5px;
  }

  .cb-progress-rail {
    width: 100%;
    max-width: 50px;
    margin: 0 auto 24px;
  }
}
