/* =========================================================
   Shashi Charitable Trust — main stylesheet
   ---------------------------------------------------------
   1. Design tokens (colours, fonts, spacing) — change these
      to restyle the whole site.
   2. Base elements
   3. Layout helpers
   4. Components (header, buttons, cards, dashboard, forms)
   5. Utilities
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand: moonlit night (trust) + marigold (warmth) + moonlight cream */
  --c-night: #1c2552;        /* primary — deep indigo night */
  --c-night-2: #2b3a7a;      /* lighter indigo */
  --c-moon: #f4efe2;         /* moonlight cream */
  --c-marigold: #e19a2b;     /* warm accent */
  --c-marigold-dark: #a8650a;/* accessible accent for text on light */
  --c-leaf: #2f7a5f;         /* positive / completed */
  --c-alert: #b4442f;        /* delayed / error */

  --c-bg: #fbf8f2;
  --c-surface: #ffffff;
  --c-surface-2: #f3eee3;
  --c-text: #1d2233;
  --c-text-soft: #4b5168;
  --c-border: #e2dccd;

  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 37, 82, .06), 0 6px 20px rgba(28, 37, 82, .07);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --space: clamp(56px, 8vw, 96px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--c-night); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--c-night-2); text-underline-offset: 3px; }
a:hover { color: var(--c-marigold-dark); }
:focus-visible { outline: 3px solid var(--c-marigold); outline-offset: 2px; border-radius: 4px; }
ul, ol { padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--c-night); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--alt { background: var(--c-surface-2); }
.section--night { background: var(--c-night); color: var(--c-moon); }
.section--night h2, .section--night h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-marigold-dark); margin-bottom: 10px;
}
.section--night .eyebrow { color: var(--c-marigold); }
.lead { font-size: 1.2rem; color: var(--c-text-soft); }
.section--night .lead { color: #d9d6e8; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* ---------- 4. Components ---------- */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-night); }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-soft); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 8px 12px; font: inherit; color: var(--c-night); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--c-text); font-weight: 500; font-size: .96rem;
}
.site-nav a:hover { background: var(--c-surface-2); color: var(--c-night); }
.site-nav a[aria-current="page"] { color: var(--c-night); background: var(--c-surface-2); font-weight: 700; }
.site-nav .btn { margin-left: 8px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg); border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; }
  .site-nav a { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-night); color: #fff; }
.btn-primary:hover { background: var(--c-night-2); color: #fff; }
.btn-accent { background: var(--c-marigold); color: var(--c-night); }
.btn-accent:hover { background: #eaad4d; color: var(--c-night); }
.btn-ghost { background: transparent; color: var(--c-night); border-color: var(--c-night); }
.btn-ghost:hover { background: var(--c-night); color: #fff; }
.section--night .btn-ghost { color: #fff; border-color: #fff; }
.section--night .btn-ghost:hover { background: #fff; color: var(--c-night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: #fff; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 var(--space); }
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.hero p.lead { max-width: 560px; }
.hero-art { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--c-night); }
.page-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 5vw, 56px); background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); }
.page-hero .lead { max-width: 720px; }

/* Cards */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.section--night .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; color: var(--c-moon); }
.icon {
  width: 52px; height: 52px; padding: 12px; border-radius: 14px;
  background: var(--c-surface-2); color: var(--c-night); margin-bottom: 16px;
}
.icon svg { width: 28px; height: 28px; }
.section--night .icon { background: rgba(225,154,43,.16); color: var(--c-marigold); }

.figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface-2); }
.figure figcaption { font-size: .82rem; color: var(--c-text-soft); padding: 8px 14px; background: var(--c-surface); }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 24px; padding-top: 64px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; top: 20px; left: 24px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-night); color: #fff; font-weight: 700; font-size: .95rem;
}
.steps strong { display: block; color: var(--c-night); margin-bottom: 4px; }

