/* ============================================================
   MATHSLIVE.IE — SHARED STYLES
   Used by: /hub/, all topic pages
   ============================================================ */

:root {
  --charcoal:        #1A1A1A;
  --charcoal-deep:   #0A0A0A;
  --charcoal-soft:   #242424;
  --cream:           #F4EFE6;
  --cream-muted:     rgba(244, 239, 230, 0.72);
  --cream-quiet:     rgba(244, 239, 230, 0.48);
  --electric:        #00D165;
  --electric-soft:   #6FE9A6;
  --rule:            rgba(244, 239, 230, 0.12);
  --rule-strong:     rgba(244, 239, 230, 0.22);
  --forest:          #0F3A2E;
  --gold:            #B89653;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

/* ============== BASE ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0.005em;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 760px) { .container { padding: 0 2rem; } }

/* ============== NAV ============== */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  max-width: 1100px; margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 760px) { .nav { padding: 1rem 2rem; } }

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .plot-svg { width: 32px; height: 32px; flex-shrink: 0; }
@media (min-width:760px){ .nav-brand .plot-svg { width: 36px; height: 36px; } }
.nav-brand .word {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--cream);
}
@media (min-width:760px){ .nav-brand .word { font-size: 1.5rem; } }
.nav-brand .word .dot { color: var(--electric); }
.nav-brand .word .ie { font-style: italic; font-weight: 400; }

.live-dot { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.88); }
}

.crumb, .nav-back {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cream-muted);
  display: flex; align-items: center; gap: 0.6rem;
}
.crumb a, .nav-back { color: var(--cream-muted); transition: color 0.2s; }
.crumb a:hover, .nav-back:hover { color: var(--electric); }
.crumb .sep { opacity: 0.4; }
.crumb .here { color: var(--cream); }

/* ============== PAGE HEAD (hub + topic) ============== */
.page-head { padding: 4rem 0 3rem; text-align: center; }
@media (min-width: 760px) { .page-head { padding: 6rem 0 4rem; } }
.page-head.bordered { border-bottom: 1px solid var(--rule); padding-bottom: 2rem; }

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--electric); margin-bottom: 1.2rem;
}
.page-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 500; line-height: 1.02;
  letter-spacing: -0.025em; color: var(--cream);
}
.page-h1 .ital { font-style: italic; font-weight: 400; color: var(--electric); }
.page-sub {
  margin-top: 1.2rem; font-size: 1.05rem;
  color: var(--cream-muted);
  max-width: 580px; margin-left: auto; margin-right: auto;
  font-weight: 300;
}

/* ============== HUB: PAPER SECTIONS + TILES ============== */
.paper-section { padding: 2rem 0 1rem; }
.paper-section:last-of-type { padding-bottom: 5rem; }

.paper-label {
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--cream-muted);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 1rem;
}
.paper-label::after { content:''; flex:1; height:1px; background: var(--rule); }

.tile-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 600px)  { .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } }
@media (min-width: 900px)  { .tile-grid { grid-template-columns: repeat(3, 1fr); } }

.tile {
  position: relative;
  border: 1px solid var(--rule-strong);
  background: var(--charcoal-soft);
  border-radius: 6px;
  padding: 1.5rem 1.4rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  min-height: 140px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  opacity: 0; transform: translateY(16px);
  animation: tileIn 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  text-align: left; color: inherit;
}
.tile:hover {
  border-color: var(--electric);
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(0, 209, 101, 0.05));
}
.tile-num {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--cream-quiet);
}
.tile-name {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--cream);
  line-height: 1.05;
}
.tile-state {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--electric);
  display: flex; align-items: center; gap: 0.4rem;
  padding-top: 0.5rem;
}
.tile-state .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--electric);
  animation: pulse 2.4s ease-in-out infinite;
}
.tile-soon { cursor: default; opacity: 0.55; }
.tile-soon:hover {
  border-color: var(--rule-strong);
  transform: none; background: var(--charcoal-soft);
}
.tile-soon .tile-state { color: var(--cream-quiet); }
.tile-soon .tile-state .dot { background: var(--cream-quiet); animation: none; }

/* Hub tile progress — five tiny dots indicating layer completion.
   Populated by JS from localStorage on hub page load. */
.tile-progress {
  display: flex; gap: 4px;
  margin-top: 0.6rem;
}
.tile-progress .pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.18);
  transition: background 0.3s;
}
.tile-progress .pip.done {
  background: var(--electric);
}
.tile-progress .pip.apex.done {
  background: var(--gold);
}
.tile-progress-label {
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cream-quiet);
  margin-left: 0.4rem;
  align-self: center;
}
.tile-progress-row {
  display: flex; align-items: center;
  margin-top: 0.5rem;
}

