/* ============================================================
   Sri Rudram — Chamakam & Namakam
   Design system: Royal Blue · Saffron Orange · Warm Neutral
   Fonts: Cinzel (display) · Source Serif 4 (editorial) · Jost (UI)
   ============================================================ */

:root {
  /* Royal Blue */
  --blue-50:#EAF1FA; --blue-100:#C3D9F2; --blue-200:#90BBE7;
  --blue-300:#5A97D4; --blue-400:#3078BE; --blue-500:#1A5EA8;
  --blue-600:#154D8A; --blue-700:#103B6A; --blue-800:#0A274A; --blue-900:#05132A;

  /* Saffron */
  --saffron-50:#FEF5E8; --saffron-100:#FCE4BA; --saffron-200:#FACE86;
  --saffron-300:#F8B450; --saffron-400:#F7A435; --saffron-500:#F7941D;
  --saffron-600:#D97A10; --saffron-700:#B05E08; --saffron-800:#854504; --saffron-900:#542A02;

  /* Warm neutrals */
  --neutral-0:#FFFFFF; --neutral-50:#F9F7F4; --neutral-100:#F2EDE6;
  --neutral-200:#E8DFD0; --neutral-300:#D5C8B2; --neutral-400:#B8A88A;
  --neutral-500:#8C7C62; --neutral-600:#6B5C44; --neutral-700:#4E4030;
  --neutral-800:#342C22; --neutral-900:#181410;

  /* Semantic */
  --bg: var(--neutral-50);
  --surface: var(--neutral-0);
  --border: var(--neutral-200);
  --border-subtle: var(--neutral-100);
  --text: var(--neutral-800);
  --text-secondary: var(--neutral-600);
  --text-muted: var(--neutral-400);

  /* Fonts */
  --font-display: 'Cinzel','Georgia',serif;
  --font-serif:   'Source Serif 4','Georgia',serif;
  --font-ui:      'Jost','Trebuchet MS',sans-serif;
  --font-sanskrit:'Tiro Devanagari Sanskrit','Noto Serif Devanagari','Sanskrit Text',serif;
  --font-mono:    'Courier New',monospace;

  /* Spacing */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px;
  --sp-6:24px; --sp-7:28px; --sp-8:32px; --sp-10:40px; --sp-12:48px;
  --sp-16:64px; --sp-20:80px;

  /* Radius & shadow */
  --r-sm:4px; --r-md:8px; --r-lg:12px; --r-xl:20px; --r-pill:999px;
  --shadow-xs:0 1px 2px rgba(10,39,74,.06);
  --shadow-sm:0 2px 8px rgba(10,39,74,.08),0 1px 3px rgba(10,39,74,.06);
  --shadow-md:0 4px 20px rgba(10,39,74,.10),0 2px 8px rgba(10,39,74,.06);
  --shadow-lg:0 8px 40px rgba(10,39,74,.14),0 4px 16px rgba(10,39,74,.08);
  --shadow-blue:0 4px 20px rgba(26,94,168,.25);
  --shadow-saffron:0 4px 20px rgba(247,148,29,.30);

  --ease:cubic-bezier(.4,0,.2,1);
  --dur-fast:150ms; --dur-med:220ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-500); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--blue-600); }
img { max-width: 100%; display: block; }

/* Layout */
.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--sp-8); }
.section { padding: var(--sp-16) 0; }
.section-tight { padding: var(--sp-10) 0; }
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-5); }
  .section { padding: var(--sp-12) 0; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  background: var(--blue-500);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0; gap: var(--sp-4);
}
.nav-logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.nav-logo-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--saffron-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; color: #fff; font-weight: 700;
  box-shadow: var(--shadow-saffron);
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; letter-spacing: 0.14em; color: #fff;
  line-height: 1; text-transform: uppercase;
  white-space: nowrap;
}
.nav-logo-text small { display: none; }
.nav-links { display: flex; gap: var(--sp-1); list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.8); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-links a.active { color: var(--saffron-300); }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 6px 10px; border-radius: var(--r-md);
  font-size: 18px; cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blue-600); flex-direction: column;
    padding: var(--sp-3); gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); }
  .nav-logo-text { font-size: 18px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-color: var(--blue-800);
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: var(--sp-20) 0 var(--sp-16);
  position: relative; overflow: hidden;
  border-bottom: 4px solid var(--saffron-500);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  /* Softer, even overlay — lets the image show through more across the whole hero */
  background-image:
    linear-gradient(90deg, rgba(5,19,42,.55) 0%, rgba(5,19,42,.45) 50%, rgba(5,19,42,.55) 100%),
    radial-gradient(ellipse 60% 60% at 50% 50%, transparent 0%, rgba(5,19,42,.25) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-inner .hero-sub,
.hero-inner .hero-badge { margin-left: auto; margin-right: auto; }
.hero-ctas { justify-content: center; }
.hero-chips { justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(247,148,29,.15);
  border: 1px solid rgba(247,148,29,.35);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--saffron-300);
  margin-bottom: var(--sp-6);
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--saffron-500); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700; letter-spacing: 0.04em;
  color: #fff; line-height: 1.08;
  margin-bottom: var(--sp-5);
}
.hero-title span { color: var(--saffron-400); }
.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.75);
  max-width: 620px; line-height: 1.75;
  margin-bottom: var(--sp-8);
}
.hero-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--saffron-200); margin-top: var(--sp-6);
  letter-spacing: 0.02em; line-height: 1.9;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-chip {
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,.85);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }

/* Compact page hero (non-homepage) */
.page-hero {
  background: var(--blue-800);
  padding: var(--sp-16) 0 var(--sp-10);
  position: relative; overflow: hidden;
  border-bottom: 4px solid var(--saffron-500);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-color: rgba(5,19,42,.3);
  background-image: radial-gradient(ellipse 50% 60% at 90% 50%, rgba(26,94,168,.4) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--saffron-400);
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.page-hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 2px; background: var(--saffron-500); border-radius: 1px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700; letter-spacing: 0.03em;
  color: #fff; line-height: 1.15; margin-bottom: var(--sp-3);
}
.page-hero-sub {
  font-family: var(--font-serif);
  font-size: 17px; color: rgba(255,255,255,.72);
  max-width: 640px; line-height: 1.75;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--saffron-600);
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.sec-eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 2px;
  background: var(--saffron-500); border-radius: 1px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600; letter-spacing: 0.02em;
  color: var(--blue-800);
  line-height: 1.15; margin-bottom: var(--sp-3);
}
.sec-desc {
  font-family: var(--font-serif);
  font-size: 17px; color: var(--text-secondary);
  max-width: 640px; line-height: 1.75;
}
.sec-header { margin-bottom: var(--sp-10); }
.sec-header-center { text-align: center; }
.sec-header-center .sec-eyebrow { justify-content: center; }
.sec-header-center .sec-desc { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 12px 24px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; white-space: nowrap;
  border: none; cursor: pointer; border-radius: var(--r-md);
  transition: all var(--dur-med) var(--ease);
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 6px 24px rgba(26,94,168,.35); color: #fff; }
.btn-accent { background: var(--saffron-500); color: #fff; box-shadow: var(--shadow-saffron); }
.btn-accent:hover { background: var(--saffron-600); color: #fff; }
.btn-outline-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-blue {
  background: transparent; color: var(--blue-500);
  border: 1.5px solid var(--blue-300);
}
.btn-outline-blue:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-600); }
.btn-lg { padding: 15px 32px; font-size: 15px; font-weight: 600; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap;
}
.badge-blue { background: var(--blue-100); color: var(--blue-700); }
.badge-saffron { background: var(--saffron-100); color: var(--saffron-800); }
.badge-neutral { background: var(--neutral-200); color: var(--neutral-700); }

/* ============================================================
   STATS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-10);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-6);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--saffron-500));
}
.stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 700;
  color: var(--blue-800); line-height: 1;
  letter-spacing: -0.01em;
}
.stat-sub {
  font-family: var(--font-serif); font-size: 13px;
  color: var(--text-secondary); margin-top: var(--sp-2);
}

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-5);
}
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: inherit; }
.card-accent-bar { height: 4px; }
.cab-blue { background: var(--blue-500); }
.cab-saffron { background: var(--saffron-500); }
.cab-gradient { background: linear-gradient(90deg, var(--blue-500), var(--saffron-500)); }
.card-body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; margin-bottom: var(--sp-4);
}
.ci-blue { background: var(--blue-50); color: var(--blue-700); }
.ci-saffron { background: var(--saffron-50); color: var(--saffron-700); }
.card-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--saffron-600);
  margin-bottom: var(--sp-2);
}
.card-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: var(--blue-800); margin-bottom: var(--sp-2);
  letter-spacing: 0.02em;
}
.card-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 18px; color: var(--saffron-700);
  margin-bottom: var(--sp-3); line-height: 1.6;
}
.card-text {
  font-family: var(--font-serif);
  font-size: 14.5px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: var(--sp-4);
  flex: 1;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.card-link {
  font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  color: var(--blue-500); letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 6px;
}
.card:hover .card-link { color: var(--saffron-600); }
.card-meta { color: var(--text-muted); font-size: 12px; }

/* Feature tiles (homepage) */
.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-xs);
}
.feature-tile h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--blue-800); margin: var(--sp-3) 0 var(--sp-2);
  letter-spacing: 0.02em;
}
.feature-tile p {
  font-family: var(--font-serif); font-size: 14.5px;
  color: var(--text-secondary); line-height: 1.7;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--saffron-50); color: var(--saffron-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
}

