/* ============================================================
   Strategic Wealth Network — Design System v4
   Wealth education for serious people
   ============================================================ */

:root {
  /* Surfaces — warmer, more refined cream palette */
  --bg: #F4F1EC;
  --surface: #FFFFFF;
  --surface-soft: #FAF7F1;
  --surface-hover: #EFE9DC;
  --surface-deep: #E5DECE;

  /* Ink */
  --ink: #14181F;
  --ink-soft: #2B313D;
  --muted: #6B6F78;
  --muted-soft: #A5A8AF;

  /* Borders */
  --border: rgba(20, 24, 31, 0.06);
  --border-strong: rgba(20, 24, 31, 0.14);

  /* Brand */
  --navy: #1B2B45;
  --navy-soft: #2A3E5C;
  --navy-deep: #0E1A30;
  --gold: #C19A5B;
  --gold-bright: #D5B070;
  --gold-soft: #E8D9BC;
  --gold-deep: #8E6F35;
  --gold-pale: #F5EDD9;
  --burgundy: #6B2C2C;
  --success: #2D7A4F;

  /* Shadows — softer, more deliberate */
  --shadow-xs: 0 1px 2px rgba(20, 24, 31, 0.03);
  --shadow-sm: 0 2px 6px rgba(20, 24, 31, 0.04);
  --shadow-md: 0 6px 18px rgba(20, 24, 31, 0.06);
  --shadow-lg: 0 14px 36px rgba(20, 24, 31, 0.09);
  --shadow-xl: 0 28px 64px rgba(20, 24, 31, 0.18);
  --shadow-2xl: 0 40px 80px rgba(14, 26, 48, 0.25);
  --shadow-navy: 0 14px 36px rgba(27, 43, 69, 0.22);
  --shadow-gold: 0 8px 24px rgba(193, 154, 91, 0.28);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.42, 0.64, 1);
  --ease-snap: cubic-bezier(0.5, 0, 0.1, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* Clip horizontal overflow at the document level WITHOUT making body a
   scrolling container. `overflow-x: hidden` on body promotes it to a
   scrolling element in many browsers (because hidden implies a scroll
   port), which then becomes the nearest scrolling ancestor of every
   sticky descendant — and sticky positions itself relative to that
   ancestor instead of the viewport, causing sticky elements to scroll
   away. `overflow-x: clip` on html clips the same way visually but
   doesn't establish a scroll container, so sticky still locks to the
   viewport correctly. */
html {
  overflow-x: clip;
}

/* Paper grain — subtle, premium feel */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-slow {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(28px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes draw-line {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.anim-rise { animation: rise 0.7s var(--ease-out) both; }
.anim-rise-1 { animation: rise 0.7s var(--ease-out) 0.08s both; }
.anim-rise-2 { animation: rise 0.7s var(--ease-out) 0.16s both; }
.anim-rise-3 { animation: rise 0.7s var(--ease-out) 0.24s both; }
.anim-rise-4 { animation: rise 0.7s var(--ease-out) 0.32s both; }
.anim-rise-5 { animation: rise 0.7s var(--ease-out) 0.40s both; }
.anim-fade { animation: fade 0.8s var(--ease-out) both; }
.anim-fade-slow { animation: fade 1.2s var(--ease-out) both; }

/* ============================================================
   APP SHELL
   ============================================================ */

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px); /* roughly viewport minus topbar */
  max-width: 1440px;
  margin: 0 auto;
  gap: 28px;
  padding: 24px;
}

/* ============================================================
   TOPBAR
   Sticky to top of viewport. Backdrop blur keeps content readable
   as it scrolls behind. Stays visible at all times so brand,
   search, streak, and avatar are always one click away.
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 236, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out);
  animation: fade 0.5s var(--ease-out) both;
}
.topbar.is-scrolled {
  border-bottom-color: var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1440px;
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  transition: opacity 0.2s var(--ease-out);
}
.brand:hover { opacity: 0.85; }
.brand-mark {
  width: 34px; height: 34px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", serif; font-size: 19px; font-style: italic;
  box-shadow: var(--shadow-sm);
}
.brand-text { color: var(--ink); }
.brand-text em {
  font-family: "Instrument Serif", serif;
  font-weight: 400; color: var(--gold-deep);
  font-style: italic; margin-left: 3px;
}

.search-wrap {
  flex: 1; max-width: 480px; margin: 0 32px; position: relative;
}
.search-wrap input {
  width: 100%; padding: 12px 16px 12px 44px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 100px; outline: none; font-size: 14px;
  color: var(--ink); transition: all 0.25s var(--ease-out);
}
.search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(193, 154, 91, 0.15);
}
.search-wrap input::placeholder { color: var(--muted-soft); }
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted-soft); pointer-events: none;
}
.search-kbd {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 3px;
  font-size: 11px; color: var(--muted-soft);
  font-family: ui-monospace, monospace;
}
.search-kbd kbd {
  padding: 2px 6px;
  background: var(--surface-deep); border-radius: 4px;
  font-size: 10.5px;
}

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: all 0.2s var(--ease-out);
  position: relative;
}
.icon-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.icon-btn .dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--surface);
}

.streak-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: #FFFFFF;
  padding: 8px 14px 8px 10px; border-radius: 100px;
  font-weight: 600; font-size: 13.5px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-out);
}
.streak-pill:hover { background: var(--navy-deep); transform: translateY(-1px); }
.streak-flame {
  width: 22px; height: 22px; background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-out);
  border: 2px solid var(--surface);
}
.avatar:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px;
  /* CRITICAL: align-self: start prevents the grid from stretching the
     sidebar to row height, which is what was breaking sticky positioning.
     Without this, the sidebar IS the row (3000px tall on long pages),
     leaving no room for sticky behavior. */
  align-self: start;
  position: sticky;
  /* Sit just below the sticky topbar (~68px tall) with breathing room. */
  top: 84px;
  box-shadow: var(--shadow-xs);
  animation: rise 0.6s var(--ease-out) both;
  /* Constrain height so the sidebar's own internal scroll handles overflow
     instead of pushing the page off when sidebar content (streak card etc.)
     gets tall. */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  /* Custom scrollbar - subtle so it doesn't compete with the design */
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.sidebar-section { margin-bottom: 6px; }
.sidebar-section + .sidebar-section {
  padding-top: 10px; margin-top: 10px;
  border-top: 1px solid var(--border);
}
.sidebar-heading {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding: 8px 14px 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--ink-soft); font-weight: 500; font-size: 14.5px;
  transition: all 0.2s var(--ease-out);
  cursor: pointer; position: relative;
  letter-spacing: -0.005em;
}
.nav-item:hover { background: var(--surface-hover); color: var(--ink); }
.nav-item.active {
  background: var(--navy); color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.nav-item.active .nav-icon { color: var(--gold); }
.nav-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0;
  transition: color 0.2s var(--ease-out);
}
.nav-item:hover .nav-icon { color: var(--ink-soft); }
.nav-badge {
  margin-left: auto; background: var(--gold-soft); color: var(--gold-deep);
  padding: 2px 8px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
}
.nav-item.active .nav-badge { background: var(--gold); color: var(--navy-deep); }

/* Streak card */
.streak-card {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #FFFFFF; padding: 18px;
  border-radius: var(--r-md); margin-top: 14px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.streak-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(193, 154, 91, 0.2) 0%, transparent 60%);
  pointer-events: none;
}
.streak-card > * { position: relative; }
.streak-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.streak-icon {
  width: 30px; height: 30px; background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
}
.streak-number {
  font-family: "Instrument Serif", serif;
  font-size: 34px; line-height: 1; color: var(--gold);
}
.streak-label {
  font-size: 11.5px; color: rgba(255,255,255,0.65); margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.streak-text { font-size: 12.5px; color: rgba(255,255,255,0.78); margin-top: 12px; line-height: 1.5; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.day-cell {
  aspect-ratio: 1; background: rgba(255,255,255,0.08);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4);
  transition: all 0.2s var(--ease-out);
}
.day-cell.done {
  background: var(--gold); color: var(--navy-deep);
  box-shadow: 0 2px 8px rgba(193, 154, 91, 0.4);
}
.day-cell.today {
  background: rgba(193, 154, 91, 0.2);
  border: 1px solid var(--gold); color: var(--gold);
  position: relative;
}
.day-cell.today::after {
  content: ""; position: absolute; bottom: -3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; background: var(--gold); border-radius: 50%;
  animation: pulse-soft 2s var(--ease-in-out) infinite;
}

/* ============================================================
   MAIN
   ============================================================ */

.main { min-width: 0; animation: rise 0.6s var(--ease-out) 0.05s both; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.005em;
  position: relative;
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(2px); }

.btn-primary {
  background: var(--gold); color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(193, 154, 91, 0.4);
}

.btn-glass {
  background: rgba(255,255,255,0.12); color: #FFFFFF;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy); color: #FFFFFF;
  box-shadow: var(--shadow-navy);
}
.btn-dark:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27, 43, 69, 0.32);
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.section-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.section-title h2 {
  font-family: "Instrument Serif", serif; font-weight: 400;
  font-size: 32px; color: var(--ink); letter-spacing: -0.018em;
  line-height: 1.1;
}
.section-title h2 em { color: var(--gold-deep); font-style: italic; }
.section-subtitle { font-size: 13px; color: var(--muted); margin-left: 8px; }
.section-link {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s var(--ease-out);
}
.section-link svg { transition: transform 0.25s var(--ease-out); }
.section-link:hover { color: var(--gold-deep); }
.section-link:hover svg { transform: translateX(3px); }

.eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
}

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 50%, var(--navy-deep) 100%);
  color: #FFFFFF;
  border-radius: var(--r-2xl);
  padding: 48px 56px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  animation: rise-slow 0.8s var(--ease-out) both;
  box-shadow: var(--shadow-2xl);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 30%, rgba(193, 154, 91, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(193, 154, 91, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border: 1px solid rgba(193, 154, 91, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 40px;
  align-items: center;
}

.hero-issue {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.hero-volume {
  font-family: "Instrument Serif", serif;
  font-size: 14px; font-style: italic; color: var(--gold);
  letter-spacing: 0.02em;
}
.hero-number {
  font-family: "Instrument Serif", serif;
  font-size: 64px; line-height: 0.95; color: #FFFFFF;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.hero-published {
  font-size: 10.5px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-top: 10px; font-weight: 600;
}

.hero-content {
  border-left: 1px solid rgba(255,255,255,0.16);
  padding-left: 36px;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%;
  animation: pulse-soft 2.5s var(--ease-in-out) infinite;
}
.hero-title {
  font-family: "Instrument Serif", serif;
  font-size: 38px; line-height: 1.12; font-weight: 400;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
  max-width: 580px;
}
.hero-title em { font-style: italic; color: var(--gold-soft); }
.hero-lead {
  font-size: 15.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 0;
}

.hero-cta {
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}

/* "Continue learning" strip — sits below hero */
.continue-strip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 40px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease-out);
  animation: rise 0.7s var(--ease-out) 0.15s both;
}
.continue-strip:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.continue-thumb {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative; flex-shrink: 0;
  background: var(--surface-hover);
}
.continue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.continue-thumb-play {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s var(--ease-out);
}
.continue-strip:hover .continue-thumb-play { opacity: 1; }
.continue-info { flex: 1; min-width: 0; }
.continue-eyebrow {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.continue-title {
  font-size: 15px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.continue-meta {
  font-size: 12.5px; color: var(--muted);
}
.continue-progress {
  width: 140px; flex-shrink: 0;
}
.continue-progress-bar {
  height: 3px; background: var(--surface-hover);
  border-radius: 100px; overflow: hidden; margin-bottom: 4px;
}
.continue-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  border-radius: 100px;
}
.continue-progress-text {
  font-size: 11.5px; color: var(--muted); font-weight: 600;
}
.continue-resume {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: var(--navy); color: #FFFFFF;
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  transition: all 0.2s var(--ease-out);
}
.continue-resume:hover {
  background: var(--navy-deep);
  transform: translateX(2px);
}

/* ============================================================
   SHORTS RAIL
   ============================================================ */

.shorts-rail-wrap { position: relative; margin-bottom: 40px; }
.shorts-rail {
  display: flex; gap: 14px;
  overflow-x: auto; padding-bottom: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.shorts-rail::-webkit-scrollbar { display: none; }

.short-tile {
  flex: 0 0 160px; aspect-ratio: 9 / 14;
  border-radius: var(--r-md); overflow: hidden;
  position: relative; cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.short-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.short-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.short-tile:hover img { transform: scale(1.06); }
.short-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 30%, rgba(0,0,0,0.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 14px 12px;
}
.short-tile-title {
  color: #FFFFFF; font-size: 13px; font-weight: 600;
  line-height: 1.3; letter-spacing: -0.005em;
}
.short-tile-meta {
  font-size: 10.5px; color: rgba(255,255,255,0.85);
  margin-top: 5px; letter-spacing: 0.04em; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.short-tile-meta::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}
.short-tile-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-md);
}
.short-tile:hover .short-tile-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rail-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 2; cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.rail-nav.prev { left: -18px; }
.rail-nav.next { right: -18px; }
.rail-nav:hover {
  background: var(--ink); color: #FFFFFF;
  border-color: var(--ink);
  transform: translateY(-50%) scale(1.1);
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */

.quick-actions {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 40px;
}
.quick-action {
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px 20px; border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.25s var(--ease-out);
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-xs);
}
.quick-action:hover {
  border-color: var(--gold);
  background: var(--surface-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.quick-action-arrow {
  color: var(--muted-soft);
  transition: all 0.25s var(--ease-out);
}
.quick-action:hover .quick-action-arrow {
  color: var(--gold-deep);
  transform: translateX(3px);
}

/* ============================================================
   TABS
   ============================================================ */

.tabs {
  display: flex; gap: 4px;
  background: var(--surface-deep); padding: 4px;
  border-radius: 100px; width: fit-content; margin-bottom: 18px;
}
.tab {
  padding: 8px 18px; border-radius: 100px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all 0.2s var(--ease-out);
}
.tab:hover:not(.active) { color: var(--ink); }
.tab.active {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   COURSE CARDS
   ============================================================ */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 40px;
}
.course-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.course-thumb {
  aspect-ratio: 16 / 9; overflow: hidden; position: relative;
  background: var(--surface-hover);
}
.course-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.course-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.96); color: var(--navy);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
  z-index: 1;
}
.course-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.course-title {
  font-family: "Instrument Serif", serif;
  font-size: 22px; line-height: 1.2; color: var(--ink);
  margin-bottom: 8px; letter-spacing: -0.012em;
}
.course-desc {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.5; margin-bottom: 14px;
}
.course-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 14px;
  flex-wrap: wrap;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-soft); }
.progress-row { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.progress-track {
  flex: 1; height: 4px;
  background: var(--surface-hover);
  border-radius: 100px; overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  border-radius: 100px;
}
.progress-text {
  font-size: 12px; color: var(--muted); font-weight: 700;
  min-width: 36px; text-align: right;
}

/* ============================================================
   FLOATING AI WIDGET
   ============================================================ */

.ai-widget {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  display: flex; align-items: center; gap: 12px;
  animation: slide-up 0.6s var(--ease-spring) 0.6s both;
}
.ai-widget-hint {
  background: var(--surface); color: var(--ink);
  padding: 9px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: float 4s var(--ease-in-out) infinite;
}
.ai-widget-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow-navy);
  transition: all 0.3s var(--ease-out);
}
.ai-widget-btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.4;
  animation: pulse-ring 2.5s var(--ease-out) infinite;
}
.ai-widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 44px rgba(27, 43, 69, 0.35);
}
.ai-widget-btn-mark {
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--gold); font-size: 30px; line-height: 1;
}
.ai-widget-dot {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--navy);
}

/* AI PANEL */
.ai-panel-fixed {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  width: 420px; max-width: calc(100vw - 56px);
  height: 640px; max-height: calc(100vh - 56px);
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-2xl);
  animation: slide-up 0.4s var(--ease-spring);
}
.ai-panel-fixed.hidden { display: none; }

.ai-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface) 100%);
}
.ai-mark {
  width: 40px; height: 40px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--gold); font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.ai-info { flex: 1; }
.ai-name { font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; }
.ai-status {
  font-size: 11.5px; color: var(--success);
  display: flex; align-items: center; gap: 5px;
  font-weight: 500;
}
.ai-status-dot {
  width: 6px; height: 6px; background: var(--success); border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(45, 122, 79, 0.2);
  animation: pulse-soft 2s var(--ease-in-out) infinite;
}

.ai-body {
  flex: 1; overflow-y: auto; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-intro {
  background: linear-gradient(135deg, var(--surface-soft) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft);
  position: relative;
}
.ai-intro strong { color: var(--ink); font-weight: 700; }

.ai-msg-label {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 6px; margin-bottom: 2px;
}
.ai-suggestion {
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 14px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--ink-soft);
  cursor: pointer; transition: all 0.25s var(--ease-out);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; line-height: 1.4; text-align: left;
  font-family: inherit; width: 100%;
}
.ai-suggestion:hover {
  border-color: var(--gold);
  background: var(--surface-soft);
  transform: translateX(2px);
}
.ai-suggestion-icon {
  color: var(--muted-soft);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}
.ai-suggestion:hover .ai-suggestion-icon {
  transform: translateX(2px);
  color: var(--gold-deep);
}
.ai-last-conv {
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 14px; border-radius: var(--r-sm);
  cursor: pointer; transition: all 0.25s var(--ease-out);
  font-family: inherit; text-align: left; width: 100%;
}
.ai-last-conv:hover { border-color: var(--gold); background: var(--surface-soft); }
.ai-last-conv-q {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: 15px; color: var(--ink); line-height: 1.35; margin-bottom: 4px;
}
.ai-last-conv-meta { font-size: 11.5px; color: var(--muted-soft); font-weight: 500; }

.ai-input-wrap {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}
.ai-input {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px 4px 4px 16px;
  transition: all 0.25s var(--ease-out);
}
.ai-input:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(193, 154, 91, 0.12);
}
.ai-input input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 13.5px; padding: 9px 0; color: var(--ink);
}
.ai-input input::placeholder { color: var(--muted-soft); }
.ai-send {
  width: 36px; height: 36px;
  background: var(--navy); color: #FFFFFF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease-out);
}
.ai-send:hover { background: var(--navy-deep); transform: scale(1.05); }
.ai-disclaimer {
  font-size: 11px; color: var(--muted-soft);
  text-align: center; margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Icons */
.ic { width: 18px; height: 18px; stroke-width: 1.75; }
.ic-sm { width: 14px; height: 14px; stroke-width: 2; }
.ic-lg { width: 20px; height: 20px; stroke-width: 1.75; }

/* ============================================================
   COURSE DETAIL PAGE — the upgraded version
   ============================================================ */

.breadcrumb {
  font-size: 13px; color: var(--muted);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
  animation: fade 0.5s var(--ease-out) both;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s var(--ease-out); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--muted-soft); }
.breadcrumb-current { color: var(--ink); font-weight: 500; }

.course-detail-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 50%, var(--navy-deep) 100%);
  color: #FFFFFF;
  border-radius: var(--r-2xl);
  padding: 48px 56px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  animation: rise-slow 0.8s var(--ease-out) both;
  box-shadow: var(--shadow-2xl);
}
.course-detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 30%, rgba(193, 154, 91, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(193, 154, 91, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.course-detail-hero > * { position: relative; z-index: 1; }

.cd-eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.cd-title {
  font-family: "Instrument Serif", serif;
  font-size: 56px; line-height: 1.02; font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  max-width: 760px;
}
.cd-title em { font-style: italic; color: var(--gold-soft); }
.cd-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  max-width: 600px;
  margin-bottom: 32px;
}
.cd-stats {
  display: flex; gap: 44px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 28px;
}
.cd-stat-num {
  font-family: "Instrument Serif", serif;
  font-size: 34px; line-height: 1; font-weight: 400;
  color: #FFFFFF;
}
.cd-stat-label {
  font-size: 10.5px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 8px; font-weight: 700;
}
.cd-progress-line {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.cd-pct { color: var(--gold-soft); font-weight: 700; }
.cd-last { color: rgba(255,255,255,0.55); }
.cd-progress-track {
  height: 5px; background: rgba(255,255,255,0.12);
  border-radius: 100px; overflow: hidden;
  max-width: 620px; margin-bottom: 28px;
}
.cd-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  border-radius: 100px;
}
.cd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Curriculum heading + module groups */
.curriculum-heading {
  margin-top: 8px;
  margin-bottom: 24px;
  animation: rise 0.6s var(--ease-out) 0.2s both;
}

.module-group {
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.module-group:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.module-header {
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface) 100%);
}
.module-title-wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.module-num {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--gold-deep);
}
.module-title {
  font-family: "Instrument Serif", serif;
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.module-meta {
  font-size: 12px; color: var(--muted);
}

.lesson-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 24px; align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}
.lesson-row:last-child { border-bottom: none; }
.lesson-row:hover {
  background: var(--surface-soft);
  padding-left: 32px;
}
.lesson-row.current {
  background: linear-gradient(90deg, var(--gold-pale) 0%, var(--surface) 80%);
  border-left: 3px solid var(--gold);
  padding-left: 23px;
}
.lesson-row.current:hover { padding-left: 29px; }
.lesson-row.locked { cursor: not-allowed; opacity: 0.5; }
.lesson-row.locked:hover { padding-left: 26px; background: transparent; }

