/*
Theme Name: CLL Patient Journey
Description: Styles for the CLL Patient Journey patient + step views.
Version: 1.0
*/

/* Fonts — the original bundle inlined these; load them from Google Fonts instead. */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   CLL Journey — fresh, modern, brand-consistent
   ============================================ */

:root {
  /* Brand palette — keep lavender/violet roots from the existing site,
     but lift saturation and add cleaner neutrals. */
  --bg:           oklch(0.985 0.005 290);
  --bg-soft:      oklch(0.965 0.015 290);
  --bg-card:     #ffffff;
  --line:         oklch(0.92 0.02 290);
  --line-strong:  oklch(0.86 0.03 290);

  --ink:          oklch(0.22 0.04 285);
  --ink-soft:     oklch(0.42 0.05 285);
  --ink-muted:    oklch(0.58 0.04 285);

  --brand:        oklch(0.55 0.18 290);  /* violet, the existing brand */
  --brand-deep:   oklch(0.38 0.18 285);
  --brand-soft:   oklch(0.94 0.04 290);
  --brand-mid:    oklch(0.72 0.13 290);

  --accent:       oklch(0.72 0.13 25);   /* warm coral counter-tone */

  /* Stage tint generator — used inline with hue swaps */
  --stage-l:      0.93;
  --stage-c:      0.07;
  --stage-text-l: 0.32;
  --stage-text-c: 0.12;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(50, 28, 90, 0.04), 0 1px 1px rgba(50, 28, 90, 0.03);
  --shadow:    0 6px 18px -8px rgba(60, 30, 100, 0.18), 0 2px 4px rgba(60, 30, 100, 0.04);
  --shadow-lg: 0 28px 60px -20px rgba(60, 30, 100, 0.22), 0 6px 16px -8px rgba(60, 30, 100, 0.08);

  --font-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-body:    "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 90% -10%, oklch(0.96 0.05 290 / 0.7), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, oklch(0.94 0.06 320 / 0.5), transparent 60%),
    var(--bg);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

a { color: inherit; }

/* ---------- Top toolbar (page chrome) ---------- */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 32px;
  background: oklch(0.985 0.005 290 / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.toolbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
}
.toolbar__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, oklch(0.65 0.18 320) 100%);
  position: relative;
}
.toolbar__brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: var(--bg-card);
  opacity: 0.85;
}
.toolbar__spacer { flex: 1; }
.toolbar__crumb {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}
.toolbar__crumb b {
  color: var(--ink);
  font-weight: 600;
}
.toolbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.15s ease;
}
.toolbar__back:hover {
  border-color: var(--line-strong);
  transform: translateX(-1px);
}

/* ---------- Page transitions ---------- */

.page {
  animation: page-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   GROUP PAGE
   ============================================ */

.group {
  padding: 48px 32px 80px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

.group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}

.group__balloons {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  min-width: 0;
  opacity: 0.95;
}
.group__balloons svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  overflow: visible;
}
/* Each balloon drifts on its own, slightly out-of-phase, slightly different range */
.group__balloons .b-warm {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: balloon-warm 8s ease-in-out infinite;
}
.group__balloons .b-cool {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: balloon-cool 11s ease-in-out infinite;
}
@media (max-width: 980px) {
  .group__header { flex-direction: column; align-items: flex-start; }
  .group__balloons { display: none; }
}

@keyframes balloon-warm {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(2px, -11px) rotate(0.6deg); }
}
@keyframes balloon-cool {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-3px, -7px) rotate(-0.7deg); }
}

@media (prefers-reduced-motion: reduce) {
  .group__balloons .b-warm,
  .group__balloons .b-cool { animation: none; }
}

.group__intro {
  max-width: 620px;
  flex: 0 1 620px;
  margin: 0;
}
.group__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
}
.group__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 22px;
  color: var(--ink);
}
.group__title em {
  font-style: italic;
  color: var(--brand);
}
.group__sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 64ch;
  margin: 0;
}

.group__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 28px;
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}
.legend-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* The journeys rail: horizontal scrollable strip of patient columns */
.rail {
  position: relative;
  margin: 0 -32px;
  padding: 0 32px;
}
.rail__scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 32px;
  padding: 6px 32px 28px 0;
  margin: 0 -32px;
  padding-left: 32px;
}
.rail__scroller::-webkit-scrollbar { height: 8px; }
.rail__scroller::-webkit-scrollbar-track { background: transparent; }
.rail__scroller::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}

.col {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  transition: transform 0.2s ease;
}
.col:hover { transform: translateY(-3px); }

