/* ===== GARJANAA - Complete Stylesheet ===== */
/* A roaring call to live the eternal dharma of truth */

:root {
  --fire: #c45c26;
  --ember: #e8a838;
  --ash: #1a1a1a;
  --smoke: #2d2d2d;
  --ember-glow: #f0c060;
  --mist: #f5f0e8;
  --stone: #a0968b;
  --stone-dim: #938978;
  --card: rgba(45,45,45,0.6);
  --card-border: rgba(196,92,38,0.15);
}

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

html { scroll-behavior: smooth; }

h1, h2, h3, h4, h5, h6, section, .doc-part-banner, .rung, .part-heading {
  scroll-margin-top: 100px;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--ash);
  color: var(--mist);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196,92,38,0.1);
  transition: all 0.3s ease;
}
nav.scrolled { background: rgba(13,13,13,0.95); }
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between; align-items: center;
}
.nav-logo {
  font-family: 'Cinzel', serif; font-size: 1.2rem;
  font-weight: 700; color: var(--ember-glow);
  letter-spacing: 0.15em; text-decoration: none;
}
/* Inline links within running prose (not nav, cards, or TOC, which all use
   more specific classes and win on specificity regardless of rule order) */
p a {
  color: var(--ember-glow);
  text-decoration: underline;
  text-decoration-color: rgba(240,192,96,0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
p a:hover { color: var(--fire); text-decoration-color: var(--fire); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--stone); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--fire);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ember-glow); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.current { color: var(--ember-glow); }
.nav-links a.current::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; position: relative;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a0f0a 40%, #2a1a10 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(196,92,38,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(232,168,56,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-flame {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center bottom, rgba(196,92,38,0.3) 0%, rgba(232,168,56,0.1) 40%, transparent 70%);
  filter: blur(40px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 2rem; }
.hero-deva {
  font-family: 'Cinzel', serif; font-size: 1.2rem;
  color: var(--ember); letter-spacing: 0.3em;
  margin-bottom: 1rem; display: block;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 10vw, 7rem); font-weight: 900;
  letter-spacing: 0.15em; color: var(--mist);
  text-shadow: 0 0 40px rgba(196,92,38,0.4), 0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 0.5rem;
  animation: roarIn 1.5s ease-out;
}
.hero-title .g { color: var(--ember-glow); }
@keyframes roarIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem); font-style: italic;
  color: var(--ember-glow); margin-bottom: 2rem; opacity: 0.9;
  animation: roarIn 1.5s ease-out 0.3s both;
}
.hero-desc {
  font-size: 1.15rem; color: var(--stone);
  max-width: 600px; margin: 0 auto 3rem;
  animation: roarIn 1.5s ease-out 0.6s both;
}
.hero-cta {
  display: inline-block; padding: 1rem 3rem;
  border: 2px solid var(--fire); color: var(--ember-glow);
  text-decoration: none; font-family: 'Cinzel', serif;
  font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase;
  transition: all 0.4s ease; position: relative; overflow: hidden;
  animation: roarIn 1.5s ease-out 0.9s both;
}
.hero-cta::before {
  content: ''; position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196,92,38,0.3), transparent);
  transition: left 0.6s ease;
}
.hero-cta:hover::before { left: 100%; }
.hero-cta:hover {
  background: rgba(196,92,38,0.1);
  box-shadow: 0 0 30px rgba(196,92,38,0.3);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone);
  animation: roarIn 1.5s ease-out 1.2s both;
}

/* ===== SECTIONS ===== */
section {
  max-width: 1100px; margin: 0 auto;
  padding: 6rem 2rem; position: relative;
}
.section-header {
  text-align: center; margin-bottom: 4rem;
}
.section-label {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fire); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700;
  color: var(--mist); margin-bottom: 1rem;
}
.section-title em { color: var(--ember-glow); font-style: italic; }
.section-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--fire), transparent);
  margin: 2rem auto;
}
.section-subtitle {
  color: var(--stone); max-width: 700px;
  margin: 0 auto 2rem; text-align: center;
}

/* ===== INVITATION ===== */
.invitation {
  background: linear-gradient(180deg, var(--ash) 0%, var(--smoke) 100%);
}
.invitation-text {
  font-size: 1.25rem; text-align: center;
  max-width: 800px; margin: 0 auto 3rem;
  color: var(--stone);
}
.invitation-text strong { color: var(--mist); font-weight: 600; }

