/* TirthaYatra — sacred sandstone & vermillion design system */
@import url('https://fonts.googleapis.com/css2?family=Rozha+One&family=Hind:wght@400;500;600;700&family=Tiro+Devanagari+Sanskrit:ital@0;1&display=swap');

:root {
  --ink: #1c120c;
  --stone-deep: #3a2418;
  --stone: #5c3d2e;
  --sand: #d4b896;
  --sand-soft: #e9d8c0;
  --parchment: #f7efe3;
  --vermillion: #c2341a;
  --sindoor: #9e2a14;
  --marigold: #d4920a;
  --brass: #b8923a;
  --brass-bright: #e2c36a;
  --dusk: #2a160e;
  --smoke: rgba(28, 18, 12, 0.55);
  --glow-diya: rgba(232, 160, 40, 0.45);
  --font-brand: 'Rozha One', Georgia, serif;
  --font-body: 'Hind', 'Segoe UI', sans-serif;
  --font-sanskrit: 'Tiro Devanagari Sanskrit', Georgia, serif;
  --max: 1120px;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(196, 80, 30, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(184, 146, 58, 0.12), transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 8c2 8 8 14 16 16-8 2-14 8-16 16-2-8-8-14-16-16 8-2 14-8 16-16z' fill='%23c2341a' fill-opacity='0.03'/%3E%3C/svg%3E");
  min-height: 100vh;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--sindoor); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vermillion); }

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem clamp(0.85rem, 1.8vw, 1.5rem);
  padding: 0.55rem clamp(1rem, 2.5vw, 1.75rem);
  background: linear-gradient(180deg, rgba(42, 22, 14, 0.97), rgba(42, 22, 14, 0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 195, 106, 0.25);
  width: 100%;
  max-width: 100vw;
}

/* Brand + search sit together on the left */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem clamp(0.85rem, 1.5vw, 1.25rem);
  min-width: 0;
  flex: 0 1 auto;
}

.nav-left .temple-search {
  width: clamp(11rem, 22vw, 17.5rem);
  flex: 0 1 auto;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem clamp(0.65rem, 1.2vw, 1rem);
  min-width: 0;
  flex: 1 1 auto;
}

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

/* —— Nav pill search (left, beside brand) —— */
.temple-search {
  position: relative;
  width: 100%;
  min-width: 0;
}

.temple-search-shell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.35rem 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.temple-search-label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex-shrink: 0;
}

.temple-search-icon { display: block; }

.temple-search-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem 0.55rem 0.2rem;
  margin-right: 0.15rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #1f2937;
  outline: none;
}

.temple-search-input::placeholder { color: #9ca3af; }

.temple-search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  max-height: 22rem;
  overflow: auto;
  background: #fffaf5;
  border: 1px solid rgba(92, 61, 46, 0.18);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(28, 18, 12, 0.22);
  z-index: 120;
}

.temple-search-hit {
  display: block;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(92, 61, 46, 0.08);
}

.temple-search-hit:last-child { border-bottom: none; }

.temple-search-hit:hover,
.temple-search-hit:focus {
  background: rgba(194, 52, 26, 0.06);
  color: var(--ink);
}

.temple-search-hit strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: var(--stone-deep);
  font-weight: 400;
}

.temple-search-hit > span {
  display: block;
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 0.15rem;
}

.temple-search-hit-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem !important;
}

.temple-search-empty {
  margin: 0;
  padding: 0.9rem;
  font-size: 0.92rem;
  color: var(--stone);
}

/* Compact state page header (no dark hero) */
.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 0.5rem;
}

.page-head .breadcrumb {
  font-size: 0.85rem;
  margin: 0 0 0.65rem;
  color: var(--stone);
}

.page-head .breadcrumb a {
  color: var(--sindoor);
  text-decoration: none;
}

.page-head .breadcrumb a:hover { text-decoration: underline; }

.page-head h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--stone-deep);
}

.page-head .lede {
  margin: 0;
  max-width: 40rem;
  color: var(--stone);
  font-size: 1.05rem;
}

.official-refs {
  max-width: var(--max);
  margin: 0 auto;
}

.official-refs ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.official-refs li { margin-bottom: 0.4rem; }

.section-band .official-refs .section-title { color: var(--stone-deep); }

.nav-brand {
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: var(--brass-bright);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-brand span {
  font-family: var(--font-sanskrit);
  font-size: 0.85rem;
  color: var(--sand);
  font-weight: 400;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.55rem, 1.1vw, 1.15rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  color: var(--sand-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.82rem, 0.95vw, 0.95rem);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--brass-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-body);
  cursor: pointer;
}