.lesson-num {
  font-family: "Instrument Serif", serif;
  font-size: 26px; font-style: italic;
  color: var(--muted-soft);
}
.lesson-row.current .lesson-num { color: var(--gold-deep); }
.lesson-row.complete .lesson-num { color: var(--success); }

.lesson-info { min-width: 0; }
.lesson-title {
  font-size: 15.5px; font-weight: 600;
  color: var(--ink); margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.lesson-row.current .lesson-title { color: var(--gold-deep); }
.lesson-meta {
  font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.lesson-meta-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 500;
}
.lesson-duration { font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.lesson-status {
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.lesson-status.complete { color: var(--success); }
.lesson-status.continue { color: var(--gold-deep); }
.lesson-status.locked { color: var(--muted-soft); }

/* What you'll learn */
.cd-section {
  margin-top: 56px;
  animation: rise 0.7s var(--ease-out) both;
}
.cd-section-title {
  font-family: "Instrument Serif", serif;
  font-size: 28px; font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.cd-section-title em { font-style: italic; color: var(--gold-deep); }

/* What you'll learn — editorial "syllabus" style */
.outcomes-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 36px;
  margin-top: 12px;
}
.outcome-item {
  position: relative;
  padding-bottom: 4px;
  animation: rise 0.6s var(--ease-out) both;
}
.outcome-item:nth-child(1) { animation-delay: 0.05s; }
.outcome-item:nth-child(2) { animation-delay: 0.10s; }
.outcome-item:nth-child(3) { animation-delay: 0.15s; }
.outcome-item:nth-child(4) { animation-delay: 0.20s; }
.outcome-item:nth-child(5) { animation-delay: 0.25s; }
.outcome-item:nth-child(6) { animation-delay: 0.30s; }
.outcome-num {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-strong);
  min-width: 38px;
}
.outcome-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 42ch;
}

/* Legacy classes kept for backward compatibility — the redesigned template
   uses .outcomes-editorial / .outcome-item / .outcome-num / .outcome-body. */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.outcome-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.25s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.outcome-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.outcome-icon {
  width: 32px; height: 32px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold-deep);
}
.outcome-text {
  font-size: 14px; color: var(--ink);
  line-height: 1.5; font-weight: 500;
  letter-spacing: -0.005em;
}

@media (max-width: 760px) {
  .outcomes-editorial {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
  }
}

/* Instructor */
.instructor-panel {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.instructor-panel::before {
  content: '"';
  position: absolute;
  top: 12px; right: 36px;
  font-family: "Instrument Serif", serif;
  font-size: 120px; line-height: 1;
  color: var(--gold-pale);
  z-index: 0;
}
.instructor-panel > * { position: relative; }
.instructor-photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-md);
}
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; }
.instructor-quote {
  font-family: "Instrument Serif", serif;
  font-size: 22px; line-height: 1.4;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.instructor-byline {
  font-size: 13.5px; color: var(--muted);
  letter-spacing: 0.02em;
}
.instructor-byline strong { color: var(--ink); font-weight: 700; }

/* Worksheet downloads */
.resources-panel {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.resource-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.resource-row:last-child { border-bottom: none; }
.resource-row:hover .resource-icon { background: var(--gold); color: var(--navy-deep); }
.resource-row:hover .resource-download { color: var(--gold-deep); transform: translateX(3px); }
.resource-icon {
  width: 38px; height: 38px;
  background: var(--surface-deep);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: all 0.25s var(--ease-out);
}
.resource-info { flex: 1; min-width: 0; }
.resource-title {
  font-size: 14.5px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.resource-meta { font-size: 12px; color: var(--muted); }
.resource-download {
  color: var(--muted); font-size: 13px;
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
}

/* ============================================================
   BRIEFS PAGE
   ============================================================ */

.brief-feature {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 50%, var(--navy-deep) 100%);
  border-radius: var(--r-2xl);
  padding: 48px;
  color: #FFFFFF;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: rise-slow 0.8s var(--ease-out) both;
  box-shadow: var(--shadow-2xl);
}
.brief-feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 25%, rgba(193, 154, 91, 0.22) 0%, transparent 55%);
  pointer-events: none;
}
.brief-feature > * { position: relative; z-index: 1; }

.brief-row {
  display: grid; grid-template-columns: 90px 1fr auto;
  gap: 32px; align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.brief-row:hover {
  padding-left: 12px;
}
.brief-row:hover .brief-arrow {
  color: var(--gold-deep);
  transform: translateX(4px);
}
.brief-date {
  font-family: "Instrument Serif", serif;
  font-style: italic; color: var(--muted); font-size: 15px;
}
.brief-title-row {
  font-family: "Instrument Serif", serif;
  font-size: 24px; line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.012em;
  transition: color 0.2s var(--ease-out);
}
.brief-row:hover .brief-title-row { color: var(--gold-deep); }
.brief-summary {
  font-size: 14.5px; color: var(--muted);
  line-height: 1.55;
}
.brief-arrow {
  color: var(--muted);
  transition: all 0.25s var(--ease-out);
  font-size: 22px;
  line-height: 1;
}
.brief-month-heading {
  font-family: "Instrument Serif", serif;
  font-size: 26px;
  color: var(--muted);
  margin: 48px 0 8px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */

.account-header {
  display: flex; align-items: center; gap: 24px;
  padding: 8px 0 40px;
  animation: fade 0.6s var(--ease-out) both;
}
.account-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", serif; font-size: 36px;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--surface);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 26px;
  transition: all 0.25s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.stat-label {
  font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px; font-weight: 700;
}
.stat-value {
  font-family: "Instrument Serif", serif;
  font-size: 42px; line-height: 1; font-weight: 400;
  letter-spacing: -0.025em;
}
.stat-value em {
  font-style: italic; color: var(--gold-deep);
  font-size: 22px;
}
.stat-meta {
  font-size: 12.5px; color: var(--muted);
  margin-top: 10px;
}

.membership-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 50%, var(--navy-deep) 100%);
  color: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-navy);
}
.membership-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(193, 154, 91, 0.2) 0%, transparent 55%);
}
.membership-card > * { position: relative; }

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

@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .sidebar { display: none; }
  .ai-panel-fixed { width: calc(100vw - 24px); right: 12px; bottom: 12px; }
  .hero { padding: 32px 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-content { border-left: none; padding-left: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.16); }
  .hero-cta { flex-direction: row; }
  .hero-title { font-size: 30px; }
  .cd-title { font-size: 38px; }
  .course-detail-hero { padding: 32px 28px; }
  .brief-feature { grid-template-columns: 1fr; padding: 32px; }
  .instructor-panel { grid-template-columns: 1fr; padding: 28px; gap: 20px; text-align: left; }
  .quick-actions { grid-template-columns: 1fr; }
  .membership-card { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .search-wrap { order: 3; margin: 4px 0 0; max-width: 100%; flex-basis: 100%; }
  .streak-pill { font-size: 12px; padding: 6px 12px 6px 8px; }
  .hero { padding: 24px 20px; }
  .hero-number { font-size: 48px; }
  .hero-title { font-size: 24px; }
  .cd-title { font-size: 28px; }
  .cd-stats { gap: 24px; flex-wrap: wrap; }
  .cd-stat-num { font-size: 26px; }
  .lesson-row {
    grid-template-columns: 40px 1fr;
    gap: 14px; padding: 16px 18px;
  }
  .lesson-row .lesson-duration,
  .lesson-row .lesson-status { grid-column: 2; padding-top: 4px; }
  .section-title h2 { font-size: 22px; }
  .ai-widget { bottom: 16px; right: 16px; }
  .ai-widget-hint { display: none; }
  .stat-card { padding: 18px 20px; }
  .stat-value { font-size: 32px; }
  .continue-strip { flex-wrap: wrap; }
  .continue-progress { display: none; }
  .module-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   LESSON PAGE — the watch experience
   ============================================================ */

.lesson-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* MAIN VIDEO AREA */
.lesson-main { min-width: 0; }

.lesson-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 16px;
  animation: fade 0.5s var(--ease-out) both;
}
.lesson-eyebrow a { color: var(--muted); transition: color 0.2s var(--ease-out); }
.lesson-eyebrow a:hover { color: var(--ink); }
.lesson-eyebrow-sep { color: var(--muted-soft); }
.lesson-eyebrow-current { color: var(--ink); font-weight: 500; }

/* Back-to-course pill — prominent, persistent escape hatch from a lesson */
.lesson-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 14px;
  transition: all 0.22s var(--ease-out);
  max-width: 100%;
  letter-spacing: -0.005em;
  animation: fade 0.5s var(--ease-out) both;
}
.lesson-back-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
  transform: translateX(-3px);
  box-shadow: var(--shadow-sm);
}
.lesson-back-link svg {
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-out);
}
.lesson-back-link:hover svg {
  transform: translateX(-2px);
}
.lesson-back-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.lesson-title-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 24px;
  animation: rise 0.6s var(--ease-out) 0.05s both;
}
.lesson-h1 {
  font-family: "Instrument Serif", serif;
  font-size: 38px; line-height: 1.1; font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.lesson-h1 em { font-style: italic; color: var(--gold-deep); }
.lesson-pos {
  font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.lesson-pos-chip {
  background: var(--gold-pale);
  color: var(--gold-deep);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* VIDEO PLAYER */
.video-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom: 24px;
  animation: rise 0.7s var(--ease-out) 0.1s both;
}
.video-poster {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.video-poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.6) 100%);
}