/* ===== QUOTE BLOCK ===== */
.quote-block {
  border-left: 3px solid var(--fire);
  padding: 2rem 2.5rem; margin: 3rem auto;
  max-width: 800px; background: rgba(196,92,38,0.05);
  position: relative;
}
.quote-block::before {
  content: '"'; font-family: 'Cinzel', serif;
  font-size: 4rem; color: var(--fire); opacity: 0.3;
  position: absolute; top: -0.5rem; left: 1rem;
  line-height: 1;
}
.quote-block p {
  font-style: italic; font-size: 1.15rem;
  color: var(--mist); position: relative; z-index: 1;
}

/* ===== PILLARS ===== */
.pillars { background: var(--smoke); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem;
}
.pillar-card {
  background: linear-gradient(145deg, rgba(45,45,45,0.8), rgba(30,30,30,0.9));
  border: 1px solid rgba(196,92,38,0.15); border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--fire), var(--ember));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(196,92,38,0.1);
  border-color: rgba(196,92,38,0.3);
}
.pillar-icon {
  font-family: 'Cinzel', serif; font-size: 2.5rem;
  color: var(--fire); margin-bottom: 1rem; opacity: 0.8;
}
.pillar-card h3 {
  font-family: 'Cinzel', serif; font-size: 1.3rem;
  color: var(--ember-glow); margin-bottom: 0.5rem;
}
.pillar-card .subtitle {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 1rem;
}
.pillar-card p {
  color: var(--stone); font-size: 0.95rem; line-height: 1.7;
}
.pillar-card a {
  display: inline-block; margin-top: 1.5rem;
  color: var(--fire); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: color 0.3s ease;
}
.pillar-card a:hover { color: var(--ember-glow); }

/* ===== TEXTS ===== */
.texts-section {
  background: linear-gradient(180deg, var(--smoke) 0%, var(--ash) 100%);
}
.texts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem;
}
.text-card {
  background: rgba(45,45,45,0.6);
  border: 1px solid rgba(196,92,38,0.1); border-radius: 4px;
  padding: 2.5rem; transition: all 0.3s ease;
}
.text-card:hover {
  border-color: rgba(196,92,38,0.25);
  background: rgba(45,45,45,0.8);
}
.text-card .sanskrit-title {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--ember-glow); margin-bottom: 0.3rem;
}
.text-card .english-title {
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  color: var(--stone); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.text-card p {
  color: var(--stone); font-size: 0.95rem; margin-bottom: 1rem;
}
.text-card .tag {
  display: inline-block; padding: 0.2rem 0.8rem;
  background: rgba(196,92,38,0.1);
  border: 1px solid rgba(196,92,38,0.2); border-radius: 20px;
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  color: var(--ember); letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.5rem; margin-bottom: 0.5rem;
}

/* ===== KHANDA GRID ===== */
.khanda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
  margin: 2rem 0;
}
.khanda-card {
  background: rgba(45,45,45,0.5);
  border: 1px solid rgba(196,92,38,0.1); border-radius: 4px;
  padding: 1.5rem;
}
.khanda-card h3 {
  font-family: 'Cinzel', serif; font-size: 1rem;
  color: var(--ember-glow); margin-bottom: 0.5rem;
}
.khanda-card p { font-size: 0.9rem; color: var(--stone); }

/* ===== GURUS ===== */
.gurus-intro {
  text-align: center; max-width: 800px;
  margin: 0 auto 4rem; font-size: 1.15rem; color: var(--stone);
}
.gurus-intro strong { color: var(--ember-glow); }
.guru-story {
  background: linear-gradient(145deg, rgba(45,45,45,0.6), rgba(30,30,30,0.8));
  border: 1px solid rgba(196,92,38,0.1); border-radius: 4px;
  padding: 2.5rem; margin-bottom: 2rem;
}
.guru-story h3 {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--ember-glow); margin-bottom: 1rem;
}
.guru-story p { color: var(--stone); margin-bottom: 0.8rem; }
.guru-story .dialogue {
  border-left: 2px solid var(--fire);
  padding-left: 1.5rem; margin: 1.5rem 0;
  font-style: italic; color: var(--mist);
}
.guru-story .dialogue .speaker {
  font-weight: 600; color: var(--ember); font-style: normal;
}
.gurus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.guru-item {
  background: rgba(45,45,45,0.4);
  border: 1px solid rgba(196,92,38,0.08); border-radius: 4px;
  padding: 1.5rem; transition: all 0.3s ease; position: relative;
}
.guru-item::before {
  content: attr(data-number);
  position: absolute; top: 1rem; right: 1rem;
  font-family: 'Cinzel', serif; font-size: 1.5rem;
  color: rgba(196,92,38,0.15); font-weight: 900;
}
.guru-item:hover {
  border-color: rgba(196,92,38,0.2);
  background: rgba(45,45,45,0.7);
  transform: translateY(-3px);
}
.guru-item h3 {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--ember-glow); margin-bottom: 0.5rem; padding-right: 2rem;
}
.guru-item .sanskrit {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  color: var(--stone); letter-spacing: 0.05em; margin-bottom: 0.8rem;
}
.guru-item p { font-size: 0.9rem; color: var(--stone); line-height: 1.6; }
.guru-item .lesson {
  margin-top: 0.8rem; padding-top: 0.8rem;
  border-top: 1px solid rgba(196,92,38,0.1);
  font-style: italic; color: var(--mist); font-size: 0.9rem;
}

