/* ════════════════════════════════════════════════════════════════
   Eco Himal — public site
   Every colour comes from a CSS variable so the palette chosen in
   the admin panel (Impostazioni → Colori del Sito) restyles the
   whole site. Values below are fallbacks for the default theme.
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --primary: #157e38;
    --primary-dark: #0a3c1b;
    --primary-deep: #06230f;
    --primary-hover: #11682e;
    --primary-soft: #eef7f1;
    --primary-softer: #f8fcfa;
    --primary-border: #d2e8da;
    --on-primary: #ffffff;
    --primary-rgb: 21, 126, 56;
    --primary-deep-rgb: 6, 35, 15;
    --primary-dark-rgb: 10, 60, 27;

    --accent: #d8644c;
    --accent-dark: #ad503d;
    --accent-soft: #fbeeeb;
    --on-accent: #ffffff;
    --accent-rgb: 216, 100, 76;

    --ink: #1b2923;
    --ink-rgb: 27, 41, 35;
    --muted: #64716a;
    --line: #dfe5e1;
    --paper: #f8fbf9;
    --surface: #ffffff;

    --on-dark: #e7f3eb;
    --on-dark-soft: #c3dccd;
    --on-dark-muted: #9dbfa9;

    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(var(--ink-rgb), .04), 0 2px 8px rgba(var(--ink-rgb), .04);
    --shadow: 0 4px 12px rgba(var(--ink-rgb), .05), 0 18px 46px rgba(var(--ink-rgb), .08);
    --shadow-lg: 0 8px 20px rgba(var(--ink-rgb), .07), 0 30px 70px rgba(var(--ink-rgb), .12);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --maxw: 1180px;
}

/* ── Base ───────────────────────────────────────────────────── */
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body.site-body {
    max-width: 100%; margin: 0; overflow-x: hidden;
    background: var(--paper); color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.site-body main { overflow: hidden; }
body.site-body main > #hero-a-tutto-schermo { max-width: none !important; padding: 0 !important; }

:where(a, button, .eh-card, .eh-tile, .eh-stat) { transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(var(--primary-rgb), .12);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.site-header__inner { position: relative; max-width: var(--maxw); min-height: 82px; padding: 0 28px; margin: 0 auto; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 1.1rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase;
}
.brand__text small { margin-top: 5px; color: var(--primary); font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.desktop-nav > span, .desktop-nav > div { margin: 0 !important; }
.desktop-nav a { position: relative; color: var(--ink) !important; font-size: .83rem; font-weight: 700; text-decoration: none; opacity: .82; }
.desktop-nav a:hover, .desktop-nav a:focus { color: var(--primary) !important; opacity: 1; }
.desktop-nav .group > div { padding-top: 14px; }
.desktop-nav .group > div > div { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.site-header__actions { display: flex; align-items: center; gap: 12px; order: 3; }
.header-donate {
    display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px;
    color: var(--on-accent); background: var(--accent); border-radius: 999px;
    font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), .3);
}
.header-donate:hover { color: var(--on-accent); background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(var(--accent-rgb), .38); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--primary); font-size: 1.15rem; cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 3px; max-width: var(--maxw); padding: 14px 28px 20px; margin: 0 auto; }
.mobile-menu a, .mobile-menu button { padding: 10px 0; color: var(--ink) !important; border: 0; background: transparent; text-align: left; font: inherit; font-size: .9rem; text-decoration: none; }

/* ── Page banner ────────────────────────────────────────────── */
.page-banner {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(120deg, var(--primary-deep) 0%, var(--primary-dark) 58%, var(--primary) 130%);
}
.page-banner::after {
    content: ''; position: absolute; right: -12%; top: -55%;
    width: 46rem; height: 46rem; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 68%);
    pointer-events: none;
}
.page-banner__inner { position: relative; z-index: 1; max-width: var(--maxw); padding: 78px 28px 72px; margin: 0 auto; }
.page-banner .eyebrow, .eyebrow { display: block; margin-bottom: 16px; color: var(--on-dark-soft); font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.page-banner h1 { max-width: 800px; margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; line-height: 1.03; letter-spacing: -.04em; }

main > div:not(.page-banner) { padding: 68px 28px !important; }
main > div:not(.page-banner) > p, main > div:not(.page-banner) .tiptap { max-width: 760px; color: var(--muted); font-size: 1.04rem; line-height: 1.85; }
main > div:not(.page-banner) .tiptap p { margin: 0 0 1.1rem; }
main > div:not(.page-banner) .tiptap strong { color: var(--ink); }

/* ── Section intro ──────────────────────────────────────────── */
.eh-section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 440px); gap: 36px; align-items: end; margin-bottom: 40px; }
.eh-section-intro .eyebrow { grid-column: 1 / -1; margin: 0 0 -18px; color: var(--primary); }
.eh-section-intro h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 400; line-height: 1.06; letter-spacing: -.038em; }
.eh-section-intro p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.7; }

