/* srilalithagni.org */

:root {
  --navy: #12305a;
  --navy-deep: #0b2142;
  --gold: #9f7226;
  --gold-light: #d9bb7f;
  --gold-pale: #f2e5c6;
  --kumkum: #b23a22;
  --paper: #f8f1e3;
  --paper-2: #f0e4cc;
  --card: #fffaf1;
  --ink: #1f2430;
  --ink-soft: #4b4a50;
  --muted: #7b7365;
  --rule: #e0cfac;
  --on-dark: #efe3c6;
  --on-dark-soft: #bcae8e;
  --ok: #2e7a4c;
  --ok-bg: #e8f3ec;
  --err: #a93626;
  --err-bg: #fae9e6;

  --serif: "Martel", Georgia, "Times New Roman", serif;
  --sans: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;

  --wrap: 1180px;
  --header-h: 78px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .1 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
}

p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.sr-only {
  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;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* icons */

.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.li {
  flex: none;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font: 700 0.95rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn .i {
  transition: transform 0.2s;
}

.btn:hover .i-go {
  transform: translateX(3px);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-deep);
}

.btn-line {
  background: rgba(255, 250, 241, 0.75);
  border-color: var(--navy);
  color: var(--navy);
}

.btn-line:hover {
  background: var(--card);
}

.btn-gold {
  background: #e2c486;
  border-color: #c9a35a;
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: #ead09a;
}

.btn-quiet {
  background: transparent;
  border-color: var(--rule);
  color: var(--navy);
}

.btn-quiet:hover {
  border-color: var(--gold);
  background: var(--card);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.more:hover {
  text-decoration-color: var(--navy);
}

.more .i {
  width: 15px;
  height: 15px;
}

.hand {
  font-family: var(--hand);
  font-weight: 400;
}

/* temple details: red and white wall stripes, kolam borders */

.kaavi {
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--kumkum) 0 16px, #f6ecdc 16px 32px);
}

.kolam {
  height: 40px;
  background: url("../../images/art/kolam-gold.svg") repeat-x center / auto 40px;
  opacity: 0.75;
}

.kolam-cream {
  background-image: url("../../images/art/kolam-cream.svg");
  opacity: 0.5;
}

/* top bar */

.topbar {
  background: var(--navy-deep);
  color: var(--on-dark);
  font-size: 0.84rem;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-dark-soft);
}

.status.is-open::before {
  background: #6fcf8f;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-right > a {
  text-decoration: none;
}

.socials {
  display: flex;
  gap: 4px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.socials a:hover {
  background: rgba(239, 227, 198, 0.14);
}

.socials .i {
  width: 16px;
  height: 16px;
}

/* header */

.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: rgba(248, 241, 227, 0.97);
  border-bottom: 1px solid var(--rule);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
}

.brand-name small {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 11px;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
}

.nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--kumkum);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav .nav-donate {
  margin-left: 10px;
  padding: 10px 18px;
  color: #fff;
}

.nav .nav-donate:hover {
  color: #fff;
}

.menu-btn {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.menu-btn .i {
  width: 22px;
  height: 22px;
}

/* hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(480px, 54vw, 640px);
  overflow: hidden;
  text-align: center;
  background: #e7ad66;
}

.hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 42% 48% at 50% 50%,
    rgba(255, 248, 230, 0.86),
    rgba(255, 246, 224, 0.5) 50%,
    rgba(255, 240, 210, 0) 78%
  );
}

.hero-text {
  max-width: 760px;
  padding-block: 72px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy-deep);
}

.hero .sanskrit {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--navy);
}

.hero .gloss {
  margin-top: 4px;
  font-size: 0.95rem;
  font-style: italic;
  color: #5d4220;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* today strip */

.today {
  background: var(--navy);
  color: var(--on-dark);
}

.today .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 32px;
  padding-block: 18px;
}

.today-date {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--gold-light);
  line-height: 1.2;
}

.today-what {
  font-size: 1rem;
}

.today-what strong {
  color: #fff;
}

.today-what a {
  color: var(--gold-light);
}

.today .status {
  font-size: 0.9rem;
  white-space: nowrap;
}

/* sections */

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px);
  overflow-x: clip;
}

.section-tight {
  padding-block: clamp(36px, 5vw, 56px);
}

.band {
  background-color: var(--paper-2);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

.lede {
  max-width: 62ch;
  margin-top: 10px;
  color: var(--ink-soft);
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 32px;
}

/* intro */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.intro-art {
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

.intro h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.intro p {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--ink-soft);
}

.signoff {
  display: block;
  margin-top: 18px;
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--kumkum);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.facts li {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
}

/* a day at the temple */

.day {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 8px;
  list-style: none;
}

.day::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 47px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    #f3b994 0%,
    #f6dca2 22%,
    #fbefc9 45%,
    #f1c27c 62%,
    #d77f3f 78%,
    #3a3f6b 92%,
    #14234a 100%
  );
}

