/* Wakandi Academy — static site styles, per the Wakandi design system. */

:root {
  --teal: #057573;
  --teal-dark: #045e5c;
  --teal-light: #178482;
  --teal-gradient-end: #41b2b0;
  --yellow: #e6c120;
  --yellow-light: #f1d131;
  --terracotta: #c75a43;
  --terracotta-light: #ef7357;
  --navy: #364856;
  --navy-dark: #1f2e3a;
  --brown: #534c48;
  --cream: #fbf6f6;
  --cream-dark: #f0e9e9;
  --gray-light: #eaeaea;
  --charcoal: #1a1a1a;
  --body-text: #3a3a3a;
  --muted: #6b6b6b;
  --display: "Raleway", sans-serif;
  --body: "Roboto", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* The `hidden` attribute is only `display:none` in the UA stylesheet, so ANY
   author rule setting display beats it. .btn sets display:inline-flex, which
   is why the hidden "Sign out" button was still visible. Guard it globally so
   hidden always means hidden, whatever a component sets. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--body-text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.container.narrow, .prose-container { max-width: 820px; }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ------------------------------------------------------------- nav */
nav#topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 117, 115, 0.97);
  backdrop-filter: blur(16px);
  padding: 0.7rem 0;
  transition: box-shadow 0.3s;
}
nav#topnav.nav-scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15); }
.nav-inner { display: flex; align-items: center; gap: 2.2rem; }
/* "ACADEMY" is set to match the WAKANDI wordmark in the logo lockup: the
   wordmark's cap-height is ~52% of the image height, so the text tracks the
   logo height rather than a fixed size. */
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--cream);
  font-family: var(--display); font-size: 1.02rem; font-weight: 800;
  letter-spacing: 0.16em;
}
/* logo-white.png is a wide lockup (906x163) — size it by HEIGHT, never width,
   or it collapses to a sliver. */
.brand img { height: 26px; width: auto; }
.brand b { font-weight: 800; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-link {
  color: rgba(251, 246, 246, 0.85); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 0.92rem;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--cream); }
.nav-link.active { color: var(--yellow); border-bottom-color: var(--yellow); }
/* Country picker. <details> rather than a JS menu so it opens with no script
   and keyboard/screen-reader behaviour comes for free. */
.lang-switch { position: relative; }
.lang-switch > summary {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  list-style: none; padding: 0.3rem 0.55rem; border-radius: 999px;
  border: 1px solid rgba(251, 246, 246, 0.28);
  font-family: var(--display); font-weight: 700; font-size: 0.78rem;
  color: rgba(251, 246, 246, 0.9); white-space: nowrap;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { border-color: var(--cream); }
.lang-code { color: var(--yellow); letter-spacing: 0.08em; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 60;
  min-width: 12rem; padding: 0.35rem;
  background: #fff; border: 1px solid var(--gray-light); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(31, 46, 58, 0.18);
}
.lang-group { padding: 0.3rem 0 0.45rem; }
.lang-group + .lang-group { border-top: 1px solid var(--gray-light); }
.lang-group > b {
  display: block; padding: 0.25rem 0.65rem 0.3rem;
  font-family: var(--display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.lang-menu a {
  display: block; padding: 0.4rem 0.65rem; border-radius: 7px;
  text-decoration: none; font-size: 0.88rem; color: var(--navy);
}
.lang-menu a:hover { background: rgba(5, 117, 115, 0.08); }
.lang-menu a[aria-current="true"] { background: rgba(5, 117, 115, 0.12); }
.lang-menu a[aria-current="true"] b { color: var(--teal); }
/* The country name is the point of this control, but it is the first thing to
   sacrifice when the nav runs out of room on a phone. */
@media (max-width: 700px) { .lang-country { display: none; } }

main { padding-top: 50px; }

/* ------------------------------------------------------------ hero */
.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--cream);
  padding: 6.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.noise-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.035; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px 200px;
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.lead {
  font-size: 1.25rem; font-weight: 300;
  color: rgba(251, 246, 246, 0.88);
  max-width: 620px; margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--yellow); }
/* the eyebrow doubles as the link back to the Academy home, so the breadcrumb
   above it isn't repeating the same word */
a.eyebrow { text-decoration: none; transition: color 0.15s; }
a.eyebrow:hover { color: var(--yellow-light); }
a.eyebrow:hover::before { background: var(--yellow-light); }
.eyebrow-teal { color: var(--teal); }
.eyebrow-teal::before { background: var(--teal); }

.accent { color: var(--teal); }
.accent-yellow { color: var(--yellow); }
.accent-terra { color: var(--terracotta-light); }

/* search */
.hero-search {
  position: relative;
  display: flex; align-items: center; gap: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(251, 246, 246, 0.35);
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  max-width: 560px; margin-bottom: 2rem;
  color: rgba(251, 246, 246, 0.8);
}
.hero-search:focus-within { border-color: var(--cream); background: rgba(255, 255, 255, 0.16); }
.hero-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--cream); font-family: var(--body); font-size: 1.02rem;
}
.hero-search input::placeholder { color: rgba(251, 246, 246, 0.6); }
#search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  max-height: 420px; overflow-y: auto; z-index: 50;
}
#search-results a {
  display: block; padding: 0.85rem 1.2rem; text-decoration: none;
  border-bottom: 1px solid var(--gray-light);
}
#search-results a:last-child { border-bottom: none; }
#search-results .sr-title { color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
#search-results .sr-meta { color: var(--muted); font-size: 0.8rem; }
#search-results a:hover { background: var(--cream); }
#search-results .sr-empty { padding: 1rem 1.2rem; color: var(--muted); font-size: 0.9rem; }