@keyframes tileIn { to { opacity: 1; transform: translateY(0); } }
.tile:nth-child(1) { animation-delay: 0.04s; }
.tile:nth-child(2) { animation-delay: 0.08s; }
.tile:nth-child(3) { animation-delay: 0.12s; }
.tile:nth-child(4) { animation-delay: 0.16s; }
.tile:nth-child(5) { animation-delay: 0.20s; }
.tile:nth-child(6) { animation-delay: 0.24s; }
.tile:nth-child(7) { animation-delay: 0.28s; }
.tile:nth-child(8) { animation-delay: 0.32s; }
.tile:nth-child(9) { animation-delay: 0.36s; }

/* ============== TOPIC PAGE: PYRAMID (TRAPEZOIDAL) ============== */
.pyramid-wrap {
  padding: 3.5rem 0 5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}
@media (min-width: 760px) {
  .pyramid-wrap { padding: 4.5rem 0 6.5rem; }
}

/*
  Each .layer is a SINGLE trapezoidal element via clip-path.
  --edge controls the slant width on each side.
  Top of layer N = bottom of layer N+1 in width, so stacked layers
  form a single continuous pyramid outline.

  We use a 2px overlap (negative margin-top) to avoid hairline gaps
  between layers caused by sub-pixel rendering.
*/
.layer {
  position: relative;
  cursor: pointer;
  background: var(--charcoal-soft);
  border: 1px solid var(--rule-strong);
  padding: 1rem var(--edge);
  min-height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  /* The polygon: top edges inset by --edge, bottom edges flush */
  clip-path: polygon(
    var(--edge) 0,
    calc(100% - var(--edge)) 0,
    100% 100%,
    0 100%
  );
  /* The border alone can't follow clip-path, so we add an SVG overlay below */
  transition: filter 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  opacity: 0; transform: translateY(20px);
  animation: layerIn 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  margin-top: -1px;  /* prevent sub-pixel gap */
}
@media (min-width: 760px) {
  .layer { min-height: 92px; }
}
.layer:hover, .layer:focus-visible {
  filter: brightness(1.18) saturate(1.12);
  transform: translateY(-2px);
  outline: none;
  z-index: 2;
}

/*
  PYRAMID GEOMETRY
  Each layer's WIDTH is the bottom width.
  Top width = width - 2*edge.
  For the pyramid to be continuous, each layer's width must equal
  the previous (lower) layer's top width = previous width - 2*edge.
  With edge=38, each layer is 76px narrower than the one below.
*/
/* Each layer gets a distinct hue so users can tell them apart at a glance.
   Base = steel blue, NTK = teal, Cog = amber, Flash = magenta, Apex = gold. */
.layer-l1 { width: min(680px, 96vw); --edge: 38px; animation-delay: 0.10s;
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(76, 110, 245, 0.22));
  border-color: rgba(76, 110, 245, 0.45); }
.layer-l2 { width: min(604px, 84vw); --edge: 38px; animation-delay: 0.20s;
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(0, 209, 101, 0.26));
  border-color: rgba(0, 209, 101, 0.5); }
.layer-l3 { width: min(528px, 72vw); --edge: 38px; animation-delay: 0.30s;
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(20, 184, 166, 0.28));
  border-color: rgba(20, 184, 166, 0.55); }
.layer-l4 { width: min(452px, 62vw); --edge: 38px; animation-delay: 0.40s;
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(236, 72, 153, 0.28));
  border-color: rgba(236, 72, 153, 0.55); }
.layer-l5 { width: min(376px, 54vw); --edge: 38px; animation-delay: 0.50s;
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(245, 158, 11, 0.30));
  border-color: rgba(245, 158, 11, 0.6); }
.layer-l6 { width: min(300px, 46vw); --edge: 38px; animation-delay: 0.60s;
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(245, 158, 11, 0.32));
  border-color: rgba(245, 158, 11, 0.62); }
.layer-l7 { width: min(224px, 38vw); --edge: 38px; animation-delay: 0.70s;
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(245, 158, 11, 0.34));
  border-color: rgba(245, 158, 11, 0.65); }

/* On narrow phones, flatten the slope so layers don't get too tight */
@media (max-width: 520px) {
  .layer { --edge: 22px !important; padding: 0.85rem var(--edge); min-height: 72px; }
  .layer-l1 { width: 96vw; }
  .layer-l2 { width: 84vw; }
  .layer-l3 { width: 72vw; }
  .layer-l4 { width: 60vw; }
  .layer-l5 { width: 50vw; }
  .layer-l6 { width: 42vw; }
  .layer-l7 { width: 34vw; }
}

@keyframes layerIn { to { opacity: 1; transform: translateY(0); } }

/* Apex — topmost visible layer keeps its gold signature.
   Bold gold so the pinnacle reads instantly as "the goal". */
