@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&family=Noto+Serif+Devanagari:wght@400;600&display=swap');

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

:root {
  --bg: #FAFAF7;
  --surface: #F3F0EA;
  --surface2: #EAE6DC;
  --text: #1C1C1A;
  --text-mid: #4A4A45;
  --text-light: #8A8A82;
  --accent: #C1440E;
  --accent-warm: #E8956D;
  --accent-bg: #FDF0EA;
  --border: #DDD9CE;
  --border-light: #EAE6DC;

  /* Category colours */
  --c-journey: #2B6CB0;
  --c-journey-bg: #EBF4FF;
  --c-phd: #6B46C1;
  --c-phd-bg: #F3EEFF;
  --c-travel: #276749;
  --c-travel-bg: #E6F4EE;
  --c-philosophy: #9C4221;
  --c-philosophy-bg: #FFF3EE;
  --c-growth: #285E61;
  --c-growth-bg: #E6F9F9;
  --c-science: #3730A3;
  --c-science-bg: #EEEEFF;
  --c-marathi: #7B341E;
  --c-marathi-bg: #FFF1EC;

  --ff-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --ff-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-deva: 'Noto Serif Devanagari', serif;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(193, 68, 14, 0.08), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,0.75), transparent 16rem),
    var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; text-underline-offset: 0.18em; }
img { max-width: 100%; display: block; }