/* ===== CHAKRAS ===== */
.chakras-section {
  background: linear-gradient(180deg, var(--ash) 0%, var(--smoke) 100%);
}
.chakra-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 3rem;
  margin-top: 3rem;
}
.chakra-card {
  background: linear-gradient(145deg, rgba(45,45,45,0.8), rgba(25,25,25,0.9));
  border: 1px solid rgba(196,92,38,0.15); border-radius: 8px;
  padding: 3rem; position: relative; overflow: hidden;
}
.chakra-card::after {
  content: ''; position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(196,92,38,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.chakra-card h2 {
  font-family: 'Cinzel', serif; font-size: 1.8rem;
  color: var(--ember-glow); margin-bottom: 0.5rem;
}
.chakra-card .subtitle {
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fire); margin-bottom: 1.5rem;
}
.chakra-card p { color: var(--stone); margin-bottom: 1rem; font-size: 1rem; }
.chakra-card ul { list-style: none; padding: 0; }
.chakra-card ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(196,92,38,0.08);
  color: var(--stone); font-size: 0.95rem;
  position: relative; padding-left: 1.5rem;
}
.chakra-card ul li::before {
  content: '>'; position: absolute; left: 0;
  color: var(--fire); font-weight: bold;
}

/* ===== PARABLES ===== */
.parables-section { background: var(--smoke); }
.parable {
  background: linear-gradient(145deg, rgba(45,45,45,0.6), rgba(30,30,30,0.8));
  border: 1px solid rgba(196,92,38,0.1); border-radius: 4px;
  padding: 2.5rem; margin-bottom: 2rem; position: relative;
}
.parable h2 {
  font-family: 'Cinzel', serif; font-size: 1.3rem;
  color: var(--ember-glow); margin-bottom: 0.3rem;
}
.parable .source {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  color: var(--stone); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.parable p { color: var(--stone); margin-bottom: 1rem; font-size: 1.05rem; }
.parable .moral {
  margin-top: 1.5rem; padding: 1.5rem;
  background: rgba(196,92,38,0.05);
  border-left: 3px solid var(--fire);
  font-style: italic; color: var(--mist);
}

/* ===== PHILOSOPHY ===== */
.philosophy-section { background: var(--ash); }
.philosophy-content { max-width: 800px; margin: 0 auto; }
.philosophy-content h2 {
  font-family: 'Cinzel', serif; font-size: 1.6rem;
  color: var(--ember-glow); margin: 3rem 0 1rem;
}
.philosophy-content h3 {
  font-family: 'Cinzel', serif; font-size: 1.2rem;
  color: var(--mist); margin: 2rem 0 0.8rem;
}
.philosophy-content p {
  color: var(--stone); font-size: 1.05rem; margin-bottom: 1rem;
}
.philosophy-content em { color: var(--ember-glow); font-style: italic; }
.philosophy-content strong { color: var(--mist); }
.philosophy-content blockquote {
  border-left: 2px solid var(--fire); padding-left: 1.5rem;
  margin: 1.5rem 0; font-style: italic; color: var(--mist);
}
.devata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
  margin: 2rem 0;
}
.devata-card {
  background: rgba(45,45,45,0.5);
  border: 1px solid rgba(196,92,38,0.1); border-radius: 4px;
  padding: 1.5rem; text-align: center; transition: all 0.3s ease;
}
.devata-card:hover {
  border-color: rgba(196,92,38,0.25);
  background: rgba(45,45,45,0.7);
}
.devata-card .devata-symbol { font-size: 2rem; margin-bottom: 0.5rem; }
.devata-card h3 {
  font-family: 'Cinzel', serif; font-size: 1rem;
  color: var(--ember-glow); margin-bottom: 0.3rem;
}
.devata-card .devata-quality {
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  color: var(--fire); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 0.8rem;
}
.devata-card p { font-size: 0.85rem; color: var(--stone); }