.layer-apex {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.55)) !important;
  border-color: var(--gold);
  border-width: 1.5px;
}
.layer-apex:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(217, 119, 6, 0.65)) !important;
  border-color: var(--gold);
}

.layer-label {
  display: flex; flex-direction: column; gap: 0.12rem;
  flex: 1; min-width: 0; text-align: left;
  padding-left: 0;
}
.layer-num {
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--cream-quiet);
}
.layer-apex .layer-num { color: var(--gold); }
.layer-name {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--cream);
  line-height: 1.05;
}
@media (min-width: 760px) {
  .layer-name { font-size: 1.35rem; }
}
.layer-desc {
  font-size: 0.74rem; color: var(--cream-muted);
  font-weight: 300; margin-top: 0.05rem;
  display: none;
}
@media (min-width: 760px) {
  .layer-l1 .layer-desc,
  .layer-l2 .layer-desc,
  .layer-l3 .layer-desc { display: block; font-size: 0.8rem; }
}

.layer-arrow {
  font-family: var(--font-mono);
  color: var(--cream-muted);
  font-size: 0.95rem; flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.layer:hover .layer-arrow { color: var(--electric); transform: translateX(3px); }
.layer-apex:hover .layer-arrow { color: var(--gold); }
/* Tick mark — appears on the LEFT of the layer when the user has marked it done.
   Lives inside .layer-label as the first child. Hidden by default, shown when
   parent .layer has .is-done class (set by JS from localStorage). */
.layer-status {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: transparent;
  font-size: 0.7rem; font-weight: 600;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  margin-right: 0.75rem;
}
.layer.is-done .layer-status {
  background: var(--electric);
  border-color: var(--electric);
  color: var(--charcoal-deep);
}
.layer-apex.is-done .layer-status {
  background: var(--gold);
  border-color: var(--gold);
}
/* Hide ticks on the very narrow upper layers — runs out of room */
.layer-l6 .layer-status,
.layer-l7 .layer-status { display: none; }

/* Hide the arrow on the narrower upper layers — runs out of room */
.layer-l5 .layer-arrow,
.layer-l6 .layer-arrow,
.layer-l7 .layer-arrow { display: none; }

/* ============== PANELS ============== */
.panel { display: none; padding: 3rem 0 6rem; border-top: 1px solid var(--rule); }
.panel.open { display: block; }

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap;
}
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--cream);
}
.panel-title .ital { font-style: italic; color: var(--electric); }
.panel-apex .panel-title .ital { color: var(--gold); }

.panel-back {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--cream-muted);
  border: 1px solid var(--rule-strong);
  padding: 0.55rem 1rem; border-radius: 999px;
  transition: all 0.2s;
}
.panel-back:hover { color: var(--electric); border-color: var(--electric); }

/* --- Notes panel: PDF card --- */
.pdf-card {
  border: 1px solid var(--rule-strong);
  background: var(--charcoal-soft);
  border-radius: 8px; padding: 2.5rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: center;
}
@media (min-width: 760px) {
  .pdf-card { grid-template-columns: 200px 1fr; padding: 3rem; }
}
.pdf-preview {
  width: 100%; aspect-ratio: 1 / 1.414;
  max-width: 200px; margin: 0 auto;
  background: var(--cream); border-radius: 4px;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.pdf-preview::before {
  content: ''; position: absolute;
  top: 12%; left: 10%; right: 10%; height: 1px;
  background: rgba(0,0,0,0.3);
  box-shadow:
    0 8px 0 rgba(0,0,0,0.18),
    0 16px 0 rgba(0,0,0,0.14),
    0 24px 0 rgba(0,0,0,0.14),
    0 32px 0 rgba(0,0,0,0.18),
    0 40px 0 rgba(0,0,0,0.14),
    0 48px 0 rgba(0,0,0,0.14);
}
.pdf-preview::after {
  content: attr(data-topic);
  position: absolute; top: 6%; left: 10%;
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--forest);
  text-transform: uppercase;
}
.pdf-meta { display: flex; flex-direction: column; gap: 0.9rem; }
.pdf-meta h3 {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--cream);
}
.pdf-meta .specs {
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cream-quiet);
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.pdf-meta .specs span { display: flex; align-items: center; gap: 0.4rem; }
.pdf-meta .specs .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--electric); }
.pdf-meta p { color: var(--cream-muted); font-size: 0.95rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--electric); color: var(--charcoal-deep);
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.9rem 1.4rem; border-radius: 4px;
  transition: all 0.2s;
  align-self: flex-start; margin-top: 0.4rem;
}
.btn-primary:hover { background: var(--electric-soft); transform: translateY(-1px); }