/* —— Daily Panchang (top-right) —— */
.panchang-widget {
  position: relative;
  flex-shrink: 0;
  z-index: 110;
}

.panchang-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  min-width: 7.5rem;
  max-width: 11rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(226, 195, 106, 0.45);
  background: rgba(20, 12, 8, 0.55);
  color: var(--sand-soft);
  font-family: var(--font-body);
  cursor: pointer;
  text-align: right;
  line-height: 1.2;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.panchang-chip:hover,
.panchang-chip[aria-expanded="true"] {
  border-color: var(--brass-bright);
  background: rgba(42, 22, 14, 0.92);
}

.panchang-chip-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.panchang-chip-date {
  font-size: 0.78rem;
  color: var(--sand);
}

.panchang-chip-tithi {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff8ef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.panchang-chip-fest {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff4e5;
  background: linear-gradient(90deg, var(--vermillion), #d4920a);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panchang-widget.is-festival .panchang-chip {
  border-color: rgba(194, 52, 26, 0.85);
  box-shadow: 0 0 0 1px rgba(212, 146, 10, 0.35), 0 6px 18px rgba(194, 52, 26, 0.25);
  background: linear-gradient(160deg, rgba(158, 42, 20, 0.55), rgba(42, 22, 14, 0.92));
}

.panchang-widget.is-observance .panchang-chip {
  border-color: rgba(226, 195, 106, 0.85);
  box-shadow: 0 0 0 1px rgba(226, 195, 106, 0.25);
}

.panchang-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 0.9rem;
  background: #fffaf5;
  color: var(--ink);
  border: 1px solid rgba(92, 61, 46, 0.18);
  box-shadow: 0 16px 40px rgba(28, 18, 12, 0.28);
}

.panchang-panel-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  color: var(--stone-deep);
}

.panchang-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.panchang-facts div {
  display: grid;
  gap: 0.1rem;
}

.panchang-facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

.panchang-facts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.panchang-fest-list {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, rgba(194, 52, 26, 0.12), rgba(212, 146, 10, 0.14));
  border: 1px solid rgba(194, 52, 26, 0.25);
}

.panchang-fest-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sindoor);
  font-weight: 700;
}

.panchang-fest-list ul {
  margin: 0;
  padding-left: 1.1rem;
}

.panchang-fest-list li {
  margin: 0.2rem 0;
  font-size: 0.92rem;
}

.panchang-note {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--stone);
}

.panchang-ref {
  margin: 0;
  font-size: 0.82rem;
}

.panchang-ref a {
  color: var(--sindoor);
  font-weight: 600;
}

/* —— Hero (full-bleed, left copy — same composition on laptop + monitor) —— */
.hero {
  position: relative;
  height: clamp(34rem, 86svh, 54rem);
  min-height: 32rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  color: var(--parchment);
  background: #1c120c;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(28, 18, 12, 0.18) 0%,
      rgba(28, 18, 12, 0.04) 28%,
      rgba(28, 18, 12, 0.32) 62%,
      rgba(28, 18, 12, 0.8) 100%
    ),
    linear-gradient(
      105deg,
      rgba(28, 18, 12, 0.68) 0%,
      rgba(28, 18, 12, 0.38) 34%,
      rgba(28, 18, 12, 0.08) 58%,
      transparent 76%
    ),
    radial-gradient(ellipse 55% 50% at 78% 30%, rgba(232, 160, 40, 0.16), transparent 58%);
}

.hero-photo-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  /* Monitor reference crop: statue left, coast open on the right */
  background-position: 40% 22%;
  opacity: 1;
  filter: saturate(1.3) contrast(1.1) brightness(1.08);
  animation: none;
}

.hero-photo-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(195deg, rgba(255, 196, 110, 0.16) 0%, transparent 42%),
    linear-gradient(0deg, rgba(30, 90, 140, 0.1) 0%, transparent 45%);
  mix-blend-mode: soft-light;
}

.hero-silhouette {
  display: none;
}

.hero-diyas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.diya {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 12px 4px var(--glow-diya), 0 0 28px 8px rgba(194, 52, 26, 0.25);
  animation: flicker 2.4s ease-in-out infinite;
}