/* Big play button (shown when paused / before start) */
.video-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  border: none;
  z-index: 2;
}
.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: #FFFFFF;
}
.video-play-btn svg { color: var(--navy-deep); margin-left: 5px; }

/* Custom controls bar (visible on hover / when playing) */
.video-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  z-index: 3;
  color: #FFFFFF;
}
.video-progress {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 100px;
  margin-bottom: 12px;
  position: relative;
  cursor: pointer;
}
.video-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
  position: relative;
}
.video-progress-fill::after {
  content: "";
  position: absolute;
  right: -6px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(193, 154, 91, 0.3);
}
.video-progress-buffer {
  position: absolute; top: 0; left: 0;
  height: 100%; background: rgba(255,255,255,0.25);
  border-radius: 100px;
}
.video-controls-row {
  display: flex; align-items: center; gap: 16px;
}
.video-btn {
  background: none; border: none; color: #FFFFFF;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s var(--ease-out);
}
.video-btn:hover { background: rgba(255,255,255,0.15); }
.video-time {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.video-time .sep { opacity: 0.5; margin: 0 6px; }
.video-spacer { flex: 1; }
.video-speed {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #FFFFFF;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
}
.video-speed:hover { background: rgba(255,255,255,0.22); }

/* LESSON ACTIONS BAR — below video */
.lesson-actions-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
  animation: rise 0.6s var(--ease-out) 0.18s both;
}
.lesson-actions-left {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.lesson-action-meta {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.lesson-action-meta strong { color: var(--ink); font-weight: 700; }
.lesson-actions-right {
  display: flex; align-items: center; gap: 10px;
}

/* TABS — lesson page */
.lesson-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  gap: 4px;
  animation: fade 0.6s var(--ease-out) 0.22s both;
}
.lesson-tab {
  padding: 14px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease-out);
  display: flex; align-items: center; gap: 8px;
  background: none; border: none;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.lesson-tab:hover { color: var(--ink); }
.lesson-tab.active {
  color: var(--ink);
}
.lesson-tab.active::after {
  content: "";
  position: absolute; bottom: -1px; left: 12px; right: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 100px;
}
.lesson-tab-count {
  background: var(--surface-deep);
  color: var(--muted);
  font-size: 11px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.lesson-tab.active .lesson-tab-count {
  background: var(--gold-pale);
  color: var(--gold-deep);
}

.lesson-tab-content {
  display: none;
  animation: fade 0.4s var(--ease-out);
}
.lesson-tab-content.active {
  display: block;
}

/* OVERVIEW / NOTES TAB */
.lesson-prose {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 720px;
}
.lesson-prose p { margin-bottom: 16px; }
.lesson-prose p:last-child { margin-bottom: 0; }
.lesson-prose h3 {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin: 28px 0 10px;
  letter-spacing: -0.012em;
}
.lesson-prose ul, .lesson-prose ol {
  margin-bottom: 16px;
  padding-left: 22px;
}
.lesson-prose li {
  margin-bottom: 8px;
}
.lesson-prose strong { color: var(--ink); font-weight: 700; }
.lesson-prose em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--gold-deep);
}

/* Key takeaways box */
.lesson-keys {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--surface-soft) 100%);
  border: 1px solid rgba(193, 154, 91, 0.2);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 24px 0;
}
.lesson-keys-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.lesson-keys ul {
  margin: 0; padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.lesson-keys li { margin-bottom: 6px; }

/* WORKSHEET TAB */
.worksheet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-xs);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.worksheet-thumb {
  width: 100px; height: 130px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--r-sm);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  box-shadow: var(--shadow-md);
}
.worksheet-thumb::before {
  content: "PDF";
  position: absolute; top: 12px; right: 12px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.7;
}
.worksheet-info {
  min-width: 0;
}
.worksheet-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.worksheet-title {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.worksheet-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 460px;
}
.worksheet-meta {
  display: flex; gap: 16px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.worksheet-meta-item {
  display: flex; align-items: center; gap: 6px;
}

/* TRANSCRIPT TAB */
.transcript-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.transcript-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.transcript-search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: all 0.2s var(--ease-out);
}
.transcript-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(193, 154, 91, 0.12);
}
.transcript-search-icon {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted-soft);
}
.transcript-block {
  max-width: 760px;
}
.transcript-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding 0.2s var(--ease-out);
}
.transcript-row:hover {
  padding-left: 8px;
}
.transcript-row:hover .transcript-time {
  color: var(--gold-deep);
}
.transcript-row:last-child { border-bottom: none; }
.transcript-time {
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 2px;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}
.transcript-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.transcript-row.active .transcript-time { color: var(--gold); }
.transcript-row.active .transcript-text {
  color: var(--ink);
  font-weight: 500;
}

/* CURRICULUM SIDEBAR */
.curriculum-sidebar {
  align-self: start;
  position: sticky;
  /* Sit below the sticky topbar with the same rhythm as the main sidebar. */
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 6px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  animation: rise 0.6s var(--ease-out) 0.12s both;
}
.curr-header {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border);
  margin: 0 2px;
}
.curr-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.curr-title {
  font-family: "Instrument Serif", serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.curr-progress-meta {
  display: flex; justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.curr-progress-meta strong { color: var(--gold-deep); font-weight: 700; }
.curr-progress-bar {
  height: 3px;
  background: var(--surface-hover);
  border-radius: 100px;
  overflow: hidden;
}
.curr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  border-radius: 100px;
}

.curr-body {
  overflow-y: auto;
  flex: 1;
  padding: 6px 2px;
  scrollbar-width: thin;
}
.curr-body::-webkit-scrollbar { width: 4px; }
.curr-body::-webkit-scrollbar-thumb {
  background: var(--surface-deep); border-radius: 100px;
}

.curr-module {
  padding: 12px 12px 6px;
}
.curr-module-num {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 2px;
}
.curr-module-title {
  font-family: "Instrument Serif", serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 4px;
}

.curr-lesson {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  margin-bottom: 1px;
}
.curr-lesson:hover { background: var(--surface-hover); }
.curr-lesson.current {
  background: var(--gold-pale);
}
.curr-lesson.locked {
  cursor: not-allowed;
  opacity: 0.45;
}
.curr-lesson.locked:hover { background: transparent; }
.curr-lesson-num {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted-soft);
  text-align: center;
}
.curr-lesson.current .curr-lesson-num { color: var(--gold-deep); }
.curr-lesson.complete .curr-lesson-num {
  position: relative;
  color: transparent;
}
.curr-lesson.complete .curr-lesson-num::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--success);
}
.curr-lesson.complete .curr-lesson-num::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%; transform: translate(-65%, -55%) rotate(45deg);
  width: 4px; height: 9px;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
}
.curr-lesson-info { min-width: 0; }
.curr-lesson-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.curr-lesson.current .curr-lesson-title {
  color: var(--gold-deep);
  font-weight: 600;
}
.curr-lesson-dur {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.curr-lesson.locked .curr-lesson-dur {
  display: flex;
  align-items: center;
}

/* LESSON PAGE RESPONSIVE */
@media (max-width: 1100px) {
  .lesson-page {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .curriculum-sidebar {
    position: static;
    max-height: none;
    order: 2;
  }
  .curr-body { max-height: 480px; }
  .lesson-h1 { font-size: 28px; }
}
@media (max-width: 700px) {
  .lesson-h1 { font-size: 22px; }
  .lesson-title-row { gap: 12px; }
  .video-play-btn { width: 64px; height: 64px; }
  .lesson-tab { padding: 12px 14px; font-size: 13px; }
  .worksheet-card { grid-template-columns: 1fr; text-align: left; padding: 24px; }
  .worksheet-thumb { width: 80px; height: 104px; }
  .lesson-actions-bar { flex-direction: column; align-items: stretch; }
  .lesson-actions-left, .lesson-actions-right { width: 100%; }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

body.auth-page { background: var(--bg); }
body.auth-page::before { opacity: 0.4; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-card-side {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
}
.auth-card {
  width: 100%; max-width: 420px;
  animation: rise 0.7s var(--ease-out) both;
}
.auth-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  margin-bottom: 48px;
}
.auth-brand .brand-mark { width: 38px; height: 38px; font-size: 22px; }
.auth-brand .brand-text { color: var(--ink); font-size: 17px; }

.auth-eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.auth-title {
  font-family: "Instrument Serif", serif;
  font-size: 44px; line-height: 1.05; font-weight: 400;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
}
.auth-title em { font-style: italic; color: var(--gold-deep); }
.auth-lead {
  font-size: 15.5px; color: var(--muted);
  line-height: 1.55; margin-bottom: 36px;
  max-width: 380px;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.auth-field {
  display: flex; flex-direction: column; gap: 7px;
}
.auth-label {
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.auth-input {
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: all 0.2s var(--ease-out);
  font-family: inherit;
  width: 100%;
}
.auth-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(193, 154, 91, 0.12);
}
.auth-input::placeholder { color: var(--muted-soft); }

.auth-field-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
}
.auth-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-soft);
  cursor: pointer;
}
.auth-checkbox input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.auth-link {
  font-size: 13.5px; font-weight: 600;
  color: var(--gold-deep);
  transition: color 0.2s var(--ease-out);
}
.auth-link:hover { color: var(--ink); }

.auth-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0;
  font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.auth-sso {
  display: flex; flex-direction: column; gap: 10px;
}
.auth-sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s var(--ease-out);
}
.auth-sso-btn:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.auth-footer {
  margin-top: 32px;
  font-size: 13.5px; color: var(--muted);
  text-align: center;
}
.auth-footer a {
  color: var(--gold-deep); font-weight: 600;
}
.auth-footer a:hover { color: var(--ink); }

