/* ==========================================================================
   พรรคศรัทธา (Satdha Party) — design system
   Serif display (Noto Serif Thai) + sans body (Noto Sans Thai).
   Light civic canvas with a few deep-forest "rooms". See DESIGN.md.
   ========================================================================== */

:root {
    /* Brand (preserved CI from logo) */
    --brand-forest: #0b4f1f;
    --brand-leaf: #0b8f2a;
    --brand-sprout: #88cc10;
    --brand-gold: #f2bd18;
    --brand-sun: #ffd34d;
    --brand-mist: #f6faf2;

    /* Surfaces & ink */
    --paper: #ffffff;
    --ink: #142019;
    --ink-2: #2c3b31;
    --muted: #51604f;          /* darkened from #647067 → passes 4.5:1 on mist */
    --muted-on-dark: rgba(236, 247, 235, 0.82);
    --line: rgba(11, 79, 31, 0.12);
    --line-strong: rgba(11, 79, 31, 0.2);

    /* Tinted room backgrounds */
    --paper-warm: #fbf7ea;
    --tint-leaf: #f0f7ec;
    --tint-gold: #fcf4dc;
    --forest-deep: #08381a;

    /* Type */
    --font-serif: "Noto Serif Thai", Georgia, "Times New Roman", serif;
    --font-sans: "Noto Sans Thai", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(10, 43, 24, 0.06), 0 2px 8px rgba(10, 43, 24, 0.05);
    --shadow: 0 14px 40px rgba(10, 43, 24, 0.10);
    --shadow-lg: 0 28px 70px rgba(10, 43, 24, 0.16);
    --radius: 12px;
    --radius-sm: 9px;
    --ring: 0 0 0 3px rgba(11, 143, 42, 0.28);

    /* z-index scale */
    --z-header: 50;
    --z-menu: 60;
    --z-modal: 120;

    /* motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    background: var(--brand-mist);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* the hidden attribute must beat utility display classes */
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-leaf); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--brand-forest);
    line-height: 1.18;
    text-wrap: balance;
    margin: 0;
}

/* ---- Skip link ---- */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    border-radius: 8px;
    background: var(--brand-forest);
    color: #fff;
    padding: 10px 16px;
    font-weight: 600;
    transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container-page {
    width: min(1160px, calc(100% - 36px));
    margin-inline: auto;
}
.container-narrow { width: min(820px, calc(100% - 36px)); margin-inline: auto; }

.section { position: relative; padding: clamp(56px, 7vw, 92px) 0; }

/* Section "rooms" — distinct backgrounds */
.bg-white,
.room-paper { background: var(--paper); }
.room-mist { background: var(--brand-mist); }
.room-leaf-tint { background: var(--tint-leaf); }
.room-warm {
    background:
        radial-gradient(120% 120% at 12% 0%, rgba(242, 189, 24, 0.12), transparent 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(136, 204, 16, 0.12), transparent 55%),
        #f9f9ee;
}
.room-dark {
    background:
        radial-gradient(120% 100% at 85% -10%, rgba(136, 204, 16, 0.16), transparent 60%),
        linear-gradient(160deg, #0c5022, var(--forest-deep) 70%);
    color: #fff;
}
.room-dark h1, .room-dark h2, .room-dark h3 { color: #fff; }

/* Hairline accent strip at the top of a room */
.room-accent-top { box-shadow: inset 0 3px 0 0 var(--brand-sprout); }
.room-accent-gold { box-shadow: inset 0 3px 0 0 var(--brand-gold); }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 200ms var(--ease-out), background 200ms var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 43, 24, 0.08); background: rgba(255, 255, 255, 0.94); }

.brand-name-th { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--brand-forest); }
.brand-name-en { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; color: var(--brand-leaf); text-transform: uppercase; }

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border-radius: 9px;
    padding: 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-2);
    transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.nav-link:hover,
.nav-link.is-active { background: rgba(11, 143, 42, 0.10); color: var(--brand-forest); }
.nav-link.is-active { box-shadow: inset 0 -2px 0 0 var(--brand-leaf); border-radius: 9px 9px 0 0; }
.mobile-nav-link { justify-content: space-between; background: var(--tint-leaf); }
.mobile-nav-link:hover { background: rgba(11, 143, 42, 0.12); color: var(--brand-forest); }

.breadcrumb-wrap {
    background: rgba(255, 255, 255, 0.66);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}
.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--muted);
    transition: color 150ms var(--ease-out);
}
.breadcrumb-link:hover { color: var(--brand-leaf); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    padding: 0 20px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn:hover,
.icon-button:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--brand-leaf), var(--brand-forest));
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 143, 42, 0.22);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(11, 143, 42, 0.3); }
.btn-on-dark { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22); }
.btn-ghost {
    background: var(--paper);
    color: var(--brand-forest);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--brand-leaf); }