/* ===== PRACTICES ===== */
.practices-section {
  background: linear-gradient(180deg, var(--smoke) 0%, var(--ash) 100%);
}
.practice-stream {
  background: linear-gradient(145deg, rgba(45,45,45,0.6), rgba(30,30,30,0.8));
  border: 1px solid rgba(196,92,38,0.1); border-radius: 4px;
  padding: 2.5rem; margin-bottom: 2.5rem;
}
.practice-stream h2 {
  font-family: 'Cinzel', serif; font-size: 1.5rem;
  color: var(--ember-glow); margin-bottom: 1rem;
}
.practice-stream h3 {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--mist); margin: 1.5rem 0 0.8rem;
}
.practice-stream p { color: var(--stone); font-size: 1rem; margin-bottom: 1rem; }
.practice-stream ol, .practice-stream ul {
  margin-left: 1.5rem; color: var(--stone);
}
.practice-stream li { margin-bottom: 0.5rem; }
.practice-stream blockquote {
  border-left: 2px solid var(--fire); padding-left: 1.5rem;
  margin: 1.5rem 0; font-style: italic; color: var(--mist);
}

/* ===== COMMUNITY ===== */
.community-section { background: var(--ash); }
.community-content { max-width: 800px; margin: 0 auto; }
.community-content h2 {
  font-family: 'Cinzel', serif; font-size: 1.5rem;
  color: var(--ember-glow); margin: 2.5rem 0 1rem;
}
.community-content h3 {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--mist); margin: 1.5rem 0 0.8rem;
}
.community-content p { color: var(--stone); font-size: 1rem; margin-bottom: 1rem; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
  margin: 2rem 0;
}
.principle-card {
  background: rgba(45,45,45,0.4);
  border: 1px solid rgba(196,92,38,0.08); border-radius: 4px;
  padding: 1.5rem;
}
.principle-card h3 {
  font-family: 'Cinzel', serif; font-size: 1rem;
  color: var(--ember-glow); margin-bottom: 0.5rem;
}
.principle-card p { font-size: 0.9rem; color: var(--stone); }
.levels-grid { display: grid; gap: 1.5rem; margin: 2rem 0; }
.level-card {
  background: rgba(45,45,45,0.5);
  border-left: 3px solid var(--fire); border-radius: 0 4px 4px 0;
  padding: 1.5rem 2rem;
}
.level-card h3 {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--ember-glow); margin-bottom: 0.5rem;
}
.level-card p { font-size: 0.95rem; color: var(--stone); }

