/* Supporting pages share the homepage system: white paper, logo green and orange, Lato throughout, Mukta for Marathi. */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--space-3); color: var(--ink-600); font-size: var(--fs-sm); margin-bottom: var(--space-6); }
.breadcrumbs a { color: inherit; text-underline-offset: 4px; }
.page-hero { padding-block: var(--space-6) var(--space-7); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--layout-gap); }
.page-hero h1 { font-size: var(--fs-2xl); line-height: var(--lh-tight); color: var(--ink-900); letter-spacing: -.035em; text-wrap: balance; margin-block: var(--space-4) var(--space-5); }
.page-hero .eyebrow { font-size: var(--fs-sm); }
.page-lead { font-size: var(--fs-md); color: var(--ink-600); line-height: var(--lh-body); }
.page-hero figure, .feature-story figure { margin: 0; }
.page-hero figure img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.page-hero figcaption, .feature-story figcaption, .image-note { font-size: var(--fs-xs); color: var(--ink-600); margin-top: var(--space-3); line-height: var(--lh-body); }
.page-hero__grid--text { grid-template-columns: minmax(0, 1fr); max-width: 850px; }
.page-hero__grid--text .page-lead { max-width: 52ch; }
.page-band { background: var(--green-800); color: var(--white); }
.belief-band { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-6); }
.belief-band > span { color: var(--marigold-300); font-size: var(--fs-md); }
.belief-band p { font-size: var(--fs-xl); line-height: var(--lh-snug); margin: 0; }
.editorial-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--layout-gap-wide); }
.editorial-split p { color: var(--ink-600); }
.text-link { line-height: var(--lh-copy); display: inline-flex; align-items: center; min-height: 44px; color: var(--green-800); font-weight: 600; text-underline-offset: 5px; }
.action-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin-top: var(--space-5); }
.action-group > .text-link { min-height: 48px; }
.action-group--stacked { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
:where(.page-hero__grid, .editorial-split, .feature-story, .contact-layout, .occasion-feature, .principle-grid, .footer__grid, .cta) > * { min-width: 0; }
:where(h1, h2, h3, .text-link, .btn, .record-status) { overflow-wrap: break-word; }
.editorial-heading { display: flex; align-items: flex-start; gap: var(--space-5); margin-bottom: var(--space-6); border-bottom: 1px solid var(--line); padding-bottom: var(--space-5); }
.editorial-heading .eyebrow { font-size: var(--fs-sm); }
.editorial-heading h2 { margin-bottom: 0; }
.editorial-heading > p { margin-left: auto; max-width: 35ch; }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.principle-grid article { border-top: 2px solid var(--green-800); padding-top: var(--space-4); }
.principle-mark { font-size: var(--fs-sm); color: var(--saffron-700); display: block; margin-bottom: var(--space-5); }
.principle-grid h3 { font-size: var(--fs-lg); }
.principle-grid p { color: var(--ink-600); margin: 0; }
.feature-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--layout-gap); align-items: center; }
.feature-story > img, .feature-story figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature-story > div > p { color: var(--ink-600); }
.seva-detail { border-top: 1px solid var(--line); }
.seva-detail:nth-of-type(odd) { background: var(--paper-shade); }
.seva-detail:nth-of-type(odd) figure { order: 2; }
.care-list { padding: 0; list-style: none; margin: var(--space-5) 0; }
.care-list li { border-bottom: 1px solid var(--line); padding: var(--space-3) 0 var(--space-3) var(--space-5); position: relative; }
.care-list li::before { content: ''; position: absolute; left: 4px; top: 1.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--green-800); }
.occasion-feature { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: var(--space-8); align-items: center; }
.occasion-feature img { width: 100%; height: auto; }
.occasion-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.occasion-tags span { border: 1px solid var(--line); padding: var(--space-1) var(--space-3); font-size: var(--fs-sm); }
.content-page .cta .eyebrow, .cta .eyebrow { color: var(--marigold-300); }
.content-page .cta h2 { max-width: 25ch; }
.nav [aria-current="page"] { color: var(--green-800); text-decoration: underline; text-decoration-color: var(--saffron-700); text-underline-offset: 7px; }
.footer h3 { font-size: var(--fs-base); }
.footer .footer__grid > div > a:not(.footer-brand) { display: block; padding-block: var(--space-1); text-underline-offset: 4px; width: fit-content; }
.footer-brand { display: block; color: var(--white) !important; font-size: var(--fs-md); line-height: var(--lh-snug); font-weight: 700; text-decoration: none; margin-bottom: var(--space-4); }
.footer-meta { font-size: var(--fs-xs); color: var(--footer-muted); margin-top: var(--space-4); }
address.footer-meta { font-style: normal; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.filter-label { color: var(--ink-600); margin-right: var(--space-3); font-size: var(--fs-sm); }
.filter-bar button { cursor: pointer; border: 1px solid var(--line); padding: var(--space-2) var(--space-4); font: inherit; font-size: var(--fs-sm); background: transparent; color: var(--ink-900); min-height: 44px; }
.filter-bar button[aria-pressed="true"] { background: var(--green-800); color: var(--white); border-color: var(--green-800); }
.filter-bar button:hover:not([aria-pressed="true"]) { background: var(--green-100); }
.results-note { color: var(--ink-600); font-size: var(--fs-sm); margin-block: var(--space-4); }
.gallery-section, .faq-page-section, .policy-section { padding-top: var(--space-2); }
.story-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.story-gallery figure { margin: 0; }
.story-gallery .ph { aspect-ratio: 4/5; }
.story-gallery figure:nth-child(3n+2) .ph { aspect-ratio: 4/5; }
.story-gallery figcaption { padding-top: var(--space-4); }
.story-gallery figcaption > span { color: var(--saffron-700); font-size: var(--fs-sm); }
.story-gallery h2 { font-size: var(--fs-md); margin-block: var(--space-2); }
.story-gallery p { font-size: var(--fs-sm); color: var(--ink-600); }
.lightbox { max-width: min(92vw,1100px); max-height: 94dvh; overflow: auto; }
.lightbox img { max-height: 78dvh; }
.lightbox .lightbox-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-5); color: var(--white); padding: var(--space-3); background: var(--ink-950); }
.lightbox-controls p { margin: 0; font-size: var(--fs-sm); }
.lightbox .lightbox-controls button { position: static; background: transparent; border: 1px solid var(--line-on-dark); color: var(--white); min-width: 44px; }
.faq-layout, .policy-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: var(--space-8); align-items: start; }
.faq-layout > aside, .policy-layout > aside { position: sticky; top: 110px; }
.faq-topics { flex-direction: column; align-items: stretch; margin: var(--space-4) 0; }
.faq-topics button { text-align: left; }
.site-search, .enquiry-form select, .enquiry-form textarea { font: inherit; width: 100%; border: 1px solid var(--field-line); background: var(--white); color: var(--ink-900); padding: var(--space-3) var(--space-3); border-radius: 0; }
.search-label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--space-2); }
.empty-state { padding: var(--space-7) var(--space-5); background: var(--green-100); }
.empty-state h2 { font-size: var(--fs-lg); }
.information-band { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-6); }
.information-band h2 { color: var(--white); font-size: var(--fs-md); margin-bottom: var(--space-2); }
.information-band p { font-size: var(--fs-sm); margin: 0; }
.information-band a { margin-left: auto; color: var(--white); font-size: var(--fs-sm); min-width: 20ch; }
.status-dot { width: 9px; height: 9px; background: var(--marigold-500); border-radius: 50%; flex-shrink: 0; }
.record-list article { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.record-list h3 { font-size: var(--fs-md); }
.record-list p { color: var(--ink-600); margin: 0; max-width: 65ch; }
.record-status { font-size: var(--fs-xs); padding: var(--space-1) var(--space-3); color: var(--green-800); background: var(--green-50); flex-shrink: 0; }
.record-status--pending { color: var(--pending-ink); background: var(--pending-bg); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-8); align-items: start; }
.contact-status { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-4) 0; border-block: 1px solid var(--line); margin: var(--space-5) 0; font-size: var(--fs-sm); }
.enquiry-form.card { padding: var(--space-6); border: 1px solid var(--line); border-top: 3px solid var(--saffron-700); }
.enquiry-form h2 { font-size: var(--fs-lg); }
.enquiry-form > p { font-size: var(--fs-sm); color: var(--ink-600); }
.enquiry-form label { display: block; margin-block: var(--space-5) var(--space-2); font-size: var(--fs-sm); font-weight: 600; }
.enquiry-form textarea { resize: vertical; min-height: 120px; }
.enquiry-form .btn { margin-top: var(--space-4); }
#enquiry-output { margin-top: var(--space-5); border-top: 1px solid var(--line); }
#enquiry-draft { min-height: 200px; }
.policy-layout aside nav { display: grid; }
.policy-layout aside a { display: block; padding: var(--space-2) 0; color: var(--ink-600); text-underline-offset: 4px; font-size: var(--fs-sm); }
.policy-date { display: block; margin-top: var(--space-5); color: var(--ink-600); font-size: var(--fs-xs); }
.policy-layout article { min-width: 0; }
.policy-layout article > section { padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.policy-layout article h2 { font-size: var(--fs-lg); }
.policy-layout article p { color: var(--ink-600); }
.policy-notice { background: var(--green-100); padding: var(--space-5); font-size: var(--fs-sm); }
.policy-related { padding-top: var(--space-6); }
.policy-related a { display: inline-block; margin: var(--space-1) var(--space-4) var(--space-1) 0; min-height: 44px; }
.home-more { margin-top: var(--space-5); }
.home-care-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; gap: var(--space-5); color: var(--white); padding-block: var(--space-5); }
.home-care-band strong { display: block; font-size: var(--fs-md); margin-bottom: var(--space-1); }
.home-care-band span { color: var(--on-green-muted); font-size: var(--fs-sm); }
@media (min-width:900px) and (max-width:1150px) { .header .brand span { max-width: 20ch; font-size: var(--fs-xs); } .header .nav { gap: var(--space-4); } .header .nav a { font-size: var(--fs-sm); } }
@media (max-width:899px) {
 .page-hero__grid { gap: var(--space-6); }
 .page-hero h1 { font-size: var(--fs-2xl); }
 .principle-grid { gap: var(--space-5); }
 .faq-layout, .policy-layout { grid-template-columns: 220px minmax(0,1fr); gap: var(--space-6); }
 .contact-layout { gap: var(--space-6); }
 .story-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:899px) {
 .cta .eyebrow { justify-content: center; }
 .cta h2 { margin-inline: auto; }
 .cta__ctas { align-items: stretch; }
}
@media (max-width:799px) {
 .page-hero__grid, .editorial-split, .feature-story, .occasion-feature, .contact-layout, .faq-layout, .policy-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
 .page-hero__grid > figure { width: 100%; }
 .feature-story > img, .feature-story figure img { aspect-ratio: 4/3; }
 .occasion-feature img { max-width: 320px; margin-inline: auto; }
 .page-hero h1 br, .editorial-split h2 br, .feature-story h2 br { display: none; }
 .faq-layout > aside, .policy-layout > aside { position: static; }
 .faq-topics { flex-direction: row; }
 .seva-detail:nth-of-type(odd) figure { order: 0; }
 .information-band { display: grid; grid-template-columns: 9px minmax(0,1fr); gap: var(--space-4); }
 .information-band a { grid-column: 2; margin-left: 0; min-width: 0; }
 .record-list article { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
 .record-status { max-width: 100%; }
 .principle-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width:599px) {
 .action-group:not(.action-group--stacked) { flex-direction: column; align-items: stretch; gap: var(--space-3); }
 .action-group > .text-link { align-self: flex-start; }
 .page-hero { padding-block: var(--space-5) var(--space-6); }
 .breadcrumbs { margin-bottom: var(--space-5); font-size: var(--fs-xs); }
 .page-hero__grid, .editorial-split, .feature-story, .occasion-feature, .contact-layout, .faq-layout, .policy-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
 .page-hero h1 { font-size: var(--fs-2xl); margin-block: var(--space-3) var(--space-4); }
 .page-hero h1 br { display: none; }
 .page-hero figure img { aspect-ratio: 4/3; }
 .page-lead { font-size: var(--fs-md); }
 .belief-band { display: block; padding-block: var(--space-6); }
 .belief-band p { margin-top: var(--space-4); }
 .editorial-heading { gap: var(--space-4); margin-bottom: var(--space-5); }
 .principle-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
 .principle-mark { margin-bottom: var(--space-4); }
 .feature-story > img, .feature-story figure img { aspect-ratio: 4/3; }
 .seva-detail:nth-of-type(odd) figure { order: 0; }
 .occasion-feature img { max-width: 260px; margin-inline: auto; }
 .story-gallery { gap: var(--space-5) var(--space-3); }
 .story-gallery figcaption > span { font-size: var(--fs-xs); }
 .story-gallery figcaption h2 { font-size: var(--fs-base); }
 .story-gallery figcaption p { font-size: var(--fs-xs); }
 .filter-bar { gap: var(--space-1); }
 .filter-bar button { padding: var(--space-2) var(--space-3); font-size: var(--fs-sm); }
 .filter-label { width: 100%; margin-bottom: var(--space-1); }
 .faq-layout > aside, .policy-layout > aside { position: static; }
 .faq-topics { flex-direction: row; }
 .record-list article, .information-band { flex-wrap: wrap; gap: var(--space-4); }
 .information-band a { margin-left: 0; }
 .record-status { white-space: normal; }
 .enquiry-form.card { padding: var(--space-5) var(--space-4); }
 .home-care-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .policy-layout aside nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--space-4); }
}
/* Let responsive crops determine image height rather than HTML fallback dimensions. */
.page-hero figure img, .feature-story > img, .feature-story figure img, .occasion-feature img, .content-page .cta__art { height: auto; }