.btn-soft {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.btn-soft:hover { background: rgba(255, 255, 255, 0.22); }
.btn-gold {
    background: linear-gradient(135deg, var(--brand-gold), #e0a606);
    color: #3a2a02;
    box-shadow: 0 10px 24px rgba(242, 189, 24, 0.28);
}
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.icon-button {
    width: 46px;
    padding: 0;
    background: var(--tint-leaf);
    color: var(--brand-forest);
}

/* ==========================================================================
   Section heading / kicker (replaces the old "Stage 0X" scaffold)
   ========================================================================== */

.sec-head { max-width: 64ch; }
.sec-head.is-center { margin-inline: auto; text-align: center; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(11, 143, 42, 0.08);
    color: var(--brand-forest);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.kicker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--brand-leaf);
    box-shadow: 0 1px 3px rgba(10, 43, 24, 0.12);
}
.room-dark .kicker,
.kicker.on-dark { background: rgba(255, 255, 255, 0.12); color: #eafbe6; }
.room-dark .kicker-icon,
.kicker.on-dark .kicker-icon { background: rgba(255, 255, 255, 0.16); color: var(--brand-sun); box-shadow: none; }
.is-center .kicker { justify-content: center; }

/* Legacy label (admin breadcrumb-style eyebrow) — lightweight, no heavy weights */
.stage-label {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--brand-leaf);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.stage-label.justify-center { justify-content: center; }
.stage-label span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: rgba(11, 143, 42, 0.1);
    padding: 0 11px;
}
.room-dark .stage-label { color: var(--brand-sun); }
.room-dark .stage-label span { background: rgba(255, 255, 255, 0.12); color: #eafbe6; }

.section-title,
.page-title {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--brand-forest);
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    line-height: 1.18;
    letter-spacing: -0.005em;
}
.page-title { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.14; }
.room-dark .section-title, .room-dark .page-title { color: #fff; }

.section-lead {
    margin: 16px 0 0;
    max-width: 68ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.85;
    text-wrap: pretty;
}
.is-center .section-lead { margin-inline: auto; }
.room-dark .section-lead { color: var(--muted-on-dark); }

/* ==========================================================================
   1 · Hero
   ========================================================================== */

.hero-section {
    position: relative;
    /* Fullscreen hero: fill the viewport below the sticky header (~72px).
       dvh tracks the mobile address bar so it stays full-height on phones. */
    --header-h: 72px;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--forest-deep);
    color: #fff;
    padding: clamp(48px, 7vw, 88px) 0;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 40, 16, 0.9), rgba(4, 40, 16, 0.62) 48%, rgba(4, 40, 16, 0.18)),
        linear-gradient(0deg, rgba(4, 40, 16, 0.42), rgba(4, 40, 16, 0.04));
    pointer-events: none;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
    z-index: 0;
    background-image: var(--slide-image);
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 900ms var(--ease-out), transform 1600ms var(--ease-out);
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
}
.hero-copy { max-width: 40ch; }
.hero-copy h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}
.hero-lead {
    margin-top: 22px;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.8;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0 13px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.hero-slider-controls { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.hero-slider-button {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff; cursor: pointer;
    transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.hero-slider-button:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.hero-slider-dots { display: flex; align-items: center; gap: 8px; }
.hero-slider-dot {
    width: 30px; height: 8px; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, 0.3); cursor: pointer;
    transition: width 220ms var(--ease-out), background 220ms var(--ease-out);
}
.hero-slider-dot.is-active { width: 48px; background: var(--brand-sun); }

.hero-panel {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-stat {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: 18px;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.hero-stat span {
    display: block;
    font-family: var(--font-serif);
    color: var(--brand-sun);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}
.hero-stat p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.84); font-size: 0.9rem; }

.hero-copy .kicker { background: rgba(255, 255, 255, 0.12); color: #eafbe6; }
.hero-copy .kicker-icon { background: rgba(255, 255, 255, 0.16); color: var(--brand-sun); box-shadow: none; }

/* ==========================================================================
   2 · Policies — paper ledger (ruled rows, not cards)
   ========================================================================== */

.policy-grid {
    display: grid;
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
}
.policy-poster-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 10px;
    box-shadow: var(--shadow);
    cursor: zoom-in;
    transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.policy-poster-card:hover,
.policy-poster-card:focus-visible {
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    outline: none;
}
.policy-poster-image { width: 100%; height: auto; border-radius: 8px; }
.policy-feature-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}
.policy-zoom-badge {
    position: absolute;
    right: 20px; bottom: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; border-radius: 999px;
    background: rgba(11, 79, 31, 0.92);
    padding: 0 14px; color: #fff; font-size: 0.9rem; font-weight: 600;
    box-shadow: 0 12px 30px rgba(10, 43, 24, 0.24);
}

.policy-ledger { display: grid; }
.policy-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 16px;
    align-items: start;
    padding: 22px 4px;
    border-top: 1px solid var(--line);
}
.policy-row:first-child { border-top: 0; }
.policy-num {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-gold);
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
}
.policy-row-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 11px;
    background: rgba(11, 143, 42, 0.1);
    color: var(--brand-forest);
    flex: none;
}
.policy-row h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; color: var(--brand-forest); }
.policy-row p { margin: 6px 0 0; color: var(--muted); font-size: 0.96rem; line-height: 1.7; }

/* ==========================================================================
   3 · Chairman — portrait + pull-quote
   ========================================================================== */

.chairman-portrait {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.chairman-portrait::after {
    content: "";
    position: absolute;
    left: -14px; bottom: -14px;
    width: 56%; height: 56%;
    border: 2px solid var(--brand-gold);
    border-radius: var(--radius);
    z-index: -1;
}
.chairman-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }

.check-row {
    display: flex; align-items: flex-start; gap: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.7);
    padding: 14px 16px;
    color: var(--brand-forest);
    font-weight: 500;
    box-shadow: inset 0 0 0 1px var(--line);
}
.check-row svg { color: var(--brand-leaf); flex: none; }

.pullquote {
    position: relative;
    margin: 0;
    padding: 8px 0 0 0;
    border-top: 1px solid var(--line-strong);
}
.pullquote p {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--brand-forest);
}
.pullquote .pullquote-label {
    font-family: var(--font-sans);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--brand-leaf);
}

/* ==========================================================================
   4 · Membership — status banner + price comparison
   ========================================================================== */

