/**
 * Vedic figures (rishis / mantra deities / veda stats) — cream guide family.
 */
.vf-page {
  --vf-accent: #9a3412;
}

.vf-intro {
  max-width: 42rem;
  color: var(--guide-muted, #5c534c);
  line-height: 1.55;
}

.vf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0.75rem;
  align-items: end;
}

.vf-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--guide-muted, #5c534c);
}

.vf-filters input,
.vf-filters select {
  min-height: 2.5rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(154, 52, 18, 0.25);
  border-radius: 0.5rem;
  background: #fffaf4;
  font: inherit;
}

.vf-filters button {
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--vf-accent);
  color: #fffaf4;
  font-weight: 600;
  cursor: pointer;
}

.vf-count {
  color: var(--guide-muted, #5c534c);
  font-size: 0.9rem;
}

.vf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 2rem;
}

.vf-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(154, 52, 18, 0.18);
  border-radius: 0.85rem;
  background: rgba(255, 252, 246, 0.92);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.vf-card:hover {
  border-color: var(--vf-accent);
  transform: translateY(-1px);
}

.vf-card strong {
  font-family: var(--guide-display, Fraunces, Georgia, serif);
  font-size: 1.1rem;
}

.vf-card em {
  font-family: var(--guide-deva, "Noto Serif Devanagari", serif);
  font-style: normal;
  color: var(--vf-accent);
  font-size: 0.95rem;
}

.vf-meta {
  font-size: 0.82rem;
  color: var(--guide-muted, #5c534c);
}

.vf-stub {
  font-size: 0.85rem;
  color: var(--guide-muted, #5c534c);
  font-style: italic;
}

.vf-section {
  margin: 1.75rem 0;
}

.vf-section h2 {
  font-family: var(--guide-display, Fraunces, Georgia, serif);
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
}

.vf-section h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.45rem;
}

.vf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.vf-chips li,
.vf-chips a {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 52, 18, 0.2);
  background: #fff8f0;
  font-size: 0.82rem;
  color: inherit;
  text-decoration: none;
}

.vf-works,
.vf-refs,
.vf-rank {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.vf-link {
  color: var(--vf-accent);
  font-weight: 600;
}

.vf-access-note {
  margin: 1rem 0 0;
  max-width: 40rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--vf-accent);
  background: rgba(154, 52, 18, 0.07);
  border-radius: 0 0.65rem 0.65rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--guide-muted, #5c534c);
}

.vf-access-note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--vf-accent);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vf-section-lede {
  margin: 0 0 0.75rem;
  color: var(--guide-muted, #5c534c);
  font-size: 0.95rem;
  line-height: 1.5;
}

.vf-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 0.35rem 0 0.5rem;
}

.vf-rel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 5.5rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(154, 52, 18, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 252, 246, 0.95);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.vf-rel-card:hover {
  border-color: var(--vf-accent);
  transform: translateY(-1px);
}

.vf-rel-card strong {
  font-family: var(--guide-display, Fraunces, Georgia, serif);
  font-size: 1rem;
  text-transform: capitalize;
  line-height: 1.25;
}

.vf-rel-card.is-sadhak {
  border-color: rgba(154, 52, 18, 0.35);
  background: linear-gradient(165deg, rgba(154, 52, 18, 0.08), rgba(255, 252, 246, 0.95));
}

.vf-rel-card.is-named {
  opacity: 0.85;
  cursor: default;
}

.vf-badge {
  align-self: flex-start;
  margin-bottom: 0.15rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--vf-accent);
  color: #fffaf4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— Vedic deity detail enrichment —— */
.vd-detail {
  --vd-glow: rgba(180, 83, 9, 0.16);
  --vd-deep: #7c2d12;
  --vd-ink: #1c1410;
  --vd-panel: rgba(255, 251, 245, 0.92);
}