/* ===== CLARITY ===== */
.clarity-section {
  background: linear-gradient(180deg, var(--smoke) 0%, var(--ash) 100%);
}
.clarity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.clarity-item {
  padding: 2rem; border-left: 2px solid var(--fire);
}
.clarity-item h4 {
  font-family: 'Cinzel', serif; font-size: 1.2rem;
  color: var(--ember-glow); margin-bottom: 1rem;
}
.clarity-item p { color: var(--stone); font-size: 0.95rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--ash);
  border-top: 1px solid rgba(196,92,38,0.1);
  padding: 4rem 2rem; text-align: center;
}
footer .footer-title {
  font-family: 'Cinzel', serif; font-size: 1.5rem;
  color: var(--ember-glow); margin-bottom: 1rem;
}
footer p { color: var(--stone); max-width: 600px; margin: 0 auto 2rem; }
footer .footer-cta {
  display: inline-block; padding: 0.8rem 2.5rem;
  border: 1px solid var(--fire); color: var(--ember-glow);
  text-decoration: none; font-family: 'Cinzel', serif;
  font-size: 0.9rem; letter-spacing: 0.15em;
  text-transform: uppercase; transition: all 0.3s ease;
}
footer .footer-cta:hover {
  background: rgba(196,92,38,0.1);
  box-shadow: 0 0 20px rgba(196,92,38,0.2);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* What Is Garjanaa Section */
.what-is {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.what-is-content p {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--stone);
  margin-bottom: 1.5rem;
}
.what-is-content strong { color: var(--mist); }

/* Ritual Content Styling */
.ritual-content { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.ritual-verse {
  border-left: 3px solid var(--fire);
  padding-left: 1.5rem; margin: 2rem 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem; line-height: 1.9;
  color: var(--stone); font-style: italic;
}
.ritual-verse p { margin-bottom: 1rem; }
.ritual-content h3 {
  font-family: 'Cinzel', serif; font-size: 1.4rem;
  color: var(--mist); margin-top: 3rem; margin-bottom: 1rem;
  text-align: center;
}
.ritual-source {
  text-align: center; font-family: 'Inter', sans-serif;
  font-size: 0.9rem; color: var(--stone-dim);
  margin-top: 3rem; text-transform: uppercase; letter-spacing: 0.1em;
}

/* Hero Slogan - Baddhoham vimuktah syam */
.hero-slogan {
  margin: 2rem 0; padding: 1.5rem 2rem;
  border-top: 1px solid rgba(240,192,96,0.25);
  border-bottom: 1px solid rgba(240,192,96,0.25);
  text-align: center; max-width: 700px;
  margin-left: auto; margin-right: auto;
}
.slogan-deva {
  font-family: 'Cinzel', serif; font-size: 2.2rem; font-weight: 700;
  color: var(--fire); letter-spacing: 0.08em;
  margin-bottom: 0.4rem; line-height: 1.3;
}
.slogan-meaning {
  font-family: 'EB Garamond', serif; font-size: 1.3rem; font-style: italic;
  color: var(--mist); margin-bottom: 0.3rem; letter-spacing: 0.02em;
}

/* ===== MOBILE NAV TOGGLE ===== */
.nav-toggle {
  display: none;
  width: 32px; height: 24px;
  position: relative;
  background: none; border: none; cursor: pointer;
  padding: 0; z-index: 1100;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--ember-glow);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span { top: 11px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* ===== NAV DROPDOWN (Library) ===== */
.nav-dropdown { position: relative; }
.nav-dropdown > .dropdown-trigger {
  background: none; border: none; cursor: pointer;
  color: var(--stone); font-family: 'Inter', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.3rem;
  transition: color 0.3s ease;
}
.nav-dropdown > .dropdown-trigger::after {
  content: '▾'; font-size: 0.7em; line-height: 1;
}
.nav-dropdown:hover > .dropdown-trigger,
.nav-dropdown.open > .dropdown-trigger,
.nav-dropdown:focus-within > .dropdown-trigger { color: var(--ember-glow); }
.dropdown-menu {
  list-style: none;
  position: absolute; top: 100%; right: 0;
  background: rgba(20,20,20,0.98);
  border: 1px solid rgba(196,92,38,0.2); border-radius: 4px;
  min-width: 220px; padding: 0.5rem 0;
  margin-top: 0.75rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.25s ease;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li a {
  display: block; padding: 0.65rem 1.25rem;
  font-size: 0.8rem; letter-spacing: 0.05em; text-transform: none;
  color: var(--stone); white-space: nowrap;
}
.dropdown-menu li a:hover { color: var(--ember-glow); background: rgba(196,92,38,0.08); }
.dropdown-menu li a::after { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: min(78vw, 320px);
    background: rgba(13,13,13,0.98);
    border-left: 1px solid rgba(196,92,38,0.15);
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 0; width: 100%; }
  .nav-dropdown > .dropdown-trigger { width: 100%; padding: 0.9rem 0; justify-content: space-between; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; background: none; border: none; box-shadow: none;
    margin: 0 0 0.5rem; padding: 0 0 0 1rem;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu li a { padding: 0.7rem 0; }
  .nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1050;
  }
  .nav-overlay.open { display: block; }

  .chakra-container { grid-template-columns: 1fr; }
  .gurus-grid { grid-template-columns: 1fr; }
  .devata-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.5rem; }
}

/* =====================================================================
   LIBRARY / LONG-FORM DOCUMENT PAGES
   Shared dark-theme styling for advait.html, garjanaa-document.html,
   ladder.html — replaces the old per-page inline <style> blocks that
   used undefined variables (--gold, --cream, --deep) and a mismatched
   light "parchment" theme inconsistent with the rest of the site.
   ===================================================================== */
.doc-hero {
  background: linear-gradient(180deg, #0d0d0d 0%, #1a0f0a 50%, #241611 100%);
  color: var(--mist); padding: 6rem 2rem 3.5rem; text-align: center;
}
.doc-hero .eyebrow {
  font-family: 'Inter', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fire); display: block; margin-bottom: 1rem;
}
.doc-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 700;
  color: var(--mist); letter-spacing: 0.08em; margin-bottom: 0.8rem;
  text-shadow: 0 0 40px rgba(196,92,38,0.35);
}
.doc-hero h1 em { color: var(--ember-glow); font-style: italic; }
.doc-hero .doc-sub {
  font-family: 'EB Garamond', serif; font-size: 1.05rem; font-style: italic;
  color: var(--stone); max-width: 640px; margin: 0.8rem auto 0; line-height: 1.7;
}
.doc-note {
  background: rgba(196,92,38,0.06); border-left: 3px solid var(--fire);
  padding: 0.9rem 1.4rem; margin-bottom: 2rem;
  font-size: 0.9rem; color: var(--stone); font-style: italic;
}
.doc-note a { color: var(--ember-glow); }

.doc-toc {
  background: var(--smoke); border-top: 2px solid rgba(196,92,38,0.25);
  border-bottom: 1px solid rgba(196,92,38,0.1); padding: 2.5rem 2rem;
}
.doc-toc-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.8rem;
}
.doc-toc-part h3 {
  font-family: 'Cinzel', serif; font-size: 1.05rem; color: var(--ember-glow);
  margin-bottom: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.doc-toc-part ul { list-style: none; }
.doc-toc-part li { margin-bottom: 0.3rem; }
.doc-toc-part a {
  font-family: 'Inter', sans-serif; font-size: 0.82rem;
  color: var(--stone); text-decoration: none;
  border-bottom: 1px dotted rgba(196,92,38,0.3);
}
.doc-toc-part a:hover { color: var(--ember-glow); }

.doc-body { max-width: 800px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.part-heading {
  background: rgba(196,92,38,0.08); padding: 1.5rem 2rem;
  margin: 4rem -2rem 0; border-left: 4px solid var(--fire);
}
.part-heading h2 {
  font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--ember-glow);
  margin: 0; border-bottom: none; padding-bottom: 0;
  text-transform: uppercase; letter-spacing: 0.15em;
}
@media (max-width: 768px) { .part-heading { margin: 3rem -1.2rem 0; } }
.doc-body h2 {
  font-family: 'Cinzel', serif; font-size: 1.8rem; color: var(--mist);
  margin: 3.2rem 0 0.8rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(196,92,38,0.2);
}
.doc-body h3 {
  font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--ember-glow);
  margin: 2.2rem 0 0.6rem;
}
.doc-body h4 {
  font-family: 'Cinzel', serif; font-size: 1.02rem; color: var(--mist);
  margin: 1.6rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.doc-body p { margin-bottom: 1.3rem; color: var(--stone); line-height: 1.8; font-size: 1rem; }
.doc-body ul, .doc-body ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--stone); }
.doc-body li { margin-bottom: 0.45rem; line-height: 1.65; }
.doc-body blockquote {
  margin: 1.5rem 0 1.5rem 1rem; padding: 1rem 1.5rem;
  border-left: 3px solid var(--fire); background: rgba(196,92,38,0.05);
  font-style: italic; color: var(--mist);
}
.doc-body hr { border: none; border-top: 1px solid rgba(196,92,38,0.2); margin: 2.5rem 0; }
.doc-body strong { color: var(--mist); }
.doc-body em { color: var(--ember-glow); font-style: italic; }
.doc-body code { font-family: 'EB Garamond', serif; font-style: italic; color: var(--ember-glow); background: none; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.doc-body th {
  background: rgba(196,92,38,0.08); padding: 0.6rem 0.8rem; text-align: left;
  border-bottom: 2px solid rgba(196,92,38,0.3);
  font-family: 'Cinzel', serif; font-size: 0.95rem; color: var(--mist);
}
.doc-body td { padding: 0.55rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; color: var(--stone); }

.doc-part-banner {
  background: linear-gradient(180deg, #0d0d0d 0%, #1a0f0a 100%);
  color: var(--ember-glow); padding: 4rem 2rem 3rem;
  margin: 5rem -2rem 0; text-align: center; position: relative;
}
.doc-part-banner::after {
  content: ''; display: block; height: 2px;
  background: linear-gradient(90deg, transparent, var(--fire), transparent);
  margin-top: 3rem;
}
.doc-part-banner .pnum {
  font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fire); display: block; margin-bottom: 0.6rem;
  font-family: 'Inter', sans-serif;
}
.doc-part-banner .pname {
  font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.05em; display: block; margin-bottom: 0.5rem;
}
.doc-part-banner .pdesc {
  font-size: 0.95rem; color: var(--stone); font-style: italic;
  max-width: 520px; margin: 0.6rem auto 0; line-height: 1.65;
}
.doc-smriti-note {
  background: rgba(196,92,38,0.05); border-left: 3px solid var(--fire);
  padding: 1rem 1.5rem; margin: 2rem 0; font-size: 0.9rem;
  color: var(--stone); font-style: italic;
}

.doc-legend {
  background: var(--smoke); border-top: 2px solid rgba(196,92,38,0.25);
  padding: 2rem 2rem 1.5rem;
}
.doc-legend-inner {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.doc-legend .leg-k {
  font-family: 'Cinzel', serif; font-size: 1.05rem; color: var(--mist);
  display: flex; align-items: baseline; gap: 0.4rem;
}
.doc-legend .leg-k .skt {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fire);
}
.doc-legend .leg-d { font-size: 0.82rem; color: var(--stone); line-height: 1.5; margin-top: 0.2rem; }
.doc-legend-note { max-width: 860px; margin: 0.8rem auto 0; font-size: 0.82rem; color: var(--stone-dim); font-style: italic; text-align: center; }

.back-link {
  display: inline-block; margin-bottom: 3rem;
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--fire); border-bottom: 1px dotted rgba(196,92,38,0.4);
}
.back-link:hover { color: var(--ember-glow); }