.diya:nth-child(1) { left: 16%; bottom: 34%; animation-delay: 0s; }
.diya:nth-child(2) { left: 38%; bottom: 46%; animation-delay: 0.7s; width: 5px; height: 5px; }
.diya:nth-child(3) { left: 64%; bottom: 40%; animation-delay: 1.3s; }
.diya:nth-child(4) { left: 82%; bottom: 50%; animation-delay: 0.4s; width: 5px; height: 5px; }

@keyframes flicker {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.35rem, 4vh, 2.5rem) clamp(1.25rem, 3vw, 1.75rem) clamp(2.25rem, 6vh, 4rem);
  box-sizing: border-box;
}

.hero-content > * {
  max-width: min(46rem, 100%);
}

.hero-brand {
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 1.05;
  margin: 0 0 0.45rem;
  color: var(--brass-bright);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 6px 32px rgba(0, 0, 0, 0.5);
  animation: rise-in 1s var(--ease) both;
  max-width: min(46rem, 100%);
}

.hero-brand em {
  font-family: var(--font-sanskrit);
  font-style: normal;
  display: block;
  font-size: clamp(0.95rem, 1.55vw, 1.2rem);
  color: var(--sand);
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
  font-weight: 400;
  white-space: nowrap;
}

.hero-line {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  max-width: none;
  width: max-content;
  margin: 0 0 0.7rem;
  color: #fff8ef;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  animation: rise-in 1s var(--ease) 0.15s both;
  white-space: nowrap;
}

.hero-sub {
  max-width: min(44rem, 92vw);
  margin: 0 0 1.5rem;
  color: #f0e0c8;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  animation: rise-in 1s var(--ease) 0.28s both;
}

/* Force the intended 2-line split on desktop; phones hide this break */
.hero-sub-break { display: block; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise-in 1s var(--ease) 0.4s both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--vermillion), var(--sindoor));
  color: #fffaf5;
  box-shadow: 0 4px 20px rgba(194, 52, 26, 0.35);
}

.btn-primary:hover { color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--brass-bright);
  border: 1.5px solid rgba(226, 195, 106, 0.55);
}

.btn-ghost:hover { color: var(--brass-bright); border-color: var(--brass-bright); background: rgba(226, 195, 106, 0.08); }

/* —— Sections —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-kicker {
  font-family: var(--font-sanskrit);
  font-size: 0.95rem;
  color: var(--vermillion);
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--stone-deep);
}

.section-desc {
  margin: 0;
  color: var(--stone);
  font-size: 1.08rem;
}

.section-band {
  background: linear-gradient(180deg, rgba(58, 36, 24, 0.04), rgba(194, 52, 26, 0.06));
  border-top: 1px solid rgba(184, 146, 58, 0.2);
  border-bottom: 1px solid rgba(184, 146, 58, 0.2);
}

.section-band .section-title { color: var(--stone-deep); }

/* —— Circuit hubs (homepage discovery) —— */
.circuit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.circuit-tile {
  position: relative;
  display: block;
  padding: 1.75rem 1.4rem 1.5rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, #fff9f0 0%, var(--sand-soft) 100%);
  border: 1px solid rgba(92, 61, 46, 0.12);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.circuit-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--vermillion), var(--brass));
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.circuit-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(58, 36, 24, 0.12);
  border-color: rgba(194, 52, 26, 0.25);
  color: inherit;
}

.circuit-tile:hover::before { transform: scaleY(1); }

.circuit-count {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.5rem;
}

.circuit-name {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
  color: var(--stone-deep);
  line-height: 1.2;
}

.circuit-blurb {
  margin: 0;
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.5;
}

.circuit-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--vermillion);
  font-size: 0.9rem;
}

/* —— Temple browse list —— */
.temple-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.temple-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(92, 61, 46, 0.12);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s, padding 0.25s var(--ease);
}

.temple-row:first-child { border-top: 1px solid rgba(92, 61, 46, 0.12); }

.temple-row:hover {
  background: rgba(194, 52, 26, 0.04);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  color: inherit;
}

.temple-mark {
  width: 5.5rem;
  height: 5.5rem;
  background: linear-gradient(145deg, var(--stone), var(--dusk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sanskrit);
  font-size: 1.6rem;
  color: var(--brass-bright);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.temple-thumb {
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--dusk);
}

.temple-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.temple-row:hover .temple-thumb img {
  transform: scale(1.08);
}

.temple-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(226, 195, 106, 0.25), transparent 60%);
}

.temple-row-body h3 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  color: var(--stone-deep);
}

.temple-row-meta {
  font-size: 0.9rem;
  color: var(--stone);
  margin: 0;
}

