/* BroPro Compassion Fund — public facts.
   Used by the "About the fund" section of /compassion-zone/ and by the
   server-rendered pages /compassion-zone/impact/ and /compassion-zone/story/…
   (functions/compassion-seo.js). No script needed. */

.czp, .czp-page {
    --czp-teal: #0D9488;
    --czp-teal-2: #2DD4BF;
    --czp-amber: #F59E0B;
    --czp-text: #E6EEF7;
    --czp-muted: #9FB0C6;
    --czp-card: rgba(13, 148, 136, 0.06);
    --czp-line: rgba(45, 212, 191, 0.16);
    --czp-bg: #070E1B;
}

/* ── Section on the Compassion Zone page ── */
.czp {
    margin: 1.4rem 0 0.5rem;
    padding: 1.3rem 1.2rem 1.2rem;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(13, 148, 136, 0.09), rgba(49, 46, 129, 0.08));
    border: 1px solid var(--czp-line);
    color: var(--czp-text);
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.6;
}
.czp-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.czp-logo { width: 56px; height: 56px; border-radius: 14px; flex: none; object-fit: cover; }
.czp-title { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.25; color: var(--czp-text); }
.czp-sub { margin: 0.1rem 0 0; color: var(--czp-teal-2); font-size: 0.85rem; font-weight: 600; }
.czp-lead { margin: 0 0 1rem; color: var(--czp-text); font-size: 0.98rem; }
.czp-h1 { margin: 0.3rem 0 0.8rem; font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1.2; font-weight: 800; }
.czp-h2 { margin: 2rem 0 0.8rem; font-size: 1.25rem; font-weight: 800; }
.czp-h3 { margin: 1.3rem 0 0.6rem; font-size: 1.02rem; font-weight: 700; color: var(--czp-teal-2); }