.day li {
  position: relative;
  padding: 0 10px 0 0;
}

.day time {
  display: block;
  height: 36px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.day li::before {
  content: "";
  position: absolute;
  top: 43px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--card);
}

.day li.is-closed::before {
  border-color: var(--muted);
}

.day li.is-now::before {
  background: var(--kumkum);
  border-color: var(--kumkum);
  box-shadow: 0 0 0 5px rgba(178, 58, 34, 0.18);
}

.day strong {
  display: block;
  margin-top: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.day span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

.day li.is-closed strong {
  color: var(--muted);
  font-weight: 500;
}

.now-tag {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--hand);
  color: var(--kumkum);
  font-size: 1rem;
}

/* three sevas */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.trio img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.trio img.contain {
  object-fit: contain;
  background: var(--paper-2);
}

.trio h3 {
  margin-top: 18px;
  font-size: 1.4rem;
}

.trio p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.trio .more {
  margin-top: 12px;
}

/* coming up */

.coming {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}

.feature-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.feature h3 {
  font-size: 1.6rem;
}

.feature p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.feature .more {
  margin-top: 12px;
}

.cal-chip {
  width: 64px;
  padding: 8px 0 7px;
  border: 1px solid var(--rule);
  border-top: 5px solid var(--kumkum);
  border-radius: 2px;
  background: var(--card);
  text-align: center;
  align-self: start;
}

.cal-chip b {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: lining-nums tabular-nums;
}

.cal-chip span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.agenda {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.agenda li {
  border-bottom: 1px solid var(--rule);
}

.agenda a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  text-decoration: none;
}

.agenda a:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 4px;
}

.agenda .when {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.agenda .when small {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.agenda h3 {
  font-size: 1.05rem;
}

.agenda p {
  font-size: 0.88rem;
  color: var(--muted);
}

.agenda .i {
  color: var(--gold);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  background: var(--gold-pale);
  color: #6d4c14;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-live {
  background: #fbe0c9;
  color: #8f3b07;
}

.tag-past {
  background: var(--paper-2);
  color: var(--muted);
}

/* verse */

.verse {
  background: var(--navy-deep);
  color: var(--on-dark);
  text-align: center;
}

.verse .wrap {
  padding-block: clamp(48px, 7vw, 80px);
}

.verse .sanskrit {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.7;
  color: #f7ecd0;
}

.verse .meaning {
  max-width: 50ch;
  margin: 18px auto 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--on-dark);
}

.verse cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-soft);
}

/* gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 170px;
  gap: 14px;
}

.gallery figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gallery button {
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.gallery figcaption {
  padding-top: 6px;
  font-family: var(--hand);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink-soft);
}

.gallery .big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery .tall {
  grid-row: span 2;
}

/* donate band */

.give {
  background: var(--navy);
  color: var(--on-dark);
}

.give .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 36px;
}

.give h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #f7ecd0;
}

.give p {
  margin-top: 4px;
  color: var(--on-dark-soft);
}

/* footer */

.footer {
  background: var(--navy-deep);
  color: var(--on-dark-soft);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  padding-block: 52px 36px;
}

.footer .brand-name {
  color: #f7ecd0;
}

.footer-about p {
  max-width: 36ch;
  margin-top: 16px;
}

.footer h2 {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footer ul {
  list-style: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
}

.contact-list .i {
  margin-top: 4px;
  color: var(--gold-light);
}

.footer .socials {
  margin-top: 16px;
  margin-left: -6px;
  color: var(--on-dark);
}

.footer-base {
  border-top: 1px solid rgba(217, 187, 127, 0.18);
}

.footer-base .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 16px;
  font-size: 0.85rem;
}

.footer-base nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* inner page heading */

.page-head {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper-2);
}

.page-head .wrap {
  position: relative;
  z-index: 1;
  padding-block: 44px 40px;
}

.page-head h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
}

.page-head p {
  max-width: 56ch;
  margin-top: 8px;
  color: var(--ink-soft);
}

.page-head .temple {
  position: absolute;
  right: 4%;
  bottom: 9px;
  width: min(360px, 40vw);
  opacity: 0.45;
}

.crumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--navy);
}