/* ============================================================
   TWO-COLUMN SPLIT (overview)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: stretch;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.split-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  text-decoration: none; color: inherit;
}
.split-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.split-card-banner {
  padding: var(--sp-6) var(--sp-8);
  color: #fff;
}
.split-card-banner-blue {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
}
.split-card-banner-saffron {
  background: linear-gradient(135deg, var(--saffron-500), var(--saffron-700));
}
.split-card-banner h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: 0.04em; margin-bottom: 4px;
}
.split-card-banner p {
  font-family: var(--font-serif); font-size: 14px;
  opacity: 0.85; font-style: italic;
}
.split-card-body {
  padding: var(--sp-8);
  font-family: var(--font-serif);
  color: var(--text-secondary);
  line-height: 1.75; font-size: 15px;
  flex: 1;
}
.split-card-body p + p { margin-top: var(--sp-3); }
.split-card-foot {
  padding: var(--sp-4) var(--sp-8);
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.split-card-foot .count {
  font-family: var(--font-ui); font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 11px;
}

/* ============================================================
   ANUVAKA LIST (overview pages)
   ============================================================ */
.anuvaka-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-4);
}
.anuvaka-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-xs);
  display: flex; gap: var(--sp-4);
  text-decoration: none; color: inherit;
  transition: all var(--dur-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.anuvaka-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--saffron-500);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur-med) var(--ease);
}
.anuvaka-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue-200);
  color: inherit;
}
.anuvaka-item:hover::before { transform: scaleY(1); }
.anuvaka-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  flex-shrink: 0;
  border: 2px solid var(--blue-100);
  transition: all var(--dur-med) var(--ease);
}
.anuvaka-item:hover .anuvaka-num {
  background: var(--saffron-500); color: #fff; border-color: var(--saffron-500);
}
.anuvaka-body { flex: 1; min-width: 0; }
.anuvaka-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  color: var(--blue-800);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.anuvaka-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 14px; color: var(--saffron-700);
  margin-bottom: var(--sp-2);
}
.anuvaka-desc {
  font-family: var(--font-serif);
  font-size: 13.5px; color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   DETAIL PAGE — VERSES
   ============================================================ */
.verse-toolbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-8);
}
.breadcrumb {
  font-size: 13px; color: var(--text-secondary);
  font-family: var(--font-ui);
}
.breadcrumb a { color: var(--blue-500); }
.breadcrumb .sep { margin: 0 var(--sp-2); color: var(--text-muted); }

.verse {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--sp-5);
  position: relative;
}
.verse-num {
  position: absolute; top: -10px; left: var(--sp-6);
  background: var(--saffron-500); color: #fff;
  padding: 3px 12px; border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: var(--shadow-saffron);
}
.verse-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 22px; line-height: 1.9;
  color: var(--blue-800);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.01em;
}
.verse-translit {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px; line-height: 1.75;
  color: var(--saffron-700);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px dashed var(--border);
}
.verse-meaning {
  font-family: var(--font-serif);
  font-size: 15px; line-height: 1.8;
  color: var(--text-secondary);
}
.verse-meaning strong { color: var(--blue-700); font-weight: 600; }

.word-table {
  width: 100%; border-collapse: collapse;
  margin-top: var(--sp-5); font-size: 14px;
}
.word-table th {
  text-align: left; padding: var(--sp-2) var(--sp-3);
  background: var(--blue-50); color: var(--blue-700);
  font-family: var(--font-ui); font-weight: 600; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 2px solid var(--blue-100);
}
.word-table td {
  padding: var(--sp-3); border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-serif); vertical-align: top;
}
.word-table td:first-child {
  font-family: var(--font-sanskrit);
  color: var(--blue-800); font-size: 15px; width: 30%;
}
.word-table td:nth-child(2) {
  font-style: italic; color: var(--saffron-700); width: 30%;
}

