/* Layout: a pocket notice board. Sticky header with group picker and three tabs; content is a
   day-by-day agenda with a strong date column, then quiet cards for help and the coordinator message. */
:root {
  --bg: #f4f7f5;          /* tulasi-tinted paper */
  --surface: #ffffff;
  --ink: #1b2925;
  --muted: #566862;
  --line: #d8e2de;
  --accent: #1d6a50;      /* tulasi green */
  --accent-ink: #ffffff;
  --accent-soft: #e2f0ea;
  --marigold: #a8650c;    /* attention: help needed, to be confirmed */
  --marigold-soft: #fbefd9;
  --info: #2c5d88;        /* changed / moved */
  --info-soft: #e3eef8;
  --danger: #a63a2a;      /* cancelled */
  --danger-soft: #f8e4e0;
  --focus: #1d6a50;
  --font-display: 'Marcellus', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --r: 10px;
  --night: #1b1e3d;        /* Kartik evening sky */
  --on-night: #f6efe2;
  --on-night-muted: #c9c2d8;
  --night-line: #4a4a78;
  --flame: #f4a53b;        /* ghee-lamp flame */
  --flame-ink: #2a1a05;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111816; --surface: #19221f; --ink: #e5eeea; --muted: #9db0a9; --line: #2b3834;
    --accent: #63c49b; --accent-ink: #0d1a15; --accent-soft: #1d3329;
    --marigold: #f0b354; --marigold-soft: #3a2c15; --info: #86b7e3; --info-soft: #1b2c3c;
    --danger: #ef8b79; --danger-soft: #3b201b; --focus: #63c49b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111816; --surface: #19221f; --ink: #e5eeea; --muted: #9db0a9; --line: #2b3834;
  --accent: #63c49b; --accent-ink: #0d1a15; --accent-soft: #1d3329;
  --marigold: #f0b354; --marigold-soft: #3a2c15; --info: #86b7e3; --info-soft: #1b2c3c;
  --danger: #ef8b79; --danger-soft: #3b201b; --focus: #63c49b; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--font-body);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
h1, h2, h3 { text-wrap: balance; }

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

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; padding-block: 12px 8px; }
.brand-kicker { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-name { margin: 0; font: 400 26px/1.15 var(--font-display); color: var(--accent); }
.group-pick { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; max-width: 300px; }
.group-label { font-size: 13px; color: var(--muted); }
select, input[type="search"] {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; min-height: 44px; width: 100%;
}
.tabs { display: flex; gap: 4px; padding-block: 0; }
.tab {
  flex: 1; font: 600 16px var(--font-body); color: var(--muted); background: none; border: 0;
  border-bottom: 3px solid transparent; padding: 10px 6px 9px; min-height: 44px; cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

.notice { margin-top: 12px; }
.notice, .loading, .error { font-size: 15px; }
#sample-banner { background: var(--marigold-soft); color: var(--ink); border-radius: var(--r); padding-block: 10px; }
.error { color: var(--danger); }
main.wrap { padding-block: 8px 24px; }

/* section headings */
.view-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 16px 0 8px; }
.view-head h2 { margin: 0; font: 400 24px/1.2 var(--font-display); }
.view-head p { margin: 0; color: var(--muted); font-size: 15px; }
h3.block-title { font: 400 20px/1.25 var(--font-display); margin: 28px 0 8px; }

/* day agenda */
.day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.day:first-of-type { border-top: 0; }
.day-date { text-align: center; line-height: 1.1; }
.day-dow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day-num { display: block; font: 400 34px/1 var(--font-display); color: var(--ink); }
.day-mon { display: block; font-size: 13px; color: var(--muted); }
.day.is-today .day-num, .day.is-today .day-dow { color: var(--accent); }
.day-items { display: grid; gap: 14px; min-width: 0; }
.day-empty { color: var(--muted); font-size: 15px; align-self: center; }
.week-days .day { padding-block: 10px; }
.day.is-past { opacity: .55; }

.item { display: grid; gap: 4px; min-width: 0; }
.item-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; }
.item-title { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.item.is-cancelled .item-title { text-decoration: line-through; color: var(--muted); }
.item-place, .item-note { margin: 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.item details { font-size: 15px; }
.item summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.item details ul { margin: 4px 0 0; padding-left: 20px; }
.festival { margin: 0; font-size: 15px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.festival strong { font-family: var(--font-display); font-weight: 400; font-size: 17px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px; line-height: 1.5; }
.chip.cancelled { background: var(--danger-soft); color: var(--danger); }
.chip.changed { background: var(--info-soft); color: var(--info); }
.chip.tentative, .chip.needs-host, .chip.stale, .chip.confirm { background: var(--marigold-soft); color: var(--marigold); }
.chip.group { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 15px var(--font-body); text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:hover { border-color: var(--accent); }

/* help + coordinator cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.card.help { border-color: var(--marigold); background: var(--marigold-soft); }
.card h3 { margin: 0 0 6px; font: 400 20px/1.25 var(--font-display); }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.help-list p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.msg-box {
  width: 100%; min-height: 220px; font: 15px/1.45 var(--font-body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; white-space: pre-wrap;
}
.status-line { min-height: 1.4em; font-size: 14px; color: var(--accent); margin: 6px 0 0; }

/* calendar */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.filter { font: 600 14px var(--font-body); border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.month { font: 400 20px/1.2 var(--font-display); margin: 22px 0 4px; color: var(--accent); }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.toggle-row input { width: 20px; height: 20px; }

/* resources */
.res-list { list-style: none; margin: 0; padding: 0; }
.res { padding-block: 12px; border-top: 1px solid var(--line); display: grid; gap: 3px; min-width: 0; }
.res:first-child { border-top: 0; }
.res-title { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.res-meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.res-desc { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.group-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.group-card h4 { margin: 0; font-size: 17px; }
.group-card p { margin: 0; font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); padding-block: 12px; }

.foot { padding-block: 8px 32px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.foot p { margin: 6px 0; }

@media (min-width: 640px) {
  .day { grid-template-columns: 80px minmax(0, 1fr); }
  .item { grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; }
  .item-time { grid-row: 1 / span 6; padding-top: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .view { animation: fade .18s ease-out; }
  @keyframes fade { from { opacity: .4; } to { opacity: 1; } }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

details.card > summary.coord-summary { cursor: pointer; font: 400 19px/1.3 var(--font-display); min-height: 44px; display: flex; align-items: center; }
details.card[open] > summary.coord-summary { margin-bottom: 8px; }

/* brand lotus */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 32px; flex: none; fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.brand-mark path:last-child { fill: none; }

/* Next up: the lamp-lit card */
.hero {
  margin-top: 16px; background: var(--night); color: var(--on-night); border-radius: 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 8px;
  padding: 22px 12px 22px 22px; overflow: hidden;
}
.hero-text { min-width: 0; display: grid; gap: 6px; }
.hero-lead { margin: 0; font-size: 15px; color: var(--on-night-muted); }
.hero-title { margin: 0; font: 400 30px/1.15 var(--font-display); color: var(--on-night); overflow-wrap: anywhere; }
.hero-when { margin: 0; font-size: 16px; color: var(--on-night); }
.hero-confirm { color: var(--flame); }
.hero-season { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--night-line); font-size: 15px; color: var(--on-night-muted); }
.hero .actions { margin-top: 6px; }
.hero-lamp { width: 128px; height: 160px; justify-self: end; }
.btn.flame { background: var(--flame); color: var(--flame-ink); border-color: var(--flame); }
.btn.on-night { background: transparent; color: var(--on-night); border-color: var(--night-line); }
.btn.on-night:hover, .btn.flame:hover { border-color: var(--on-night); }
.hero :focus-visible { outline-color: var(--flame); }
@media (max-width: 520px) {
  .hero { grid-template-columns: minmax(0, 1fr) 84px; padding: 18px 8px 18px 16px; align-items: start; }
  .hero-lamp { width: 84px; height: 108px; }
  .hero-title { font-size: 25px; }
}

/* recordings with thumbnails */
.res.has-thumb { grid-template-columns: 128px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.res-body { display: grid; gap: 3px; min-width: 0; }
.res-thumb { position: relative; display: block; width: 128px; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--night); }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(27,30,61,.78); }
.res-play::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 10px solid var(--on-night); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (max-width: 420px) { .res.has-thumb { grid-template-columns: 96px minmax(0, 1fr); } .res-thumb { width: 96px; } }

.past-toggle { margin: 18px 0 4px; }
#this-week, #coming-up, #past { scroll-margin-top: 140px; }
.hero + .filters { margin-top: 16px; }

/* ---------- Classes: each session opens into its own page ---------- */
.sessions { display: grid; gap: 10px; margin-top: 12px; }
.session { padding: 0; }
.session > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 14px 16px; }
.session > summary::-webkit-details-marker { display: none; }
.session > summary::after { content: ""; justify-self: end; margin-top: -26px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.session[open] > summary::after { transform: rotate(-135deg); }
.session-date { font-size: 14px; color: var(--muted); }
.session-title { font: 400 21px/1.25 var(--font-display); padding-right: 24px; }
.session-sub { font-size: 15px; color: var(--muted); }
.session .chips { margin-top: 4px; }
.session-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.session-body h4 { margin: 16px 0 6px; font: 600 16px/1.3 var(--font-body); }
.session-thumb { position: relative; display: block; margin-top: 14px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--night); }
.session-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.session-list { margin: 0; padding-left: 20px; }
.session-list li { margin: 4px 0; }
.session-list.jumps { list-style: none; padding-left: 0; }
.session-list.jumps li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px; }
.jump-at { font-variant-numeric: tabular-nums; color: var(--muted); }
.session { scroll-margin-top: 200px; }
.session .actions { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .session > summary::after { transition: none; } }

/* ---------- Landing page (public) ---------- */
.landing { min-height: 100vh; }
.l-hero { background: var(--night); color: var(--on-night); padding-block: 28px 40px; }
.landing .wrap { max-width: 980px; }
.l-section > * { max-width: 720px; }
.l-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.l-brand { display: flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; font: 400 22px/1 var(--font-display); }
.l-brand svg { width: 34px; height: 28px; fill: none; stroke: var(--flame); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.l-signin { color: var(--on-night); font-size: 16px; }
.l-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; margin-top: 36px; }
.l-title { margin: 0; font: 400 clamp(38px, 7.2vw, 66px)/1.04 var(--font-display); letter-spacing: -0.01em; max-width: 17ch; }
.l-lede { margin: 18px 0 0; max-width: 34em; font-size: 19px; line-height: 1.55; color: var(--on-night-muted); }
.l-hero .actions { margin-top: 24px; }
.l-hero .btn { font-size: 17px; padding: 11px 18px; }
.l-lamp { width: 220px; height: 280px; }
.l-hero :focus-visible { outline-color: var(--flame); }
.l-section { padding-block: 36px 8px; }
.l-section > h2 { margin: 0 0 6px; font: 400 30px/1.2 var(--font-display); }
.l-section > p.lead { margin: 0 0 18px; color: var(--muted); max-width: 36em; }
.l-steps { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.l-steps li { position: relative; padding: 0 0 18px 22px; }
.l-steps li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 4px var(--bg); }
.l-steps h3 { margin: 0; font: 600 18px/1.35 var(--font-body); }
.l-steps p { margin: 2px 0 0; color: var(--muted); }
.l-glimpse { display: grid; gap: 8px; }
.l-glimpse .day { margin: 0; }
.l-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; }
.l-form label { display: grid; gap: 4px; font-weight: 600; }
.l-form .hint { font-weight: 400; color: var(--muted); font-size: 15px; }
.l-form input[type=text], .l-form input[type=tel], .l-form input[type=email], .l-form select, .l-form textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
.l-form textarea { min-height: 84px; resize: vertical; }
.l-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.l-form .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.l-form [aria-invalid="true"] { border-color: var(--danger); }
.l-form .field-error { color: var(--danger); font-weight: 400; font-size: 15px; }
.l-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.l-done { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r); padding: 18px 16px; }
.l-done h3 { margin: 0 0 4px; font: 400 22px/1.25 var(--font-display); }
.l-foot { padding-block: 32px 40px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) {
  .l-stage { grid-template-columns: 1fr; }
  .l-lamp { width: 140px; height: 176px; grid-row: 1; justify-self: start; margin-bottom: -8px; }
  .l-lede { font-size: 18px; }
}

/* ---------- members sign-in ---------- */
.signin { padding-block: 28px; }
.signin h2 { margin: 0 0 8px; font: 400 26px/1.25 var(--font-display); }
.signin p { max-width: 34em; }
body.signed-out .group-pick, body.signed-out .tabs, body.signed-out main, body.signed-out .foot { display: none; }
.link-btn { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.signin .l-form { max-width: 30em; margin-block: 16px; }
.signin .l-form h3 { margin: 0; font: 400 22px/1.25 var(--font-display); }
.signin .l-form .hint, .signin .hint { font-weight: 400; color: var(--muted); font-size: 15px; margin: 0; }
.signin .l-done { max-width: 30em; margin-block: 16px; }

/* ---------- RSVP panel and rounds ---------- */
.rsvp-mine { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 15px; display: inline-block; }
.rsvp-mine.is-no { background: var(--line); font-weight: 400; }
.rsvp-panel { margin-top: 12px; padding: 14px; border: 1px solid var(--accent); border-radius: var(--r); background: var(--surface); display: grid; gap: 12px; }
.rsvp-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.rsvp-panel legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.check { display: flex; gap: 10px; align-items: center; min-height: 32px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.stepper { display: grid; grid-template-columns: minmax(0, 1fr) 38px 48px 38px; align-items: center; gap: 6px; }
.stepper-label { font-size: 16px; }
.stepper input { font: inherit; text-align: center; width: 100%; padding: 6px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step { font: 600 20px/1 var(--font-body); height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.step:hover { border-color: var(--accent); }
.status-line:empty { display: none; }
.pr-form { display: grid; gap: 14px; margin-top: 12px; }
.pr-row { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pr-name { font-weight: 600; }
.pr-row .stepper-label { color: var(--muted); font-size: 15px; }
.add-child { margin-top: 12px; }
.add-child summary { cursor: pointer; font-weight: 600; }
.add-child form { display: grid; gap: 10px; margin-top: 10px; }
.add-child label { display: grid; gap: 4px; }
.add-child input, .add-child select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tab { white-space: nowrap; }

/* ---------- program pictures, change notes, month view ---------- */
.item-flier { display: block; margin: 0 0 10px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); max-width: 420px; }
.item-flier img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.rsvp-changed { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--marigold-soft); color: var(--marigold); font-weight: 600; font-size: 15px; display: inline-block; }
.card.notice { border-color: var(--marigold); background: var(--marigold-soft); }
.card.notice h3 { margin: 0 0 6px; }
.card.notice ul { margin: 0; padding-left: 20px; }
.filters.seg { margin-top: 4px; }
.month-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin: 12px 0 8px; }
.month-nav .btn { padding: 6px 0; font-size: 20px; }
.month-nav .btn[disabled] { opacity: .35; cursor: default; }
.month-title { margin: 0; text-align: center; font: 400 22px/1.2 var(--font-display); }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mhead { text-align: center; font-size: 13px; color: var(--muted); padding-bottom: 2px; }
.mcell { aspect-ratio: 1 / 1; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit;
  display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 2px 0 4px; cursor: pointer; }
.mcell.is-blank { border: 0; background: none; cursor: default; }
.mcell.is-past { color: var(--muted); background: transparent; }
.mcell.is-today { border-color: var(--accent); }
.mcell.is-picked { background: var(--accent); border-color: var(--accent); color: #fff; }
.mnum { font-size: 15px; font-variant-numeric: tabular-nums; }
.mdots { display: flex; gap: 3px; height: 6px; }
.mdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--flame); }
.mcell.is-picked .mdots i { background: #fff; }
.month-day { margin-top: 12px; }

/* ---------- landing: testimonials ---------- */
.l-voices { display: grid; gap: 14px; }
.l-voice { margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--flame); border-radius: var(--r); }
.l-voice blockquote { margin: 0; font: 400 20px/1.45 var(--font-display); }
.l-voice figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; }
.l-voice-video { position: relative; display: block; margin-bottom: 12px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--night); max-width: 480px; }
.l-voice-video img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ---------- landing: Google reviews ---------- */
.l-greviews { display: grid; gap: 12px; }
.l-greview { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.l-greview blockquote { margin: 6px 0 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.l-greview figcaption { margin-top: 8px; font-weight: 600; font-size: 15px; }
.stars { color: var(--flame); letter-spacing: 1px; }
.stars-off { color: var(--line); }
.l-credit { margin-top: 10px; color: var(--muted); font-size: 15px; }


/* Reviews use the full page width; side by side only when there are several and room for them */
.l-section > .l-voices, .l-section > .l-greviews { max-width: none; }
.l-voices, .l-greviews { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.l-register { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.l-register p { margin: 0 0 10px; }
.l-register p:last-child { margin: 0; }

/* ---------- landing: videos, questions, photos ---------- */
.l-section > .l-videos, .l-section > .l-photos { max-width: none; }
.l-videos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.l-video { margin: 0; }
.l-video-play, .l-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); overflow: hidden; background: var(--night); padding: 0; position: relative; cursor: pointer; }
.l-video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-video-play:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
.l-video figcaption { margin-top: 8px; }
.l-faq { display: grid; gap: 8px; }
.l-q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.l-q summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.l-q summary::-webkit-details-marker { display: none; }
.l-q summary::after { content: "+"; position: absolute; right: 2px; top: 10px; font-size: 22px; color: var(--accent); }
.l-q[open] summary::after { content: "−"; }
.l-q p { margin: 0 0 14px; }
.l-photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.l-photo { margin: 0; }
.l-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: var(--line); }
.l-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- devotional touches: greeting, verse, darshan, reflection ---------- */
.greet { margin: 0 0 10px; font: 400 22px/1.3 var(--font-display); color: var(--ink); }
.verse { margin: 0; }
.verse-sa { margin: 0 0 8px; font: 400 21px/1.75 "Noto Serif Devanagari", var(--font-display), serif; color: var(--ink); }
.verse-tr { margin: 0 0 10px; font-style: italic; color: var(--muted); line-height: 1.6; }
.verse-mean { margin: 0 0 8px; font: 400 19px/1.5 var(--font-display); }
.verse figcaption { color: var(--accent); font-weight: 600; font-size: 15px; }
.verse-key { font: 400 18px/1.5 var(--font-display); margin: 0; }
.darshan { margin: 0; }
.darshan img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; display: block; background: var(--night); }
.darshan figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }
.card.sacred { background: linear-gradient(180deg, var(--marigold-soft), var(--surface) 70%); }
.card.sacred h3 { margin: 0 0 10px; }
.sacred-grid { display: grid; gap: 14px; }
.reflect { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.reflect h4 { margin: 0 0 4px; font: 600 16px/1.3 var(--font-body); }
.reflect p { margin: 0 0 4px; }
@media (min-width: 720px) { .sacred-grid:has(.darshan) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.lotus-rule { display: flex; align-items: center; gap: 12px; max-width: 980px; margin: 22px auto 0; padding: 0 16px; }
.lotus-rule::before, .lotus-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lotus-rule svg { width: 34px; height: 28px; fill: none; stroke: var(--flame); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.l-verse { display: grid; gap: 16px; }
@media (min-width: 760px) { .l-verse:has(.darshan) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } }
.l-section > .l-verse { max-width: none; }
/* Larger text, chosen per device */
html.large-text body { zoom: 1.18; }

/* Catching up on classes (R15) */
.card.catchup { border-color: var(--accent); margin-bottom: 12px; }
.card.catchup h3 { margin: 0 0 6px; }
.catchup-count { font-size: 17px; }
.chip.watched { background: var(--accent); color: #fff; }
.watched-tick { margin-top: 14px; font-weight: 600; }

/* Coordinator tools: check-in (R23) */
.coord-tools h4 { margin: 14px 0 6px; }
.ci-progs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ci-totals { font: 400 22px/1.3 var(--font-display); color: var(--accent); margin: 4px 0 10px; }
.ci-list { list-style: none; padding: 0; margin: 0 0 8px; }
.ci-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ci-row.is-here .ci-who strong { color: var(--accent); }
.ci-who { display: grid; gap: 2px; min-width: 0; }
.ci-here { min-width: 96px; min-height: 48px; font-size: 17px; }
.ci-counts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ci-step { display: inline-flex; align-items: center; gap: 6px; }
.ci-step .btn { min-width: 44px; min-height: 44px; padding: 0; font-size: 20px; }
.ci-n { min-width: 84px; text-align: center; }
.ci-walkin { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: end; margin-top: 8px; }
.ci-walkin .btn { grid-column: 1 / -1; }
#ci-q { width: 100%; }

/* Coordinator tools: flier (R52) */
.flier-form { display: grid; gap: 10px; }
.flier-form select, .flier-form input { width: 100%; }
.flier-preview { display: block; width: 100%; max-width: 360px; height: auto; margin: 12px 0 4px; border-radius: 8px; box-shadow: 0 1px 0 var(--line); }

/* Phone calendar subscriptions (R10) */
.sub-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.sub-list .actions { margin-top: 6px; }
.view #ci-status { position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; margin: 0; z-index: 2; }
.ci-banner { border-color: var(--accent); background: var(--accent-soft); margin-bottom: 12px; }
.ci-banner p { margin: 0 0 6px; }

/* What families say: the gist in large type, the full words a tap away (R64) */
.l-gist { margin: 0; font: 400 22px/1.4 var(--font-display); color: var(--ink); }
.l-full { margin-top: 8px; }
.l-full summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.l-full blockquote { margin: 6px 0 0; font: 400 17px/1.55 var(--font-body); color: var(--muted); }
#say-videos:not(:empty) { margin-bottom: 16px; }
.l-voice .l-video { margin-bottom: 10px; }
.l-voice .stars { margin-bottom: 4px; }
.btn-big { font-size: 19px; padding: 14px 24px; min-height: 52px; }

/* Registration page (R58 to R62) */
.l-hero-short { padding-bottom: 28px; }
.l-hero-short .l-title { margin-top: 18px; }
.reg-note { background: var(--marigold-soft); border-left: 4px solid var(--marigold); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; }
.reg-note p { margin: 4px 0; }
.reg-form fieldset { border: 0; margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; min-width: 0; }
.reg-form fieldset:last-of-type { border-bottom: 0; }
.reg-form > fieldset > legend { font: 400 22px/1.3 var(--font-display); padding: 0; margin-bottom: 6px; }
.reg-form fieldset.choice { border: 0; padding: 0; gap: 6px; }
.reg-form fieldset.choice legend { font-weight: 600; margin-bottom: 4px; }
.reg-form .check { min-height: 44px; align-items: center; }
.reg-form p.hint { margin: 0; }
.kids { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.kid-n { grid-column: 1 / -1; font-weight: 700; }
.kid-remove { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
.kid select { width: 100%; }

/* Program descriptions: 5 lines, then More (R67); RSVP view (R66); class links (R68) */
.item-desc p { margin: 0 0 4px; }
.item-desc.clamp5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.item-desc.clamp5.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.desc-more { margin-top: 2px; min-height: 44px; }
.item-class { margin: 6px 0 0; font-weight: 600; }
.rsvp-shortcut { margin: 8px 0 4px; }

/* Admin tab (R70 to R72) */
.ad-results { list-style: none; padding: 0; margin: 8px 0; }
.ad-hit { width: 100%; justify-content: space-between; text-align: left; border-radius: var(--r); margin: 6px 0; gap: 8px; }
.ad-family h4, .ad-add h4 { margin: 16px 0 6px; }
.ad-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4px 12px; margin: 0 0 8px; }
.ad-dl dt { color: var(--muted); } .ad-dl dd { margin: 0; overflow-wrap: anywhere; }
.ad-table { overflow-x: auto; }
.ad-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ad-table th, .ad-table td { text-align: left; padding: 6px 8px 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
.ad-add { display: grid; gap: 10px; }
.ad-add input, .ad-add select, .ad-add textarea { width: 100%; }
.status-line.is-bad { color: var(--danger); }
#ad-q { width: 100%; }
@media (max-width: 480px) { .ad-dl { grid-template-columns: 1fr; } .ad-dl dt { margin-top: 6px; } }