/* RIGHT SIDE — editorial panel */
.auth-feature-side {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 50%, var(--navy-deep) 100%);
  color: #FFFFFF;
  padding: 48px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-feature-side::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(193, 154, 91, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(193, 154, 91, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.auth-feature-side::after {
  content: ""; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border: 1px solid rgba(193, 154, 91, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.auth-feature {
  max-width: 460px; position: relative; z-index: 1;
  animation: rise 0.8s var(--ease-out) 0.15s both;
}
.auth-feature-eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.auth-feature-eyebrow-dot {
  width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%;
  animation: pulse-soft 2.5s var(--ease-in-out) infinite;
}
.auth-feature-quote {
  font-family: "Instrument Serif", serif;
  font-size: 32px; line-height: 1.25; font-weight: 400;
  letter-spacing: -0.018em;
  margin-bottom: 28px;
}
.auth-feature-quote em { font-style: italic; color: var(--gold-soft); }
.auth-feature-byline {
  display: flex; align-items: center; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.auth-feature-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}
.auth-feature-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-feature-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.auth-feature-title { font-size: 13px; color: rgba(255,255,255,0.65); }

/* AUTH RESPONSIVE */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-feature-side { display: none; }
}
@media (max-width: 600px) {
  .auth-card-side { padding: 32px 20px; }
  .auth-title { font-size: 34px; }
  .auth-brand { margin-bottom: 32px; }
}

/* ============================================================
   SINGLE BRIEF / ARTICLE PAGE
   ============================================================ */

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.article-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 24px;
  animation: fade 0.5s var(--ease-out) both;
}
.article-eyebrow a { color: var(--muted); transition: color 0.2s var(--ease-out); }
.article-eyebrow a:hover { color: var(--ink); }
.article-eyebrow-sep { color: var(--muted-soft); }

.article-volume {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--gold-deep);
  margin-bottom: 12px;
  animation: rise 0.6s var(--ease-out) 0.05s both;
}

.article-title {
  font-family: "Instrument Serif", serif;
  font-size: 52px; line-height: 1.08; font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 18px;
  animation: rise 0.7s var(--ease-out) 0.1s both;
}
.article-title em { font-style: italic; color: var(--gold-deep); }

.article-deck {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
  animation: rise 0.7s var(--ease-out) 0.15s both;
}

.article-meta {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  flex-wrap: wrap;
  animation: fade 0.6s var(--ease-out) 0.2s both;
}
.article-author {
  display: flex; align-items: center; gap: 12px;
}
.article-author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
}
.article-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-author-name {
  font-size: 14px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.005em;
}
.article-author-meta {
  font-size: 12.5px; color: var(--muted);
}
.article-meta-spacer { flex: 1; }
.article-meta-action {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.article-meta-action:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
  animation: rise 0.8s var(--ease-out) 0.25s both;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  animation: fade 0.8s var(--ease-out) 0.3s both;
}
.article-body p { margin-bottom: 22px; }
.article-body p:first-child::first-letter {
  font-family: "Instrument Serif", serif;
  font-size: 58px;
  line-height: 0.9;
  float: left;
  margin: 8px 12px 0 0;
  color: var(--gold-deep);
  font-weight: 400;
}
.article-body h2 {
  font-family: "Instrument Serif", serif;
  font-size: 32px; font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 48px 0 18px;
  line-height: 1.15;
}
.article-body h2 em { font-style: italic; color: var(--gold-deep); }
.article-body h3 {
  font-family: "Instrument Serif", serif;
  font-size: 24px; font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 36px 0 14px;
}
.article-body em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
}
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body ul, .article-body ol {
  margin-bottom: 22px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 10px;
}
.article-body blockquote {
  margin: 32px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--gold);
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.008em;
}
.article-body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(142, 111, 53, 0.3);
  transition: text-decoration-color 0.2s var(--ease-out);
}
.article-body a:hover { text-decoration-color: var(--gold-deep); }

.article-callout {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--surface-soft) 100%);
  border: 1px solid rgba(193, 154, 91, 0.2);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 32px 0;
}
.article-callout-eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.article-callout-text {
  font-family: "Instrument Serif", serif;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.008em;
}

.article-end {
  display: flex; align-items: center; justify-content: center;
  margin: 48px 0;
  color: var(--gold);
  font-size: 24px;
  letter-spacing: 0.5em;
}

/* Article footer — author bio, related */
.article-footer {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.article-author-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
  box-shadow: var(--shadow-xs);
}
.article-author-card-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-sm);
}
.article-author-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.article-author-card-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.article-author-card-name {
  font-family: "Instrument Serif", serif;
  font-size: 24px; font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: -0.012em;
}
.article-author-card-bio {
  font-size: 14px; color: var(--muted);
  line-height: 1.55;
}

.article-related-heading {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.article-related-heading em { font-style: italic; color: var(--gold-deep); }
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.article-related-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.article-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.article-related-date {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.article-related-title {
  font-family: "Instrument Serif", serif;
  font-size: 19px; line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ARTICLE RESPONSIVE */
@media (max-width: 1100px) {
  .article-title { font-size: 40px; }
  .article-deck { font-size: 19px; }
  .article-body { font-size: 16.5px; }
  .article-body h2 { font-size: 26px; }
  .article-author-card { grid-template-columns: 1fr; text-align: left; padding: 28px; }
}
@media (max-width: 700px) {
  .article-title { font-size: 30px; }
  .article-deck { font-size: 17px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .article-body p:first-child::first-letter { font-size: 44px; }
  .article-callout { padding: 20px 22px; }
  .article-callout-text { font-size: 17px; }
}

/* ============================================================
   COURSE COMPLETE / CERTIFICATE PAGE
   ============================================================ */

.complete-page {
  text-align: center;
  padding: 40px 24px 80px;
  position: relative;
}

.complete-stage {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.complete-medal {
  width: 120px; height: 120px;
  margin: 0 auto 32px;
  background: linear-gradient(140deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow-gold);
  animation: slide-up 0.8s var(--ease-spring) both;
}
.complete-medal::before {
  content: "";
  position: absolute; inset: -8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-ring 3s var(--ease-out) infinite;
}
.complete-medal::after {
  content: "";
  position: absolute; inset: -20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.15;
  animation: pulse-ring 3s var(--ease-out) infinite 0.5s;
}
.complete-medal-inner {
  font-family: "Instrument Serif", serif;
  font-size: 56px; font-style: italic;
  color: #FFFFFF;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.complete-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
  animation: fade 0.6s var(--ease-out) 0.3s both;
}
.complete-title {
  font-family: "Instrument Serif", serif;
  font-size: 56px; line-height: 1.05; font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  animation: rise 0.8s var(--ease-out) 0.4s both;
}
.complete-title em { font-style: italic; color: var(--gold-deep); }
.complete-lead {
  font-size: 17.5px; color: var(--muted);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto 40px;
  animation: rise 0.8s var(--ease-out) 0.5s both;
}

.complete-course-name {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--ink);
}

.complete-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 40px 0;
  animation: rise 0.8s var(--ease-out) 0.6s both;
}
.complete-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-xs);
}
.complete-stat-num {
  font-family: "Instrument Serif", serif;
  font-size: 36px; line-height: 1;
  font-weight: 400;
  letter-spacing: -0.022em;
  margin-bottom: 8px;
}
.complete-stat-num em { font-style: italic; color: var(--gold-deep); font-size: 18px; }
.complete-stat-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

.complete-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 56px;
  animation: rise 0.8s var(--ease-out) 0.7s both;
}