/* Check list */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Compliance panel */
.compliance-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.compliance-item {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
}
.compliance-item .label { font-weight: 700; color: var(--c-night); }
.compliance-item .value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; word-break: break-all; }
.compliance-item .meta { font-size: .82rem; color: var(--c-text-soft); }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: var(--c-surface-2); color: var(--c-text-soft); border: 1px solid var(--c-border);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--pending, .badge--planned { color: #7a5a12; background: #fbf0d9; border-color: #efd9a8; }
.badge--in-progress { color: #2b3a7a; background: #e6e9f7; border-color: #c7cdee; }
.badge--funded { color: #5b3a8a; background: #efe7f8; border-color: #d8c8ee; }
.badge--completed, .badge--approved { color: #1f5e47; background: #e2f2ea; border-color: #b9dfcc; }
.badge--delayed { color: #8f3322; background: #fbe6e1; border-color: #f0c2b8; }

/* Notices */
.notice {
  border-left: 4px solid var(--c-marigold); background: #fdf5e6; padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 24px; color: #5a4210;
}
.notice--error { border-color: var(--c-alert); background: #fbe9e5; color: #7a2b1c; }
.notice--ok { border-color: var(--c-leaf); background: #e5f3ec; color: #1f5e47; }

/* "To be written" placeholders — visible on purpose so nothing goes live unfinished */
.todo {
  border: 2px dashed #d8b46a; background: #fffaf0; color: #6b5313; border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .95rem;
}
.todo::before { content: "TO FILL IN: "; font-weight: 700; letter-spacing: .04em; }

/* Stats */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; }
.stat-value { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 700; color: var(--c-night); line-height: 1.1; }
.stat-label { color: var(--c-text-soft); font-size: .95rem; }
.section--night .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section--night .stat-value { color: #fff; }
.section--night .stat-label { color: #d9d6e8; }

/* Dashboard */
.dash-block { margin-bottom: 56px; }
.dash-block > h2 { margin-bottom: 6px; }
.dash-block > .hint { color: var(--c-text-soft); margin-bottom: 20px; font-size: .95rem; }
.updated { font-size: .9rem; color: var(--c-text-soft); }

.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto; align-items: center; gap: 14px; }
.bar-row .bar-label { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.bar-row .bar-label svg { width: 20px; height: 20px; flex: none; }
.bar-row .bar-value { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--c-night); min-width: 64px; text-align: right; }
.bar-track { height: 14px; border-radius: 999px; background: var(--c-surface-2); overflow: hidden; border: 1px solid var(--c-border); }
.bar-fill { height: 100%; border-radius: 999px; background: var(--c-night-2); min-width: 3px; width: 0; transition: width .8s ease; }
@media (max-width: 560px) {
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
}

.timeline-chart { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; overflow-x: auto; }
.timeline-chart svg { min-width: 560px; width: 100%; }
.timeline-chart .axis { fill: var(--c-text-soft); font-size: 11px; font-family: var(--font-body); }
.timeline-chart .col { fill: var(--c-night-2); }
.timeline-chart .col:hover { fill: var(--c-marigold); }
.timeline-chart .grid-line { stroke: var(--c-border); stroke-width: 1; }

.district-card h3 { margin-bottom: 2px; }
.district-card .meta { color: var(--c-text-soft); font-size: .9rem; margin-bottom: 18px; }
.coverage { margin-bottom: 16px; }
.coverage-head { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; margin-bottom: 6px; }
.coverage-head strong { font-variant-numeric: tabular-nums; }
.bar-fill--accent { background: var(--c-marigold); }
.bar-fill--leaf { background: var(--c-leaf); }

.table-wrap { overflow-x: auto; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: top; font-size: .95rem; }
.data-table th { background: var(--c-surface-2); color: var(--c-night); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-progress { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.mini-progress .bar-track { flex: 1; height: 8px; }

@media (max-width: 720px) {
  .data-table--stack thead { display: none; }
  .data-table--stack, .data-table--stack tbody, .data-table--stack tr, .data-table--stack td { display: block; width: 100%; }
  .data-table--stack tr { border-bottom: 1px solid var(--c-border); padding: 10px 0; }
  .data-table--stack td { border: 0; padding: 6px 16px; display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; text-align: left; }
  .data-table--stack td::before { content: attr(data-label); font-weight: 700; color: var(--c-text-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
  .data-table--stack .num { text-align: left; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface);
  font: inherit; font-size: .9rem; cursor: pointer; color: var(--c-text);
}
.chip[aria-pressed="true"] { background: var(--c-night); border-color: var(--c-night); color: #fff; }

.story-card .story-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: .85rem; color: var(--c-text-soft); }
.story-card dl { margin: 12px 0 0; display: grid; gap: 8px; }
.story-card dt { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-soft); }
.story-card dd { margin: 0 0 6px; }

.log-list { list-style: none; padding: 0; margin: 0; }
.log-list li { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-border); align-items: start; }
.log-list time { font-weight: 700; color: var(--c-night); font-variant-numeric: tabular-nums; }
.log-list .log-people { font-weight: 700; white-space: nowrap; color: var(--c-night); }
.log-list .log-sub { font-size: .88rem; color: var(--c-text-soft); }
@media (max-width: 560px) { .log-list li { grid-template-columns: 1fr auto; } .log-list time { grid-column: 1 / -1; } }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--c-text-soft); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-surface); font: inherit; color: var(--c-text);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-night-2); outline: none; box-shadow: 0 0 0 3px rgba(43, 58, 122, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--c-alert); }
.field .error { color: var(--c-alert); font-size: .88rem; margin-top: 4px; min-height: 1em; }
.field-check { display: flex; gap: 10px; align-items: flex-start; }
.field-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }

/* Footer */
.site-footer { background: var(--c-night); color: #cfd2e6; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-marigold); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 36px; }
.footer-grid h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand span { font-family: var(--font-head); font-size: 1.2rem; color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }

/* ---------- 5. Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--c-text-soft); }
.small { font-size: .88rem; }
.max-680 { max-width: 680px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-12 { margin-top: 12px; }
.btn-row--center { justify-content: center; }
.split--top { align-items: start; }
.logo-404 { margin: 0 auto 24px; }
[hidden] { display: none !important; }
.data-table td:first-child { white-space: nowrap; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 16px; } }
/* Footer: keep the trust name on one line */
.footer-brand span { white-space: nowrap; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(300px, 1.5fr) repeat(3, 1fr); } }
@media (max-width: 360px) { .footer-brand span { white-space: normal; } }

/* Contact menu ("Talk to us") */
.contact-options { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.contact-option {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface);
  text-decoration: none; color: var(--c-text); transition: border-color .15s ease, background-color .15s ease;
}
a.contact-option:hover { border-color: var(--c-night-2); background: var(--c-surface-2); color: var(--c-text); }
.contact-option-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-night); }
.contact-option-icon svg { width: 24px; height: 24px; }
.contact-option--whatsapp .contact-option-icon { background: #e3f4ea; color: #1f7a4a; }
.contact-option-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact-option-text strong { color: var(--c-night); }
.contact-option-text span { font-size: .92rem; color: var(--c-text-soft); overflow-wrap: anywhere; }
.contact-option.is-disabled { opacity: .7; cursor: default; background: var(--c-bg); }
.contact-option.is-disabled .badge { margin-top: 4px; font-size: .75rem; }

.contact-dialog {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  border: 0; border-radius: var(--radius); padding: 24px; background: var(--c-bg); color: var(--c-text);
  box-shadow: 0 20px 60px rgba(28, 37, 82, .35);
}
.contact-dialog::backdrop { background: rgba(20, 26, 58, .6); }
.contact-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-dialog-head h2 { margin: 0; font-size: 1.5rem; }
.contact-dialog-close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-surface);
  font-size: 1.5rem; line-height: 1; color: var(--c-night); cursor: pointer;
}
.contact-dialog-close:hover { background: var(--c-surface-2); }

/* Get Involved: embedded Google Form */
[id] { scroll-margin-top: 88px; }
.gform-card {
  max-width: 820px; margin: 0 auto; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.gform-card-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px;
  background: var(--c-night); color: #fff;
}
.gform-card-head img { width: 40px; height: 40px; flex: none; }
.gform-card-head div { display: flex; flex-direction: column; }
.gform-card-head .muted { color: #cfd2e6; }
.gform-card [data-google-form] { padding: 8px 8px 0; }
.gform-frame-wrap { position: relative; min-height: 320px; }
.gform-frame { display: block; width: 100%; border: 0; background: var(--c-surface); }
.gform-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 12px; padding-top: 80px; color: var(--c-text-soft); background: var(--c-surface);
}
.gform-spinner {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--c-border); border-top-color: var(--c-marigold);
  animation: gform-spin 1s linear infinite;
}
@keyframes gform-spin { to { transform: rotate(360deg); } }
.gform-fallback { text-align: center; padding: 14px 16px 18px; margin: 0; }
.gform-placeholder { text-align: center; padding: 40px 24px 36px; }
.gform-placeholder .badge { margin: 0 auto 14px; }
.gform-placeholder h3 { font-size: 1.4rem; }
.gform-placeholder .muted { max-width: 460px; margin-left: auto; margin-right: auto; }
.section-head.center { text-align: center; }
@media (max-width: 560px) { .gform-card-head { padding: 14px 16px; } .gform-card [data-google-form] { padding: 0; } }

