:root {
  --bg: #f7f0e6;
  --bg-soft: #efe2d0;
  --ink: #2a1410;
  --muted: #6d4a3d;
  --brand: #5c1414;
  --brand-deep: #3d0d0d;
  --accent: #b8860b;
  --accent-soft: #e8c56a;
  --line: rgba(92, 20, 20, 0.14);
  --card: rgba(255, 250, 242, 0.88);
  --shadow: 0 18px 50px rgba(61, 13, 13, 0.12);
  --radius: 18px;
  --font-display: "Tiro Devanagari Hindi", "Literata", Georgia, serif;
  --font-body: "Literata", "Tiro Devanagari Hindi", Georgia, serif;
  --max: 1120px;
  --narrow: 740px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(184, 134, 11, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(92, 20, 20, 0.12), transparent 50%),
    linear-gradient(180deg, #fbf5ec 0%, var(--bg) 40%, #f3e6d4 100%);
  min-height: 100vh;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

#main { flex: 1 0 auto; }

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-deep); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; background: var(--brand); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.container.narrow { width: min(var(--narrow), calc(100% - 2rem)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 240, 230, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav search";
  gap: .75rem 1rem;
  align-items: center;
  padding: .85rem 0;
}

.brand {
  display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit;
  min-width: 0;
  grid-area: brand;
}
.brand-mark-img {
  display: block;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; color: var(--brand-deep);
}
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.site-nav {
  grid-area: nav;
  display: flex; flex-wrap: nowrap; gap: .35rem .85rem; justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  padding-left: .25rem;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: .84rem; font-weight: 600;
  position: relative; white-space: nowrap; flex-shrink: 0;
  padding: .15rem .25rem;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }

.site-nav-mobile-head { display: none !important; }

.header-search {
  grid-area: search;
  justify-self: end;
  flex-shrink: 0;
  display: flex;
  gap: .4rem;
  align-items: flex-start;
}
.header-search-field { position: relative; flex: 1; min-width: 0; }
.header-search input {
  width: min(220px, 36vw); border: 1px solid var(--line); background: #fffaf3;
  border-radius: 999px; padding: .5rem .9rem; font: inherit; display: block;
}

@media (min-width: 993px) {
  .nav-toggle { display: none !important; }
  .header-search input { width: min(220px, 18vw); }
  .site-nav a { font-size: .875rem; padding: .2rem .35rem; }
  .site-nav { gap: .35rem 1rem; padding-left: .5rem; }
}

@media (min-width: 1280px) {
  .header-search input { width: min(240px, 16vw); }
  .site-nav a { font-size: .9rem; padding: .2rem .4rem; }
  .site-nav { gap: .4rem 1.15rem; padding-left: .65rem; }
}
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 60;
  background: #fffaf3; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); max-height: 18rem; overflow: auto;
  padding: .35rem 0;
}
.search-suggest[hidden] { display: none !important; }
.search-suggest a {
  display: block; padding: .55rem .9rem; text-decoration: none; color: var(--ink);
  font-size: .92rem; line-height: 1.35;
}
.search-suggest a:hover,
.search-suggest a:focus-visible { background: rgba(92, 20, 20, 0.06); outline: none; }
.search-suggest small { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.search-suggest-empty { padding: .65rem .9rem; color: var(--muted); font-size: .9rem; margin: 0; }
.header-search button,
.btn {
  border: 0; cursor: pointer; font: inherit; font-weight: 700;
  border-radius: 999px; padding: .65rem 1.15rem;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.header-search button {
  background: var(--brand); color: #fff; padding: .5rem .95rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; text-decoration: none; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--brand);
  border: 1px solid rgba(92, 20, 20, 0.28); text-decoration: none;
}

.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem; border: 2px solid rgba(92, 20, 20, 0.38);
  background: #fff; border-radius: 12px; flex-direction: column;
  justify-content: center; gap: 6px; padding: 0 .6rem;
  box-shadow: 0 2px 8px rgba(61, 13, 13, 0.12);
  cursor: pointer;
}
.nav-toggle span:not(.sr-only),
.nav-toggle-bar {
  display: block;
  width: 1.4rem;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-deep);
  transition: transform .2s ease, opacity .2s ease;
}

/* Hero — full-bleed bhakti photo; brand vertically centered on laptop */
.hero {
  position: relative;
  min-height: min(76vh, 620px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff8ee;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #1e0808;
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slides .hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease;
  animation: none;
  transform-origin: center center;
}
.hero-slides .hero-photo.is-active {
  opacity: 1;
  animation: hero-drift 22s ease-in-out infinite alternate;
}
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
  display: block;
  animation: hero-drift 22s ease-in-out infinite alternate;
  transform-origin: center center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(22, 6, 6, 0.82) 0%, rgba(40, 12, 10, 0.48) 46%, rgba(20, 8, 6, 0.22) 100%),
    linear-gradient(180deg, rgba(18, 5, 5, 0.28) 0%, rgba(18, 5, 5, 0.12) 50%, rgba(18, 5, 5, 0.5) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 3rem;
  max-width: 40rem;
  animation: rise-in .9s ease both;
}
.hero-kicker {
  letter-spacing: .18em; text-transform: uppercase; font-size: .78rem;
  color: var(--accent-soft); margin: 0 0 .55rem;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 7.5vw, 5.2rem);
  line-height: 1.05; margin: 0 0 .75rem; font-weight: 700;
  text-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.hero-lead {
  max-width: 36rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 248, 238, 0.9); margin: 0 0 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .btn-ghost { color: #fff8ee; border-color: rgba(255,248,238,.35); }

.section-ayodhya { padding-top: 2rem; }
.darshan-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.darshan-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  aspect-ratio: 16 / 9;
}
.darshan-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.darshan-card:hover img { transform: scale(1.03); }
.darshan-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .85rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(22, 6, 6, 0.88));
  color: #fff8ee;
  font-weight: 700;
  font-size: 1.05rem;
}
.darshan-cta { text-align: center; margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.page-hero {
  padding: 3.2rem 0 1.4rem;
  background: linear-gradient(180deg, rgba(92,20,20,.08), transparent);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; color: var(--brand-deep);
}
.page-hero p { margin: 0; color: var(--muted); max-width: 40rem; }

.section { padding: 3.2rem 0; }
.section-soft { background: rgba(255, 250, 242, 0.55); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.6rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 .35rem; color: var(--brand-deep);
}
.section-head p { margin: 0; color: var(--muted); }
.section-cta { margin-top: 1.8rem; text-align: center; }

.featured-panel {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow);
}
.featured-copy { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; align-items: flex-start; }
.featured-copy > p {
  margin: .5rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 42rem;
}
.featured-copy .meta-row { margin-top: 1rem; }
.featured-copy .btn-primary { margin-top: 1.5rem; }
.featured-copy h3 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: .7rem 0; line-height: 1.25;
}
.featured-copy h3 a { text-decoration: none; color: inherit; }
.featured-visual {
  min-height: 280px;
  background: linear-gradient(160deg, #7a1c1c, #3d0d0d 60%, #1a0707);
  display: grid; place-items: center; color: var(--accent-soft);
}
.featured-visual img { width: 100%; height: 100%; object-fit: cover; }
.featured-visual img.poster-focus-ram-mandir {
  object-fit: cover;
  object-position: right center;
}
.poster-focus-ram-mandir { object-position: right center; }
.featured-visual-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  text-decoration: none;
}
.featured-ornament { text-align: center; animation: floaty 5s ease-in-out infinite; }
.featured-ornament span { font-size: 4rem; display: block; }
.featured-ornament p { letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: #3d0d0d; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card-media img.poster-focus-ram-mandir {
  object-fit: cover;
  object-position: right center;
}
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-fallback {
  width: 100%; height: 100%; display: grid; place-items: center; gap: .35rem;
  background: linear-gradient(145deg, #8a1f1f, #3d0d0d); color: var(--accent-soft); font-size: 2.4rem;
}
.post-card-fallback em { font-style: normal; font-size: .85rem; letter-spacing: .04em; opacity: .9; }
.post-card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card-body h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; line-height: 1.3; }
.post-card-body h3 a { text-decoration: none; color: inherit; }
.post-card-body p { margin: 0; color: var(--muted); flex: 1; }
.text-link { font-weight: 700; text-decoration: none; }