/* Certificate */
.certificate {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 50%, var(--navy-deep) 100%);
  color: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 56px 64px;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-2xl);
  animation: rise-slow 0.9s var(--ease-out) 0.8s both;
}
.certificate::before {
  content: ""; position: absolute; inset: 16px;
  border: 1px solid rgba(193, 154, 91, 0.25);
  border-radius: var(--r-lg);
  pointer-events: none;
}
.certificate::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(193, 154, 91, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(193, 154, 91, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.certificate > * { position: relative; z-index: 1; }

.cert-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.cert-presented {
  font-family: "Instrument Serif", serif;
  font-size: 16px; font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.cert-name {
  font-family: "Instrument Serif", serif;
  font-size: 44px; line-height: 1.1;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: -0.018em;
}
.cert-for {
  font-family: "Instrument Serif", serif;
  font-size: 16px; font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.cert-course-title {
  font-family: "Instrument Serif", serif;
  font-size: 32px; line-height: 1.2;
  font-weight: 400;
  color: var(--gold-soft);
  font-style: italic;
  margin-bottom: 36px;
  letter-spacing: -0.012em;
}
.cert-divider {
  width: 80px; height: 1px;
  background: rgba(193, 154, 91, 0.4);
  margin: 0 auto 36px;
}
.cert-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.cert-signature {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold-soft);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.cert-signed {
  font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600;
}
.cert-id {
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

.complete-next {
  margin-top: 48px;
  animation: rise 0.8s var(--ease-out) 1s both;
}
.complete-next-heading {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  text-align: left;
}
.complete-next-heading em { font-style: italic; color: var(--gold-deep); }

/* COMPLETE RESPONSIVE */
@media (max-width: 1100px) {
  .complete-title { font-size: 42px; }
  .certificate { padding: 40px 32px; }
  .cert-name { font-size: 34px; }
  .cert-course-title { font-size: 24px; }
}
@media (max-width: 700px) {
  .complete-medal { width: 96px; height: 96px; }
  .complete-medal-inner { font-size: 44px; }
  .complete-title { font-size: 32px; }
  .complete-lead { font-size: 16px; }
  .certificate { padding: 32px 24px; }
  .cert-name { font-size: 26px; }
  .cert-course-title { font-size: 20px; }
  .cert-footer { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.login-left {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 50%, var(--navy-deep) 100%);
  color: #FFFFFF;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 30%, rgba(193, 154, 91, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(193, 154, 91, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.login-left::after {
  content: ""; position: absolute;
  top: -120px; right: -120px;
  width: 460px; height: 460px;
  border: 1px solid rgba(193, 154, 91, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.login-left > * { position: relative; z-index: 1; }

.login-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px;
  margin-bottom: auto;
  animation: fade 0.6s var(--ease-out) both;
}
.login-brand .brand-mark {
  width: 38px; height: 38px;
  background: var(--gold);
  color: var(--navy-deep);
}
.login-brand-text { color: #FFFFFF; letter-spacing: -0.01em; }
.login-brand-text em {
  font-family: "Instrument Serif", serif;
  color: var(--gold-soft); font-style: italic;
  margin-left: 3px; font-weight: 400;
}

.login-hero {
  margin-top: auto;
  animation: rise-slow 0.8s var(--ease-out) 0.15s both;
}
.login-eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.login-eyebrow-line {
  width: 32px; height: 1px;
  background: var(--gold);
}
.login-quote {
  font-family: "Instrument Serif", serif;
  font-size: 38px; line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.018em;
  max-width: 560px;
  margin-bottom: 28px;
}
.login-quote em { font-style: italic; color: var(--gold-soft); }
.login-byline {
  font-size: 14px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.login-byline strong { color: var(--gold); font-weight: 600; }

.login-footer {
  margin-top: 64px;
  display: flex; gap: 28px;
  font-size: 12px; color: rgba(255,255,255,0.45);
  animation: fade 0.7s var(--ease-out) 0.4s both;
}
.login-footer a { color: rgba(255,255,255,0.65); transition: color 0.2s var(--ease-out); }
.login-footer a:hover { color: #FFFFFF; }

.login-right {
  background: var(--bg);
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  animation: rise 0.7s var(--ease-out) 0.2s both;
}
.login-h1 {
  font-family: "Instrument Serif", serif;
  font-size: 38px; line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.022em;
  margin-bottom: 10px;
  color: var(--ink);
}
.login-h1 em { font-style: italic; color: var(--gold-deep); }
.login-sub {
  font-size: 15px; color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.55;
}

.login-method-toggle {
  display: flex;
  background: var(--surface-deep);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}
.login-method-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13.5px; font-weight: 600;
  color: var(--muted);
  cursor: pointer; transition: all 0.25s var(--ease-out);
  background: none; border: none;
  font-family: inherit;
}
.login-method-btn:hover:not(.active) { color: var(--ink); }
.login-method-btn.active {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.login-field {
  margin-bottom: 18px;
}
.login-label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft); letter-spacing: -0.005em;
  margin-bottom: 7px;
}
.login-input {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: all 0.25s var(--ease-out);
}
.login-input::placeholder { color: var(--muted-soft); }
.login-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(193, 154, 91, 0.12);
}

.login-options-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  font-size: 13.5px;
}
.login-remember {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-soft); cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}
.login-forgot {
  color: var(--gold-deep);
  font-weight: 600;
  transition: color 0.2s var(--ease-out);
}
.login-forgot:hover { color: var(--navy); text-decoration: underline; }

.login-submit {
  width: 100%;
  padding: 14px 22px;
  background: var(--navy);
  color: #FFFFFF;
  border: none; border-radius: 100px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.25s var(--ease-out);
  font-family: inherit;
  box-shadow: var(--shadow-navy);
}
.login-submit:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(27, 43, 69, 0.32);
}
.login-submit svg { transition: transform 0.2s var(--ease-out); }
.login-submit:hover svg { transform: translateX(3px); }

.login-divider {
  text-align: center;
  margin: 28px 0;
  position: relative;
  font-size: 12px; color: var(--muted-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
}
.login-divider::before, .login-divider::after {
  content: ""; position: absolute; top: 50%;
  width: calc(50% - 30px);
  height: 1px; background: var(--border);
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.login-magic-info {
  background: var(--gold-pale);
  border: 1px solid rgba(193, 154, 91, 0.25);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.login-magic-info-icon {
  width: 20px; height: 20px;
  color: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 1px;
}
.login-magic-info strong { color: var(--ink); font-weight: 700; }

.login-help {
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.login-help a {
  color: var(--gold-deep);
  font-weight: 600;
  transition: color 0.2s var(--ease-out);
}
.login-help a:hover { color: var(--navy); }

/* Login responsive */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-left {
    padding: 32px 32px 48px;
    min-height: auto;
  }
  .login-quote { font-size: 28px; }
  .login-right { padding: 40px 28px 32px; }
  .login-h1 { font-size: 30px; }
  .login-footer { margin-top: 32px; }
}
@media (max-width: 480px) {
  .login-left { padding: 28px 24px 36px; }
  .login-quote { font-size: 24px; }
  .login-right { padding: 32px 20px 24px; }
  .login-h1 { font-size: 26px; }
}

/* ============================================================
   SINGLE BRIEF / ARTICLE PAGE
   ============================================================ */

.brief-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.brief-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--muted);
  font-weight: 500;
  margin-bottom: 28px;
  transition: color 0.2s var(--ease-out);
  animation: fade 0.5s var(--ease-out) both;
}
.brief-back:hover { color: var(--ink); }
.brief-back svg { transition: transform 0.2s var(--ease-out); }
.brief-back:hover svg { transform: translateX(-3px); }

.brief-header {
  margin-bottom: 36px;
  animation: rise 0.7s var(--ease-out) both;
}
.brief-issue {
  font-family: "Instrument Serif", serif;
  font-size: 14.5px; font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.brief-title {
  font-family: "Instrument Serif", serif;
  font-size: 46px; line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--ink);
}
.brief-title em { font-style: italic; color: var(--gold-deep); }
.brief-lead {
  font-family: "Instrument Serif", serif;
  font-size: 22px; line-height: 1.45;
  font-weight: 400; font-style: italic;
  color: var(--muted);
  letter-spacing: -0.005em;
  margin-bottom: 32px;
  max-width: 640px;
}

.brief-meta-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  font-size: 13.5px; color: var(--muted);
}
.brief-meta-left {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.brief-meta-author {
  display: flex; align-items: center; gap: 10px;
}
.brief-meta-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  overflow: hidden;
}
.brief-meta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brief-meta-author strong { color: var(--ink); font-weight: 600; }
.brief-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-soft); }
.brief-meta-right { display: flex; align-items: center; gap: 8px; }
.brief-meta-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.brief-meta-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}
.brief-meta-btn.saved {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold-deep);
}

.brief-cover {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}
.brief-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.brief-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.brief-content p {
  margin-bottom: 22px;
}
.brief-content p:first-of-type::first-letter {
  font-family: "Instrument Serif", serif;
  font-size: 64px;
  font-weight: 400;
  float: left;
  line-height: 0.95;
  margin: 4px 12px 0 0;
  color: var(--gold-deep);
}
.brief-content h2 {
  font-family: "Instrument Serif", serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.15;
}
.brief-content h2 em { font-style: italic; color: var(--gold-deep); }
.brief-content h3 {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: 36px 0 12px;
  letter-spacing: -0.012em;
}
.brief-content strong {
  color: var(--ink);
  font-weight: 700;
}
.brief-content em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--gold-deep);
}
.brief-content ul, .brief-content ol {
  margin: 16px 0 24px 0;
  padding-left: 24px;
}
.brief-content li {
  margin-bottom: 10px;
}
.brief-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 32px 0;
  padding: 8px 0 8px 28px;
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.brief-content blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.brief-callout {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--surface-soft) 100%);
  border: 1px solid rgba(193, 154, 91, 0.2);
  border-radius: var(--r-md);
  padding: 28px 32px;
  margin: 32px 0;
}
.brief-callout-eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.brief-callout h3 {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.012em;
}
.brief-callout p {
  font-size: 15px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.brief-end {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.brief-end-mark {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  font-style: italic;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.brief-signoff {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
}
.brief-signoff-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
}
.brief-signoff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brief-signoff-text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}
.brief-signoff-text strong { color: var(--ink); font-weight: 700; }
.brief-signoff-text em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--gold-deep);
}

.brief-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}
.brief-nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.brief-nav-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.brief-nav-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.brief-nav-card.next .brief-nav-label { justify-content: flex-end; }
.brief-nav-card.prev { text-align: left; }
.brief-nav-card.next { text-align: right; }
.brief-nav-title {
  font-family: "Instrument Serif", serif;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease-out);
}
.brief-nav-card:hover .brief-nav-title { color: var(--gold-deep); }

@media (max-width: 700px) {
  .brief-title { font-size: 32px; }
  .brief-lead { font-size: 18px; }
  .brief-content { font-size: 16px; }
  .brief-content p:first-of-type::first-letter { font-size: 48px; }
  .brief-content h2 { font-size: 24px; }
  .brief-meta-bar { flex-direction: column; align-items: flex-start; }
  .brief-next { grid-template-columns: 1fr; }
  .brief-signoff { grid-template-columns: 1fr; text-align: left; }
}

/* ============================================================
   COURSE COMPLETE STATE
   ============================================================ */

.complete-page {
  min-height: calc(100vh - 200px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.complete-burst {
  position: relative;
  width: 140px; height: 140px;
  margin-bottom: 32px;
  animation: rise 0.8s var(--ease-spring) both;
}
.complete-burst-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold) 0%, var(--gold-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
}
.complete-burst-ring::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.3;
  animation: pulse-ring 2.5s var(--ease-out) infinite;
}
.complete-burst-ring::after {
  content: ""; position: absolute; inset: -20px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.18;
  animation: pulse-ring 2.5s var(--ease-out) 0.3s infinite;
}
.complete-check {
  color: var(--navy-deep);
  position: relative;
  z-index: 1;
}

.complete-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
  animation: fade 0.7s var(--ease-out) 0.3s both;
}
.complete-h1 {
  font-family: "Instrument Serif", serif;
  font-size: 64px; line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 760px;
  animation: rise 0.7s var(--ease-out) 0.35s both;
}
.complete-h1 em { font-style: italic; color: var(--gold-deep); }
.complete-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 44px;
  animation: rise 0.7s var(--ease-out) 0.42s both;
}

.complete-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  width: 100%;
  margin-bottom: 48px;
  animation: rise 0.7s var(--ease-out) 0.5s both;
}
.complete-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.complete-stat-value {
  font-family: "Instrument Serif", serif;
  font-size: 36px; line-height: 1;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.022em;
  margin-bottom: 8px;
}
.complete-stat-value em { font-style: italic; color: var(--gold-deep); font-size: 22px; }
.complete-stat-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

.complete-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
  animation: rise 0.7s var(--ease-out) 0.58s both;
}

.complete-next-section {
  width: 100%;
  max-width: 920px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  animation: rise 0.7s var(--ease-out) 0.7s both;
}
.complete-next-eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
  text-align: center;
}
.complete-next-title {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-align: center;
  margin-bottom: 28px;
}
.complete-next-title em { font-style: italic; color: var(--gold-deep); }