.temple-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: rgba(194, 52, 26, 0.08);
  color: var(--sindoor);
  border: 1px solid rgba(194, 52, 26, 0.15);
  text-decoration: none;
}

.tag:hover { background: rgba(194, 52, 26, 0.14); color: var(--sindoor); }

.temple-row-cta {
  font-weight: 600;
  color: var(--vermillion);
  white-space: nowrap;
  font-size: 0.9rem;
}

/* —— Page header (inner pages) —— */
.page-hero {
  position: relative;
  padding: 3.5rem 1.5rem 3rem;
  background: linear-gradient(160deg, var(--dusk) 0%, var(--stone-deep) 55%, #4a2818 100%);
  color: var(--parchment);
  overflow: hidden;
}

.page-hero--photo {
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  padding-top: 5rem;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.55) saturate(0.9);
}

.page-hero--photo .page-hero-inner {
  background: linear-gradient(180deg, transparent, rgba(26, 16, 10, 0.72) 30%, rgba(26, 16, 10, 0.92));
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 2.5rem 1.5rem 2rem;
  width: calc(100% + 3rem);
  max-width: none;
}

.page-hero--photo .page-hero-inner > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.temple-figure {
  margin: 0;
  background: var(--dusk);
  overflow: hidden;
}

.temple-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.temple-figure figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--sand);
  background: var(--stone-deep);
}

.img-credit {
  font-size: 0.85rem;
  color: var(--stone);
  margin: 0.75rem 0;
}

.img-credit a { color: var(--sindoor); }

.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56%;
  height: 0;
  overflow: hidden;
  background: var(--sand-soft);
  border: 1px solid rgba(92, 61, 46, 0.15);
  margin: 1rem 0;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-actions { margin: 0 0 1rem; }

/* Homepage / circuit collage */
.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.collage-cell {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--dusk);
}

.collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: brightness(0.82);
}

.collage-cell span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.7rem 0.55rem;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  line-height: 1.2;
  background: linear-gradient(180deg, transparent, rgba(20, 12, 8, 0.85));
}

.collage-cell:hover img {
  transform: scale(1.07);
  filter: brightness(1);
}

.collage-cell--0,
.collage-cell--5 {
  grid-row: span 2;
}

.collage-cell--2 {
  grid-column: span 2;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: -20%;
  width: 45%;
  height: 140%;
  background: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='100' cy='100' r='90' fill='none' stroke='%23e2c36a' stroke-opacity='0.12' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%23e2c36a' stroke-opacity='0.1' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='30' fill='none' stroke='%23e2c36a' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.9;
  animation: mandala-spin 60s linear infinite;
  pointer-events: none;
}

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

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  margin: 0 0 1rem;
  color: var(--sand);
}

.breadcrumb a { color: var(--brass-bright); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  color: var(--brass-bright);
  line-height: 1.15;
}

.page-hero .lede {
  max-width: 40rem;
  margin: 0;
  color: var(--sand-soft);
  font-size: 1.1rem;
}

/* —— Temple article —— */
.temple-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.temple-main { min-width: 0; }

.temple-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.temple-section h2 {
  font-family: var(--font-brand);
  font-size: 1.65rem;
  color: var(--stone-deep);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(194, 52, 26, 0.2);
}

.temple-section h3 {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  color: var(--stone);
  margin: 1.5rem 0 0.5rem;
}

.sacred-phrase {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border: none;
  border-top: 1px solid rgba(184, 146, 58, 0.45);
  border-bottom: 1px solid rgba(184, 146, 58, 0.45);
  background:
    linear-gradient(180deg, rgba(196, 52, 26, 0.06), rgba(232, 216, 192, 0.35));
  text-align: center;
}

.sacred-phrase-text {
  font-family: var(--font-sanskrit);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  color: var(--stone-deep);
  margin: 0 0 0.55rem;
  letter-spacing: 0.02em;
}

.sacred-phrase-meaning {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: var(--sindoor);
  font-style: italic;
}

.sacred-phrase-meaning::before {
  content: "— ";
  color: var(--brass);
  font-style: normal;
}

.sacred-phrase-source {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--smoke);
  letter-spacing: 0.01em;
}

.belief-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--stone);
  background: rgba(58, 36, 24, 0.05);
  border-left: 3px solid var(--brass);
}