/* President */
.czp-leader {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.85rem 1rem; border-radius: 16px;
    background: linear-gradient(145deg, rgba(217, 119, 6, 0.12), rgba(13, 148, 136, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.czp-crown {
    width: 46px; height: 46px; flex: none; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.35rem;
    background: linear-gradient(135deg, #D97706, #10B981);
}
.czp-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--czp-amber); }
.czp-name { font-size: 1.15rem; font-weight: 800; color: var(--czp-text); }
.czp-meta { font-size: 0.85rem; color: var(--czp-muted); }
.czp-past { margin: 0.55rem 0 0; font-size: 0.88rem; color: var(--czp-muted); }
.czp-past span { color: var(--czp-text); font-weight: 600; }

/* Quick facts */
.czp-facts { margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 0.5rem; }
.czp-facts > div { padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--czp-card); border: 1px solid var(--czp-line); min-width: 0; }
.czp-facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--czp-muted); }
.czp-facts dd { margin: 0.1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* Help records */
.czp-help { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.czp-help-item {
    display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start;
    padding: 0.7rem 0.85rem; border-radius: 12px;
    background: var(--czp-card); border: 1px solid var(--czp-line);
    scroll-margin-top: 80px;
}
.czp-help-item:target { border-color: var(--czp-amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.czp-help-main { display: flex; flex-direction: column; min-width: 0; }
.czp-help-title { font-weight: 700; overflow-wrap: anywhere; }
.czp-help-detail { font-size: 0.86rem; color: var(--czp-muted); overflow-wrap: anywhere; }
.czp-help-side { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; font-size: 0.8rem; color: var(--czp-muted); }
.czp-amt { font-size: 0.98rem; font-weight: 800; color: #FDBA74; }
.czp-month { margin: 1.2rem 0 0.5rem; font-size: 0.95rem; font-weight: 700; color: var(--czp-muted); }

/* Stories */
.czp-stories { display: grid; gap: 0.7rem; }
.czp-story-card { padding: 0.95rem 1rem; border-radius: 14px; background: var(--czp-card); border: 1px solid var(--czp-line); }
.czp-story-title { margin: 0 0 0.2rem; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.czp-story-title a { color: var(--czp-text); text-decoration: none; }
.czp-story-title a:hover { color: var(--czp-teal-2); }
.czp-story-meta { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--czp-muted); }
.czp-story-sum { margin: 0 0 0.4rem; }

/* Links and buttons */
.czp a { color: var(--czp-teal-2); }
.czp-link { color: var(--czp-teal-2); font-weight: 600; text-decoration: none; }
.czp-link:hover, .czp-more:hover { text-decoration: underline; }
.czp-more {
    display: inline-flex; margin-top: 1rem; padding: 0.6rem 1rem; border-radius: 999px;
    border: 1px solid var(--czp-line); background: rgba(13, 148, 136, 0.12);
    color: var(--czp-teal-2); font-weight: 700; text-decoration: none; min-height: 44px; align-items: center;
}
.czp-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 999px;
    background: linear-gradient(135deg, #0D9488, #10B981); color: #fff !important; font-weight: 700; text-decoration: none;
}
.czp a:focus-visible, .czp-page a:focus-visible { outline: 3px solid var(--czp-amber); outline-offset: 2px; border-radius: 6px; }

/* ── Standalone pages ── */
.czp-page {
    margin: 0; min-height: 100vh;
    background: radial-gradient(1200px 600px at 50% -200px, rgba(13, 148, 136, 0.18), transparent), var(--czp-bg);
    color: var(--czp-text);
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.65; -webkit-text-size-adjust: 100%;
}
.czp-page a { color: var(--czp-teal-2); }
.czp-bar {
    position: sticky; top: 0; z-index: 5;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem max(16px, env(safe-area-inset-left));
    background: rgba(7, 14, 27, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--czp-line);
}
.czp-back, .czp-brand { color: var(--czp-text) !important; text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.czp-brand { color: var(--czp-amber) !important; letter-spacing: 0.5px; }
.czp-main { max-width: 760px; margin: 0 auto; padding: 1rem 16px 3rem; }
.czp-crumbs ol { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.82rem; color: var(--czp-muted); }
.czp-crumbs li + li::before { content: '›'; margin-right: 0.3rem; }
.czp-crumbs a { color: var(--czp-muted); text-decoration: none; }
.czp-stats { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; }
.czp-stats li { padding: 0.8rem 1rem; border-radius: 14px; background: var(--czp-card); border: 1px solid var(--czp-line); display: flex; flex-direction: column; }
.czp-stats strong { font-size: 1.4rem; font-weight: 800; color: var(--czp-teal-2); }
.czp-stats span { font-size: 0.85rem; color: var(--czp-muted); }
.czp-article p { font-size: 1.05rem; }
.czp-share { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; margin-top: 1.4rem; }
.czp-box { margin-top: 2.2rem; padding: 1.1rem; border-radius: 18px; background: linear-gradient(160deg, rgba(13, 148, 136, 0.09), rgba(49, 46, 129, 0.08)); border: 1px solid var(--czp-line); }
.czp-box .czp-h3 { margin-top: 0; }
.czp-note, .czp-empty { font-size: 0.85rem; color: var(--czp-muted); }
.czp-foot { max-width: 760px; margin: 0 auto; padding: 1.5rem 16px 2.5rem; border-top: 1px solid var(--czp-line); font-size: 0.85rem; color: var(--czp-muted); }
.czp-foot p { margin: 0.25rem 0; }

@media (max-width: 420px) {
    .czp { padding: 1.1rem 0.9rem; }
    .czp-help-item { flex-direction: column; gap: 0.25rem; }
    .czp-help-side { flex-direction: row; gap: 0.6rem; align-items: baseline; }
}

/* Light preference on the standalone pages (the Compassion Zone app itself is dark). */
@media (prefers-color-scheme: light) {
    .czp-page {
        --czp-text: #0F1E2E; --czp-muted: #4B5D73; --czp-bg: #F5FAF9;
        --czp-card: rgba(13, 148, 136, 0.06); --czp-line: rgba(13, 148, 136, 0.2); --czp-teal-2: #0F766E; --czp-amber: #B45309;
    }
    .czp-page .czp-bar { background: rgba(245, 250, 249, 0.92); }
    .czp-page .czp-amt { color: #C2410C; }
}

@media (prefers-reduced-motion: reduce) { .czp *, .czp-page * { transition: none !important; } }