.vd-detail.is-symbol-fire { --vf-accent: #c2410c; --vd-glow: rgba(234, 88, 12, 0.22); }
.vd-detail.is-symbol-thunder { --vf-accent: #a16207; --vd-glow: rgba(202, 138, 4, 0.2); }
.vd-detail.is-symbol-water { --vf-accent: #0e7490; --vd-glow: rgba(14, 116, 144, 0.18); }
.vd-detail.is-symbol-sun { --vf-accent: #b45309; --vd-glow: rgba(245, 158, 11, 0.22); }
.vd-detail.is-symbol-wind { --vf-accent: #0369a1; --vd-glow: rgba(3, 105, 161, 0.16); }
.vd-detail.is-symbol-earth { --vf-accent: #3f6212; --vd-glow: rgba(77, 124, 15, 0.16); }
.vd-detail.is-symbol-speech { --vf-accent: #9a3412; --vd-glow: rgba(154, 52, 18, 0.16); }
.vd-detail.is-symbol-wealth { --vf-accent: #a16207; --vd-glow: rgba(161, 98, 7, 0.18); }
.vd-detail.is-symbol-dharma { --vf-accent: #7c2d12; --vd-glow: rgba(124, 45, 18, 0.16); }
.vd-detail.is-symbol-healing { --vf-accent: #0f766e; --vd-glow: rgba(15, 118, 110, 0.16); }
.vd-detail.is-symbol-soma { --vf-accent: #57534e; --vd-glow: rgba(87, 83, 78, 0.14); }
.vd-detail.is-symbol-rudra { --vf-accent: #9f1239; --vd-glow: rgba(159, 18, 57, 0.14); }

.vd-detail.books-page {
  background:
    radial-gradient(900px 420px at 12% -8%, var(--vd-glow), transparent 58%),
    radial-gradient(700px 360px at 92% 8%, rgba(255, 237, 213, 0.55), transparent 50%),
    linear-gradient(180deg, #fbf6ee 0%, #f7f0e6 48%, #f4ebe0 100%);
}

.vd-shell {
  padding-bottom: 3rem;
}

.vd-hero {
  position: relative;
  margin: 0.5rem 0 1.5rem;
  padding: 1.75rem 1.5rem 1.85rem;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(154, 52, 18, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.95), rgba(255, 247, 237, 0.78));
  box-shadow: 0 18px 40px rgba(88, 28, 12, 0.06);
  animation: vd-rise 0.65s ease both;
}

.vd-hero-glow {
  position: absolute;
  inset: -20% auto auto 55%;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--vd-glow), transparent 68%);
  pointer-events: none;
}

.vd-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem 1.6rem;
  align-items: center;
}

@media (max-width: 720px) {
  .vd-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.vd-symbol {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  margin: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--vf-accent) 28%, #fff7ed), #fffaf4);
  border: 1px solid color-mix(in srgb, var(--vf-accent) 35%, transparent);
  box-shadow:
    0 14px 32px color-mix(in srgb, var(--vf-accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: vd-soft-pulse 4.5s ease-in-out infinite;
}

.vd-symbol-ring {
  position: absolute;
  inset: -0.45rem;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--vf-accent) 40%, transparent);
  opacity: 0.7;
  animation: vd-spin 28s linear infinite;
}

.vd-symbol-mark::before {
  content: "ॐ";
  font-family: var(--guide-deva, "Noto Serif Devanagari", serif);
  font-size: 2.35rem;
  color: var(--vf-accent);
  line-height: 1;
  text-shadow: 0 2px 12px color-mix(in srgb, var(--vf-accent) 25%, transparent);
}

.vd-symbol[data-symbol="fire"] .vd-symbol-mark::before { content: "अग्नि"; font-size: 1.45rem; }
.vd-symbol[data-symbol="thunder"] .vd-symbol-mark::before { content: "इन्द्र"; font-size: 1.45rem; }
.vd-symbol[data-symbol="water"] .vd-symbol-mark::before { content: "वरुण"; font-size: 1.35rem; }
.vd-symbol[data-symbol="sun"] .vd-symbol-mark::before { content: "सूर्य"; font-size: 1.35rem; }
.vd-symbol[data-symbol="wind"] .vd-symbol-mark::before { content: "वायु"; font-size: 1.45rem; }
.vd-symbol[data-symbol="earth"] .vd-symbol-mark::before { content: "पृथ्वी"; font-size: 1.2rem; }
.vd-symbol[data-symbol="speech"] .vd-symbol-mark::before { content: "वाक्"; font-size: 1.45rem; }
.vd-symbol[data-symbol="wealth"] .vd-symbol-mark::before { content: "कुबेर"; font-size: 1.2rem; }
.vd-symbol[data-symbol="dharma"] .vd-symbol-mark::before { content: "धर्म"; font-size: 1.35rem; }
.vd-symbol[data-symbol="healing"] .vd-symbol-mark::before { content: "अश्वि"; font-size: 1.25rem; }
.vd-symbol[data-symbol="soma"] .vd-symbol-mark::before { content: "सोम"; font-size: 1.45rem; }
.vd-symbol[data-symbol="rudra"] .vd-symbol-mark::before { content: "रुद्र"; font-size: 1.35rem; }

.vd-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vf-accent);
}

.vd-hero-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--guide-display, Fraunces, Georgia, serif);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.1;
  color: var(--vd-ink);
}

.vd-role {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--guide-muted, #5c534c);
}

.vd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 720px) {
  .vd-hero-meta {
    justify-content: center;
  }
}

.vd-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--vf-accent) 28%, transparent);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vd-deep);
}