.col__portrait {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--portrait-bg, var(--brand-soft));
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: none;
  padding: 0;
}
.col__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(0.18 0.04 285 / 0.15) 100%);
  pointer-events: none;
}
.col__portrait:hover {
  box-shadow: var(--shadow);
}
.col__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 14px rgba(60, 30, 100, 0.10));
}

.col__name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 14px 0 2px;
  color: var(--ink);
  padding: 0 4px;
}
.col__age {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 16px;
  padding: 0 4px;
}

.col__journey {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  padding-top: 4px;
}
.col__journey::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--line) 0%, var(--line) 95%, transparent 100%);
  left: 14px;
  z-index: 0;
}

.stage-pill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px 10px 8px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--stage-bg);
  color: var(--stage-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}
.stage-pill:hover {
  transform: translateX(3px);
  border-color: var(--stage-text);
}
.stage-pill__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--stage-text);
  color: var(--stage-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Scroll affordance arrow at right edge */
.rail__chevron {
  position: absolute;
  top: 90px;
  right: 4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  z-index: 5;
  transition: all 0.15s ease;
}
.rail__chevron:hover {
  color: var(--brand);
  border-color: var(--brand-mid);
}
.rail__chevron--left { right: auto; left: 4px; }

/* ============================================
   SINGLE PAGE
   ============================================ */

#et-main-area {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

/* Patient rail at top of single view */
.patient-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  margin-bottom: 36px;
	 margin-top: 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
}
.patient-rail__label {
  padding: 0 12px 0 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.patient-rail__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.patient-rail__btn:hover { background: var(--bg-soft); }
.patient-rail__btn.is-active {
  background: var(--ink);
  color: white;
}
.patient-rail__btn-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-soft);
  flex-shrink: 0;
}
.patient-rail__btn-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.patient-rail__btn-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Hero: portrait + bio */
.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.4fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.hero__portrait {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 540px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--portrait-bg) 0%, oklch(0.97 0.02 290) 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__portrait img {
  width: 95%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 18px rgba(60, 30, 100, 0.08));
}
.hero__portrait::before {
  /* soft "stage" platform */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, oklch(0.94 0.04 290 / 0.7), transparent);
}

.hero__body { padding-bottom: 14px; }
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--ink);
}
.hero__name em {
  font-style: italic;
  color: var(--brand);
  font-weight: 400;
}
.hero__meta {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0 0 22px;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 24px;
  color: var(--brand-deep);
  letter-spacing: -0.005em;
}
.hero__bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
  max-width: 56ch;
}

/* Journey stepper (horizontal stage selector) */
.stepper {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px 22px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.stepper__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.stepper__heading {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.005em;
  font-weight: 500;
  margin: 0;
}
.stepper__sub {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stepper__track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 0 8px;
}
.stepper__step {
  flex: 1;
  min-width: 110px;
  position: relative;
  padding: 16px 5px 16px;
  border-radius: var(--radius);
  background: var(--step-bg);
  color: var(--step-text);
  border: 2px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stepper__step:hover {
  transform: translateY(-2px);
}
.stepper__step.is-current {
  border-color: var(--step-text);
  background: var(--step-bg-strong);
}
.stepper__step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.stepper__step-label {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
	
  font-weight: 500;
  line-height: 1.1;
}
.stepper__step-short {
  font-size: 11.5px;
  line-height: 1.35;
  opacity: 0.78;
  font-weight: 500;
}
.stepper__step::after {
  /* arrow connector between steps */
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 2px;
  background: var(--line-strong);
  z-index: 1;
}
.stepper__step:last-child::after { display: none; }

/* Stage content section */
.stage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; }
}

.stage__primary {
  background: var(--stage-bg);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  position: relative;
  overflow: hidden;
}
.stage__primary::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--stage-text);
  opacity: 0.06;
}

.stage__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stage-text);
  margin: 0 0 14px;
  opacity: 0.85;
}
.stage__name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--stage-text);
}
.stage__blurb {
  font-size: 16px;
  line-height: 1.65;
  color: var(--stage-text);
  margin: 0 0 28px;
  max-width: 58ch;
  opacity: 0.85;
  text-wrap: pretty;
}