/* ════════════════════════════════════════════════════════════════
   CARDS — redesigned: rounded, elevated, soft. The previous version
   was a flat grid welded together by 1px borders; these are separate
   floating cards with a coloured accent rail that grows on hover.
   ════════════════════════════════════════════════════════════════ */
.eh-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; }

.eh-card {
    position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    isolation: isolate;
}
/* Accent rail along the top edge — collapsed until hover. */
.eh-card::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 4px; z-index: 2;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease);
}
.eh-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.eh-card:hover::before { transform: scaleX(1); }
.eh-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.eh-card__media { position: relative; height: 208px; overflow: hidden; background: var(--primary-soft); }
.eh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.eh-card:hover .eh-card__media img { transform: scale(1.06); }
/* Gentle scrim so white text/tags stay legible over busy photos. */
.eh-card__media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(var(--primary-deep-rgb), .28), transparent 55%);
    pointer-events: none;
}

/* Placeholder shown until the real photo is uploaded. */
.eh-card__marker {
    position: relative; height: 128px; padding: 24px 26px;
    display: flex; align-items: flex-start; justify-content: space-between;
    color: var(--primary);
    background:
        radial-gradient(circle at 82% 18%, rgba(var(--accent-rgb), .12) 0%, transparent 58%),
        linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-softer) 100%);
}
.eh-card__marker span { font-family: Georgia, serif; font-size: 1.85rem; line-height: 1; color: rgba(var(--primary-rgb), .38); }
.eh-card__marker i { font-size: 1.4rem; opacity: .55; }