.status-banner {
    display: flex; gap: 14px; align-items: flex-start;
    border-radius: var(--radius);
    background: var(--tint-gold);
    box-shadow: inset 0 0 0 1px rgba(242, 189, 24, 0.4);
    padding: 18px 20px;
}
.status-banner-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none;
    border-radius: 11px; background: rgba(242, 189, 24, 0.24); color: #8a5a00;
}
.status-banner h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; color: #7a4f00; }
.status-banner p { margin: 6px 0 0; color: #8a5f1a; font-size: 0.94rem; line-height: 1.7; }

.price-compare {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
}
.price-col { padding: 22px; }
.price-col + .price-col { border-top: 1px solid var(--line); }
.price-col .price-type { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.price-col .price-amount { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 600; color: var(--brand-forest); line-height: 1.1; margin-top: 6px; }

/* ==========================================================================
   5 · Complaints — capability flow
   ========================================================================== */

.flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}
.flow-step {
    position: relative;
    display: flex; flex-direction: column; gap: 10px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.flow-step-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(11, 143, 42, 0.1); color: var(--brand-forest);
}
.flow-step span { font-weight: 600; font-size: 0.96rem; color: var(--ink-2); }
.flow-step .flow-num {
    position: absolute; top: 12px; right: 14px;
    font-family: var(--font-serif); font-weight: 600; font-size: 0.85rem;
    color: var(--brand-sprout); font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   6 · Donations — receipt panel + receipt rows
   ========================================================================== */

.receipt-panel {
    position: relative;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 14px;
}
.receipt-panel::before {
    content: "";
    position: absolute;
    left: 12px; right: 12px; top: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--brand-gold) 0 10px, transparent 10px 18px);
    border-radius: 0 0 6px 6px;
    opacity: 0.7;
}
.receipt-image { width: 100%; height: auto; border-radius: 8px; }

.receipt-rows { display: grid; }
.receipt-row {
    display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
    padding: 18px 4px;
    border-bottom: 1px dashed var(--line-strong);
}
.receipt-row:last-child { border-bottom: 0; }
.receipt-row-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 11px;
    background: rgba(242, 189, 24, 0.16); color: #9a6b00; flex: none;
}
.receipt-row h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; color: var(--brand-forest); }
.receipt-row p { margin: 4px 0 0; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }

/* ==========================================================================
   7 · Province database — region chips + bar table
   ========================================================================== */

.region-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.region-chip {
    display: inline-flex; flex-direction: column; gap: 2px;
    border-radius: 999px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 8px 16px;
}
.region-chip .region-chip-name { font-size: 0.82rem; font-weight: 600; color: var(--brand-forest); }
.region-chip .region-chip-value { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.bar-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.bar-track {
    flex: 1; max-width: 120px; height: 8px; border-radius: 999px;
    background: rgba(11, 79, 31, 0.1); overflow: hidden;
}
.bar-fill { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--brand-sprout), var(--brand-leaf)); }

/* ==========================================================================
   8 · Executive dashboard — dark control room tiles
   ========================================================================== */