a.vd-pill-link {
  text-decoration: none;
  background: color-mix(in srgb, var(--vf-accent) 12%, #fff);
  color: var(--vf-accent);
}

a.vd-pill-link:hover {
  background: color-mix(in srgb, var(--vf-accent) 18%, #fff);
}

.vd-section {
  margin: 2.25rem 0;
  animation: vd-rise 0.7s ease both;
}

.vd-section:nth-of-type(2) { animation-delay: 0.05s; }
.vd-section:nth-of-type(3) { animation-delay: 0.1s; }
.vd-section:nth-of-type(4) { animation-delay: 0.15s; }

.vd-section-head {
  margin-bottom: 0.95rem;
}

.vd-section-head h2 {
  margin: 0;
  font-family: var(--guide-display, Fraunces, Georgia, serif);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: var(--vd-ink);
}

.vd-section-head p {
  margin: 0.35rem 0 0;
  color: var(--guide-muted, #5c534c);
  font-size: 0.95rem;
}

.vd-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

@media (max-width: 720px) {
  .vd-card-grid {
    grid-template-columns: 1fr;
  }
}

.vd-info-card {
  position: relative;
  padding: 1.25rem 1.2rem 1.3rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--vf-accent) 18%, transparent);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.88), var(--vd-panel));
  box-shadow: 0 10px 28px rgba(88, 28, 12, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vd-info-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--vf-accent) 40%, transparent);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--vf-accent) 12%, transparent);
}

.vd-info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--vf-accent), color-mix(in srgb, var(--vf-accent) 30%, #fbbf24));
}

.vd-info-card--wide {
  grid-column: 1 / -1;
}

.vd-card-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--vf-accent) 12%, #fff);
  color: var(--vf-accent);
  font-family: var(--guide-deva, "Noto Serif Devanagari", serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.vd-info-card[data-kind="direction"] .vd-card-icon::before { content: "दिशा"; font-size: 0.68rem; }
.vd-info-card[data-kind="symbol"] .vd-card-icon::before { content: "चिह्न"; font-size: 0.68rem; }
.vd-info-card[data-kind="significance"] .vd-card-icon::before { content: "अर्थ"; font-size: 0.68rem; }

.vd-card-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vf-accent);
}

.vd-info-card > p:last-child {
  margin: 0;
  line-height: 1.6;
  font-size: 1.02rem;
  color: var(--vd-ink);
}

.vd-prose-panel {
  padding: 1.35rem 1.4rem;
  border-radius: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--vf-accent) 14%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 250, 244, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.vd-prose {
  max-width: 44rem;
  margin: 0;
  line-height: 1.75;
  font-size: 1.08rem;
  color: var(--vd-ink);
}

.vd-mantra-card {
  position: relative;
  max-width: 42rem;
  padding: 1.7rem 1.55rem 1.55rem;
  border-radius: 1.35rem;
  border: 1px solid color-mix(in srgb, var(--vf-accent) 24%, transparent);
  background:
    radial-gradient(520px 220px at 8% 0%, var(--vd-glow), transparent 65%),
    linear-gradient(160deg, #fffaf4, #fff7ed);
  box-shadow: 0 16px 36px rgba(88, 28, 12, 0.06);
  overflow: hidden;
}

.vd-mantra-om {
  position: absolute;
  right: 0.85rem;
  top: 0.35rem;
  font-family: var(--guide-deva, "Noto Serif Devanagari", serif);
  font-size: 3.5rem;
  line-height: 1;
  color: color-mix(in srgb, var(--vf-accent) 18%, transparent);
  pointer-events: none;
}

.vd-mantra-sa {
  position: relative;
  margin: 0 0 0.7rem;
  font-family: var(--guide-deva, "Noto Serif Devanagari", serif);
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  line-height: 1.6;
  color: var(--vd-ink);
}

.vd-mantra-tr {
  position: relative;
  margin: 0 0 0.75rem;
  font-style: italic;
  color: var(--guide-muted, #5c534c);
}

.vd-mantra-meaning {
  position: relative;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--vf-accent) 16%, transparent);
  line-height: 1.6;
  color: var(--vd-ink);
}

.vd-chips li {
  background: color-mix(in srgb, var(--vf-accent) 8%, #fff8f0);
  border-color: color-mix(in srgb, var(--vf-accent) 22%, transparent);
}

.vd-detail .vf-rel-card:hover {
  border-color: var(--vf-accent);
}

.vd-detail .om-guide-lang {
  margin: 0.25rem 0 1.25rem;
}

@keyframes vd-rise {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vd-soft-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes vd-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .vd-hero,
  .vd-section,
  .vd-symbol,
  .vd-symbol-ring {
    animation: none;
  }
}