/* buttons */
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  padding: 1rem 2rem; border: none;
  font-family: var(--display); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem; justify-content: center;
  transition: all 0.2s; border-radius: 6px; letter-spacing: 0.02em;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 70%);
  opacity: 0; transform: scale(0);
  transition: opacity 0.5s, transform 0.5s; pointer-events: none;
}
.btn:active::after { opacity: 1; transform: scale(2.5); transition: transform 0.3s, opacity 0s; }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--cream); color: var(--teal); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
.btn-ghost { background: transparent; color: var(--cream); border: 2px solid rgba(251, 246, 246, 0.4); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(251, 246, 246, 0.06); }
.btn-teal { background: var(--teal); color: var(--cream); margin-top: auto; }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5, 117, 115, 0.3); }

.proof-strip {
  border-top: 1px solid rgba(251, 246, 246, 0.2);
  border-bottom: 1px solid rgba(251, 246, 246, 0.2);
  padding: 1.2rem 0; margin-top: 2.6rem;
  display: flex; align-items: center; gap: 1rem;
  max-width: 620px; font-size: 0.95rem;
  color: rgba(251, 246, 246, 0.85);
}
.proof-strip .dot {
  width: 10px; height: 10px; background: var(--yellow);
  border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 193, 32, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(230, 193, 32, 0); }
}

.section-divider { display: block; width: 100%; height: 60px; }
.divider-teal { background: var(--cream); }

/* -------------------------------------------------------- sections */
.section-light { padding: 5rem 0; background: var(--cream); }
.section-cream-dark { padding: 5rem 0 6rem; background: var(--cream-dark); }
.section-header { max-width: 720px; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; margin-bottom: 0.9rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; }
h2.on-dark, .on-dark h2 { color: var(--cream); }
.on-dark-sub { color: rgba(251, 246, 246, 0.7); font-size: 1.05rem; }

.dark-section {
  background: var(--navy); position: relative; overflow: hidden;
  padding: 5rem 0 6rem; color: var(--cream);
}
.dark-section::before {
  content: ""; position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 65%);
  opacity: 0.35; filter: blur(90px);
}
.dark-section::after {
  content: ""; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--terracotta) 0%, transparent 70%);
  opacity: 0.2; filter: blur(80px);
}
.dark-section .container { position: relative; z-index: 1; }

/* list filter (courses page etc.) */
.list-search {
  position: relative;
  display: flex; align-items: center; gap: 0.7rem;
  background: #fff; border: 1px solid var(--gray-light);
  border-radius: 8px; padding: 0.85rem 1.1rem;
  max-width: 480px; margin-bottom: 2rem; color: var(--muted);
}
.list-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5, 117, 115, 0.1); }
.list-search svg { color: var(--muted); flex-shrink: 0; }
.list-search input {
  flex: 1; border: none; outline: none; background: none;
  font-family: var(--body); font-size: 1rem; color: var(--body-text);
}
.list-search input::placeholder { color: var(--muted); }
.list-empty { color: var(--muted); font-size: 1.02rem; padding: 0.6rem 0 1.5rem; }
.list-controls { margin-bottom: 2rem; }
.list-controls .list-search { margin-bottom: 1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  padding: 0.42rem 0.95rem; border-radius: 999px; cursor: pointer;
  background: rgba(5, 117, 115, 0.08); color: var(--teal);
  border: 1px solid rgba(5, 117, 115, 0.25);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: rgba(5, 117, 115, 0.15); }
.chip.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip-count { font-weight: 600; font-size: 0.78rem; opacity: 0.75; }
.chip.active .chip-count { opacity: 0.9; }

/* article cards (articles index) */
.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.article-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--gray-light);
  border-radius: 12px; padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(5, 117, 115, 0.08); }
.article-card .badge { align-self: flex-start; }
.article-card .card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; margin-bottom: 0.9rem;
}
.card-meta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--muted); font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.article-card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 0.6rem; line-height: 1.3; }
.article-card:hover h3 { color: var(--teal); }
.article-card p {
  color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.1rem;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--display); font-weight: 700; font-size: 0.88rem;
  color: var(--teal); margin-top: auto;
}
@media (max-width: 900px) { .article-card-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1150px) { .article-card-grid { grid-template-columns: repeat(2, 1fr); } }

/* topic cards */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.topic-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--gray-light);
  border-radius: 10px; padding: 1.3rem 1.5rem;
  text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.topic-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5, 117, 115, 0.08); }