.stage__questions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--stage-text);
  padding-top: 18px;
  border-top-color: color-mix(in oklch, var(--stage-text) 18%, transparent);
}
.stage__questions-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stage-text);
  opacity: 0.7;
  margin-bottom: 6px;
}
.stage__questions li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--stage-text);
  padding: 8px 0 8px 22px;
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.stage__questions li:hover {
  background: color-mix(in oklch, var(--stage-text) 8%, transparent);
  padding-left: 26px;
}
.stage__questions li::before {
  content: "?";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--stage-text);
  color: var(--stage-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Side column: personal quote */
.stage__quote {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.stage__quote-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
}
.stage__quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.7;
  color: var(--brand-soft);
  margin: 0 0 -8px;
  font-style: italic;
}
.stage__quote-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.stage__quote-attrib {
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stage__quote-attrib-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-soft);
}
.stage__quote-attrib-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* Resource grid */
.resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .resources { grid-template-columns: 1fr; } }

.res {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.res:hover {
  border-color: var(--brand-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.res__head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.res__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--res-bg, var(--brand-soft));
  color: var(--res-fg, var(--brand-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}
.res__icon svg {
  width: 30px;
  height: 30px;
}
.res__label {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}
.res__sub {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 2px 0 0;
}
.res__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ----- Story tile ----- */
.story {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.story:hover {
  border-color: var(--res-fg, var(--brand));
  transform: translateX(2px);
}
.story__cover {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--res-bg, var(--brand-soft));
  color: var(--res-fg, var(--brand-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
}
.story__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.story__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.story__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--res-fg, var(--brand));
  margin-top: 2px;
}

/* ----- Podcast player ----- */
.podcast {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: border-color 0.18s ease;
}
.podcast:hover {
  border-color: var(--res-fg, var(--brand));
}
.podcast__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--res-fg, var(--brand));
  color: var(--res-bg, white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.podcast__play:hover,
.podcast.is-playing .podcast__play { transform: scale(1.07); }
.podcast__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.podcast__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podcast__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.podcast__track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
/* invisible enlarged hit area (does not affect the visible 4px line) */
.podcast__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  bottom: -9px;
}
.podcast__track:focus-visible { box-shadow: 0 0 0 2px var(--res-fg, var(--brand)); border-radius: 4px; }
.podcast__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--res-fg, var(--brand));
  border-radius: 2px;
  transition: width 0.1s linear;
}
.podcast.is-seeking .podcast__progress { transition: none; }
/* draggable thumb, shown on hover / focus / while scrubbing */
.podcast__progress::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--res-fg, var(--brand));
  border: 2px solid var(--bg-card);
  transform: translate(50%, -50%) scale(0);
  transition: transform 0.12s ease;
  z-index: 1;
}
.podcast:hover .podcast__progress::after,
.podcast.is-seeking .podcast__progress::after,
.podcast__track:focus-visible .podcast__progress::after {
  transform: translate(50%, -50%) scale(1);
}
.podcast__audio { display: none; }

/* ----- Video tile ----- */
.video {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.video:hover {
  border-color: var(--res-fg, var(--brand));
  transform: translateX(2px);
}
.video__thumb {
  aspect-ratio: 16/10;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--res-bg, var(--brand-soft)) 0%, color-mix(in oklch, var(--res-fg, var(--brand)) 18%, white) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--res-fg, var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.video__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(20, 12, 40, 0.78);
  color: white;
}
.video__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.video__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.video__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Leaflet preview ----- */
.leaflet {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.leaflet:hover {
  border-color: var(--res-fg, var(--brand));
  transform: translateX(2px);
}
.leaflet__sheet {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(60, 30, 100, 0.08);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  position: relative;
}
.leaflet__sheet::before {
  content: "";
  display: block;
  height: 8px;
  width: 60%;
  border-radius: 1px;
  background: var(--res-fg, var(--brand));
  margin-bottom: 3px;
}
.leaflet__line {
  height: 2px;
  background: var(--line);
  border-radius: 1px;
}
.leaflet__line--short { width: 70%; }
.leaflet__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.leaflet__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.leaflet__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.leaflet__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  color: var(--res-fg, var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.leaflet:hover .leaflet__btn {
  background: var(--res-fg, var(--brand));
  color: white;
  border-color: transparent;
}

/* Stage transition animation */
.stage-anim {
  animation: stage-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   Responsive tweaks
   ============================================ */

@media (max-width: 720px) {
  .group { padding: 32px 20px 60px; }
  .single { padding: 20px 0 60px; }
  .toolbar { padding: 14px 20px; }
  .stage__primary { padding: 26px 22px 22px; }
  .stage__quote { padding: 24px 22px 20px; }
}

/* 
override */

#top-header, #et-secondary-nav li ul{
	background-color: #fff !important;
}
#top-header, #top-header a {
    color: #6e6e6e;
}