.eh-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 26px 26px; }
.eh-card__tag {
    display: inline-block; margin-bottom: 13px; padding: 5px 11px;
    color: var(--accent); background: var(--accent-soft);
    border-radius: 999px;
    font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.eh-card h3 { margin: 0 0 11px; font-family: Georgia, serif; font-size: 1.42rem; font-weight: 400; line-height: 1.2; letter-spacing: -.022em; }
.eh-card p { margin: 0 0 24px; color: var(--muted); font-size: .89rem; line-height: 1.68; }
.eh-card__link {
    display: inline-flex; align-items: center; gap: 9px; margin-top: auto;
    color: var(--primary); font-size: .76rem; font-weight: 800; text-decoration: none;
}
.eh-card__link i { font-size: .68rem; transition: transform .25s var(--ease); }
.eh-card__link:hover { color: var(--primary-hover); }
.eh-card:hover .eh-card__link i { transform: translateX(5px); }

/* ── Single card: wide feature panel on the primary colour ──── */
.eh-card--single { max-width: 940px; margin: 0 auto; }
.eh-card--single .eh-card {
    min-height: 0; display: grid; grid-template-columns: 232px 1fr;
    border: 0; border-radius: var(--radius-lg); overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), .25);
}
.eh-card--single .eh-card::before { background: linear-gradient(90deg, var(--accent), #fff); }
.eh-card--single .eh-card:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(var(--primary-rgb), .32); }
.eh-card--single .eh-card__marker {
    height: auto; min-height: 232px; color: #fff;
    background: linear-gradient(150deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.eh-card--single .eh-card__marker span { color: rgba(255, 255, 255, .5); }
.eh-card--single .eh-card__marker i { opacity: .8; }
.eh-card--single .eh-card__media::after { background: none; }
.eh-card--single .eh-card__body { padding: 38px 42px; }
.eh-card--single .eh-card__tag { color: #fff; background: rgba(255, 255, 255, .16); }
.eh-card--single .eh-card h3 { color: #fff; font-size: 1.72rem; }
.eh-card--single .eh-card p { color: var(--on-dark); }
.eh-card--single .eh-card__link { color: #fff; }
.eh-card--single .eh-card__link:hover { color: #fff; }

/* ── Hero (fullscreen) ──────────────────────────────────────── */
.eh-hero {
    position: relative; min-height: min(780px, calc(100vh - 150px)); width: 100%;
    display: flex; align-items: center; overflow: hidden;
    background: linear-gradient(120deg, var(--primary-deep) 0%, var(--primary-dark) 60%, var(--primary) 130%);
}
.eh-hero__media, .eh-hero__overlay { position: absolute; inset: 0; }
.eh-hero__media { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--on-dark-muted); }
.eh-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eh-hero__overlay {
    background: linear-gradient(90deg,
        rgba(var(--primary-deep-rgb), .93) 0%,
        rgba(var(--primary-deep-rgb), .72) 46%,
        rgba(var(--primary-deep-rgb), .2) 100%);
}
.eh-hero__content { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); padding: 92px 28px 128px; margin: 0 auto; color: #fff; }
.eh-hero__eyebrow { display: block; max-width: 560px; margin-bottom: 25px; color: var(--on-dark-soft); font-size: .7rem; font-weight: 800; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
.eh-hero__logo { width: 96px; height: 96px; margin-bottom: 24px; object-fit: contain; filter: drop-shadow(0 5px 18px rgba(0, 0, 0, .3)); }
.eh-hero h1 { max-width: 680px; margin: 0 0 20px; font-family: Georgia, serif; font-size: clamp(3.6rem, 8.5vw, 7.4rem); font-weight: 400; line-height: .9; letter-spacing: -.052em; }
.eh-hero__content p { max-width: 546px; margin: 0 0 34px; color: var(--on-dark); font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.62; }
.eh-hero__action {
    display: inline-flex; align-items: center; gap: 11px; padding: 15px 26px;
    color: var(--on-accent); background: var(--accent); border-radius: 999px;
    font-size: .8rem; font-weight: 800; text-decoration: none;
    box-shadow: 0 8px 26px rgba(var(--accent-rgb), .4);
}
.eh-hero__action:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(var(--accent-rgb), .48); }
.eh-hero__action i { transition: transform .25s var(--ease); }
.eh-hero__action:hover i { transform: translateX(4px); }
.eh-hero__scroll {
    position: absolute; z-index: 2; bottom: 36px;
    right: max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; opacity: .85;
}
.eh-hero__scroll:hover { opacity: 1; }
.eh-hero__scroll i { animation: eh-bob 2.4s var(--ease) infinite; }
@keyframes eh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Split block (zig-zag) ──────────────────────────────────── */
.eh-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(45px, 7vw, 88px); align-items: center; }
.eh-split--reverse .eh-split__image { order: 2; }
.eh-split--reverse .eh-split__text { order: 1; }
.eh-split__image { min-width: 0; }
.eh-split__image img, .eh-split__placeholder {
    width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    background: var(--primary-softer);
}
.eh-split__placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    color: var(--muted);
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-softer) 100%);
    border: 1px solid var(--line);
}
.eh-split__text .eyebrow { color: var(--accent); }
.eh-split__badge { display: block; margin-bottom: 15px; color: var(--accent); font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eh-split h2 { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.09; letter-spacing: -.038em; }
.eh-split__copy { color: var(--muted); font-size: .95rem; line-height: 1.78; }
.eh-split__copy p { margin: 0 0 16px; }
.eh-split__copy .subtitle { margin-top: -12px; color: var(--primary); font-size: 1rem; }
.eh-split__copy ul { display: grid; gap: 7px; margin: 18px 0 !important; padding-left: 18px !important; }
.eh-split__copy strong { color: var(--ink); }

/* Intro paragraph block (used on the Home page) */
.site-body main > #paragrafo { padding-top: 85px !important; padding-bottom: 35px !important; }
.site-body main > #paragrafo > #paragrafo { max-width: 900px; padding: 0 !important; margin: 0; }
.site-body main > #paragrafo span { font-family: inherit !important; font-size: inherit !important; }
.site-body main > #paragrafo p { margin: 0 0 15px; color: var(--muted); font-size: 1.03rem; line-height: 1.8; }
.site-body main > #paragrafo p:first-child {
    max-width: 780px; margin-bottom: 25px; color: var(--ink);
    font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 400; line-height: 1.09; letter-spacing: -.038em;
}
.site-body main > #paragrafo p:first-child strong { font-weight: 400; }

/* ── News cards ─────────────────────────────────────────────── */
.eh-empty { padding: 30px 0; color: var(--muted); text-align: center; }
.eh-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.eh-news-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.eh-news-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.eh-news-card__media { height: 200px; overflow: hidden; background: var(--primary-soft); }
.eh-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.eh-news-card:hover .eh-news-card__media img { transform: scale(1.055); }
.eh-news-card__number {
    height: 116px; padding: 24px 26px; color: rgba(var(--primary-rgb), .34);
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-softer) 100%);
    font-family: Georgia, serif; font-size: 1.75rem;
}
.eh-news-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; }
.eh-news-card__category {
    display: inline-block; margin-bottom: 12px; padding: 5px 11px;
    color: var(--accent); background: var(--accent-soft); border-radius: 999px;
    font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
/* Category and PDF marker sit on one line; the spacing below moves to this wrapper. */
.eh-news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.eh-news-card__meta .eh-news-card__category { margin-bottom: 0; }
.eh-news-card h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.34rem; font-weight: 400; line-height: 1.22; }
.eh-news-card p { margin: 0 0 22px; color: var(--muted); font-size: .86rem; line-height: 1.62; }
.eh-news-card button {
    display: inline-flex; align-items: center; gap: 9px; padding: 0; margin-top: auto;
    border: 0; color: var(--primary); background: transparent;
    font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer;
}
.eh-news-card button i { transition: transform .25s var(--ease); }
.eh-news-card:hover button i { transform: translateX(5px); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { margin-top: 45px; color: var(--on-dark-soft); background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-deep) 100%); }
.site-footer__inner { max-width: var(--maxw); padding: 58px 28px 25px; margin: 0 auto; }
.footer-partners { padding-bottom: 42px; margin-bottom: 42px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.footer-grid { display: grid; grid-template-columns: 1.45fr .5fr .5fr .8fr; gap: 30px; }
.footer-intro { max-width: 380px; }
.brand--footer { color: #fff; margin-bottom: 18px; }
.brand--footer .brand__text small { color: var(--on-dark-soft); }
.footer-intro p { margin: 0; color: var(--on-dark-muted); font-size: .86rem; line-height: 1.72; }
.site-footer h4 { margin: 0 0 16px; color: #fff; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 9px; padding: 0 !important; margin: 0 !important; list-style: none !important; }
.site-footer li a { color: var(--on-dark-muted); font-size: .85rem; text-decoration: none; }
.site-footer li a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .13); color: var(--on-dark-muted); font-size: .74rem; }
.footer-bottom p { margin: 0; }

/* ── Cookie banner overrides ────────────────────────────────── */
.cookie-consent, #cookie-consent-banner { border-radius: 0 !important; }
#cookie-consent-banner > div, #cookie-consent-banner > div > div { min-width: 0 !important; }
#cookie-consent-banner p { overflow-wrap: anywhere; }
#cookie-consent-banner > div > div:first-child > div { background: var(--primary-soft) !important; }
#cookie-consent-banner > div > div:first-child > div i { color: var(--primary) !important; }
#cookie-consent-banner button:last-child { background: var(--primary) !important; box-shadow: none !important; }
#cookie-consent-banner a { color: var(--primary) !important; }

/* ════════════════════════════════════════════════════════════════
   NEW COMPONENTS
   ════════════════════════════════════════════════════════════════ */

/* ── Icon tiles (values / how to help / facilities) ──────────── */
.eh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.eh-tile {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    padding: 30px 26px 28px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.eh-tile::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.eh-tile:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); }
.eh-tile:hover::before { transform: scaleX(1); }
.eh-tile__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; margin-bottom: 20px;
    color: var(--primary); border-radius: 16px; font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-softer));
    border: 1px solid var(--primary-border);
}
.eh-tile--accent .eh-tile__icon { color: var(--accent); background: var(--accent-soft); border-color: rgba(var(--accent-rgb), .22); }
.eh-tile h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.24rem; font-weight: 400; line-height: 1.25; letter-spacing: -.02em; }
.eh-tile p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.eh-tile p + p { margin-top: 10px; }
.eh-tile__meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--primary); font-size: .78rem; font-weight: 800; }
.eh-tile__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; color: var(--primary); font-size: .75rem; font-weight: 800; text-decoration: none; }
.eh-tile__link i { font-size: .66rem; transition: transform .25s var(--ease); }
.eh-tile:hover .eh-tile__link i { transform: translateX(5px); }

