/* ─────────────────────────────────────────────────────────────────
 * Funding program pages — shared light styles
 * Paired with: funding/_shell.php partial
 * ───────────────────────────────────────────────────────────────── */

main { padding-top: 72px; }

/* ── TOPBAR (breadcrumb) ── */
.fnd-topbar { padding: 20px 0 12px; background: var(--ap-paper); }
.fnd-topbar-inner {
    max-width: var(--ap-container);
    margin: 0 auto;
    padding: 0 var(--ap-gutter-md);
}
.fnd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ap-font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ap-ink-3);
    text-decoration: none;
    transition: gap var(--ap-duration-base) var(--ap-ease-smooth), color var(--ap-duration-base) var(--ap-ease-smooth);
}
.fnd-back:hover { gap: 12px; color: var(--ap-ink); }

/* ── HERO ── */
.fnd-hero {
    padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 72px);
    background: var(--ap-paper);
    position: relative;
    overflow: hidden;
}
.fnd-hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -20% -10%;
    height: 45vw; max-height: 600px;
    background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(77,128,94,0.14) 0%, transparent 60%);
    pointer-events: none;
}
.fnd-hero-inner {
    max-width: var(--ap-container);
    margin: 0 auto;
    padding: 0 var(--ap-gutter-md);
    position: relative; z-index: 1;
}
.fnd-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.fnd-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--ap-radius-pill);
    font-family: var(--ap-font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--ap-accent-tint);
    color: var(--ap-accent-darker);
    border: 1px solid var(--ap-accent-tint-2);
}
.fnd-tag.live::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ap-accent);
    box-shadow: 0 0 0 3px rgba(77,128,94,0.22);
    animation: fnd-pulse 2s ease-in-out infinite;
}
@keyframes fnd-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(77,128,94,0.22); opacity: 1; }
    50%     { box-shadow: 0 0 0 6px rgba(77,128,94,0.05); opacity: 0.85; }
}
.fnd-tag.neutral { background: var(--ap-paper-sunk); color: var(--ap-ink-3); border-color: var(--ap-border); }

.fnd-hero h1 {
    font-family: var(--ap-font-display);
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--ap-ink);
    font-weight: 700;
    margin: 0 0 8px;
    max-width: 18ch;
}
.fnd-hero .subtitle {
    font-family: var(--ap-font-sans);
    font-size: var(--ap-text-lg);
    color: var(--ap-ink-3);
    margin: 0 0 24px;
}
.fnd-hero .amount {
    font-family: var(--ap-font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--ap-accent);
    margin: 0 0 28px;
}
.fnd-hero .lede {
    font-family: var(--ap-font-sans);
    font-size: var(--ap-text-lg);
    color: var(--ap-ink-2);
    line-height: 1.55;
    margin: 0 0 36px;
    max-width: 58ch;
}
.fnd-hero .lede strong { color: var(--ap-ink); font-weight: 600; }
.fnd-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── SECTIONS ── */
.fnd-section {
    padding: clamp(56px, 8vw, 96px) 0;
}
.fnd-section:nth-of-type(odd)  { background: var(--ap-paper-sunk); }
.fnd-section:nth-of-type(even) { background: var(--ap-paper); }
.fnd-section-inner {
    max-width: var(--ap-container);
    margin: 0 auto;
    padding: 0 var(--ap-gutter-md);
}
.fnd-section h2 {
    font-family: var(--ap-font-display);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ap-ink);
    font-weight: 700;
    margin: 12px 0 12px;
}
.fnd-section h2 .dot { color: var(--ap-accent); }
.fnd-section .section-sub {
    color: var(--ap-ink-3);
    font-size: var(--ap-text-base);
    margin: 0 0 40px;
}

/* ── ELIGIBILITY CHECKLIST ── */
.fnd-check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 720px) { .fnd-check-grid { grid-template-columns: 1fr 1fr; } }
.fnd-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-radius: var(--ap-radius-lg);
    background: var(--ap-paper-raised);
    border: 1px solid var(--ap-border);
    transition: all var(--ap-duration-base) var(--ap-ease-smooth);
}
.fnd-check:hover { border-color: var(--ap-accent-tint-2); background: var(--ap-accent-tint); }
.fnd-check .icon {
    width: 22px; height: 22px;
    color: var(--ap-accent);
    flex-shrink: 0; margin-top: 2px;
}
.fnd-check .txt strong {
    display: block;
    font-family: var(--ap-font-sans);
    font-weight: 600;
    font-size: var(--ap-text-base);
    color: var(--ap-ink);
    margin-bottom: 4px;
    letter-spacing: -0.005em;
}
.fnd-check .txt span {
    font-family: var(--ap-font-sans);
    color: var(--ap-ink-3);
    font-size: var(--ap-text-sm);
    line-height: 1.5;
}