/* Prev / Next nav */
.verse-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}
.verse-nav a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-med) var(--ease);
  text-decoration: none;
}
.verse-nav a:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.verse-nav .label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--sp-1);
}
.verse-nav .title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; color: var(--blue-800);
}
.verse-nav .next { text-align: right; }
@media (max-width: 640px) {
  .verse-nav { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT / PROSE
   ============================================================ */
.prose {
  font-family: var(--font-serif);
  font-size: 17px; line-height: 1.8;
  color: var(--text-secondary);
  max-width: 760px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: var(--blue-800); letter-spacing: 0.02em;
  margin-top: var(--sp-10); margin-bottom: var(--sp-3);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  color: var(--blue-700); letter-spacing: 0.02em;
  margin-top: var(--sp-6); margin-bottom: var(--sp-2);
}
.prose p { margin-bottom: var(--sp-4); }
.prose ul, .prose ol { margin: var(--sp-3) 0 var(--sp-4) var(--sp-6); }
.prose li { margin-bottom: var(--sp-2); }
.prose strong { color: var(--blue-700); font-weight: 600; }
.prose blockquote {
  border-left: 4px solid var(--saffron-500);
  background: var(--saffron-50);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-6) 0;
  font-style: italic;
  color: var(--blue-700);
}

/* ============================================================
   ORNAMENTAL DIVIDER
   ============================================================ */
.divider-ornamental {
  display: flex; align-items: center; gap: var(--sp-5);
  margin: var(--sp-12) 0;
  color: var(--saffron-500);
}
.divider-ornamental::before,
.divider-ornamental::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-200));
}
.divider-ornamental::after {
  background: linear-gradient(90deg, var(--blue-200), transparent);
}
.divider-ornamental-icon {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--saffron-500);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-10);
  text-align: center;
  color: #fff;
  position: relative; overflow: hidden;
  border: 1px solid var(--blue-800);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(247,148,29,.2) 0%, transparent 70%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--saffron-400);
  margin-bottom: var(--sp-3);
}
.cta-banner h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px); font-weight: 600;
  letter-spacing: 0.03em; margin-bottom: var(--sp-3);
}
.cta-banner p {
  font-family: var(--font-serif);
  font-size: 16px; color: rgba(255,255,255,.75);
  max-width: 540px; margin: 0 auto var(--sp-6);
  line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-900);
  border-top: 4px solid var(--saffron-500);
  padding: var(--sp-12) 0 var(--sp-8);
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; letter-spacing: 0.08em;
  color: #fff; margin-bottom: var(--sp-3);
}
.footer-brand span { color: var(--saffron-400); }
.footer-tag {
  font-family: var(--font-serif); font-size: 14px;
  color: rgba(255,255,255,.55); line-height: 1.7;
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--saffron-400);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a {
  color: rgba(255,255,255,.7); font-size: 14px;
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--saffron-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-5);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
  font-size: 12px; color: rgba(255,255,255,.45);
}
.footer-om {
  font-family: var(--font-sanskrit);
  font-size: 22px; color: var(--saffron-400);
  letter-spacing: 0.05em;
}

/* ============================================================
   LANGUAGE / SCRIPT TOOLBAR (sticky)
   ============================================================ */