.belief-disclaimer strong {
  display: block;
  color: var(--stone-deep);
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.temple-section p { margin: 0 0 1rem; }
.temple-section ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.temple-section li { margin-bottom: 0.4rem; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.fact {
  padding: 1rem 1.1rem;
  background: rgba(58, 36, 24, 0.04);
  border-left: 3px solid var(--brass);
}

.fact dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.35rem;
}

.fact dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.98rem;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.25rem 0;
  background: var(--dusk);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.official-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Sidebar TOC */
.temple-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.toc {
  padding: 1.25rem;
  background: linear-gradient(160deg, #fff9f0, var(--sand-soft));
  border: 1px solid rgba(92, 61, 46, 0.12);
}

.toc h2 {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  margin: 0 0 0.85rem;
  color: var(--stone-deep);
}

.toc ol {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.92rem;
}

.toc li { margin-bottom: 0.45rem; }
.toc a { text-decoration: none; color: var(--stone); }
.toc a:hover { color: var(--vermillion); }

.aside-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Related temples */
.related-strip {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-link {
  display: block;
  padding: 1.1rem 1.2rem;
  background: var(--dusk);
  color: var(--sand-soft);
  text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.related-link:hover {
  background: var(--stone-deep);
  color: var(--brass-bright);
  transform: translateY(-2px);
}

.related-link strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  color: var(--brass-bright);
  margin-bottom: 0.25rem;
}

/* Comments */
.comments {
  margin-top: 2rem;
  padding: 1.75rem;
  background: rgba(58, 36, 24, 0.03);
  border: 1px solid rgba(92, 61, 46, 0.12);
}

.comments h2 {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.comments-note {
  font-size: 0.9rem;
  color: var(--stone);
  margin: 0 0 1.25rem;
}

.comment-form {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.comment-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea,
.comment-form select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(92, 61, 46, 0.25);
  background: #fffaf5;
  color: var(--ink);
}

.comment-form textarea { min-height: 110px; resize: vertical; }

.comment-list { display: grid; gap: 1rem; }

.comment-item {
  padding: 1rem 1.1rem;
  background: #fffaf5;
  border-left: 3px solid var(--sand);
}

.comment-item header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}

.comment-item .author { font-weight: 700; color: var(--stone-deep); }
.comment-item .date { color: var(--stone); }
.comment-item p { margin: 0; font-size: 0.98rem; }

.comment-empty {
  color: var(--stone);
  font-style: italic;
  margin: 0;
}

/* Devotion (Aarti / Chalisa / Vrat Katha) — same gutters as Circuits/States */
.devotion-section {
  padding-top: 1.75rem;
}

.devotion-article {
  width: 100%;
  max-width: 46rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.devotion-article h2 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  color: var(--stone-deep);
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(194, 52, 26, 0.18);
}

.devotion-summary {
  font-size: 1.08rem;
  color: var(--stone);
  margin: 1.25rem 0 0;
}

.devotion-verses {
  display: grid;
  gap: 0.85rem;
  margin: 0.5rem 0 1.5rem;
}

.devotion-verse {
  padding: 1.15rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(196, 52, 26, 0.05), rgba(232, 216, 192, 0.4));
  border-left: 3px solid var(--brass);
}

.devotion-verse p {
  font-family: var(--font-sanskrit);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--stone-deep);
  margin: 0;
  white-space: pre-line;
}

.devotion-meaning {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.devotion-related {
  margin: 1.5rem 0 0;
}

.devotion-related .tag {
  margin: 0.25rem 0.35rem 0.25rem 0;
  display: inline-block;
}

.devotion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.devotion-audio {
  margin: 1.5rem 0 0.5rem;
  padding: 1.15rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(194, 52, 26, 0.06), rgba(232, 216, 192, 0.35));
  border-left: 3px solid var(--brass);
}

.devotion-audio h2 {
  margin-top: 0;
}

.devotion-audio-label {
  margin: 0 0 0.75rem;
  color: var(--stone);
  font-size: 1rem;
}

.devotion-audio-embed {
  margin: 0.75rem 0 1rem;
}

.devotion-audio-actions {
  margin: 0.75rem 0 0.35rem;
}

.devotion-audio-note {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--smoke);
  line-height: 1.5;
}

.tag-audio {
  background: rgba(194, 52, 26, 0.12);
  color: var(--stone-deep);
}

/* —— Aarti Sangrah pill grid —— */
.aarti-sangrah-section {
  padding-top: 0.5rem;
}

.aarti-sangrah {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.aarti-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1rem;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-sanskrit);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--stone-deep);
  background: linear-gradient(180deg, #f6d56a 0%, #e8b820 55%, #d4920a 100%);
  border: 1.5px solid #c45a12;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 2px 6px rgba(28, 18, 12, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.aarti-pill:hover {
  color: var(--ink);
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 6px 14px rgba(194, 52, 26, 0.18);
}