/* =====================================================================
   Solstice system in the logo's colours (see design.md). Loaded last, so it
   sets the shared voice for every page: Lato Bold heads in the logo green,
   Mukta for reading and Marathi, square ruled surfaces, hard paper shadows,
   the orange pill for giving and the sun's yellow for rules only.
   ===================================================================== */
body { background: var(--paper); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; letter-spacing: -0.005em; color: var(--green-800); line-height: 1.05; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1, .page-hero h1 { font-size: var(--fs-2xl); letter-spacing: -0.005em; color: var(--green-800); line-height: 1.02; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); line-height: 1.1; }
p { text-wrap: pretty; }
a { color: var(--ink); text-decoration-color: var(--green-600); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); color: var(--green-800); }
.eyebrow { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); color: var(--accent); letter-spacing: 0; }
::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

/* Controls: the orange pill to give, a plain ink pill beside it */
.btn { border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 600; border-width: 2px; }
.btn--donate { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--donate:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper-2); }
.btn--light { color: var(--paper-2); border-color: var(--paper-2); background: transparent; }
.btn--light:hover { background: var(--paper-2); color: var(--green-800); }
.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.text-link:hover { text-decoration-color: var(--accent); }

/* Surfaces: square, ruled; a raised well takes an ink bar, a gold inset rule and the hard shadow */
.section--tint { background: var(--stone); border-block: 0; }
.section-head { border-bottom: 0; border-top: var(--rule-bar) solid var(--ink); padding-top: var(--space-5); padding-bottom: 0; }
.well, .card, .quote { background: var(--paper-2); border: var(--rule-bar) solid var(--ink); outline: var(--rule-hair) solid var(--gold); outline-offset: -8px; box-shadow: var(--shadow-card); border-radius: 0; }
.well { padding: var(--space-6); }
.warli { background: var(--green-800); color: var(--paper-2); }