.page-head .kaavi {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* boxes and forms */

.box {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--card);
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label,
.field .label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field .req {
  color: var(--err);
}

.hint {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d8c59f;
  border-radius: 3px;
  background: #fff;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

textarea.input {
  min-height: 96px;
  resize: vertical;
}

.input::placeholder {
  color: #a59c8c;
}

.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(159, 114, 38, 0.18);
}

.field.has-error .input {
  border-color: var(--err);
  background: var(--err-bg);
}

.field .error {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--err);
}

.field.has-error .error {
  display: block;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 .full {
  grid-column: 1 / -1;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* seva page */

.test-note {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px dashed var(--gold);
  border-radius: 3px;
  background: #fff3d9;
  color: #66460f;
  font-size: 0.92rem;
}

.test-note .i {
  margin-top: 3px;
}

.seva-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.steps-col {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.step-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.step-title span {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--kumkum);
}

.seva-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input,
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 16px 8px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.choice label:hover {
  border-color: var(--gold-light);
}

.choice .li {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}

.choice strong {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--navy);
}

.choice small {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
}

.choice input:checked + label {
  border-color: var(--navy);
  background: #fffdf8;
  box-shadow: inset 0 -4px 0 var(--navy);
}

.choice input:focus-visible + label,
.chip input:focus-visible + label {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
}

.chip label {
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.chip label:hover {
  border-color: var(--gold-light);
}

.chip input:checked + label {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.other-amount {
  position: relative;
  flex: 1 1 180px;
}

.other-amount .input {
  padding-left: 32px;
  font-weight: 700;
}

.other-amount span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--muted);
}

.sankalpam {
  margin-top: 18px;
  border-top: 1px dashed var(--rule);
}

.sankalpam summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  list-style: none;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.sankalpam summary::-webkit-details-marker {
  display: none;
}

.sankalpam summary .i {
  transition: transform 0.2s;
}

.sankalpam[open] summary .i {
  transform: rotate(45deg);
}

.sankalpam .grid-2 {
  padding-bottom: 4px;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px));
}

.summary h2 {
  font-size: 1.3rem;
}

.summary-lines {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  list-style: none;
  font-size: 0.95rem;
}

.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-lines li span:first-child {
  color: var(--muted);
}

.summary-lines li span:last-child {
  min-width: 0;
  text-align: right;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.total strong {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--navy);
  font-variant-numeric: lining-nums tabular-nums;
}

.pay-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-alert {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 3px;
  background: var(--err-bg);
  color: var(--err);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-alert.show {
  display: block;
}

.office-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.office-note .hand {
  display: block;
  font-size: 1.1rem;
  color: var(--kumkum);
}

.done {
  text-align: center;
}

.done-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border: 1px solid #bfe0cb;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}

.done-mark .i {
  width: 30px;
  height: 30px;
}

.done h2 {
  font-size: 1.9rem;
}

.done > p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.receipt {
  max-width: 480px;
  margin: 22px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  text-align: left;
}

.receipt dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 0.95rem;
}

.receipt dt {
  color: var(--muted);
}

.receipt dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.receipt .tag {
  margin-bottom: 10px;
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.goes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  list-style: none;
}

.goes li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.goes .li {
  width: 44px;
  height: 44px;
}

.goes h3 {
  font-size: 1.15rem;
}

.goes p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.paybar {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 33, 66, 0.55);
}

.overlay[hidden] {
  display: none !important;
}

.overlay .box {
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.overlay h2 {
  font-size: 1.3rem;
}

.overlay p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border: 3px solid var(--gold-pale);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

/* events page */

.events-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.events-side {
  position: sticky;
  top: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px));
  display: grid;
  gap: 20px;
}