.topic-name { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.topic-count { color: var(--muted); font-size: 0.85rem; margin-left: auto; white-space: nowrap; }
.topic-arrow { color: var(--teal); display: inline-flex; flex-shrink: 0; }

/* feature cards (dark) */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; padding: 2rem;
  text-decoration: none; display: block;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.feature-card:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; background: rgba(230, 193, 32, 0.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--yellow); margin-bottom: 1.2rem;
}
.feature-card h3 { color: var(--cream); font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature-card p { color: rgba(251, 246, 246, 0.65); font-size: 0.95rem; line-height: 1.6; }
.course-meta {
  display: flex; gap: 1.2rem; margin-top: 1.1rem;
  font-size: 0.85rem; color: rgba(251, 246, 246, 0.6);
  align-items: center;
}
.course-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.exam-chip {
  background: rgba(230, 193, 32, 0.15); color: var(--yellow) !important;
  padding: 0.2rem 0.7rem; border-radius: 999px; font-weight: 600;
}

/* badges */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.badge-teal { background: rgba(5, 117, 115, 0.1); color: var(--teal); }
.badge-gold { background: rgba(230, 193, 32, 0.2); color: #8a6d0f; }
.badge-terra { background: rgba(199, 90, 67, 0.15); color: var(--terracotta); }
.badge-navy { background: rgba(54, 72, 86, 0.12); color: var(--navy); }

/* article rows */
.article-list { display: flex; flex-direction: column; }
.article-row {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1rem 0.4rem; text-decoration: none;
  border-bottom: 1px solid var(--gray-light);
}
.article-row:hover { background: #fff; }
.article-row-title { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 1.02rem; flex: 1; }
.article-row:hover .article-row-title { color: var(--teal); }
.article-row-meta { display: flex; gap: 1rem; align-items: center; white-space: nowrap; }
.article-row .date { color: var(--muted); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.article-row-rich { flex-wrap: wrap; }
.article-row-excerpt { color: var(--muted); font-size: 0.92rem; width: 100%; order: 3; }
.more-link { margin-top: 1.6rem; }
.more-link a {
  font-family: var(--display); font-weight: 700; text-decoration: none;
  color: var(--teal); display: inline-flex; align-items: center; gap: 0.4rem;
}
.more-link a:hover { text-decoration: underline; }

/* podcast cards */
.pod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pod-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  text-decoration: none; border: 1px solid var(--gray-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pod-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }
.pod-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.pod-card-body { padding: 1.2rem 1.4rem 1.5rem; }
.pod-card h3 { font-size: 1.05rem; margin-top: 0.7rem; }

.pod-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.pod-episode {
  background: #fff; border: 1px solid var(--gray-light);
  border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
}
.pod-media { position: relative; background: var(--navy-dark); }
.pod-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; opacity: 0.92; }
.pod-media video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.pod-play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(230, 193, 32, 0.95); color: var(--navy);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.pod-play:hover { transform: scale(1.08); background: var(--yellow-light); }
.pod-body { padding: 1.4rem 1.6rem 1.7rem; }
.pod-body h3 { margin: 0.7rem 0 0.5rem; font-size: 1.15rem; }
.pod-body p { color: var(--muted); font-size: 0.95rem; }
.pod-article-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.9rem; font-family: var(--display); font-weight: 700;
  font-size: 0.9rem; text-decoration: none; color: var(--teal);
}

/* ---------------------------------- release notes: snake ("road") timeline
   Ported from the portal LMS ReleaseTimeline: rows of 3 with every odd row
   reversed, a flat road line per row, and half-pill bends forming the U-turns.
   The badge is opaque and sits on the line, punching through the road. */
.snake { position: relative; padding: 0 40px; }
.snake-row { position: relative; height: 258px; }
.snake-road {
  position: absolute; left: 0; right: 0; top: 39px; height: 3px;
  border-radius: 999px; background: rgba(5, 117, 115, 0.15);
}
.snake-cells { display: flex; height: 100%; gap: 1.5rem; }
.snake-row.reversed .snake-cells { flex-direction: row-reverse; }
.snake-cell-filler { flex: 1 1 0; min-width: 0; }
.snake-bend {
  position: absolute; width: 36px; height: 261px;
  border: 3px solid rgba(5, 117, 115, 0.15);
  pointer-events: none;
}
.snake-bend.bend-right { right: 4px; border-left: 0; border-radius: 0 999px 999px 0; }
.snake-bend.bend-left { left: 4px; border-right: 0; border-radius: 999px 0 0 999px; }
.snake-stop {
  position: relative; flex: 1 1 0; min-width: 0; text-align: center;
  text-decoration: none; display: block;
}
.snake-date { display: block; height: 22px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.snake-tick { display: block; margin: 0 auto; width: 3px; height: 8px; background: rgba(5, 117, 115, 0.15); }
.snake-badge {
  position: relative; z-index: 2; display: inline-block;
  padding: 0.2rem 0.75rem; border-radius: 999px;
  font-family: var(--display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: #e6f1f1; color: var(--teal);
}
.snake-stop.is-planned .snake-badge { background: #fff; color: var(--muted); border: 1px dashed #9aa3a8; }
.snake-title {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0.55rem auto 0; max-width: 30ch;
  font-family: var(--display); font-weight: 700; font-size: 1.14rem; line-height: 1.3;
  color: var(--navy);
}
.snake-stop.is-planned .snake-title { color: var(--muted); }
.snake-stop:hover .snake-title { color: var(--teal); text-decoration: underline; }
.snake-link {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.6rem;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--teal);
}
/* mobile: the road doesn't fit — fall back to a plain vertical list */
.snake-list { display: none; list-style: none; margin: 0; padding-left: 0; }
.snake-list li { position: relative; padding: 0.7rem 0; }
.snake-list li { border-bottom: 1px solid var(--gray-light); }
.snake-list a { text-decoration: none; display: block; }
.snake-list .snake-title { margin-left: 0; text-align: left; max-width: none; }
.snake-list .snake-date { text-align: left; }
@media (max-width: 900px) {
  .snake { display: none; }
  .snake-list { display: block; }
}

/* ------------------------------------------------- release notes timeline */
/* Index-page header: a slim band, not a full landing hero. Only the home page
   keeps the tall .hero. */
.list-hero { padding: 2.6rem 0 2.2rem; }
.list-hero .eyebrow { margin-bottom: 0.7rem; }
.list-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.5rem; }
.list-hero .lead { font-size: 1.02rem; margin-bottom: 0; max-width: 640px; }
.list-hero + .section-divider { height: 34px; }
.release-timeline { position: relative; padding-left: 2.2rem; }
.release-timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(var(--teal), var(--gray-light));
}
.release-item { display: block; position: relative; text-decoration: none; margin-bottom: 1.6rem; }
.release-marker {
  position: absolute; left: -2.2rem; top: 1.5rem; width: 16px; height: 16px;
  border-radius: 50%; background: var(--teal); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--teal);
}
.release-item.is-planned .release-marker { background: var(--cream); box-shadow: 0 0 0 2px var(--yellow); }
.release-card {
  background: #fff; border: 1px solid var(--gray-light); border-radius: 12px;
  padding: 1.4rem 1.6rem; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.release-item:hover .release-card { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(5, 117, 115, 0.08); }
.release-item.is-planned .release-card { border-style: dashed; background: rgba(230, 193, 32, 0.05); }
.release-card-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.release-date { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--display); font-weight: 700; font-size: 0.8rem; color: var(--teal); letter-spacing: 0.02em; }
.release-tag { font-family: var(--display); font-weight: 700; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(230, 193, 32, 0.95); color: var(--navy); padding: 0.18rem 0.6rem; border-radius: 999px; }
.release-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.4rem; line-height: 1.3; }
.release-item:hover .release-card h3 { color: var(--teal); }
.release-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.8rem; }
.release-link { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--teal); }