/* Recurring programme card (Tue & Sat Annadanam) */
.program-slot { margin-top: 32px; }
.program-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-top: 4px solid var(--c-marigold);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 20px;
}
.program-head { display: flex; gap: 18px; align-items: flex-start; }
.program-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 2px 0 8px; }
.program-head .eyebrow { margin-bottom: 0; }
.program-head-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fbf0d9; color: var(--c-marigold-dark); }
.program-head-icon svg { width: 30px; height: 30px; }
.program-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.program-tag { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--c-surface-2); color: var(--c-night); border: 1px solid var(--c-border); }
.program-next {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--c-night); color: #fff; width: fit-content; max-width: 100%;
}
.program-next svg { width: 26px; height: 26px; flex: none; color: var(--c-marigold); }
.program-next span { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #cfd2e6; }
.program-next strong { font-size: 1.1rem; }
.program-summary { margin: 0; font-size: 1.05rem; }
.program-facts { margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.program-facts > div { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 14px 16px; }
.program-facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-marigold-dark); margin-bottom: 4px; }
.program-facts dd { margin: 0; font-size: .95rem; }
.program-chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.program-chips li { font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-border); }
.program-live { border-top: 1px solid var(--c-border); padding-top: 18px; }
.program-live h4 { margin: 0 0 12px; font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-soft); }
.prog-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: 16px; }
.prog-stat { display: flex; flex-direction: column; }
.prog-stat strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--c-night); line-height: 1.15; }
.prog-stat span { font-size: .88rem; color: var(--c-text-soft); }
.program-card--compact { gap: 16px; }
.program-compact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.prog-stats--inline { display: flex; gap: 32px; margin: 0; }
.program-compact-row .btn { margin-left: auto; }
@media (max-width: 640px) { .program-compact-row .btn { margin-left: 0; width: 100%; } .program-head-icon { width: 46px; height: 46px; } }

/* Partner page: support pathway (now → after 12A/80G → after CSR-1) */
.pathway { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pathway-step { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pathway-step h3 { margin: 4px 0 0; }
.pathway-step p { margin: 0; }
.pathway-step--now { border-top: 4px solid var(--c-leaf); }
.pathway-step:not(.pathway-step--now) { border-top: 4px solid #efd9a8; }
.grid-4 .card .badge { margin-bottom: 10px; }
.donate-details dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0 14px; }
.donate-details dt { font-weight: 700; color: var(--c-text-soft); }
.donate-details dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