@media (max-width: 768px) {
  .doc-body { padding: 2rem 1.2rem; }
  .doc-toc-inner { grid-template-columns: 1fr 1fr; }
  .doc-part-banner { margin: 4rem -1.2rem 0; }
}
@media (max-width: 480px) {
  .doc-toc-inner { grid-template-columns: 1fr; }
}

/* =====================================================================
   THE LADDER — rung/progress-bar components.
   These classes existed in ladder.html with NO matching CSS anywhere
   in the site (neither style.css nor the page's own inline block), so
   the page's central visual metaphor rendered as unstyled plain text.
   ===================================================================== */
.doc-rungs { background: var(--ash); padding: 1rem 2rem 5rem; }
.ladder-rail-wrap {
  max-width: 780px; margin: 0 auto; position: relative;
  padding-left: 2.5rem; border-left: 2px solid rgba(196,92,38,0.2);
}
.rung { position: relative; margin-bottom: 3rem; }
.rung-disc {
  position: absolute; left: -3.45rem; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--ash); border: 2px solid var(--fire);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 700; color: var(--ember-glow);
}
.rung-card {
  background: linear-gradient(145deg, rgba(45,45,45,0.6), rgba(25,25,25,0.85));
  border: 1px solid rgba(196,92,38,0.12); border-radius: 6px;
  padding: 2rem 2.2rem;
}
.rung-head { margin-bottom: 1.5rem; }
.rung-names { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.rung-names .rung-skt {
  font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--mist);
  margin: 0; border: none; padding: 0;
}
.rung-eng {
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fire);
}
.rung-entry { color: var(--stone); font-style: italic; margin-top: 0.6rem; font-size: 0.95rem; }
.rung-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem; margin-bottom: 1.75rem;
}
.rung-section h3 {
  font-family: 'Cinzel', serif; font-size: 0.9rem; color: var(--ember-glow);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.rung-section p { color: var(--stone); font-size: 0.88rem; line-height: 1.6; }
.rung-bars { border-top: 1px solid rgba(196,92,38,0.1); padding-top: 1.25rem; }
.bar-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.bar-label {
  width: 3.5rem; flex-shrink: 0;
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.05em; color: var(--stone);
}
.bar-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--fire), var(--ember-glow)); border-radius: 3px; }
.bar-note { flex-shrink: 0; font-size: 0.78rem; color: var(--stone-dim); font-style: italic; max-width: 140px; }
@media (max-width: 600px) {
  .ladder-rail-wrap { padding-left: 2rem; }
  .rung-disc { left: -2.85rem; width: 2.2rem; height: 2.2rem; font-size: 0.9rem; }
  .bar-note { display: none; }
}