/* ─── SITE HEADER ─── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.site-header .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 1.8rem; align-items: center; }
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }

/* ─── HERO (index) ─── */
.hero {
  padding: 5rem 2rem 3rem;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: 3rem;
  align-items: end;
}
.hero-copy { min-width: 0; }
.hero-note {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 1.45rem;
  box-shadow: 0 24px 70px rgba(44, 26, 14, 0.08);
}
.note-kicker {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-note p:not(.note-kicker) {
  color: var(--text-mid);
  font-family: var(--ff-serif);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.18s, border-color 0.18s, color 0.18s, background 0.18s;
}
.hero-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}
.hero-btn.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.hero-btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-stat strong {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.hero-stat small {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── READER PATHS ─── */
.reader-paths {
  max-width: 1140px;
  margin: 0 auto 3.4rem;
  padding: 0 2rem;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.1rem;
}
.section-intro h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.path-card {
  position: relative;
  isolation: isolate;
  min-height: 210px;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(243,240,234,0.68));
  box-shadow: 0 14px 45px rgba(44, 26, 14, 0.06);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.path-card::before {
  content: '';
  position: absolute;
  inset: auto -20% -40% 35%;
  height: 110px;
  border-radius: 999px;
  background: rgba(193, 68, 14, 0.08);
  filter: blur(18px);
  z-index: -1;
}
.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(193, 68, 14, 0.34);
  box-shadow: 0 22px 65px rgba(44, 26, 14, 0.11);
}
.path-num {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.path-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  margin: 0.45rem 0 0.45rem;
}
.path-card p {
  color: var(--text-mid);
  font-size: 0.86rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.path-card small {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.76rem;
}

/* ─── DIVIDER ─── */
.divider {
  max-width: 1140px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── FILTER BAR ─── */
.filter-shell {
  max-width: 1140px;
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
}
.search-wrap {
  position: relative;
  max-width: 520px;
  margin-bottom: 1rem;
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}
.search-wrap input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--text);
  font: 500 0.86rem var(--ff-sans);
  padding: 0.74rem 1rem 0.74rem 2.45rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.search-wrap input:focus {
  border-color: rgba(193, 68, 14, 0.5);
  background: white;
  box-shadow: 0 0 0 4px rgba(193, 68, 14, 0.09);
}
.filter-bar {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: 0.4rem;
}
.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  font-family: var(--ff-sans);
  transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ─── ARTICLE GRID ─── */
.articles-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* ─── ARTICLE CARD ─── */
.article-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 32px rgba(44, 26, 14, 0.045);
}
.article-card:not(.featured):hover,
.article-card:not(.featured):focus-within {
  transform: translateY(-4px);
  border-color: rgba(193, 68, 14, 0.25);
  box-shadow: 0 18px 52px rgba(44, 26, 14, 0.1);
}
.card-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.category-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cat-journey { background: var(--c-journey-bg); color: var(--c-journey); }
.cat-phd     { background: var(--c-phd-bg);     color: var(--c-phd); }
.cat-travel  { background: var(--c-travel-bg);  color: var(--c-travel); }
.cat-philosophy { background: var(--c-philosophy-bg); color: var(--c-philosophy); }
.cat-growth  { background: var(--c-growth-bg);  color: var(--c-growth); }
.cat-science { background: var(--c-science-bg); color: var(--c-science); }
.cat-marathi { background: var(--c-marathi-bg); color: var(--c-marathi); }

.read-time {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.card-num {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 500;
  margin-left: auto;
}
.card-title {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.7rem;
  flex-shrink: 0;
}
.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-read-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
  border-bottom: 1px solid rgba(193, 68, 14, 0.28);
}
.article-card:hover .card-read-link { gap: 0.6rem; }
.card-lang {
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
}

/* ─── FEATURED CARD (editorial hero) ─── */
.article-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 280px;
  background: linear-gradient(135deg, #1C1C1A 0%, #2E2218 60%, #1C1C1A 100%);
  border-color: transparent;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.article-card.featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.article-card.featured::after {
  content: 'Essay №01';
  position: absolute;
  right: -0.5rem;
  bottom: -2rem;
  font-family: var(--ff-serif);
  font-size: 7.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.035);
  letter-spacing: -0.04em;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
.article-card.featured .card-body {
  padding: 2.8rem 3.2rem;
  max-width: 740px;
}
.article-card.featured .category-tag {
  background: rgba(193, 68, 14, 0.2);
  color: #E8956D;
  border: 1px solid rgba(232, 149, 109, 0.25);
}
.article-card.featured .read-time,
.article-card.featured .card-num {
  color: rgba(245, 237, 216, 0.4);
}
.article-card.featured .card-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  color: #F5EDD8;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.article-card.featured .card-excerpt {
  color: rgba(245, 237, 216, 0.62);
  -webkit-line-clamp: 3;
  font-size: 0.92rem;
}
.article-card.featured .card-footer {
  border-top-color: rgba(255,255,255,0.08);
}
.article-card.featured .card-read-link { color: #E8956D; }
.article-card.featured .card-lang { color: rgba(245,237,216,0.35); }
@media (max-width: 720px) {
  .article-card.featured { grid-column: 1 / -1; flex-direction: column; }
  .article-card.featured .card-body { padding: 1.8rem; }
}

/* ─── ARTICLE PAGE ─── */
.article-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}
.article-page-header {
  margin-bottom: 3rem;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.article-back:hover { color: var(--accent); }
.article-page-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.article-page-header h1 {
  font-family: var(--ff-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.article-page-header h1.devanagari {
  font-family: var(--ff-deva);
}
.article-lede {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}
.article-divider {
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin: 2rem 0;
  border: none;
}

/* ─── ARTICLE BODY ─── */
.article-body {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.article-body.devanagari {
  font-family: var(--ff-deva);
  font-size: 1.08rem;
  line-height: 2;
}
.article-body p {
  margin-bottom: 1.5rem;
}
.article-body p:first-child::first-letter {
  font-size: 3.5rem;
  line-height: 0.85;
  float: left;
  padding-right: 0.1em;
  padding-top: 0.05em;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--ff-serif);
}
.article-body h2 {
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.article-body strong {
  font-weight: 600;
  color: var(--text);
}
.article-body em { font-style: italic; }
.article-body blockquote {
  border-left: 3px solid var(--accent-warm);
  padding: 0.5rem 1.2rem;
  margin: 2rem 0;
  background: var(--accent-bg);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-mid);
}

/* ─── ARTICLE FOOTER ─── */
.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.article-footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.2s;
}
.article-footer-nav a:hover { color: var(--accent); }
.back-to-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text);
  color: var(--bg) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s !important;
}
.back-to-all:hover { background: var(--accent) !important; }

/* ─── SITE FOOTER ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.site-footer p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.7;
}
.site-footer a { color: var(--accent); }
.empty-state {
  margin: 2rem auto 0;
  max-width: 640px;
  color: var(--text-mid);
  text-align: center;
  font-family: var(--ff-serif);
  font-size: 1rem;
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 1.4rem;
  background: rgba(255,255,255,0.55);
}

/* ─── SCROLL REVEAL (stagger support) ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease calc(var(--stagger, 0) * 55ms),
              transform 0.5s ease calc(var(--stagger, 0) * 55ms);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE GRID ─── */
@media (max-width: 960px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-note { max-width: 640px; }
  .path-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .articles-grid { grid-template-columns: 1fr; }
}

/* ─── RESPONSIVE (existing) ─── */
@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .articles-section { padding: 0 1.5rem 4rem; }
  .filter-bar { padding: 0; }
  .filter-shell { padding: 0 1.5rem; }
  .reader-paths { padding: 0 1.5rem; margin-bottom: 2.4rem; }
  .divider { padding: 0 1.5rem; }
  .site-header .inner { padding: 0 1.5rem; }
  .site-nav { gap: 1rem; }
  .article-page { padding: 2rem 1.5rem 4rem; }
}