/* "Mark complete" button — secondary action at the bottom of each panel */
.mark-row {
  display: flex; justify-content: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px dashed var(--rule);
}
.btn-mark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cream-muted);
  border: 1px solid var(--rule-strong);
  background: transparent;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.btn-mark:hover {
  color: var(--electric);
  border-color: var(--electric);
}
.btn-mark .check {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.65rem;
  transition: all 0.2s;
}
.btn-mark.is-done .check {
  background: var(--electric);
  border-color: var(--electric);
  color: var(--charcoal-deep);
}
.btn-mark.is-done {
  color: var(--electric);
  border-color: var(--electric);
}

/* --- Generic placeholder card (Need to Know / Flash Cards / Tick the Box stubs) --- */
.stub-card {
  border: 1px solid var(--rule-strong);
  background: var(--charcoal-soft);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
}
@media (min-width: 760px) { .stub-card { padding: 4rem 3rem; } }
.stub-icon {
  width: 60px; height: 60px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%; margin: 0 auto 1.5rem;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 1.2rem;
  color: var(--cream-muted);
}
.stub-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--cream);
  margin-bottom: 0.6rem;
}
.stub-card p {
  color: var(--cream-muted); font-size: 0.95rem;
  max-width: 460px; margin: 0 auto;
}

/* --- Placeholder note (gold alert box) --- */
.placeholder-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(184, 150, 83, 0.06);
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--cream-muted);
  letter-spacing: 0.01em; line-height: 1.55;
}
.placeholder-note strong { color: var(--gold); font-weight: 500; }
.placeholder-note code {
  background: rgba(244,239,230,0.06);
  padding: 0.1rem 0.35rem; border-radius: 3px;
  font-family: var(--font-mono);
}

/* ============== FOOTER ============== */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cream-quiet);
}

/* ============================================================
   LIVE WITH CARL + BLITZ STRIPS
   Sit below the pyramid on every topic page.
   ============================================================ */

.live-strip,
.blitz-strip {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .live-strip,
  .blitz-strip { padding: 5rem 0 4rem; }
}

.strip-head {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto; margin-right: auto;
}

.strip-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--electric);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.strip-eyebrow-gold { color: var(--gold); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--electric);
  animation: pulse 2.4s ease-in-out infinite;
  display: inline-block;
}

.strip-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--cream);
}
.strip-title .ital { font-style: italic; font-weight: 400; color: var(--electric); }
.strip-title .ital-gold { color: var(--gold); }

.strip-sub {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--cream-muted);
  font-weight: 300;
}

/* Live grid: next class + archive */
.strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .strip-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
}

.strip-card {
  border: 1px solid var(--rule-strong);
  background: var(--charcoal-soft);
  border-radius: 6px;
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.strip-card:hover {
  border-color: var(--electric);
  transform: translateY(-2px);
}
.strip-card-next {
  border-color: var(--electric);
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(0, 209, 101, 0.06));
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--electric);
}
.card-tag-gold { color: var(--gold); }
.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--cream);
  line-height: 1.15;
  margin-top: 0.1rem;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--cream-muted);
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.strip-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--electric);
  transition: gap 0.2s;
  display: inline-flex; align-items: center;
}
.strip-link:hover { gap: 0.4rem; }
.strip-link-dim { color: var(--cream-quiet); cursor: default; }
.strip-link-gold { color: var(--gold); }

/* Blitz: single wide horizontal card */
.blitz-card {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(184, 150, 83, 0.05));
  border-radius: 6px;
  padding: 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .blitz-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.2rem;
  }
}
.blitz-card-body {
  display: flex; flex-direction: column; gap: 0.45rem;
  flex: 1;
}

/* ============================================================
   NOTES PANEL — LESSON LIST VARIANT
   For topics where Notes = collection of interactive lessons
   rather than a single PDF download.
   ============================================================ */

.lesson-list {
  display: flex; flex-direction: column;
  gap: 0.9rem;
}

.lesson-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--charcoal-soft);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.lesson-card.available:hover {
  border-color: var(--electric);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--charcoal-soft), rgba(0, 209, 101, 0.06));
}

.lesson-num {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--cream-quiet);
  flex-shrink: 0;
  min-width: 2.5rem;
}

.lesson-info { flex: 1; min-width: 0; }
.lesson-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--cream);
  line-height: 1.2;
}
.lesson-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--electric);
  margin-top: 0.35rem;
}

.lesson-action {
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--electric);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.lesson-card.available:hover .lesson-action { transform: translateX(3px); }

/* Coming-soon lesson row */
.lesson-card.pending {
  opacity: 0.5;
  cursor: default;
}
.lesson-card.pending .lesson-meta { color: var(--cream-quiet); }
.lesson-card.pending .lesson-action { color: var(--cream-quiet); }