/* ── Stats band ─────────────────────────────────────────────── */
.eh-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px;
    overflow: hidden; border-radius: var(--radius-lg);
    background: linear-gradient(125deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 18px 44px rgba(var(--primary-rgb), .22);
}
.eh-stat { padding: 38px 26px; text-align: center; background: transparent; }
.eh-stat + .eh-stat { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12); }
.eh-stat__num { display: block; color: #fff; font-family: Georgia, serif; font-size: clamp(2.2rem, 4.5vw, 3.1rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.eh-stat__label { display: block; margin-top: 12px; color: var(--on-dark-soft); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eh-stats__note { margin: 18px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }

/* ── Contact / support cards ────────────────────────────────── */
.eh-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.eh-contact-card {
    display: flex; flex-direction: column; padding: 28px 26px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.eh-contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.eh-contact-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px;
    color: var(--on-primary); background: var(--primary); font-size: 1rem;
}
.eh-contact-card h3 { margin: 0 0 6px; font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.eh-contact-card p, .eh-contact-card a { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; text-decoration: none; word-break: break-word; }
.eh-contact-card a:hover { color: var(--primary); }
.eh-contact-card__lines { display: grid; gap: 3px; }

/* Bank details / payment coordinates */
.eh-details { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.eh-details__row { display: grid; grid-template-columns: minmax(150px, .38fr) 1fr; gap: 18px; padding: 16px 24px; }
.eh-details__row + .eh-details__row { border-top: 1px solid var(--line); }
.eh-details__row dt { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eh-details__row dd { margin: 0; color: var(--ink); font-size: .92rem; line-height: 1.6; }
.eh-details__row dd strong { font-weight: 700; }
.eh-details__mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }

/* ── Social / QR ────────────────────────────────────────────── */
.eh-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.eh-social-card {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 28px 24px; text-align: center; text-decoration: none;
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.eh-social-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); color: var(--ink); }
.eh-social-card__qr {
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
    width: 148px; height: 148px; padding: 10px;
    color: var(--muted); background: var(--primary-softer);
    border: 1px dashed var(--primary-border); border-radius: var(--radius);
    font-size: .68rem; text-align: center;
}
.eh-social-card__qr img { width: 100%; height: 100%; object-fit: contain; }
.eh-social-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: var(--on-primary); background: var(--primary); font-size: 1rem; }
.eh-social-card strong { font-size: .95rem; font-weight: 800; }
.eh-social-card span { color: var(--muted); font-size: .8rem; }

/* ── Timeline ───────────────────────────────────────────────── */
.eh-timeline { position: relative; display: grid; gap: 26px; max-width: 860px; padding-left: 34px; }
.eh-timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--primary-border)); }
.eh-timeline__item { position: relative; }
.eh-timeline__item::before {
    content: ''; position: absolute; left: -34px; top: 6px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px var(--paper);
}
.eh-timeline__item--accent::before { border-color: var(--accent); }
.eh-timeline__year { display: block; margin-bottom: 6px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eh-timeline__item h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; letter-spacing: -.02em; }
.eh-timeline__item p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.72; }