.calendar {
  padding: 18px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cal-head h2 {
  font-size: 1.15rem;
}

.cal-nav {
  display: flex;
  gap: 6px;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.round-btn:hover {
  border-color: var(--gold);
}

.round-btn .i {
  width: 16px;
  height: 16px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
}

.cal-dow {
  padding: 4px 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.cal-day.is-out {
  color: #cbbfa8;
}

.cal-day.has-event {
  background: var(--gold-pale);
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.cal-day.has-event:hover {
  background: var(--gold-light);
}

.cal-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--kumkum);
}

.cal-day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.cal-day.is-selected {
  background: var(--navy);
  color: #fff;
}

.cal-key {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.cal-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-key i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.filters {
  display: grid;
  gap: 2px;
  padding: 8px;
  list-style: none;
}

.filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  text-align: left;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}

.filter:hover {
  background: var(--paper);
  color: var(--navy);
}

.filter[aria-pressed="true"] {
  background: var(--paper-2);
  color: var(--navy);
  font-weight: 700;
}

.filter .n {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
}

.seg button {
  padding: 7px 16px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.showing {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.showing button {
  margin-left: 6px;
  padding: 2px 10px;
  border: 0;
  border-radius: 2px;
  background: var(--paper-2);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.event-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.event-row {
  position: relative;
  display: grid;
  grid-template-columns: 190px 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.event-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
}

.event-row h3 {
  font-size: 1.25rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta .i {
  width: 14px;
  height: 14px;
}

.event-row p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.event-row .tag {
  margin-bottom: 4px;
}

.empty {
  padding: 40px 20px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  color: var(--ink-soft);
}

.empty h3 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}

.table-wrap {
  overflow-x: auto;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.schedule th,
.schedule td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.schedule th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.schedule td:first-child {
  width: 1%;
  padding-right: 24px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.schedule .closed td {
  color: var(--muted);
  font-style: italic;
}

.weekly {
  list-style: none;
}

.weekly li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.weekly strong {
  display: block;
  font-family: var(--serif);
  color: var(--navy);
}

.weekly span {
  font-size: 0.92rem;
  color: var(--muted);
}

dialog.modal {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}

dialog.modal::backdrop {
  background: rgba(11, 33, 66, 0.6);
}

.modal img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.modal-body {
  padding: 22px 26px 26px;
}

.modal-body h2 {
  font-size: 1.7rem;
}

.modal-body > p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* resources page */

.prayer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
}

.prayer-text {
  padding: clamp(24px, 4vw, 44px);
}

.prayer-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.prayer img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--kumkum);
}

.deva {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--navy);
}

.translit {
  margin-top: 8px;
  font-style: italic;
  color: var(--ink-soft);
}

.meaning-text {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  color: var(--ink-soft);
}

.source {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.tab {
  margin-bottom: -1px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}

.tab:hover {
  color: var(--navy);
}

.tab[aria-selected="true"] {
  border-bottom-color: var(--kumkum);
  color: var(--navy);
}

.group + .group {
  margin-top: 56px;
}

.group > h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.group > .lede {
  margin-bottom: 24px;
}

.slokas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sloka {
  position: relative;
}

.sloka h3 {
  padding-right: 90px;
  font-size: 1.25rem;
}

.sloka .deva {
  font-size: 1.15rem;
}

.copy-btn {
  position: absolute;
  top: 20px;
  right: 20px;
}

.guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.guide h3 {
  font-size: 1.25rem;
}

.guide > p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.numbered {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-left: 22px;
  color: var(--ink-soft);
}

.numbered li::marker {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--kumkum);
}

.numbered b,
.bullets b {
  color: var(--ink);
}

.bullets {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.bullets li::marker {
  color: var(--kumkum);
}

.festivals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.festival {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.festival img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

.festival h3 {
  font-size: 1.25rem;
}

.festival p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.festival .when {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.faq {
  max-width: 820px;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .i {
  color: var(--gold);
  transition: transform 0.2s;
}

.faq details[open] summary .i {
  transform: rotate(45deg);
}

.faq details > p {
  padding: 0 0 18px;
  color: var(--ink-soft);
}

/* about page */

.about-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px));
}

.toc ul {
  display: grid;
  gap: 2px;
  list-style: none;
  border-left: 1px solid var(--rule);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 14px;
  border-left: 3px solid transparent;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--navy);
}

.toc a.is-active {
  border-left-color: var(--kumkum);
  color: var(--navy);
  font-weight: 700;
}

.about-main {
  display: grid;
  gap: 64px;
  min-width: 0;
}

.chapter h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.chapter > p,
.chapter-text p {
  max-width: 66ch;
  margin-top: 14px;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.vmo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 2px solid var(--navy);
}

.vmo > div {
  padding: 18px 24px 4px 0;
}

.vmo > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.vmo h3 {
  font-size: 1.15rem;
}

.vmo p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.vmo .bullets {
  margin-top: 8px;
}

.deity {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
  margin-top: 18px;
}

.deity img {
  width: 100%;
  max-width: 400px;
}

.deity p + p {
  margin-top: 12px;
}

.deity p {
  color: var(--ink-soft);
}

.roles {
  margin: 22px 0 0;
  border-top: 1px solid var(--rule);
}

.roles div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.roles dt {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
}

.roles dd {
  margin: 0;
  color: var(--ink-soft);
}

.charity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 18px;
  list-style: none;
}

.charity li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.charity .li {
  width: 44px;
  height: 44px;
}

.charity h3 {
  font-size: 1.1rem;
}

.charity p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.visit {
  background-color: var(--paper-2);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(48px, 7vw, 80px);
  align-items: start;
}

.visit h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.visit p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.visit .btn {
  margin-top: 20px;
}

.info {
  display: grid;
  gap: 14px;
  list-style: none;
}

.info li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
}

.info .i {
  margin-top: 4px;
  color: var(--gold);
}

.info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.info a,
.info span {
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.info a:hover {
  text-decoration: underline;
}

/* policies */

.prose {
  max-width: 740px;
}

.prose h2 {
  margin-top: 44px;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.prose h2:first-of-type {
  margin-top: 8px;
}

.prose h3 {
  margin-top: 22px;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  margin-top: 10px;
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 20px;
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 18, 36, 0.9);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox figure {
  width: min(1000px, 100%);
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 10px;
  font-family: var(--hand);
  font-size: 1.15rem;
  text-align: center;
  color: var(--on-dark);
}

.lightbox .round-btn {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
}

/* smaller screens */

@media (max-width: 1060px) {
  .nav a {
    padding: 8px 8px;
  }

  .event-row {
    grid-template-columns: 150px 64px minmax(0, 1fr);
  }

  .event-row .row-btn {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 70px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .menu-btn {
    display: grid;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--rule);
    font-size: 1.05rem;
  }

  .nav .nav-donate {
    margin: 16px 0 0;
    padding: 14px;
    border-bottom: 0;
  }

  .today .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .today-what {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .intro,
  .coming,
  .split,
  .deity,
  .visit-grid,
  .schedule-grid,
  .prayer {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-art {
    max-width: 380px;
  }

  .day {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-left: 34px;
  }

  .day::before {
    left: 11px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 6px;
    height: auto;
    background: linear-gradient(
      180deg,
      #f3b994 0%,
      #f6dca2 22%,
      #fbefc9 45%,
      #f1c27c 62%,
      #d77f3f 78%,
      #3a3f6b 92%,
      #14234a 100%
    );
  }

  .day li {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: baseline;
    gap: 2px 12px;
    padding: 10px 0;
  }

  .day li::before {
    position: absolute;
    left: -30px;
    top: 15px;
    margin: 0;
  }

  .day time {
    height: auto;
    grid-row: span 3;
  }

  .day strong {
    margin-top: 0;
  }

  .trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trio > :last-child {
    grid-column: 1 / -1;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .seva-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary {
    position: static;
  }

  .seva-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--rule);
    background: var(--card);
    box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, 0.35);
  }

  .paybar[hidden] {
    display: none;
  }

  .paybar small {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
  }

  .paybar strong {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--navy);
  }

  body.has-paybar {
    padding-bottom: 84px;
  }

  .events-layout,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .events-side {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    z-index: 5;
    margin: 0 calc(-1 * max(20px, env(safe-area-inset-left, 0px)));
    padding: 0 max(20px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }

  .toc ul {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-left: 0;
  }

  .toc a {
    margin: 0;
    padding: 12px 10px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .toc a.is-active {
    border-bottom-color: var(--kumkum);
  }

  .page-head .temple {
    opacity: 0.25;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .today .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .today-what {
    grid-row: auto;
  }

  .topbar .hours {
    display: none;
  }

  .topbar-right > a {
    display: none;
  }

  .hero::before {
    background: radial-gradient(
      ellipse 95% 62% at 50% 46%,
      rgba(255, 249, 232, 0.95),
      rgba(255, 246, 224, 0.78) 55%,
      rgba(255, 240, 210, 0) 92%
    );
  }

  .hero-text {
    padding-block: 56px 64px;
  }

  .trio,
  .slokas,
  .guides,
  .festivals,
  .goes,
  .charity,
  .grid-2,
  .events-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .trio > :last-child {
    grid-column: auto;
  }

  .vmo {
    grid-template-columns: minmax(0, 1fr);
  }

  .vmo > div,
  .vmo > div + div {
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .roles div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .festival {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  .event-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .event-row img {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 8;
  }

  .event-row .row-btn {
    grid-column: 2;
  }

  .agenda a {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .agenda .i {
    display: none;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-about {
    grid-column: auto;
  }

  .sloka h3 {
    padding-right: 0;
  }

  .copy-btn {
    position: static;
    margin-top: 14px;
  }

  .page-head .wrap {
    padding-block: 32px 36px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .brand-name small {
    display: none;
  }

  .hero .actions .btn {
    width: 100%;
  }

  .chip {
    flex: 1 1 calc(50% - 5px);
  }

  .chip label {
    width: 100%;
    min-width: 0;
  }

  .gallery {
    grid-auto-rows: 120px;
  }
}

@media print {
  .topbar,
  .header,
  .footer,
  .give,
  .paybar {
    display: none !important;
  }
}