.meta-row {
  display: flex; flex-wrap: wrap; gap: .55rem .9rem;
  color: var(--muted); font-size: .88rem; align-items: center;
}
.view-count {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--muted); font-size: inherit; line-height: 1;
  white-space: nowrap;
}
.view-count-icon {
  flex-shrink: 0; opacity: .85; color: var(--brand);
}
.view-count-num { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip {
  display: inline-flex; align-items: center; padding: .2rem .65rem;
  border-radius: 999px; background: rgba(92, 20, 20, 0.1); color: var(--brand);
  text-decoration: none; font-size: .82rem; font-weight: 700;
}
.chip-soft { background: rgba(184, 134, 11, 0.16); color: #7a5600; }

.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.category-tile {
  position: relative; text-decoration: none; color: #fff8ee;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; min-height: 200px;
  display: grid; align-items: end;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.category-tile:hover {
  transform: translateY(-3px); border-color: rgba(184,134,11,.45); box-shadow: var(--shadow);
}
.category-media { position: absolute; inset: 0; }
.category-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.category-tile:hover .category-media img { transform: scale(1.05); }
.category-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,6,6,.15) 0%, rgba(30,8,8,.82) 100%);
}
.category-copy {
  position: relative; z-index: 1; padding: 1.15rem 1.2rem 1.25rem; display: grid; gap: .25rem;
}
.category-name {
  display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff8ee;
}
.category-desc { display: block; color: rgba(255,248,238,.82); margin-top: .15rem; font-size: .9rem; }
.category-tile:hover { color: #fff8ee; }

.popular-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.popular-list a {
  display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: inherit;
  padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.popular-rank {
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; flex-shrink: 0;
}
.popular-list small { display: block; color: var(--muted); }

/* Article */
.article-header { padding: 2.8rem 0 1rem; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.2; margin: .7rem 0; color: var(--brand-deep);
}
.article-dek { font-size: 1.12rem; color: var(--muted); }
.article-hero-img { margin: 1rem auto 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-hero-img img { width: 100%; max-height: 420px; object-fit: cover; }
.article-hero-img img.poster-focus-ram-mandir {
  object-fit: cover;
  object-position: center center;
  max-height: 480px;
}

.article-body,
.prose {
  font-size: 1.08rem;
  overflow-wrap: break-word;
}
.article-body p,
.prose p { margin: 0 0 1.15rem; }
.article-body h2,
.prose h2 {
  font-family: var(--font-display); color: var(--brand-deep);
  font-size: 1.55rem; margin: 2rem 0 .8rem;
}
.article-body h3,
.prose h3 { color: var(--brand); margin: 1.5rem 0 .6rem; }
.article-body ul, .prose ul { padding-left: 1.2rem; }
.article-body blockquote,
.prose blockquote {
  margin: 1.4rem 0; padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: rgba(184, 134, 11, 0.1); border-radius: 0 12px 12px 0;
}
.lyrics-block {
  margin: 1.25rem 0 1.6rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(180deg, #fff8ef, #f3e6d4);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--brand-deep);
}
.lyrics-block p { margin: 0 0 1rem; }
.lyrics-block p:last-child { margin-bottom: 0; }

.article-body img,
.prose img {
  max-width: 100%;
  height: auto;
}
.article-body pre,
.prose pre,
.article-body table,
.prose table {
  max-width: 100%;
  overflow-x: auto;
}
.article-body table,
.prose table {
  display: block;
}

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.disclosure {
  margin: 1.5rem 0 0; padding: 1rem 1.1rem; border: 1px dashed var(--line);
  border-radius: 12px; color: var(--muted); font-size: .92rem; background: rgba(255,250,242,.7);
}
.disclosure p { margin: 0; }

.comment {
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.comment time { display: block; color: var(--muted); font-size: .85rem; margin: .2rem 0 .5rem; }
.muted { color: var(--muted); }

.stack-form { display: grid; gap: .85rem; margin-top: 1rem; }
.stack-form label { display: grid; gap: .35rem; font-weight: 600; }
.stack-form input,
.stack-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .9rem; font: inherit; background: #fffaf3;
}
.card-form {
  padding: 1.3rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-errors { color: #8a1414; background: #fdecec; padding: .7rem .9rem; border-radius: 10px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; align-items: start; }

.pagination {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .65rem 1rem; margin-top: 2rem;
}
.pagination a { text-decoration: none; font-weight: 700; }

.flash-wrap { padding-top: 1rem; }
.flash {
  padding: .85rem 1rem; border-radius: 12px; margin-bottom: .6rem;
  background: #e8f6ea; color: #1f5c2a; border: 1px solid #b9dfc0;
}

/* Ads — clearly separated, not misleading */
.ad-slot {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.25rem auto;
  min-height: 90px;
  display: grid; place-items: center;
  border: 1px dashed rgba(92, 20, 20, 0.18);
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.5);
}
.ad-slot-placeholder {
  color: var(--muted); font-size: .85rem; padding: 1rem; text-align: center;
}
.ad-slot-footer { margin-bottom: 0; border-radius: 0; border-left: 0; border-right: 0; }

/* Footer */
.site-footer {
  flex-shrink: 0;
  background: linear-gradient(180deg, #3d0d0d, #1e0808);
  color: rgba(255, 248, 238, 0.88);
  margin-top: 2rem;
  padding: 3rem 0 max(1.25rem, env(safe-area-inset-bottom, 0px));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1fr;
  gap: 1.75rem 1.5rem;
  align-items: start;
}
.footer-brand p:not(.footer-name) {
  margin: 0;
  max-width: 36ch;
  line-height: 1.55;
  color: rgba(255, 248, 238, 0.78);
}
.site-footer h3 {
  font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 .85rem; color: var(--accent-soft);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a {
  color: rgba(255,248,238,.88);
  text-decoration: none;
  display: inline-block;
  padding: .12rem 0;
  line-height: 1.4;
}
.site-footer a:hover { color: var(--accent-soft); }
.site-footer a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
.footer-name {
  font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 .5rem; color: #fff8ee;
}
.footer-note { color: rgba(255,248,238,.65); font-size: .92rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,248,238,.12);
  font-size: .9rem; color: rgba(255,248,238,.6);
  text-align: center;
}
.footer-legal-nav {
  display: flex; flex-wrap: wrap; gap: .45rem .85rem; justify-content: center;
  margin-bottom: 1rem; font-size: .88rem;
}
.footer-legal-nav a {
  color: rgba(255,248,238,.82); text-decoration: none; white-space: nowrap;
}
.footer-legal-nav a:hover { color: var(--accent-soft); text-decoration: underline; }
.footer-bottom-extra { margin-top: .65rem; font-size: .85rem; }
.footer-bottom-extra a { color: rgba(255,248,238,.75); }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .55rem;
}
.footer-social li { margin: 0; }
.footer-social a,
.footer-social-pending {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.22);
  font-size: .88rem;
  line-height: 1.2;
}
.footer-social a {
  color: rgba(255, 248, 238, 0.92);
  text-decoration: none;
}
.footer-social a:hover {
  color: var(--accent-soft);
  border-color: rgba(255, 248, 238, 0.45);
  background: rgba(255, 248, 238, 0.06);
}
.footer-social-pending {
  color: rgba(255, 248, 238, 0.52);
  cursor: default;
  pointer-events: none;
  border-style: dashed;
}
.prose-related {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--muted);
}

.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  max-width: 560px; margin-inline: auto;
  background: #fffaf3; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: center;
}
/* display:flex above would otherwise override the HTML hidden attribute */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--muted); }
.cookie-banner button {
  flex-shrink: 0; border: 0; border-radius: 999px; padding: .55rem .95rem;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}