/* The closing band on inner pages: the logo green, cream type */
.cta { background: var(--green-800); color: var(--paper-2); border-radius: 0; }
.cta h2, .content-page .cta h2 { color: var(--paper-2); }
.cta .eyebrow, .content-page .cta .eyebrow { color: var(--gold-2); }

/* Header: one slim line; the trust's mark on the left, the pages and Donate on the right */
.header { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: var(--rule-hair) solid var(--rule); }
.header__inner { min-height: var(--header-h); }
.brand { color: var(--green-800); gap: var(--space-3); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; letter-spacing: -.005em; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.nav a:hover, .nav [aria-current="page"] { color: var(--green-800); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 8px; }
.header .btn { min-height: 44px; font-size: var(--fs-sm); padding-inline: var(--space-5); }
@media (min-width: 900px) {
  .brand span { max-width: none; }
  .nav { margin-left: auto; gap: var(--space-6); }
  .nav a { display: inline-flex; align-items: center; }
  .header__actions { margin-left: var(--space-6); }
}
/* Home: the header floats over the hero photograph in light type */
.home .header { position: absolute; inset: 0 0 auto; z-index: 50; background: transparent; backdrop-filter: none; border-bottom-color: var(--on-night-line); }
.home .brand { color: var(--on-night-strong); }
.home .menu-btn { color: var(--on-night-strong); border: var(--rule-hair) solid var(--on-night-line); background: transparent; }
@media (min-width: 900px) {
  .home .nav a { color: var(--on-night); }
  .home .nav a:hover, .home .nav [aria-current="page"] { color: var(--on-night-strong); text-decoration-color: var(--gold); }
}

/* Footer: one closing sentence set large, the links beneath, on the logo green */
.footer { background: var(--paper); color: var(--ink-2); margin-top: 0; border-top: var(--rule-hair) solid var(--rule); }
.footer a { color: var(--footer-ink); text-decoration-color: var(--footer-line); }
.footer a:hover { color: var(--paper-2); text-decoration-color: var(--gold); }
.footer h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); color: var(--gold-2); }
.footer__grid > div:first-child { grid-column: 1 / -1; display: grid; gap: var(--space-3) var(--space-7); padding-bottom: var(--space-6); border-bottom: var(--rule-hair) solid var(--footer-rule); }
.footer__grid > div:first-child > p:not(.footer-meta) { font-family: var(--font-head); font-size: var(--fs-xl); line-height: 1.08; color: var(--paper-2); margin: 0; max-width: 22ch; }
.footer-brand { font-family: var(--font-body); font-weight: 600; color: var(--gold-2) !important; font-size: var(--fs-md); }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid > div:first-child { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; }
  .footer__grid > div:first-child > p:not(.footer-meta) { grid-column: 1; grid-row: 1 / span 2; }
}
/* Display-size page heads balance themselves; the manual breaks were set for a smaller face */
.page-hero h1 br { display: none; }
.giving-header .brand span { font-size: var(--fs-base); max-width: none; }