/* Not-eligible alert */
.fnd-alert {
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: var(--ap-radius-lg);
    background: var(--ap-warning-tint);
    border: 1px solid var(--ap-warning-border);
}
.fnd-alert .head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: var(--ap-font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-warning);
    font-weight: 600;
}
.fnd-alert p {
    font-size: var(--ap-text-sm);
    color: var(--ap-ink-2);
    line-height: 1.55;
    margin: 0;
}
.fnd-alert a { color: var(--ap-warning); text-decoration: underline; font-weight: 500; }

/* ── COVERED SERVICES ROW ── */
.fnd-covered { display: flex; flex-direction: column; gap: 14px; }
.fnd-covered-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--ap-paper-raised);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    transition: all var(--ap-duration-base) var(--ap-ease-smooth);
}
.fnd-covered-item:hover { border-color: var(--ap-border-strong); transform: translateX(4px); }
.fnd-covered-item .icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--ap-accent-tint);
    display: flex; align-items: center; justify-content: center;
    color: var(--ap-accent-dark);
}
.fnd-covered-item .body { flex: 1; }
.fnd-covered-item .body strong {
    display: block;
    font-family: var(--ap-font-sans);
    font-size: var(--ap-text-base);
    font-weight: 600;
    color: var(--ap-ink);
    margin-bottom: 3px;
    letter-spacing: -0.005em;
}
.fnd-covered-item .body span {
    color: var(--ap-ink-3);
    font-size: var(--ap-text-sm);
    line-height: 1.5;
}

/* ── TIMELINE ── */
.fnd-timeline { list-style: none; margin: 0; padding: 0; }
.fnd-timeline-step {
    position: relative;
    padding: 0 0 40px 56px;
}
.fnd-timeline-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 17px; top: 36px; bottom: 0;
    width: 2px;
    background: var(--ap-border);
}
.fnd-timeline-step .num {
    position: absolute;
    left: 0; top: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--ap-accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}
.fnd-timeline-step h3 {
    font-family: var(--ap-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ap-ink);
    margin: 0 0 6px;
    line-height: 1.2;
}
.fnd-timeline-step p {
    color: var(--ap-ink-2);
    font-size: var(--ap-text-base);
    line-height: 1.55;
    margin: 0;
    max-width: 64ch;
}

/* ── FAQ (details/summary) ── */
.fnd-faq-list { border-top: 1px solid var(--ap-border); }
.fnd-faq-item {
    border-bottom: 1px solid var(--ap-border);
    padding: 22px 0;
}
.fnd-faq-item[open] { padding-bottom: 28px; }
.fnd-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-family: var(--ap-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ap-ink);
}
.fnd-faq-item summary::-webkit-details-marker { display: none; }
.fnd-faq-item summary:hover { color: var(--ap-accent-dark); }
.fnd-faq-chev {
    color: var(--ap-ink-4);
    transition: transform var(--ap-duration-base) var(--ap-ease-smooth);
    flex-shrink: 0;
}
.fnd-faq-item[open] .fnd-faq-chev { transform: rotate(180deg); color: var(--ap-accent); }
.fnd-faq-item p {
    margin: 14px 0 0;
    color: var(--ap-ink-2);
    font-size: var(--ap-text-base);
    line-height: 1.65;
    max-width: 64ch;
}

