/* Ganpati.live: ten days of Bappa.
   Palette: shendur (sindoor orange), marigold, durva green, hibiscus red and gold. Day is a bright pandal morning on warm paper;
   night is the indigo of the evening aarti, lit by lamps. */

:root {
  /* names kept from the shared stylesheet: --marigold = main accent, --flame = second accent, --rani = third, --brass = rules */
  --night: #1B1230; --night-2: #261A42; --night-3: #130C24; --violet: #3A2766;
  --marigold: #FF7A3D; --flame: #F4A100; --rani: #5DA34A; --brass: #E8B33A; --ghee: #FFF4E2; --teal: #2E7D32;
  --haldi: #F4A100; --parrot: #5DA34A; --mirror: #FFF4E2; --kumkum: #C8102E; --shendur: #E2471B; --durva: #2E7D32;
  --bg: #1B1230; --surface: #261A42; --surface-2: #31224F; --ink: #FFF4E2; --ink-2: #F2DCC0; --ink-3: #C2A88E;
  --line: rgba(244, 161, 0, .22); --link: #FFC233; --focus: #FFC233;
  --radius-s: 6px; --radius: 14px; --radius-l: 24px;
  --wrap: 1200px; --measure: 68ch;
  --shadow: 0 18px 40px -18px rgba(8, 4, 20, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
[data-theme="day"] {
  --bg: #FFF6EA; --surface: #FFFFFF; --surface-2: #FDE8D0; --ink: #2B1407; --ink-2: #5A3016; --ink-3: #87583A;
  --line: rgba(43, 20, 7, .14); --link: #B8300F; --focus: #B8300F; --marigold: #D2401A; --flame: #B8300F;
  --shadow: 0 18px 40px -24px rgba(120, 40, 10, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.125rem/1.68 var(--font-body); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, picture { max-width: 100%; display: block; }
picture img { width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
.sr { position: absolute !important; 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(--marigold); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-3); font-size: .9rem; }
.pill { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 99px; background: rgba(244, 161, 0, .16); color: var(--marigold); vertical-align: middle; }
[data-theme="day"] .pill { color: #8a4b00; }
.test-ribbon { position: fixed; z-index: 90; left: -40px; bottom: 22px; transform: rotate(45deg); background: var(--rani); color: #fff; font: 700 12px/1 system-ui; letter-spacing: .1em; padding: 6px 44px; pointer-events: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); margin: .2em 0 .25em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin: 1.6em 0 .45em; }
h3 { font-size: 1.35rem; margin: 1.4em 0 .4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; border: 0; cursor: pointer; text-decoration: none;
  background: var(--marigold); color: #1B1340; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95em 1.35em; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .25s, background .2s;
  box-shadow: 0 0 0 0 rgba(244, 161, 0, 0);
}
.btn:hover { background: #FFB443; box-shadow: 0 0 26px 2px rgba(244, 161, 0, .35); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: rgba(244, 161, 0, .1); box-shadow: inset 0 0 0 1.5px var(--marigold); }
.btn-small { padding: .7em 1.05em; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-3); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bar { display: flex; align-items: center; gap: 18px; width: min(1320px, 100% - 28px); margin: 0 auto; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; margin: -6px -4px 0 -6px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font-family: "Rozha One", var(--font-display); font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; }
.brand-word span { color: var(--marigold); font-size: .62em; margin-left: 1px; }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; justify-content: center; }
.nav-group { position: relative; }
.nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: 8px; cursor: pointer; }
.nav-btn svg { width: 10px; height: 10px; opacity: .7; transition: transform .2s; }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { background: rgba(244, 161, 0, .1); color: var(--marigold); }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease); }
.nav-group.open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .98rem; }
.nav-panel a:hover { background: rgba(244, 161, 0, .12); color: var(--marigold); }
.nav-lead { font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0 !important; margin-bottom: 4px; }
.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tool { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink); padding: 9px; border-radius: 10px; cursor: pointer; }
.tool svg { width: 22px; height: 22px; }
.tool:hover { background: rgba(244, 161, 0, .12); color: var(--marigold); }
.lang-btn span { font-size: .95rem; }
.music-btn[aria-pressed="true"] { color: var(--marigold); }
.music-btn[aria-pressed="true"] svg { animation: bob 1.6s ease-in-out infinite; }
.menu-btn { display: none; }
.lang-panel { width: min(1320px, 100% - 28px); margin: 0 auto 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.lang-panel[hidden] { display: none; }
.lang-title { margin: 0 0 8px; color: var(--ink-3); font-size: .9rem; }
.lang-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.lang-panel a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.lang-panel a b { font-size: 1.15rem; font-weight: 600; }
.lang-panel a span { font-size: .8rem; color: var(--ink-3); }
.lang-panel a:hover { border-color: var(--line); background: var(--surface-2); }
.lang-panel a[aria-current] { border-color: var(--marigold); }
.notice-translate { width: min(var(--wrap), 100% - 40px); margin: 16px auto 0; padding: 10px 14px; border-radius: 10px; background: rgba(244, 161, 0, .1); border: 1px solid rgba(244, 161, 0, .3); font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate;
  background: radial-gradient(1100px 520px at 70% 115%, rgba(226, 71, 27, .22), transparent 60%), radial-gradient(800px 420px at 12% 0%, rgba(58, 39, 102, .55), transparent 70%), var(--night); }
[data-theme="day"] .hero { background: radial-gradient(1100px 520px at 70% 115%, rgba(226, 71, 27, .28), transparent 60%), radial-gradient(800px 420px at 12% 0%, rgba(58, 39, 102, .65), transparent 70%), var(--night); color: var(--ghee); }
[data-theme="day"] .hero .hero-title, [data-theme="day"] .hero .hero-line, [data-theme="day"] .hero .btn-ghost, [data-theme="day"] .hero .countdown { color: var(--ghee); }
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1.3px 1.3px at 12% 22%, #fff8 50%, transparent 52%), radial-gradient(1px 1px at 32% 12%, #fff6 50%, transparent 52%), radial-gradient(1.4px 1.4px at 58% 30%, #fff7 50%, transparent 52%), radial-gradient(1px 1px at 82% 16%, #fff8 50%, transparent 52%), radial-gradient(1px 1px at 44% 48%, #fff4 50%, transparent 52%), radial-gradient(1.2px 1.2px at 8% 58%, #fff5 50%, transparent 52%), radial-gradient(1px 1px at 92% 52%, #fff6 50%, transparent 52%); animation: twinkle 6s ease-in-out infinite alternate; }
.hero-rangoli { position: absolute; right: -8vw; top: 50%; width: min(54vw, 720px); translate: 0 -52%; opacity: .26; animation: spin 140s linear infinite; }
.hero-rangoli svg { width: 100%; height: auto; }
.hero-rangoli::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(27, 18, 48, .0), rgba(27, 18, 48, .0)); }
.hang { position: absolute; top: -16px; transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
.hang svg { width: 100%; height: auto; }
.hang-1 { right: 12%; width: clamp(120px, 14vw, 210px); top: 10px; }
.hang-2 { right: 27%; width: clamp(70px, 8vw, 120px); top: -60px; animation-duration: 8.5s; animation-delay: -2s; }
.hang-3 { right: 1%; width: clamp(60px, 6vw, 96px); top: -40px; animation-duration: 6.2s; animation-delay: -4s; }
.hang .glow { animation: pulse 3.2s ease-in-out infinite; }
.hero-copy { width: min(var(--wrap), 100% - 40px); margin: 0 auto; align-self: center; padding: clamp(40px, 8vh, 90px) 0 20px; }
.hero-title { font-family: var(--font-display); font-size: clamp(5rem, 2.5rem + 13vw, 13.5rem); line-height: .86; margin: 0; letter-spacing: -.02em;
  background: linear-gradient(180deg, #FFF4E2 30%, #FFD07A 70%, #F4A100 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 32px rgba(244, 161, 0, .18)); }
.hero-line { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); max-width: 34ch; color: var(--ink-2); margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.diya-row { list-style: none; margin: 0; padding: 0 2vw 10px; display: grid; grid-template-columns: repeat(9, 1fr); align-items: end; position: relative; }
.diya-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); opacity: .6; }
.diya-row li:nth-child(odd) { transform: translateY(-6px); }
.diya-btn { border: 0; background: none; padding: 0; cursor: pointer; width: 100%; max-width: 150px; margin: 0 auto; display: block; border-radius: 50%; }
.diya-btn svg { width: 100%; height: auto; overflow: visible; }
.diya-btn .flame { opacity: 0; transform: scale(.2); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.diya-btn.lit .flame { opacity: 1; transform: none; animation: flicker 2.6s ease-in-out infinite; }
.diya-btn:hover .flame { opacity: .45; transform: scale(.7); }
.diya-btn.lit:hover .flame { opacity: 1; transform: scale(1.06); }
.no-js .diya-btn .flame { opacity: 1; transform: none; }

/* flame flicker anywhere */
.flame { transform-box: fill-box; transform-origin: 50% 100%; filter: drop-shadow(0 0 6px rgba(255, 190, 80, .9)) drop-shadow(0 0 18px rgba(255, 120, 40, .55)); }
.flame .glow { display: none; }
.art .flame, .brand-mark .flame, .day-art .flame, .page-head-art .flame { animation: flicker 2.8s ease-in-out infinite; }
.float { animation: float 5s ease-in-out infinite; transform-box: fill-box; }
.twinkle { animation: twinkle 2.4s ease-in-out infinite alternate; }
.sway { animation: sway 5s ease-in-out infinite; transform-box: view-box; }
.burst { transform-box: fill-box; transform-origin: center; animation: burst 3.8s var(--ease) infinite; }
.draw path, .draw circle { stroke-dasharray: 260; stroke-dashoffset: 0; }
.js .draw-on .draw path { stroke-dashoffset: 260; transition: stroke-dashoffset 2.6s var(--ease); }
.js .draw-on.in .draw path { stroke-dashoffset: 0; }

/* ---------- Countdown ---------- */
.countdown { margin: 0; }
.countdown-label { margin: 0 0 10px; color: var(--ink-2); font-size: 1rem; }
.countdown-units { display: flex; gap: clamp(10px, 2vw, 22px); }
.countdown-units span { display: grid; justify-items: start; }
.countdown-units b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); line-height: 1; color: var(--marigold); font-variant-numeric: tabular-nums; min-width: 2ch; }
.countdown-units i { font-style: normal; font-size: .85rem; color: var(--ink-3); }
.countdown-today { font-family: var(--font-display); font-size: 2rem; color: var(--marigold); margin: 0; }
.dates-count { margin: 10px 0 34px; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: inline-block; }