/* ── Notice / callout ───────────────────────────────────────── */
.eh-notice {
    display: flex; gap: 18px; padding: 24px 26px;
    background: var(--primary-softer); border: 1px solid var(--primary-border);
    border-left: 4px solid var(--primary); border-radius: var(--radius);
}
.eh-notice--accent { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), .28); border-left-color: var(--accent); }
.eh-notice__icon { flex-shrink: 0; color: var(--primary); font-size: 1.15rem; }
.eh-notice--accent .eh-notice__icon { color: var(--accent); }
.eh-notice h3 { margin: 0 0 8px; font-size: .95rem; font-weight: 800; }
.eh-notice p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.72; }
.eh-notice p + p { margin-top: 10px; }

/* ── Rich prose (long-form project text) ────────────────────── */
.eh-prose { max-width: 820px; color: var(--muted); font-size: 1.01rem; line-height: 1.85; }
.eh-prose > p:first-child { color: var(--ink); font-size: 1.16rem; line-height: 1.7; }
.eh-prose p { margin: 0 0 1.15rem; }
.eh-prose strong { color: var(--ink); }
.eh-prose h3 { margin: 2.2rem 0 .9rem; color: var(--ink); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 400; letter-spacing: -.025em; }
.eh-prose ul, .eh-prose ol { display: grid; gap: 9px; margin: 1.2rem 0 1.5rem !important; padding-left: 20px !important; }
.eh-prose li { line-height: 1.72; }
.eh-prose li::marker { color: var(--primary); }

