/* Layout concept: a festive courtyard by day — ivory walls, marigold torans, gold borders and diya light, with each Devi framed in a temple arch. */
:root {
  --bg: #fdf7ec;          /* soft ivory page */
  --bg-band: #fbeedb;     /* warm cream band */
  --card: #fffdf8;
  --card-2: #fff6e8;
  --ink: #2c1410;         /* deep kumkum-brown text */
  --muted: #654538;
  --maroon: #7a1528;
  --gold: #c9951f;
  --gold-soft: #f2c35b;
  --gold-text: #8f5704;
  --marigold: #f07c10;
  --saffron: #ff9a2e;
  --sindoor: #c8162f;
  --rani: #d23a70;
  --royal: #28449c;
  --leaf: #3aa35f;
  --line: rgba(176, 120, 30, .26);
  --line-soft: rgba(176, 120, 30, .14);

  /* Navratri 2026 day colours */
  --d1: #f58a1f; --d2: #f1e6d2; --d3: #d42a3e; --d4: #3561d6; --d5: #f2bf12;
  --d6: #2e9e5b; --d7: #8d8a96; --d8: #9a4fd6; --d9: #12a39c;

  --f-display: "Mukta", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-body: "Mukta", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --shadow: 0 1px 2px rgba(122, 21, 40, .06), 0 14px 34px -18px rgba(122, 60, 20, .32);
  --shadow-lift: 0 2px 4px rgba(122, 21, 40, .06), 0 24px 44px -20px rgba(122, 60, 20, .4);
  --gutter: clamp(16px, 4vw, 32px);
  --top-safe: env(safe-area-inset-top, 0px);
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 14'%3E%3Cpath d='M0 7h14M30 7h14' stroke='%23c9951f' stroke-width='1.2'/%3E%3Cpath d='M22 1q5 6 0 12q-5-6 0-12Z' fill='%23f07c10'/%3E%3Cpath d='M22 7q-6-5-9 0q3 5 9 0Zm0 0q6-5 9 0q-3 5-9 0Z' fill='%23d23a70' fill-opacity='.8'/%3E%3C/svg%3E");

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sindoor); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.9rem, 5.2vw, 2.9rem); color: var(--maroon); }
h3 { font-size: 1.45rem; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sindoor); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--maroon); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text); display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 44px; height: 14px; background: var(--ornament) center / contain no-repeat; flex: none; }