/* ---------------------------------------- podcasts overview (slider) */
.pod-filter { margin-bottom: 1.6rem; }
.pod-slider-wrap { position: relative; }
.pod-slider {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 0.4rem 0.2rem 0.6rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.pod-slider::-webkit-scrollbar { display: none; }
.pod-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.pod-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--gray-light); transition: background 0.2s, transform 0.2s;
}
.pod-dot:hover { background: rgba(5, 117, 115, 0.45); }
.pod-dot.active { background: var(--teal); transform: scale(1.25); }
.pod-slide {
  flex: 0 0 300px; scroll-snap-align: start; text-decoration: none;
  background: #fff; border: 1px solid var(--gray-light); border-radius: 12px;
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pod-slide:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 12px 30px rgba(5, 117, 115, 0.1); }
.pod-slide-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy-dark); }
/* the poster artwork no longer bakes in a play glyph, so each surface draws
   its own — one control, in the conventional centre position */
.pod-slide-play, .yt-thumb-play {
  position: absolute; inset: 0; margin: auto;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(230, 193, 32, 0.95); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.pod-slide:hover .pod-slide-play { transform: scale(1.1); background: var(--yellow-light); }
.yt-thumb-play { width: 30px; height: 30px; }
.pod-slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pod-slide-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(251, 246, 246, 0.5); }
.pod-slide-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.1rem 1.2rem; }
.pod-slide-body .badge { align-self: flex-start; }
.pod-slide-title { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--navy); line-height: 1.3; }
.pod-slide:hover .pod-slide-title { color: var(--teal); }
.pod-arrow {
  position: absolute; top: calc(0.4rem + (300px * 9 / 16) / 2 - 27px); z-index: 4;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  background: var(--navy); color: var(--cream); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25); transition: background 0.2s, transform 0.2s;
}
.pod-arrow:hover { background: var(--teal); transform: scale(1.06); }
.pod-arrow svg { width: 26px; height: 26px; }
.pod-prev { left: -66px; }
.pod-next { right: -66px; }
@media (max-width: 1100px) { .pod-prev { left: -8px; } .pod-next { right: -8px; } }
@media (max-width: 760px) { .pod-arrow { display: none; } }

/* ------------------------------------- single podcast (theatre) */
.yt-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.yt-stage {
  position: relative; background: #000; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9;
}
.yt-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-stage video { width: 100%; height: 100%; display: block; background: #000; }
.yt-stage audio { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; }
.yt-stage-click { cursor: pointer; }
.yt-stage-hint {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(230, 193, 32, 0.95); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.yt-stage-click:hover .yt-stage-hint { opacity: 1; }
.yt-meta { padding: 1.3rem 0.2rem 0; }
.yt-meta h2 { font-size: 1.5rem; margin: 0.6rem 0 0.5rem; }
.yt-meta p { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.yt-meta .pod-article-link { margin-top: 0.9rem; }
.yt-related-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; font-family: var(--display); font-weight: 700; }
.yt-list { display: flex; flex-direction: column; gap: 0.7rem; max-height: 78vh; overflow-y: auto; padding-right: 0.3rem; }
.yt-rel { display: flex; gap: 0.8rem; text-decoration: none; padding: 0.4rem; border-radius: 8px; align-items: flex-start; transition: background 0.15s; }
.yt-rel:hover { background: var(--cream-dark); }
.yt-item-thumb { position: relative; flex-shrink: 0; width: 128px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--navy-dark); }
.yt-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-item-thumb .pod-slide-noimg { color: rgba(251, 246, 246, 0.5); }
.yt-item-body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.yt-item-title { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--navy); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-rel:hover .yt-item-title { color: var(--teal); }
.yt-rel .badge { align-self: flex-start; }
@media (max-width: 900px) {
  .yt-layout { grid-template-columns: 1fr; }
  .yt-list { max-height: none; }
  .pod-slide { flex-basis: 260px; }
}

/* ------------------------------------------------------- page head */
.page-head {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--cream); padding: 4.5rem 0 3.5rem;
  position: relative; overflow: hidden;
}
/* slim variant: just a breadcrumb bar (e.g. the single-podcast watch page) */
.page-head-slim { padding: 1.1rem 0; }
.page-head-slim .breadcrumb { margin-bottom: 0; }
.page-head h1 {
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 0.8rem;
}
.page-head .lead { margin-bottom: 1rem; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 1.4rem; color: var(--muted); }
.breadcrumb a { color: var(--teal); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.on-dark-crumb, .on-dark-crumb a { color: rgba(251, 246, 246, 0.75); }
.on-dark-meta, .on-dark-meta span { color: rgba(251, 246, 246, 0.75); }

/* ------------------------------------------------------- prose */
.prose-page { padding: 3.5rem 0 5rem; }
.article-meta {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  margin: 1rem 0 2.2rem; padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--gray-light);
}
.article-meta .date { color: var(--muted); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.prose-page h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 800; letter-spacing: -0.015em; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { font-size: 1.55rem; margin: 2.4rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 1.9rem 0 0.8rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.5rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--teal); font-weight: 700; }
.prose strong { color: var(--navy); }
.prose em { color: var(--muted); }
.prose code {
  background: var(--cream-dark); border-radius: 4px;
  padding: 0.15em 0.4em; font-size: 0.9em;
}
.prose pre {
  background: var(--navy-dark); color: var(--cream);
  border-radius: 10px; padding: 1.2rem 1.4rem; overflow-x: auto;
  margin-bottom: 1.4rem;
}
.prose pre code { background: none; padding: 0; }
.prose table {
  width: 100%; border-collapse: collapse; margin-bottom: 1.4rem;
  font-size: 0.95rem; display: block; overflow-x: auto;
}
.prose th, .prose td { border: 1px solid var(--gray-light); padding: 0.6rem 0.9rem; text-align: left; }
.prose th { background: var(--cream-dark); font-family: var(--display); color: var(--navy); }
.prose hr { border: none; border-top: 2px solid var(--gray-light); margin: 2.4rem 0; }
.prose audio { width: 100%; margin: 1rem 0 1.4rem; }