/* ---------- Sections ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .3em; }
.section-sub { color: var(--ink-2); max-width: 60ch; margin-top: 0; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding: clamp(50px, 8vw, 100px) 0 20px; align-items: start; }
.lead-prose > p:first-child { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-size: .95rem; }
.facts dd { margin: 0; font-weight: 500; }

.five-days { padding: 40px 0 30px; }
.day-line { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: d; }
.day-line::before { content: ""; position: absolute; left: 10%; right: 10%; top: 62px; height: 2px; background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 12px); opacity: .55; }
.day-line a { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 12px 18px; text-decoration: none; color: var(--ink); position: relative; }
.day-art { width: 120px; height: 120px; display: block; transition: transform .35s var(--ease); background: var(--bg); border-radius: 50%; padding: 6px; }
.day-art svg { width: 100%; height: 100%; }
.day-line a:hover .day-art { transform: translateY(-6px) rotate(-3deg); }
.day-n { font-size: .82rem; color: var(--marigold); margin-top: 6px; }
.day-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }
.day-line time { font-size: .9rem; color: var(--ink-2); }
.day-text { font-size: .92rem; color: var(--ink-3); line-height: 1.45; }

.guides { padding: 30px 0; }
.guide-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-mosaic .card-feature { grid-row: span 2; }

.kitchen { margin: 50px 0; padding: 60px 0 70px; background: linear-gradient(180deg, transparent, rgba(244, 161, 0, .07) 18%, rgba(214, 36, 110, .07) 82%, transparent); }
.recipe-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.recipe-strip .card { scroll-snap-align: start; }

.places { padding: 20px 0 40px; }
.place-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.place-card { display: grid; grid-template-columns: 140px 1fr; grid-template-rows: auto 1fr; column-gap: 22px; align-items: center; padding: 26px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .3s var(--ease); }
.place-card:hover { border-color: var(--marigold); transform: translateY(-3px); }
.place-art { grid-row: span 2; width: 140px; }
.place-title { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; align-self: end; }
.place-text { color: var(--ink-2); font-size: .98rem; align-self: start; margin-top: 6px; }
.journal { padding: 30px 0 60px; }

.letter-band { background: var(--night-3); color: var(--ghee); padding: 64px 0; border-top: 1px solid var(--line); }
.letter-band h2 { color: var(--ghee); margin-top: 0; }
.letter-band p { color: #F2DCC0; }
.letter-inner { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; max-width: 880px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 18px 0; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(244, 161, 0, .6); }
.card-media { display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 70%, rgba(244, 161, 0, .16), transparent 65%), var(--surface-2); overflow: hidden; }
.card-media .art { width: 52%; }
.card-media picture, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.card-title { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.18; }
.card-text { color: var(--ink-2); font-size: .96rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--ink-3); font-size: .85rem; margin-top: auto; }
.card-recipe .card-media { aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 60%, rgba(214, 36, 110, .16), transparent 62%), var(--surface-2); }
.card-recipe .card-media .art { width: 66%; }
.card-feature .card-media { aspect-ratio: auto; flex: 1; min-height: 240px; }
.card-feature .card-title { font-size: 1.8rem; }
.card-wide { display: grid; grid-template-columns: 1.1fr 1fr; }
.card-wide .card-body { padding: 34px; justify-content: center; }
.card-wide .card-text { -webkit-line-clamp: 5; font-size: 1.05rem; }

/* ---------- Page head ---------- */
.page-head { position: relative; padding: clamp(36px, 6vw, 70px) 0 clamp(26px, 4vw, 46px); border-bottom: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(700px 300px at 88% 20%, rgba(244, 161, 0, .12), transparent 70%); }
.page-head-inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(140px, 22vw, 280px); gap: 30px; align-items: center; }
.page-head-art { justify-self: end; width: 100%; }
.page-head-art .art svg, .page-head-art picture { width: 100%; }
.page-head-art picture img { border-radius: var(--radius-l); aspect-ratio: 4 / 3; object-fit: cover; }
.page-head-art .art-rangoli svg { animation: spin 90s linear infinite; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--marigold); }
.crumbs a + a::before { content: "/"; margin-right: 6px; opacity: .5; }
.page-summary { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 58ch; margin: 0; }
.byline { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-3); font-size: .92rem; margin: 18px 0 0; }
.read-progress { position: sticky; top: 70px; z-index: 30; height: 3px; }
.read-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rani), var(--flame), var(--marigold)); box-shadow: 0 0 10px var(--flame); }