/* ── FINAL CTA ── */
.fnd-cta { padding: clamp(64px, 10vw, 120px) 0; background: var(--ap-paper-sunk); }
.fnd-cta-inner {
    max-width: var(--ap-container-narrow);
    margin: 0 auto;
    padding: 0 var(--ap-gutter-md);
    text-align: center;
}
.fnd-cta h2 {
    font-family: var(--ap-font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--ap-ink);
    font-weight: 700;
    margin: 12px 0 16px;
}
.fnd-cta h2 em { color: var(--ap-accent); font-style: normal; }
.fnd-cta h2 .dot { color: var(--ap-accent); }
.fnd-cta p {
    font-size: var(--ap-text-lg);
    color: var(--ap-ink-3);
    line-height: 1.55;
    margin: 0 auto 32px;
    max-width: 58ch;
}
.fnd-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FUNDING HUB (index.php) ── */
.fnd-hub-hero {
    padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 72px);
    background: var(--ap-paper);
    position: relative; overflow: hidden;
}
.fnd-hub-hero::before {
    content: "";
    position: absolute;
    inset: -10% -10% auto auto;
    width: 45vw; height: 45vw; max-width: 600px; max-height: 600px;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(77,128,94,0.14) 0%, transparent 60%);
    pointer-events: none;
}
.fnd-hub-hero-inner {
    max-width: var(--ap-container);
    margin: 0 auto;
    padding: 0 var(--ap-gutter-md);
    position: relative; z-index: 1;
}
.fnd-hub-hero h1 {
    font-family: var(--ap-font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--ap-ink);
    font-weight: 700;
    margin: 16px 0 24px;
    max-width: 16ch;
}
.fnd-hub-hero h1 em { color: var(--ap-accent); font-style: normal; }
.fnd-hub-hero h1 .dot { color: var(--ap-accent); }
.fnd-hub-hero .sub {
    font-size: var(--ap-text-lg);
    color: var(--ap-ink-3);
    max-width: 60ch;
    line-height: 1.55;
    margin: 0 0 32px;
}
.fnd-hub-hero .flag-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--ap-paper-raised);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-pill);
    font-family: var(--ap-font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ap-ink-3);
    text-transform: uppercase;
}
.fnd-hub-hero .flag-row span.flag { font-size: 1.25rem; }

.fnd-hub-grid-section {
    padding: 64px 0 clamp(64px, 10vw, 120px);
    background: var(--ap-paper);
}
.fnd-hub-grid-inner {
    max-width: var(--ap-container);
    margin: 0 auto;
    padding: 0 var(--ap-gutter-md);
}
.fnd-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 760px)  { .fnd-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .fnd-hub-grid { grid-template-columns: repeat(3, 1fr); } }

.fnd-hub-card {
    background: var(--ap-paper-raised);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-2xl);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all var(--ap-duration-base) var(--ap-ease-smooth);
    min-height: 320px;
}
.fnd-hub-card:hover {
    transform: translateY(-4px);
    border-color: var(--ap-accent);
    box-shadow: var(--ap-shadow-lg);
}
.fnd-hub-card .level {
    font-family: var(--ap-font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-accent-dark);
    font-weight: 500;
    margin-bottom: 10px;
}
.fnd-hub-card h3 {
    font-family: var(--ap-font-display);
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--ap-ink);
    margin: 0 0 8px;
    line-height: 1.1;
}
.fnd-hub-card .amount {
    font-family: var(--ap-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ap-accent);
    margin: 0 0 16px;
}
.fnd-hub-card p {
    color: var(--ap-ink-3);
    font-size: var(--ap-text-sm);
    line-height: 1.55;
    margin: 0 0 20px;
    flex: 1;
}
.fnd-hub-card .go {
    font-family: var(--ap-font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--ap-duration-base) var(--ap-ease-smooth), color var(--ap-duration-base) var(--ap-ease-smooth);
}
.fnd-hub-card:hover .go { gap: 14px; color: var(--ap-accent); }

/* ── ELIGIBILITY CHECKER (hub) ───────────────────────────── */
.ec-wizard {
    background: var(--ap-paper-raised);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-2xl);
    padding: 32px;
    box-shadow: var(--ap-shadow-sm);
}
@media (max-width: 560px) { .ec-wizard { padding: 22px; } }

.ec-progress { margin-bottom: 28px; }
.ec-progress-meta { display: flex; justify-content: space-between; margin-bottom: 10px; }
.ec-step-label {
    font-family: var(--ap-font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ap-accent-dark);
    font-weight: 500;
}
.ec-step-title {
    font-family: var(--ap-font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ap-ink-4);
}
.ec-track {
    height: 3px;
    background: var(--ap-divider);
    border-radius: 2px;
    overflow: hidden;
}
.ec-fill {
    height: 100%;
    background: var(--ap-accent);
    border-radius: 2px;
    transition: width var(--ap-duration-slow) var(--ap-ease-smooth);
}

