/* Bhairavshri — temporary site. Premium dark + gold Vedic theme. */
:root {
  --bg: #08090b;
  --bg-2: #111318;
  --gold: #d6a64a;
  --gold-hi: #f3c76a;
  --maroon: #790e18;
  --text: #f5f0e5;
  --muted: #b6a991;
  --line: rgba(214, 166, 74, 0.28);
  --line-strong: rgba(214, 166, 74, 0.55);
  --font-body: "Mukta", "Noto Sans Devanagari", "Nirmala UI", "Mangal", "Kohinoor Devanagari", system-ui, sans-serif;
  --font-head: "Noto Serif Devanagari", "Mukta", "Noto Sans Devanagari", "Nirmala UI", "Mangal", serif;
  --radius: 16px;
  --header-h: 66px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1204; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 24px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #f6d27e 0%, #d6a64a 55%, #b9852c 100%);
  color: #1a1204; font-weight: 700; font-size: 16px; white-space: nowrap;
  box-shadow: 0 4px 18px rgba(214, 166, 74, 0.28); transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(214, 166, 74, 0.38); filter: brightness(1.05); }
.btn-gold:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 24px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--gold-hi); font-weight: 600;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(214, 166, 74, 0.1); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(8, 9, 11, 0.97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding-block: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); object-fit: cover; background: #000; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--gold-hi); letter-spacing: .01em; }
.topbar__nav { display: none; align-items: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; background: var(--bg-2);
  color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap; transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--gold); color: var(--gold-hi); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, .8); }
