[data-festival="diwali"] {--festival-dark:#34162b;--festival-glow:#653013;--festival-accent:#ffd079;--festival-motion:festival-glow;--festival-speed:4s}
[data-festival="bestu-varas"] {--festival-dark:#37131b;--festival-glow:#783d1a;--festival-accent:#ffdc8b;--festival-motion:festival-rangoli;--festival-speed:8s}
[data-festival="navratri"] {--festival-dark:#261645;--festival-glow:#59215b;--festival-accent:#ffc6ee;--festival-motion:festival-sway;--festival-speed:3.8s}
[data-festival="holi"] {--festival-dark:#35234e;--festival-glow:#16545a;--festival-accent:#ffbedc;--festival-motion:festival-rangoli;--festival-speed:4.6s}
[data-festival="janmashtami"] {--festival-dark:#092c35;--festival-glow:#194258;--festival-accent:#b9efd6;--festival-motion:festival-sway;--festival-speed:6s}
[data-festival="ganesh"] {--festival-dark:#45211d;--festival-glow:#732a3d;--festival-accent:#ffdaad;--festival-motion:festival-glow;--festival-speed:5.2s}
[data-festival="shivratri"] {--festival-dark:#172140;--festival-glow:#37435a;--festival-accent:#ddeaff;--festival-motion:festival-rise;--festival-speed:6.2s}
[data-festival="raksha"] {--festival-dark:#46192f;--festival-glow:#73253c;--festival-accent:#ffd9e6;--festival-motion:festival-rangoli;--festival-speed:6.6s}
[data-festival="uttarayan"] {--festival-dark:#192d49;--festival-glow:#1b4f68;--festival-accent:#ffd5a1;--festival-motion:festival-kite;--festival-speed:5s}
[data-festival="ramnavami"] {--festival-dark:#451d16;--festival-glow:#713322;--festival-accent:#ffe2a2;--festival-motion:festival-rise;--festival-speed:5.6s}

#portal[data-festival] > .top-strip {background:var(--festival-dark);color:var(--festival-accent)}
#portal[data-festival] > .masthead {box-shadow:inset 0 -2px var(--festival-accent)}
[data-home-theme] {
  max-width:1252px;
  margin-inline:auto;
  padding:clamp(9px,1.5vw,16px) 26px;
}
.festival-ribbon {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);
  align-items:center;
  gap:clamp(10px,3vw,28px);
  isolation:isolate;
  overflow:hidden;
  padding:clamp(13px,2vw,23px);
  border-left:4px solid var(--festival-accent);
  border-radius:16px;
  color:#fff;
  background:linear-gradient(115deg,var(--festival-dark) 22%,var(--festival-glow) 100%);
}
.festival-ribbon::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(circle at center,var(--festival-accent) 1px,transparent 1.6px) 0 0/22px 22px;
  opacity:.15;
  mask-image:linear-gradient(to left,#000,transparent 66%);
}
.festival-kicker {display:block;color:var(--festival-accent);font-weight:800;font-size:.74rem;letter-spacing:.08em}
.festival-intro {display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.festival-intro .festival-motif {width:27px;font-size:1rem;box-shadow:none}
.festival-intro .festival-motif::before {inset:-3px;border-width:1px}
.festival-copy strong {display:block;font-size:clamp(1.35rem,3.2vw,2.25rem);line-height:1.35;margin:.22em 0}
.festival-copy p {margin:0;color:#fff;font-size:.96rem;line-height:1.55;overflow-wrap:anywhere}
.festival-visual {
  display:grid;
  place-items:center;
  min-width:0;
  min-height:clamp(120px,16vw,200px);
  border:1px solid #ffffff45;
  border-radius:10px;
  overflow:hidden;
  background:radial-gradient(ellipse at center,#ffffff22 0%,#0002 70%);
}
.festival-visual.is-photo {min-height:0;background:var(--festival-dark)}
.festival-photo {
  display:block;
  width:100%;
  height:clamp(128px,17vw,212px);
  object-fit:contain;
}
.festival-motif {
  position:relative;
  width:clamp(54px,12vw,110px);aspect-ratio:1;
  display:grid;place-items:center;
  border:1px solid var(--festival-accent);border-radius:50%;
  color:var(--festival-accent);
  font-size:clamp(1.6rem,4.5vw,3.3rem);
  box-shadow:inset 0 0 0 6px #ffffff1a;
}
.festival-motif::before {
  content:"";
  position:absolute;
  inset:-5px;
  border:1px dashed currentColor;
  border-radius:50%;
  opacity:.55;
  pointer-events:none;
}
.festival-motif > span {line-height:1}
[data-festival="bestu-varas"] .festival-motif::before {inset:-8px;border:2px dotted currentColor}
[data-festival="holi"] .festival-motif::before {border-color:#ffbedc #98f1e1 #ffda92 #d1bbff}
.festival-motion {
  display:none;
  width:9.2rem;
  max-width:100%;
  min-height:36px;
  margin-top:10px;
  padding:4px 9px;
  background:#0003;
  border:1px solid #fff6;
  color:#fff;
  font-size:.76rem;
}
.festival-motion:hover {background:#0006}
.festival-motion:focus-visible {outline:2px solid var(--festival-accent);outline-offset:3px}

@media (prefers-reduced-motion:no-preference) {
  .festival-motion {display:inline-flex}
  .festival-motif::before {animation:festival-orbit 22s linear infinite}
  .festival-motif > span {animation:var(--festival-motion) var(--festival-speed) ease-in-out infinite}
  .festival-ribbon[data-motion-paused] .festival-motif::before,
  .festival-ribbon[data-motion-paused] .festival-motif > span {animation-play-state:paused}
}
@keyframes festival-orbit {to {transform:rotate(360deg)}}
@keyframes festival-glow {
  0%,100% {transform:scale(.95);opacity:.8}
  50% {transform:scale(1.12);opacity:1}
}
@keyframes festival-rangoli {
  0%,100% {transform:scale(.94) rotate(0)}
  50% {transform:scale(1.13) rotate(38deg)}
}
@keyframes festival-sway {
  0%,100% {transform:translateY(2px) rotate(-10deg)}
  50% {transform:translateY(-4px) rotate(10deg)}
}
@keyframes festival-rise {
  0%,100% {transform:translateY(3px)}
  50% {transform:translateY(-5px)}
}
@keyframes festival-kite {
  0%,100% {transform:translate(-5px,4px) rotate(-11deg)}
  50% {transform:translate(5px,-5px) rotate(12deg)}
}

.theme-admin-grid {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;align-items:start}
.theme-editor fieldset {border:0;margin:0 0 16px;padding:0;min-width:0}
.theme-editor legend {font-weight:800;margin-bottom:9px}
.theme-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.theme-cover-field {border:1px solid #dedfe6;background:#f9f8f7;border-radius:9px;padding:13px;margin-bottom:16px}
.theme-cover-field .field {margin-bottom:7px}
.theme-cover-field input[type=file] {padding:8px;font-size:.88rem}
.theme-cover-field p {margin:0 0 8px;color:#56596a;font-size:.83rem}
.theme-cover-controls {display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;color:#433547;font-size:.83rem}
.theme-cover-controls button {font-size:.8rem;padding:6px 9px}
.theme-choice {
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px;
  border:1px solid #dfdfe7;border-radius:9px;background:#fff;cursor:pointer;min-width:0;
}
.theme-choice:has(input:checked) {border-color:var(--festival-dark);box-shadow:inset 0 0 0 1px var(--festival-dark)}
.theme-choice input {width:auto;margin:0;accent-color:var(--festival-dark)}
.theme-choice-mark {width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:var(--festival-dark);color:var(--festival-accent);font-size:.9rem}
.theme-choice strong {font-size:.89rem;overflow-wrap:anywhere}
.theme-date-note {font-size:.88rem;color:#56596a;line-height:1.6}
.theme-feedback:empty {display:none}
.theme-feedback {color:#781c2d;font-weight:700}
.theme-current-status {display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}
.theme-current-status span {color:#155839;background:#e0f3e9;border-radius:30px;padding:4px 8px}
.theme-preview-panel .festival-ribbon {grid-template-columns:1fr;padding:15px;gap:13px}
.theme-preview-panel .festival-visual {min-height:104px}
.theme-preview-panel .festival-visual .festival-motif {width:60px;font-size:1.65rem}
.theme-preview-panel .festival-photo {height:clamp(104px,12vw,156px)}
.theme-preview-panel .festival-copy strong {font-size:1.35rem}
@media(max-width:860px) {.theme-admin-grid {grid-template-columns:1fr}}
@media(max-width:760px) {[data-home-theme] {padding-inline:16px}}
@media(max-width:560px) {
  .festival-ribbon {grid-template-columns:minmax(0,1fr);gap:12px}
  .festival-visual {min-height:104px}
}
@media(max-width:455px) {.theme-choices {grid-template-columns:repeat(2,minmax(0,1fr))}}