/* ---------- Motifs ----------
   Hand-built SVGs in assets/img/motifs/, drawn in the Warli and logo vocabulary:
   the logo's sun, a chain of Warli dancers, kolam dots, grass sprigs, a mango-leaf
   toran, a cow with her calf. Each is a single-colour shape used as a CSS mask, so
   it takes any token colour. All are decorative: pseudo-elements or aria-hidden. */
.motif-art, .toran-top::before, .toran-top::after, .page-hero::after, .trust__record::after {
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  pointer-events: none;
}

/* Kolam: a faint dot-and-petal tile under the occasions sections only; elsewhere the paper stays clean */
.toran-top { position: relative; isolation: isolate; }
.toran-top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--green-800) 9%, transparent);
  -webkit-mask-image: url("../assets/img/motifs/kolam.svg"); mask-image: url("../assets/img/motifs/kolam.svg");
  -webkit-mask-repeat: repeat; mask-repeat: repeat; -webkit-mask-size: 48px; mask-size: 48px; -webkit-mask-position: 0 0; mask-position: 0 0;
}

/* Toran: a mango-leaf garland strung across the top of the occasions sections */
.toran-top { padding-top: calc(var(--section-y) + var(--space-5)); }
.toran-top::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 44px; z-index: 0;
  background: var(--gold);
  -webkit-mask-image: url("../assets/img/motifs/toran.svg"); mask-image: url("../assets/img/motifs/toran.svg");
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-size: auto 44px; mask-size: auto 44px; -webkit-mask-position: center top; mask-position: center top;
}

/* Sprigs: grass along the foot of every inner page's head */
.page-hero { position: relative; }
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 24px;
  background: color-mix(in srgb, var(--green-800) 45%, transparent);
  -webkit-mask-image: url("../assets/img/motifs/sprigs.svg"); mask-image: url("../assets/img/motifs/sprigs.svg");
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-size: auto 24px; mask-size: auto 24px; -webkit-mask-position: left bottom; mask-position: left bottom;
}


/* The trust's record carries the logo's sun in its corner */
.trust__record { position: relative; }
.trust__record::after {
  content: ""; position: absolute; top: var(--space-5); right: var(--space-5); width: 56px; height: 56px;
  background: var(--gold);
  -webkit-mask-image: url("../assets/img/motifs/sun.svg"); mask-image: url("../assets/img/motifs/sun.svg");
}
.trust__record .well__title, .trust__record h3 { padding-right: var(--space-9); }
/* A closing call after a plain section shares its padding instead of doubling it */
.section:not(.section--tint) + .section:has(> .container > .cta) { padding-top: 0; }
/* Phones: the home header keeps its own dark bar so it never sits on a face */
@media (max-width: 1199px) { .home .header { position: sticky; background: var(--night); } }
/* Phones: a compact header so the name sits on one or two short lines beside a small Donate */
@media (max-width: 599px) {
  .header__inner { min-height: 60px; gap: var(--space-3); }
  .brand { gap: var(--space-2); }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: var(--fs-xs); max-width: 19ch; }
  .header .btn { min-height: 40px; padding-inline: var(--space-4); }
  .menu-btn { width: 40px; height: 40px; }
}
/* Item titles: the body face, bold */
h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -.005em; line-height: 1.25; font-size: var(--fs-md); }
h1, h2 { letter-spacing: -.015em; line-height: 1; }
/* One rhythm: every section takes the same block padding; tinted ones differ only in ground */
.section--tight { padding-block: var(--section-y); }
.footer h3 { color: var(--gold); }
.footer-brand { color: var(--on-night-strong) !important; }
/* Photo edges: a hairline just inside every photograph, so bright, near-white edges
   (a lit wall, a white shirt) keep a crisp boundary on the white page. Invisible on dark photos. */
.gift__photo, .split__photo, .gallery .ph, .page-hero figure, .feature-story figure, .seva-detail figure, .story-gallery .ph { position: relative; }
.gift__photo::after, .split__photo::after, .gallery .ph::after, .page-hero figure::after, .feature-story figure::after, .seva-detail figure::after, .story-gallery .ph::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; background: none; padding: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}
.feature-story > img, .occasion-feature > img, .cta__art, .gift__photo img { outline: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); outline-offset: -1px; }
#about .split__text .action-group .btn { width: auto; flex: 0 0 auto; }

/* Footer: one row. The trust (mark, name, closing line, registration) on the left,
   three link columns on the right; the legal bar beneath. No action buttons. */