/* ---------- Magic top bar ---------- */
.magicbar {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: calc(9px + var(--top-safe)) var(--gutter) 11px;
  font-size: .88rem; font-weight: 600; color: var(--maroon);
  background: linear-gradient(90deg, #fff1da, #ffe2c2 25%, #ffdbe4 50%, #ffe2c2 75%, #fff1da);
  background-size: 200% 100%;
  animation: bar-flow 18s linear infinite;
}
.magicbar::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--marigold) 0 12px, var(--gold-soft) 12px 18px, var(--rani) 18px 30px, var(--gold-soft) 30px 36px);
  opacity: .85;
}
.magicbar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .8) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: bar-shine 7s ease-in-out infinite;
  pointer-events: none;
}
.magicbar__track { position: relative; min-height: 1.5em; flex: 1; max-width: 640px; text-align: center; }
.magicbar__msg {
  position: absolute; inset: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .6s;
}
.magicbar__msg.is-on { opacity: 1; transform: none; }
.magicbar__spark {
  width: 13px; height: 13px; flex: none; background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 3s ease-in-out infinite;
}
.magicbar__spark--r { animation-delay: 1.5s; }
@keyframes bar-flow { to { background-position: 200% 0; } }
@keyframes bar-shine { 0%, 45% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@keyframes twinkle { 0%, 100% { transform: scale(.8) rotate(0); opacity: .7; } 50% { transform: scale(1.05) rotate(45deg); opacity: 1; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--top-safe); z-index: 50;
  background: rgba(253, 247, 236, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 6px 20px -16px rgba(122, 60, 20, .5);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); font-family: var(--f-display); font-size: 1.35rem; }
.brand b { font-weight: 700; color: var(--marigold); }
.brand__diya { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 2px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--maroon); background: rgba(240, 124, 16, .1); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--line); cursor: pointer; color: var(--maroon);
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s;
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 10px var(--gutter) 18px;
    background: var(--card); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
  .js .site-nav:not(.is-open) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(96px, 13vw, 150px) clamp(96px, 12vw, 140px);
  background:
    radial-gradient(55% 60% at 72% 42%, rgba(255, 196, 120, .55), transparent 70%),
    radial-gradient(40% 45% at 8% 20%, rgba(255, 186, 205, .45), transparent 70%),
    radial-gradient(45% 40% at 90% 100%, rgba(255, 170, 120, .35), transparent 70%),
    linear-gradient(180deg, #fff6e6, #fdeede);
  text-align: center;
}
.hero::after { /* gold border at the base, like a saree edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 2px no-repeat,
    radial-gradient(circle at 8px 8px, var(--marigold) 3px, transparent 3.5px) 0 2px / 16px 10px repeat-x,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat;
}
.toran { /* 3D marigold toran with bells and mango leaves */
  position: absolute; top: 0; left: 0; right: 0; height: clamp(62px, 7.2vw, 104px); z-index: 1;
  background: url("../img/toran.webp") 0 0 / auto 100% repeat-x;
  filter: drop-shadow(0 4px 4px rgba(122, 60, 20, .18));
  pointer-events: none;
}
.hero__mandala {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(1000px, 160vw); height: auto; aspect-ratio: 1; max-width: none;
  transform: translate(-50%, -50%);
  opacity: .55;
  animation: spin 160s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero__art { margin: 0; width: min(74vw, 300px); max-width: 100%; position: relative; }
.hero__art::before { content: ""; position: absolute; inset: 10% 4% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 140, .8), transparent); z-index: -1; }
.hero__art img { width: 100%; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (min-width: 960px) {
  .hero { text-align: left; }
  .hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 48px; row-gap: 18px; align-items: start; justify-items: start; }
  .hero__in > * { grid-column: 1; }
  .hero__art { grid-column: 2; grid-row: 1 / span 7; align-self: center; justify-self: center; width: min(100%, 470px); }
  .hero__cta { justify-content: flex-start; }
}
.hero__title {
  font-size: clamp(3.4rem, 15vw, 8rem); line-height: .95; letter-spacing: .01em;
  background: linear-gradient(180deg, var(--marigold) 5%, var(--sindoor) 55%, var(--maroon) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(242, 195, 91, .55));
}
.hero__title span { display: block; font-size: .62em; letter-spacing: .12em; background: linear-gradient(180deg, #e0a526, #a8680a); -webkit-background-clip: text; background-clip: text; }
.hero__dates { font-size: clamp(1.1rem, 3.4vw, 1.45rem); font-weight: 700; color: var(--maroon); }
.hero__lede { max-width: 58ch; color: var(--muted); font-size: 1.05rem; }

.countdown {
  position: relative; margin-top: 10px; padding: 20px clamp(14px, 3vw, 26px) 20px; width: 100%; max-width: 520px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fffdf8, #fff4e3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.countdown::before { /* gold inner border */
  content: ""; position: absolute; inset: 6px; border-radius: 17px; border: 1px dashed rgba(201, 149, 31, .45); pointer-events: none;
}
.countdown__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text); font-weight: 700; margin-bottom: 10px; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown__grid div { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-soft); }
.countdown__grid span { font-family: var(--f-display); font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.1; color: var(--sindoor); font-variant-numeric: tabular-nums; }
.countdown__grid small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.countdown__today { font-family: var(--f-display); font-size: 1.6rem; color: var(--maroon); }

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(180deg, #d34a0e, #a8122b); color: #fff; box-shadow: 0 10px 22px -10px rgba(168, 18, 43, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { color: var(--maroon); background: rgba(255, 255, 255, .7); border: 1.5px solid var(--gold); }
.btn--ghost:hover { background: #fff; }

.diyas { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-around; pointer-events: none; }
.diyas i {
  width: 34px; height: 14px; border-radius: 0 0 20px 20px; background: linear-gradient(180deg, #e8a735, #b86f12); position: relative;
  box-shadow: 0 0 22px 6px rgba(255, 170, 60, .3);
}
.diyas i::before {
  content: ""; position: absolute; left: 50%; bottom: 12px; width: 10px; height: 18px; margin-left: -5px;
  background: radial-gradient(circle at 50% 70%, #fff4c2, var(--marigold) 60%, transparent 70%);
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  animation: flame 2s ease-in-out infinite alternate;
}
.diyas i:nth-child(2n)::before { animation-duration: 2.4s; }
.diyas i:nth-child(3n)::before { animation-delay: .5s; }
@keyframes flame { from { transform: scale(1) rotate(-2deg); } to { transform: scale(1.06, 1.12) rotate(2deg); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 112px); }
.section--band {
  background:
    radial-gradient(circle at 12px 12px, rgba(201, 149, 31, .14) 1.6px, transparent 2px) 0 0 / 24px 24px,
    var(--bg-band);
}
.section--band::before, .section--band::after { /* scalloped gold toran edges */
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 10px 0, transparent 7px, var(--gold) 7.5px, var(--gold) 8.5px, transparent 9px) 0 0 / 20px 12px repeat-x;
  opacity: .7;
}
.section--band::before { top: 0; }
.section--band::after { bottom: 0; transform: scaleY(-1); }
.section__head { display: grid; gap: 12px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section__head > p:last-child { color: var(--muted); }

/* Shared light card */
.keydate, .cal, .journey__day a, .devi, .swatch, .muhurat, .steps li, .fest, .tips li, .samagri li {
  background: var(--card);
}

/* Dates */
.dates-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.keydates { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.keydate {
  position: relative; display: grid; gap: 2px; padding: 18px 20px 18px 24px; border-radius: var(--r-md);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow); overflow: hidden;
}
.keydate::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--marigold), var(--rani)); }
.keydate__tag { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.keydate strong { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.25; color: var(--maroon); }
.keydate > span:last-child { color: var(--muted); font-size: .95rem; }
.keydate--hi { background: linear-gradient(135deg, #fff1dc, #ffe1e4); border-color: rgba(200, 22, 47, .25); }

.cal { margin: 0; padding: clamp(16px, 3vw, 26px); border-radius: var(--r-lg); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.cal__cap { font-family: var(--f-display); font-size: 1.5rem; color: var(--maroon); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.cal__cap span { font-family: var(--f-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.cal__scroll { overflow-x: auto; }
.cal__grid { width: 100%; border-collapse: separate; border-spacing: 5px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cal__grid th { font-size: .78rem; color: var(--muted); font-weight: 700; padding-bottom: 4px; }
.cal__grid td {
  height: 56px; text-align: center; vertical-align: middle; border-radius: 10px; color: rgba(44, 20, 16, .42); font-size: .95rem;
}
.cal__grid td span { display: block; font-weight: 700; line-height: 1.1; }
.cal__grid td small { display: block; font-size: .62rem; letter-spacing: .04em; line-height: 1.2; margin-top: 2px; font-weight: 600; }
.cal__grid .nd {
  color: var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 12%, #fff));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 80%, #6b4a1a);
}
.cal__grid .nd small { color: var(--muted); }
.cal__grid .dus { color: #fff; background: linear-gradient(180deg, var(--marigold), var(--sindoor)); }
.cal__grid .dus small { color: #fff; }
.cal__grid .is-today { outline: 2px solid var(--maroon); outline-offset: 2px; }
.cal__note { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* Nine-day journey */
.journey {
  list-style: none; margin: 0; padding: 6px 4px 20px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.journey__day { scroll-snap-align: start; }
.journey__day a {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 22px 18px 18px; border-radius: 120px 120px var(--r-md) var(--r-md);
  text-decoration: none; color: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--c) 55%, #e8d3b0);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, #fff), #fffdf8 55%);
  transition: transform .25s, box-shadow .25s;
  text-align: center; align-items: center;
}
.journey__day a::before {
  content: ""; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 8px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7) 0, transparent 42%), var(--c);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px color-mix(in srgb, var(--c) 60%, #c9951f), 0 6px 14px -4px color-mix(in srgb, var(--c) 70%, transparent);
}
.journey__day a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.journey__n { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.journey__day time { color: var(--muted); font-size: .92rem; }
.journey__day strong { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; color: var(--maroon); }
.journey__tithi { font-size: .85rem; color: var(--muted); flex: 1; }
.chip {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700;
  padding: 3px 10px 3px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
}
.chip::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(44, 20, 16, .2); }
.journey__day.is-today a { box-shadow: 0 0 0 2px var(--c), var(--shadow-lift); }

/* Devi cards */
.devi {
  position: relative; display: flex; flex-direction: column; border-radius: 180px 180px var(--r-lg) var(--r-lg);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s; scroll-margin-top: 90px;
}
.devi::after { /* thin gold inner edge */
  content: ""; position: absolute; inset: 5px; border-radius: 175px 175px 18px 18px; border: 1px solid rgba(201, 149, 31, .35); pointer-events: none;
}
.devi:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.devi img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 170px 170px 10px 10px; margin: 10px 10px 0; width: calc(100% - 20px); }
.devi__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 24px; flex: 1; }
.devi__day { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.devi h3 { color: var(--maroon); }
.devi__body > p:not(.devi__day) { color: var(--muted); font-size: 1rem; }
.devi__facts { margin: auto 0 0; padding: 14px 14px 12px; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #fff8ec), #fff8ec); border: 1px solid var(--line-soft); display: grid; gap: 8px; }
.devi__facts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.devi__facts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.devi__facts dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.sw { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(44, 20, 16, .22); flex: none; }

/* Colours */
.colours__art { margin: 0 0 clamp(20px, 3vw, 32px); padding: 8px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.colours__art img { width: 100%; aspect-ratio: 5 / 2; border-radius: 18px; object-fit: cover; }
.palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.swatch {
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 16px; align-items: center;
  padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .25s, border-color .25s, background .25s;
}
.swatch:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, #c9951f); }
.swatch[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--c) 80%, #6b4a1a);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, #fff), #fffdf8 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 70%, #6b4a1a), var(--shadow-lift);
}
.swatch__dot {
  grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .6), transparent 42%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(44, 20, 16, .15), 0 0 0 4px #fff, 0 0 0 5px var(--line), 0 8px 16px -8px color-mix(in srgb, var(--c) 80%, #6b4a1a);
}
.swatch__day { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.swatch strong { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; color: var(--maroon); }
.swatch__meaning { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.fineprint { margin-top: 20px; font-size: .88rem; color: var(--muted); max-width: 70ch; }

/* Ghatasthapana */
.ghata { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ghata__intro { display: grid; gap: 16px; }
.ghata__intro > p { color: var(--muted); }
.muhurat {
  position: relative; display: grid; gap: 0; border-radius: var(--r-lg); padding: 8px 22px 16px;
  background: linear-gradient(160deg, #fff4df, #ffe8e4);
  border: 1px solid rgba(200, 22, 47, .2); box-shadow: var(--shadow);
}
.muhurat__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.muhurat__row span { color: var(--muted); }
.muhurat__row strong { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--maroon); }
.muhurat__note { font-size: .84rem; color: var(--muted); padding-top: 12px; }
.ghata__subhead { font-size: 1.3rem; margin-top: 8px; color: var(--maroon); }
.samagri { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.samagri li { padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; border: 1px solid var(--line); box-shadow: 0 2px 6px -4px rgba(122, 60, 20, .4); }

.ghata__side { display: grid; gap: 18px; min-width: 0; }
.ghata__art { margin: 0; padding: 8px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ghata__art img { width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--gold-soft), var(--rani)); opacity: .6; }
.steps li {
  counter-increment: step; position: relative; display: grid; gap: 4px;
  padding: 16px 18px 16px 70px; border-radius: var(--r-md); border: 1px solid var(--line-soft); box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 6px; top: 14px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--f-display); font-size: 1.1rem; color: #fff;
  background: linear-gradient(180deg, var(--marigold), var(--sindoor)); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}
.steps h3 { font-size: 1.2rem; color: var(--maroon); }
.steps p { color: var(--muted); font-size: .98rem; }

/* Garba & celebrations */
.section--night {
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 15% 0%, rgba(255, 186, 205, .55), transparent 70%),
    radial-gradient(50% 60% at 90% 100%, rgba(255, 196, 120, .5), transparent 70%),
    linear-gradient(180deg, #fff4ea, #ffece6);
}
.stars { /* scattered marigold petals */
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(4px 4px at 8% 14%, var(--marigold) 60%, transparent),
    radial-gradient(3px 3px at 24% 70%, var(--rani) 60%, transparent),
    radial-gradient(3px 3px at 44% 22%, var(--gold) 60%, transparent),
    radial-gradient(4px 4px at 68% 10%, var(--marigold) 60%, transparent),
    radial-gradient(3px 3px at 84% 40%, var(--rani) 60%, transparent),
    radial-gradient(4px 4px at 94% 78%, var(--gold) 60%, transparent),
    radial-gradient(3px 3px at 4% 90%, var(--marigold) 60%, transparent);
}
.section--night .wrap { position: relative; }
.celebrate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fest {
  display: grid; gap: 12px; align-content: start; padding: 12px 12px 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.fest > h3, .fest > p { padding-inline: 12px; }
.fest h3 { color: var(--maroon); }
.fest > p { color: var(--muted); }
.fest__art { width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; }
.fest__banner { grid-column: 1 / -1; width: 100%; aspect-ratio: 2000 / 700; border-radius: 14px; }
.fest--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 20px 24px; align-items: start;
  background: linear-gradient(120deg, #fffdf8, #fff3e6); }
.fest__text { display: grid; gap: 10px; padding-left: 12px; }
.fest__text p { color: var(--muted); }
.tips { list-style: none; margin: 0; padding: 0 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tips li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: #fff; }
.tips strong { color: var(--sindoor); font-weight: 700; }
.tips span { color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* Footer */
.site-footer {
  position: relative; background: linear-gradient(180deg, #fbeedb, #f7e3c8); color: var(--ink);
  padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px));
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--marigold) 0 12px, var(--gold-soft) 12px 18px, var(--rani) 18px 30px, var(--gold-soft) 30px 36px); }
.site-footer__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.site-footer nav a { color: var(--maroon); text-decoration: none; font-size: .95rem; font-weight: 600; }
.site-footer nav a:hover { color: var(--sindoor); text-decoration: underline; }
.brand--foot { margin: 0; }
.site-footer__line { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.site-footer__small { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dates-layout, .ghata { grid-template-columns: minmax(0, 1fr); }
  .fest--wide { grid-template-columns: minmax(0, 1fr); }
  .fest__text { padding-inline: 12px; }
  .tips { padding-inline: 12px; }
  .site-footer__in { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .palette, .celebrate, .tips { grid-template-columns: minmax(0, 1fr); }
  .devi { border-radius: 160px 160px var(--r-lg) var(--r-lg); }
  .devi::after { border-radius: 155px 155px 18px 18px; }
  .devi img { width: min(86%, 320px); margin: 14px auto 0; border-radius: 150px 150px 10px 10px; }
  .journey { grid-auto-columns: 72%; }
  .cal__grid { border-spacing: 3px; }
  .cal__grid td { height: 48px; font-size: .88rem; }
  .cal__grid td small { font-size: .56rem; }
  .magicbar { font-size: .8rem; }
  .diyas i:nth-child(n+4) { display: none; }
  .swatch { grid-template-columns: 48px minmax(0, 1fr); }
  .swatch__dot { width: 48px; height: 48px; }
}
@media (max-width: 380px) {
  .cal__grid td small { display: none; }
  .countdown__grid { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 959px) { .hero .eyebrow::before { display: none; } }
section[id] { scroll-margin-top: 64px; }

/* Simple, consistent typography and natural sizing for the Garba nights / kalash art */
h1, h2, h3, .brand, .keydate strong, .journey__day strong, .swatch strong, .cal__cap, .countdown__today { font-weight: 700; }
h1, h2, h3 { letter-spacing: -.01em; }
.hero__title { letter-spacing: -.02em; }
.countdown__grid span { font-weight: 700; }
.steps--simple li { padding-block: 14px; min-height: 64px; align-content: center; }
.steps--simple p { color: var(--ink); }
.colours__art { width: min(100%, 520px); margin-inline: auto; }
.colours__art img { aspect-ratio: auto; height: auto; object-fit: contain; }
.fest__banner { aspect-ratio: auto; height: auto; width: min(100%, 520px); justify-self: center; }

/* ===================== Site-wide additions (multi-page, language, dark mode) ===================== */
:root { --header-h: 64px; }
html[lang="hi"] body { line-height: 1.75; }
html[lang="hi"] .eyebrow, html[lang="hi"] .keydate__tag, html[lang="hi"] .journey__n, html[lang="hi"] .devi__day,
html[lang="hi"] .devi__facts dt, html[lang="hi"] .swatch__day, html[lang="hi"] .countdown__label, html[lang="hi"] .countdown__grid small { letter-spacing: .02em; text-transform: none; }

/* Header: brand | nav | controls */
.site-header__in { gap: 12px; }
.brand { white-space: nowrap; flex: none; }
.site-nav { flex-wrap: nowrap; justify-content: center; gap: 0; flex: 1; min-width: 0; }
.site-nav a { font-size: .88rem; padding: 6px 7px; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--maroon); background: rgba(240, 124, 16, .12); }
.controls { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 3px; font-size: .85rem; font-weight: 700; }
.lang a, .lang span { padding: 5px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); line-height: 1.2; }
.lang [aria-current="true"] { background: linear-gradient(180deg, #d34a0e, #a8122b); color: #fff; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--maroon); cursor: pointer; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (max-width: 1260px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--line); cursor: pointer; color: var(--maroon);
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s;
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 10px var(--gutter) 18px;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift);
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .site-nav a { padding: 11px 14px; font-size: 1.02rem; border-radius: 12px; }
  .js .site-nav:not(.is-open) { display: none; }
  .brand { margin-right: auto; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.15rem; } .brand__diya { width: 24px; height: 24px; }
  .lang a, .lang span { padding: 5px 8px; }
  .theme-toggle, .nav-toggle { width: 38px; height: 38px; }
}
@media (max-width: 374px) {
  .site-header__in { gap: 8px; } .brand { gap: 6px; font-size: 1.08rem; } .controls { gap: 6px; }
  .lang a, .lang span { padding: 5px 7px; } .theme-toggle, .nav-toggle { width: 36px; height: 36px; }
}

/* Hero poster */
.hero__art--poster { width: min(88vw, 360px); }
.hero__art--poster img { border-radius: 26px; border: 2px solid rgba(201, 149, 31, .7); box-shadow: 0 24px 50px -24px rgba(122, 21, 40, .55), 0 0 0 6px rgba(255, 255, 255, .55); animation: none; }
@media (min-width: 960px) { .hero__art--poster { width: min(100%, 480px); } }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(84px, 10vw, 120px) clamp(44px, 6vw, 72px);
  background: radial-gradient(50% 70% at 85% 30%, rgba(255, 196, 120, .45), transparent 70%), radial-gradient(40% 60% at 5% 10%, rgba(255, 186, 205, .4), transparent 70%), linear-gradient(180deg, #fff6e6, #fdeede); }
.page-hero .toran { height: clamp(46px, 5vw, 70px); }
.page-hero__in { display: grid; gap: 24px; align-items: center; }
.page-hero__in.has-art { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); color: var(--maroon); margin-top: 10px; }
.page-hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin-top: 12px; }
.page-hero__art { margin: 0; justify-self: center; width: min(100%, 420px); }
.page-hero__art img { border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lift); background: var(--card); }
.page-hero__art--arch img { border-radius: 200px 200px 22px 22px; }
@media (max-width: 860px) { .page-hero__in.has-art { grid-template-columns: minmax(0, 1fr); } }

.crumbs { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold-text); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--sindoor); text-decoration: underline; }

/* Prose + layout blocks */
.prose { max-width: 760px; display: grid; gap: 16px; }
.prose > p, .prose li { color: var(--ink); }
.prose h2 { margin-top: 18px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.prose h3 { margin-top: 8px; color: var(--maroon); font-size: 1.3rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose a { color: var(--sindoor); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.figure-card { margin: 0; padding: 8px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.figure-card img { width: 100%; border-radius: 17px; }
.figure-card figcaption { font-size: .88rem; color: var(--muted); padding: 10px 8px 4px; }
.sticky-side { position: sticky; top: 90px; display: grid; gap: 18px; }
@media (max-width: 860px) { .sticky-side { position: static; } }
.note { padding: 14px 18px; border-radius: var(--r-md); background: var(--card-2); border: 1px solid var(--line-soft); color: var(--muted); font-size: .95rem; }
.note strong { color: var(--ink); }

/* Facts list (Devi page) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.facts div { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.facts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
html[lang="hi"] .facts dt { letter-spacing: .02em; font-size: .85rem; }
.facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
@media (max-width: 420px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.ptable { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ptable thead th { background: var(--card-2); color: var(--maroon); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.ptable tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ptable tr:last-child td, .ptable tr:last-child th { border-bottom: 0; }
.ptable tr.is-hl { background: color-mix(in srgb, var(--marigold) 9%, transparent); }
.ptable--wide { min-width: 680px; }
.ptable small { display: block; color: var(--muted); font-size: .82rem; }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); } .kv strong { color: var(--maroon); text-align: right; font-variant-numeric: tabular-nums; }
.time-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(160deg, #fff4df, #ffe8e4); box-shadow: var(--shadow); overflow: hidden; }
.time-card h3 { padding: 14px 16px 4px; font-size: 1.15rem; color: var(--maroon); }
.time-card .meta { padding: 0 16px 8px; font-size: .85rem; color: var(--muted); }

/* Mantra + Aarti */
.mantra { padding: 20px 22px; border-radius: var(--r-lg); background: linear-gradient(160deg, #fff4df, #fff9ef); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; }
.mantra h3 { font-size: 1.1rem; color: var(--gold-text); }
.sa { font-size: 1.22rem; line-height: 1.9; color: var(--maroon); font-weight: 600; white-space: pre-line; }
.rom { color: var(--muted); font-style: italic; white-space: pre-line; font-size: .98rem; }
.aarti { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.aarti summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--maroon); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.aarti summary::-webkit-details-marker { display: none; }
.aarti summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-text); }
.aarti[open] summary::after { content: "–"; }
.aarti__body { padding: 0 20px 20px; display: grid; gap: 14px; }
.aarti__verse { padding: 12px 14px; border-radius: 12px; background: var(--card-2); border-left: 3px solid var(--gold); }
.aarti__verse .sa { font-size: 1.08rem; }

/* Prev / next */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pager a { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-md); text-decoration: none; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s; }
.pager a:hover { transform: translateY(-2px); }
.pager small { color: var(--gold-text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }
.pager strong { color: var(--maroon); font-size: 1.1rem; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 520px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { grid-column: 1; } }

/* Topic cards (home overview + related links) */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.topic { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.topic::before { content: ""; width: 34px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--marigold), var(--rani)); margin-bottom: 6px; }
.topic strong { color: var(--maroon); font-size: 1.08rem; }
.topic span { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sindoor); text-decoration: none; margin-top: 4px; }
.more::after { content: "→"; }
.more:hover { text-decoration: underline; }
.section__foot { margin-top: 26px; }

/* Devi cards as links */
.devi h3 a { color: inherit; text-decoration: none; }
.devi h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.devi .more { position: relative; z-index: 2; }
.devi:focus-within { box-shadow: 0 0 0 2px var(--sindoor), var(--shadow-lift); }

/* Festival feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.feature + .feature { margin-top: clamp(40px, 6vw, 64px); }
.feature--flip > :first-child { order: 2; }
.feature__text { display: grid; gap: 12px; }
.feature__text p { color: var(--muted); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature--flip > :first-child { order: 0; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--maroon); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); display: grid; gap: 8px; }

/* Chips list (prasad) */
.bhog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.bhog-list a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.bhog-list b { color: var(--maroon); display: block; font-size: .95rem; }
.bhog-list span { font-size: .88rem; color: var(--muted); }

/* Footer grid */
.site-footer__cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 18px 28px; }
.site-footer__cols h2, .site-footer__cols h3 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
html[lang="hi"] .site-footer__cols h2, html[lang="hi"] .site-footer__cols h3 { letter-spacing: .02em; font-size: .95rem; }
.site-footer__cols .site-footer__title { grid-column: 1 / -1; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--maroon); font-weight: 700; }
.site-footer nav.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px 24px; justify-content: stretch; }
.ftopic--devi { grid-column: span 2; }
.ftopic li { line-height: 1.35; }
.ftopic ul { gap: 9px; }
.ftopic--devi ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
@media (max-width: 340px) { .ftopic--devi { grid-column: auto; } .ftopic--devi ul { grid-template-columns: minmax(0, 1fr); } }
.site-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__cols a { color: var(--maroon); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-footer__cols a:hover { color: var(--sindoor); text-decoration: underline; }

.err404 { text-align: center; display: grid; gap: 16px; justify-items: center; padding-block: 40px; }
.err404 .big { font-size: clamp(4rem, 18vw, 8rem); font-weight: 700; line-height: 1; background: linear-gradient(180deg, var(--marigold), var(--sindoor)); -webkit-background-clip: text; background-clip: text; color: transparent; }

img { color: transparent; }

/* ===================== Dark mode: deep indigo night with gold ===================== */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171431; --bg-band: #1e1940; --card: #241e4a; --card-2: #2b2456;
  --ink: #f4ead8; --muted: #c8bcd8; --maroon: #f6cd7a; --gold-text: #e9b955; --gold: #d9a73a;
  --sindoor: #ff8a7a; --line: rgba(233, 185, 85, .28); --line-soft: rgba(233, 185, 85, .15);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -18px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 44px -20px rgba(0, 0, 0, .8);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .magicbar { background: linear-gradient(90deg, #241c52, #3a1f55 25%, #4a1f4e 50%, #3a1f55 75%, #241c52); background-size: 200% 100%; color: #f6cd7a; }
[data-theme="dark"] .magicbar::after { background: linear-gradient(110deg, transparent 35%, rgba(255, 220, 160, .18) 50%, transparent 65%); }
[data-theme="dark"] .site-header { background: rgba(23, 20, 49, .9); }
[data-theme="dark"] .site-nav a:hover, [data-theme="dark"] .site-nav a[aria-current="page"] { background: rgba(246, 205, 122, .1); color: #f6cd7a; }
[data-theme="dark"] .hero, [data-theme="dark"] .page-hero {
  background: radial-gradient(55% 60% at 72% 42%, rgba(120, 70, 190, .45), transparent 70%), radial-gradient(40% 45% at 8% 20%, rgba(200, 80, 140, .22), transparent 70%), radial-gradient(45% 40% at 90% 100%, rgba(233, 160, 60, .16), transparent 70%), linear-gradient(180deg, #1b1640, #171431); }
[data-theme="dark"] .hero__mandala { opacity: .35; }
[data-theme="dark"] .hero__art::before { background: radial-gradient(closest-side, rgba(233, 185, 85, .35), transparent); }
[data-theme="dark"] .hero__art--poster img { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8), 0 0 0 6px rgba(233, 185, 85, .15); }
[data-theme="dark"] .countdown, [data-theme="dark"] .mantra, [data-theme="dark"] .time-card, [data-theme="dark"] .muhurat { background: linear-gradient(180deg, #2a2354, #221c47); }
[data-theme="dark"] .countdown__grid div { background: var(--card-2); }
[data-theme="dark"] .countdown__grid span { color: #ffb36b; }
[data-theme="dark"] .btn--ghost { background: rgba(255, 255, 255, .05); color: #f6cd7a; }
[data-theme="dark"] .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
[data-theme="dark"] .keydate--hi { background: linear-gradient(135deg, #3a2550, #2f2152); }
[data-theme="dark"] .cal__grid td { color: rgba(244, 234, 216, .4); }
[data-theme="dark"] .cal__grid .nd { color: var(--ink); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 40%, #241e4a), color-mix(in srgb, var(--c) 18%, #241e4a)); }
[data-theme="dark"] .journey__day a { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, #241e4a), #241e4a 60%); }
[data-theme="dark"] .journey__day a::before, [data-theme="dark"] .swatch__dot { box-shadow: 0 0 0 4px #241e4a, 0 0 0 5px var(--line); }
[data-theme="dark"] .chip { background: var(--card-2); color: var(--ink); }
[data-theme="dark"] .devi__facts { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, #2b2456), #2b2456); }
[data-theme="dark"] .swatch[aria-pressed="true"] { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, #241e4a), #241e4a 70%); }
[data-theme="dark"] .section--night { background: radial-gradient(50% 60% at 15% 0%, rgba(200, 80, 140, .22), transparent 70%), radial-gradient(50% 60% at 90% 100%, rgba(233, 160, 60, .14), transparent 70%), linear-gradient(180deg, #1b1640, #1e1940); }
[data-theme="dark"] .fest--wide { background: linear-gradient(120deg, #241e4a, #2b2456); }
[data-theme="dark"] .tips li { background: var(--card-2); }
[data-theme="dark"] .steps li::before { box-shadow: 0 0 0 3px #241e4a, 0 0 0 4px var(--line); }
[data-theme="dark"] .site-footer { background: linear-gradient(180deg, #1e1940, #15122c); }
[data-theme="dark"] .ptable tr.is-hl { background: rgba(233, 185, 85, .1); }
[data-theme="dark"] .lang [aria-current="true"] { background: linear-gradient(180deg, #e0702a, #b3283e); }
[data-theme="dark"] .devi img, [data-theme="dark"] .fest__art, [data-theme="dark"] .figure-card img { filter: brightness(.94); }
[data-theme="dark"] .ghata__art, [data-theme="dark"] .colours__art { background: #2b2456; }
[data-theme="dark"] .hero__title { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); background: linear-gradient(180deg, #ffb35c 5%, #ff7a6a 55%, #f2a0c0 100%); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .hero__title span { background: linear-gradient(180deg, #f6d27e, #d9a73a); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] a { color: #ffb08f; }
[data-theme="dark"] .site-footer__cols a, [data-theme="dark"] .crumbs a { color: var(--maroon); }
[data-theme="dark"] .skip { color: #171431; }

/* section artwork: shown at its own size, never stretched */
.sec-art { margin: 8px auto 20px; width: fit-content; max-width: 100%; }
.sec-art img { width: auto; max-width: 100%; height: auto; }
.art-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.art-row__text { display: grid; gap: 16px; align-content: start; }
.art-row__text > p { color: var(--ink); }
.art-row > .sec-art { margin: 0; max-width: 320px; }
@media (max-width: 760px) { .art-row { grid-template-columns: minmax(0, 1fr); } .art-row > .sec-art { order: -1; justify-self: center; } }
.art-pair { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px 32px; margin: 14px 0 24px; }
.art-pair .sec-art { margin: 0; }
.page-hero__art--native { width: auto; max-width: 100%; }
.page-hero__art--native img { border: 0; box-shadow: none; background: none; border-radius: 0; }
.feature > .sec-art { margin: 0 auto; }
[data-theme="dark"] .sec-art img, [data-theme="dark"] .page-hero__art--native img { filter: brightness(.94); }
.brand--foot a { color: inherit; text-decoration: none; }
.site-footer__line--fest { font-size: .92rem; }
.site-footer__info a { color: var(--sindoor); font-weight: 600; }
.two-col .art-row > .sec-art { max-width: 240px; }
.site-footer__site { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__site a { font-weight: 600; font-size: .92rem; color: var(--maroon); text-decoration: none; }
.site-footer__site a:hover { text-decoration: underline; }
/* small phones: let long announcement lines wrap instead of being cut off */
@media (max-width: 420px) {
  .magicbar__track { min-height: 2.6em; }
  .magicbar__msg { white-space: normal; line-height: 1.3; display: flex; align-items: center; justify-content: center; text-overflow: clip; }
}
.hero__crumbs { display: flex; justify-content: center; margin-bottom: 14px; }
.hero__crumbs .crumbs { justify-content: center; }

/* ---------- Send a Greeting (additional feature) ---------- */
.tk-greet-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  padding: 11px 18px; border: 0; border-radius: 999px; cursor: pointer; font: 700 .95rem/1.2 var(--f-body); color: #fff;
  background: linear-gradient(180deg, #d34a0e, #a8122b); box-shadow: 0 12px 26px -10px rgba(122, 21, 40, .75), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s; }
.tk-greet-fab:hover { transform: translateY(-2px); }
.tk-greet-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.has-greet .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.tk-greet { border: 0; padding: 0; background: transparent; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); color: var(--ink); }
.tk-greet::backdrop { background: rgba(43, 18, 24, .45); backdrop-filter: blur(2px); }
.tk-greet__box { position: relative; display: grid; gap: 12px; padding: 24px 22px 20px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.tk-greet__box h2 { color: var(--maroon); font-size: 1.45rem; padding-right: 32px; }
.tk-greet__intro, .tk-greet__note { color: var(--muted); font-size: .92rem; }
.tk-greet__note { font-size: .82rem; }
.tk-greet label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.tk-greet input { font: 500 1rem var(--f-body); padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg, #fff); color: var(--ink); width: 100%; }
.tk-greet input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marigold) 25%, transparent); }
.tk-greet__err { color: #b3261e; font-weight: 600; font-size: .9rem; }
.tk-greet__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.tk-greet__act .btn { flex: 1 1 auto; justify-content: center; }
.tk-greet__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); color: var(--maroon); font-size: 1.4rem; line-height: 1; cursor: pointer; }
[data-theme="dark"] .tk-greet__err { color: #ff9b8f; }

/* greeting page */
.tk-gpage { position: relative; padding-block: clamp(64px, 9vw, 104px) 40px; background: radial-gradient(60% 50% at 50% 30%, rgba(255, 214, 160, .45), transparent 70%), linear-gradient(180deg, #fffaf1, #fdf3e4); }
.tk-gpage .toran { position: absolute; top: 0; left: 0; right: 0; height: clamp(40px, 4.5vw, 62px); }
.tk-gpage__in { display: grid; justify-items: center; gap: 18px; text-align: center; }
.tk-gready { padding: 10px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--gold); color: var(--maroon); font-weight: 600; max-width: 520px; }
.tk-gcard { position: relative; width: min(100%, 460px); padding: 18px 18px 22px; border-radius: 28px; background: linear-gradient(180deg, #fffdf8, #fff3e2);
  border: 1.5px solid rgba(201, 149, 31, .55); box-shadow: 0 30px 60px -30px rgba(122, 21, 40, .45), 0 0 0 6px rgba(255, 255, 255, .6);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overflow: hidden; }
.tk-gcard__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--maroon); margin-bottom: 12px; }
.tk-gcard__brand svg { width: 26px; height: 26px; }
.tk-gcard__art { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; pointer-events: none; }
.tk-gcard__kicker { margin-top: 16px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
html[lang="hi"] .tk-gcard__kicker { letter-spacing: .02em; font-size: .95rem; }
.tk-gcard__msg { margin-top: 6px; font-size: clamp(1.45rem, 5.4vw, 1.9rem); line-height: 1.25; color: var(--maroon); overflow-wrap: anywhere; }
.tk-gcard__msg strong { color: var(--sindoor); }
.tk-gcard__wish { margin-top: 10px; color: var(--muted); }
.tk-gcard__mark { margin-top: 14px; font-size: .78rem; letter-spacing: .12em; color: var(--gold-text); opacity: .8; }
.tk-gshare { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(100%, 460px); }
.tk-gshare .btn { flex: 1 1 160px; justify-content: center; }
.tk-gshare__ok { flex-basis: 100%; color: var(--maroon); font-weight: 600; font-size: .92rem; }
.tk-gempty { color: var(--muted); max-width: 460px; }
.tk-gcta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tk-ginfo { max-width: 760px; display: grid; gap: 14px; }
.tk-ginfo h2 { color: var(--maroon); font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.tk-ginfo__loc { color: var(--muted); font-size: .9rem; }
[data-theme="dark"] .tk-gpage { background: radial-gradient(60% 50% at 50% 30%, rgba(120, 70, 190, .35), transparent 70%), linear-gradient(180deg, #1b1640, #171431); }
[data-theme="dark"] .tk-gcard { background: linear-gradient(180deg, #241d4a, #1d1840); border-color: rgba(246, 205, 122, .4); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
@media (prefers-reduced-motion: reduce) { .tk-greet-fab { transition: none; } }
@media print { .tk-greet-fab, .tk-greet { display: none !important; } }
.tk-ginfo .tk-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tk-ginfo .tk-links a { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--maroon); background: var(--card-2); border: 1px solid var(--line-soft); }
.tk-ginfo .tk-links a:hover { border-color: var(--gold); }
.tk-gshare[hidden], .tk-greet [hidden], .tk-gpage [hidden] { display: none !important; }
.tk-greet .btn, .tk-gpage button.btn { font-family: var(--f-body); font-size: 1rem; font-weight: 700; }
.tk-gcard__from { margin-top: 16px; font-size: clamp(1.05rem, 3.8vw, 1.25rem); font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.tk-gcard__from strong { color: var(--sindoor); font-weight: 700; }
.tk-gcard__from + .tk-gcard__msg { margin-top: 4px; }
.steps h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 8px 0 0; font-size: 1.3rem; color: var(--maroon); }

/* ---------- Nine Devi slider (flex track, no grid) ---------- */
.dslider { position: relative; --dgap: clamp(16px, 2.2vw, 28px); --per: 3; }
.dslider__track { display: flex; flex-wrap: nowrap; gap: var(--dgap); overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  padding: 14px 6px 26px; margin: -14px -6px 0; scroll-padding-inline: 6px; scrollbar-width: none; cursor: grab; }
.dslider__track::-webkit-scrollbar { display: none; }
.dslider__track:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 18px; }
.dslider__track > .devi { flex: 0 0 calc((100% - (var(--per) - 1) * var(--dgap)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.dslider.is-dragging .dslider__track { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.dslider.is-dragging .devi { pointer-events: none; }
.dslider__btn { position: absolute; top: 38%; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--gold); background: var(--card); color: var(--maroon); box-shadow: var(--shadow-lift); cursor: pointer; transition: opacity .25s, transform .2s, background .2s; }
.dslider__btn svg { width: 22px; height: 22px; }
.dslider__btn:hover { background: var(--card-2); transform: scale(1.06); }
.dslider__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dslider__btn[disabled] { opacity: .35; cursor: default; box-shadow: none; transform: none; }
.dslider__btn--prev { left: -24px; }
.dslider__btn--next { right: -24px; }
.dslider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.dslider__dot { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--gold) 40%, transparent); cursor: pointer; transition: width .3s, background .3s; }
.dslider__dot.is-on { width: 26px; background: linear-gradient(90deg, var(--marigold), var(--rani)); }
.dslider__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 1240px) { .dslider__btn--prev { left: 4px; } .dslider__btn--next { right: 4px; } }
@media (max-width: 1023px) { .dslider { --per: 2; } }
@media (max-width: 640px) {
  .dslider { --per: 1; }
  .dslider__track { scroll-padding-inline: 8%; }
  .dslider__track > .devi { flex-basis: 84%; scroll-snap-align: center; }
  .dslider__btn { width: 40px; height: 40px; top: 32%; background: color-mix(in srgb, var(--card) 92%, transparent); }
  .dslider__btn svg { width: 18px; height: 18px; }
  .dslider__btn--prev { left: 2px; } .dslider__btn--next { right: 2px; }
  .dslider__dot { width: 8px; height: 8px; } .dslider__dot.is-on { width: 22px; }
}
@media (prefers-reduced-motion: reduce) { .dslider__track { scroll-behavior: auto; } .dslider__btn, .dslider__dot { transition: none; } }

/* visible route back to the TyoharKosh landing page */
.backhome { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-bottom: 12px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--gold); background: var(--card); color: var(--maroon); font-size: .88rem; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: var(--shadow); transition: background .2s, transform .2s; }
.backhome svg { width: 16px; height: 16px; flex: none; }
.backhome:hover { background: var(--card-2); transform: translateX(-2px); }
.backhome:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero__crumbs { flex-direction: column; align-items: center; }
@media (min-width: 861px) { .hero__crumbs { align-items: flex-start; } }
:target { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { .backhome { transition: none; } }
.site-nav--plain { display: flex !important; position: static !important; box-shadow: none !important; background: none !important; border: 0 !important; padding: 0 !important; flex-direction: row !important; gap: 4px; max-height: none !important; }