.dash-tiles {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.dash-tile {
    display: flex; align-items: center; gap: 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    padding: 20px;
    backdrop-filter: blur(8px);
}
.dash-tile-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex: none;
    border-radius: 12px;
    background: rgba(136, 204, 16, 0.16);
    color: var(--brand-sun);
}
.dash-tile-label { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; font-weight: 500; }
.dash-tile-value {
    font-family: var(--font-serif); font-weight: 600;
    font-size: 1.9rem; color: #fff; line-height: 1.1; margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.dash-tile-value .unit { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   9 · Security — assurance vault (light, bordered)
   ========================================================================== */

.vault {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.vault-head {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 22px;
    background: var(--tint-leaf);
    border-bottom: 1px solid var(--line);
}
.vault-head svg { color: var(--brand-forest); }
.vault-head span { font-weight: 600; color: var(--brand-forest); }
.assurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.assurance-item {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    color: var(--ink-2); font-weight: 500;
}
.assurance-item svg { color: var(--brand-leaf); flex: none; }

/* ==========================================================================
   10 · FAQ — calm accordion
   ========================================================================== */

.faq-list { display: grid; gap: 12px; }
.faq-item {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 4px 20px;
    transition: box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    list-style: none; cursor: pointer;
    padding: 16px 0;
    font-family: var(--font-sans);
    color: var(--brand-forest);
    font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { flex: none; color: var(--brand-leaf); transition: transform 220ms var(--ease-out); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { margin: 0 0 16px; color: var(--muted); line-height: 1.8; }

/* ==========================================================================
   Cards (used sparingly), feature/mini/pricing legacy hooks
   ========================================================================== */

.surface-card {
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.feature-icon, .metric-icon {
    display: inline-flex; width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border-radius: 11px;
    background: rgba(11, 143, 42, 0.12);
    color: var(--brand-forest);
}

/* ==========================================================================
   Forms / notices
   ========================================================================== */

.form-panel {
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: clamp(20px, 3vw, 28px);
}
.form-field { display: grid; gap: 8px; color: var(--ink-2); font-size: 0.92rem; font-weight: 500; }
.form-field > span { font-weight: 600; }
.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper);
    padding: 11px 13px;
    color: var(--ink);
    transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.form-control::placeholder { color: #8c998c; }
.form-control:focus { outline: none; border-color: var(--brand-leaf); box-shadow: var(--ring); }
textarea.form-control { resize: vertical; line-height: 1.6; }
.file-input { padding: 9px; }
.form-hint { color: var(--muted); font-size: 0.82rem; font-weight: 400; }

/* Multi-section form (membership application) */
.form-section-title {
    font-family: var(--font-sans);
    font-size: 1.05rem; font-weight: 600; color: var(--brand-forest);
    margin: 26px 0 14px; padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 9px;
}
.form-section-title:first-of-type { margin-top: 2px; padding-top: 0; border-top: 0; }
.form-section-title svg { color: var(--brand-leaf); }
.choice-grid { display: grid; gap: 10px; }
.choice {
    display: flex; gap: 11px; align-items: flex-start;
    border: 1px solid var(--line-strong); border-radius: 10px;
    padding: 13px 15px; cursor: pointer;
    transition: border-color 150ms var(--ease-out), background 150ms var(--ease-out);
}
.choice:hover { border-color: var(--brand-leaf); }
.choice:has(input:checked) { border-color: var(--brand-leaf); background: var(--tint-leaf); }
.choice input { margin-top: 3px; width: 1.05rem; height: 1.05rem; accent-color: var(--brand-leaf); flex: none; }
.choice-body { display: grid; gap: 2px; }
.choice-title { font-weight: 600; color: var(--ink-2); }
.choice-note { font-size: 0.85rem; color: var(--muted); }
.choice-price { font-family: var(--font-serif); font-weight: 600; color: var(--brand-forest); }

.notice { border-radius: 10px; padding: 14px 16px; font-weight: 500; }
.notice-info { background: var(--tint-leaf); color: var(--brand-forest); }
.notice-warning { background: #fff4cd; color: #8a5a00; }
.notice-success { background: #e7f8ef; color: #0b6b2c; }
.notice-danger { background: #fde8e8; color: #991b1b; }

/* Empty state — shown when a data-driven section has no real records yet */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: clamp(32px, 6vw, 56px) 24px;
    border-radius: var(--radius);
    border: 1px dashed var(--line-strong);
    background: var(--paper);
}
.empty-state svg { color: var(--brand-leaf); }
.empty-state-title { font-weight: 600; color: var(--brand-forest); font-size: 1.05rem; }
.empty-state-text { max-width: 34rem; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* Required-field marker + file inputs + reCAPTCHA notice */
.req { color: #dc2626; font-weight: 700; }
.form-control[type="file"] { padding: 9px 12px; background: var(--paper); cursor: pointer; }
.form-control[type="file"]::file-selector-button {
    margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 8px;
    background: var(--brand-forest); color: #fff; font-weight: 600; cursor: pointer;
}
.field-note { margin-top: 6px; font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.recaptcha-note { margin-top: 14px; font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.recaptcha-note a { color: var(--brand-forest); text-decoration: underline; }
.attachment-pill a { color: var(--brand-forest); font-weight: 600; }

/* Multi-step membership wizard (mobile-first) */
.stepper-head { margin-bottom: 18px; }
.stepper-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.stepper-count { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.stepper-count strong { color: var(--brand-forest); font-size: 1.05rem; }
.stepper-title { font-family: var(--font-serif); font-weight: 600; color: var(--brand-forest); font-size: 1.05rem; text-align: right; }
.stepper-bar { height: 8px; border-radius: 999px; background: var(--tint-leaf); overflow: hidden; }
.stepper-bar-fill { display: block; height: 100%; width: 20%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-sprout), var(--brand-leaf)); transition: width 280ms var(--ease-out); }
.stepper-restored { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; background: var(--tint-leaf); color: var(--brand-forest); font-size: 0.9rem; font-weight: 600; }
.stepper-restored > span { display: inline-flex; align-items: center; gap: 6px; }
.stepper-clear { border: 0; background: transparent; color: var(--brand-forest); text-decoration: underline; font-weight: 600; cursor: pointer; font-size: 0.88rem; }
.form-step { animation: stepIn 240ms var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stepper-nav { display: flex; gap: 12px; margin-top: 26px; align-items: center; }
.stepper-grow { flex: 1; }
.stepper-back { flex: 0 0 auto; }
@media (max-width: 640px) {
    .stepper-title { font-size: 0.95rem; }
    .stepper-nav {
        position: sticky; bottom: 0; z-index: 5;
        margin: 24px calc(-1 * clamp(20px, 3vw, 28px)) 0;
        padding: 12px clamp(20px, 3vw, 28px) calc(14px + env(safe-area-inset-bottom, 0px));
        background: var(--paper); border-top: 1px solid var(--line);
    }
    .form-control { min-height: 50px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .form-step { animation: none; }
    .stepper-bar-fill { transition: none; }
}

/* Leadership page — leader cards */
/* Board of directors — portrait grid + click-to-detail (leadership page) */
.board-grid {
    display: grid;
    gap: clamp(12px, 2.2vw, 22px);
    grid-template-columns: repeat(2, 1fr);
    max-width: 1140px;
}
@media (min-width: 560px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .board-grid { grid-template-columns: repeat(5, 1fr); } }

.board-card {
    display: flex; flex-direction: column;
    padding: 0; text-align: center;
    font: inherit; color: inherit; cursor: pointer;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-leaf); }
.board-card:focus-visible { outline: none; border-color: var(--brand-leaf); box-shadow: 0 0 0 3px var(--tint-leaf), var(--shadow); }

.board-photo-wrap { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--brand-mist); }
.board-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 320ms var(--ease-out); }
.board-card:hover .board-photo { transform: scale(1.045); }

.board-badge {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
    border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--brand-forest);
    box-shadow: var(--shadow-sm);
}
.board-veil {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
    background: linear-gradient(to top, rgba(6, 42, 19, 0.74) 0%, rgba(6, 42, 19, 0) 48%);
    opacity: 0; transition: opacity 200ms var(--ease-out);
}
.board-card:hover .board-veil, .board-card:focus-visible .board-veil { opacity: 1; }
.board-view {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.96); color: var(--brand-forest);
    font-size: 0.82rem; font-weight: 600;
    transform: translateY(8px); transition: transform 200ms var(--ease-out);
}
.board-card:hover .board-view, .board-card:focus-visible .board-view { transform: none; }

.board-body { display: flex; flex-direction: column; gap: 3px; padding: 13px 12px 17px; }
.board-role {
    align-self: center; margin-bottom: 5px; padding: 3px 12px; border-radius: 999px;
    background: var(--tint-leaf); color: var(--brand-forest); font-weight: 600; font-size: 0.75rem; line-height: 1.35;
}
.board-name { font-family: var(--font-serif); font-weight: 600; color: var(--brand-forest); font-size: clamp(0.98rem, 1.35vw, 1.12rem); line-height: 1.35; }

/* Complaint status tracking (public, login-free) */
.link-quiet { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-forest); font-weight: 600; }
.link-quiet:hover { color: var(--brand-leaf); }

.track-result { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); padding: clamp(18px, 3vw, 26px); }
.track-result-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.track-ref { font-family: var(--font-mono, ui-monospace, "Cascadia Code", monospace); font-size: 1.12rem; font-weight: 700; color: var(--brand-forest); letter-spacing: 0.02em; }
.track-status-now { text-align: right; }

.track-meta { display: grid; gap: 12px 20px; margin: 18px 0 4px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .track-meta { grid-template-columns: 1fr 1fr; } }
.track-meta > div { display: flex; flex-direction: column; gap: 2px; }
.track-meta dt { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.track-meta dd { margin: 0; color: var(--ink); line-height: 1.5; }

.track-subhead { margin: 22px 0 12px; font-size: 1.05rem; font-weight: 700; color: var(--brand-forest); }
.track-timeline { list-style: none; margin: 0; padding: 0; }
.track-step { position: relative; display: flex; gap: 14px; padding: 0 0 18px 2px; }
.track-step::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: -6px; width: 2px; background: var(--line); }
.track-step:last-child::before { display: none; }
.track-dot { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 999px; background: #fff; border: 3px solid var(--brand-leaf); }
.track-step.is-current .track-dot { background: var(--brand-leaf); box-shadow: 0 0 0 4px var(--tint-leaf); }
.track-step-body { display: flex; flex-direction: column; gap: 1px; }
.track-step-status { font-weight: 600; color: var(--ink); }
.track-step.is-current .track-step-status { color: var(--brand-forest); }
.track-step-time { font-size: 0.83rem; color: var(--muted); }
.track-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Info request from staff + citizen reply on the tracking page */
.track-request { margin-top: 18px; border: 1px solid var(--brand-gold, #d9a441); border-radius: 12px; background: #fff8e9; padding: 14px 16px; }
.track-request-head { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-weight: 700; color: #8a5a00; }
.track-request-msg { margin: 0; color: var(--ink); line-height: 1.6; }
.track-step-note { display: block; margin-top: 4px; padding: 6px 10px; border-radius: 8px; background: var(--brand-mist); color: var(--ink); font-size: 0.9rem; line-height: 1.55; }
.track-responses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.track-responses li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--paper); }
.track-responses p { margin: 2px 0 0; line-height: 1.55; }
.track-resp-files { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-forest); font-size: 0.86rem; }
.track-reply { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Attachment previews under file inputs + pre-submit document review */
.file-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; cursor: default; }
.file-preview-item {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
    border: 1px solid var(--brand-leaf); border-radius: 10px;
    background: var(--tint-leaf); padding: 5px 10px 5px 5px;
}
.file-preview-item img { display: block; width: 52px; height: 52px; object-fit: cover; border-radius: 7px; background: #fff; }
.file-preview-doc {
    display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
    border-radius: 7px; background: var(--paper); color: var(--brand-forest); font-weight: 700; font-size: 0.7rem;
}
.file-preview-meta { font-size: 0.8rem; color: var(--brand-forest); font-weight: 600; word-break: break-all; }

.doc-review { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-mist); padding: 14px; }
.doc-review-title { margin: 0 0 10px; font-weight: 700; color: var(--brand-forest); font-size: 0.95rem; }
.doc-review-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.doc-review-item { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 8px; }
.doc-review-item img { width: 100%; height: 88px; object-fit: cover; border-radius: 6px; background: var(--brand-mist); }
.doc-review-ph {
    display: flex; width: 100%; height: 88px; align-items: center; justify-content: center;
    border-radius: 6px; background: var(--brand-mist); color: var(--muted); font-weight: 600; font-size: 0.82rem;
}
.doc-review-name { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.doc-review-status { font-size: 0.78rem; font-weight: 700; color: var(--brand-leaf); }
.doc-review-item.is-missing { border-color: #e5b8b8; }
.doc-review-item.is-missing .doc-review-status { color: #991b1b; }
.doc-review-item.is-optional .doc-review-status { color: var(--muted); }

/* Admin attachment previews (complaints) — image thumbs zoom, files open in a tab */
.att-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.att-thumb {
    display: flex; flex-direction: column; width: 104px; padding: 0;
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
    background: var(--paper); cursor: zoom-in; text-align: left;
    transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.att-thumb:hover, .att-thumb:focus-visible { border-color: var(--brand-leaf); box-shadow: var(--shadow-sm); outline: none; }
.att-thumb img { display: block; width: 100%; height: 72px; object-fit: cover; background: var(--brand-mist); }
.att-thumb-name {
    padding: 4px 7px 6px; font-size: 0.7rem; font-weight: 600; color: var(--ink-2); line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.att-file {
    display: inline-flex; align-items: center; gap: 9px; max-width: 240px;
    border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px 7px 8px;
    background: var(--paper); color: inherit;
    transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.att-file:hover, .att-file:focus-visible { border-color: var(--brand-leaf); box-shadow: var(--shadow-sm); outline: none; }
.att-kind {
    flex: none; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--tint-leaf); color: var(--brand-forest); font-size: 0.62rem; font-weight: 800;
}
.att-kind.is-video { background: var(--brand-forest); color: #fff; font-size: 0.85rem; }
.att-file-meta { display: flex; flex-direction: column; min-width: 0; }
.att-file-name { font-size: 0.78rem; font-weight: 600; color: var(--brand-forest); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-file-size { font-size: 0.7rem; color: var(--muted); }

/* News / PR cards */
.news-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); color: inherit; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-media { aspect-ratio: 16 / 9; background: var(--tint-leaf); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-noimg { color: var(--brand-leaf); opacity: 0.55; }
.news-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.news-card-date { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.news-card-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--brand-forest); line-height: 1.35; }
.news-card-excerpt { font-size: 0.92rem; color: var(--ink-2); line-height: 1.6; }

/* ==========================================================================
   Tables / pills
   ========================================================================== */

.table-shell {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.data-table th, .data-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px; text-align: left; vertical-align: middle;
}
.data-table th {
    background: var(--tint-leaf);
    color: var(--brand-forest);
    font-size: 0.84rem; font-weight: 600;
    position: sticky; top: 0;
}
.data-table td { color: var(--ink-2); font-size: 0.94rem; }
.data-table td.num { font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 140ms var(--ease-out); }
.data-table tbody tr:hover { background: rgba(11, 143, 42, 0.04); }

.status-pill, .attachment-pill {
    display: inline-flex; min-height: 26px; align-items: center;
    border-radius: 999px; padding: 2px 11px;
    font-size: 0.78rem; font-weight: 600;
}
.pill-success { background: #dcfce7; color: #14532d; }
.pill-warning { background: #fef3c7; color: #854d0e; }
.pill-danger { background: #fee2e2; color: #991b1b; }
.pill-info { background: #e0f2fe; color: #075985; }
.attachment-pill { background: var(--tint-leaf); color: var(--brand-forest); }

/* Compact admin table + inline status/delete controls (donations) */
.data-table.is-compact { min-width: 660px; }
.data-table.is-compact th, .data-table.is-compact td { padding: 11px 12px; }
.cell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cell-status-form { display: flex; align-items: center; gap: 8px; }
.cell-status-form select.form-control {
    width: auto; min-width: 7.5rem; min-height: 38px;
    padding: 7px 10px; font-size: 0.86rem;
}
.btn-xs { min-height: 36px; padding: 7px 15px; font-size: 0.85rem; border-radius: 9px; }

/* ==========================================================================
   Zoom modal (policy poster)
   ========================================================================== */

.zoom-modal:not([hidden]) {
    position: fixed; inset: 0; z-index: var(--z-modal);
    display: grid; place-items: center; padding: 18px;
}
.zoom-backdrop { position: absolute; inset: 0; border: 0; background: rgba(5, 24, 12, 0.78); cursor: zoom-out; }
.zoom-dialog {
    position: relative; z-index: 1;
    width: min(1120px, 100%); max-height: calc(100vh - 36px);
    overflow: auto; border-radius: var(--radius);
    background: var(--paper); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}
.zoom-toolbar {
    display: flex; position: sticky; top: 0; z-index: 2;
    min-height: 56px; align-items: center; justify-content: space-between; gap: 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 12px 10px 18px;
}
.zoom-toolbar p { margin: 0; color: var(--brand-forest); font-weight: 600; }
.zoom-close {
    display: inline-flex; width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 0; border-radius: 10px; background: var(--tint-leaf); color: var(--brand-forest); cursor: pointer;
}
.zoom-image { display: block; width: auto; max-width: calc(100% - 32px); object-fit: contain; margin: 8px auto 18px; border-radius: 6px; background: var(--brand-mist); }
body.is-zoom-open { overflow: hidden; }

/* ---- Result alert modal (form success / failure popup) ---- */
.alert-modal:not([hidden]) {
    position: fixed; inset: 0; z-index: var(--z-modal);
    display: grid; place-items: center; padding: 18px;
}
.alert-backdrop {
    position: absolute; inset: 0; border: 0;
    background: rgba(5, 24, 12, 0.55); backdrop-filter: blur(2px); cursor: pointer;
}
.alert-dialog {
    position: relative; z-index: 1;
    width: min(440px, 100%);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    padding: clamp(24px, 4vw, 34px);
    text-align: center;
    animation: alert-pop 240ms var(--ease-out);
}
@keyframes alert-pop {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
.alert-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 66px; height: 66px; border-radius: 999px; margin-bottom: 6px;
}
.alert-modal[data-status="success"] .alert-icon { background: #e7f8ef; color: var(--brand-leaf); }
.alert-modal[data-status="error"] .alert-icon { background: #fde8e8; color: #c0392b; }
.alert-icon-success, .alert-icon-error { display: none; }
.alert-modal[data-status="success"] .alert-icon-success { display: inline-flex; }
.alert-modal[data-status="error"] .alert-icon-error { display: inline-flex; }
.alert-title {
    margin: 14px 0 0;
    font-family: var(--font-serif); font-weight: 600; font-size: 1.4rem;
    color: var(--brand-forest);
}
.alert-modal[data-status="error"] .alert-title { color: #b03a2e; }
.alert-message { margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.alert-reference {
    margin: 16px 0 0; padding: 10px 12px;
    border-radius: 10px; background: var(--tint-leaf);
    color: var(--brand-forest); font-weight: 600; font-size: 0.92rem;
    word-break: break-all;
}
.alert-modal[data-status="error"] .btn-primary {
    background: linear-gradient(135deg, #e05a4d, #b03a2e);
    box-shadow: 0 10px 24px rgba(176, 58, 46, 0.24);
}
@media (prefers-reduced-motion: reduce) { .alert-dialog { animation: none; } }

/* ---- Upload progress bar (shown while attachments are sent) ---- */
.upload-progress {
    border-radius: 10px;
    background: var(--tint-leaf);
    padding: 12px 14px;
}
.upload-progress-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem; font-weight: 600; color: var(--brand-forest);
}
.upload-progress-track {
    height: 8px; border-radius: 999px;
    background: rgba(11, 79, 31, 0.14); overflow: hidden;
}
.upload-progress-fill {
    height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-sprout), var(--brand-leaf));
    transition: width 120ms linear;
}
.upload-progress [data-progress-pct] { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Admin (product register)
   ========================================================================== */

.admin-section { background: var(--brand-mist); }
/* Admin back-office runs full-width (app layout), not the centered marketing column */
.admin-section { padding: clamp(20px, 2.4vw, 34px) 0 clamp(40px, 5vw, 64px); }
.admin-section .container-page { width: calc(100% - clamp(24px, 3vw, 56px)); max-width: none; }
.admin-layout { display: grid; gap: 24px; }
.admin-sidebar { position: relative; }
.admin-main { min-width: 0; }
.admin-panel {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}
.admin-nav-link {
    display: flex; min-height: 46px; align-items: center; gap: 10px;
    border-radius: 10px; background: var(--paper);
    padding: 0 14px; color: var(--ink-2); font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}
.admin-nav-link:hover { background: var(--tint-leaf); color: var(--brand-forest); }
.admin-nav-link.is-active { background: var(--brand-forest); color: #fff; box-shadow: none; }
.admin-card {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}
.admin-card-title { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; color: var(--brand-forest); }

/* Record cards (members, complaints) — tile across the full-width admin, capped so a
   single card never stretches edge-to-edge. Controls live in a footer below the body. */
.admin-cards {
    display: grid; gap: 16px; align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 680px));
}
.admin-card-foot {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid; gap: 10px;
}
.admin-status-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.perm-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.perm-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--brand-leaf); flex: none; }
.complaint-history { margin: 6px 0 0; padding-left: 16px; list-style: disc; font-size: 0.85rem; color: var(--ink-2); }
.complaint-history li { margin: 3px 0; line-height: 1.6; }
.complaint-history .ch-time, .complaint-history .ch-actor { color: var(--muted); }

/* Green accent line under every admin page title */
.admin-page-head { padding-bottom: 16px; border-bottom: 2px solid var(--brand-leaf); }

/* Admin usage guide */
.guide-wrap { max-width: 1000px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.guide-toc a {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px; font-size: 0.86rem; font-weight: 600;
    color: var(--brand-forest); background: var(--paper);
}
.guide-toc a:hover { border-color: var(--brand-leaf); background: var(--tint-leaf); }
.guide-quickstart { background: var(--tint-leaf); border: 1px solid var(--brand-leaf); border-radius: 12px; padding: 18px 20px; margin-bottom: 22px; }
.guide-quickstart-role { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--brand-forest); font-weight: 600; }
.guide-quickstart-duty { margin-top: 6px; color: var(--ink-2); line-height: 1.7; }
.guide-quickstart-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.guide-section { scroll-margin-top: 90px; margin-bottom: 18px; }
.guide-section h2 { font-size: 1.25rem; color: var(--brand-forest); display: flex; align-items: center; gap: 10px; }
.guide-step { counter-reset: step; margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.guide-step li { position: relative; padding-left: 38px; line-height: 1.7; color: var(--ink-2); }
.guide-step li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 1px;
    width: 26px; height: 26px; border-radius: 999px;
    background: var(--brand-leaf); color: #fff; font-size: 0.85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.guide-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.guide-list li { position: relative; padding-left: 22px; line-height: 1.7; color: var(--ink-2); }
.guide-list li::before {
    content: ""; position: absolute; left: 4px; top: 11px;
    width: 7px; height: 7px; border-radius: 999px; background: var(--brand-leaf);
}
.guide-note {
    margin-top: 12px; border-left: 4px solid var(--brand-gold);
    background: #fffaf0; padding: 10px 14px; border-radius: 8px;
    font-size: 0.9rem; color: var(--ink-2);
}
.guide-shot { margin: 14px 0 0; }
.guide-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.guide-shot figcaption { margin-top: 6px; font-size: 0.82rem; color: var(--muted); }

.metric-card {
    display: flex; align-items: center; gap: 16px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}
.metric-value { font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; color: var(--brand-forest); font-variant-numeric: tabular-nums; }

/* A/B testing results */
.ab-variant { border-radius: 10px; border: 1px solid var(--line); padding: 14px 16px; }
.ab-variant.is-leader { border-color: var(--brand-leaf); background: var(--tint-leaf); }
.ab-variant-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ab-key {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex: none;
    border-radius: 8px; background: var(--brand-forest); color: #fff;
    font-weight: 600; font-size: 0.85rem;
}
.ab-label { font-weight: 600; color: var(--ink-2); }
.ab-leader { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--brand-forest); font-weight: 600; font-size: 0.82rem; }
.ab-leader svg { color: var(--brand-gold); }
.ab-variant-bar { height: 8px; border-radius: 999px; background: rgba(11, 79, 31, 0.1); overflow: hidden; margin: 11px 0 8px; }
.ab-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-sprout), var(--brand-leaf)); transition: width 320ms var(--ease-out); }
.ab-variant-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: var(--muted); }
.ab-variant-stats strong { color: var(--brand-forest); font-variant-numeric: tabular-nums; }

/* "What is A/B testing" explainer (collapsible) */
.ab-explainer { border-radius: var(--radius); border: 1px solid var(--line); background: var(--tint-leaf); overflow: hidden; }
.ab-explainer > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    list-style: none; cursor: pointer; padding: 16px 18px;
    font-family: var(--font-sans); font-weight: 600; color: var(--brand-forest);
}
.ab-explainer > summary::-webkit-details-marker { display: none; }
.ab-explainer-head { display: flex; align-items: center; gap: 10px; }
.ab-explainer .ab-chevron { flex: none; color: var(--brand-leaf); transition: transform 220ms var(--ease-out); }
.ab-explainer[open] .ab-chevron { transform: rotate(180deg); }
.ab-explainer-body { padding: 0 18px 18px; }
.ab-explainer-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ab-explainer-card { background: var(--paper); border-radius: 10px; padding: 15px 16px; box-shadow: var(--shadow-sm); }
.ab-explainer-card h3 {
    font-family: var(--font-sans); font-size: 0.98rem; font-weight: 600; color: var(--brand-forest);
    display: flex; align-items: center; gap: 8px; margin: 0 0 7px;
}
.ab-explainer-card h3 svg { color: var(--brand-leaf); flex: none; }
.ab-explainer-card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.7; }
.ab-explainer-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.7; }
.ab-explainer-card li { margin-top: 3px; }
.ab-explainer-card li strong { color: var(--brand-forest); }

/* Login */
.login-section {
    min-height: calc(100vh - 180px);
    display: grid; align-items: center;
    background:
        linear-gradient(90deg, rgba(4, 40, 16, 0.9), rgba(4, 40, 16, 0.6)),
        url("/assets/images/hero-1.webp");
    background-position: center; background-size: cover;
    padding: clamp(48px, 8vw, 80px) 0;
}
.login-grid { display: grid; gap: 32px; align-items: center; }
.login-copy { color: #fff; }
.login-copy h1 {
    font-family: var(--font-serif); color: #fff; font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1;
}
.login-copy p { max-width: 52ch; color: rgba(255, 255, 255, 0.86); font-size: 1.05rem; line-height: 1.85; }
.login-check {
    display: flex; width: min(100%, 520px); align-items: center; gap: 10px;
    border-radius: 10px; background: rgba(255, 255, 255, 0.12);
    padding: 12px 14px; color: #fff; font-weight: 500;
}
.login-panel {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.97);
    padding: clamp(22px, 3vw, 30px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-band { background: var(--forest-deep); color: #fff; }
.footer-title { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; }
.footer-brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; }
.footer-link {
    display: inline-flex; color: rgba(255, 255, 255, 0.78);
    transition: color 150ms var(--ease-out);
}
.footer-link:hover { color: var(--brand-sun); }

/* ==========================================================================
   Motion: scroll reveal (enhances an already-visible default; needs .js)
   ========================================================================== */

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: 70ms; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: 140ms; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero-slide { transition: opacity 1ms linear; }
}

/* ==========================================================================
   Tailwind-CDN utility fallback (subset used by the PHP views)
   ========================================================================== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-4 { height: 1rem; } .h-5 { height: 1.25rem; } .h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; } .h-12 { height: 3rem; } .h-14 { height: 3.5rem; }
.w-4 { width: 1rem; } .w-5 { width: 1.25rem; } .w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; } .w-44 { width: 11rem; }
.max-w-xs { max-width: 20rem; } .max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; } .max-w-5xl { max-width: 64rem; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .25rem; } .mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-1 { padding: .25rem; } .p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-0 { padding-top: 0; }
.rounded { border-radius: .375rem; } .rounded-lg { border-radius: 12px; } .rounded-full { border-radius: 999px; }
.border { border: 1px solid var(--line); }
.border-t { border-top: 1px solid var(--line); }
.shadow-sm { box-shadow: var(--shadow-sm); } .shadow-lg { box-shadow: var(--shadow); }
.object-cover { object-fit: cover; }
.text-center { text-align: center; } .text-right { text-align: right; }
.text-xs { font-size: .75rem; } .text-sm { font-size: .875rem; } .text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; } .text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.font-black { font-weight: 700; }   /* downgraded: no 900 weights in this design */

/* WCAG AA contrast: remap the Tailwind slate grays used in views to accessible
   tokens (they sit on white/light surfaces; defaults fall below 4.5:1). The
   `body` prefix wins the cascade over the CDN's single-class rule. */
body .text-slate-400 { color: #5f6d61; }
body .text-slate-500 { color: var(--muted); }
body .text-slate-600 { color: var(--ink-2); }
.leading-tight { line-height: 1.25; } .leading-6 { line-height: 1.5rem; } .leading-7 { line-height: 1.75rem; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.min-h-24 { min-height: 6rem; } .min-h-36 { min-height: 9rem; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-\[1fr_auto\] { grid-template-columns: 1fr auto; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:items-end { align-items: flex-end; }
    .md\:justify-between { justify-content: space-between; }
}
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:items-center { align-items: center; }
    .lg\:items-start { align-items: flex-start; }
    .lg\:items-end { align-items: flex-end; }
    .lg\:justify-between { justify-content: space-between; }
    .lg\:w-44 { width: 11rem; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-\[0\.92fr_1\.08fr\] { grid-template-columns: .92fr 1.08fr; }
    .lg\:grid-cols-\[0\.9fr_1\.1fr\] { grid-template-columns: .9fr 1.1fr; }
    .lg\:grid-cols-\[1\.1fr_0\.9fr\] { grid-template-columns: 1.1fr .9fr; }
    .lg\:grid-cols-\[0\.8fr_1\.2fr\] { grid-template-columns: .8fr 1.2fr; }
    .lg\:grid-cols-\[1fr_1fr\] { grid-template-columns: 1fr 1fr; }
    .lg\:grid-cols-\[0\.85fr_1\.15fr\] { grid-template-columns: .85fr 1.15fr; }
    .lg\:grid-cols-\[0\.82fr_1\.18fr\] { grid-template-columns: .82fr 1.18fr; }
    .lg\:grid-cols-\[0\.86fr_1\.14fr\] { grid-template-columns: .86fr 1.14fr; }
    .lg\:grid-cols-\[0\.95fr_1\.05fr\] { grid-template-columns: .95fr 1.05fr; }
    .lg\:grid-cols-\[1\.2fr_0\.8fr_0\.8fr\] { grid-template-columns: 1.2fr .8fr .8fr; }
    .admin-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
    .admin-sidebar { position: sticky; top: 92px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; }
    .hero-copy { max-width: 44rem; }
    .hero-lead { max-width: 40rem; }
    .login-grid { grid-template-columns: minmax(0, 1fr) 440px; }
    .policy-grid { grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr); }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl\:flex-row { flex-direction: row; }
}

@media (max-width: 1023px) {
    .price-compare { grid-template-columns: 1fr; }
}
@media (min-width: 560px) {
    .price-compare { grid-template-columns: 1fr 1fr; }
    .price-col + .price-col { border-top: 0; border-left: 1px solid var(--line); }
}

@media (max-width: 767px) {
    .hero-section { --header-h: 64px; } /* mobile header is a touch shorter; stay fullscreen */
    .hero-section::before {
        background:
            linear-gradient(180deg, rgba(4, 40, 16, 0.92), rgba(4, 40, 16, 0.72) 58%, rgba(4, 40, 16, 0.42)),
            linear-gradient(90deg, rgba(4, 40, 16, 0.32), rgba(4, 40, 16, 0.14));
    }
    .hero-panel { display: none; } /* hide decorative stats on mobile so the hero fits one screen */
    .hero-stat span { font-size: 1.7rem; }
    .hero-slider-controls { justify-content: center; }
    .policy-zoom-badge { right: 14px; bottom: 14px; min-height: 38px; font-size: 0.84rem; }
    .zoom-modal:not([hidden]) { padding: 10px; }
    .zoom-dialog { overflow: auto; -webkit-overflow-scrolling: touch; }
    /* Keep the zoomed image within the viewport width so 200% zoom never forces
       two-dimensional scrolling (WCAG 1.4.10 reflow). */
    .zoom-image { width: 100%; min-width: 0; max-width: 100%; }
}