.footer { padding-top: var(--space-8); }
.footer__main { display: grid; gap: var(--space-7); padding-bottom: var(--space-7); }
.footer__about { display: grid; gap: var(--space-4); align-content: start; max-width: 26rem; }
.footer .footer-brand { display: inline-flex; align-items: center; gap: var(--space-3); margin: 0; font-family: var(--font-body); font-weight: 700; font-size: var(--fs-base); line-height: 1.25; color: var(--on-night-strong) !important; text-decoration: none; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.footer__line { margin: 0; font-size: var(--fs-md); line-height: 1.35; color: color-mix(in srgb, var(--on-night-strong) 88%, transparent); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.footer__cols > div:last-child { grid-column: 1 / -1; }
.footer h3 { margin: 0 0 var(--space-3); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0; color: var(--gold); }
.footer__cols a { display: block; width: fit-content; padding-block: var(--space-1); text-decoration: none; color: var(--footer-ink); }
.footer__cols a:hover { color: var(--on-night-strong); text-decoration: underline; text-decoration-color: var(--gold); }
.footer .footer-meta { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--footer-muted); max-width: 30ch; }
.footer__bottom { margin-top: 0; }
@media (min-width: 900px) {
  .footer__main { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-8); }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__cols > div:last-child { grid-column: auto; }
}
/* the footer's dividing lines sit on the content edges, not the container's padding */
.footer .footer__main, .footer .footer__bottom { max-width: none; width: auto; padding-inline: 0; margin-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }

/* Headings in Lato Bold: one family for the whole site (Marathi in Mukta). Display lines
   use the heading face too; tracking tightens as size grows. */
h1, h2, h3, .page-hero h1,
.hero__note-text, .footer__line, .stat dd, .hero__gifts b, .gift__give b, .occasion__name,
.ask .ask__title, .trust__record dd, .amount b, .goal__top b, .spend__legend b, .gifts__head h2 {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em;
}
h1, .page-hero h1, .hero h1, .banner h2, .close-band h2, .donation-invitation h2 { letter-spacing: -0.03em; line-height: 1.05; }
h2 { line-height: 1.1; }
h3, .gift h3 { line-height: 1.2; letter-spacing: -0.01em; }
.promise { font-family: var(--font-body); font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1.4; }

/* Type hierarchy (one role, one step):
   2xl hero head only · xl every section head (h2), including the photo bands ·
   lg card titles, figures, quotes, the footer line · md leads and questions ·
   base body · sm labels, notes, buttons, navigation · xs fine print */
.hero h1 { font-size: var(--fs-2xl); font-weight: 700; }
h2, .gifts__head h2, .banner h2, .close-band h2, .donation-invitation h2, .trust-band h2, .about h2 { font-size: var(--fs-xl); line-height: 1.1; }
.gift h3 { font-size: var(--fs-lg); font-weight: 700; }
.stat dd, .footer__line, .promise, .ask .ask__title, .hero__note-text, .hero__gifts b { font-size: var(--fs-lg); }
.ask .ask__title, .footer__line, .stat dd { line-height: 1.2; }
.page-hero h1 { font-size: var(--fs-2xl); }
.faq__list summary { line-height: var(--lh-snug); }

/* Footer on white: ink text, green headings, the logo's orange only on hover */
.footer .footer-brand { color: var(--green-800) !important; }
.footer__line { color: var(--ink); }
.footer h3 { color: var(--green-800); }
.footer__cols a, .footer a { color: var(--ink-2); }
.footer__cols a:hover, .footer a:hover { color: var(--green-800); text-decoration-color: var(--accent); }
.footer .footer-meta { color: var(--muted); }
.footer__main, .footer .footer__bottom { border-color: var(--rule); }
.footer__bottom { border-top: var(--rule-hair) solid var(--rule); color: var(--muted); }
.footer__legal a { color: var(--ink-2); text-decoration-color: var(--rule); }

/* Calls to action. Donate is a key: the orange face sits 4px proud of a
   deep-orange edge with a soft shadow under it. Pointing lifts it 2px and
   brightens it; pressing snaps it into the edge in two frames; letting go
   settles it back slowly (Josh Comeau's pushable button, no overshoot).
   Lift only on devices that hover; colour only under reduced motion.
   The second action is text over a 2px gold underline, no box. */
.btn--donate {
  --key-edge: color-mix(in srgb, var(--accent-deep) 82%, var(--night));
  --key-drop: color-mix(in srgb, var(--night) 30%, transparent);
  --key-depth: 4px;
  box-shadow: 0 var(--key-depth) 0 var(--key-edge), 0 calc(var(--key-depth) + 3px) 8px -2px var(--key-drop);
  transform: translateY(0);
  transition: transform .6s cubic-bezier(.3, .7, .4, 1), box-shadow .6s cubic-bezier(.3, .7, .4, 1), filter .25s cubic-bezier(.3, .7, .4, 1), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn--donate:hover { background: var(--accent); border-color: var(--accent); filter: brightness(110%); }
@media (hover: hover) {
  .btn--donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 calc(var(--key-depth) + 2px) 0 var(--key-edge), 0 calc(var(--key-depth) + 7px) 12px -3px var(--key-drop);
    transition: transform .25s cubic-bezier(.3, .7, .4, 1), box-shadow .25s cubic-bezier(.3, .7, .4, 1), filter .25s cubic-bezier(.3, .7, .4, 1), background-color .2s;
  }
}
.btn--donate:active {
  transform: translateY(calc(var(--key-depth) - 1px));
  box-shadow: 0 1px 0 var(--key-edge), 0 2px 3px -1px var(--key-drop);
  transition: transform 34ms, box-shadow 34ms;
}
.header .btn--donate { --key-depth: 3px; }
.btn--donate:disabled, .btn--donate[aria-disabled="true"] { box-shadow: none; transform: none; filter: none; }
.float-donate { transition: opacity .25s, transform .6s cubic-bezier(.3, .7, .4, 1), box-shadow .6s cubic-bezier(.3, .7, .4, 1), filter .25s; }
@media (prefers-reduced-motion: reduce) {
  .btn--donate, .btn--donate:hover, .btn--donate:active { transform: none; transition: filter .2s, background-color .2s; }
  .btn--donate:active { box-shadow: 0 var(--key-depth) 0 var(--key-edge), 0 calc(var(--key-depth) + 3px) 8px -2px var(--key-drop); }
}
/* The second action: a text link, no box. */
.btn--ghost, .btn--light, .btn--outline-light {
  background: transparent; border-color: transparent; border-radius: 0; padding-inline: 0; min-width: 0;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; text-decoration-color: var(--gold);
}
.btn--ghost:hover, .btn--light:hover, .btn--outline-light:hover,
.ask .btn--ghost:hover, .close-band .btn--light:hover { background: transparent; border-color: transparent; text-decoration-color: var(--accent-bright); }
.btn--ghost:hover { color: var(--green-800); }
.btn--light:hover, .btn--outline-light:hover, .ask .btn--ghost:hover, .close-band .btn--light:hover { color: var(--on-night-strong); }
.btn--ghost:focus-visible, .btn--light:focus-visible, .btn--outline-light:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 4px; }