/* ── Photo grid ─────────────────────────────────────────────── */
/* Even grid rather than a masonry column flow: every project photo gets the same footprint,
   so mixed portrait/landscape sets stay tidy. object-fit crops instead of distorting. */
.eh-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.eh-photo-grid__item {
    position: relative; display: block; overflow: hidden; padding: 0;
    aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); cursor: zoom-in; appearance: none;
}
.eh-photo-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.eh-photo-grid__item:hover img,
.eh-photo-grid__item:focus-visible img { transform: scale(1.06); }
/* Subtle darkening on hover signals the photo is clickable. */
.eh-photo-grid__item::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(var(--primary-deep-rgb), 0); transition: background .35s var(--ease);
}
.eh-photo-grid__item:hover::after { background: rgba(var(--primary-deep-rgb), .16); }

/* ── News PDF attachment ────────────────────────────────────── */
/* Shown at the end of a news (detail page and modal). The preview is collapsed by
   default: the iframe is only created on expand, so a list of news with attachments
   never fetches the documents up front. */
.eh-news-pdf { margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.eh-news-pdf__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.eh-news-pdf__label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); font-size: .9rem; font-weight: 600; }
.eh-news-pdf__label i { flex-shrink: 0; color: #d93025; font-size: 1.15rem; }
.eh-news-pdf__label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eh-news-pdf__actions { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.eh-news-pdf__toggle {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
    color: var(--primary); background: transparent; border: 1px solid var(--primary-border);
    border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.eh-news-pdf__toggle:hover { color: var(--primary-hover); background: var(--primary-soft); }
.eh-news-pdf__toggle i { font-size: .62rem; transition: transform .25s var(--ease); }
.eh-news-pdf__download {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
    color: var(--on-primary); background: var(--primary); border-radius: 999px;
    font-size: .78rem; font-weight: 700; text-decoration: none;
    transition: background .2s var(--ease);
}
.eh-news-pdf__download:hover { background: var(--primary-hover); }
.eh-news-pdf__download i { font-size: .7rem; }
.eh-news-pdf__panel { border-top: 1px solid var(--line); background: var(--surface); }
.eh-news-pdf__panel[hidden] { display: none; }
.eh-news-pdf__panel iframe { display: block; width: 100%; height: 640px; border: 0; }

/* Marker in the news lists: this entry carries a document. */
.eh-news-pdf-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
    color: #b3261e; background: #fdeceb; border-radius: 999px;
    font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.eh-news-pdf-badge i { font-size: .72rem; }

/* ── Folder gallery ─────────────────────────────────────────── */
/* Albums browsed as nested folders: the cover is the first photo found anywhere below,
   so a parent folder still looks like something even when its own photos live deeper. */
.eh-gallery { display: grid; gap: 24px; }
.eh-gallery__loading { margin: 0; padding: 28px 0; color: var(--muted); font-size: .9rem; }
.eh-gallery__empty { padding: 56px 0; color: var(--muted); text-align: center; }
.eh-gallery__empty i { font-size: 2rem; opacity: .5; }
.eh-gallery__empty p { margin: 12px 0 0; font-size: .92rem; }

.eh-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eh-breadcrumb__item {
    padding: 0; color: var(--primary); font-size: .82rem; font-weight: 700;
    background: none; border: 0; cursor: pointer; transition: color .2s var(--ease);
}
.eh-breadcrumb__item:hover { color: var(--primary-hover); text-decoration: underline; }
.eh-breadcrumb__sep { color: var(--line); font-size: .82rem; }
.eh-breadcrumb__current { color: var(--muted); font-size: .82rem; font-weight: 700; }

.eh-folders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.eh-folder {
    display: grid; gap: 4px; padding: 0; text-align: left;
    background: none; border: 0; cursor: pointer;
}
.eh-folder__thumb {
    position: relative; display: block; overflow: hidden; margin-bottom: 8px;
    aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--primary-soft);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.eh-folder__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-folder:hover .eh-folder__thumb,
.eh-folder:focus-visible .eh-folder__thumb { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-lg); }
.eh-folder__placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    color: rgba(var(--primary-rgb), .35); font-size: 1.9rem;
}
.eh-folder__name { font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.eh-folder__count { color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ── Lightbox ───────────────────────────────────────────────── */
.eh-lightbox {
    position: fixed; inset: 0; z-index: 60;
    align-items: center; justify-content: center; padding: 24px;
    background: rgba(var(--primary-deep-rgb), .95);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.eh-lightbox.hidden { display: none; }
.eh-lightbox.flex { display: flex; }
.eh-lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.eh-lightbox__close,
.eh-lightbox__nav {
    position: absolute; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px; cursor: pointer; line-height: 1; transition: background .2s var(--ease);
}
.eh-lightbox__close:hover,
.eh-lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.eh-lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.9rem; padding-bottom: 4px; }
.eh-lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.4rem; padding-bottom: 6px; }
.eh-lightbox__nav--prev { left: 20px; }
.eh-lightbox__nav--next { right: 20px; }
.eh-lightbox__counter {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    padding: 6px 14px; color: rgba(255, 255, 255, .9); font-size: .78rem; font-weight: 600;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .site-header__inner { min-height: 72px; padding: 0 20px; }
    .desktop-nav { display: none; }
    .site-header__actions { margin-left: auto; }
    .menu-toggle { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; }
    .mobile-menu:not(.hidden) { display: block; }
    .header-donate { padding: 10px 14px; font-size: .72rem; }
    .page-banner__inner, main > div:not(.page-banner), .site-footer__inner { padding-left: 20px !important; padding-right: 20px !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3) { display: none; }
    .eh-section-intro { grid-template-columns: 1fr; gap: 15px; }
    .eh-section-intro .eyebrow { margin: 0 0 2px; }
    .eh-cards-grid, .eh-news-grid { grid-template-columns: 1fr 1fr; }
    .eh-cards-grid .eh-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .eh-details__row { grid-template-columns: 1fr; gap: 5px; }
    .eh-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .eh-folders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 520px) {
    .brand__logo { width: 44px; height: 44px; }
    .brand__text strong { font-size: .95rem; }
    .header-donate { display: none; }
    .menu-toggle { position: absolute; top: 17px; right: 16px; z-index: 2; display: inline-flex !important; }
    .page-banner__inner { padding-top: 52px !important; padding-bottom: 50px !important; }
    .page-banner h1 { font-size: 2.5rem; }
    main > div:not(.page-banner) { padding-top: 44px !important; padding-bottom: 44px !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .eh-cards-grid, .eh-news-grid, .eh-tiles { grid-template-columns: 1fr; }
    .eh-cards-grid .eh-card:last-child:nth-child(odd) { grid-column: auto; }
    .eh-card--single .eh-card { grid-template-columns: 1fr; }
    .eh-card--single .eh-card__marker { min-height: 118px; }
    .eh-card--single .eh-card__body { padding: 30px 24px; }
    .eh-hero { min-height: 660px; }
    .eh-hero__content { padding: 80px 20px 122px; }
    .eh-hero__eyebrow { max-width: 315px; font-size: .62rem; }
    .eh-hero h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
    .eh-hero__overlay { background: linear-gradient(90deg, rgba(var(--primary-deep-rgb), .94), rgba(var(--primary-deep-rgb), .6)); }
    .eh-hero__scroll { right: 20px; }
    .eh-split, .eh-split--reverse { grid-template-columns: 1fr; gap: 28px; }
    .eh-split--reverse .eh-split__image, .eh-split--reverse .eh-split__text { order: initial; }
    .eh-stat { padding: 30px 20px; }
    .eh-stat + .eh-stat { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
    .eh-photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .eh-folders { grid-template-columns: 1fr 1fr; gap: 12px; }
    .eh-folder__name { font-size: .95rem; }
    .eh-news-pdf__bar { align-items: stretch; flex-direction: column; }
    .eh-news-pdf__actions { justify-content: space-between; }
    .eh-news-pdf__panel iframe { height: 420px; }
    .eh-lightbox { padding: 12px; }
    .eh-lightbox__nav { width: 40px; height: 40px; font-size: 1.8rem; }
    .eh-lightbox__nav--prev { left: 8px; }
    .eh-lightbox__nav--next { right: 8px; }
    .eh-lightbox__close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 1.6rem; }
    .eh-timeline { padding-left: 28px; }
    .eh-timeline__item::before { left: -28px; width: 16px; height: 16px; }
    .eh-notice { flex-direction: column; gap: 12px; padding: 20px; }
    #cookie-consent-banner { padding: 16px 20px !important; }
    #cookie-consent-banner > div { gap: 12px !important; flex-direction: column !important; align-items: stretch !important; }
    #cookie-consent-banner > div > div:last-child { width: 100%; display: grid !important; grid-template-columns: 1fr 1fr; }
    #cookie-consent-banner button { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }
    #cookie-consent-banner p { font-size: .78rem !important; line-height: 1.55 !important; }
}