.lang-toolbar {
  position: sticky;
  top: 70px;                      /* sits just below the main nav */
  z-index: 50;
  background: rgba(249,247,244,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3) 0;
  margin-bottom: var(--sp-8);
}
.lang-toolbar-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: var(--sp-4);
  justify-content: space-between;
}
.lang-group {
  display: flex; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap;
}
.lang-label {
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
}
.lang-pills {
  display: inline-flex;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.lang-pill {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 500;
  color: var(--blue-700);
  cursor: pointer; user-select: none;
  border: none; background: transparent;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.lang-pill:hover { color: var(--blue-900); }
.lang-pill.active {
  background: var(--blue-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.lang-pills.saffron { background: var(--saffron-50); border-color: var(--saffron-100); }
.lang-pills.saffron .lang-pill { color: var(--saffron-700); }
.lang-pills.saffron .lang-pill.active {
  background: var(--saffron-500); color: #fff;
}

.toolbar-actions {
  display: flex; gap: var(--sp-2);
}
.toolbar-btn {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.toolbar-btn:hover {
  border-color: var(--blue-300);
  color: var(--blue-700);
  background: var(--blue-50);
}

@media (max-width: 768px) {
  .lang-toolbar { top: 62px; }
  .lang-toolbar-inner { gap: var(--sp-3); }
  .lang-label { display: none; }
  .lang-pill { padding: 5px 10px; font-size: 11px; }
}

/* ============================================================
   ACCORDION (single-page Anuvaka list)
   ============================================================ */
.accordion-list {
  display: flex; flex-direction: column;
  gap: var(--sp-3);
}
.accordion-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease);
  scroll-margin-top: 140px;       /* so anchor links land cleanly below nav */
}
.accordion-row[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5) var(--sp-6);
  display: flex; align-items: center;
  gap: var(--sp-5);
  position: relative;
  transition: background var(--dur-fast) var(--ease);
}
.accordion-summary::-webkit-details-marker { display: none; }
.accordion-summary::marker { content: ''; }
.accordion-row:hover .accordion-summary { background: var(--neutral-50); }
.accordion-row[open] .accordion-summary {
  background: linear-gradient(90deg, var(--blue-50), transparent);
  border-bottom: 1px solid var(--border-subtle);
}

.acc-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  border: 2px solid var(--blue-100);
  flex-shrink: 0;
  transition: all var(--dur-med) var(--ease);
}
.accordion-row[open] .acc-num {
  background: var(--saffron-500); color: #fff; border-color: var(--saffron-500);
  box-shadow: var(--shadow-saffron);
}
.acc-body { flex: 1; min-width: 0; }
.acc-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--blue-800);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.acc-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 14px; color: var(--saffron-700);
  margin-bottom: 3px;
  line-height: 1.5;
}
.acc-desc {
  font-family: var(--font-serif);
  font-size: 13.5px; color: var(--text-secondary);
  line-height: 1.55;
}
.acc-chevron {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--neutral-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform var(--dur-med) var(--ease),
              background var(--dur-med) var(--ease);
}
.accordion-row[open] .acc-chevron {
  transform: rotate(180deg);
  background: var(--blue-500); color: #fff;
}

.accordion-content {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  background: var(--neutral-50);
}
@media (max-width: 640px) {
  .accordion-summary { padding: var(--sp-4); gap: var(--sp-3); }
  .acc-num { width: 42px; height: 42px; font-size: 16px; }
  .acc-title { font-size: 15px; }
  .accordion-content { padding: var(--sp-5) var(--sp-4) var(--sp-6); }
}

/* Nested per-verse "Meaning" sub-accordion — collapsed by default,
   expands to reveal the English meaning inline within the verse. */
.meaning-toggle {
  margin-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}
.meaning-toggle-summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-3) 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  user-select: none;
}
.meaning-toggle-summary::-webkit-details-marker { display: none; }
.meaning-toggle-summary::marker { content: ''; }
.meaning-toggle-summary:hover { color: var(--saffron-600); }
.meaning-toggle-chevron {
  transition: transform 0.2s ease;
  color: var(--neutral-500);
  font-size: 14px;
}
.meaning-toggle[open] .meaning-toggle-chevron { transform: rotate(180deg); }
.meaning-toggle[open] .meaning-toggle-summary { color: var(--saffron-600); }
.meaning-toggle .verse-meaning {
  margin-top: var(--sp-2);
  padding-bottom: var(--sp-2);
}

/* Per-verse audio player — hidden by default; shown once the audio file loads.
   If the file 404s, onerror keeps it hidden. Drop .mp3 files into assets/audio/ */
.verse-audio {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--neutral-50);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--saffron-400);
  border-radius: var(--r-md);
}
.verse-audio-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: var(--sp-2);
}
.verse-audio audio {
  width: 100%;
  height: 36px;
  display: block;
}

/* Placeholder shown inside empty Anuvaka rows */
.verse-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
  font-family: var(--font-serif);
  color: var(--text-secondary);
}
.verse-placeholder-icon {
  font-family: var(--font-display);
  font-size: 28px; color: var(--saffron-500);
  margin-bottom: var(--sp-3);
}
.verse-placeholder strong {
  display: block; color: var(--blue-800);
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: 0.03em;
  margin-bottom: var(--sp-2);
}
.verse-placeholder small {
  font-size: 13px; color: var(--text-muted);
}

/* Tighten .verse inside accordion so it doesn't feel nested-heavy */
.accordion-content .verse {
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.accordion-content .verse:last-child { margin-bottom: 0; }

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mb-8 { margin-bottom: var(--sp-8); }