/* =====================================================================
   PAGE LAYOUT WITH STICKY SIDEBAR TABLE OF CONTENTS
   Two-column layout on desktop: a sticky in-page TOC + main content.
   On mobile/tablet the TOC is dropped entirely so the page is just a
   normal, full-width, freely scrollable single column (no overlay,
   no fixed positioning, nothing to fight with touch scrolling).
   ===================================================================== */
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.page-toc {
  flex: 0 0 220px;
  width: 220px;
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-bottom: 2rem;
}
.page-toc-label {
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--fire); margin-bottom: 1rem;
}
.page-toc ul { list-style: none; }
.page-toc ul ul { margin-left: 0.9rem; margin-top: 0.1rem; margin-bottom: 0.3rem; }
.page-toc li { margin-bottom: 0.15rem; }
.page-toc a {
  display: block; padding: 0.4rem 0 0.4rem 0.9rem;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; line-height: 1.4;
  color: var(--stone); border-left: 2px solid rgba(196,92,38,0.15);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.page-toc ul ul a { font-size: 0.76rem; opacity: 0.85; }
.page-toc a:hover { color: var(--ember-glow); border-left-color: var(--fire); }
.page-main { flex: 1 1 auto; min-width: 0; }

@media (max-width: 1024px) {
  .page-toc { display: none; }
  .page-layout { display: block; padding: 0; max-width: none; }
  .page-main { width: 100%; }
}

/* Floating TOC variant for full-bleed pages (e.g. the homepage) where
   content isn't in a single centered column, so the flex sidebar layout
   doesn't apply. Hidden on mobile like the regular sidebar TOC. */
.page-toc-floating {
  position: fixed; left: 1.75rem; top: 50%; transform: translateY(-50%);
  z-index: 90; background: rgba(20,20,20,0.85); backdrop-filter: blur(6px);
  border: 1px solid rgba(196,92,38,0.15); border-radius: 8px;
  padding: 1rem 0.25rem;
}
.page-toc-floating ul { list-style: none; }
.page-toc-floating a {
  display: block; width: 34px; height: 34px; margin: 0.15rem;
  border-radius: 50%; position: relative;
  font-family: 'Inter', sans-serif; font-size: 0; color: transparent;
}
.page-toc-floating a::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); width: 8px; height: 8px;
  border-radius: 50%; background: var(--stone); transition: all 0.2s ease;
}
.page-toc-floating a:hover::before { background: var(--ember-glow); transform: translate(-50%, -50%) scale(1.3); }
.page-toc-floating a .toc-label {
  position: absolute; left: 44px; top: 50%; transform: translateY(-50%);
  font-size: 0.78rem; color: var(--stone); white-space: nowrap;
  background: rgba(20,20,20,0.95); padding: 0.3rem 0.7rem; border-radius: 4px;
  border: 1px solid rgba(196,92,38,0.15);
  opacity: 0; visibility: hidden; transition: all 0.2s ease; pointer-events: none;
}
.page-toc-floating a:hover .toc-label { opacity: 1; visibility: visible; }
@media (max-width: 1024px) {
  .page-toc-floating { display: none; }
}