/* ---------- Prose ---------- */
.page-body { padding: clamp(30px, 5vw, 56px) 0; }
.page-body.has-aside { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(240px, 300px); gap: clamp(30px, 5vw, 70px); justify-content: space-between; }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--marigold); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--marigold); font-size: 1.2rem; color: var(--ink-2); font-style: italic; }
.prose hr { border: 0; height: 26px; margin: 2em 0; background: radial-gradient(circle, var(--marigold) 3px, transparent 4px) center / 26px 26px repeat-x; opacity: .6; }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .9rem; color: var(--ink-3); margin-top: 8px; }
.prose .art { display: block; max-width: 220px; margin: 1.4em auto; }
.intro-prose { padding: 26px 0 6px; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; padding: 14px 16px 6px; color: var(--ink-3); font-size: .9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 700; font-size: .92rem; color: var(--ink-2); background: var(--surface); }
tbody tr:last-child > * { border-bottom: 0; }
tr.is-main { background: rgba(244, 161, 0, .1); }
tr.is-main th { color: var(--marigold); }
.table-note { padding: 0 16px 14px; margin: 8px 0 0; color: var(--ink-3); font-size: .88rem; }
.callout { margin: 1.8em 0; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 6px; }
.callout-tip { border-left: 4px solid var(--marigold); }
.callout-note { border-left: 4px solid var(--teal); }
.callout-warning { border-left: 4px solid var(--rani); background: color-mix(in srgb, var(--rani) 9%, var(--surface)); }
.callout-facts { background: linear-gradient(135deg, rgba(244, 161, 0, .12), rgba(214, 36, 110, .08)); }
.callout-story { font-size: 1.08rem; border: 0; background: transparent; padding-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }

.aside { position: relative; }
.aside > * + * { margin-top: 22px; }
.facts-box, .toc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.toc { position: static; }
.facts-box h2, .toc h2 { font-size: 1.2rem; margin: 0 0 10px; }
.facts-box dl { margin: 0; }
.facts-box dt { font-size: .82rem; color: var(--ink-3); margin-top: 10px; }
.facts-box dd { margin: 2px 0 0; font-weight: 500; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .95rem; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--marigold); }

.page-faq { margin-top: 3em; }
.faq-list { display: grid; gap: 10px; max-width: var(--measure); }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; margin-top: 8px; border-right: 2px solid var(--marigold); border-bottom: 2px solid var(--marigold); transform: rotate(45deg); transition: transform .25s; }
.faq[open] summary::after { transform: rotate(225deg); }
.faq-a { padding: 0 20px 16px; color: var(--ink-2); }
.faq-a p { margin: 0 0 .6em; color: var(--ink-2); }

.related { margin: 40px 0 10px; }
.related h2 { margin-top: 0; }
.children { padding-bottom: 20px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 50px; color: var(--ink-3); font-size: .95rem; }
.share-btn { border: 1px solid var(--line); background: none; border-radius: 99px; padding: 7px 14px; color: var(--ink); text-decoration: none; font-size: .9rem; cursor: pointer; }
.share-btn:hover { border-color: var(--marigold); color: var(--marigold); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.tags span { font-size: .85rem; padding: 4px 12px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }

/* recipe */
.recipe-layout { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, var(--measure)); gap: clamp(30px, 5vw, 64px); align-items: start; }
.recipe-card { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; }
.recipe-card h2 { font-size: 1.4rem; margin: 18px 0 8px; }
.recipe-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.recipe-meta dt { font-size: .8rem; color: var(--ink-3); }
.recipe-meta dd { margin: 0; font-weight: 600; }
.ingredients { list-style: none; padding: 0; margin: 0 0 18px; }
.ingredients li { border-bottom: 1px dashed var(--line); }
.ingredients label { display: flex; gap: 10px; padding: 9px 0; cursor: pointer; font-size: .98rem; line-height: 1.4; }
.ingredients input { accent-color: var(--marigold); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.ingredients input:checked + span { text-decoration: line-through; opacity: .55; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 58px; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--marigold); font-family: var(--font-display); font-size: 1.3rem; border: 1px solid var(--line); }
.recipe-group h2 { margin-top: 1em; }