.aarti-pill:focus-visible {
  outline: 2px solid var(--vermillion);
  outline-offset: 3px;
}

.aarti-list-section {
  padding-top: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .aarti-sangrah {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .aarti-pill {
    font-size: 0.95rem;
    min-height: 2.6rem;
    padding: 0.5rem 0.65rem;
  }
}

.devotion-section .belief-disclaimer,
.section .belief-disclaimer {
  margin-top: 2rem;
}

.temple-row-summary {
  font-size: 0.95rem;
  color: var(--smoke);
  margin: 0.35rem 0 0.5rem;
}

/* Legal / prose pages */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.prose h1 {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  color: var(--stone-deep);
  margin: 0 0 1.25rem;
}

.prose h2 {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--stone-deep);
}

.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.site-footer {
  background: var(--dusk);
  color: var(--sand);
  padding: 3rem 1.5rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  color: var(--brass-bright);
  margin: 0 0 0.5rem;
}

.footer-inner a {
  color: var(--sand-soft);
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.footer-inner a:hover { color: var(--brass-bright); }

.footer-col h3 {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: var(--brass);
  margin: 0 0 0.75rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(226, 195, 106, 0.15);
  font-size: 0.85rem;
  color: rgba(233, 216, 192, 0.65);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sources */
.sources {
  font-size: 0.9rem;
  color: var(--stone);
  padding: 1rem;
  background: rgba(58, 36, 24, 0.04);
}

.updated {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 0.75rem;
}

/* Circuit page temple grid */
.circuit-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}

.circuit-intro p { max-width: 42rem; color: var(--stone); font-size: 1.1rem; }

/* Mobile */
@media (max-width: 820px) {
  .temple-layout { grid-template-columns: 1fr; }
  .temple-aside { position: static; order: -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .temple-row {
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
  }
  .temple-mark { width: 4rem; height: 4rem; font-size: 1.2rem; }
  .temple-thumb { width: 4rem; height: 4rem; }
  .temple-row-cta { display: none; }
  .collage {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }
  .collage-cell--0,
  .collage-cell--5 { grid-row: span 1; }
  .collage-cell--2 { grid-column: span 1; }
  .page-hero--photo { min-height: 18rem; }
}

/* Narrow desktop / small laptop: keep brand+search left; tighten sizes */
@media (max-width: 1180px) {
  .site-nav {
    gap: 0.55rem 0.75rem;
    padding-inline: 0.9rem;
  }
  .nav-left .temple-search { width: clamp(9.5rem, 20vw, 14rem); }
  .nav-brand { font-size: 1.2rem; }
  .nav-brand span { font-size: 0.75rem; }
  .nav-links { gap: 0.5rem; }
  .nav-links a { font-size: 0.8rem; }
  .temple-search-input {
    font-size: 0.85rem;
    padding-block: 0.45rem;
  }
}

@media (max-width: 900px) {
  .nav-left .temple-search { width: clamp(8.5rem, 22vw, 12rem); }
  .nav-links { gap: 0.45rem; }
  .nav-links a { font-size: 0.78rem; }
}

/* Phone / small tablet: brand+menu top row, search full-width below */
@media (max-width: 780px) {
  .site-nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand menu"
      "search search";
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 1rem 0.7rem;
  }
  .nav-left {
    display: contents;
  }
  .nav-brand { grid-area: brand; }
  .nav-left .temple-search {
    grid-area: search;
    width: 100%;
  }
  .nav-right {
    grid-area: menu;
    gap: 0.4rem;
    flex: initial;
  }
  .panchang-chip {
    min-width: 0;
    max-width: 6.8rem;
    padding: 0.28rem 0.45rem;
  }
  .panchang-chip-tithi { font-size: 0.72rem; }
  .panchang-chip-fest { font-size: 0.65rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--dusk);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(226, 195, 106, 0.25);
  }
  .nav-links.open { display: flex; }
  .hero {
    height: auto;
    min-height: min(80svh, 38rem);
    align-items: flex-end;
  }
  .hero-content {
    padding: 1.35rem 1.15rem 2.25rem;
  }
  .hero-content > * { max-width: 100%; }
  .hero-brand em,
  .hero-line {
    white-space: normal;
    width: auto;
  }
  .hero-sub { max-width: 100%; }
  .hero-sub-break { display: none; }
  .hero-photo-layer { background-position: 32% 18%; }
  .diya { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .diya { animation: none !important; }
}