/* ===== VALUE CARD GRID (values.html) ===== */
.value-set { margin-bottom: 5rem; scroll-margin-top: 100px; }
.value-set-head { max-width: 720px; margin-bottom: 2rem; }
.value-set-head .source-tag {
  display: inline-block; font-family: 'Inter', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--fire);
  border: 1px solid rgba(196,92,38,0.3); border-radius: 3px;
  padding: 0.25rem 0.7rem; margin-bottom: 0.9rem;
}
.value-set-head h2 { font-family: 'Cinzel', serif; font-size: 1.7rem; color: var(--mist); margin-bottom: 0.7rem; scroll-margin-top: 100px; }
.value-set-head p { color: var(--stone); line-height: 1.7; }
.value-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.value-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 6px;
  padding: 1.1rem 1.3rem; border-left: 3px solid var(--fire);
}
.value-card .vnum { font-family: 'Inter', sans-serif; font-size: 0.7rem; color: var(--stone-dim); }
.value-card .vskt { font-family: 'Cinzel', serif; font-size: 1.02rem; color: var(--ember-glow); margin: 0.15rem 0 0.3rem; }
.value-card .vdesc { font-size: 0.88rem; color: var(--stone); line-height: 1.55; }
.value-set.vices .value-card { border-left-color: var(--stone-dim); }
.value-set.vices .value-card .vskt { color: var(--mist); }
.value-note {
  margin-top: 1.5rem; padding: 1rem 1.4rem; border-left: 3px solid var(--fire);
  background: rgba(196,92,38,0.05); font-size: 0.88rem; color: var(--stone); font-style: italic;
}
.value-pair-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.value-pair-grid h3 {
  font-family: 'Cinzel', serif; font-size: 1.05rem; color: var(--ember-glow);
  margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .value-pair-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .value-grid { grid-template-columns: 1fr; }
}
