/* Sanatan Bliss — deity hubs /deity/<slug>/ (Patch 15) */
.sbd { --sbd-ink: #2b1a10; --sbd-muted: #7a6450; --sbd-line: #ecdcc4; --sbd-paper: #fffaf3; background: #fdf8f0; color: var(--sbd-ink); }
.sbd-crumb { max-width: 1180px; margin: 0 auto; padding: 12px 20px; font-size: .82rem; color: var(--sbd-muted); }
.sbd-crumb a { color: #b4561c; text-decoration: none; }

.sbd-hero { position: relative; overflow: hidden; color: #fff; }
.sbd-mandala { position: absolute; right: -120px; top: -90px; width: 560px; height: 560px; color: var(--sbd-acc); opacity: .12; animation: sbdSpin 140s linear infinite; pointer-events: none; }
@keyframes sbdSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sbd-mandala { animation: none; } }
.sbd-hero-in { position: relative; max-width: 1180px; margin: 0 auto; padding: 48px 20px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: center; }
.sbd-kicker { display: inline-block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sbd-acc); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.18); }
.sbd-h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; margin: 14px 0 12px; font-weight: 600; color: #fff; }
.sbd-h1-hi { display: block; font-family: var(--font-hindi, 'Noto Sans Devanagari', sans-serif); font-size: .55em; color: var(--sbd-acc); margin-top: 6px; }
.sbd-answer p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.92); max-width: 680px; margin: 0 0 18px; }
.sbd-mantra { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.18); border-left: 3px solid var(--sbd-acc); border-radius: 14px; padding: 14px 18px; max-width: 680px; }
.sbd-mantra-sa { font-family: var(--font-hindi, serif); font-size: 1.25rem; line-height: 1.6; color: #fff; }
.sbd-mantra-ro { font-style: italic; color: rgba(255,255,255,.8); font-size: .92rem; margin-top: 2px; }
.sbd-mantra-m { font-size: .86rem; color: rgba(255,255,255,.78); margin-top: 6px; }
.sbd-mantra-m a { color: var(--sbd-acc); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sbd-hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.sbd-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.sbd-stats a { color: #fff; text-decoration: none; font-size: .84rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 7px 12px; border-radius: 999px; }
.sbd-stats b { color: var(--sbd-acc); font-size: 1rem; margin-right: 2px; }
.sbd-lang { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 30px; overflow: hidden; margin-left: auto; }
.sbd-lang button { background: transparent; color: #fff; border: 0; padding: 8px 14px; font: inherit; font-size: .82rem; cursor: pointer; }
.sbd-lang button.is-on { background: var(--sbd-acc); color: #2b1300; font-weight: 700; }
.sbd-hero-art { display: flex; justify-content: center; }
.sbd-hero-art img { width: 100%; max-width: 320px; height: auto; border-radius: 160px 160px 24px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); object-fit: cover; aspect-ratio: 4/5; }
.sbd-motif { width: 260px; height: 260px; color: var(--sbd-acc); opacity: .9; filter: drop-shadow(0 6px 24px rgba(0,0,0,.3)); }

.sbd-toc { position: sticky; top: 0; z-index: 20; background: rgba(253,248,240,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--sbd-line); display: block; }
.sbd-toc-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sbd-toc a { flex: 0 0 auto; font-size: .84rem; color: var(--sbd-ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; }
.sbd-toc a:hover { border-color: var(--sbd-line); background: #fff; }

.sbd-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.sbd-glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sbd-g { background: #fff; border: 1px solid var(--sbd-line); border-radius: 12px; padding: 12px 14px; }
.sbd-gk { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #b4561c; font-weight: 700; margin-bottom: 4px; }
.sbd-gv { font-size: .95rem; line-height: 1.5; }

.sbd-sec { scroll-margin-top: 64px; margin-top: 34px; }
.sbd-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.1rem); color: #6b1e0f; margin: 0 0 14px; font-weight: 600; }
.sbd-h3 { font-size: 1rem; margin: 18px 0 10px; color: #7a3e00; }
.sbd-count { font-family: inherit; font-size: .9rem; background: #fff1dc; color: #9a3412; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.sbd-sec > .sb-en p, .sbd-sec > .sb-hi p { font-size: 1.02rem; line-height: 1.8; max-width: 860px; margin: 0 0 14px; }
.sbd-cards { display: grid; gap: 12px; }
.sbd-cards-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sbd-cards-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.sbd-card { display: block; background: #fff; border: 1px solid var(--sbd-line); border-radius: 14px; padding: 14px 16px; color: inherit; text-decoration: none; }
.sbd-card h3 { font-size: 1rem; margin: 0 0 6px; color: var(--sbd-ink); }
.sbd-card p { font-size: .92rem; line-height: 1.6; color: #5b4636; margin: 0; }
.sbd-card.is-link { transition: transform .15s, box-shadow .15s; }
.sbd-card.is-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(107,30,15,.08); border-color: #e7c99d; }
.sbd-card.is-link h3::after { content: ' →'; color: #b4561c; }
.sbd-hi-name { font-family: var(--font-hindi, serif); font-weight: 400; color: #a07840; font-size: .9em; }
.sbd-place { font-size: .82rem; color: var(--sbd-muted); margin: -2px 0 6px; }
.sbd-story { background: #fff; border: 1px solid var(--sbd-line); border-radius: 14px; margin-bottom: 10px; }
.sbd-story summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: #6b1e0f; list-style: none; }
.sbd-story summary::-webkit-details-marker { display: none; }
.sbd-story summary::after { content: '+'; float: right; color: #b4561c; }
.sbd-story[open] summary::after { content: '−'; }
.sbd-story-b { padding: 0 16px 14px; }
.sbd-story-b p { margin: 0; line-height: 1.75; }
.sbd-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.sbd-steps li { counter-increment: s; background: #fff; border: 1px solid var(--sbd-line); border-radius: 12px; padding: 12px 14px 12px 54px; position: relative; line-height: 1.6; }
.sbd-steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #6b1e0f; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.sbd-steps b { display: block; color: #6b1e0f; }
.sbd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sbd-box { border-radius: 14px; padding: 14px 16px; border: 1px solid var(--sbd-line); background: #fff; }
.sbd-box h3 { margin: 0 0 8px; font-size: .95rem; }
.sbd-box ul { margin: 0; padding-left: 18px; line-height: 1.7; font-size: .93rem; }
.sbd-do { border-top: 3px solid #4d7c0f; } .sbd-dont { border-top: 3px solid #b91c1c; }
.sbd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.sbd-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sbd-line); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--sbd-ink); transition: border-color .15s; }
.sbd-item:hover { border-color: #e2b77c; }
.sbd-item-t { font-weight: 600; font-size: .94rem; }
.sbd-item-h { font-family: var(--font-hindi, serif); color: #a07840; font-size: .88rem; font-weight: 400; }
.sbd-more { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.sbd-btn { display: inline-block; background: #6b1e0f; color: #fff !important; text-decoration: none; padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600; border: 0; cursor: pointer; }
.sbd-chip { display: inline-block; background: #fff8ef; border: 1px solid #f0d9b5; color: #7a3e00; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: .85rem; }
.sbd-fests { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sbd-fest { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--sbd-line); border-radius: 12px; padding: 8px 12px; text-decoration: none; color: var(--sbd-ink); }
.sbd-fest:hover { border-color: #e2b77c; }
.sbd-fest-date { flex: 0 0 64px; text-align: center; background: #fff1dc; border-radius: 10px; padding: 6px 4px; font-size: .7rem; color: #9a3412; line-height: 1.2; text-transform: uppercase; }
.sbd-fest-date b { display: block; font-size: 1.25rem; color: #6b1e0f; }
.sbd-fest-n { font-weight: 600; font-size: .93rem; line-height: 1.35; }
.sbd-fest.is-more { display: none; }
.show-all .sbd-fest.is-more { display: flex; }
.sbd-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sbd-relc { position: relative; overflow: hidden; border-radius: 16px; padding: 18px 16px; color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-height: 120px; }
.sbd-relc b { font-size: 1.15rem; } .sbd-relc span { font-family: var(--font-hindi, serif); color: var(--sbd-acc); } .sbd-relc small { opacity: .85; font-size: .78rem; margin-top: auto; }
.sbd-relm { position: absolute; right: -10px; bottom: -10px; width: 90px; height: 90px; color: var(--sbd-acc); opacity: .35; }
.sbd-back { margin-top: 36px; } .sbd-back a { color: #b4561c; text-decoration: none; font-weight: 600; }

/* /deity/ index additions */
.sdh-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 18px 0 8px; }

@media (max-width: 860px) {
  .sbd-hero-in { grid-template-columns: 1fr; padding-top: 28px; }
  .sbd-hero-art { order: -1; } .sbd-motif { width: 150px; height: 150px; } .sbd-hero-art img { max-width: 200px; }
  .sbd-two { grid-template-columns: 1fr; } .sbd-lang { margin-left: 0; }
  .sbd-cards-2 { grid-template-columns: 1fr; }
}
@media print { .sbd-toc, .sbd-lang, .sbd-mandala { display: none !important; } .sbd-fest.is-more { display: flex; } }