/* Screenshots, demos and videos break out wider than the 820px text column so
   UI detail in the capture is actually readable. */
.md-figure, .demo-player, .video-embed, .video-embed-native {
  width: min(1180px, 94vw);
  margin-left: 50%;
  transform: translateX(-50%);
}
.md-figure { margin-top: 2rem; margin-bottom: 2.4rem; text-align: center; }
/* Smart sizing: fill the breakout width when the capture is genuinely wide, but
   never upscale a small image past its natural size, and cap very tall ones so
   they don't take over the page. */
.md-figure img {
  border-radius: 10px; border: 1px solid var(--gray-light);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  width: auto; height: auto; max-width: 100%; max-height: 78vh;
}
.md-figure figcaption { max-width: 820px; margin-left: auto; margin-right: auto; }
.md-figure.img-missing img { display: none; }
/* engagement badges (read / played / completed / in progress) */
.article-card, .feature-card, .pod-episode, .pod-slide { position: relative; }
.pod-slide .engage-badge { position: absolute; top: 0.7rem; left: 0.7rem; }
.engage-badge {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--display); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.26rem 0.62rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.engage-badge svg { width: 12px; height: 12px; }
/* per-card position rules keep specificity above .course-card > * (glow layer) */
.course-card .engage-badge, .feature-card .engage-badge, .pod-episode .engage-badge {
  position: absolute; top: 0.9rem; right: 0.9rem;
}
.article-card .engage-badge { position: absolute; bottom: 1.35rem; right: 1.4rem; }
.engage-read, .engage-done, .engage-played { background: var(--teal); color: #fff; }
.engage-progress { background: var(--yellow); color: var(--navy); }
.article-card.is-read, .course-card.is-done, .feature-card.is-done { border-color: var(--teal); }
.article-card.is-read h3 { color: var(--muted); }

/* image lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13, 21, 32, 0.93);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; cursor: zoom-out; animation: lb-fade 0.15s ease;
}
.lightbox img { max-width: 95vw; max-height: 92vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55); cursor: zoom-out; }
.lightbox-close {
  position: fixed; top: 1.1rem; right: 1.4rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; border: none;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.wk-cover {
  border-radius: 10px; max-height: 340px; width: auto;
  margin: 0.4rem 0 1.4rem; display: block;
}
.md-figure figcaption {
  font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem;
  font-style: italic;
}

.callout {
  border-left: 4px solid var(--teal);
  background: rgba(5, 117, 115, 0.06);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.3rem; margin: 1.4rem 0;
}
.callout p { margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-warning, .callout-caution {
  border-left-color: var(--terracotta);
  background: rgba(199, 90, 67, 0.07);
}
.callout-tip { border-left-color: var(--yellow); background: rgba(230, 193, 32, 0.1); }
.prose blockquote:not(.callout) {
  border-left: 4px solid var(--gray-light); padding-left: 1.2rem;
  color: var(--muted); margin: 1.4rem 0;
}

.video-embed { position: relative; aspect-ratio: 16/9; margin: 1.6rem 0 2rem 50%; }
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; border-radius: 12px;
}
.video-embed-native video { width: 100%; border-radius: 12px; margin: 1.6rem 0 2rem; background: #000; }

.siblings {
  margin-top: 3rem; padding-top: 1.8rem;
  border-top: 2px solid var(--gray-light);
}
.siblings h3 { font-size: 1rem; margin-bottom: 0.9rem; }
.siblings a {
  display: block; padding: 0.5rem 0; text-decoration: none;
  color: var(--teal); font-weight: 500;
}
.siblings a:hover { text-decoration: underline; }
.back-course { margin-top: 2.4rem; }
.back-course a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--display); font-weight: 700;
  color: var(--teal); text-decoration: none;
}

/* --------------------------------------------------- course pages */
.lesson-list { display: flex; flex-direction: column; }
.lesson-row {
  position: relative;
  display: grid; grid-template-columns: 72px 1fr 24px;
  gap: 1.4rem; align-items: center;
  padding: 1.5rem 0.4rem; text-decoration: none;
  border-bottom: 2px solid var(--gray-light);
}
.lesson-row:first-child { border-top: 2px solid var(--gray-light); }
.lesson-no {
  font-family: var(--display); font-size: 2.2rem; font-weight: 800;
  color: var(--teal); line-height: 1;
}
.lesson-row:nth-child(3n+2) .lesson-no { color: var(--terracotta); }
.lesson-row:nth-child(3n) .lesson-no { color: #b89a1a; }
.lesson-title { display: block; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.lesson-row:hover .lesson-title { color: var(--teal); }
.lesson-excerpt { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
/* completed-lesson tick (overlays the number, no layout shift) */
.lesson-check {
  position: absolute; left: 44px; top: 1.15rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--cream);
}
.lesson-row.done .lesson-check { display: inline-flex; }
.lesson-row.done .lesson-no { color: var(--teal); opacity: 0.5; }
.lesson-row.done .lesson-title { color: var(--muted); }

/* course start CTA + progress (in the teal page head) */
.course-progress { display: flex; align-items: center; gap: 1rem; max-width: 520px; margin: 1.7rem 0 0.2rem; }
.course-progress-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(251, 246, 246, 0.2); overflow: hidden; }
.course-progress-fill { display: block; width: 0; height: 100%; background: var(--yellow); border-radius: 999px; transition: width 0.4s ease; }
.course-progress-label { font-size: 0.85rem; color: rgba(251, 246, 246, 0.9); font-family: var(--display); font-weight: 700; white-space: nowrap; }
.course-head .cta-group { margin-top: 1.6rem; }
.course-start svg { vertical-align: middle; }

/* fixed course player bar on lesson pages */
.course-player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(31, 46, 58, 0.97); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}
.cpb-inner { display: flex; align-items: center; gap: 1.5rem; }
.cpb-course { display: inline-flex; align-items: center; gap: 0.35rem; color: rgba(251, 246, 246, 0.85); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.cpb-course:hover { color: var(--cream); }
.cpb-progress { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.cpb-count { font-size: 0.78rem; color: rgba(251, 246, 246, 0.7); font-family: var(--display); font-weight: 600; }
.cpb-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.cpb-fill { display: block; height: 100%; background: var(--yellow); border-radius: 999px; transition: width 0.4s ease; }
.cpb-nav { display: flex; align-items: center; gap: 0.7rem; white-space: nowrap; }
.cpb-nav .btn { padding: 0.6rem 1.2rem; font-size: 0.88rem; }
.cpb-prev { background: rgba(255, 255, 255, 0.1); color: var(--cream); }
.cpb-prev:hover { background: rgba(255, 255, 255, 0.18); }
body.has-course-bar { padding-bottom: 88px; }
@media (max-width: 700px) {
  .cpb-inner { gap: 0.8rem; }
  .cpb-course span { display: none; }
  .cpb-count { display: none; }
  .cpb-prev { display: none; }
}

.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.course-card {
  background: var(--navy); border-radius: 12px; padding: 2rem;
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.course-card::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 65%);
  opacity: 0.35; filter: blur(60px);
}
.course-card > * { position: relative; z-index: 1; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31, 46, 58, 0.35); }
.course-card h3 { color: var(--cream); font-size: 1.25rem; margin-bottom: 0.5rem; max-width: 17ch; }
/* Exactly three rows, reserved whether or not the text fills them, so cards in a
   row stay level and the thumbnail never squeezes the description into a column. */
.course-card p {
  color: rgba(251, 246, 246, 0.72); font-size: 0.95rem; margin-bottom: 0.6rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; max-width: 31ch; min-height: 4.4em;
}
.course-card .btn-teal { margin-top: 1rem; align-self: flex-start; background: var(--yellow); color: var(--navy); }
.course-card .btn-teal:hover { background: var(--yellow-light); }
.course-card .course-cat { margin-bottom: 0.9rem; align-self: flex-start; }

/* Card thumbnail — the first lesson's screenshot, entropy-cropped at build time
   so it shows the busiest part of the screen rather than the sidebar every CAMS
   page shares. Tucked into the corner and clipped by the card: it never sits
   under the title, so text contrast does not depend on the picture. */
.course-thumb {
  position: absolute; right: -22px; bottom: 16px; z-index: 0;
  width: 168px; height: 118px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(251, 246, 246, 0.14);
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(31, 46, 58, 0.18), rgba(31, 46, 58, 0.66));
}
/* Keep the meta line clear of the thumbnail — "9 lessons · exam" behind a
   picture is the kind of thing that only shows up on the longest card. */