.complete-next-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: left;
}
.complete-rec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-xs);
  display: flex;
}
.complete-rec-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.complete-rec-thumb {
  flex: 0 0 140px;
  background-size: cover;
  background-position: center;
}
.complete-rec-body {
  padding: 18px 20px;
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
}
.complete-rec-eyebrow {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.complete-rec-title {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.complete-rec-meta {
  font-size: 12px; color: var(--muted);
}

@media (max-width: 700px) {
  .complete-h1 { font-size: 38px; }
  .complete-stats { grid-template-columns: 1fr; }
  .complete-stat-value { font-size: 28px; }
  .complete-next-grid { grid-template-columns: 1fr; }
  .complete-rec-card { flex-direction: column; }
  .complete-rec-thumb { flex: none; height: 140px; }
}

/* ============================================================
   MOBILE FIXES — applied after audit
   ============================================================ */

/* Homepage hero — was overflowing horizontally */
@media (max-width: 700px) {
  .hero {
    padding: 24px 20px !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .hero-issue { min-width: 0; }
  .hero-number { font-size: 44px !important; }
  .hero-content {
    border-left: none !important;
    padding-left: 0 !important;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.16);
  }
  .hero-title {
    font-size: 26px !important;
    line-height: 1.15;
  }
  .hero-lead {
    font-size: 14.5px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 8px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
  }
  .hero-eyebrow {
    flex-wrap: wrap;
    font-size: 10.5px;
  }

  /* Continue strip — make it actually work at narrow widths */
  .continue-strip {
    flex-wrap: wrap;
    padding: 14px;
    gap: 12px;
  }
  .continue-info { flex: 1 1 calc(100% - 76px); }
  .continue-progress { display: none; }
  .continue-resume {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  /* Sections that need tighter spacing */
  .section-title h2 { font-size: 20px !important; }
  .section-header { margin-bottom: 14px; }

  /* Course detail hero */
  .course-detail-hero {
    padding: 28px 22px !important;
  }
  .cd-title { font-size: 28px !important; line-height: 1.1; }
  .cd-lead { font-size: 14.5px; }
  .cd-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 18px 0;
  }
  .cd-stat-num { font-size: 22px !important; }
  .cd-actions { flex-direction: column; gap: 8px; }
  .cd-actions .btn {
    width: 100%; justify-content: center;
  }

  /* Lesson page — fix horizontal overflow */
  .lesson-page {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .lesson-h1 { font-size: 22px !important; }
  .lesson-title-row { gap: 10px; }
  .lesson-pos {
    font-size: 11.5px;
    flex-wrap: wrap;
  }
  /* Video controls — make them fit */
  .video-controls { padding: 12px 14px 10px; }
  .video-controls-row { gap: 6px; flex-wrap: wrap; }
  .video-btn { width: 32px; height: 32px; }
  .video-time { font-size: 11.5px; }
  .video-speed { padding: 4px 9px; font-size: 11px; }
  .video-play-btn { width: 64px; height: 64px; }
  .video-play-btn svg { width: 24px; height: 24px; }

  /* Actions bar below video */
  .lesson-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
  }
  .lesson-actions-left, .lesson-actions-right {
    width: 100%;
    justify-content: space-between;
  }
  .lesson-actions-right { gap: 8px; }
  .lesson-actions-right .btn {
    flex: 1;
    justify-content: center;
    padding: 11px 14px;
    font-size: 13px;
  }

  /* Tabs — prevent overflow */
  .lesson-tabs-bar {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .lesson-tabs-bar::-webkit-scrollbar { display: none; }
  .lesson-tab { white-space: nowrap; padding: 12px 14px; font-size: 13px; }

  /* Curriculum sidebar */
  .curriculum-sidebar {
    position: static !important;
    max-height: none;
    order: 2;
    width: 100%;
  }
  .curr-body { max-height: 400px; }

  /* Worksheet card */
  .worksheet-card {
    grid-template-columns: 1fr !important;
    text-align: left;
    padding: 22px;
    gap: 18px;
  }
  .worksheet-thumb { width: 64px; height: 84px; }
  .worksheet-title { font-size: 20px; }

  /* Transcript */
  .transcript-controls { flex-direction: column; align-items: stretch; }
  .transcript-search { max-width: 100%; }
  .transcript-row {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }
  .transcript-text { font-size: 14px; }

  /* Brief detail — already good but reduce padding */
  .brief-title { font-size: 28px !important; }
  .brief-lead { font-size: 17px; }
  .brief-content { font-size: 15.5px; }
  .brief-content p:first-of-type::first-letter { font-size: 42px; }
  .brief-content h2 { font-size: 22px !important; }
  .brief-content h3 { font-size: 19px; }
  .brief-content blockquote { font-size: 18px; padding-left: 18px; }
  .brief-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .brief-callout { padding: 20px 22px; }
  .brief-next { grid-template-columns: 1fr; }
  .brief-signoff { grid-template-columns: 1fr; text-align: left; gap: 16px; }

  /* Course complete */
  .complete-h1 { font-size: 32px !important; }
  .complete-sub { font-size: 15px; }
  .complete-burst { width: 110px; height: 110px; }
  .complete-check { width: 44px !important; height: 44px !important; }
  .complete-stats { grid-template-columns: 1fr; gap: 10px; }
  .complete-stat { padding: 18px 20px; }
  .complete-stat-value { font-size: 28px; }
  .complete-next-grid { grid-template-columns: 1fr; }
  .complete-rec-card { flex-direction: column; }
  .complete-rec-thumb { flex: none; height: 140px; }
  .complete-actions { flex-direction: column; width: 100%; }
  .complete-actions .btn { width: 100%; justify-content: center; }

  /* Briefs archive */
  .brief-feature {
    padding: 28px 22px;
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .brief-feature h2 { font-size: 26px !important; }
  .brief-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }
  .brief-date { font-size: 12.5px; }
  .brief-title-row { font-size: 18px !important; }
  .brief-summary { font-size: 13.5px; }
  .brief-arrow { display: none; }

  /* Account */
  .account-header { gap: 16px; padding-bottom: 24px; }
  .account-avatar { width: 60px; height: 60px; font-size: 24px; }
  .account-header h1 { font-size: 28px !important; }

  /* AI widget — smaller on mobile so it doesn't block content */
  .ai-widget {
    bottom: 16px !important;
    right: 16px !important;
  }
  .ai-widget-hint { display: none; }
  .ai-widget-btn {
    width: 52px;
    height: 52px;
  }
  .ai-widget-btn-mark { font-size: 24px; }
  /* And on mobile, give it less of a "halo" so it feels less intrusive */
  .ai-widget-btn::before { opacity: 0.2; }

  /* AI panel takes near-full width on mobile */
  .ai-panel-fixed {
    width: calc(100vw - 16px) !important;
    right: 8px !important;
    bottom: 8px !important;
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  /* Topbar — tighten */
  .topbar-inner { gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 17px; }
  .brand-text em { display: none; }
  .search-wrap { order: 99; margin: 8px 0 0; flex: 1 1 100%; max-width: 100%; }
  .search-kbd { display: none; }
  .topbar-actions { gap: 6px; }
  .streak-pill {
    font-size: 12px;
    padding: 6px 11px 6px 7px;
  }
  .streak-flame { width: 18px; height: 18px; font-size: 11px; }
  .icon-btn, .avatar { width: 36px; height: 36px; }

  /* App padding tighter */
  .app { padding: 12px !important; gap: 12px !important; }

  /* Course cards — slightly tighter */
  .course-title { font-size: 19px; }
  .course-body { padding: 16px 18px 18px; }
}

/* Tablet 700-1100 — make AI widget smaller so it doesn't compete */
@media (max-width: 1100px) and (min-width: 701px) {
  .ai-widget-btn { width: 56px; height: 56px; }
  .ai-widget-hint { display: none; }
}

/* Universal: prevent any horizontal overflow.
   Using overflow-x: clip on html only (NOT on body) — clip provides
   the same visual containment as hidden without establishing a scrolling
   container that breaks position: sticky on descendants. */
html {
  overflow-x: clip;
  max-width: 100vw;
}
.app, .main {
  max-width: 100%;
}


/* ============================================================
   Password show/hide toggle
   Added by app.js. The .swn-pw-wrap is injected around any
   <input type="password"> and contains an eye icon button.
   ============================================================ */
.swn-pw-wrap {
  position: relative;
  display: block;
}
.swn-pw-wrap input {
  /* The padding-right adjustment is done inline by JS to preserve
     whatever padding the field originally had. */
}
.swn-pw-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}
.swn-pw-toggle:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}
.swn-pw-toggle:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}


/* ============================================================
   Forgot password page — standalone, centered layout
   ============================================================ */
body.forgot-body {
  background: var(--bg);
}

.forgot-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  box-sizing: border-box;
}

.forgot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 64px;
}

.forgot-brand .brand-mark {
  width: 38px; height: 38px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
}

.forgot-brand-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.forgot-brand-text em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
  margin-left: 4px;
}

.forgot-page {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .forgot-shell { padding: 24px 16px; }
  .forgot-brand { margin-bottom: 40px; }
}


/* ============================================================
   Login page — mode toggle + password reveal
   Inline-styled to ensure they work regardless of app.js state
   ============================================================ */

.login-mode[hidden] {
  display: none !important;
}

.login-pw-wrap {
  position: relative;
}

.login-pw-wrap .login-input {
  padding-right: 48px; /* room for the eye button */
}

.login-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted, #6b7280);
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  line-height: 0;
}