/* Home close: a short loop of the trust's own footage (C8327 and C8332, a hand
   offering fresh grass) behind the last ask. It plays only on screen, never
   under reduced motion, and carries a visible pause control. */
.close-band video.close-band__img { background: var(--night); }
.loop-toggle { display: none; position: absolute; right: var(--space-4); bottom: var(--space-4); z-index: 2; min-height: 36px; padding: var(--space-1) var(--space-4); border: var(--rule-hair) solid var(--on-night-line); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--night) 55%, transparent); color: var(--on-night-strong); font: 700 var(--fs-xs)/1 var(--font-body); cursor: pointer; transition: background-color .2s, border-color .2s; }
.js .loop-toggle { display: inline-flex; align-items: center; }
.loop-toggle:hover { border-color: var(--on-night-strong); background: color-mix(in srgb, var(--night) 75%, transparent); }
.loop-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .js .loop-toggle { display: none; } }
.close-band video.close-band__img { object-position: 60% 25%; }
.close-band .cta__ctas .btn--outline-light { flex: 0 0 auto; padding-inline: 0; }
@media (max-width: 899px) {
  .close-band video.close-band__img { object-position: 45% 30%; }
  .loop-toggle { top: var(--space-4); bottom: auto; }
}
.ask .btn--ghost { border-color: transparent; }
/* A text link never stretches into a full-width bar on phones. */
.btn.btn--ghost, .btn.btn--light, .btn.btn--outline-light { width: auto !important; flex: 0 0 auto !important; align-self: flex-start; justify-content: flex-start; padding-inline: 0 !important; border-inline-width: 0; text-align: left; }


/* Inner pages open like the home hero: photograph on the right, copy on the left over the night ground.
   Shorter than the home hero; breadcrumbs sit in cream above the eyebrow. */
.hero--page .breadcrumbs { color: var(--on-night-muted); margin: 0 0 var(--space-2); }
.hero--page .breadcrumbs a { color: var(--on-night); }
.hero--page h1 { text-wrap: balance; }
.hero--page .hero__lead { max-width: 36ch; }
@media (min-width: 1200px) {
  .hero--page .hero__stage { min-height: max(34rem, 78svh); }
  .hero--page .hero__visual { width: min(100%, calc((78svh - var(--header-h)) * 1.9)); }
  .hero--page .hero__bg { object-position: 100% 70%; }
  .hero--page .hero__copy { max-width: min(32rem, 42%); }
  /* The photograph's edges fade by mask, not by shade, so no hard line shows; the shade itself stays at 70% or less */
  .hero--page .hero__visual {
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 14%), linear-gradient(180deg, transparent 0%, var(--mask) 16%, var(--mask) 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent, var(--mask) 14%), linear-gradient(180deg, transparent 0%, var(--mask) 16%, var(--mask) 86%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero--page .hero__visual::after { background: linear-gradient(90deg, color-mix(in srgb, var(--night) 70%, transparent) 0%, color-mix(in srgb, var(--night) 70%, transparent) 20%, color-mix(in srgb, var(--night) 35%, transparent) 38%, color-mix(in srgb, var(--night) 0%, transparent) 56%); }
}

/* About: the sections after the hero, in the home page's language */
.about-statement { background: var(--night); color: var(--on-night); padding-block: var(--section-y); }
.about-statement__inner { display: grid; gap: var(--space-4); }
.about-statement .eyebrow { color: var(--gold); margin: 0; }
.about-statement p { margin: 0; font-family: var(--font-hero); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; letter-spacing: -.015em; color: var(--on-night-strong); max-width: 22ch; }
.story { background: var(--paper); }
.story__grid { display: grid; gap: var(--space-5); }
.story h2 { margin: var(--space-2) 0 0; }
.story__text p { margin: 0 0 var(--space-4); font-size: var(--fs-md); color: var(--ink-2); max-width: 46ch; }
.story__text .text-link { margin-top: var(--space-2); }
.principles { background: var(--paper); padding-top: 0; }
.principles .gifts__head { margin-bottom: var(--space-6); padding-bottom: 0; border-bottom: 0; }  /* the list's own hairlines part it */
.principles__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.principles__list li { border-top: var(--rule-hair) solid var(--rule); padding-top: var(--space-4); }
.principles__no { display: block; font-family: var(--font-hero); font-size: var(--fs-xl); line-height: 1; color: var(--accent); margin-bottom: var(--space-4); font-variant-numeric: tabular-nums; }
.principles__list h3 { font-size: var(--fs-lg); margin: 0 0 var(--space-2); }
.principles__list p { margin: 0; color: var(--ink-2); max-width: 34ch; }
.about--help .about__img { object-position: 100% 55%; }
.about--help p { max-width: 44ch; }
.about-invite { padding-top: var(--section-y); }
.about-invite .text-link { color: var(--on-night-strong); text-decoration-color: var(--gold); }
/* Banner photographs that are bright all over: a shade strong enough for copy would read as a dark patch.
   Phones: the photograph above, the copy below on the night ground, no shade. Wider: a soft straight wash, sized to the copy. */
@media (max-width: 899px) {
  .invite--bright .banner { display: block; min-height: 0; }
  .invite--bright .banner__img { position: relative; display: block; height: auto; aspect-ratio: 4 / 3; }
  .invite--bright .banner::after { content: none; }
  .invite--bright .banner__copy { padding-top: var(--space-5); }
}
@media (min-width: 900px) {
  .invite--bright .banner::after { background: linear-gradient(90deg, color-mix(in srgb, var(--night) 70%, transparent) 0, color-mix(in srgb, var(--night) 58%, transparent) 24rem, color-mix(in srgb, var(--night) 0%, transparent) 46rem); }
  .story__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-7); align-items: start; }
  .principles__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
}
@media (min-width: 1200px) {
  .about--help .about__inner { justify-content: flex-start; }
  .about--help::after { background: linear-gradient(90deg, color-mix(in srgb, var(--night) 70%, transparent) 0%, color-mix(in srgb, var(--night) 70%, transparent) 32%, color-mix(in srgb, var(--night) 0%, transparent) 58%); }
}