.course-card.has-thumb .course-meta { max-width: 58%; }
.course-card.has-thumb p { max-width: 27ch; }

/* Progress along the bottom edge. Filled by site.js from local progress; a
   quantity you can see across a grid without reading a second badge. */
.course-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(251, 246, 246, 0.14); z-index: 2;
}
.course-bar i { display: block; height: 100%; width: 0; background: var(--yellow); transition: width 0.3s; }

.exam-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap;
}
.exam-cta-inner h2 { max-width: 560px; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.7rem; }

.cat-group { margin-bottom: 3rem; }
.cat-group h2 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.cat-group h2 a { color: var(--navy); text-decoration: none; }
.cat-group h2 a:hover { color: var(--teal); }
.cat-group .count {
  font-family: var(--body); font-weight: 400; font-size: 0.85rem;
  color: var(--muted); vertical-align: middle; margin-left: 0.4rem;
}

/* ------------------------------------------------------ demo player */
.demo-player {
  margin: 2.4rem 0 2.4rem 50%; background: var(--navy-dark);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(31, 46, 58, 0.18);
}
.demo-stage { position: relative; background: #0d1520; }
.demo-stage img { width: 100%; display: block; }
.demo-hotspot {
  position: absolute; border: 3px solid var(--yellow);
  border-radius: 8px; box-shadow: 0 0 0 4000px rgba(31, 46, 58, 0.25);
  animation: pulse 2s infinite; pointer-events: none;
}
/* Walkthrough entry point. Deliberately a compact inline bar rather than a
   full-bleed dark panel: the panel read as an advert and was ignored. Mirrors
   the portal's DemoCta — tinted row, icon, two lines, pill button. */
.demo-cta {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  padding: 0.95rem 1.1rem;
  background: rgba(5, 117, 115, 0.06);
  border: 1px solid rgba(5, 117, 115, 0.28);
  border-radius: 12px;
}
.demo-cta-icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(5, 117, 115, 0.14); color: var(--teal);
}
.demo-cta-text { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.demo-cta-text b { font-family: var(--display); font-weight: 700; font-size: 0.98rem; color: var(--navy); }
.demo-cta-text span { font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.demo-cta-btn {
  flex: none; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.1rem; border: none; border-radius: 999px; cursor: pointer;
  background: var(--teal); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 0.9rem;
  transition: background 0.2s;
}
.demo-cta-btn:hover { background: var(--teal-dark); }
/* Before the walkthrough starts the player IS this bar, so it must not inherit
   the step viewer's dark shell — nor the media breakout above, which exists so
   screenshots stay readable and only makes a line of text sit wider than the
   article it belongs to. Both return once a step is showing. */
.demo-player:has(.demo-cta) {
  background: none; box-shadow: none;
  width: auto; margin: 1.6rem 0 2rem; transform: none;
}

.demo-panel { padding: 1.1rem 1.4rem 1.3rem; color: var(--cream); }
.demo-caption-row { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 0.9rem; }
.demo-caption { flex: 1; font-size: 0.98rem; line-height: 1.5; color: rgba(251, 246, 246, 0.9); }
.demo-audio, .demo-mute {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: background 0.15s;
}
.demo-audio { background: var(--yellow); color: var(--navy); }
.demo-audio:hover { background: var(--yellow-light); }
.demo-mute { background: rgba(255, 255, 255, 0.1); color: var(--cream); }
.demo-mute:hover { background: rgba(255, 255, 255, 0.18); }
.demo-audio-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-bottom: 1.1rem; }
.demo-audio-fill { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 999px; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.demo-dots { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: transform 0.2s, background 0.2s; }
.demo-dot.done { background: rgba(230, 193, 32, 0.55); }
.demo-dot.active { background: var(--yellow); transform: scale(1.35); }
.demo-count { font-family: var(--display); font-weight: 700; font-size: 0.82rem; color: rgba(251, 246, 246, 0.7); margin-left: 0.5rem; }
.demo-nav-group { display: flex; gap: 0.6rem; }
.demo-nav {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cream); border-radius: 6px; padding: 0.5rem 1rem;
  font-family: var(--display); font-weight: 700; font-size: 0.88rem; cursor: pointer;
  transition: background 0.15s;
}
.demo-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.15); }
.demo-nav:disabled { opacity: 0.3; cursor: default; }
.demo-next { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.demo-next:hover:not(:disabled) { background: var(--yellow-light); }

/* --------------------------------------------------------- footer */
footer { background: var(--navy-dark); color: rgba(251, 246, 246, 0.7); padding: 4rem 0 2rem; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(251, 246, 246, 0.12);
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 380px; }
.footer-col h4 {
  color: var(--cream); font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.footer-col a {
  display: block; color: rgba(251, 246, 246, 0.7);
  text-decoration: none; padding: 0.3rem 0; font-size: 0.95rem;
}
.footer-col a:hover { color: var(--yellow); }
.footer-legal { padding-top: 1.6rem; font-size: 0.82rem; color: rgba(251, 246, 246, 0.45); }

/* --------------------------------------------------------- reveal */
/* Applied only when JS is confirmed running (html.js) so content is never
   hidden for no-JS visitors or crawlers. */
.js .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .container { padding: 0 1.4rem; }
  .nav-inner { gap: 1rem; }
  .brand span { display: none; }
  .nav-links { gap: 1rem; }
  .topic-grid, .pod-grid { grid-template-columns: 1fr; }
  .feature-grid, .course-grid, .pod-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 5rem 0 4rem; }
  .article-row { flex-wrap: wrap; }
  .lesson-row { grid-template-columns: 48px 1fr 20px; gap: 1rem; }
  .lesson-no { font-size: 1.6rem; }
}