.topbar__links { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.topbar__links a:hover { color: var(--gold-hi); }
.sep { opacity: .45; }

.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 11px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.burger span { display: block; height: 2px; background: var(--gold-hi); border-radius: 2px; transition: transform .25s, opacity .2s; }
.site-header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.catnav { display: none; border-top: 1px solid rgba(214, 166, 74, 0.14); background: #0b0c0f; }
.catnav__list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px; font-weight: 600; font-size: 15.5px; white-space: nowrap; color: var(--text); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.catnav a:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }
.ico { font-size: 18px; line-height: 1; }

/* mobile / tablet menu */
@media (max-width: 1099px) {
  .site-header.is-open { max-height: 100dvh; overflow-y: auto; }
  .topbar__nav { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 4px 0 14px; }
  .site-header.is-open .topbar__nav { display: flex; }
  .site-header.is-open .catnav { display: block; }
  .pill, .topbar__nav .btn-gold { justify-content: center; min-height: 46px; }
  .topbar__links { justify-content: center; flex-wrap: wrap; padding: 4px 0; }
  .topbar__links .sep { display: none; }
  .topbar__links a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .catnav__list { flex-direction: column; overflow: visible; padding-bottom: 12px; }
  .catnav a { width: 100%; padding: 14px 6px; border-bottom: 1px solid rgba(214, 166, 74, 0.12); font-size: 17px; }
}
@media (min-width: 1100px) {
  .burger { display: none; }
  .topbar__nav { display: flex; }
  .catnav { display: block; }
}
@media (max-width: 420px) { .brand__name { font-size: 26px; } }

.ticker { margin: 0; padding: 14px 16px; text-align: center; color: #e8c77e; font-weight: 600; font-size: 16px; background: #0a0b0e; border-bottom: 1px solid var(--line); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-block: 22px 64px; }
/* The slot and the article are layout-transparent: image, article text and sidebar become items of ONE grid. */
#featured-slot, .article { display: contents; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); gap: 30px; align-items: start; }
  /* Row 1: main image + sidebar (same height). Row 2: article, full width, independent of the sidebar. */
  .article__figure { grid-column: 1; grid-row: 1; }
  .layout__side { grid-column: 2; grid-row: 1; align-self: stretch; }
  .article__head, .article__body { grid-column: 1 / -1; grid-row: auto; max-width: 980px; width: 100%; }
  .article__head { margin-top: 0; }
}
.chip { display: block; margin: 0 0 16px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 14px; background: #15120c; color: var(--gold-hi); font-weight: 700; font-size: 15px; }

/* ---------- featured article ---------- */
.article__figure { margin: 0; }
.article__img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: 0 14px 44px rgba(0, 0, 0, .55); background: var(--bg-2); }
.article__head { margin-top: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article__title { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.3rem); line-height: 1.4; overflow-wrap: anywhere; color: var(--text); }
.article__meta { margin: 0; color: var(--muted); font-size: 15px; }
.article__body { margin-top: 20px; }

.prose { font-size: 1.125rem; line-height: 1.9; color: #ebe4d4; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-head); color: var(--gold-hi); line-height: 1.45; margin: 1.6em 0 .55em; }
.prose h2 { font-size: 1.45rem; padding-left: 14px; border-left: 3px solid var(--gold); }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .4em 0; padding-left: .2em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: #fff6df; font-weight: 700; }
.prose a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #ffe3a2; }
.prose blockquote { margin: 1.2em 0; padding: .4em 1.1em; border-left: 3px solid var(--gold); background: rgba(214, 166, 74, .06); color: var(--muted); border-radius: 0 12px 12px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }

/* ---------- side banners ---------- */
.layout__side { display: grid; gap: 16px; align-content: start; --gap-min: 10px; --stack-ratio: 1.9235; /* sum of the 5 banner height/width ratios (4 x 250/650 + 778/2021) */ }
@media (min-width: 600px) and (max-width: 959px) { .layout__side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .side-banner--wide { grid-column: 1 / -1; } }
.side-banner { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-2); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.side-banner img { width: 100%; height: auto; aspect-ratio: 650 / 250; object-fit: contain; }
/* Desktop: the sidebar is exactly as tall as the main image. Banners are spread over that height
   (space-between); if it is too short they scale down uniformly (never cropped or stretched). */
@media (min-width: 960px) {
  .layout__side { container-type: size; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 0; }
  .side-banner { flex: none; width: min(100cqw, calc((100cqh - 4 * var(--gap-min) - 7px) / var(--stack-ratio))); /* 7px = the 5 one-pixel-border pairs that do not scale */ }
}
.side-banner--wide img { aspect-ratio: 2021 / 778; }
@media (hover: hover) {
  .side-banner:hover { transform: translateY(-3px); border-color: var(--gold-hi); box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 22px rgba(214, 166, 74, .22); }
}

/* ---------- footer ---------- */
.site-footer { margin-top: 24px; background: var(--bg); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 36px 28px; }
.fcol--brand { padding-bottom: 22px; }
.fcol--brand p { margin: 14px 0 0; color: var(--muted); max-width: 34ch; }
.fcol details { border-top: 1px solid rgba(214, 166, 74, .14); }
.fcol summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 700; color: var(--gold-hi); font-size: 17px; cursor: pointer; list-style: none; }
.fcol summary::-webkit-details-marker { display: none; }
.fcol summary::after { content: "＋"; color: var(--gold); font-weight: 400; }
.fcol details[open] summary::after { content: "－"; }
.fcol ul { padding: 0 0 14px; display: grid; gap: 4px; }
.fcol li a { display: inline-block; padding: 7px 0; color: var(--muted); transition: color .2s; }
.fcol li a:hover { color: var(--gold-hi); }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-block: 52px 36px; }
  .fcol details { border-top: 0; }
  .fcol details.is-static summary { pointer-events: none; cursor: default; min-height: 0; margin-bottom: 14px; }
  .fcol details.is-static summary::after { content: none; }
}
.footer__bottom { border-top: 1px solid rgba(214, 166, 74, .14); padding-block: 20px 96px; /* room for the floating WhatsApp button */ text-align: center; }
.disclaimer { margin: 0 auto 10px; max-width: 92ch; color: var(--muted); font-size: 14.5px; }
.copy { margin: 0; color: #8d836f; font-size: 14px; }
.admin-link { margin-left: 12px; font-size: 12px; opacity: .55; }
.admin-link:hover { opacity: 1; color: var(--gold-hi); }

/* ---------- coming soon dialog ---------- */
.soon { border: 0; background: transparent; padding: 0; width: min(92vw, 440px); max-width: 92vw; color: var(--text); }
.soon::backdrop { background: rgba(0, 0, 0, .74); backdrop-filter: blur(3px); }
.soon[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.soon__card { text-align: center; padding: 32px 26px 28px; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(160deg, #1a150b 0%, #0e0f13 70%); box-shadow: 0 24px 70px rgba(0, 0, 0, .7), 0 0 40px rgba(214, 166, 74, .12); }
.soon__om { font-size: 52px; line-height: 1; color: var(--gold-hi); text-shadow: 0 0 24px rgba(243, 199, 106, .45); }
.soon h2 { margin: 10px 0 12px; font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-hi); }
.soon__item { display: inline-block; margin: 0 0 14px; padding: 4px 16px; border-radius: 999px; background: var(--maroon); border: 1px solid rgba(243, 199, 106, .4); font-weight: 600; }
.soon__item:empty { display: none; }
.soon__text { margin: 0 0 22px; color: var(--muted); }
.soon__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 120; max-width: min(92vw, 520px); padding: 13px 22px; border-radius: 14px; background: #15120c; border: 1px solid var(--gold); color: var(--text); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); font-weight: 600; text-align: center; }
.toast.is-error { border-color: #ef4444; }

/* ---------- legal pages ---------- */
.legal { max-width: 860px; margin: 36px auto 72px; }
.legal h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); color: var(--gold-hi); margin: 0 0 6px; line-height: 1.4; }
.legal .updated { color: var(--muted); margin: 0 0 26px; }
.legal-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.legal-head .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.legal-back { color: var(--gold-hi); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.legal-links a { margin: 0 10px; color: var(--muted); }
.legal-links a:hover { color: var(--gold-hi); }

/* Admin button (header) */
.pill--admin { border-color: var(--gold); color: var(--gold-hi); font-weight: 700; background: linear-gradient(180deg, #1b150a, #111318); }
.pill--admin:hover { background: rgba(214, 166, 74, .18); }
.admin-mobile { margin-left: auto; min-height: 40px; padding: 6px 16px; }
.admin-nav { display: none; }
@media (min-width: 1100px) { .admin-mobile { display: none; } .admin-nav { display: inline-flex; } }
@media (max-width: 1099px) { .topbar { flex-wrap: wrap; } }

/* ---------- floating WhatsApp chat button (js/wa-float.js) ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0; border-radius: 999px; color: #fff;
  background: #25d366; box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .25); }
.wa-float__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; }
.wa-float__icon svg { width: 32px; height: 32px; fill: #fff; }
.wa-float__text { display: none; padding-right: 20px; font-weight: 700; font-size: 16px; white-space: nowrap; color: #fff; }
@media (min-width: 768px) { .wa-float__text { display: inline; } .wa-float__icon { width: 60px; height: 60px; } .wa-float { min-height: 60px; } }

/* ---------- footer: social links ---------- */
.footer__social { border-top: 1px solid rgba(214, 166, 74, .14); }
.social { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 20px; }
.social__title { margin: 0; font-family: var(--font-head); font-size: 1.15rem; color: var(--gold-hi); }
.social__title span { margin-left: 8px; font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); }
.social__list { display: flex; flex-wrap: wrap; gap: 10px; }
.social__item[hidden] { display: none; }
.social__link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 18px 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-2); color: var(--gold); transition: border-color .2s, background .2s, color .2s; }
.social__link:hover { border-color: var(--gold-hi); background: rgba(214, 166, 74, .1); color: var(--gold-hi); }
.social__text { display: grid; line-height: 1.2; }
.social__text b { color: var(--text); font-size: 14.5px; font-weight: 600; }
.social__text small { color: var(--muted); font-size: 13px; }
@media (max-width: 899px) {
  .social { flex-direction: column; align-items: stretch; text-align: center; }
  .social__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social__link { display: flex; width: 100%; justify-content: flex-start; min-width: 0; }
  .social__text { min-width: 0; text-align: left; }
}
@media (max-width: 560px) { .social__list { grid-template-columns: minmax(0, 1fr); } .social__link { min-height: 50px; } }