/* Our seva: the three areas as calm alternating splits on white, like the home page */
.seva-detail, .seva-detail:nth-of-type(odd) { background: var(--paper); border-top: 0; }
.seva-detail + .seva-detail { padding-top: 0; }
.seva-detail:nth-of-type(odd) figure { order: 0; }
.seva-detail--flip figure { order: 2; }
.seva-detail figure img { border-radius: var(--radius-soft); outline: 0; }
.seva-detail figure::after { content: none; }
.seva-detail h2 { font-size: var(--fs-2xl); margin: var(--space-2) 0 var(--space-3); }
.seva-detail .page-lead { font-family: var(--font-hero); font-size: var(--fs-lg); line-height: 1.15; color: var(--ink); margin: 0 0 var(--space-4); }
.seva-detail p { color: var(--ink-2); max-width: 46ch; }
.seva-detail .care-list li::before { background: var(--accent); }
.about--occasion .about__img { object-position: 100% 40%; }
.about--occasion .occasion-tags { margin: var(--space-4) 0 0; }
.about--occasion .occasion-tags span { border-color: var(--on-night-line); color: var(--on-night-strong); border-radius: var(--radius-pill); }
@media (min-width: 900px) {
  .seva-detail .feature-story { gap: var(--space-8); align-items: center; }
}
@media (max-width: 899px) {
  .seva-detail--flip figure { order: 0; }
}

/* Gallery: calm and photographic, in the home page's language */
.hero--gallery .hero__bg { object-position: 62% 40%; }
@media (min-width: 1200px) { .hero--page.hero--gallery .hero__bg { object-position: 100% 35%; } }
.gallery-section { background: var(--paper); padding-top: var(--section-y); }
.gallery-section .filter-bar { gap: var(--space-2); padding-bottom: var(--space-5); border-bottom: var(--rule-hair) solid var(--rule); }
.filter-bar button { border-radius: var(--radius-pill); border-color: var(--rule); transition: background-color .15s, border-color .15s, color .15s; }
.filter-bar button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--on-night-strong); }
.filter-bar button:hover:not([aria-pressed="true"]) { background: transparent; border-color: var(--ink); }
.filter-bar button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.results-note { margin-block: var(--space-4) var(--space-5); }
.story-gallery .ph, .story-gallery figure:nth-child(3n+2) .ph { aspect-ratio: 4 / 3; border-radius: var(--radius-soft); overflow: hidden; background: var(--stone); }
.story-gallery .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.story-gallery .ph:hover img { transform: scale(1.03); }
.story-gallery figcaption > span { color: var(--accent); font-weight: 700; }
.story-gallery h2 { font-family: var(--font-hero); font-weight: 400; font-size: var(--fs-lg); line-height: 1.15; margin-block: var(--space-1) var(--space-2); }
.story-gallery p { color: var(--ink-2); }
.gallery-section .image-note { margin-top: var(--space-6); }