/* Site help chatbot */
.help-chat {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  font-size: .92rem;
}
.help-chat-fab {
  display: flex; align-items: center; gap: .45rem;
  border: 0; border-radius: 999px; padding: .65rem 1rem;
  min-height: 48px; min-width: 48px;
  background: linear-gradient(135deg, var(--brand), #8b1a1a);
  color: #fff8ee; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 28px rgba(92, 20, 20, 0.35);
  animation: pulse-soft 3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.help-chat-fab-icon {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: rgba(255, 248, 238, 0.2);
  display: grid; place-items: center; font-size: 1rem;
}
.help-chat-panel {
  position: absolute; right: 0; bottom: calc(100% + .65rem);
  width: min(360px, calc(100vw - 2rem));
  max-height: min(70vh, 520px);
  display: flex; flex-direction: column;
  background: #fffaf3; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  overflow: hidden;
}
.help-chat-panel[hidden] { display: none !important; }
.help-chat-header {
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .85rem 1rem; background: linear-gradient(180deg, #5c1414, #3d0d0d);
  color: #fff8ee;
}
.help-chat-title {
  margin: 0; font-family: var(--font-display); font-size: 1.05rem;
}
.help-chat-sub { margin: .2rem 0 0; font-size: .78rem; opacity: .85; }
.help-chat-header-actions {
  display: flex; align-items: flex-start; gap: .35rem; flex-shrink: 0;
}
.help-chat-clear {
  border: 1px solid rgba(255, 248, 238, 0.35);
  background: rgba(255, 248, 238, 0.12);
  color: #fff8ee;
  border-radius: 8px;
  padding: .25rem .55rem;
  font: inherit; font-size: .75rem; font-weight: 600;
  cursor: pointer;
}
.help-chat-clear:hover { background: rgba(255, 248, 238, 0.22); }
.help-chat-close {
  border: 0; background: transparent; color: inherit;
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .2rem;
}
.help-chat-log {
  flex: 1; overflow-y: auto; padding: .75rem 1rem;
  display: flex; flex-direction: column; gap: .55rem;
  background: rgba(255, 250, 242, 0.6);
}
.help-chat-msg {
  display: flex; align-items: flex-start; gap: .35rem; max-width: 95%;
}
.help-chat-msg--user { align-self: flex-end; max-width: 92%; flex-direction: row-reverse; }
.help-chat-msg-body { flex: 1; min-width: 0; }
.help-chat-msg p { margin: 0; line-height: 1.45; }
.help-chat-msg--user .help-chat-msg-body {
  background: rgba(92, 20, 20, 0.08); border-radius: 12px 12px 4px 12px;
  padding: .5rem .75rem;
}
.help-chat-msg--bot .help-chat-msg-body {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px; padding: .55rem .75rem;
}
.help-chat-msg--bot a { color: var(--brand); font-weight: 600; }
.help-chat-msg-delete {
  flex-shrink: 0; border: 0; background: transparent;
  color: var(--muted); font-size: 1.1rem; line-height: 1;
  padding: .15rem .25rem; cursor: pointer; border-radius: 6px;
  opacity: .55;
}
.help-chat-msg:hover .help-chat-msg-delete,
.help-chat-msg-delete:focus { opacity: 1; color: var(--brand); }
.help-chat-msg-delete:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.help-chat-quick {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding: 0 .75rem .5rem;
}
.help-chat-chip {
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: .35rem .65rem;
  font: inherit; font-size: .78rem; cursor: pointer; color: var(--ink);
}
.help-chat-chip:hover { border-color: var(--brand); color: var(--brand); }
.help-chat-form {
  display: flex; gap: .4rem; padding: .55rem .75rem .35rem;
  border-top: 1px solid var(--line); background: #fffaf3;
}
.help-chat-form input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .65rem; font: inherit;
}
.help-chat-form button {
  border: 0; border-radius: 10px; padding: .5rem .85rem;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.help-chat-note {
  margin: 0; padding: 0 .85rem .65rem; font-size: .72rem; color: var(--muted);
}
.help-chat-note a { color: var(--brand); }

@media (max-width: 992px) {
  html { overflow-x: clip; }
  body {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
  }
  body.nav-open { overflow: hidden; }

  .site-header {
    backdrop-filter: none;
    background: #f7f0e6;
    overflow: visible;
    z-index: 80;
  }

  .container {
    width: min(var(--max), calc(100% - max(1.25rem, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px))));
  }

  #main {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  .section { padding: 2.35rem 0; }
  .section-ayodhya { padding-top: 1.5rem; }
  .page-hero { padding: 2rem 0 1rem; }
  .article-header { padding: 2rem 0 .75rem; }

  .brand-logo { height: 2.55rem; max-width: min(13.5rem, 100%); }
  .brand-mark-img { width: 2.55rem; height: 2.55rem; }
  .brand-name { font-size: 1.15rem; line-height: 1.2; }
  .brand-tag { font-size: .65rem; }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "search search";
  }
  .brand { grid-area: brand; }
  .nav-toggle { grid-area: toggle; justify-self: end; }
  .site-nav { grid-area: nav; }
  .header-search {
    display: flex;
    grid-area: search;
    width: 100%;
  }
  .header-search input {
    width: 100%;
    font-size: 16px;
    min-height: 44px;
    padding: .55rem 1rem;
  }
  .header-search-field { flex: 1; min-width: 0; }
  .header-search button {
    min-height: 44px;
    min-width: 2.75rem;
    padding: .5rem 1rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 82;
    flex-shrink: 0;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-toggle[aria-expanded="true"] {
    background: #fff8ee;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(92, 20, 20, 0.15);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 75;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(22, 6, 6, 0.42);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.nav-open .nav-backdrop:not([hidden]) {
    display: block;
  }
  .nav-backdrop[hidden] {
    display: none !important;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    margin: 0 0 .25rem;
    background: #fff;
    border: 1px solid rgba(92, 20, 20, 0.16);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(61, 13, 13, 0.1);
    padding: .35rem .75rem;
    gap: 0;
    max-height: min(55vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    display: flex; align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: .5rem .35rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(92, 20, 20, 0.06);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }

  .darshan-duo { grid-template-columns: 1fr; }
  .darshan-cta .btn {
    flex: 1 1 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero { min-height: min(72vh, 560px); }
  .hero-inner { padding: 2.5rem 0 2rem; max-width: 100%; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .featured-panel {
    display: flex;
    flex-direction: column;
  }
  .featured-visual { order: -1; min-height: 200px; }
  .featured-copy { width: 100%; }

  .featured-panel,
  .post-grid,
  .category-grid,
  .footer-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .post-card:hover,
  .category-tile:hover { transform: none; box-shadow: none; }

  .category-tile { min-height: 168px; }

  .meta-row { font-size: .84rem; gap: .45rem .65rem; }

  .popular-list a { padding: .85rem .95rem; gap: .75rem; }
  .popular-list strong { word-break: break-word; line-height: 1.35; }

  .article-body,
  .prose {
    overflow-wrap: anywhere;
    font-size: 1.05rem;
  }
  .article-body h2,
  .prose h2 { font-size: 1.35rem; }
  .article-hero-img { margin-inline: 0; width: 100%; border-radius: 12px; }
  .article-hero-img img { max-height: min(56vw, 300px); }

  .stack-form input,
  .stack-form textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .stack-form textarea { min-height: 7rem; }
  .btn { min-height: 44px; }

  .cookie-banner {
    left: max(.75rem, env(safe-area-inset-left, 0px));
    right: max(.75rem, env(safe-area-inset-right, 0px));
    bottom: max(.75rem, env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
    max-width: none;
  }
  .cookie-banner p { font-size: .88rem; line-height: 1.45; }
  .cookie-banner button {
    min-height: 48px;
    width: 100%;
  }

  .site-footer {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
  body:has(.cookie-banner:not([hidden])) .site-footer {
    padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
  }
  body:has(.cookie-banner:not([hidden])) #main {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }
  .footer-brand p:not(.footer-name) { max-width: none; }

  .help-chat-fab-label { display: none; }
  body:has(.cookie-banner:not([hidden])) .help-chat:not(.is-open) {
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
  .help-chat.is-open {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
  }
  .help-chat.is-open .help-chat-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-height: min(72vh, 520px);
  }
  .search-suggest {
    max-height: min(40vh, 16rem);
  }

  .site-footer ul a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .2rem 0;
  }

  .help-chat-form input,
  .help-chat-form button {
    min-height: 44px;
  }
  .help-chat-clear,
  .help-chat-close {
    min-width: 44px;
    min-height: 44px;
  }

  body.nav-open .site-header {
    z-index: 80;
  }

  .help-chat-form input { font-size: 16px; }
  .help-chat-chip { min-height: 40px; padding: .45rem .75rem; }
}

.empty-state { grid-column: 1 / -1; text-align: center; padding: 2rem; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 8px 20px rgba(92, 20, 20, 0.25); }
  50% { box-shadow: 0 8px 28px rgba(184, 134, 11, 0.35); }
}
@keyframes hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
  .post-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-panel {
    grid-template-columns: 1fr;
  }
  .featured-visual { min-height: 220px; max-height: 320px; }
  .featured-visual img { max-height: 320px; object-fit: cover; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
  .hero-slides .hero-photo.is-active { animation: none !important; }
}