/* dates */
.dates-page { padding-top: 34px; padding-bottom: 20px; }
.dates-page .prose { margin-top: 30px; }
.dates-table { max-width: 860px; }
.year-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.year-nav a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); }
.year-nav a:hover { border-color: var(--marigold); color: var(--marigold); }

/* gallery */
.gallery { columns: 3 280px; column-gap: 18px; padding: 20px 0 60px; }
.g-item { break-inside: avoid; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.g-media { display: grid; place-items: center; padding: 26px; background: radial-gradient(circle at 50% 65%, rgba(244, 161, 0, .18), transparent 70%), var(--surface-2); }
.g-media svg { width: 70%; height: auto; }
.g-l .g-media { padding: 40px 20px; }
.g-l .g-media svg { width: 92%; }
.g-item figcaption { padding: 14px 18px 18px; display: grid; gap: 4px; font-size: .96rem; color: var(--ink-2); }
.g-item figcaption b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); }
.g-open { border: 0; padding: 0; background: none; display: block; width: 100%; cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
.lightbox::backdrop { background: rgba(10, 6, 26, .88); }
.lb-close { position: absolute; right: 8px; top: 4px; z-index: 2; border: 0; background: rgba(0, 0, 0, .5); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-body img { max-height: 86vh; width: auto; border-radius: 10px; }

/* forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-form { display: grid; gap: 6px; }
.contact-form label { font-weight: 600; font-size: .95rem; margin-top: 8px; }
input[type="text"], input[type="email"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(244, 161, 0, .25); }
.contact-form .btn { justify-self: start; margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: flex; gap: 10px; align-items: center; }
.captcha-row { margin-top: 10px; flex-wrap: wrap; }
.captcha-row label { color: var(--ink-2); font-size: .95rem; white-space: nowrap; }
.captcha-row input { width: 5.5em; flex: 0 0 auto; }
.captcha-q { font-variant-numeric: tabular-nums; }
.form-msg { min-height: 1.4em; margin: 8px 0 0; font-size: .95rem; }
.form-msg.ok { color: #7ee2a8; }
.form-msg.err { color: #ff9db9; }
[data-theme="day"] .form-msg.ok { color: #1f7a48; }
[data-theme="day"] .form-msg.err { color: #b0173f; }
.form-fine { font-size: .85rem; color: var(--ink-3); margin: 6px 0 0; }
.form-title { font-weight: 700; margin: 0 0 8px; }
.newsletter-form.is-compact input[type="email"] { background: rgba(255, 255, 255, .06); }
.letter-band input[type="email"], .letter-band input[type="text"] { background: rgba(255, 255, 255, .07); color: var(--ghee); border-color: rgba(232, 179, 58, .35); }
.letter-band .captcha-row label { color: #F2DCC0; }
.search-form { display: flex; gap: 10px; max-width: 620px; margin: 10px 0 24px; }
.empty { color: var(--ink-3); }

/* sitemap, 404 */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 40px; padding: 30px 0 60px; }
.sitemap-grid h2 { font-size: 1.4rem; }
.sitemap-grid ul { padding-left: 1.1em; margin: 0; }
.not-found { text-align: center; padding: 70px 0 90px; display: grid; justify-items: center; }
.nf-art { width: 180px; }
.not-found .search-form { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-3); color: #F2DCC0; padding: 0 0 26px; margin-top: 40px; position: relative; }
.site-footer a { color: #FFF4E2; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); text-decoration: underline; }
.footer-toran { height: 64px; overflow: hidden; transform: translateY(-20px); }
.footer-toran svg { width: 100%; height: 90px; }
.footer-grid { width: min(var(--wrap), 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
.footer-about p { font-size: .98rem; max-width: 40ch; }
.brand-foot { color: var(--ghee) !important; }
.footer-col h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--marigold); margin: 8px 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .95rem; }
.footer-langs { width: min(var(--wrap), 100% - 40px); margin: 34px auto 0; padding: 18px 0; border-top: 1px solid rgba(232, 179, 58, .22); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .98rem; }
.footer-base { width: min(var(--wrap), 100% - 40px); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; color: #C2A88E; }
.footer-base p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal a { color: #C2A88E; }
.site-footer .newsletter-form input { color: var(--ghee); border-color: rgba(232, 179, 58, .35); }
.site-footer .captcha-row label { color: #F2DCC0; }

/* consent, fx, to-top */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; font-size: .95rem; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--marigold); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.to-top svg { width: 22px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.consent:not([hidden]) ~ .to-top { bottom: 120px; }

/* ---------- Motion ---------- */
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(0); } 20% { transform: scale(.96, 1.05) rotate(-2deg); } 45% { transform: scale(1.03, .96) rotate(1.5deg); } 70% { transform: scale(.98, 1.04) rotate(-1deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes pulse { 0%, 100% { opacity: .12; } 50% { opacity: .32; } }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes burst { 0% { transform: scale(.3); opacity: 0; } 25% { opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.08); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .diya-btn .flame { opacity: 1; transform: none; }
  .js .draw-on .draw path { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .main-nav { position: fixed; inset: 70px 0 0 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 40px; opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .nav-btn { width: 100%; justify-content: space-between; font-size: 1.15rem; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-panel { position: static; translate: none; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: none; padding: 4px 0 10px 10px; }
  .nav-group.open .nav-panel { display: block; }
  .lang-btn span { display: none; }
  .home-intro, .page-body.has-aside, .contact-layout, .recipe-layout { grid-template-columns: 1fr; }
  .recipe-card, .facts-box { position: static; }
  .day-line { grid-template-columns: 1fr; gap: 6px; }
  .day-line::before { left: 59px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--brass) 0 6px, transparent 6px 12px); }
  .day-line a { grid-template-columns: 120px 1fr; grid-template-rows: auto auto auto 1fr; justify-items: start; text-align: left; column-gap: 18px; padding: 0 0 14px; }
  .day-art { grid-row: 1 / span 4; }
  .guide-mosaic { grid-template-columns: 1fr 1fr; }
  .place-pair { grid-template-columns: 1fr; }
  .card-wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .bar { gap: 6px; min-height: 62px; }
  .main-nav { inset: 62px 0 0 0; }
  .brand-word { font-size: 1.45rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: 88vh; }
  .diya-row { grid-template-columns: repeat(5, 1fr); }
  .diya-row li:nth-child(n+6) { display: none; }
  .hang-2 { display: none; }
  .guide-mosaic { grid-template-columns: 1fr; }
  .page-head-inner { grid-template-columns: 1fr 96px; gap: 14px; }
  .place-card { grid-template-columns: 90px 1fr; padding: 18px; }
  .place-art { width: 90px; }
  .letter-inner { grid-template-columns: 1fr; }
  .letter-art { width: 110px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row:not(.captcha-row) { flex-direction: column; align-items: stretch; }
  .search-form { flex-direction: column; }
  .countdown-units b { font-size: 2rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .share, .related, .consent, .to-top, .fx, .page-head-art, .recipe-card .btn, .read-progress, .test-ribbon { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-head { border: 0; padding: 0; }
  .recipe-layout, .page-body.has-aside { display: block; }
  .recipe-card { position: static; border: 1px solid #999; }
  a { color: #000; }
  h1, h2, h3 { color: #000; }
}



/* ================= Ganpati.live theme ================= */
h1, h2, h3 { font-weight: 400; }
.brand-word { font-family: var(--font-display); font-weight: 400; }
.brand-word span { color: var(--flame); }
[data-theme="day"] .brand-word span { color: #C47A00; }
.brand-mark { width: 44px; height: 44px; margin: -8px -2px 0 -6px; }
.btn { background: var(--shendur); color: #fff; border-radius: 999px; font-weight: 600; }
.btn:hover { background: #B8300F; box-shadow: 0 0 0 4px rgba(226, 71, 27, .25); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--haldi); }
.btn-ghost:hover { background: rgba(244, 161, 0, .14); color: var(--ink); }
[data-theme="day"] .btn-ghost { box-shadow: inset 0 0 0 2px var(--shendur); }
.pill { background: rgba(244, 161, 0, .18); color: var(--haldi); }
[data-theme="day"] .pill { background: rgba(226, 71, 27, .1); color: #8A2A0A; }
.site-footer { background: var(--night-3); }
[data-theme="day"] .site-footer { background: #FBE3C6; }
.footer-toran { height: 72px; transform: none; }
.sway { animation: sway 4s ease-in-out infinite; transform-box: view-box; }
.card-media { background: radial-gradient(circle at 50% 62%, rgba(244, 161, 0, .3), transparent 62%), var(--surface-2); }
[data-theme="day"] .card-media { background: radial-gradient(circle at 50% 62%, rgba(244, 161, 0, .32), transparent 62%), var(--surface-2); }
.page-head { background: radial-gradient(ellipse at 80% 0%, rgba(226, 71, 27, .32), transparent 60%); }
[data-theme="day"] .page-head { background: radial-gradient(ellipse at 80% 0%, rgba(244, 161, 0, .3), transparent 60%); }
.kitchen { margin: 30px 0; padding: 50px 0; background: linear-gradient(180deg, transparent, rgba(244, 161, 0, .1) 25%, rgba(244, 161, 0, .1) 75%, transparent); }
.recipe-strip { grid-auto-columns: minmax(200px, 1fr); }
.letter-band { background: #2A1330; }
[data-theme="day"] .letter-band { background: #B8300F; }
.stories-band { padding: 46px 0; margin: 20px 0; background: radial-gradient(ellipse at 20% 0%, rgba(93, 163, 74, .18), transparent 60%), var(--surface-2); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- Hero: Bappa in a makhar arch, the ten days along the arch, a plate for 21 modaks ---- */
.g-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 5vh, 60px) 0 clamp(30px, 5vh, 56px);
  background: radial-gradient(circle at 72% 46%, #4A2A2A 0%, #1B1230 62%); }
[data-theme="day"] .g-hero { background: radial-gradient(circle at 72% 46%, #FFD9A8 0%, #FFF6EA 62%); }
.g-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; pointer-events: none;
  background-image: radial-gradient(circle, rgba(244, 161, 0, .9) 1.4px, transparent 1.6px); background-size: 28px 28px; }
.g-inner { width: min(var(--wrap), 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.g-title { font-family: var(--font-display); font-size: clamp(2.6rem, 1.2rem + 3.8vw, 4.6rem); line-height: 1.02; margin: 0; color: var(--ink); }
.g-title span { display: block; font-size: .72em; line-height: 1.1; color: var(--flame); margin-top: .08em; }
[data-theme="day"] .g-title span { color: var(--shendur); }
.g-line { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 38ch; margin: 18px 0 22px; color: var(--ink-2); }
.g-next { display: inline-grid; padding: 14px 18px; border-radius: var(--radius); background: rgba(19, 12, 36, .55); border: 1px solid var(--line); }
[data-theme="day"] .g-next { background: rgba(255, 255, 255, .85); }
.g-next .countdown-label { margin: 0; color: var(--ink); }
.g-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.step-panel { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--shendur); min-height: 118px; }
.step-panel .sp-label { font-size: .85rem; color: var(--ink-3); margin: 0; }
.step-panel .sp-title { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; margin: 2px 0 4px; color: var(--flame); }
[data-theme="day"] .step-panel .sp-title { color: var(--shendur); }
.step-panel .sp-text { margin: 0 0 6px; color: var(--ink-2); }

.darbar { --size: min(540px, 88vw); position: relative; width: var(--size); aspect-ratio: 1 / 1.04; margin: 0 auto; }
.darbar-halo { position: absolute; left: 50%; top: 46%; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 161, 0, .38), rgba(244, 161, 0, 0) 68%); animation: pulse 5s ease-in-out infinite; }
.darbar-arch { position: absolute; left: 50%; top: 4%; width: 78%; translate: -50% 0; }
.darbar-arch svg, .darbar-bappa svg, .darbar-mushak svg { width: 100%; height: auto; display: block; overflow: visible; }
.darbar-bappa { position: absolute; left: 50%; top: 14%; width: 58%; translate: -50% 0; transition: transform .4s var(--ease); }
.darbar.blessed .darbar-bappa { animation: nod 1.2s var(--ease); }
.darbar-mushak { position: absolute; left: 8%; bottom: 3%; width: 20%; }
.darbar-plate { position: absolute; left: 50%; bottom: 2%; width: 46%; translate: -50% 0; text-align: center; }
.plate-modaks { position: relative; height: 70px; border-radius: 50%; background: radial-gradient(ellipse at 50% 70%, #E8B33A 0 58%, #B9861E 59% 63%, transparent 64%); }
.plate-modaks .pm { position: absolute; width: 26px; translate: -50% 0; animation: drop .45s var(--ease) both; }
.plate-modaks .pm svg { width: 100%; height: auto; }
.plate-count { margin: 4px 0 0; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.g-steps { list-style: none; margin: 0; padding: 0; position: absolute; left: 50%; top: 47%; width: 0; height: 0; }
.g-steps li { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateY(calc(var(--size) * -.47)) rotate(calc(-1 * var(--a))); translate: -50% -50%; }
.step-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--haldi); background: rgba(19, 12, 36, .78); color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
[data-theme="day"] .step-btn { background: #fff; border-color: var(--shendur); color: var(--ink); }
.step-btn:hover { transform: scale(1.12); }
.step-btn[aria-pressed="true"] { background: var(--shendur); border-color: var(--shendur); color: #fff; }

.ten-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ten-grid li { min-width: 0; }
.ten-grid a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; transition: transform .2s var(--ease), border-color .2s; }
.ten-grid a:hover { transform: translateY(-3px); border-color: var(--flame); }
.ten-grid .tg-n { grid-row: span 2; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--flame); min-width: 1.2em; }
[data-theme="day"] .ten-grid .tg-n { color: var(--shendur); }
.ten-grid .tg-art { width: 46px; height: 46px; }
.ten-grid .tg-art svg { width: 100%; height: 100%; }
.ten-grid .tg-name { grid-column: 2; font-size: .95rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }

.year-strip { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.year-strip a { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease); }
.year-strip a:hover { transform: translateY(-3px); border-color: var(--flame); }
.year-strip .ys-year { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--flame); }
[data-theme="day"] .year-strip .ys-year { color: var(--shendur); }
.year-strip .ys-date { font-weight: 600; }
.year-strip .ys-sub { font-size: .9rem; color: var(--ink-3); }
.year-strip li.is-next a { border: 2px solid var(--shendur); }

@keyframes nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg) translateY(2px); } 60% { transform: rotate(2deg); } }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flicker { from { transform: scale(1) translateY(0); } to { transform: scale(1.08, .94) translateY(1px); } }

@media (max-width: 1080px) { .ten-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .g-inner { grid-template-columns: 1fr; } .year-strip { grid-template-columns: repeat(3, 1fr); } .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .darbar { --size: min(380px, 80vw); }
  .step-btn { width: 34px; height: 34px; font-size: .95rem; }
  .plate-modaks { height: 54px; } .plate-modaks .pm { width: 20px; }
  .year-strip { grid-template-columns: 1fr 1fr; }
  .ten-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .darbar-halo, .sway, .plate-modaks .pm, .darbar.blessed .darbar-bappa { animation: none; } }

/* Small phones: long words in any language wrap; decorative header art steps aside */
.page-head h1, .page-head-copy { overflow-wrap: anywhere; }
@media (max-width: 420px) { .page-head-art { display: none; } }