/* FAQ: the home page's soft rows, a calm search and topic list */
.hero--faq .hero__bg { object-position: 85% 50%; }
@media (min-width: 1200px) { .hero--page.hero--faq .hero__bg { object-position: 85% 50%; } }
.hero--transparency .hero__bg { object-position: 100% 25%; }
@media (min-width: 1200px) { .hero--page.hero--transparency .hero__bg { object-position: 100% 60%; } }
.faq-page-section { background: var(--paper); padding-top: var(--section-y); }
.faq--page { display: block; }
.faq-layout .faq__list { margin-top: 0; }
.faq-layout .results-note { margin-top: 0; }
.faq-layout .search-label { display: block; margin-bottom: var(--space-2); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.faq-layout .site-search { width: 100%; min-height: 48px; padding-inline: var(--space-4); border: var(--rule-hair) solid var(--rule); border-radius: var(--radius-pill); background: var(--paper); font: inherit; color: var(--ink); }
.faq-layout .site-search:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.faq-topics { margin-block: var(--space-4) var(--space-5); }
.faq-topics button { border-radius: var(--radius-pill); }
.faq-layout > aside .text-link { display: inline-block; }

/* Contact: a calm form card on white, in the home page's language */
.hero--contact .hero__bg { object-position: 100% 55%; }
@media (min-width: 1200px) {
  /* Crop the photo's left edge so nobody is left half-faded in the copy's dark wash */
  .hero--contact .hero__picture { overflow: hidden; }
  .hero--page.hero--contact .hero__bg { width: 125%; max-width: none; margin-left: -25%; object-position: 100% 50%; }
}
.banner__img--top.banner__img { object-position: 50% 0; }
.contact-section { background: var(--paper); padding-top: var(--section-y); }
.contact-section h2 { font-size: var(--fs-2xl); margin: var(--space-2) 0 var(--space-4); }
.contact-section .contact-layout > div > p { font-size: var(--fs-md); color: var(--ink-2); max-width: 44ch; }
.contact-status { border-color: var(--rule); }
.enquiry-form.card { background: var(--stone); border: 0; border-radius: var(--radius-soft); padding: var(--space-6); }
.enquiry-form h2 { font-size: var(--fs-lg); margin: 0 0 var(--space-2); }
.enquiry-form select, .enquiry-form textarea { border-radius: var(--radius-btn); border-color: var(--rule); background: var(--paper); }
.enquiry-form :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.enquiry-form.card.card { outline: 0; box-shadow: none; }
.enquiry-form .btn.btn--night { display: inline-flex; align-items: center; justify-content: center; background: var(--night); color: var(--on-night-strong); border: 1px solid var(--night); border-radius: var(--radius-pill); min-height: 50px; padding-inline: var(--space-5); text-decoration: none; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.enquiry-form .btn.btn--night:hover { background: color-mix(in srgb, var(--night) 82%, var(--on-night-strong)); }
.enquiry-form .btn.btn--night:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
#enquiry-output { border-top-color: var(--rule); }
.contact-guide { padding-top: var(--section-y); border-top: var(--rule-hair) solid var(--rule); }
.principles__list li > .eyebrow { display: block; margin: 0 0 var(--space-1); }
.contact-guide .principles__no { margin-bottom: var(--space-2); }

/* Privacy, Terms, Refunds: the same night opening as the other pages, without a photograph. The line-art motif sits where it would be. */
.hero--legal .hero__content { margin-top: 0; padding-block: var(--space-7); display: grid; gap: var(--space-6); align-items: center; }
.hero--legal .warli { margin: 0; padding: 0; background: none; aspect-ratio: auto; border-radius: 0; justify-self: start; }
.hero--legal .warli img { width: auto; max-width: 100%; max-height: 9rem; opacity: .9; }
@media (min-width: 900px) {
  .hero--legal .hero__content { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding-block: var(--space-8); }
  .hero--page.hero--legal .hero__copy { max-width: 40rem; }
  .hero--legal h1 { max-width: 14ch; }
  .hero--legal .warli { justify-self: end; }
  .hero--legal .warli img { max-height: 16rem; }
}
.policy-section { background: var(--paper); padding-top: var(--section-y); }
.policy-notice { background: var(--stone); border-radius: var(--radius-soft); color: var(--ink); }
.policy-layout aside a:hover { color: var(--ink); }

/* Gallery photo wall, dock magnify: on a desktop with a mouse the photos sit in one wall
   and swell smoothly as the cursor nears them, like a dock in two directions. js/pages.js
   places each photo every frame (no CSS transitions), easing column widths and row
   heights toward the cursor so nothing overlaps or stretches. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .photo-wall.is-dock { display: block; position: relative; height: var(--wall-h, 720px); contain: layout paint; }
  .photo-wall.is-dock figure { position: absolute; left: 0; top: 0; margin: 0; will-change: transform, width, height; }
  .photo-wall.is-dock figure[hidden] { display: none; }
  .photo-wall.is-dock .ph, .photo-wall.is-dock figure:nth-child(3n+2) .ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 8px; }
  .photo-wall.is-dock .ph img, .photo-wall.is-dock .ph:hover img { width: 100%; height: 100%; object-fit: cover; transform: none; transition: none; }
}
/* Tablets: there is room for the trust name on one line beside Donate and the menu. */
@media (min-width: 600px) and (max-width: 899px) { .brand span { max-width: none; } }

/* Translated pages (/mr/, later /gu/): Devanagari and Gujarati marks sit above and below the line,
   so headings get room to breathe and no negative tracking, which would join the letters. */
:lang(mr) :is(h1, h2, h3, .about-statement p, .principles__no, .seva-detail .page-lead, .promise, .footer__line),
:lang(gu) :is(h1, h2, h3, .about-statement p, .principles__no, .seva-detail .page-lead, .promise, .footer__line) { line-height: var(--lh-snug); letter-spacing: 0; }
:lang(mr) :is(p, li, dd, summary), :lang(gu) :is(p, li, dd, summary) { letter-spacing: 0; }
/* Language links in the footer, and the one-time "read this in your language" prompt (js/main.js).
   Each language is named in its own script; the device's font draws those few letters, so a page
   never downloads a whole web font for one label. */
.footer__langs { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.footer__langs a { color: var(--ink-2); text-decoration-color: var(--rule); }
.lang-link:is(:lang(mr), :lang(gu)), .lang-offer :is(:lang(mr), :lang(gu)) { font-family: system-ui, sans-serif; }
.lang-offer { position: fixed; z-index: 60; left: 50%; bottom: var(--space-4); transform: translateX(-50%); width: min(calc(100% - 2 * var(--space-4)), 560px); display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); border: var(--rule-hair) solid var(--rule); border-radius: var(--radius-pill); background: var(--paper); box-shadow: 0 8px 28px rgb(0 0 0 / .14); }
.lang-offer p { margin: 0; flex: 1; font-size: var(--fs-sm); line-height: var(--lh-snug); color: var(--ink); }
.lang-offer a { white-space: nowrap; }
.lang-offer button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: var(--fs-md); cursor: pointer; }
.lang-offer button:hover { background: var(--rule); }