.ec-body { min-height: 220px; }
.ec-q {
    font-family: var(--ap-font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ap-ink);
    margin: 0 0 6px;
    line-height: 1.2;
}
.ec-sub {
    color: var(--ap-ink-3);
    font-size: var(--ap-text-sm);
    margin: 0 0 20px;
}
.ec-options {
    display: grid;
    gap: 10px;
}
.ec-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    background: var(--ap-paper);
    border: 1px solid var(--ap-border-strong);
    border-radius: var(--ap-radius-lg);
    cursor: pointer;
    text-align: center;
    font-family: var(--ap-font-sans);
    color: var(--ap-ink);
    transition: border-color var(--ap-duration-base) var(--ap-ease-smooth), background var(--ap-duration-base) var(--ap-ease-smooth), transform var(--ap-duration-base) var(--ap-ease-smooth);
}
.ec-opt:hover { border-color: var(--ap-ink); background: var(--ap-paper-raised); transform: translateY(-1px); }
.ec-opt.selected { border-color: var(--ap-accent); background: var(--ap-accent-tint); color: var(--ap-accent-darker); }
.ec-opt .emoji { font-size: 1.375rem; }
.ec-opt .label { font-size: var(--ap-text-sm); font-weight: 600; letter-spacing: -0.005em; }
.ec-opt .check {
    position: absolute;
    top: 8px; right: 8px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--ap-accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity var(--ap-duration-base) var(--ap-ease-smooth);
}
.ec-opt.selected .check { opacity: 1; }

.ec-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.ec-note {
    color: var(--ap-ink-4);
    font-size: var(--ap-text-xs);
    font-family: var(--ap-font-sans);
    margin-left: auto;
    max-width: 42ch;
    text-align: right;
}

.ec-next {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 14px;
    background: var(--ap-ink);
    color: var(--ap-paper);
    border: 1px solid var(--ap-ink);
    border-radius: var(--ap-radius-md);
    font-family: var(--ap-font-sans);
    font-size: var(--ap-text-md);
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background var(--ap-duration-base) var(--ap-ease-smooth), transform var(--ap-duration-base) var(--ap-ease-smooth);
}
.ec-next:disabled { opacity: 0.5; cursor: not-allowed; }
.ec-next:not(:disabled):hover { background: var(--ap-ink-2); transform: translateY(-1px); }

/* Results */
.ec-results-head { text-align: center; margin-bottom: 22px; }
.ec-results-head .eyebrow { font-family: var(--ap-font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ap-accent-dark); font-weight: 500; margin: 0 0 4px; }
.ec-results-head h3 { font-family: var(--ap-font-display); font-size: 2.25rem; font-weight: 700; letter-spacing: -0.035em; color: var(--ap-ink); margin: 0; line-height: 1; }
.ec-results-head .total { color: var(--ap-ink-3); font-size: var(--ap-text-md); margin-top: 6px; }
.ec-results-head .total strong { color: var(--ap-accent-dark); font-weight: 700; }

.ec-result-list { display: flex; flex-direction: column; gap: 10px; }
.ec-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--ap-paper);
    border: 1px solid var(--ap-border);
    border-left-width: 3px;
    border-radius: var(--ap-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--ap-duration-base) var(--ap-ease-smooth), background var(--ap-duration-base) var(--ap-ease-smooth);
}
.ec-result:hover { background: var(--ap-paper-sunk); border-color: var(--ap-accent); }
.ec-result .name { font-weight: 600; color: var(--ap-ink); font-size: var(--ap-text-md); letter-spacing: -0.005em; }
.ec-result .desc { color: var(--ap-ink-3); font-size: var(--ap-text-sm); line-height: 1.45; margin-top: 2px; }
.ec-result .amt  { font-family: var(--ap-font-display); font-weight: 700; color: var(--ap-accent-dark); letter-spacing: -0.02em; white-space: nowrap; }

.ec-results-cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ec-reset { background: none; border: none; color: var(--ap-ink-4); font-size: var(--ap-text-xs); text-decoration: underline; cursor: pointer; padding: 4px 8px; font-family: var(--ap-font-sans); }
.ec-reset:hover { color: var(--ap-ink); }

.ec-empty { text-align: center; padding: 20px 12px; }
.ec-empty .emoji { font-size: 2.5rem; margin-bottom: 10px; }
.ec-empty h3 { font-family: var(--ap-font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.025em; color: var(--ap-ink); margin: 0 0 8px; }
.ec-empty p { color: var(--ap-ink-3); font-size: var(--ap-text-sm); max-width: 44ch; margin: 0 auto 20px; line-height: 1.5; }
