/* Gayatri Sanatan Vedic Foundation — mobile-first stylesheet. Phones are the primary target; wider screens get a centred column. */

:root {
  --saffron: #e8730c;
  --saffron-dark: #c25a00;
  --saffron-soft: #fdebd6;
  --temple-red: #9e1b1b;
  --temple-red-soft: #f8e1df;
  --cream: #fdf8ef;
  --paper: #ffffff;
  --ink: #2b1d12;
  --ink-soft: #6b5a4b;
  --line: #eadfce;
  --green: #2e7d4f;
  --green-soft: #e1f2e7;
  --blue: #2b5c8a;
  --blue-soft: #e2edf7;
  --grey-soft: #efebe6;
  --radius: 14px;
  --tap: 48px;
  --shadow: 0 2px 10px rgba(80, 45, 10, 0.08);
  --nav-h: 64px;
  --font-display: "Cormorant Garamond", "Noto Serif Devanagari", "Noto Serif Gujarati", Georgia, serif;
  --font-body: "Source Sans 3", "Noto Sans Devanagari", "Noto Sans Gujarati", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
}

body.has-bottom-nav {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
}

a { color: var(--saffron-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--temple-red);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 0.75rem; }
small, .muted { color: var(--ink-soft); }
.muted { font-size: 0.95rem; }

/* Icons (inline SVG) are small and line up with text unless a more specific rule sizes them. */
svg { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }

/* ---------- Header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.app-header .bar {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--temple-red);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.top-links { display: none; gap: 4px; }
.top-links a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.top-links a.active, .top-links a:hover { background: var(--saffron-soft); color: var(--saffron-dark); }

/* ---------- Layout ---------- */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}
.page.wide { max-width: 960px; }
.page-head { margin: 4px 0 16px; }
.page-head p { color: var(--ink-soft); margin: 0; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card h3 { margin-bottom: 4px; }
.card.highlight { border-color: var(--saffron); background: linear-gradient(180deg, #fff 0%, var(--saffron-soft) 100%); }
.card.empty { text-align: center; color: var(--ink-soft); padding: 28px 16px; box-shadow: none; border-style: dashed; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.card-actions form { flex: 1 1 140px; display: flex; }
.card-actions .btn { flex: 1 1 140px; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 10px;
}
.section-title h2 { margin: 0; }
.section-title .count {
  background: var(--saffron);
  color: #fff;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.meta { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.meta li { display: flex; gap: 8px; color: var(--ink-soft); font-size: 0.97rem; }
.meta li strong { color: var(--ink); font-weight: 600; }
.meta svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--saffron); }

.price { font-weight: 700; color: var(--green); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.stat .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--saffron-dark); line-height: 1; }
.stat .label { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: var(--grey-soft);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(232, 115, 12, 0.45);
  outline-offset: 2px;
}
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-red { background: var(--temple-red); color: #fff; }
.btn-outline { background: transparent; border-color: var(--saffron); color: var(--saffron-dark); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-danger { background: transparent; border-color: var(--temple-red); color: var(--temple-red); }
.btn-success { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.sticky-cta {
  position: sticky;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
  z-index: 10;
  padding: 10px 0 0;
  background: linear-gradient(180deg, rgba(253, 248, 239, 0) 0%, var(--cream) 35%);
}
body:not(.has-bottom-nav) .sticky-cta { bottom: calc(env(safe-area-inset-bottom) + 8px); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b5a4b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--saffron); }
.input-validation-error { border-color: var(--temple-red) !important; }
.field-validation-error, .text-danger { color: var(--temple-red); font-size: 0.92rem; display: block; margin-top: 4px; }
.validation-summary-errors {
  background: var(--temple-red-soft);
  color: var(--temple-red);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

/* Big, thumb-friendly checkbox / radio rows */
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  min-height: var(--tap);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  margin-bottom: 10px;
}
.check input[type=checkbox], .check input[type=radio] {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  accent-color: var(--saffron);
}
.check .text { display: block; min-width: 0; overflow-wrap: anywhere; }
.check .text strong { display: block; }
.check .text small { display: block; }
.check:has(input:checked) { border-color: var(--saffron); background: var(--saffron-soft); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  padding: 8px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { border-color: var(--saffron); background: var(--saffron-soft); color: var(--saffron-dark); }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { flex: 1 1 140px; margin-bottom: 0; }

/* ---------- Stepper (schedule form) ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 16px; list-style: none; padding: 0; }
.steps li { flex: 1; text-align: center; font-size: 0.8rem; color: var(--ink-soft); }
.steps li::before {
  content: "";
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin-bottom: 6px;
}
.steps li.done::before, .steps li.current::before { background: var(--saffron); }
.steps li.current { color: var(--saffron-dark); font-weight: 700; }
.js .step { display: none; }
.js .step.active { display: block; }
.step-nav { display: flex; gap: 8px; }
.step-nav .btn { flex: 1; }
.js .no-js-only { display: none; }
html:not(.js) .js-only { display: none; }

.review dt { color: var(--ink-soft); font-size: 0.9rem; }
.review dd { margin: 0 0 10px; font-weight: 600; }

/* ---------- Badges & alerts ---------- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--grey-soft);
  color: var(--ink-soft);
}
.badge-PreferredPending { background: var(--blue-soft); color: var(--blue); }
.badge-PreferredDeclined { background: var(--temple-red-soft); color: var(--temple-red); }
.badge-Open { background: var(--saffron-soft); color: var(--saffron-dark); }
.badge-Confirmed { background: var(--green-soft); color: var(--green); }
.badge-Completed { background: var(--green); color: #fff; }
.badge-Cancelled { background: var(--grey-soft); color: var(--ink-soft); }
.badge-paid { background: var(--green-soft); color: var(--green); }
.badge-unpaid { background: #fff3cd; color: #7a5a00; }
.badge-family { background: var(--temple-red); color: #fff; }

.flash {
  background: var(--green-soft);
  color: var(--green);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 600;
}
.notice {
  background: var(--saffron-soft);
  border-left: 4px solid var(--saffron);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.notice.warn { background: var(--temple-red-soft); border-color: var(--temple-red); }
.cash-note { display: flex; gap: 8px; align-items: center; font-size: 0.95rem; color: var(--ink-soft); }
.cash-note svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(80, 45, 10, 0.06);
}
.bottom-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  max-width: 640px;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: var(--nav-h);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}
.bottom-nav a svg { width: 24px; height: 24px; }
.bottom-nav a.active { color: var(--saffron-dark); }
.bottom-nav a.primary svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
}

/* ---------- Landing ---------- */
.hero {
  background: radial-gradient(circle at 80% 0%, #ffd9a8 0%, transparent 55%), linear-gradient(160deg, var(--cream) 0%, var(--saffron-soft) 100%);
  padding: 32px 16px 28px;
  text-align: center;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 4px; }
.hero .tag { font-family: var(--font-display); font-size: 1.3rem; color: var(--saffron-dark); margin-bottom: 12px; }
.hero p { max-width: 520px; margin: 0 auto 20px; color: var(--ink-soft); }
.hero .ctas { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; }
.features { display: grid; gap: 12px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--saffron-soft);
  color: var(--saffron-dark);
  display: grid;
  place-items: center;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 2px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.demo-logins { font-size: 0.9rem; color: var(--ink-soft); }
.demo-logins code { background: var(--grey-soft); padding: 1px 6px; border-radius: 6px; }

.site-footer { text-align: center; padding: 24px 16px; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Tables (admin) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--saffron-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.filters a {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.filters a.active { border-color: var(--saffron); background: var(--saffron-soft); color: var(--saffron-dark); }

details > summary { cursor: pointer; font-weight: 600; color: var(--saffron-dark); min-height: 40px; display: flex; align-items: center; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  body { font-size: 17px; }
  .page { padding: 24px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 64px 24px 48px; }
  .hero h1 { font-size: 3.4rem; }
  .hero .ctas { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .top-links { display: flex; }
  body.has-bottom-nav { padding-bottom: 24px; }
  .bottom-nav { display: none; }
  .sticky-cta, body:not(.has-bottom-nav) .sticky-cta { position: static; background: none; }
}

/* ---------- Contact block on booking cards ---------- */
.contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.contact-role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--saffron-dark); }
.contact-name { font-size: 1.05rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.contact-actions .btn { flex: 1 1 96px; }

.amount-details { margin-top: 10px; }
.amount-details .inline-form { margin-top: 8px; }


/* Dakshina summary above the schedule buttons */
.price-bar {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
}
.price-bar:empty { display: none; }
.budget-field { margin: -2px 0 12px 38px; }


/* ---------- Ratings ---------- */
.review-box { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--saffron-soft); }
.stars-static { color: var(--saffron); letter-spacing: 2px; font-size: 1.1rem; }
.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  border: 0;
  padding: 0;
  margin: 8px 0 10px;
}
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
}
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: var(--saffron); }
.stars input:focus-visible + label { outline: 3px solid rgba(232, 115, 12, 0.45); border-radius: 8px; }
.rating-low { color: var(--temple-red); font-weight: 700; }

/* ---------- Cancellation ---------- */
.cancel-details { margin-top: 12px; }
.cancel-details > summary {
  justify-content: center;
  min-height: var(--tap);
  border: 2px solid var(--temple-red);
  border-radius: 12px;
  color: var(--temple-red);
  font-weight: 700;
  list-style: none;
}
.cancel-details > summary::-webkit-details-marker { display: none; }
.cancel-details[open] > summary { margin-bottom: 10px; }
.reason-list { border: 0; padding: 0; margin: 0 0 6px; }
.reason-list legend { font-weight: 700; margin-bottom: 8px; }
.card.inactive { opacity: 0.65; }

/* ---------- Language switcher ---------- */
.lang-switch { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  min-width: 36px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
}
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a.active { background: var(--saffron); color: #fff; }
/* Devanagari and Gujarati read better a touch larger and without the serif display face's tight leading. */
html:lang(hi) h1, html:lang(gu) h1, html:lang(hi) h2, html:lang(gu) h2, html:lang(hi) h3, html:lang(gu) h3 { line-height: 1.35; }
html:lang(hi) .hero h1, html:lang(gu) .hero h1 { font-family: "Cormorant Garamond", Georgia, serif; }

.header-actions .btn { white-space: nowrap; }
@media (max-width: 380px) { .brand span { font-size: 1.25rem; } .lang-switch a { min-width: 32px; padding: 0 6px; } }


/* ---------- Samagri lists (indented outline) ---------- */
.outline { list-style: none; margin: 8px 0 0; padding: 0; }
.outline li {
  display: flex;
  gap: 8px;
  padding: 7px 0 7px calc(var(--lvl, 0) * 18px);
  border-bottom: 1px dashed var(--line);
}
.outline li:last-child { border-bottom: 0; }
.outline-no { flex: none; min-width: 2.6em; color: var(--saffron-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.outline-text small { display: block; }
.samagri-item { margin-left: calc(var(--lvl, 0) * 14px); }
.outline-line { display: flex; gap: 8px; align-items: flex-start; }
.item-tools { display: flex; gap: 6px; margin: 10px 0 4px; }
.item-tools form { flex: 1; display: flex; }
.item-tools .btn { flex: 1; font-size: 1.1rem; }
.sub-form { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.samagri-box { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--saffron-soft); }
.samagri-box > summary { cursor: pointer; font-weight: 700; }

/* ---------- Availability calendar ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; }
.cal-nav .btn { min-width: 44px; }
.cal-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--temple-red); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); padding: 2px 0; }
.cal-cell { display: contents; }
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 2px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.1;
}
button.cal-day { cursor: pointer; }
.cal-day.empty { border-color: transparent; background: transparent; }
.cal-day .n { font-weight: 700; }
.cal-day .s { font-size: 0.8rem; min-height: 1em; }
.cal-day.free { background: var(--green-soft); border-color: #c9e6d3; }
.cal-day.away { background: var(--temple-red-soft); border-color: #eab4b0; color: var(--temple-red); }
.cal-day.booked { background: var(--saffron-soft); border-color: #f2c795; color: var(--saffron-dark); }
.cal-day.past { opacity: 0.4; background: var(--grey-soft); border-color: var(--line); color: var(--ink-soft); }
.cal-day.today { outline: 2px solid var(--saffron); outline-offset: 1px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; font-size: 0.9rem; color: var(--ink-soft); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; flex: none; }
.dot.free { background: #8bd0a5; }
.dot.away { background: var(--temple-red); }
.dot.booked { background: var(--saffron); }

/* ---------- Bride & groom profiles ---------- */
.match-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.match-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.match-photo { position: relative; aspect-ratio: 4 / 5; background: var(--grey-soft); display: grid; place-items: center; }
.match-photo img { width: 100%; height: 100%; object-fit: cover; }
.match-nophoto svg { width: 48px; height: 48px; color: var(--ink-soft); }
.match-tag {
  position: absolute; left: 8px; top: 8px;
  background: var(--temple-red); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 0.78rem; font-weight: 700;
}
.match-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.match-row { display: flex; gap: 12px; align-items: flex-start; }
.match-row-photo { width: 84px; height: 105px; object-fit: cover; border-radius: 10px; flex: none; background: var(--grey-soft); }
.gallery { margin-bottom: 12px; }
.gallery-main { width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--radius); background: var(--grey-soft); display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs button { flex: none; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.gallery-thumbs button[aria-current=true] { border-color: var(--saffron); }
.gallery-thumbs img { width: 64px; height: 80px; object-fit: cover; display: block; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 12px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.photo-tile { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.photo-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--grey-soft); }
.photo-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (min-width: 720px) { .match-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Safety alert and policy page ---------- */
.safety-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--temple-red);
  background: var(--temple-red-soft);
  color: #5c1010;
}
.safety-alert .safety-icon { font-size: 1.6rem; line-height: 1; flex: none; color: var(--temple-red); }
.safety-alert strong { display: block; font-size: 1.05rem; color: var(--temple-red); }
.safety-alert p { margin: 4px 0 6px; }
.safety-alert a { color: var(--temple-red); font-weight: 700; }
.safety-alert.compact { padding: 8px 12px; }
.safety-alert.compact p { margin: 2px 0 4px; }
.policy h2 { margin-top: 18px; font-size: 1.3rem; }
.policy h2:first-child { margin-top: 0; }
.policy ul { padding-left: 20px; margin: 6px 0; }
.policy li { margin-bottom: 8px; }

/* Yajaman ticks items off while buying samagri */
.outline-check { flex: none; width: 22px; height: 22px; margin: 2px 2px 0 0; accent-color: var(--saffron-dark); }
.outline li.done .outline-text { text-decoration: line-through; opacity: 0.6; }
.samagri-progress { margin: 6px 0 2px; font-weight: 600; }

.site-footer .visitors { margin-bottom: 6px; font-weight: 600; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; min-height: 32px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink);
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.chip span { font-size: 0.75rem; padding: 0 6px; border-radius: 999px; background: var(--saffron-soft); color: var(--saffron-dark); }
.chip.active { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.chip.active span { background: rgba(255, 255, 255, 0.25); color: #fff; }
.chip:focus-visible { outline: 3px solid rgba(232, 115, 12, 0.45); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Availability: hours */
.cal-day.partly { background: linear-gradient(90deg, var(--saffron-soft) 50%, var(--green-soft) 50%); border-color: #f2c795; color: var(--saffron-dark); }
a.cal-day { text-decoration: none; cursor: pointer; }
.cal-day.open { outline: 3px solid var(--temple-red); outline-offset: 1px; }
.dot.partly { background: linear-gradient(90deg, var(--saffron) 50%, #7bc496 50%); }
.busy-line { display: block; font-size: 0.9rem; color: var(--ink-soft); }
.day-panel .meta li { align-items: center; gap: 8px; }
.day-panel .meta .grow { flex: 1; }
.day-panel .sub-form { margin-top: 14px; }

/* ---------- Notifications ---------- */
.bell { position: relative; }
.bell-count {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--temple-red); color: #fff; font-size: 0.7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.notice-item { margin: 0; }
.notice-row {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 8px 0;
}
.notice-row.unread { border-left: 5px solid var(--saffron); background: var(--saffron-soft); }
.notice-title { display: block; font-weight: 700; }
.notice-body, .notice-time { display: block; margin-top: 2px; }
.notice-time { font-size: 0.8rem; }
.push-card { margin-top: 8px; }
.live-toast {
  position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 50; max-width: 520px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.live-toast a { color: #ffd27a; font-weight: 700; }
.live-toast strong, .live-toast span { display: block; }
.push-banner { margin: 8px 0; }

/* ---------- Profile pictures ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--saffron-soft); flex: none; display: inline-block; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 52px; height: 52px; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-initial {
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--saffron-dark);
  border: 1px solid var(--line); font-family: var(--font-display);
}
.avatar-sm.avatar-initial { font-size: 1rem; }
.avatar-md.avatar-initial { font-size: 1.5rem; }
.avatar-lg.avatar-initial { font-size: 2.6rem; }
.header-avatar { display: inline-flex; align-items: center; text-decoration: none; }
.contact-with-photo { display: flex; gap: 12px; align-items: flex-start; }
.contact-with-photo .contact-body { min-width: 0; flex: 1; display: block; }
.avatar-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.avatar-link small { display: block; }
.avatar-manage { display: grid; gap: 14px; justify-items: center; text-align: center; }
.avatar-manage form { width: 100%; text-align: left; }
.page-head .avatar-lg { margin-bottom: 8px; }

/* ---------- Samagri: preview and edit modes ---------- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 12px 0; background: var(--grey-soft); border-radius: 999px; }
.mode-switch a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-weight: 700;
}
.mode-switch a.active { background: var(--saffron); color: #fff; }
.mode-switch a:focus-visible { outline: 3px solid rgba(232, 115, 12, 0.45); outline-offset: 2px; }
.preview-card .outline li { padding-top: 9px; padding-bottom: 9px; }

/* ---------- Version info ---------- */
.info-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 6px;
  border-radius: 50%; border: 1px solid var(--saffron); background: transparent; color: var(--saffron-dark);
  font: italic 700 0.85rem/1 serif; cursor: pointer; vertical-align: middle;
}
.info-btn:hover { background: var(--saffron-soft); }
.info-btn:focus-visible { outline: 3px solid rgba(232, 115, 12, 0.45); outline-offset: 2px; }
.version-dialog {
  width: min(94vw, 520px); max-height: 82vh; padding: 16px; border: 0; border-radius: 16px; color: var(--ink);
  background: var(--card, #fff); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35); overflow-y: auto;
}
.version-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.version-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.version-head h2 { margin: 0; }
.release { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.release h3 { margin: 0 0 6px; font-size: 1.05rem; }
.release ul { margin: 0; padding-left: 1.2em; }
.release li { margin: 4px 0; }
.release.current h3 { color: var(--temple-red); }

/* ---------- Urgent requests (Antim Sanskar) ---------- */
.badge-urgent { background: var(--temple-red); color: #fff; }
.urgent-card { border-left: 5px solid var(--temple-red); }
.urgent-wait { display: flex; align-items: center; gap: 10px; }
.urgent-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.3rem; color: var(--temple-red); }
.category-title { margin: 18px 0 6px; font-size: 1.05rem; color: var(--temple-red); }
.category-title small { display: block; font-weight: 400; color: var(--ink-soft); }

/* Admin tools on the public ready-made lists page */
.admin-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.admin-tools form { margin: 0; display: inline-flex; }
.admin-tools .btn { min-width: 44px; }
.muted-card { opacity: 0.8; border-style: dashed; }

.urgent-entry { text-decoration: none; color: inherit; border-left: 5px solid var(--temple-red); }
.urgent-entry:hover { background: var(--saffron-soft); }

/* Ceremony picture or icon */
.ceremony-mark { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--saffron-soft); color: var(--saffron); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.ceremony-mark svg { width: 26px; height: 26px; }
.ceremony-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.with-mark { display: flex; align-items: center; gap: 10px; margin: 0; }
.icon-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.icon-choice { position: relative; cursor: pointer; }
.icon-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.icon-choice span { width: 44px; height: 44px; border: 2px solid #e5ded3; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.icon-choice svg { width: 24px; height: 24px; }
.icon-choice input:checked + span { border-color: var(--saffron); background: var(--saffron-soft); color: var(--saffron); }
.icon-choice input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* Open/close arrow after a collapsible summary: points down when it can be opened, up when open */
details > summary .chevron { display: inline-flex; flex: 0 0 auto; margin-left: 6px; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--saffron-soft); }
details > summary .chevron svg { width: 16px; height: 16px; margin: 0; transition: transform .2s; }
details[open] > summary .chevron svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { details > summary .chevron svg { transition: none; } }
.samagri-box > summary .chevron { background: #fff; }

/* Invitation to rate completed pujas */
.feedback-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px; border: 1px solid var(--saffron); border-radius: 12px; background: var(--saffron-soft); }
.feedback-invite-text { flex: 1 1 220px; min-width: 0; }
.feedback-invite-text strong, .feedback-invite-text span { display: block; }
.feedback-invite .btn svg { width: 18px; height: 18px; }
.feedback-ask { margin: 0 0 6px; }

/* Shared ceremony: the family's share box, the relatives' page and the summary */
.share-box { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--saffron); background: #fff; }
.share-box > summary { font-weight: 700; gap: 6px; }
.share-box > summary .count { margin-left: 4px; background: var(--saffron); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 0.85rem; }
.share-box .card-actions { margin-top: 10px; }
.event-summary { margin-top: 12px; }
.event-summary h4 { margin: 12px 0 6px; }
.stats.compact { grid-template-columns: repeat(3, 1fr); }
.stats.compact .stat .num { font-size: 1.3rem; }
.stats.compact .stat .label { font-size: 0.85rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid #eee4d8; overflow-wrap: anywhere; }
.plain-list li small { flex-basis: 100%; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 0.9rem; }
.event-head h1 { margin: 0; }
.event-message { margin: 10px 0 0; font-style: italic; overflow-wrap: anywhere; }
.amount-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pay-result { min-height: 1.2em; margin: 8px 0; font-weight: 600; }
.pay-result.ok { color: var(--green); }
.pay-result.error { color: var(--temple-red); }
.small { font-size: 0.88rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Front page (redesigned) ---------- */
.landing-hero { position: relative; overflow: hidden; isolation: isolate; }
.landing-hero .hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.landing-hero .hero-signin { margin-top: 14px; color: var(--ink-soft); }
.hero-diya { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #fff3c4 0%, #ffc56b 45%, var(--saffron) 100%); color: #fff;
  box-shadow: 0 0 0 6px rgba(232, 115, 12, 0.12), 0 0 32px rgba(255, 170, 60, 0.55); }
.hero-diya svg { width: 32px; height: 32px; }
.landing-hero.is-drawn { padding-top: 40px; padding-bottom: 36px; }
.hero-mandala { position: absolute; z-index: 0; width: 520px; height: 520px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: var(--saffron); opacity: 0.14; animation: mandala-turn 120s linear infinite; }
@keyframes mandala-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-mandala { animation: none; } }

/* With a picture: the picture fills the hero and the words sit on a dark wash so they stay readable. */
.landing-hero.has-photo { min-height: 78vh; display: flex; align-items: flex-end; padding: 96px 16px 32px; background: #2b1d12; }
.landing-hero .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.landing-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 10, 2, 0.15) 0%, rgba(20, 10, 2, 0.45) 45%, rgba(20, 10, 2, 0.85) 100%); }
.landing-hero.has-photo .hero-inner { color: #fff; }
.landing-hero.has-photo h1 { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.landing-hero.has-photo .tag { color: #ffd59a; }
.landing-hero.has-photo p, .landing-hero.has-photo .hero-signin { color: rgba(255, 255, 255, 0.9); }
.landing-hero.has-photo .hero-signin a { color: #ffd59a; }
.landing-hero.has-photo .btn-outline { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; backdrop-filter: blur(4px); }
.ai-label { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.02em; background: rgba(0, 0, 0, 0.55); color: #fff; }

.landing { padding-top: 8px; }
.landing .features > .card { margin: 0; }
.landing-section { margin-top: 28px; }
.landing-title { text-align: center; font-size: 1.8rem; margin: 0 0 14px; }
.landing-title::after { content: ""; display: block; width: 56px; height: 3px; margin: 8px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent); }
.center { text-align: center; }

.trust-strip { list-style: none; margin: -18px auto 0; padding: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  position: relative; z-index: 2; background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(80, 40, 0, 0.1); max-width: 720px; }
.trust-strip li { display: flex; align-items: baseline; gap: 6px; }
.trust-strip strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--saffron-dark); }
.trust-strip span { color: var(--ink-soft); font-size: 0.92rem; }

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.how-steps li { text-align: left; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.how-steps h3 { margin: 0 0 2px; }
.how-steps p { margin: 0; color: var(--ink-soft); }
.step-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ffb562, var(--saffron-dark)); }

.ceremony-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ceremony-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s; min-width: 0; }
.ceremony-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(80, 40, 0, 0.12); border-color: var(--saffron); }
.ceremony-tile .tile-text { min-width: 0; overflow-wrap: anywhere; }
.ceremony-tile strong, .ceremony-tile small { display: block; }
.ceremony-tile small { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .ceremony-tile { transition: none; } .ceremony-tile:hover { transform: none; } }

.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.gallery-card { position: relative; margin: 0; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-card figcaption { padding: 10px 12px; font-size: 0.95rem; color: var(--ink-soft); }

.pandit-band { margin-top: 32px; padding: 22px 18px; border-radius: 18px; display: grid; gap: 14px; color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(255, 213, 154, 0.35), transparent 50%), linear-gradient(135deg, var(--temple-red) 0%, #6b1010 100%); }
.pandit-band h2 { color: #fff; margin: 0 0 4px; }
.pandit-band p { margin: 0; color: rgba(255, 255, 255, 0.9); }
.pandit-band .btn-primary { justify-self: start; }

.admin-pic { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; display: block; }
.prompt-idea { padding: 10px 0; border-bottom: 1px solid var(--line); }
.prompt-idea p { margin: 4px 0 8px; color: var(--ink-soft); font-size: 0.93rem; }

@media (min-width: 720px) {
  .landing-hero.has-photo { min-height: 70vh; padding: 120px 24px 48px; }
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .how-steps li { flex-direction: column; }
  .ceremony-tiles { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-auto-columns: 40%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pandit-band { grid-template-columns: 1fr auto; align-items: center; padding: 28px; }
  .pandit-band .btn-primary { justify-self: end; }
}
@media (min-width: 960px) {
  .ceremony-tiles { grid-template-columns: repeat(4, 1fr); }
  .gallery-strip { grid-auto-columns: 31%; }
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Policy pages ---------- */
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.legal-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; }
.legal-nav a.active { background: var(--saffron); border-color: var(--saffron); color: #fff; font-weight: 600; }
.legal-short { border-color: var(--saffron); background: linear-gradient(180deg, #fff 0%, var(--saffron-soft) 100%); }
.legal-short h2 { margin-top: 0; }
.policy h2 { scroll-margin-top: 80px; }
.legal-contact { list-style: none; margin: 0; padding: 0; }
.legal-contact li { display: grid; grid-template-columns: 9rem 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.legal-contact strong { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 420px) { .legal-contact li { grid-template-columns: 1fr; gap: 0; } }
.check.consent { margin: 14px 0 6px; }
.check.consent a { font-weight: 600; }

/* ---------- Turn groups (baari) ---------- */
.turn-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 4px; }
.turn-tabs a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.turn-tabs a svg { width: 16px; height: 16px; }
.turn-tabs a.active { background: var(--saffron); border-color: var(--saffron); color: #fff; font-weight: 600; }
.turn-group-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.member-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; margin-right: 4px; flex: none; }
.mc-0 { background: #e8730c; } .mc-1 { background: #2e7d4f; } .mc-2 { background: #2f6db5; } .mc-3 { background: #9e1b1b; }
.mc-4 { background: #8a4fbf; } .mc-5 { background: #c79a00; } .mc-6 { background: #13878a; } .mc-7 { background: #6b5a4b; }
.count-rows { list-style: none; margin: 8px 0 10px; padding: 0; }
.count-rows li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.count-rows .count-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.count-rows .count-total { font-family: var(--font-display); font-size: 1.4rem; color: var(--saffron-dark); min-width: 2ch; text-align: right; }
.clash-box { border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; border: 1px solid; }
.clash-box ul { margin: 6px 0 0; padding-left: 18px; }
.clash-box li { margin: 3px 0; overflow-wrap: anywhere; }
.clash-box.gentle { background: #fff8e6; border-color: #e7c66a; }
.clash-box.clear { background: #fff0e0; border-color: var(--saffron); }
.clash-box.strong { background: var(--temple-red-soft); border-color: var(--temple-red); }
.clash-box li.strong { font-weight: 700; color: var(--temple-red); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-head h2 { margin: 0; font-size: 1.4rem; }
.member-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0 0 10px; font-size: 0.9rem; color: var(--ink-soft); }
.member-legend li { display: flex; align-items: center; }
.day-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 5px; }
.day-key.partly, .group-cal td.partly a { background: #fff0d6; }
.day-key.full, .group-cal td.full a { background: #f6d2cf; }
.group-cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; margin-bottom: 14px; }
.group-cal th { font-size: 0.75rem; color: var(--ink-soft); font-weight: 600; }
.group-cal td { padding: 0; }
.group-cal td a { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 48px; padding: 4px 2px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.group-cal td.other a { opacity: 0.45; }
.group-cal td.today a { border-color: var(--saffron); border-width: 2px; }
.group-cal td.chosen a { outline: 2px solid var(--saffron-dark); outline-offset: 1px; }
.group-cal .num { font-weight: 700; font-size: 0.95rem; }
.group-cal .dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.group-cal .dots .member-dot { width: 7px; height: 7px; margin: 0; }

/* ---------- Find a Brahman ---------- */
.directory-filter { margin-top: 10px; }
.directory-card .directory-top { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.directory-card h3 { margin: 0; }
.directory-bio { margin: 6px 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.offer-list { list-style: none; margin: 8px 0 12px; padding: 0; }
.offer-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.community-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.community-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center; }
.community-tile strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--saffron-dark); }
.community-tile span { color: var(--ink-soft); font-size: 0.9rem; }
.community-tile:hover { border-color: var(--saffron); }
.offer-row { display: flex; align-items: center; gap: 8px; }
.offer-row .check { flex: 1; margin: 4px 0; }
.offer-row input[type=number] { width: 7.5rem; flex: none; }
@media (min-width: 720px) { .community-tiles { grid-template-columns: repeat(4, 1fr); } }