.login-pw-toggle:hover {
  color: var(--ink, #14181F);
  background: rgba(0, 0, 0, 0.04);
}

.login-pw-toggle:focus-visible {
  outline: 2px solid var(--gold-deep, #b8884b);
  outline-offset: 2px;
}

.login-forgot,
.login-mode-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--gold-deep, #b8884b);
  font-weight: 600;
  text-decoration: none;
}

.login-forgot:hover,
.login-mode-toggle:hover {
  text-decoration: underline;
}

.login-back {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted, #6b7280);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.login-back:hover {
  color: var(--ink, #14181F);
}

.login-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.login-alert-error {
  background: rgba(193, 60, 60, 0.08);
  border: 1px solid rgba(193, 60, 60, 0.3);
  color: #872a2a;
}

/* ============================================================
   IMMERSIVE PAGES — lesson watch + shorts feed
   The main nav (left sidebar) STAYS visible on these pages so members
   can navigate freely. We just optimize spacing and ensure the inner
   page-specific sidebars (curriculum on the lesson page, related card
   on the shorts page) get the priority they need.
   ============================================================ */

/* ============================================================
   SHORTS FEED MODE — viewport-locked, no page scroll
   On /insights/, the entire page is fixed to the viewport.
   No body scroll, no overflow. Internal panels (the related-
   course detail) handle their own scroll when content overflows.
   This matches how YouTube Shorts and TikTok actually behave
   on desktop: the page IS the experience, you don't scroll
   it — you advance shorts.
   ============================================================ */

/* Lock the body to the viewport — no page scroll on /insights/. */
body.shorts-feed-mode {
  height: 100vh;
  overflow: hidden;
}

/* Likewise, prevent the app shell from growing beyond viewport.
   The minimum-content trick keeps grid children from forcing
   the row to grow past 100vh. */
body.shorts-feed-mode .app {
  min-height: 0;
  height: calc(100vh - 68px); /* viewport minus topbar */
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 12px 20px 20px;
  overflow: hidden;
}
/* When WP admin bar is visible, subtract its height too */
body.shorts-feed-mode.admin-bar .app {
  height: calc(100vh - 100px); /* 68 topbar + 32 admin bar */
}
@media (max-width: 782px) {
  body.shorts-feed-mode.admin-bar .app {
    height: calc(100vh - 114px); /* 68 topbar + 46 admin bar */
  }
}

body.shorts-feed-mode .main {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden; /* internal panels handle their own scroll */
}

/* ============================================================
   COLLAPSED SIDEBAR — improved
   Cleaner active state (round pill behind icon, not full bg),
   subtler hover, tighter spacing, full height like YouTube's.
   ============================================================ */

/* Sidebar fills its column completely on shorts page — not sticky
   relative to viewport scroll (there isn't any), just fills. */
body.shorts-feed-mode .sidebar {
  position: static;
  align-self: stretch;
  height: 100%;
  max-height: none;
  padding: 8px 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Hide non-essential sidebar furniture */
body.shorts-feed-mode .sidebar-heading,
body.shorts-feed-mode .streak-card {
  display: none;
}

/* Section spacing: tighter, no divider line — clean vertical list */
body.shorts-feed-mode .sidebar-section {
  margin-bottom: 2px;
}
body.shorts-feed-mode .sidebar-section + .sidebar-section {
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* Nav items: icon stacked above tiny label. Pill background only
   on the icon "tile" in active state — never the whole item. */
body.shorts-feed-mode .nav-item {
  flex-direction: column;
  gap: 4px;
  padding: 10px 4px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-align: center;
  border-radius: 12px;
  position: relative;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
body.shorts-feed-mode .nav-item:hover {
  background: var(--surface);
  color: var(--ink);
}
body.shorts-feed-mode .nav-item.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
body.shorts-feed-mode .nav-item.active .nav-icon {
  color: var(--gold-deep);
}

/* Icon wrapper — slightly larger circle in shorts mode, with the
   active state showing a soft gold-pale pill behind it. */
body.shorts-feed-mode .nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s var(--ease-out);
}
body.shorts-feed-mode .nav-icon svg {
  width: 20px;
  height: 20px;
}
body.shorts-feed-mode .nav-item.active .nav-icon {
  background: var(--gold-pale);
}

/* Badge moves to corner of the icon tile */
body.shorts-feed-mode .nav-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  margin-left: 0;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  background: var(--gold);
  color: var(--navy-deep);
}

/* Label: single-line, tiny, ellipsis if it overflows */
body.shorts-feed-mode .nav-item-label {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  font-size: 10px;
}

/* Ask Henry widget — on a locked viewport with no scroll, the bottom-right
   floating button would overlap the related-course panel awkwardly. Tuck
   it inside the bottom-right of the page where it doesn't fight for space.
   Still discoverable, just less intrusive in immersive mode. */
body.shorts-feed-mode .ai-widget {
  bottom: 16px;
  right: 16px;
}
body.shorts-feed-mode .ai-widget-hint {
  display: none; /* Just the icon, no "Ask Henry anything" pill */
}
body.shorts-feed-mode .ai-widget-btn {
  width: 48px;
  height: 48px;
}
body.shorts-feed-mode .ai-widget-btn-mark {
  font-size: 22px;
}

@media (max-width: 1100px) {
  body.shorts-feed-mode .app {
    grid-template-columns: 72px 1fr;
    padding: 10px 14px 14px;
  }
}
@media (max-width: 760px) {
  body.shorts-feed-mode {
    height: auto;
    overflow: auto;
  }
  body.shorts-feed-mode .app {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding: 12px;
  }
  body.shorts-feed-mode .main {
    height: auto;
    overflow: visible;
  }
  body.shorts-feed-mode .sidebar {
    display: none;
  }
}

/* Lesson page: cap the inner content max-width so the video doesn't get
   absurdly wide on ultrawide displays. */
body.lesson-watch .main {
  max-width: 1120px;
}

/* ============================================================
   REDUCED MOTION — respect the OS-level preference
   ============================================================
   Users who've set "Reduce motion" on macOS / iOS / Windows /
   Android / Chrome get a calmed-down version: animations finish
   instantly, transitions are near-zero, smooth-scroll is off.
   We keep visibility (no display:none) so layout still works —
   just without movement.
*/
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	/* Specific cases worth being explicit about so they truly stop. */
	html { scroll-behavior: auto !important; }
}

/* ============================================================
   HOMEPAGE — redesigned for clarity over crowding
   ============================================================ */

/* ---- 1. Welcome strip ---- */
.home-welcome {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 4px 0 28px;
}
.home-welcome-greeting {
	font-family: 'Instrument Serif', serif;
	font-size: 32px;
	line-height: 1.1;
	color: var(--ink);
}
.home-welcome-greeting em { color: var(--gold-deep); font-style: italic; }
.home-welcome-meta {
	display: inline-flex;
	gap: 8px;
	font-size: 13px;
	color: var(--muted);
	font-weight: 500;
}
.home-welcome-dot { opacity: 0.5; }
.home-welcome-streak { color: var(--gold-deep); font-weight: 600; }

@media (max-width: 700px) {
	.home-welcome-greeting { font-size: 26px; }
}

/* ---- 2. "What now" card ---- */
.home-now-card {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 24px;
	overflow: hidden;
	margin-bottom: 36px;
	color: var(--ink);
	text-decoration: none;
	box-shadow: var(--shadow-md, 0 4px 24px rgba(20,24,31,0.06));
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	min-height: 240px;
}
.home-now-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg, 0 12px 40px rgba(20,24,31,0.12));
	color: var(--ink);
}
.home-now-card-media {
	position: relative;
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep, #0F1A33) 100%);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
.home-now-card-media-tint {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(15,26,51,0.40) 0%, rgba(15,26,51,0.65) 100%);
}
.home-now-card-play {
	position: relative;
	z-index: 1;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255,255,255,0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
	transition: transform 0.2s ease;
}
.home-now-card:hover .home-now-card-play { transform: scale(1.08); }

/* Brief mode — no image, big volume mark */
.is-brief-media {
	background: linear-gradient(135deg, var(--gold) 0%, #A88249 100%);
	color: #fff;
}
.home-now-card-brief-vol {
	font-family: 'Instrument Serif', serif;
	font-size: 56px;
	line-height: 1;
	color: rgba(255,255,255,0.95);
	font-style: italic;
	text-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.home-now-card-body {
	padding: 32px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}
.home-now-card-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-bottom: 4px;
}
.home-now-card-title {
	font-family: 'Instrument Serif', serif;
	font-size: 34px;
	line-height: 1.15;
	color: var(--ink);
	margin: 0;
}
.home-now-card-sub {
	font-size: 14px;
	color: var(--muted);
	margin-top: 4px;
}
.home-now-card-sub em { font-style: italic; color: var(--ink-soft); }
.home-now-card-dot { opacity: 0.5; margin: 0 6px; }
.home-now-card-lead {
	margin: 6px 0 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-soft);
}
.home-now-card-cta {
	margin-top: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--navy);
	transition: gap 0.2s ease;
}
.home-now-card:hover .home-now-card-cta { gap: 12px; }
.home-now-card.is-empty .home-now-card-title { color: var(--muted); }

@media (max-width: 800px) {
	.home-now-card {
		grid-template-columns: 1fr;
	}
	.home-now-card-media {
		min-height: 180px;
	}
	.home-now-card-body {
		padding: 24px 22px 28px;
	}
	.home-now-card-title {
		font-size: 26px;
	}
}

/* ---- 3. Three paths ---- */
.home-paths {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 40px;
}
.home-path {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	color: var(--ink);
	text-decoration: none;
	transition: all 0.18s ease;
	cursor: pointer;
	text-align: left;
	font: inherit;
	font-size: inherit;
}
.home-path:hover {
	border-color: var(--gold);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm, 0 2px 12px rgba(20,24,31,0.05));
}
.home-path-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--surface-hover);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink-soft);
}
.home-path-icon-ai {
	background: linear-gradient(135deg, var(--navy), var(--navy-deep, #0F1A33));
	color: var(--gold);
	font-family: 'Instrument Serif', serif;
	font-size: 22px;
	font-style: italic;
}
.home-path-body { flex: 1; min-width: 0; }
.home-path-title {
	font-weight: 600;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.2;
	margin-bottom: 2px;
}
.home-path-sub {
	font-size: 12.5px;
	color: var(--muted);
}
.home-path-chev { color: var(--muted); flex-shrink: 0; }
.home-path:hover .home-path-chev { color: var(--gold-deep); }

@media (max-width: 800px) {
	.home-paths { grid-template-columns: 1fr; }
}

/* ---- 5. My learning compact strip ---- */
.home-learning-strip {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	margin-bottom: 32px;
}
.home-learning-card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
	transition: all 0.18s ease;
}
.home-learning-card:hover {
	border-color: var(--gold);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm, 0 2px 12px rgba(20,24,31,0.05));
}
.home-learning-card-media {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: var(--surface-hover);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.home-learning-card-media-fallback {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep, #0F1A33) 100%);
}
.home-learning-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.home-learning-card-title {
	font-weight: 600;
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.3;
	min-height: 38px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.home-learning-card-progress {
	display: flex;
	align-items: center;
	gap: 10px;
}
.home-learning-card-bar {
	flex: 1;
	height: 4px;
	background: var(--surface-hover);
	border-radius: 100px;
	overflow: hidden;
}
.home-learning-card-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--gold), var(--gold-deep, #A88249));
	border-radius: 100px;
	transition: width 0.4s ease;
}
.home-learning-card-pct {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--muted);
	letter-spacing: 0.02em;
	min-width: 60px;
	text-align: right;
}

/* ---- Minimal duration pill for homepage shorts tiles ---- */
.short-tile-duration {
	position: absolute;
	bottom: 10px;
	left: 10px;
	padding: 3px 8px;
	background: rgba(15,26,51,0.78);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 100px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	pointer-events: none;
}