/* ─── READING PROGRESS BAR ─── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 999;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress-bar {
    animation: progressGrow linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes progressGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* ─── THEME TOGGLE BUTTON ─── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  padding: 0.22rem 0.55rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s;
  line-height: 1.4;
  font-family: var(--ff-sans);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── DARK MODE ─── */
:root[data-theme="dark"] {
  --bg: #1A1410;
  --surface: #241D18;
  --surface2: #2E2520;
  --text: #F5EDD8;
  --text-mid: #C4A882;
  --text-light: #8A7260;
  --accent: #E8956D;
  --accent-warm: #C96A2E;
  --accent-bg: #2A1D15;
  --border: #3D3028;
  --border-light: #2E2520;
  --c-journey-bg: #1A2235; --c-phd-bg: #1E1830;
  --c-travel-bg: #162518; --c-philosophy-bg: #271A14;
  --c-growth-bg: #142020; --c-science-bg: #16154A;
  --c-marathi-bg: #251510;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .article-card { background: #241D18; }
[data-theme="dark"] .hero-note,
[data-theme="dark"] .path-card,
[data-theme="dark"] .empty-state {
  background: rgba(36, 29, 24, 0.75);
  box-shadow: 0 24px 70px rgba(0,0,0,0.18);
}
[data-theme="dark"] .search-wrap input { background: rgba(36, 29, 24, 0.78); }
[data-theme="dark"] .search-wrap input:focus { background: #241D18; }
[data-theme="dark"] .site-header { background: rgba(26, 20, 16, 0.95); }
[data-theme="dark"] .article-card.featured {
  background: linear-gradient(135deg, #241D18 0%, #301E10 60%, #241D18 100%);
}
[data-theme="dark"] .hero h1 { color: var(--text); }
[data-theme="dark"] .site-logo { color: var(--text); }
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ─── CARD AUDIO HINT (front page — passive indicator only) ─── */
.card-audio-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  color: var(--text-light);
  font-style: italic;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

/* ─── ARTICLE LISTEN CONTROLS ─── */
.ls-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.ls-voice-select {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-mid);
  border-radius: 99px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-family: var(--ff-sans);
  cursor: pointer;
  max-width: 200px;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238A8A82'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 1.8rem;
}
.ls-voice-select:focus { outline: none; border-color: var(--accent); }
.ls-voice-select:hover { border-color: var(--accent); }
.ls-voice-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-style: italic;
  white-space: nowrap;
}
/* ─── ARTICLE LISTEN BUTTON (inside essay pages) ─── */
.ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-bg);
  border: 1px solid rgba(193, 68, 14, 0.25);
  border-radius: 99px;
  padding: 0.48rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--ff-sans);
  transition: all 0.2s;
  margin-bottom: 1.4rem;
}
.ls-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.ls-btn.ls-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.ls-icon  { font-size: 1rem; line-height: 1; }
.ls-label { font-size: 0.82rem; }

/* ─── VIEW TRANSITIONS ─── */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: 220ms ease-in both fade-out-slide;
}
::view-transition-new(root) {
  animation: 280ms ease-out both fade-in-slide;
}
@keyframes fade-out-slide {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes fade-in-slide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