/* ------------------------------------------------------------ exam */
.exam-loading { color: var(--muted); }
.exam-qs { list-style: none; margin: 0 0 2rem; padding: 0; }
.exam-q { background: #fff; border: 1px solid var(--gray-light); border-radius: 12px; padding: 1.3rem 1.5rem; margin-bottom: 1rem; }
.exam-qn { font-family: var(--display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.exam-qt { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 0.4rem 0 0.9rem; }
.exam-opts { display: flex; flex-direction: column; gap: 0.5rem; }
.exam-opt { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.55rem 0.7rem; border: 1px solid var(--gray-light); border-radius: 8px; cursor: pointer; font-size: 0.96rem; }
.exam-opt:hover { border-color: var(--teal); background: rgba(5, 117, 115, 0.04); }
.exam-opt input { margin-top: 0.25rem; accent-color: var(--teal); }
.exam-me { border: 1px solid var(--gray-light); border-radius: 12px; padding: 1.2rem 1.5rem 1.4rem; margin-bottom: 1.4rem; background: #fff; }
.exam-me legend { font-family: var(--display); font-weight: 700; color: var(--navy); padding: 0 0.4rem; }
.exam-me label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; font-weight: 600; }
.exam-me input { display: block; width: 100%; margin-top: 0.3rem; padding: 0.6rem 0.8rem; border: 1px solid var(--gray-light); border-radius: 8px; font-family: var(--body); font-size: 1rem; }
.exam-me input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5, 117, 115, 0.12); }
.exam-err { color: var(--terracotta); font-weight: 600; margin-bottom: 1rem; }
.exam-result { background: #fff; border: 1px solid var(--gray-light); border-radius: 14px; padding: 2rem; text-align: center; }
.exam-result.is-pass { border-color: var(--teal); }
.exam-result.is-fail { border-color: var(--terracotta); }
.exam-result-tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 999px; }
.exam-result.is-pass .exam-result-tag { background: var(--teal); color: #fff; }
.exam-result.is-fail .exam-result-tag { background: rgba(199, 90, 67, 0.12); color: var(--terracotta); }
.exam-score { font-size: 1.3rem; margin: 1rem 0; color: var(--navy); }
.exam-thr { color: var(--muted); font-size: 1rem; }
.exam-cert { margin: 1.5rem auto 0; max-width: 460px; padding: 1.5rem; border: 2px solid var(--yellow); border-radius: 12px; background: rgba(230, 193, 32, 0.06); }
.exam-cert h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.7rem; }
.exam-certno { font-family: var(--display); font-weight: 700; color: var(--teal); margin-top: 0.6rem; }
.exam-retry { margin-top: 1.4rem; }

/* --------------------------------------------------- profile / sign-in */
.profile-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12); color: var(--cream);
  border: 1px solid rgba(251, 246, 246, 0.3); border-radius: 999px;
  padding: 0.35rem 0.85rem; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.82rem;
  transition: background 0.15s, border-color 0.15s;
}
.profile-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--cream); }
.profile-btn.is-signed-in { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.profile-modal {
  position: fixed; inset: 0; z-index: 220; background: rgba(13, 21, 32, 0.6);
  display: flex; align-items: center; justify-content: center; padding: 5vh 1.2rem;
}
.profile-card {
  position: relative; background: #fff; border-radius: 14px;
  padding: 2rem 2rem 1.8rem; width: 100%; max-width: 440px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}
.profile-card h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.profile-note { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.3rem; }
.profile-close {
  position: absolute; top: 0.7rem; right: 0.9rem; border: none; background: none;
  font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.profile-close:hover { color: var(--navy); }
#profile-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 0.9rem; }
#profile-form input, #profile-form select {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--gray-light); border-radius: 8px;
  font-family: var(--body); font-size: 1rem; background: #fff;
}
#profile-form input:focus, #profile-form select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5, 117, 115, 0.12);
}
.profile-actions { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.profile-actions .btn { padding: 0.7rem 1.4rem; }
.profile-signout { background: var(--cream-dark); color: var(--body-text); }
.profile-signout:hover { background: var(--gray-light); }
/* role-matched cards float to the front of a grid and get a marker */
/* Card badges. align-self/justify-self are the load-bearing part: the cards are
   flex columns, so a stretch-aligned child fills the whole card width and the
   pill turns into a full-width bar. inline-block alone does not stop that. */
.card-badges {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  align-self: flex-start; justify-self: start;
  margin-bottom: 0.6rem;
}
.role-pick, .card-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  align-self: flex-start; justify-self: start;
  width: fit-content; max-width: 100%;
  font-family: var(--display); font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  white-space: nowrap;
}
.role-pick { margin-bottom: 0.6rem; background: var(--yellow); color: var(--navy); }
.card-badges .role-pick { margin-bottom: 0; }
/* video = teal, demo = terracotta, matching the content-type colour convention */
.card-badge-video { background: rgba(5, 117, 115, 0.12); color: var(--teal); }
.card-badge-demo { background: rgba(199, 90, 67, 0.15); color: var(--terracotta); }
.course-card .card-badge-video { background: rgba(65, 178, 176, 0.2); color: #bdeceb; }
.course-card .card-badge-demo { background: rgba(239, 115, 87, 0.22); color: #f3c3b7; }
.card-badge svg { width: 11px; height: 11px; flex: none; }
.feature-card .role-pick, .course-card .role-pick { position: relative; z-index: 1; }
.is-role-match { outline: 2px solid rgba(230, 193, 32, 0.55); outline-offset: 2px; }
@media (max-width: 900px) { .profile-btn span { display: none; } }

/* sign-in gate on the exam, and the profile dialog's code step */
.exam-gate { background: #fff; border: 1px solid var(--gray-light); border-radius: 14px; padding: 2.4rem 2rem; text-align: center; }
.exam-gate h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 1.2rem; }
.profile-hint { color: var(--muted); font-size: 0.86rem; margin: 0 0 1rem; }
.profile-err { color: var(--terracotta); font-weight: 600; font-size: 0.9rem; margin-top: 0.9rem; }
#profile-form input[name="code"] { letter-spacing: 0.4em; font-size: 1.3rem; text-align: center; font-family: var(--display); font-weight: 700; }
.profile-resend { background: var(--cream-dark); color: var(--body-text); }
.profile-resend:hover { background: var(--gray-light); }
