/* ============================================
   KBK DONATION SYSTEM — STYLESHEET
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #4f8758;
    --primary-dark: #355d3c;
    --accent: #d3b51b;
    --accent-dark: #9f8600;
    --success: #4f9b68;
    --danger: #b84f61;
    --dark: #26352b;
    --gray: #5f6d62;
    --light: #fbfaf1;
    --white: #fffef9;
    --panel-cream: rgba(248, 244, 225, 0.9);
    --panel-green: rgba(233, 244, 232, 0.88);
    --panel-gold: rgba(255, 244, 202, 0.82);
    --panel-rose: rgba(251, 236, 240, 0.86);
    --border: rgba(91, 117, 84, 0.18);
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f4f4ee 0%, #f9faf6 100%);
    color: var(--dark);
    line-height: 1.6;
}

/* ================ NAVBAR ================ */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    padding: 0.9rem 2rem;
}
.navbar-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap;
}
.navbar-brand {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 1.1rem; font-weight: 700;
    color: var(--primary); text-decoration: none;
}
.brand-name {
    font-size: 0.93rem; letter-spacing: 0.2px; line-height: 1.1;
}
.navbar-brand .logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--accent));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.navbar-brand:hover .logo, .sidebar-brand:hover .logo, .login-logo:hover { transform: scale(1.06); box-shadow: 0 6px 14px rgba(79, 135, 88, 0.24); }
.sidebar-brand .logo, .login-logo { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.logo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.ui-icon {
    display: inline-flex; width: 1.35em; height: 1.35em; align-items: center; justify-content: center;
    vertical-align: -0.2em; padding: 0.2em; border-radius: 0.7em;
    background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08));
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), 0 6px 18px rgba(22, 44, 30, 0.12);
    color: #fff; transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.ui-icon:hover, .category-icon:hover, .need-icon:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px rgba(53, 93, 60, 0.18);
    filter: saturate(1.15);
}
.ui-icon svg, .category-icon svg, .need-icon svg {
    width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8;
}
.category-icon, .need-icon {
    width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; background: linear-gradient(135deg, rgba(79,135,88,0.12), rgba(211,181,27,0.13));
    color: var(--primary); box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), 0 8px 18px rgba(79,135,88,0.12);
    padding: 0.5rem; transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.need-icon {
    width: 2.35rem; height: 2.35rem; border-radius: 12px;
}
.category-card:nth-child(2) .category-icon, .category-card:nth-child(2) .need-icon { color: var(--accent-dark); }
.category-card:nth-child(3) .category-icon, .category-card:nth-child(3) .need-icon { color: var(--success); }
.category-card:nth-child(4) .category-icon, .category-card:nth-child(4) .need-icon { color: #c46b7b; }
.navbar-menu {
    display: flex; flex: 1 1 100%; flex-wrap: wrap; justify-content: center;
    gap: 0.45rem 1rem; list-style: none; align-items: center; margin-top: 0.75rem;
}
.navbar-menu a {
    text-decoration: none; color: var(--gray);
    font-size: 0.84rem; font-weight: 500; transition: color 0.2s;
}
.navbar-menu a:hover, .navbar-menu a.active { color: var(--primary); }
.user-nav { display: flex; align-items: center; gap: 0.6rem; color: var(--primary-dark); font-size: 0.85rem; font-weight: 700; }
.user-nav .btn { color: var(--primary-dark); }
.btn-admin {
    background: var(--primary); color: white !important;
    padding: 0.5rem 1rem; border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-admin:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 5px 12px rgba(53, 93, 60, 0.15); }

/* ================ HERO ================ */
.hero {
    position: relative; overflow: hidden;
    background: #f5f6f0; border-bottom: 1px solid var(--border);
    color: var(--dark); padding: 3.25rem 2rem; text-align: center;
}
.hero-inner {
    max-width: 760px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.04em; }
.hero p { font-size: 1.04rem; color: var(--gray); max-width: 620px; margin: 0 auto 0; }
.hero-badge {
    display: inline-block; background: rgba(79, 135, 88, 0.08);
    color: var(--primary-dark); padding: 0.45rem 0.9rem; border-radius: 999px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; margin-bottom: 1rem;
}

/* ================ CONTAINER ================ */
.container { max-width: 980px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.section-title {
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}

/* ================ STATS ================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem; margin-bottom: 2rem;
}
.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem; box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--dark);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.stat-card.accent  { border-left-color: var(--accent); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--accent); }
.stat-label {
    font-size: 0.8rem; color: var(--gray);
    text-transform: uppercase; letter-spacing: 0.5px;
    font-weight: 700; margin-bottom: 0.4rem;
}
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--dark); }
.stat-sub { font-size: 0.85rem; color: var(--gray); margin-top: 0.2rem; }
.public-summary-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.public-transparency { margin-top: 2.5rem; }
.transparency-intro, .chart-caption, .public-privacy-note { color: var(--gray); font-size: 0.92rem; }
.transparency-intro { margin: -0.5rem 0 1rem; }
.transparency-stats { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.transparency-chart {
    padding: 1.4rem; margin: 1rem 0; background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.transparency-chart h3 { color: var(--primary-dark); font-size: 1rem; }
.chart-caption { margin: 0.2rem 0 1rem; }
.transparency-progress + .transparency-progress { margin-top: 1rem; }
.progress-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.35rem; color: var(--dark); font-size: 0.9rem; font-weight: 600; }
.transparency-progress progress { display: block; width: 100%; height: 0.8rem; accent-color: var(--primary); }
.transparency-progress:last-child progress { accent-color: var(--accent-dark); }
.public-privacy-note { margin: 1rem 0 2rem; }
.public-request-link { margin-top: 1.25rem; }
.public-impact, .public-distributions, .public-assistance-request { margin-top: 2.5rem; }
.impact-grid, .public-distribution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.impact-card, .public-distribution-card {
    padding: 1.25rem; background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.impact-card h3, .public-distribution-card h3 { color: var(--primary-dark); font-size: 1rem; margin-bottom: 0.8rem; }
.impact-flow { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0.45rem; margin-bottom: 1rem; }
.impact-flow li { min-width: 0; display: flex; flex-direction: column; }
.impact-flow li + li::before { content: "↓"; color: var(--accent-dark); font-weight: 800; line-height: 1; }
.impact-flow strong { color: var(--primary); font-size: 1.05rem; }
.impact-flow span, .public-distribution-card p { color: var(--gray); font-size: 0.8rem; }
.impact-outcomes, .public-distribution-card ul { list-style: none; }
.impact-flow .impact-outcomes { margin-top: 0.35rem; }
.impact-outcomes li, .public-distribution-card li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); color: var(--gray); font-size: 0.88rem; }
.impact-expenses { margin-top: 0.75rem; color: var(--gray); font-size: 0.85rem; }
.impact-expenses strong { color: var(--dark); }
.public-distribution-card p { margin: -0.55rem 0 0.5rem; }
.public-distribution-card li { display: flex; justify-content: space-between; gap: 0.75rem; }
.public-distribution-card li strong { color: var(--primary-dark); text-align: right; }
.public-assistance-request { padding: 1.5rem; background: rgba(247, 250, 240, 0.8); border: 1px solid var(--border); border-radius: var(--radius); }
.public-request-form { max-width: 760px; }
.public-request-form .form-group { margin-top: 1rem; }
.request-storage-note { padding: 0.75rem 1rem; margin: 0 0 1rem; border-left: 4px solid var(--accent); background: var(--panel-gold); color: var(--dark); font-size: 0.86rem; }
.request-consent { display: flex; align-items: flex-start; gap: 0.55rem; margin: 1rem 0; color: var(--gray); font-size: 0.86rem; }
.request-consent input { flex: 0 0 auto; margin-top: 0.25rem; accent-color: var(--primary); }
.request-form-message { min-height: 1.5em; margin-top: 0.75rem; color: var(--primary-dark); font-weight: 600; }
.public-data-status, .request-admin-status { padding: 0.75rem 1rem; margin: 0 0 1rem; border: 1px solid #d5dfd0; border-radius: 8px; background: #f3f8f1; color: var(--primary-dark); font-size: 0.9rem; }
.public-data-status[hidden] { display: none; }
.request-admin-status:empty { display: none; }
.public-request-form small { display: block; margin-top: 0.35rem; color: var(--gray); font-size: 0.8rem; }
.field-optional { color: var(--gray); font-size: 0.82em; font-weight: 400; }
.public-request-form button[disabled] { cursor: wait; opacity: 0.7; }
.request-form-message[data-error="true"] { color: #9b2c25; }
.request-admin-status[data-error="true"] { border-color: #e6b6b3; background: #fff1f0; color: #842029; }
.contact-page { padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); }
.contact-page-heading .section-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.contact-page-heading .transparency-intro { margin: 0 0 1.25rem; }
.contact-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin: 1.25rem 0; }
.contact-detail-card { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.contact-detail-card h2 { margin-bottom: 0.45rem; color: var(--primary-dark); font-size: 1rem; }
.contact-detail-card p { margin-bottom: 0.7rem; color: var(--gray); font-size: 0.88rem; }
.contact-email-link { overflow-wrap: anywhere; font-weight: 700; }
.contact-message-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.contact-message-section > .transparency-intro { margin: -0.5rem 0 1rem; }
.contact-message-section .public-request-form { max-width: 760px; }
.request-list-header { margin-top: 1.5rem; }

@media (max-width: 700px) {
    .contact-details-grid { grid-template-columns: 1fr; }
}

.leaderboard {
    background: rgba(255, 253, 245, 0.76);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 2rem; overflow: hidden;
}
.leaderboard-row {
    display: grid; grid-template-columns: 2.5rem 1fr auto;
    align-items: center; gap: 0.75rem; padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row.top-donor { background: #fff8df; border-left: 4px solid var(--accent); }
.leaderboard-rank {
    width: 2rem; height: 2rem; display: grid; place-items: center;
    border-radius: 50%; background: var(--light); color: var(--primary); font-weight: 800;
}
.top-donor .leaderboard-rank { background: var(--accent); color: #5f4300; }
.leaderboard-name { color: var(--dark); }
.leaderboard-name strong { color: var(--primary); font-size: 0.78rem; text-transform: uppercase; margin-right: 0.35rem; }
.leaderboard-total { color: var(--success); }
.leaderboard-empty { padding: 1.25rem; color: var(--gray); }

/* ================ PROGRESS ================ */
.progress-card {
    background: var(--panel-gold);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 2rem;
}
.progress-header {
    display: flex; justify-content: space-between;
    margin-bottom: 0.75rem; font-weight: 600; font-size: 0.95rem;
}
.progress-bar {
    width: 100%; height: 16px; background: var(--light);
    border-radius: 50px; overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
    border-radius: 50px; transition: width 0.6s ease;
}

/* ================ CATEGORIES ================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem; margin-bottom: 2rem;
}
.category-card {
    background: rgba(255, 253, 248, 0.8);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow);
    border: 0; border-top: 3px solid var(--accent); transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; font: inherit; text-align: left; color: inherit;
}
.category-card:hover { transform: translateY(-3px); }
.category-card.active { box-shadow: 0 0 0 3px var(--primary), var(--shadow-lg); transform: translateY(-3px); }
.category-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.category-card:nth-child(1) { border-top-color: var(--primary); }
.category-card:nth-child(2) { border-top-color: var(--accent); }
.category-card:nth-child(3) { border-top-color: var(--success); }
.category-card:nth-child(4) { border-top-color: #c46b7b; }
.category-icon { width: 2rem; height: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.category-card:nth-child(2) .category-icon { color: var(--accent-dark); }
.category-card:nth-child(3) .category-icon { color: var(--success); }
.category-card:nth-child(4) .category-icon { color: #c46b7b; }
.category-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.category-desc { color: var(--gray); font-size: 0.9rem; }

.needs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.need-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; background: rgba(255, 252, 242, 0.76); backdrop-filter: blur(2px); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.need-card:nth-child(2) { border-left-color: var(--success); }
.need-card:nth-child(3) { border-left-color: #c46b7b; }
.need-icon { width: 2rem; height: 2rem; flex: 0 0 2rem; color: var(--primary); }
.need-card:nth-child(2) .need-icon { color: var(--success); }
.need-card:nth-child(3) .need-icon { color: #c46b7b; }
.need-card h3 { color: var(--dark); font-size: 1rem; margin-bottom: 0.2rem; }
.need-card p { color: var(--gray); font-size: 0.88rem; margin-bottom: 0.35rem; }
.need-card strong { color: var(--primary); font-size: 0.76rem; text-transform: uppercase; }
.public-donation-card { max-width: 760px; margin: 0 auto 2rem; padding: 1.5rem; background: rgba(244, 248, 240, 0.8); backdrop-filter: blur(2px); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow); }
.donation-intro { color: var(--gray); margin-bottom: 1.25rem; font-size: 0.92rem; }

/* ================ ABOUT KBK ================ */
.about-kbk {
    background: rgba(247, 250, 240, 0.8);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow); margin-bottom: 2rem;
    border-top: 4px solid var(--accent);
}
.about-intro { max-width: 760px; margin-bottom: 1.5rem; }
.about-intro h2 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.about-intro p, .kbk-meaning-card p, .about-purpose p { color: var(--gray); font-size: 0.95rem; }
.about-intro p + p { margin-top: 0.5rem; }
.kbk-meaning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.kbk-meaning-card {
    position: relative; padding: 1.25rem; background: rgba(255, 252, 245, 0.74);
    backdrop-filter: blur(2px);
    border-radius: 8px; border-left: 4px solid var(--primary);
}
.kbk-meaning-card:nth-child(2) { border-left-color: var(--accent); }
.kbk-meaning-card:nth-child(3) { border-left-color: var(--success); }
.kbk-letter {
    float: right; color: var(--accent); font-size: 2rem; font-weight: 800;
    line-height: 1;
}
.kbk-meaning-card h3 { color: var(--dark); font-size: 1rem; margin-bottom: 0.15rem; }
.kbk-meaning-card strong { color: var(--primary); font-size: 0.82rem; }
.kbk-meaning-card p { margin-top: 0.65rem; }
.about-purpose { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.about-purpose h3 { color: var(--primary-dark); margin-bottom: 0.4rem; }
.about-purpose blockquote { margin-top: 1rem; padding: 0.85rem 1rem; background: #fff8df; border-left: 4px solid var(--accent); color: var(--dark); font-weight: 700; }
.about-purpose blockquote span { display: block; color: var(--gray); font-size: 0.85rem; font-weight: 400; margin-top: 0.2rem; }
.about-hero { padding: 3rem 1.25rem; }
.about-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.about-principles, .about-goals-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
}
.about-principles { margin-bottom: 2rem; }
.about-principle-card, .about-goal-card {
    padding: 1.4rem; background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-principle-card { border-top: 4px solid var(--primary); }
.about-principle-card:nth-child(2) { border-top-color: var(--accent); }
.about-principle-card h2, .about-contact h2 { color: var(--primary-dark); font-size: 1.15rem; margin-bottom: 0.4rem; }
.about-principle-card p, .about-goal-card p, .about-contact p { color: var(--gray); font-size: 0.92rem; }
.about-goals { margin-bottom: 2rem; }
.about-goals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-goal-card { border-left: 4px solid var(--accent); }
.about-goal-card:nth-child(2) { border-left-color: var(--primary); }
.about-goal-card:nth-child(3) { border-left-color: var(--success); }
.about-goal-card h3 { color: var(--dark); font-size: 1rem; margin-bottom: 0.4rem; }
.about-contact {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.4rem; margin-bottom: 2rem; background: var(--panel-green);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.about-contact a { color: var(--primary-dark); font-weight: 700; overflow-wrap: anywhere; }

/* ================ TABLE ================ */
.table-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0,0,0,0.04); overflow-x: auto; margin-bottom: 2rem;
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
thead { background: var(--light); }
th {
    text-align: left; padding: 1rem;
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--gray); font-weight: 700;
}
td { padding: 1rem; border-top: 1px solid var(--border); font-size: 0.92rem; }
tr:hover td { background: #fffdf2; }

/* ================ BADGES ================ */
.badge {
    display: inline-block; padding: 0.2rem 0.7rem;
    border-radius: 50px; font-size: 0.72rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-cash     { background: #e5f2e7; color: #355d3c; }
.badge-inkind   { background: #fff5c9; color: #806d00; }
.badge-success  { background: #dff2e4; color: #34734b; }
.badge-pending  { background: #fff5c9; color: #806d00; }
.badge-allocated{ background: #fbe1e6; color: #9c4050; }
.badge-received { background: #fff5c9; color: #806d00; }
.badge-verified { background: #dff2e4; color: #34734b; }
.badge-rejected { background: #fde5e2; color: #a22f27; }
.badge-distributed { background: #e2eff8; color: #356987; }
.badge-completed { background: #dcefe8; color: #276b52; }
.badge-planned { background: #fff5c9; color: #806d00; }
.badge-distributed { background: #e2eff8; color: #356987; }

.donation-table-wrapper table { min-width: 1120px; }
.allocation-table-wrapper table { min-width: 900px; }
.status-select { min-width: 130px; padding: 0.45rem 0.55rem; font-size: 0.82rem; }
.field-hint, .muted-text { display: block; color: var(--gray); font-size: 0.78rem; margin-top: 0.35rem; }
.existing-proof { color: var(--gray); font-size: 0.82rem; margin-top: 0.4rem; }
.rejection-reason { display: block; max-width: 220px; margin-top: 0.35rem; color: #a22f27; font-size: 0.76rem; white-space: normal; }
.existing-proof a, #adminTableBody a { color: var(--primary-dark); font-weight: 700; }
.form-control:disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.allocation-guidance { color: var(--gray); font-size: 0.88rem; margin: -0.5rem 0 1rem; }
.allocation-table-wrapper { margin-bottom: 0; }
.allocation-breakdown { list-style: none; display: grid; gap: 0.35rem; min-width: 200px; }
.allocation-breakdown li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.25rem; }
.allocation-breakdown li:last-child { border-bottom: 0; }
.allocation-breakdown strong { white-space: nowrap; }
.allocation-summary { color: var(--primary-dark); font-weight: 700; margin-bottom: 1rem; }
.empty-table { text-align: center; padding: 2rem; color: var(--gray); }
.beneficiary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-heading { font-size: 1rem; margin-bottom: 1rem; }
.beneficiary-list-header, .request-list-header { margin-top: 1.5rem; }
.history-heading { font-size: 0.95rem; margin: 1rem 0 0.5rem; color: var(--dark); }
.history-list { list-style: none; display: grid; gap: 0.6rem; }
.history-list li { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.75rem; padding: 0.65rem 0; border-bottom: 1px dashed var(--border); }
.history-list li:last-child { border-bottom: 0; }
.history-list li span { text-align: right; }
.history-list li small { grid-column: 1 / -1; color: var(--gray); }
.records-summary { color: var(--gray); margin: -1rem 0 1rem; }
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
    align-items: end;
    padding: 1rem;
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--light);
}
.admin-form-grid .form-group { margin-bottom: 0.85rem; }
.admin-form-grid > div:last-child { padding-bottom: 0.85rem; }
.project-list-header { margin-top: 1.5rem; }
.report-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1rem; align-items: end; }
.report-action { padding-bottom: 1.1rem; }
.report-message { margin-top: 1rem; color: var(--gray); font-size: 0.88rem; }
.report-preview { display: grid; gap: 0.25rem; margin-top: 0.75rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--light); }
.report-preview strong { color: var(--primary); }
.report-preview span, .report-privacy-note { color: var(--gray); font-size: 0.88rem; }
.report-privacy-note { margin: 0.85rem 0 0; padding: 0.75rem 0.9rem; border-left: 3px solid var(--accent); background: #fffaf0; }
.account-warning { margin-bottom: 1rem; }
.expense-total { min-width: 210px; padding: 0.9rem 1rem; }
.expense-funding-preview { display: grid; gap: 0.35rem; margin-top: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 8px; background: var(--light); font-size: 0.88rem; }
.expense-funding-preview > strong { color: var(--primary-dark); }
.expense-funding-preview > small { color: var(--gray); }
.expense-funding-preview.is-over-budget { border-left-color: #a22f27; }
.expense-funding-warning { color: #a22f27; font-weight: 700; }
.confirmation-option { align-self: center; margin: 0 0 1rem; }

/* ================ BUTTONS ================ */
.btn {
    display: inline-block; padding: 0.6rem 1.25rem;
    border: none; border-radius: 8px;
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer; text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(53, 93, 60, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible, .btn-admin:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #9c4050; }
.btn-outline {
    background: transparent; border: 1px solid var(--border);
    color: var(--gray);
}
.btn-outline:hover { background: var(--light); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* ================ FORMS ================ */
.form-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow);
    max-width: 620px; margin: 0 auto;
}
.form-group { margin-bottom: 1.1rem; }
.privacy-option { display: flex; align-items: center; gap: 0.5rem; margin: -0.4rem 0 1.1rem; color: var(--gray); font-size: 0.82rem; }
.privacy-option input { accent-color: var(--primary); }
.form-group label {
    display: block; margin-bottom: 0.4rem;
    font-weight: 600; font-size: 0.88rem;
}
.form-control {
    width: 100%; padding: 0.7rem 1rem;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 0.95rem; font-family: inherit;
    transition: border 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 135, 88, 0.16);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ================ LOGIN ================ */
.login-page {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f1f7ed, var(--primary) 58%, var(--primary-dark));
    padding: 2rem;
}
.login-card {
    background: var(--white); border-radius: 16px;
    padding: 2.5rem; width: 100%; max-width: 400px;
    box-shadow: var(--shadow-lg);
}
.login-logo {
    width: 64px; height: 64px; margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--accent));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 1.4rem;
}
.login-logo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.login-card h2 { text-align: center; margin-bottom: 0.3rem; }
.login-card .subtitle {
    text-align: center; color: var(--gray);
    margin-bottom: 1.75rem; font-size: 0.88rem;
}
.login-eyebrow { margin-bottom: 0.35rem; color: var(--primary); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.1em; text-align: center; }
.login-password-field { position: relative; }
.login-password-field .form-control { padding-right: 4.5rem; }
.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    padding: 0.3rem 0.4rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 650;
    transform: translateY(-50%);
    cursor: pointer;
}
.login-password-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.login-submit { width: 100%; min-height: 46px; }
.login-back { display: block; margin-top: 1rem; text-align: center; color: var(--primary); font-size: 0.88rem; text-decoration: none; }
.login-back:hover { text-decoration: underline; }
.login-hint { text-align: center; color: var(--gray); font-size: 0.78rem; margin-top: 1rem; }
.login-switch { display: block; width: 100%; margin-top: 0.9rem; border: 0; background: none; color: var(--primary); cursor: pointer; font: inherit; font-size: 0.85rem; }
.login-switch:hover { text-decoration: underline; }
.account-panel { display: flex; align-items: center; gap: 0.9rem; max-width: 1160px; margin: 1.5rem auto 0; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.account-avatar { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; flex: 0 0 2.8rem; border-radius: 50%; background: var(--primary); color: white; font-weight: 800; font-size: 0.7rem; }
.account-label { color: var(--gray); font-size: 0.75rem; text-transform: uppercase; font-weight: 700; }
.account-panel h2 { font-size: 1rem; color: var(--dark); }
.account-panel p { color: var(--gray); font-size: 0.82rem; }
.alert {
    padding: 0.75rem 1rem; border-radius: 8px;
    font-size: 0.88rem; margin-bottom: 1rem;
}
.alert-danger  { background: #fbe1e6; color: #9c4050; }
.alert-success { background: #dff2e4; color: #34734b; }

/* ================ ADMIN LAYOUT ================ */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(15, 22, 17, 0.45);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
    z-index: 25;
}
body.sidebar-open .sidebar-backdrop {
    opacity: 1; pointer-events: auto;
}
.sidebar {
    width: 250px; background: var(--dark);
    color: white; padding: 1.5rem 0; flex-shrink: 0;
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.sidebar-toggle {
    position: fixed; top: 1rem; left: 1rem; z-index: 40;
    width: 46px; height: 46px; border: 0; border-radius: 12px;
    background: var(--primary); color: white; display: none;
    align-items: center; justify-content: center; flex-direction: column;
    gap: 0.28rem; box-shadow: var(--shadow-lg); cursor: pointer;
}
.sidebar-toggle span {
    display: block; width: 20px; height: 2px; background: white; border-radius: 2px;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem; font-weight: 700; font-size: 1.05rem;
}
.sidebar-brand .brand-name { color: white; font-size: 0.9rem; }
.sidebar-brand .logo {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--accent));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
}
.sidebar-menu { list-style: none; display: flex; flex: 1; flex-direction: column; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none; font-weight: 500; font-size: 0.93rem;
    transition: all 0.2s; border-left: 3px solid transparent;
}
.sidebar-menu a:hover { background: rgba(255,255,255,0.05); color: white; }
.sidebar-menu a.active {
    background: rgba(211, 181, 27, 0.22); color: white;
    border-left-color: var(--accent);
}
.sidebar-menu .sidebar-utility { border-top: 1px solid rgba(255,255,255,0.12); }
.sidebar-menu .sidebar-utility { margin-top: auto; }
.sidebar-menu .sidebar-utility a { padding-top: 0.65rem; padding-bottom: 0.65rem; font-size: 0.86rem; }
.sidebar-menu .sidebar-logout a { padding-top: 0.65rem; padding-bottom: 0.65rem; font-size: 0.86rem; }
.sidebar-menu .sidebar-group { padding: 0.95rem 0.9rem 0.3rem; }
.sidebar-menu .sidebar-group-label {
    color: rgba(222, 234, 224, 0.55);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.sidebar-menu .sidebar-account {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    margin: 1rem 0.85rem 0.3rem;
    padding: 0.75rem 0.8rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: rgba(255,255,255,0.92);
}
.sidebar-account-label { color: rgba(226,238,229,0.58); font-size: 0.68rem; }
.sidebar-account strong { overflow: hidden; font-size: 0.84rem; text-overflow: ellipsis; }
.sidebar-menu .sidebar-logout a { color: rgba(255,255,255,0.78); }
.sidebar-menu .sidebar-logout a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar-menu .admin-nav-icon {
    display: inline-flex;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 1.15rem;
    align-items: center;
    justify-content: center;
    color: currentColor;
}
.admin-nav-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.main-content { flex: 1; min-width: 0; padding: 2rem; overflow-x: auto; }
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.page-header h1 { font-size: 1.6rem; font-weight: 700; }
.page-header p { color: var(--gray); font-size: 0.9rem; }
.admin-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 46px;
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.admin-page-guide {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid #d7e2d2;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    background: #f7faf5;
}
.admin-page-guide h2 { margin-bottom: 0.3rem; color: var(--primary-dark); font-size: 1rem; }
.admin-page-guide p { color: var(--gray); font-size: 0.88rem; }
.admin-page-guide ul { display: grid; gap: 0.25rem; margin: 0.55rem 0 0; padding-left: 1.2rem; color: var(--dark); font-size: 0.84rem; }
.admin-page-guide li { line-height: 1.5; }
.admin-breadcrumb { display: flex; align-items: center; gap: 0.55rem; color: var(--gray); font-size: 0.82rem; }
.admin-breadcrumb a { color: var(--primary-dark); font-weight: 650; text-decoration: none; }
.admin-breadcrumb a:hover, .admin-context-logout:hover { text-decoration: underline; }
.admin-context-actions { display: flex; align-items: center; gap: 0.8rem; }
.admin-notification-link, .admin-profile-link, .admin-context-logout {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 0.45rem;
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
}
.admin-notification-link strong { min-width: 1.35rem; padding: 0.05rem 0.3rem; border-radius: 999px; background: var(--panel-gold); color: var(--primary-dark); text-align: center; }
.admin-notification-icon, .admin-profile-avatar { display: inline-flex; width: 1.7rem; height: 1.7rem; align-items: center; justify-content: center; border-radius: 50%; background: #eaf2eb; color: var(--primary-dark); font-weight: 800; }
.admin-profile-link { padding-left: 0.7rem; border-left: 1px solid var(--border); }
.admin-context-logout { color: var(--primary-dark); }

/* ================ ADMIN OVERVIEW ================ */
.section-block {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.page-header.compact {
    margin-bottom: 1.25rem;
}
.page-header.compact h2 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}
.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
#adminDashboardOverview { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.85rem; margin-bottom: 1.5rem; }
#adminDashboardOverview .mini-stat { min-width: 0; }
#adminDashboardOverview .mini-stat:not(.warning) { border-left-color: var(--primary); }
#adminDashboardOverview .mini-stat.warning { border-left-color: var(--accent); }
#adminDashboardOverview .mini-stat strong { font-size: clamp(1.2rem, 1.7vw, 1.65rem); overflow-wrap: anywhere; }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr); gap: 1rem; }
.dashboard-panel { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.dashboard-panel .page-header.compact { margin-bottom: 0.75rem; }
.dashboard-panel .page-header.compact h2 { font-size: 1.1rem; }
.dashboard-panel .page-header.compact p { font-size: 0.8rem; }
.dashboard-panel .page-header > a { flex: 0 0 auto; color: var(--primary-dark); font-size: 0.82rem; font-weight: 650; }
.recent-donations .table-wrapper { margin: 0; }
.recent-donations table { min-width: 570px; }
.recent-donations th, .recent-donations td { padding: 0.65rem 0.7rem; font-size: 0.8rem; }
.dashboard-panel.recent-activity { margin: 0; border-top: 0; padding-top: 1rem; }
.mini-stat {
    background: linear-gradient(135deg, rgba(79, 135, 88, 0.08), rgba(255,255,255,0.9));
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1rem 0.9rem;
}
.mini-stat.accent { border-left-color: var(--accent); }
.mini-stat.success { border-left-color: var(--success); }
.mini-stat.warning { border-left-color: #c7842f; }
.mini-stat.info { border-left-color: #4a8fb5; }
.mini-stat.neutral { border-left-color: #7d7d7d; }
.mini-stat.good { border-left-color: #3d8d6a; }
.mini-stat.rose { border-left-color: #d27189; }
.mini-stat span {
    display: block; font-size: 0.75rem; color: var(--gray); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}
.mini-stat strong {
    display: block; font-size: 1.6rem; color: var(--dark); line-height: 1.2;
}
.recent-activity {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}
.recent-activity h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.recent-activity ul {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}
.recent-activity li {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: #f8f9f4; border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 0.9rem;
}
.activity-meta {
    display: flex; align-items: center; gap: 0.75rem;
}
.activity-tag {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 56px; padding: 0.4rem 0.55rem; border-radius: 999px; background: rgba(79,135,88,0.12); color: var(--primary-dark); font-size: 0.7rem; font-weight: 700;
}
.activity-text {
    display: flex; flex-direction: column; font-size: 0.88rem;
}
.activity-text small {
    color: var(--gray);
}
.recent-activity strong {
    color: var(--dark);
}

/* ================ DONOR MANAGEMENT ================ */
.donor-toolbar {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr); gap: 0.75rem;
    margin-bottom: 1rem;
}
.donor-contributions {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.donor-contributions .page-header { margin-bottom: 0.85rem; }
.donor-contributions .page-header h2,
.donor-profiles-heading h2 { color: var(--primary-dark); font-size: 1.08rem; }
.donor-contributions .table-wrapper { border: 0; }
.donor-profiles-heading { margin-bottom: 0.9rem; }
.donor-panel {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr); gap: 1rem;
    margin-bottom: 1.5rem;
}
.donor-form, .profile-panel {
    min-width: 0;
    background: var(--light); border: 1px solid var(--border); border-radius: 12px; padding: 1rem;
}
.donor-form .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.donor-form .form-group { min-width: 0; }
.donor-form .form-control { min-width: 0; }
.profile-panel h3 {
    margin-bottom: 0.8rem;
}
.profile-card {
    background: rgba(255,255,255,0.8); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem; color: var(--gray); line-height: 1.6;
}
.profile-card strong { color: var(--dark); }
.profile-card .profile-row {
    display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.45rem 0;
    border-bottom: 1px dashed var(--border);
}
.profile-card .profile-row:last-child { border-bottom: 0; }
.donor-table-wrapper { margin-bottom: 0; }
.action-group {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.btn-xs {
    padding: 0.35rem 0.7rem; font-size: 0.75rem;
}
.badge-active, .badge-inactive {
    display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
}
.badge-active { background: #dff2e4; color: #2f7247; }
.badge-inactive { background: #fbe1e6; color: #9b4250; }
.form-actions {
    display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 0.5rem;
}
@media (max-width: 1100px) {
    .donor-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .donor-contributions { padding: 0.75rem; }
    .donor-contributions table { min-width: 0; table-layout: fixed; }
    .donor-contributions th,
    .donor-contributions td {
        padding: 0.6rem 0.4rem;
        font-size: 0.72rem;
        overflow-wrap: anywhere;
    }
    .donor-contributions th:nth-child(1) { width: 25%; }
    .donor-contributions th:nth-child(2) { width: 15%; }
    .donor-contributions th:nth-child(3) { width: 25%; }
    .donor-contributions th:nth-child(4) { width: 17%; }
    .donor-contributions th:nth-child(5) { width: 18%; }
    .donor-contributions .badge { padding: 0.2rem 0.35rem; font-size: 0.62rem; letter-spacing: 0; }
}

/* ================ MODAL ================ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: none; align-items: center; justify-content: center;
    padding: 1rem; z-index: 999;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white); border-radius: 14px;
    padding: 2rem; width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 1.5rem;
}
.modal-header h3 { font-size: 1.25rem; }
.modal-close {
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--gray); line-height: 1;
}
.modal-footer {
    display: flex; gap: 0.75rem; justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ================ FOOTER ================ */
.footer {
    background: var(--dark); color: rgba(255,255,255,0.7);
    text-align: center; padding: 2rem; font-size: 0.88rem;
}
.skip-link {
    position: fixed; z-index: 10001; top: .75rem; left: .75rem;
    transform: translateY(-180%); padding: .7rem 1rem; border-radius: 8px;
    background: #fff; color: #173b2d; font-weight: 700;
    box-shadow: 0 3px 16px #0003;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid #16587B; outline-offset: 3px; }
.legal-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem 1.25rem; margin-top: .85rem; }
.legal-footer-links a { color: inherit; text-underline-offset: .2em; }
.legal-footer-links a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.public-policy-page main { max-width: 900px; }
.policy-draft-notice {
    margin: 0 0 1.5rem; padding: 1rem 1.15rem; border: 1px solid #9f6c13;
    border-left: 5px solid #9f6c13; border-radius: 8px; background: #fff7df; color: #3f3215;
}
.policy-draft-notice strong { display: block; margin-bottom: .25rem; }
.policy-content { max-width: 78ch; }
.policy-content h2 { margin: 1.8rem 0 .5rem; color: #173b2d; font-size: 1.3rem; }
.policy-content p, .policy-content li { line-height: 1.7; }
.policy-content ul { margin: .5rem 0 1rem 1.4rem; }

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

/* ================ RESPONSIVE ================ */
@media (max-width: 768px) {
    .navbar { padding: 0.75rem 1rem; }
    .navbar-container { align-items: flex-start; }
    .navbar-menu { justify-content: flex-start; gap: 0.4rem 0.8rem; margin-top: 0.65rem; }
    .navbar-menu a { font-size: 0.78rem; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 0.95rem; }
    .sidebar-toggle { display: flex; }
    .admin-layout {
        position: relative;
    }
    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; width: 235px;
        transform: translateX(-105%); z-index: 30; box-shadow: 10px 0 30px rgba(0,0,0,0.25); overflow-y: auto;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-brand span, .sidebar-menu a span { display: inline; }
    .main-content { padding: 1rem; }
    .form-row, .donor-form .form-row { grid-template-columns: 1fr; }
    .donor-toolbar, .donor-panel { grid-template-columns: 1fr; }
    .beneficiary-layout { grid-template-columns: 1fr; }
    .admin-form-grid, .report-controls { grid-template-columns: 1fr; }
    .report-action { padding-bottom: 0; }
    .section-block { padding: 1rem; }
    .recent-activity li { align-items: flex-start; flex-direction: column; }
    .kbk-meaning-grid { grid-template-columns: 1fr; }
    .about-principles, .about-goals-grid { grid-template-columns: 1fr; }
    .public-assistance-request { padding: 1rem; }
    .needs-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 1.25rem; }
    .navbar-brand { max-width: 100%; }
    .navbar-brand .brand-name { font-size: 0.78rem; }
}

/* ================ POLISHED SHARED LAYOUT ================ */
:root {
    --primary: #347354;
    --primary-dark: #244f3b;
    --accent: #c69b35;
    --accent-dark: #9b7420;
    --dark: #1e3027;
    --gray: #65736b;
    --light: #f5f7f4;
    --white: #ffffff;
    --border: #e2e9e3;
    --shadow: 0 8px 24px rgba(29, 54, 39, 0.06);
    --shadow-lg: 0 18px 44px rgba(21, 46, 31, 0.16);
    --radius: 14px;
}

html { scroll-behavior: smooth; }
html.lenis,
html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
html.lenis.lenis-stopped { overflow: clip; }
body {
    background: #f5f7f5;
    color: var(--dark);
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
}
a { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; }

.navbar {
    padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(37, 79, 59, 0.1);
    box-shadow: 0 4px 20px rgba(29, 54, 39, 0.04);
    backdrop-filter: blur(14px);
}
.navbar-container { max-width: 1360px; gap: 0 1.5rem; }
.navbar-brand { gap: 0.7rem; color: var(--dark); }
.navbar-brand .logo {
    width: 44px; height: 44px; flex: 0 0 44px;
    overflow: hidden; border-radius: 12px;
    box-shadow: 0 5px 12px rgba(36, 79, 59, 0.12);
}
.brand-name { max-width: 290px; font-size: 0.92rem; line-height: 1.25; }
.navbar-menu {
    flex: 1 1 100%;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.45rem;
}
.navbar-menu > li { position: relative; list-style: none; }
.navbar-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    border-radius: 9px;
    color: #4e5f55;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}
.navbar-menu > li > a:hover,
.navbar-menu > li > a.active { background: #edf4ef; color: var(--primary-dark); }
.navbar-menu a:focus-visible {
    outline: 3px solid rgba(198, 155, 53, 0.65);
    outline-offset: 2px;
}
.navbar-menu .btn-admin {
    min-height: 38px;
    padding: 0.55rem 1rem;
    border-radius: 9px;
    background: var(--primary);
    box-shadow: 0 4px 10px rgba(36, 79, 59, 0.14);
}
.navbar-menu .btn-admin:hover { background: var(--primary-dark); color: white; }

.hero {
    padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem;
    border: 0;
}
.hero-minimal {
    min-height: 360px;
    display: grid;
    align-items: center;
    text-align: left;
    background:
        linear-gradient(90deg, rgba(19, 47, 34, 0.94) 0%, rgba(19, 47, 34, 0.82) 52%, rgba(19, 47, 34, 0.62) 100%),
        url("photo.png/background.png") center 43% / cover no-repeat;
    color: #fff;
}
.hero-minimal .hero-inner { width: min(100%, 1160px); }
.hero-minimal .hero-badge {
    color: #f7e8be;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.24);
    letter-spacing: 0.1em;
}
.hero-minimal h1 {
    max-width: 680px;
    margin-bottom: 0.8rem;
    font-size: clamp(2.6rem, 5.7vw, 4.6rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}
.hero-minimal p { max-width: 560px; margin: 0; color: rgba(255,255,255,0.86); font-size: 1.12rem; }
.hero-minimal .public-request-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 1.5rem;
    padding: 0.75rem 1.35rem;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 10px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.hero-minimal .public-request-link:hover {
    transform: translateY(-2px);
    background: #f3f7f3;
    box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}
.hero-minimal .public-request-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container { width: min(100% - 2.5rem, 1160px); max-width: 1160px; padding: 3rem 0 4rem; }
.container > section { margin-bottom: 2.6rem; }
.section-title { gap: 0.65rem; margin-bottom: 0.75rem; font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -0.025em; }
.transparency-intro, .page-intro { max-width: 760px; color: var(--gray); font-size: 0.98rem; }
.public-summary-grid, .transparency-stats { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 1rem; }
.stat-card {
    min-height: 132px;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-left: 0;
    border-top: 3px solid var(--primary);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow);
}
.stat-card.accent { border-top-color: var(--accent); }
.stat-card.success { border-top-color: var(--success); }
.stat-card.warning { border-top-color: #cf8b47; }
.stat-label { font-size: 0.73rem; letter-spacing: 0.08em; }
.stat-value { font-size: clamp(1.65rem, 3vw, 2.05rem); line-height: 1.25; letter-spacing: -0.035em; }
.stat-sub { line-height: 1.45; }
.public-transparency, .public-impact, .public-distributions, .public-assistance-request { margin-top: 2.75rem; }
.transparency-chart, .public-assistance-request {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.transparency-chart h3 { font-size: 1.12rem; }
.transparency-chart progress { height: 0.85rem; border-radius: 99px; overflow: hidden; }
.transparency-chart progress::-webkit-progress-bar { background: #edf2ee; border-radius: 99px; }
.transparency-chart progress::-webkit-progress-value { background: var(--primary); border-radius: 99px; }
.transparency-chart .transparency-progress:last-child progress::-webkit-progress-value { background: var(--accent); }
.impact-grid, .public-distribution-grid, .category-grid { gap: 1rem; }
.impact-card, .public-distribution-card, .category-card, .need-card, .about-principle-card, .about-goal-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}
.impact-card, .public-distribution-card { padding: 1.35rem; }
.impact-card h3, .public-distribution-card h3 { font-size: 1.08rem; }
.category-card { border-top-width: 3px; }
.category-card:hover, .impact-card:hover, .public-distribution-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(29, 54, 39, 0.1);
}
.public-privacy-note { padding: 0.95rem 1.1rem; border-radius: 10px; background: #edf4ef; font-size: 0.85rem; }
.about-kbk { padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--border); border-top: 3px solid var(--accent); background: #fff; }
.about-goal-card h2 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.footer { padding: 1.5rem 1.25rem; background: #1d3529; color: rgba(255,255,255,0.75); }

.btn { min-height: 40px; border-radius: 9px; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #282314; }
.btn-accent:hover { background: #b88b29; }
.form-control {
    min-height: 44px;
    border-color: #dce5de;
    border-radius: 9px;
    background: #fff;
}
textarea.form-control { min-height: auto; }
.form-group label { color: #34483b; font-size: 0.86rem; }

.admin-layout { background: #f3f6f4; }
.sidebar {
    width: 272px;
    background: #1d3529;
    box-shadow: 8px 0 24px rgba(20, 44, 30, 0.08);
}
.sidebar-brand { min-height: 66px; }
.sidebar-brand .logo { flex: 0 0 38px; overflow: hidden; }
.sidebar-menu { padding: 0 0.75rem; }
.sidebar-menu a {
    min-height: 43px;
    margin: 0.12rem 0;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-radius: 9px;
    color: rgba(255,255,255,0.73);
    font-size: 0.86rem;
}
.sidebar-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-menu a.active { background: rgba(255,255,255,0.14); color: #fff; box-shadow: inset 3px 0 #d5b458; }
.sidebar-menu .sidebar-utility { margin-top: 0.65rem; border-top: 1px solid rgba(255,255,255,0.13); }
.sidebar-menu .sidebar-logout a { color: rgba(255,255,255,0.73); }
.sidebar-menu .sidebar-logout a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-menu .sidebar-group { padding: 0.9rem 0.85rem 0.3rem; }
.sidebar-menu .sidebar-group-label { color: rgba(226, 238, 229, 0.52); font-size: 0.65rem; }
.main-content { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); letter-spacing: -0.03em; }
.page-header p { margin-top: 0.2rem; line-height: 1.5; }
.section-block {
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow);
}
.admin-overview-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.85rem; }
.mini-stat {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    background: #fbfdfb;
}
.mini-stat span { color: var(--gray); font-size: 0.78rem; font-weight: 650; }
.mini-stat strong { color: var(--dark); font-size: 1.55rem; line-height: 1.2; }
.recent-activity { margin-top: 1.75rem; }
.recent-activity h2 { margin-bottom: 0.8rem; font-size: 1.12rem; }
.recent-activity li { background: #fff; }
.mini-stat[href] { color: inherit; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.mini-stat[href]:hover { border-color: var(--primary); transform: translateY(-2px); }
.mini-stat[href]:focus-visible, .dashboard-shortcut-grid a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mini-stat small { color: var(--gray); font-size: 0.78rem; }
.dashboard-shortcuts { margin-top: 1.75rem; }
.dashboard-shortcut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.dashboard-shortcut-grid a {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--dark);
    text-decoration: none;
    background: #fbfdfb;
}
.dashboard-shortcut-grid a:hover { border-color: var(--primary); background: #f3f8f3; }
.dashboard-shortcut-grid a span, .recent-activity time { color: var(--gray); font-size: 0.82rem; }
.recent-activity .page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.recent-activity .page-header a { color: var(--primary-dark); font-weight: 650; }
.campaign-progress { margin-top: 1rem; }
.campaign-progress .progress-label { display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; font-size: 0.85rem; }
.campaign-progress progress { width: 100%; height: 0.8rem; accent-color: var(--primary); }
.table-wrapper { border-color: var(--border); border-radius: 12px; box-shadow: none; }
table { min-width: 680px; }
th { background: #f3f7f4; color: #43594a; font-size: 0.74rem; letter-spacing: 0.055em; text-transform: uppercase; }
td, th { padding: 0.85rem 1rem; }
tbody tr:hover { background: #f8fbf8; }
.settings-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.85rem; }
.settings-summary-grid .mini-stat { min-width: 0; }
.settings-summary-grid .mini-stat strong { overflow-wrap: anywhere; }
.settings-detail-list { margin: 0; }
.settings-detail-list > div {
    display: grid;
    grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.settings-detail-list > div:last-child { border-bottom: 0; }
.settings-detail-list dt { color: var(--gray); font-weight: 650; }
.settings-detail-list dd { margin: 0; color: var(--dark); }
.settings-detail-list a { color: var(--primary-dark); font-weight: 650; }

@media (min-width: 769px) {
    .sidebar { position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; }
}
@media (max-width: 768px) {
    .navbar { padding: 0.7rem 1rem; }
    .navbar-container { align-items: center; gap: 0; }
    .navbar-menu { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 0.1rem 0 0.3rem; scrollbar-width: thin; }
    .navbar-menu > li { flex: 0 0 auto; }
    .navbar-menu > li > a { min-height: 36px; padding: 0.4rem 0.62rem; font-size: 0.78rem; }
    .navbar-menu .btn-admin { padding: 0.5rem 0.8rem; }
    .hero-minimal {
        background-image: linear-gradient(90deg, rgba(19, 47, 34, 0.92), rgba(19, 47, 34, 0.72)), url("photo.png/background.png");
        background-position: 54% center;
    }
    .container { width: min(100% - 2rem, 1160px); padding: 2rem 0 3rem; }
    .public-summary-grid, .transparency-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar { background: #1d3529; }
    .sidebar-toggle { top: 0.8rem; left: auto; right: 0.8rem; width: 42px; height: 42px; border-radius: 10px; }
    .main-content { padding: 4.25rem 1rem 1.25rem; }
    .section-block { padding: 1rem; }
    .mini-stat { min-height: 98px; }
}
@media (max-width: 480px) {
    .brand-name { max-width: 235px; font-size: 0.82rem; }
    .navbar-brand .logo { width: 39px; height: 39px; flex-basis: 39px; }
    .public-summary-grid, .transparency-stats { grid-template-columns: 1fr; }
    .stat-card { min-height: 112px; }
    .about-contact { align-items: flex-start; flex-direction: column; }
    .settings-detail-list > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ================ PUBLIC DASHBOARD LAYOUT ================ */
.public-dashboard-page { min-height: 100vh; }
.public-dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}
.public-dashboard-page .public-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--border);
    border-bottom: 0;
}
.public-dashboard-page .navbar-container {
    width: 100%;
    max-width: none;
    margin: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 1.5rem;
}
.public-dashboard-page .navbar-brand { align-items: center; }
.public-dashboard-page .brand-name { max-width: 155px; }
.public-dashboard-page .navbar-menu {
    width: 100%;
    flex: 0 0 auto;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin: 0;
}
.public-dashboard-page .navbar-menu > li { width: 100%; }
.public-dashboard-page .navbar-menu > li > a { width: 100%; justify-content: flex-start; }
.public-dashboard-page .navbar-menu .btn-admin { justify-content: center; margin-top: 0.5rem; }
.public-dashboard-content { min-width: 0; }
.public-dashboard-page .public-home-hero {
    min-height: 220px;
    padding: 0.85rem clamp(1.5rem, 4vw, 3rem);
}
.public-dashboard-page .public-home-hero h1 { max-width: 760px; font-size: clamp(2.35rem, 4.6vw, 3.7rem); }
.public-dashboard-page .public-home-hero p { font-size: 1rem; }
.public-home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.public-dashboard-page .public-home-hero .public-request-link { margin-top: 0.65rem; }
.public-impact-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 1.1rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.public-impact-link:hover { transform: translateY(-2px); background: rgba(255,255,255,0.13); }
.public-impact-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.public-dashboard-header {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem clamp(1.25rem, 3vw, 2.75rem);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
}
.public-dashboard-header h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
.public-dashboard-header > div > p:last-child { margin-top: 0.25rem; color: var(--gray); }
.public-dashboard-header .btn { white-space: nowrap; }
.public-dashboard-eyebrow { color: var(--primary); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; }
.public-dashboard-container { width: min(100% - 3rem, 1500px); max-width: 1500px; padding: 1.6rem 0 2.5rem; }
.public-dashboard-container > section { margin-bottom: 0; }
.public-summary-section,
.public-dashboard-primary > section,
.public-dashboard-secondary > section {
    min-width: 0;
    padding: clamp(1rem, 1.8vw, 1.5rem);
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}
.public-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.public-section-heading .section-title { margin-bottom: 0.15rem; }
.public-section-heading p { color: var(--gray); font-size: 0.84rem; }
.public-section-heading > a { color: var(--primary-dark); font-size: 0.85rem; font-weight: 650; white-space: nowrap; }
.public-dashboard-container .public-summary-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.public-dashboard-container .stat-card { min-width: 0; min-height: 122px; padding: 1rem; }
.public-dashboard-container .public-summary-grid .stat-card { height: 100%; display: flex; flex-direction: column; }
.public-dashboard-container .public-summary-grid .stat-label { min-height: 2.8rem; align-items: flex-start; }
.public-dashboard-container .public-summary-grid .stat-sub { margin-top: auto; padding-top: 0.5rem; }
.public-dashboard-container .stat-value { font-size: clamp(1.35rem, 2vw, 1.85rem); overflow-wrap: anywhere; }
.public-dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.85fr); align-items: start; gap: 1.2rem; margin-top: 1.2rem; }
.public-dashboard-primary, .public-dashboard-secondary { display: grid; align-content: start; gap: 1.2rem; min-width: 0; }
.public-dashboard-primary > section,
.public-dashboard-secondary > section { margin: 0; }
.public-dashboard-container .public-campaigns .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-dashboard-container .public-campaigns .impact-card { padding: 1rem; }
.public-dashboard-container .public-campaigns > .btn,
.public-dashboard-container .public-assistance-request button[type="submit"] {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}
.public-dashboard-container .public-campaigns > .btn { margin-top: 0.9rem; }
.public-dashboard-container .public-assistance-request button[type="submit"] { margin-top: 0.2rem; }
.public-dashboard-container .public-transparency .transparency-intro,
.public-dashboard-container .public-campaigns .transparency-intro,
.public-dashboard-container .public-impact .transparency-intro,
.public-dashboard-container .public-distributions .transparency-intro,
.public-dashboard-container .public-needs-overview .transparency-intro,
.public-dashboard-container .public-assistance-request .transparency-intro { margin: 0 0 0.9rem; font-size: 0.88rem; }
.public-dashboard-container .public-transparency .transparency-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.65rem; }
.public-dashboard-container .public-transparency .stat-card { min-height: 105px; padding: 0.85rem; }
.public-dashboard-container .transparency-chart { margin-bottom: 0; padding: 1rem; }
.public-dashboard-secondary .dashboard-shortcut-grid { grid-template-columns: 1fr; gap: 0.55rem; }
.public-dashboard-secondary .dashboard-shortcut-grid a { padding: 0.75rem 0.85rem; }
.public-dashboard-secondary .public-privacy-note { margin-top: 0.8rem; font-size: 0.8rem; }
.public-dashboard-secondary .public-text-link { display: inline-block; margin-top: 0.65rem; font-weight: 650; }
.public-needs-list { display: grid; gap: 0.7rem; }
.public-need-status { display: inline-flex; flex: 0 0 auto; padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 750; }
.need-status-complete { background: #e3f2e7; color: #23613a; }
.need-status-open { background: #fff4d8; color: #765415; }
.need-status-urgent { background: #fde8e5; color: #a22f27; }
.project-transparency-card .project-fund-summary { display: grid; gap: 0; margin: 0.8rem 0 0; }
.project-fund-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--border); }
.project-fund-summary dt { color: var(--gray); font-size: 0.82rem; }
.project-fund-summary dd { margin: 0; color: var(--primary-dark); font-size: 0.86rem; font-weight: 750; text-align: right; }
.campaign-deadline { margin: 0.45rem 0 0; color: var(--gray); font-size: 0.78rem; }
.public-dashboard-secondary .public-assistance-request { padding: clamp(1rem, 1.8vw, 1.5rem); }
.public-dashboard-secondary .public-assistance-request .form-row { grid-template-columns: 1fr; }
.public-dashboard-secondary .public-assistance-request .request-storage-note { margin-bottom: 0.9rem; font-size: 0.8rem; }
.public-dashboard-secondary .public-assistance-request .form-group { margin-bottom: 0.8rem; }
.public-dashboard-secondary .public-assistance-request textarea { min-height: 90px; }
.public-dashboard-page .footer { margin-top: 0; }

@media (max-width: 1250px) {
    .public-dashboard-container .public-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
    #adminDashboardOverview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-lower-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
    .public-dashboard-layout { grid-template-columns: 215px minmax(0, 1fr); }
    .public-dashboard-columns { grid-template-columns: 1fr; gap: 0.85rem; }
    .public-dashboard-primary, .public-dashboard-secondary { gap: 0.85rem; }
    .public-dashboard-container { width: min(100% - 2rem, 1500px); }
    .public-dashboard-container .public-campaigns .impact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .public-dashboard-layout { display: block; }
    .public-dashboard-page .public-sidebar,
    .public-page-layout .public-sidebar { background: linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)), url("photo.png/background.png") center / cover no-repeat; }
    .public-dashboard-page.public-nav-open .public-sidebar,
    .public-page-layout.public-nav-open .public-sidebar { transform: translateX(0); }
    .public-dashboard-header { min-height: 96px; padding: 1rem; }
    .public-dashboard-columns { grid-template-columns: 1fr; }
    .public-dashboard-primary { order: 1; }
    .public-dashboard-secondary { order: 0; }
    .public-dashboard-container .public-campaigns .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .public-dashboard-header { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
    .public-dashboard-container { width: min(100% - 1.25rem, 1500px); padding-top: 1rem; }
    .public-dashboard-container .public-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-dashboard-container .public-campaigns .impact-grid,
    .public-dashboard-container .public-project-transparency .impact-grid { grid-template-columns: 1fr; }
    .public-dashboard-container .stat-card { min-height: 100px; }
    .public-section-heading { align-items: flex-start; flex-direction: column; }
    .public-dashboard-container .public-campaigns > .btn,
    .public-dashboard-container .public-assistance-request button[type="submit"] { width: 100%; }
    .admin-context-bar { align-items: flex-start; flex-direction: column; }
    .admin-context-actions { width: 100%; flex-wrap: wrap; gap: 0.45rem 0.7rem; }
    .admin-profile-link { padding-left: 0; border-left: 0; }
    #adminDashboardOverview { grid-template-columns: 1fr; }
}

.public-nav-mobile-toggle,
.public-nav-backdrop { display: none; }
.public-nav-backdrop:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (min-width: 761px) {
    .public-nav-mobile-toggle { display: none !important; }
    .public-nav-backdrop { display: none !important; }
}
@media (max-width: 760px) {
    .public-nav-mobile-toggle { position: fixed; z-index: 1300; top: 0.75rem; right: 0.75rem; display: block; min-height: 40px; min-width: 76px; padding: 0.55rem 0.8rem; border: 1px solid rgba(36,105,77,0.24); border-radius: 9px; background: #fff; color: var(--primary-dark); font: inherit; font-size: 0.82rem; font-weight: 750; box-shadow: var(--shadow); cursor: pointer; }
    .public-nav-mobile-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
    .public-nav-backdrop { position: fixed; z-index: 1190; inset: 0; display: none; width: 100%; height: 100%; border: 0; background: rgba(18,35,25,0.42); }
    .public-nav-open .public-nav-backdrop { display: block; }
}

/* ================ SHARED PUBLIC PAGE LAYOUT ================ */
.public-page-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: stretch;
}
.public-page-layout .public-sidebar {
    position: sticky;
    top: 0;
    grid-column: 1;
    grid-row: 1;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
        url("photo.png/background.png") center / cover no-repeat;
}
.public-page-layout .navbar-container {
    width: 100%;
    max-width: none;
    margin: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 1.5rem;
}
.public-page-layout .brand-name { max-width: 155px; }
.public-page-layout .navbar-menu {
    width: 100%;
    flex: 0 0 auto;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin: 0;
}
.public-page-layout .navbar-menu > li { width: 100%; }
.public-page-layout .navbar-menu > li > a { width: 100%; justify-content: flex-start; }
.public-page-layout .navbar-menu > li > a {
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border-radius: 11px;
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.public-page-layout .navbar-menu > li > a:hover { transform: translateX(2px); background: rgba(255,255,255,0.94); color: var(--primary-dark); box-shadow: 0 3px 10px rgba(29,54,39,0.08); }
.public-page-layout .navbar-menu > li > a.active { background: #e1eee4; color: #173b2e; box-shadow: inset 3px 0 0 var(--accent), 0 3px 10px rgba(29,54,39,0.08); }
.public-dashboard-page .navbar-menu > li > a {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.8rem;
    border-radius: 11px;
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.public-dashboard-page .navbar-menu > li > a:hover { transform: translateX(2px); background: rgba(255,255,255,0.94); box-shadow: 0 3px 10px rgba(29,54,39,0.08); }
.public-dashboard-page .navbar-menu > li > a.active { background: #e1eee4; color: #173b2e; box-shadow: inset 3px 0 0 var(--accent), 0 3px 10px rgba(29,54,39,0.08); }
.public-nav-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(36,105,77,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.92);
    color: #244f3b;
    box-shadow: 0 2px 5px rgba(29,54,39,0.08);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.public-nav-icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.public-nav-icon img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.navbar-menu a.active .public-nav-icon {
    transform: scale(1.03);
    background: var(--primary-dark);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 3px 8px rgba(29,54,39,0.18);
}
.navbar-menu a:hover .public-nav-icon { transform: scale(1.06); border-color: var(--accent); }
.public-stat-icon {
    display: inline-flex;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 2.15rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(36,105,77,0.18);
    border-radius: 11px;
    background: #e5eee7;
    color: #244f3b;
}
.public-stat-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.public-page-layout main .stat-label,
.public-dashboard-page main .stat-label { display: flex; align-items: center; gap: 0.55rem; line-height: 1.3; }
.public-page-layout main .stat-card,
.public-dashboard-page main .stat-card { border-top: 2px solid rgba(36,105,77,0.14); }
.public-page-layout main .stat-value,
.public-dashboard-page main .stat-value { margin-top: 0.35rem; color: #173b2e; font-weight: 800; }
.public-page-layout .navbar-menu .btn-admin { justify-content: center; margin-top: 0.5rem; }
.public-page-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f4f5f1 0%, #f9faf7 100%);
}
.public-page-header {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1.35rem clamp(1.25rem, 3vw, 2.75rem);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
}
.public-page-header h1,
.public-page-header .section-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
}
.public-page-header p { margin-top: 0.3rem; color: var(--gray); font-size: 0.92rem; }
.public-page-content main.container {
    width: min(100% - 3rem, 1360px);
    max-width: none;
    flex: 1 0 auto;
    padding: 1.5rem 0 2.5rem;
}
.public-page-content main.container > h1,
.public-page-content main.container > .section-title { display: none; }
.public-page-content main.container > p:first-child { margin-top: 0; }
.public-page-content main.container > section {
    margin-top: 0;
    margin-bottom: 1.2rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}
.public-page-content main.container > .stats-grid,
.public-page-content main.container > .impact-grid,
.public-page-content main.container > .public-distribution-grid,
.public-page-content main.container > .category-grid {
    gap: 0.9rem;
    margin: 0 0 1.2rem;
}
.public-page-content main.container > .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255,255,255,0.88);
    box-shadow: var(--shadow);
}
.public-page-content main.container .stat-card {
    min-width: 0;
    min-height: 118px;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #fff;
}
.public-page-content main.container .stat-value { overflow-wrap: anywhere; }
.public-page-content main.container > p.transparency-intro,
.public-page-content main.container > p.page-intro {
    margin: 0 0 1rem;
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.65;
}
.public-page-content main.container > section > h2:not(.section-title) {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-size: 1.15rem;
    letter-spacing: -0.015em;
}
.public-page-content main.container .impact-card,
.public-page-content main.container .public-distribution-card,
.public-page-content main.container .category-card,
.public-page-content main.container .need-card {
    border-radius: 13px;
    box-shadow: 0 5px 18px rgba(26, 55, 38, 0.06);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.public-page-content main.container .impact-card:hover,
.public-page-content main.container .public-distribution-card:hover,
.public-page-content main.container .category-card:hover,
.public-page-content main.container .need-card:hover {
    transform: translateY(-2px);
    border-color: rgba(36, 105, 77, 0.35);
    box-shadow: 0 10px 24px rgba(26, 55, 38, 0.1);
}
.public-page-content main.container .btn,
.public-page-content main.container button[type="submit"],
.public-page-content main.container .public-request-link {
    min-height: 44px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.25;
}
.public-page-content main.container .btn:focus-visible,
.public-page-content main.container button:focus-visible,
.public-page-layout .navbar-menu a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
.public-page-content main.container .form-control {
    border-radius: 9px;
    background: #fff;
}
.public-page-content main.container .table-wrapper {
    border-radius: 12px;
}
.public-page-content main.container .public-privacy-note {
    padding: 0.8rem 1rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 9px 9px 0;
    background: rgba(255,255,255,0.78);
    font-size: 0.84rem;
    line-height: 1.6;
}
.public-page-content main.container > section:last-child { margin-bottom: 0; }
.public-page-content main.container > .hero {
    min-height: 0;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    text-align: left;
}
.public-page-content main.container > .hero .hero-badge {
    margin-bottom: 0.3rem;
    background: rgba(79, 135, 88, 0.08);
    color: var(--primary-dark);
}
.public-page-content main.container > .hero p { color: var(--gray); }
.public-page-layout .footer { margin-top: auto; }
@media (max-width: 760px) {
    .public-page-layout { display: block; }
    .public-page-layout .navbar-menu > li > a { min-height: 40px; padding: 0.4rem 0.65rem; gap: 0.45rem; font-size: 0.8rem; }
    .public-dashboard-page .navbar-menu > li > a { min-height: 40px; padding: 0.4rem 0.65rem; gap: 0.45rem; font-size: 0.8rem; }
    .public-page-layout .public-nav-icon,
    .public-dashboard-page .public-nav-icon { width: 1.7rem; height: 1.7rem; flex-basis: 1.7rem; border-radius: 8px; }
    .public-page-layout .public-nav-icon svg,
    .public-dashboard-page .public-nav-icon svg { width: 1.05rem; height: 1.05rem; }
    .public-page-layout .public-nav-icon img,
    .public-dashboard-page .public-nav-icon img { width: 1.4rem; height: 1.4rem; }
    .public-page-content { min-height: calc(100vh - 110px); }
}

.public-page-layout .public-sidebar {
    background:
        linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94)),
        url("photo.png/background.png") center / cover no-repeat;
}
.inventory-need-toggle { align-self: center; }
.public-page-layout main.container .public-need-card,
.public-dashboard-page .public-need-card {
    display: block;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 5px 18px rgba(26,55,38,0.06);
}
.public-page-layout main.container .public-need-card[hidden] { display: none; }
.public-page-layout main.container .public-need-heading,
.public-dashboard-page .public-need-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.public-page-layout main.container .public-need-heading h3,
.public-dashboard-page .public-need-heading h3 { margin: 0; color: var(--primary-dark); font-size: 0.95rem; }
.public-page-layout main.container .public-need-card p,
.public-dashboard-page .public-need-card p { margin: 0.45rem 0; color: var(--gray); font-size: 0.82rem; }
.public-page-layout main.container .public-need-card progress,
.public-dashboard-page .public-need-card progress { display: block; width: 100%; height: 0.55rem; accent-color: var(--primary); }
.public-page-layout main.container .public-need-progress,
.public-dashboard-page .public-need-progress { display: block; margin-top: 0.35rem; color: var(--gray); font-size: 0.78rem; }
@media (max-width: 760px) {
    .public-dashboard-page .public-sidebar,
    .public-page-layout .public-sidebar {
        position: fixed;
        z-index: 1200;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(86vw, 310px);
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        padding: 1rem;
        border-right: 1px solid var(--border);
        border-bottom: 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }
    .public-dashboard-page.public-nav-open .public-sidebar,
    .public-page-layout.public-nav-open .public-sidebar { transform: translateX(0); }
    .public-dashboard-page .navbar-container,
    .public-page-layout .navbar-container { align-items: stretch; flex-direction: column; gap: 0.7rem; }
    .public-dashboard-page .navbar-menu,
    .public-page-layout .navbar-menu { flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 0.35rem; padding: 0; }
    .public-dashboard-page .navbar-menu > li,
    .public-page-layout .navbar-menu > li { width: 100%; flex: 0 0 auto; }
    .public-dashboard-page .navbar-menu > li > a,
    .public-page-layout .navbar-menu > li > a { width: 100%; }
    .public-nav-mobile-toggle { position: fixed; z-index: 1300; top: 0.75rem; right: 0.75rem; display: block; min-height: 40px; min-width: 76px; padding: 0.55rem 0.8rem; border: 1px solid rgba(36,105,77,0.24); border-radius: 9px; background: #fff; color: var(--primary-dark); font: inherit; font-size: 0.82rem; font-weight: 750; box-shadow: var(--shadow); cursor: pointer; }
    .public-nav-mobile-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
    .public-nav-backdrop { position: fixed; z-index: 1190; inset: 0; display: none; width: 100%; height: 100%; border: 0; background: rgba(18,35,25,0.42); }
    .public-nav-open .public-nav-backdrop { display: block; }
}
@media (max-width: 520px) {
    .public-dashboard-page .public-home-hero { min-height: 210px; padding: 0.8rem 1.1rem; }
    .public-dashboard-page .public-home-hero .hero-badge { margin-bottom: 0.55rem; padding: 0.4rem 0.75rem; font-size: 0.68rem; }
    .public-dashboard-page .public-home-hero h1 { margin-bottom: 0.5rem; font-size: clamp(1.75rem, 7.4vw, 2.35rem); }
    .public-dashboard-page .public-home-hero p { font-size: 0.9rem; line-height: 1.45; }
    .public-dashboard-page .public-home-actions { align-items: stretch; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
    .public-dashboard-page .public-home-hero .public-request-link,
    .public-dashboard-page .public-home-hero .public-impact-link { width: auto; flex: 1 1 140px; min-height: 42px; margin-top: 0.35rem; padding: 0.6rem 0.75rem; font-size: 0.82rem; }
}
@media (max-width: 520px) {
    .public-page-header { min-height: 92px; padding: 1rem; }
    .public-page-content main.container { width: min(100% - 1.25rem, 1360px); padding: 1rem 0 1.5rem; }
    .public-page-content main.container > .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.7rem; gap: 0.55rem; }
    .public-page-content main.container .stat-card { min-height: 100px; padding: 0.75rem; }
    .public-page-content main.container .stat-value { font-size: clamp(1.15rem, 6vw, 1.55rem); }
    .public-page-content main.container > section { padding: 1rem; }
    .public-page-content main.container .report-controls { grid-template-columns: minmax(0, 1fr); }
    .public-page-content main.container .report-action,
    .public-page-content main.container .report-action .btn { width: 100%; }
    .public-page-layout main .public-stat-icon,
    .public-dashboard-page main .public-stat-icon { width: 1.9rem; height: 1.9rem; flex-basis: 1.9rem; }
}

/* ================ HOME AND ADMIN DASHBOARD POLISH ================ */
.public-dashboard-page .public-sidebar {
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.035);
}
.public-dashboard-page .navbar-menu > li > a {
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    border-radius: 9px;
    transition: transform 0.2s ease;
}
.public-dashboard-page .public-home-hero {
    position: relative;
    min-height: 330px;
    overflow: hidden;
}
.public-dashboard-page .public-home-hero .hero-inner {
    position: relative;
    z-index: 1;
}
.public-dashboard-page .public-home-hero h1 {
    max-width: 680px;
}
.public-dashboard-page .public-dashboard-container {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
}
.public-dashboard-page .public-summary-section,
.public-dashboard-page .public-dashboard-primary > section,
.public-dashboard-page .public-dashboard-secondary > section {
    border-radius: 16px;
}
.public-dashboard-page .public-dashboard-container .stat-card {
    border-left-width: 3px;
    border-radius: 12px;
}
.public-dashboard-page .public-dashboard-container .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}
.public-dashboard-page .public-dashboard-container .stat-value {
    letter-spacing: -0.035em;
}
.dashboard-page-header {
    align-items: flex-end;
    margin-bottom: 1.6rem;
}
.dashboard-page-header > div {
    display: grid;
    gap: 0.25rem;
}
.dashboard-page-header .dashboard-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}
.dashboard-page-header h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.25rem);
    letter-spacing: -0.04em;
}
body[data-page="dashboard"][data-section="Dashboard"] .main-content {
    padding: clamp(1.25rem, 2.6vw, 2.5rem);
}
body[data-page="dashboard"][data-section="Dashboard"] .admin-dashboard-section {
    padding: 0;
    border: 0;
    box-shadow: none;
}
body[data-page="dashboard"][data-section="Dashboard"] #adminDashboardOverview .mini-stat {
    min-height: 132px;
    padding: 1.2rem;
    border-width: 1px;
    border-style: solid;
    border-left-width: 3px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body[data-page="dashboard"][data-section="Dashboard"] #adminDashboardOverview .mini-stat:hover {
    transform: translateY(-2px);
}
body[data-page="dashboard"][data-section="Dashboard"] #adminDashboardOverview .mini-stat span {
    min-height: 2.4em;
    font-size: 0.72rem;
    letter-spacing: 0.045em;
}
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-panel {
    padding: 1.25rem;
    border-radius: 14px;
}
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-shortcuts {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 14px;
}
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-shortcut-grid a {
    border-radius: 11px;
    transition: transform 0.2s ease;
}
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-shortcut-grid a:hover {
    transform: translateY(-2px);
}
@media (max-width: 760px) {
    .public-dashboard-page .public-home-hero {
        min-height: 300px;
    }
    body[data-page="dashboard"][data-section="Dashboard"] .main-content {
        padding-top: 4.5rem;
    }
}
@media (max-width: 520px) {
    .public-dashboard-page .public-home-hero {
        min-height: 270px;
    }
    .public-dashboard-page .public-dashboard-container {
        padding-top: 1.25rem;
    }
    .dashboard-page-header {
        align-items: flex-start;
    }
    .dashboard-page-header > a {
        width: 100%;
        justify-content: center;
    }
}

/* ================ SYSTEM-WIDE PAGE CONSISTENCY ================ */
.public-page-content main.container > section,
.public-page-content main.container > .stats-grid {
    border-radius: 15px;
}
.public-page-content main.container .stat-card,
.public-page-content main.container .impact-card,
.public-page-content main.container .public-distribution-card,
.public-page-content main.container .category-card,
.public-page-content main.container .need-card {
    border-radius: 13px;
}
.admin-layout .section-block,
.admin-layout .dashboard-panel {
    border-radius: 14px;
}
.admin-layout .table-wrapper {
    border-radius: 11px;
}
.admin-layout .form-control,
.public-page-content .form-control,
.public-dashboard-content .form-control {
    border-radius: 9px;
}
.modal-overlay .modal {
    border-radius: 15px;
}
@media (max-width: 760px) {
    .admin-layout .section-block {
        padding: 1rem;
    }
    .admin-layout .page-header {
        align-items: flex-start;
    }
    .public-page-content main.container {
        width: min(100% - 1.5rem, 1360px);
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================ REFERENCE DESIGN: PUBLIC, ADMIN, SIGN-IN ================ */
.public-dashboard-page { background: #f5f5ef; }
.public-dashboard-page .public-sidebar { background: #173b2d; border: 0; color: #fff; padding: 1.7rem 1.15rem; }
.public-dashboard-page .navbar-brand { color: #fff; }
.public-dashboard-page .navbar-brand .logo { border-radius: 13px; box-shadow: 0 8px 24px #071b1233; }
.public-dashboard-page .brand-name { color: #f5f7ee; font-weight: 650; }
.public-dashboard-page .navbar-menu { gap: .5rem; }
.public-dashboard-page .navbar-menu > li > a { min-height: 46px; padding: .7rem .8rem; border: 1px solid transparent; border-radius: 11px; color: #d9e5dc; font-weight: 600; }
.public-dashboard-page .navbar-menu > li > a:hover { background: #ffffff12; color: #fff; transform: translateX(2px); }
.public-dashboard-page .navbar-menu > li > a.active { background: #ffffff17; border-color: #ffffff14; color: #fff; box-shadow: inset 3px 0 #d9b961; }
.public-dashboard-page .public-home-hero {
    min-height: 410px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 5rem); color: #fff;
    background: radial-gradient(ellipse at 82% 52%, #376b4f 0, transparent 34%), linear-gradient(118deg, #183d2e 0%, #214b37 55%, #153628 100%);
}
.public-dashboard-page .public-home-hero::before { content: ""; position: absolute; inset: 0; opacity: .15; pointer-events: none; background-image: radial-gradient(#d6e7d2 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 15%, #000 100%); }
.public-dashboard-page .public-home-hero .hero-inner { width: auto; max-width: 660px; margin: 0; }
.public-dashboard-page .public-home-hero .hero-badge { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; padding: .52rem .82rem; border: 1px solid #ffffff30; border-radius: 99px; background: #ffffff0c; color: #e4cf8a; font-size: .7rem; letter-spacing: .12em; }
.public-dashboard-page .public-home-hero h1 { max-width: 610px; margin-bottom: .9rem; color: #fff; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; }
.public-dashboard-page .public-home-hero p { max-width: 530px; color: #d5e2d8; font-size: 1.02rem; line-height: 1.7; }
.public-dashboard-page .public-home-actions { gap: .75rem; margin-top: 1.2rem; }
.public-dashboard-page .public-home-hero .public-request-link, .public-dashboard-page .public-home-hero .public-impact-link { min-height: 48px; margin-top: .25rem; padding: .75rem 1.1rem; border-radius: 10px; font-size: .88rem; }
.public-dashboard-page .public-home-hero .public-request-link { display: inline-flex; align-items: center; gap: .65rem; background: #dfc477; color: #243b2c; box-shadow: 0 10px 26px #071b1230; }
.public-dashboard-page .public-home-hero .public-impact-link { border-color: #ffffff36; background: #ffffff09; }
.hero-art { position: relative; isolation: isolate; min-height: 278px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 1.2rem; border: 1px solid #ffffff30; border-radius: 23px; background: linear-gradient(145deg, #f7f1df14, #071d163d); box-shadow: 0 28px 70px #071b1240, inset 0 1px #ffffff23; }
.hero-art::before { content: ""; position: absolute; z-index: -1; width: 215px; height: 215px; right: -35px; top: 20px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #e7d499 0 3%, #b6a161 4% 5%, #587e5f 6% 21%, #42694e 22% 38%, #30543f 39% 52%, transparent 53%); box-shadow: 0 0 70px #c7b66b33; }
.hero-orbit { position: absolute; z-index: -1; right: -22px; top: 6px; width: 230px; height: 230px; border: 1px solid #e2d8a55c; border-radius: 50%; transform: rotate(-28deg) scaleY(.36); }
.hero-orbit-two { right: -22px; top: 34px; transform: rotate(28deg) scaleY(.36); }
.hero-art-top, .hero-art-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #e7eadf; font-size: .65rem; font-weight: 750; letter-spacing: .1em; }
.hero-live-dot { width: 7px; height: 7px; margin-right: auto; border-radius: 50%; background: #c9dc92; box-shadow: 0 0 12px #c9dc92; }
.hero-art-mark { color: #e1ce88; font-size: 1.2rem; }
.hero-art-copy { display: grid; gap: .48rem; }
.hero-art-copy span { color: #dfcb82; font-size: .76rem; font-weight: 700; }
.hero-art-copy strong { color: #fff; font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -.04em; }
.hero-art-copy small { color: #d6e2d8; font-size: .77rem; }
.hero-art-footer { padding-top: .9rem; border-top: 1px solid #ffffff25; font-size: .56rem; }
.hero-art-footer a { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #ffffff4a; border-radius: 50%; color: #fff; font-size: 1rem; text-decoration: none; }
.public-dashboard-page .public-dashboard-container { width: min(100% - 3rem, 1500px); padding-top: 2.3rem; }
.public-dashboard-page .public-data-status { margin-bottom: 1rem; color: #667366; font-size: .8rem; }
.public-dashboard-page .public-summary-section, .public-dashboard-page .public-dashboard-primary > section, .public-dashboard-page .public-dashboard-secondary > section { border: 1px solid #e5e7dd; border-radius: 17px; background: #fffefa; box-shadow: 0 9px 28px #243b2c0b; }
.public-dashboard-page .public-section-heading .section-title, .public-dashboard-page .section-title { color: #1d3e2e; letter-spacing: -.025em; }
.public-dashboard-page .public-dashboard-container .stat-card { border: 1px solid #e9eadf; border-left: 3px solid #679273; border-radius: 13px; background: linear-gradient(145deg, #fffef9, #f8f8f0); box-shadow: 0 5px 15px #243b2c08; }
.public-dashboard-page .public-dashboard-container .stat-value { color: #183c2d; font-variant-numeric: tabular-nums; }

body[data-page="login"] { min-height: 100vh; background: #f5f5ef; }
.login-page { min-height: 100vh; padding: clamp(1rem, 4vw, 3rem); background: radial-gradient(ellipse at 15% 85%, #e9e5ce 0, transparent 34%), #f5f5ef; }
.login-card { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr); width: min(100%, 1040px); max-width: none; min-height: min(690px, calc(100vh - 3rem)); padding: 0; overflow: hidden; border: 1px solid #e7e8df; border-radius: 24px; background: #fffefa; box-shadow: 0 28px 90px #1e38251a; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(1.5rem, 3.4vw, 2.8rem); color: #fff; background: radial-gradient(ellipse at 75% 65%, #447453 0, transparent 31%), linear-gradient(145deg, #183d2e, #204934 58%, #173829); }
.login-story::before { content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none; background-image: radial-gradient(#d6e7d2 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(135deg, #000, transparent 80%); }
.login-brand, .login-story-copy, .login-story-footer { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: .75rem; color: white; font-size: .92rem; font-weight: 850; letter-spacing: .08em; text-decoration: none; }
.login-brand small { display: block; color: #c1d1c1; font-size: .56rem; letter-spacing: .17em; }
.login-logo { width: 48px; height: 48px; flex: 0 0 48px; margin: 0; overflow: hidden; border: 1px solid #ffffff32; border-radius: 14px; background: #ffffff12; }
.login-story-copy { max-width: 380px; padding: 3rem 0; }
.login-story-copy .login-eyebrow { margin-bottom: 1rem; color: #ddc779; text-align: left; }
.login-story-copy h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(2.7rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.06em; }
.login-story-copy h1 em { color: #dfcc89; font-family: Georgia, serif; font-weight: 500; }
.login-story-copy > p:last-child { max-width: 315px; color: #d3e0d6; font-size: .95rem; }
.login-story-footer { display: flex; align-items: center; gap: .8rem; color: #d6e1d8; font-size: .74rem; line-height: 1.5; }
.login-story-spark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ffffff38; border-radius: 50%; color: #dfcc89; font-size: 1.3rem; }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 5vw, 4.5rem); }
.login-form-content { width: 100%; max-width: 385px; margin: auto; }
.login-form-content .login-eyebrow { margin-bottom: .55rem; color: #64806b; text-align: left; }
.login-form-content h2 { margin: 0 0 .35rem; color: #1a3c2d; font-size: clamp(1.8rem, 3vw, 2.25rem); text-align: left; letter-spacing: -.045em; }
.login-form-content .subtitle { margin: 0 0 2rem; color: #748075; text-align: left; font-size: .9rem; }
.login-form-content .form-group { margin-bottom: 1.15rem; }
.login-form-content .form-group label { display: block; margin-bottom: .45rem; color: #34473a; font-size: .82rem; font-weight: 700; }
.login-form-content .form-control { min-height: 49px; padding: .75rem .85rem; border-color: #dfe4da; border-radius: 10px; background: #fff; }
.login-form-content .form-control:focus { border-color: #61856b; box-shadow: 0 0 0 4px #61856b1c; }
.login-form-content .login-password-field .form-control { padding-right: 4.2rem; }
.login-form-content .login-password-toggle { right: .75rem; color: #42644b; }
.login-form-content .login-submit { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 51px; margin-top: 1.5rem; border: 0; border-radius: 10px; background: #234a36; box-shadow: 0 9px 18px #234a3625; font-weight: 750; }
.login-form-content .login-submit:hover { background: #183b2b; transform: translateY(-1px); }
.login-form-content .login-hint { margin-top: 1rem; color: #7b857b; text-align: left; font-size: .75rem; line-height: 1.6; }
.login-form-content .login-back { margin-top: 1.45rem; color: #365e40; text-align: left; font-weight: 700; }
.login-panel-footer { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid #ecece4; color: #92988f; font-size: .58rem; font-weight: 700; letter-spacing: .07em; }

body[data-page="dashboard"][data-section="Dashboard"] { background: #f4f5ef; }
body[data-page="dashboard"][data-section="Dashboard"] .sidebar { background: #173b2d; }
body[data-page="dashboard"][data-section="Dashboard"] .main-content { padding: clamp(1.5rem, 3vw, 3rem); }
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-page-header { align-items: center; margin: 0 0 1.8rem; padding: 1.3rem 1.5rem; border: 1px solid #e8e9df; border-radius: 16px; background: #fffefa; box-shadow: 0 7px 23px #243b2c08; }
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-page-header .dashboard-eyebrow { color: #71806f; }
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-page-header h1 { color: #1d3e2e; }
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-page-header > div > p:last-child { color: #738074; }
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-page-header > a { min-height: 43px; border-radius: 9px; }
body[data-page="dashboard"][data-section="Dashboard"] #adminDashboardOverview .mini-stat { position: relative; overflow: hidden; min-height: 142px; border: 1px solid #e5e8dc; border-left: 3px solid #628b6b; border-radius: 15px; background: linear-gradient(145deg, #fffefa, #f9f8ef); box-shadow: 0 8px 23px #243b2c09; }
body[data-page="dashboard"][data-section="Dashboard"] #adminDashboardOverview .mini-stat::after { content: ""; position: absolute; top: -34px; right: -28px; width: 105px; height: 105px; border: 1px solid #65896b1c; border-radius: 50%; box-shadow: 0 0 0 14px #65896b08, 0 0 0 29px #65896b05; }
body[data-page="dashboard"][data-section="Dashboard"] #adminDashboardOverview .mini-stat strong { color: #1c432f; font-variant-numeric: tabular-nums; }
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-panel, body[data-page="dashboard"][data-section="Dashboard"] .dashboard-shortcuts { border: 1px solid #e6e8de; background: #fffefa; box-shadow: 0 8px 23px #243b2c08; }
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-panel .page-header h2, body[data-page="dashboard"][data-section="Dashboard"] .dashboard-shortcuts h2 { color: #214231; }
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-shortcut-grid a { border-color: #e5e8dd; background: linear-gradient(145deg, #fffefa, #f8f8f1); }
body[data-page="dashboard"][data-section="Dashboard"] .dashboard-shortcut-grid a strong { color: #234a36; }
@media (max-width: 900px) {
    .public-dashboard-page .public-home-hero { grid-template-columns: minmax(0, 1fr) minmax(235px, .75fr); gap: 1.2rem; }
    .hero-art { min-height: 250px; }
    .login-card { grid-template-columns: minmax(260px, .78fr) minmax(360px, 1.1fr); }
    .login-form-panel { padding: 2.25rem; }
}
@media (max-width: 760px) {
    .public-dashboard-page .public-home-hero { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding: 2.2rem 1.4rem; }
    .public-dashboard-page .public-home-hero .hero-inner { max-width: 100%; }
    .hero-art { width: min(100%, 440px); min-height: 230px; }
    .login-page { padding: 1rem; }
    .login-card { grid-template-columns: 1fr; width: min(100%, 540px); min-height: 0; }
    .login-story { min-height: 255px; padding: 1.35rem 1.5rem; }
    .login-story-copy { padding: 1.65rem 0 1rem; }
    .login-story-copy .login-eyebrow { margin-bottom: .55rem; }
    .login-story-copy h1 { font-size: 2.5rem; }
    .login-story-copy > p:last-child { max-width: 360px; font-size: .82rem; }
    .login-story-footer { display: none; }
    .login-form-panel { padding: 2rem 1.5rem; }
}
@media (max-width: 520px) {
    .public-dashboard-page .public-dashboard-container { width: min(100% - 1.3rem, 1500px); }
    .public-dashboard-page .public-home-hero h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
    .hero-art { min-height: 220px; }
    body[data-page="dashboard"][data-section="Dashboard"] .dashboard-page-header { align-items: flex-start; padding: 1rem; }
    body[data-page="dashboard"][data-section="Dashboard"] .dashboard-page-header > a { width: 100%; }
    .login-panel-footer { flex-direction: column; gap: .3rem; }
}

/* ================ PUBLIC EDITORIAL PAGE LAYOUTS ================ */
.public-editorial-page { --editorial-forest: #173b2d; --editorial-leaf: #315d42; --editorial-gold: #dfc477; --editorial-cream: #f5f4eb; background: #f6f6f0; }
.public-editorial-page > .navbar { position: sticky; top: 0; z-index: 100; padding: .7rem clamp(1rem, 4vw, 3.5rem); border: 0; background: #173b2d; box-shadow: 0 5px 20px #122a1d22; }
.public-editorial-page > .navbar .navbar-container { max-width: 1450px; min-height: 55px; gap: 1.25rem; }
.public-editorial-page > .navbar .navbar-brand { color: #fff; }
.public-editorial-page > .navbar .brand-name { color: #f4f5eb; }
.public-editorial-page > .navbar .navbar-brand .logo { width: 42px; height: 42px; border: 1px solid #ffffff3a; border-radius: 12px; }
.public-editorial-page > .navbar .navbar-menu { flex: 0 1 auto; justify-content: flex-end; gap: .25rem; margin: 0; }
.public-editorial-page > .navbar .navbar-menu > li > a { min-height: 40px; padding: .5rem .78rem; border: 1px solid transparent; border-radius: 9px; color: #dce7df; font-size: .83rem; font-weight: 650; }
.public-editorial-page > .navbar .navbar-menu > li > a:hover { background: #ffffff12; color: #fff; }
.public-editorial-page > .navbar .navbar-menu > li > a.active { border-color: #ffffff21; background: #ffffff14; color: #fff; }
.public-editorial-page > .navbar .navbar-menu > li:last-child > a { color: #f0d991; }
.public-page-hero { position: relative; isolation: isolate; min-height: 355px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); align-items: center; gap: 2rem; overflow: hidden; padding: clamp(2.5rem, 5vw, 5rem) clamp(1.4rem, 7vw, 7rem); color: #fff; background: radial-gradient(ellipse at 82% 48%, #396b4e 0, transparent 30%), linear-gradient(115deg, #183c2d, #214b37 58%, #183929); }
.public-page-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .14; pointer-events: none; background-image: radial-gradient(#e5e9d7 1px, transparent 1px); background-size: 21px 21px; mask-image: linear-gradient(90deg, transparent, #000 72%); }
.public-page-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.public-editorial-page .eyebrow { margin: 0 0 .65rem; color: #71836e; font-size: .69rem; font-weight: 800; letter-spacing: .14em; }
.public-page-hero .eyebrow { color: #dfc477; }
.public-page-hero h1 { max-width: 700px; margin: 0 0 .8rem; color: #fff; font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
.public-page-hero h1 em { color: #dfc477; font-family: Georgia, serif; font-weight: 500; }
.public-page-hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 0; color: #d4e0d6; font-size: 1rem; line-height: 1.7; }
.editorial-primary-link, .editorial-hero-actions > a { display: inline-flex; min-height: 47px; align-items: center; gap: .75rem; margin-top: 1.3rem; padding: .7rem 1rem; border: 1px solid #e0c77c; border-radius: 10px; background: #dfc477; color: #213b2b; font-size: .85rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.editorial-primary-link:hover, .editorial-hero-actions > a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #09190f30; }
.editorial-primary-link:focus-visible, .editorial-hero-actions > a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.editorial-container { width: min(100% - 3rem, 1220px); padding-top: clamp(2rem, 4vw, 3.8rem); padding-bottom: 4rem; }
.editorial-section-heading { max-width: 720px; margin: 0 auto 1.75rem; text-align: center; }
.editorial-section-heading h2 { margin: 0 0 .5rem; color: #1e432f; font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -.045em; }
.editorial-section-heading > p:last-child { margin: 0; color: #68776b; }
.page-about .editorial-hero { min-height: 430px; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 7vw, 7rem); background: radial-gradient(ellipse at 80% 54%, #427354 0, transparent 30%), linear-gradient(120deg, #173b2d, #28563c 60%, #183a2b); }
.page-about .editorial-hero .hero-inner { width: auto; max-width: 700px; margin: 0; }
.page-about .editorial-hero h1 { max-width: 680px; font-size: clamp(2.5rem, 4.6vw, 4.3rem); }
.page-about .editorial-hero p { max-width: 590px; color: #d3e0d6; }
.page-about .editorial-hero .hero-badge { display: inline-flex; margin-bottom: .8rem; padding: .48rem .75rem; border: 1px solid #ffffff31; border-radius: 99px; background: #ffffff0c; color: #dfc477; font-size: .68rem; letter-spacing: .12em; }
.editorial-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.editorial-hero-actions > span { margin-top: 1.3rem; color: #c4d3c8; font-size: .62rem; font-weight: 750; letter-spacing: .11em; }
.editorial-hero-art { position: relative; display: grid; place-items: center; justify-self: center; width: min(100%, 325px); aspect-ratio: 1; overflow: hidden; border: 1px solid #ffffff34; border-radius: 50%; background: radial-gradient(circle, #eff0d31a, #eff0d306 55%, transparent 56%); box-shadow: 0 0 0 19px #ffffff08, 0 0 0 42px #ffffff05; }
.editorial-hero-art img { width: 58%; height: 58%; object-fit: cover; border: 5px solid #ffffffc9; border-radius: 50%; box-shadow: 0 15px 42px #09221750; }
.editorial-hero-art > span { position: absolute; right: 15%; bottom: 14%; padding: .4rem .55rem; border: 1px solid #ffffff50; border-radius: 99px; background: #244e38; color: #f5df94; font-size: .5rem; font-weight: 850; letter-spacing: .1em; line-height: 1.25; }
.editorial-hero-art > i { position: absolute; top: 15%; right: 17%; color: #e0cb83; font-size: 1.6rem; font-style: normal; }
.page-about .editorial-container { padding-top: 2.5rem; }
.page-about .about-kbk, .page-about .about-principles, .page-about .about-goals { margin-bottom: 1.25rem; }
.page-about .about-intro { max-width: 860px; margin: 0 auto 1.4rem; padding: 2rem; border: 1px solid #e5e7dc; border-radius: 18px; background: #fffefa; box-shadow: 0 9px 26px #203a2808; }
.page-about .about-intro h2, .page-about .about-principle-card h2, .page-about .about-goals > h2 { color: #214632; letter-spacing: -.035em; }
.page-about .kbk-meaning-card, .page-about .about-principle-card, .page-about .about-goal-card { border: 1px solid #e5e8dc; border-radius: 16px; background: #fffefa; box-shadow: 0 8px 25px #203a2808; }
.page-about .kbk-meaning-card { position: relative; overflow: hidden; padding: 1.5rem; }
.page-about .kbk-meaning-card:nth-child(2) { background: #eff4e9; }
.page-about .kbk-letter { color: #438052; }
.page-about .about-purpose { margin-top: 1.3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 18px; background: #e9efe4; }
.page-about .about-purpose blockquote { margin-top: 1.2rem; padding: 1rem 1.2rem; border-left: 3px solid #c7aa50; border-radius: 0 11px 11px 0; background: #fffefa; color: #28503a; font-size: 1.15rem; font-weight: 800; }
.page-about .about-purpose blockquote span { display: block; color: #788375; font-size: .78rem; font-weight: 500; }
.page-about .about-principles { gap: 1rem; }
.page-about .about-principle-card { padding: 1.6rem; }
.page-about .about-goals > h2 { text-align: center; }
.page-about .about-contact, .editorial-cta { align-items: center; border: 0; border-radius: 17px; background: #1d4933; color: #fff; }
.page-about .about-contact h2, .page-about .about-contact p { color: #fff; }
.page-about .about-contact a { color: #f0dc98; }
.page-donate .donor-hero { background: radial-gradient(ellipse at 81% 50%, #6c7850 0, transparent 32%), linear-gradient(115deg, #214934, #496147 58%, #7d7842); }
.donor-hero-art, .progress-hero-art, .updates-hero-art, .assistance-hero-art, .contact-hero-art { position: relative; justify-self: center; width: min(100%, 370px); min-height: 270px; }
.donor-hero-art { display: grid; place-items: center; border: 1px solid #ffffff35; border-radius: 45% 55% 53% 47% / 52% 42% 58% 48%; background: radial-gradient(circle at 48% 45%, #eddd9e48, #eddd9e08 56%, transparent 57%); }
.donor-art-sticker { z-index: 2; display: grid; place-items: center; width: 170px; height: 170px; transform: rotate(-9deg); border: 5px solid #fff6d0; border-radius: 46% 54% 48% 52%; background: #e0c676; box-shadow: 0 18px 44px #15261955; color: #23442e; font-size: 2.2rem; font-weight: 950; line-height: .9; letter-spacing: -.06em; text-align: center; }
.donor-art-orbit { position: absolute; width: 240px; height: 240px; border: 1px dashed #e4d99c9c; border-radius: 50%; }
.donor-art-spark { position: absolute; top: 14%; right: 16%; color: #f0d984; font-size: 2.5rem; }
.donor-hero-art small { position: absolute; bottom: 12%; left: 9%; color: #e1e8d9; font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.page-donate .editorial-container { max-width: 1140px; }
.page-donate .about-goals-grid { gap: 1rem; }
.giving-card { position: relative; display: flex; flex-direction: column; min-height: 275px; padding: 1.4rem; }
.giving-number { position: absolute; top: 1rem; right: 1rem; color: #9ba596; font-size: .67rem; font-weight: 800; letter-spacing: .1em; }
.giving-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 1rem; border: 1px solid #dfe8d8; border-radius: 15px; background: #eff4e9; color: #356242; font-size: 1.35rem; font-weight: 800; }
.giving-card h2 { margin-bottom: .45rem; color: #234632; font-size: 1.15rem; }
.giving-card p { flex: 1; color: #677568; font-size: .87rem; line-height: 1.65; }
.giving-card > a { display: inline-flex; justify-content: space-between; gap: .8rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #e8eadf; color: #315d42; font-size: .81rem; font-weight: 750; text-decoration: none; }
.page-donate .editorial-cta { margin-top: 2rem; padding: 1.5rem 1.8rem; }
.page-donate .editorial-cta .eyebrow { color: #e2d394; }
.page-donate .editorial-cta h2 { color: #fff; }
.page-donate .editorial-cta p:not(.eyebrow) { color: #d3e0d6; }
.page-donate .editorial-cta > a { padding: .75rem 1rem; border-radius: 9px; background: #dfc477; color: #243b2c; font-weight: 800; text-decoration: none; }
.page-progress .progress-hero { background: radial-gradient(ellipse at 82% 50%, #4b704a 0, transparent 31%), linear-gradient(110deg, #193d2e, #36583d 62%, #475b38); }
.progress-hero-art { display: grid; place-items: center; min-height: 290px; }
.progress-hero-art::before, .progress-ring { position: absolute; content: ""; width: 245px; height: 245px; border: 1px solid #e2d59a6b; border-radius: 50%; box-shadow: 0 0 0 17px #ffffff08, 0 0 0 34px #ffffff05; }
.progress-ring { width: 195px; height: 195px; transform: rotate(-28deg) scaleY(.38); border-color: #ead78d; }
.progress-hero-art strong { z-index: 1; color: #fff; font-size: 2rem; line-height: .9; letter-spacing: -.04em; text-align: center; }
.progress-hero-art strong i { color: #dfc477; font-size: 1.35rem; font-style: normal; }
.progress-hero-art small { position: absolute; bottom: 3%; color: #d6e1d5; font-size: .59rem; font-weight: 750; letter-spacing: .15em; }
.page-progress .editorial-container > .stats-grid { gap: .85rem; margin: 0 0 1.2rem; }
.page-progress .editorial-container .stat-card { min-height: 137px; padding: 1.1rem; border: 1px solid #e3e7dc; border-left: 3px solid #63896b; border-radius: 14px; background: #fffefa; box-shadow: 0 7px 21px #1f392606; }
.page-progress .editorial-container .stat-value { color: #20452f; font-variant-numeric: tabular-nums; }
.page-progress .editorial-container > section { margin-top: 1.2rem; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid #e3e7dc; border-radius: 16px; background: #fffefa; box-shadow: 0 7px 21px #1f392606; }
.page-progress .transparency-chart { border-radius: 16px; }
.page-progress .transparency-chart h2 { color: #214632; }
.page-progress .public-privacy-note { padding: 1rem 1.15rem; border-left: 3px solid #c5a74c; border-radius: 0 11px 11px 0; background: #f0f1e8; color: #586757; }
.page-updates .updates-hero { background: radial-gradient(ellipse at 80% 50%, #5b714e 0, transparent 30%), linear-gradient(115deg, #183d2e, #314f38 65%, #655f39); }
.updates-hero-art { min-height: 300px; }
.updates-paper { position: absolute; top: 10%; left: 17%; width: 245px; height: 250px; border: 1px solid #ffffff46; border-radius: 13px; }
.paper-back { transform: rotate(11deg); background: #e3d28d; box-shadow: 0 18px 45px #14261945; }
.paper-front { display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; transform: rotate(-6deg); background: #f5f1dc; color: #1f432e; box-shadow: 0 18px 45px #14261945; }
.paper-front small { color: #6c795f; font-size: .57rem; font-weight: 800; letter-spacing: .11em; }
.paper-front strong { font-family: Georgia, serif; font-size: 2rem; line-height: 1.02; letter-spacing: -.04em; }
.paper-front i { align-self: flex-end; color: #b69b47; font-size: 1.8rem; font-style: normal; }
.page-updates .editorial-container { max-width: 1140px; }
.page-updates .updates-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.page-updates .updates-list > * { min-height: 190px; padding: 1.3rem; border: 1px solid #e3e7dc; border-radius: 16px; background: #fffefa; box-shadow: 0 8px 24px #203a2808; }
.page-assistance .assistance-hero { background: radial-gradient(ellipse at 83% 50%, #55764d 0, transparent 33%), linear-gradient(115deg, #183d2e, #375c40 65%, #806d3c); }
.assistance-promise { display: flex; align-items: center; gap: .75rem; margin-top: 1.3rem; padding: .8rem 1rem; border: 1px solid #ffffff2c; border-radius: 11px; background: #ffffff0d; color: #dce6dc; font-size: .75rem; }
.assistance-promise > span:first-child { color: #e0cc84; font-size: 1.3rem; }
.assistance-promise strong { color: #fff; }
.assistance-hero-art { display: grid; place-items: center; min-height: 285px; overflow: hidden; border: 1px solid #ffffff32; border-radius: 25px; background: #ffffff0a; }
.assistance-circle { position: absolute; width: 215px; height: 215px; border: 1px solid #f1e09b5e; border-radius: 48% 52% 60% 40%; }
.assistance-circle-a { transform: rotate(28deg); }
.assistance-circle-b { transform: rotate(-30deg) scale(.79); background: #e5d3881c; }
.assistance-sun { position: absolute; top: 12%; right: 17%; color: #e1cc7e; font-size: 2rem; }
.assistance-hero-art strong { z-index: 1; color: #fff; font-size: 1.8rem; line-height: 1.02; letter-spacing: -.04em; text-align: center; }
.assistance-hero-art small { position: absolute; bottom: 8%; color: #d4e1d6; font-size: .58rem; font-weight: 750; letter-spacing: .13em; }
.page-assistance .assistance-container { max-width: 920px; }
.page-assistance .public-assistance-request { padding: clamp(1.25rem, 3vw, 2.3rem); border: 1px solid #e2e6db; border-radius: 19px; background: #fffefa; box-shadow: 0 12px 36px #203a280b; }
.assistance-form-heading { max-width: 660px; margin-bottom: 1.25rem; }
.assistance-form-heading h2 { margin-bottom: .4rem; color: #214632; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.assistance-form-heading .transparency-intro { color: #667568; }
.request-privacy-details { margin: 1rem 0 1.3rem; padding: .75rem 1rem; border: 1px solid #e4e8dc; border-radius: 10px; background: #f6f7ef; }
.request-privacy-details summary { color: #31573d; font-size: .79rem; font-weight: 750; cursor: pointer; }
.request-privacy-details .request-storage-note { margin: .65rem 0 .1rem; }
.page-assistance .public-request-form { display: grid; gap: .85rem; }
.page-assistance .public-request-form .form-group { margin: 0; }
.page-assistance .public-request-form .form-control { border-color: #dfe5d9; border-radius: 10px; background: #fff; }
.page-assistance .public-request-form .btn { justify-self: start; min-height: 47px; padding: .7rem 1.2rem; border-radius: 10px; }
.page-contact .contact-hero { background: radial-gradient(ellipse at 82% 47%, #4c7452 0, transparent 33%), linear-gradient(112deg, #183d2e, #31583d 60%, #625f3a); }
.contact-hero-art { min-height: 275px; }
.contact-chat { position: absolute; display: block; padding: .85rem 1rem; border: 1px solid #ffffff43; border-radius: 14px; background: #f5f1dc; color: #244630; font-size: .9rem; font-weight: 750; box-shadow: 0 16px 34px #0b1b1050; }
.contact-chat i { margin-left: 1rem; color: #9f8641; font-size: 1.2rem; font-style: normal; }
.chat-one { top: 16%; left: 10%; transform: rotate(-7deg); }
.chat-two { top: 42%; right: 2%; transform: rotate(6deg); background: #dce8d4; }
.chat-three { bottom: 13%; left: 13%; transform: rotate(-3deg); background: #dfc477; }
.contact-hero-spark { position: absolute; top: 8%; right: 13%; color: #e1ce88; font-size: 2rem; }
.page-contact .contact-page-heading { margin-bottom: 1.1rem; text-align: center; }
.page-contact .contact-page-heading h2 { color: #214632; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.page-contact .contact-page-heading .transparency-intro { max-width: 620px; margin: .4rem auto 0; color: #68776b; }
.page-contact .contact-details-grid { gap: .9rem; margin-bottom: 1rem; }
.page-contact .contact-detail-card { padding: 1.2rem; border: 1px solid #e3e7dc; border-radius: 15px; background: #fffefa; box-shadow: 0 8px 24px #203a2808; }
.page-contact .contact-detail-card h2 { color: #234632; font-size: 1.05rem; }
.page-contact .contact-detail-card p { color: #69766a; font-size: .83rem; }
.page-contact .contact-email-link, .page-contact .public-text-link { color: #315d42; font-weight: 750; }
.page-contact .request-storage-note { margin: 1rem 0; padding: 1rem; border-radius: 11px; background: #ecefe5; color: #586757; }
.page-contact .contact-message-section { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #e3e7dc; border-radius: 17px; background: #fffefa; box-shadow: 0 9px 26px #203a2808; }
.page-contact .contact-message-section h2 { color: #214632; }
.page-contact .contact-message-section .public-request-form { display: grid; gap: .8rem; }
.page-contact .contact-message-section .form-group { margin: 0; }
.page-contact .contact-message-section .form-control { border-color: #dfe5d9; border-radius: 10px; }
.page-contact .contact-message-section .btn { justify-self: start; min-height: 46px; padding: .7rem 1.2rem; border-radius: 10px; }
/* Public page sidebar reference: mirror the home page's compact icon rail. */
.public-editorial-page.public-page-layout > .navbar { grid-column: 1; grid-row: 1; width: 250px; height: 100vh; padding: 1.5rem 1rem; border: 0; border-right: 1px solid #ffffff13; background: #173b2d; }
.public-editorial-page.public-page-layout > .navbar .navbar-container { gap: 1.5rem; }
.public-editorial-page.public-page-layout > .navbar .navbar-menu { align-items: stretch; flex-direction: column; justify-content: flex-start; gap: .5rem; overflow: visible; }
.public-editorial-page.public-page-layout > .navbar .navbar-menu > li { width: 100%; flex: 0 0 auto; }
.public-editorial-page.public-page-layout > .navbar .navbar-menu > li > a { display: flex; min-height: 58px; align-items: center; justify-content: flex-start; gap: .7rem; padding: .55rem .75rem; border: 1px solid transparent; border-radius: 12px; color: #dce5df; font-size: .88rem; font-weight: 700; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.public-editorial-page.public-page-layout > .navbar .navbar-menu > li > a:hover { transform: translateX(2px); background: #ffffff0d; color: #fff; }
.public-editorial-page.public-page-layout > .navbar .navbar-menu > li > a.active { border-color: #ffffff1b; background: #ffffff15; box-shadow: inset 3px 0 #dfc477; color: #fff; }
.public-editorial-page.public-page-layout > .navbar .brand-name { max-width: 155px; }
.public-editorial-page.public-page-layout > .navbar .public-nav-icon { width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; border: 1px solid #ffffffb8; border-radius: 10px; background: #f1f3ef; color: #25523a; box-shadow: 0 2px 6px #071a1020; }
.public-editorial-page.public-page-layout > .navbar .public-nav-icon svg { width: 1.25rem; height: 1.25rem; stroke-width: 1.9; }
.public-editorial-page.public-page-layout > .navbar .navbar-menu > li > a.active .public-nav-icon { border-color: #d8b64d; background: #214532; color: #fff; box-shadow: none; }
.editorial-hero-art, .donor-hero-art, .progress-hero-art, .updates-hero-art, .assistance-hero-art, .contact-hero-art { justify-self: end; }
.giving-card { padding-top: 4.4rem; }
.giving-number { top: 1.35rem; left: 1.4rem; right: auto; }
.giving-card .giving-icon { position: absolute; top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; margin: 0; border-radius: 12px; }
.giving-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1120px) {
    .public-editorial-page > .navbar .navbar-container { align-items: flex-start; flex-direction: column; gap: .65rem; }
    .public-editorial-page > .navbar .navbar-menu { width: 100%; flex: 0 0 auto; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
    .public-editorial-page > .navbar .navbar-menu > li { flex: 0 0 auto; }
}
@media (max-width: 760px) {
    .public-editorial-page.public-page-layout > .navbar { position: fixed; z-index: 1200; top: 0; bottom: 0; left: 0; width: min(86vw, 310px); height: 100dvh; padding: 1rem; transform: translateX(-105%); transition: transform .22s ease; }
    .public-editorial-page.public-page-layout.public-nav-open > .navbar { transform: translateX(0); }
    .public-editorial-page > .navbar { position: relative; padding: .65rem 1rem; }
    .public-editorial-page > .navbar .navbar-container { align-items: flex-start; flex-direction: column; gap: .65rem; }
    .public-editorial-page > .navbar .navbar-menu { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .1rem; }
    .public-editorial-page > .navbar .navbar-menu > li { flex: 0 0 auto; }
    .public-page-hero, .page-about .editorial-hero { grid-template-columns: 1fr; gap: 1.5rem; min-height: 0; padding: 2.6rem 1.4rem; }
    .public-page-hero h1 { font-size: clamp(2.7rem, 11vw, 4.1rem); }
    .donor-hero-art, .progress-hero-art, .updates-hero-art, .assistance-hero-art, .contact-hero-art { width: min(100%, 360px); min-height: 240px; }
    .editorial-hero-art { width: min(68vw, 270px); }
    .editorial-hero-art, .donor-hero-art, .progress-hero-art, .updates-hero-art, .assistance-hero-art, .contact-hero-art { justify-self: center; }
    .editorial-container { width: min(100% - 1.5rem, 1220px); }
}
@media (max-width: 520px) {
    .public-editorial-page > .navbar .brand-name { max-width: 230px; font-size: .8rem; }
    .public-editorial-page > .navbar .navbar-menu > li > a { padding: .45rem .62rem; font-size: .75rem; }
    .editorial-container { padding-top: 1.8rem; padding-bottom: 2.5rem; }
    .page-about .about-intro { padding: 1.2rem; }
    .page-about .about-principles, .page-about .kbk-meaning-grid, .page-about .about-goals-grid { grid-template-columns: 1fr; }
    .giving-card { min-height: 235px; }
    .page-assistance .public-assistance-request { padding: 1.1rem; }
    .page-assistance .public-request-form .form-row, .page-contact .contact-message-section .form-row { grid-template-columns: 1fr; }
    .page-assistance .public-request-form .btn, .page-contact .contact-message-section .btn { width: 100%; }
}

/* ================ DETAIL PASS: PUBLIC PAGE CARDS ================ */
.editorial-container { width: min(100% - 3rem, 1360px); max-width: 1360px; }
.page-about.public-page-layout .public-page-content main.container > .about-kbk,
.page-about.public-page-layout .public-page-content main.container > .about-principles,
.page-about.public-page-layout .public-page-content main.container > .about-goals { margin: 0 0 1.2rem; padding: 0; border: 0; background: transparent; box-shadow: none; }
.page-about .about-intro { position: relative; overflow: hidden; border-top: 3px solid #d6bc67; }
.page-about .about-intro::after { content: "BK"; position: absolute; right: 1.2rem; bottom: -3.7rem; color: #eef1e8; font-size: 9rem; font-weight: 900; letter-spacing: -.12em; line-height: 1; pointer-events: none; }
.page-about .about-intro > * { position: relative; z-index: 1; }
.page-about .kbk-meaning-grid { gap: 1rem; }
.page-about .kbk-meaning-card { min-height: 210px; padding: 1.4rem; transition: transform .2s ease, box-shadow .2s ease; }
.page-about .kbk-meaning-card:hover, .page-about .about-goal-card:hover, .page-about .about-flow-card:hover, .page-contact .contact-detail-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px #203a2814; }
.page-about .kbk-meaning-card::after { content: ""; position: absolute; right: -28px; bottom: -38px; width: 115px; height: 115px; border: 1px solid #315d4219; border-radius: 50%; box-shadow: 0 0 0 14px #315d4208, 0 0 0 28px #315d4205; }
.page-about .kbk-meaning-card:nth-child(2) { border-top: 3px solid #d3b451; }
.page-about .kbk-meaning-card:nth-child(3) { border-top: 3px solid #7ca589; }
.page-about .about-purpose { position: relative; overflow: hidden; border: 1px solid #dfe6d8; background: linear-gradient(120deg, #e9efe4, #f3f2e8); }
.page-about .about-purpose::after { content: "✳"; position: absolute; top: 1rem; right: 1.3rem; color: #8ca68b38; font-size: 6rem; line-height: 1; }
.page-about .about-purpose > * { position: relative; z-index: 1; }
.page-about .about-principles, .page-about .about-goals { padding: 0; border: 0; background: transparent; box-shadow: none; }
.page-about .about-principle-card { position: relative; min-height: 208px; overflow: hidden; padding: 1.5rem; border-top: 3px solid #6e9877; }
.page-about .about-principle-card:nth-child(2) { border-top-color: #ceb35b; background: #faf8ed; }
.about-principle-icon, .about-flow-icon, .contact-detail-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 1rem; border: 1px solid #dbe6d8; border-radius: 13px; background: #eff4e9; color: #315d42; }
.about-principle-icon svg, .about-flow-icon svg, .contact-detail-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-about .about-principle-card .eyebrow { margin-bottom: .4rem; }
.page-about .about-goals { margin-top: 1rem; }
.page-about .about-goals > .section-title { margin-bottom: 1rem; }
.page-about .about-goals-grid { counter-reset: kbk-goal; gap: 1rem; }
.page-about .about-goal-card { position: relative; min-height: 160px; padding: 1.35rem 1.2rem 1.2rem 4.2rem; border-left: 3px solid #679174; }
.page-about .about-goal-card::before { counter-increment: kbk-goal; content: "0" counter(kbk-goal); position: absolute; top: 1.25rem; left: 1.15rem; color: #c0a64d; font-size: .77rem; font-weight: 850; letter-spacing: .08em; }
.about-flow { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.6fr); gap: 1.3rem; align-items: stretch; margin: 1.2rem 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #e0e6d9; border-radius: 18px; background: linear-gradient(135deg, #1b4430, #2e5b3d); color: white; box-shadow: 0 12px 30px #203a2810; }
.about-flow-heading { align-self: center; }
.about-flow-heading .eyebrow { color: #e2cf86; }
.about-flow-heading h2 { margin: 0 0 .5rem; color: white; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: -.04em; }
.about-flow-heading > p:last-child { color: #d7e2d7; font-size: .84rem; }
.about-flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.about-flow-card { position: relative; min-height: 195px; padding: 1rem; border: 1px solid #ffffff25; border-radius: 13px; background: #ffffff0b; transition: transform .2s ease, background .2s ease; }
.about-flow-card:hover { background: #ffffff12; }
.about-flow-step { position: absolute; top: .85rem; right: .9rem; color: #e2cf86; font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.about-flow-icon { width: 38px; height: 38px; margin-bottom: 1.1rem; border-color: #ffffff22; background: #ffffff12; color: #e7d58e; }
.about-flow-icon svg { width: 20px; height: 20px; }
.about-flow-card h3 { margin-bottom: .38rem; color: white; font-size: .88rem; }
.about-flow-card p { color: #d2dfd4; font-size: .75rem; line-height: 1.5; }
.page-about.public-page-layout .public-page-content main.container > .about-contact-banner { margin-top: 1.2rem; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid #ffffff16; background: radial-gradient(circle at 90% 20%, #ffffff13, transparent 32%), #193f2d; }
.page-about .about-contact-banner > div::before { content: "A COMMUNITY THAT GIVES TOGETHER"; display: block; margin-bottom: .35rem; color: #dfc477; font-size: .64rem; font-weight: 800; letter-spacing: .14em; }
.page-about .about-contact-banner > a { padding: .65rem .9rem; border: 1px solid #dfc477; border-radius: 9px; background: #dfc477; color: #203b2b; font-weight: 800; text-decoration: none; }
.page-donate .giving-card { border-top: 3px solid #679174; }
.page-donate .giving-card:nth-child(2) { border-top-color: #d3b451; }
.page-donate .giving-card:nth-child(3) { border-top-color: #7d9b77; }
.page-donate .giving-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px #203a2814; }
.page-progress .editorial-section-heading { max-width: 820px; }
.page-progress .editorial-container > .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 1rem; }
.page-progress .editorial-container .transparency-chart { padding: 1.4rem; border: 1px solid #e1e6da; border-radius: 16px; background: #fffefa; }
.page-progress .transparency-progress progress { height: .7rem; accent-color: #43734e; }
.page-progress .public-campaigns .impact-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.page-progress .public-campaigns .impact-card, .page-progress .public-impact .impact-card { border: 1px solid #e3e7dc; border-radius: 14px; background: linear-gradient(145deg, #fffefa, #f8f8f1); }
.page-updates .updates-list .impact-card { position: relative; overflow: hidden; min-height: 180px; padding: 1.3rem 1.25rem 1.25rem 5rem; border-top: 3px solid #6d9878; transition: transform .2s ease, box-shadow .2s ease; }
.page-updates .updates-list .impact-card::before { content: "✳"; position: absolute; top: 1.25rem; left: 1.15rem; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid #dce7d8; border-radius: 13px; background: #eef3e8; color: #477453; font-size: 1.25rem; }
.page-updates .updates-list .impact-card:nth-child(3n + 2) { border-top-color: #d0b457; }
.page-updates .updates-list .impact-card:nth-child(3n + 2)::before { background: #f8f2dc; color: #9b813a; }
.page-updates .updates-list .impact-card:nth-child(3n) { border-top-color: #72948d; }
.page-updates .updates-list .impact-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px #203a2814; }
.page-updates .updates-list .impact-card h3 { color: #234632; }
.page-updates .updates-list .impact-card p { color: #68776b; }
.page-updates .updates-list .empty-table { grid-column: 1 / -1; min-height: auto; padding: 1.2rem; border: 1px dashed #bdcbb9; border-radius: 13px; background: #f5f6ef; color: #667568; }
.page-assistance.public-page-layout .public-page-content main.container > .public-assistance-request { border-top: 3px solid #6c9676; }
.page-assistance .public-request-form { max-width: none; }
.page-assistance .request-privacy-details[open] { border-color: #c8d6c5; background: #f1f5ed; }
.page-assistance .request-consent { padding: .8rem; border: 1px solid #e4e8dd; border-radius: 10px; background: #f7f8f2; }
.page-assistance .request-consent input { width: 1.1rem; height: 1.1rem; }
.page-contact.public-page-layout .public-page-content main.container > .contact-page { border: 0; background: transparent; box-shadow: none; padding: 0; }
.page-contact .contact-details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-contact .contact-detail-card { position: relative; min-height: 210px; padding: 1.15rem; border-top: 3px solid #6b9877; transition: transform .2s ease, box-shadow .2s ease; }
.page-contact .contact-detail-card:nth-child(2) { border-top-color: #d1b252; }
.page-contact .contact-detail-card:nth-child(3) { border-top-color: #779690; }
.contact-detail-icon { width: 39px; height: 39px; margin-bottom: .8rem; border-radius: 11px; }
.contact-detail-icon svg { width: 19px; height: 19px; }
.page-contact .contact-detail-card > a { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-contact .contact-message-section { margin-top: 1.2rem; border-top: 3px solid #d1b252; }

/* Prevent the shared white content-panel rule from washing out dark feature panels. */
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 2rem 0 0; padding: clamp(1.5rem, 3vw, 2.2rem);
    border: 1px solid #355f43; border-radius: 18px; background: radial-gradient(ellipse at 90% 20%, #ffffff17, transparent 36%), linear-gradient(115deg, #183d2d, #285239 68%, #394f36);
    color: #fff; box-shadow: 0 14px 32px #173b2d20;
}
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta h2 { margin: 0 0 .35rem; color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.25; }
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta p:not(.eyebrow) { margin: 0; color: #e4ece4; font-size: .95rem; line-height: 1.6; }
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta .eyebrow { margin-bottom: .35rem; color: #f0d98c; }
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta > a { display: inline-flex; min-height: 48px; flex: 0 0 auto; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1rem; border: 1px solid #ead58f; border-radius: 10px; background: #e1c775; color: #203a2a; font-size: .9rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta > a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #08190f40; }
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta > a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.page-about.public-page-layout .public-page-content main.container > .about-flow {
    display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.6fr); align-items: stretch; gap: 1.3rem;
    margin: 1.2rem 0; padding: clamp(1.35rem, 3vw, 2.1rem); border: 1px solid #3d694a; border-radius: 18px;
    background: radial-gradient(ellipse at 12% 8%, #ffffff12, transparent 32%), linear-gradient(125deg, #183d2d, #2b573b 72%, #31553a);
    color: #fff; box-shadow: 0 14px 32px #173b2d1c;
}
.page-about.public-page-layout .public-page-content main.container > .about-flow .about-flow-heading h2 { max-width: 330px; margin: 0 0 .55rem; color: #fff; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.17; }
.page-about.public-page-layout .public-page-content main.container > .about-flow .about-flow-heading > p:last-child { color: #e2ebe2; font-size: .92rem; line-height: 1.6; }
.page-about.public-page-layout .public-page-content main.container > .about-flow .about-flow-heading .eyebrow { color: #f0d98c; }
.page-about.public-page-layout .public-page-content main.container > .about-flow .about-flow-card { min-width: 0; padding: 1.05rem; border: 1px solid #ffffff36; border-radius: 14px; background: #ffffff12; }
.page-about.public-page-layout .public-page-content main.container > .about-flow .about-flow-card:hover { background: #ffffff1b; }
.page-about.public-page-layout .public-page-content main.container > .about-flow .about-flow-card h3 { margin: 0 0 .4rem; color: #fff; font-size: .94rem; line-height: 1.35; }
.page-about.public-page-layout .public-page-content main.container > .about-flow .about-flow-card p { color: #e0e9e1; font-size: .85rem; line-height: 1.58; }
.page-about.public-page-layout main.container > .about-flow .about-flow-icon { border-color: #ffffff40; background: #ffffff18; color: #ffdf83; }
.page-about.public-page-layout main.container > .about-flow .about-flow-step { color: #f4d878; }
@media (max-width: 900px) {
    .page-progress .editorial-container > .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-flow, .page-about.public-page-layout .public-page-content main.container > .about-flow { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .about-flow-grid { grid-template-columns: 1fr; }
    .about-flow-card { min-height: 145px; }
    .page-contact .contact-details-grid { grid-template-columns: 1fr; }
    .page-contact .contact-detail-card { min-height: auto; }
    .page-donate.public-page-layout .public-page-content main.container > .editorial-cta { align-items: flex-start; flex-direction: column; }
    .page-donate.public-page-layout .public-page-content main.container > .editorial-cta > a { width: 100%; }
}

/* ================ READABLE, CONSISTENT TYPOGRAPHY ================ */
:root { --kbk-font: "Segoe UI", Arial, sans-serif; --kbk-text: #34463a; --kbk-muted-text: #58685c; }
body, button, input, select, textarea { font-family: var(--kbk-font); }
body { font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--kbk-font); line-height: 1.2; }
p, li, label, input, select, textarea, button { line-height: 1.6; }
.public-editorial-page, .public-dashboard-page { color: var(--kbk-text); }
.public-editorial-page p, .public-dashboard-page p { color: var(--kbk-muted-text); }
.public-editorial-page .public-page-hero p, .public-editorial-page .editorial-hero p,
.public-dashboard-page .public-home-hero p { color: #e0e9e1; }
.public-editorial-page .public-page-hero h1, .public-editorial-page .editorial-hero h1,
.public-dashboard-page .public-home-hero h1 { font-family: var(--kbk-font); font-weight: 750; line-height: 1.08; letter-spacing: -.035em; }
.public-editorial-page .public-page-hero h1 em, .public-editorial-page .editorial-hero h1 em,
.public-dashboard-page .public-home-hero h1 em { font-family: inherit; font-style: normal; font-weight: inherit; }
.public-editorial-page .eyebrow, .public-dashboard-page .hero-badge { font-family: var(--kbk-font); font-size: .72rem; font-weight: 750; line-height: 1.4; letter-spacing: .12em; }
.public-editorial-page .navbar-menu > li > a, .public-dashboard-page .navbar-menu > li > a { font-size: .92rem; line-height: 1.35; }
.public-editorial-page .editorial-section-heading h2, .public-editorial-page .about-flow-heading h2,
.public-editorial-page .contact-page-heading h2 { font-family: var(--kbk-font); font-weight: 720; line-height: 1.2; letter-spacing: -.025em; }
.public-editorial-page .editorial-section-heading > p:last-child, .public-editorial-page .public-page-hero-copy > p:not(.eyebrow),
.public-editorial-page .about-intro p, .public-editorial-page .about-purpose p,
.public-editorial-page .about-principle-card > p:last-child, .public-editorial-page .about-goal-card p,
.public-editorial-page .about-flow-card p, .public-editorial-page .giving-card p,
.public-editorial-page .contact-detail-card p { font-size: .94rem; line-height: 1.68; }
.public-editorial-page .public-page-hero-copy > p:not(.eyebrow) { font-size: 1rem; }
.public-editorial-page .about-goal-card h3, .public-editorial-page .about-flow-card h3,
.public-editorial-page .giving-card h2, .public-editorial-page .contact-detail-card h2 { font-size: 1.02rem; line-height: 1.35; }
.public-editorial-page .stat-label, .public-dashboard-page .stat-label { font-size: .77rem; line-height: 1.4; }
.public-editorial-page .stat-sub, .public-dashboard-page .stat-sub { font-size: .8rem; line-height: 1.5; }
.public-editorial-page .form-group label, .public-editorial-page .request-consent { font-size: .88rem; line-height: 1.5; }
.public-editorial-page .request-storage-note, .public-editorial-page .request-privacy-details,
.public-editorial-page .public-request-form small, .public-editorial-page .public-privacy-note { font-size: .82rem; line-height: 1.6; }
.public-editorial-page .footer, .public-dashboard-page .footer { font-size: .82rem; line-height: 1.55; }

/* About page screenshot fixes: real two-column hero and clear KBK meaning cards. */
.page-about.public-page-layout .public-page-content main.container > .editorial-hero {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
    min-height: clamp(460px, 58vh, 650px); margin: 0; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 5rem);
    border: 0; border-radius: 0; background: radial-gradient(ellipse at 82% 48%, #396b4e 0, transparent 31%), linear-gradient(115deg, #183c2d, #214b37 58%, #183929);
    box-shadow: none; color: #fff; text-align: left;
}
.page-about .editorial-hero .hero-inner { width: 100%; max-width: 680px; margin: 0; }
.page-about .editorial-hero .hero-badge { color: #f4df9b; }
.page-about .editorial-hero h1 { max-width: 660px; color: #fff; font-size: clamp(2.45rem, 4.4vw, 4.35rem); line-height: 1.05; }
.page-about .editorial-hero p { max-width: 590px; margin: 0; color: #e0e9e1; font-size: 1rem; line-height: 1.65; }
.page-about .editorial-hero .editorial-hero-actions { align-items: center; }
.page-about .editorial-hero-art { position: relative; display: grid; place-items: center; justify-self: end; align-self: center; width: min(100%, 350px); aspect-ratio: 1; margin: 0; overflow: hidden; border: 1px solid #ffffff38; border-radius: 50%; background: radial-gradient(circle, #eff0d31c, #eff0d306 58%, transparent 59%); box-shadow: 0 0 0 18px #ffffff08, 0 0 0 40px #ffffff05; }
.page-about .editorial-hero-art img { display: block; width: 68%; height: 68%; margin: 0; object-fit: cover; object-position: center; border: 6px solid #fff; border-radius: 50%; box-shadow: 0 18px 48px #071b1240; }
.page-about .editorial-hero-art > span { right: 12%; bottom: 12%; z-index: 2; padding: .45rem .62rem; border: 2px solid #fff; background: #214b37; color: #f5df94; font-size: .52rem; }
.page-about .editorial-hero-art > i { top: 9%; right: 17%; }
.page-about .editorial-hero-art .about-logo-link { position: relative; z-index: 1; display: block; width: 68%; height: 68%; overflow: hidden; border: 6px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 18px 48px #071b1240; transition: transform .2s ease, box-shadow .2s ease; }
.page-about .editorial-hero-art .about-logo-link > img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center; border: 0; border-radius: 50%; box-shadow: none; }
.page-about .editorial-hero-art .about-logo-link:hover { transform: scale(1.035); box-shadow: 0 22px 54px #071b1255; }
.page-about .editorial-hero-art .about-logo-link:focus-visible { outline: 3px solid #e7d48f; outline-offset: 5px; }
.page-about .about-intro { padding: clamp(1.4rem, 3.5vw, 2.5rem); }
.page-about .about-intro::after { top: 50%; right: 2rem; bottom: auto; transform: translateY(-50%); color: #eff2e9; font-size: clamp(4rem, 8vw, 7rem); }
.page-about .about-intro .eyebrow { margin-bottom: .5rem; color: #73816c; }
.page-about .about-intro h2 { position: relative; z-index: 1; margin-bottom: .8rem; color: #214632; font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.18; }
.page-about .about-intro p { position: relative; z-index: 1; max-width: 850px; color: #526256; font-size: .98rem; line-height: 1.72; }
.page-about .kbk-meaning-grid { gap: 1rem; }
.page-about .kbk-meaning-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "icon title" "icon meaning" "copy copy"; align-content: start; align-items: center; column-gap: .85rem; row-gap: .1rem; min-height: 205px; padding: 1.35rem; border: 1px solid #e2e7dc; border-top: 3px solid #6d9878; border-radius: 16px; background: #fffefa; box-shadow: 0 9px 24px #203a2808; }
.page-about .kbk-meaning-card:nth-child(2) { border-top-color: #cfb257; background: #f7f7ef; }
.page-about .kbk-meaning-card:nth-child(3) { border-top-color: #7b9e8e; }
.page-about .kbk-letter { float: none; grid-area: icon; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #d9e5d7; border-radius: 14px; background: #edf3e9; color: #356442; }
.page-about .kbk-meaning-card:nth-child(2) .kbk-letter { border-color: #ece2bd; background: #f8f1dc; color: #8f7834; }
.page-about .kbk-meaning-card:nth-child(3) .kbk-letter { border-color: #dce8df; background: #edf4ef; color: #416c57; }
.page-about .kbk-letter svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-about .kbk-meaning-card h3 { grid-area: title; align-self: end; margin: 0; color: #244532; font-size: .98rem; letter-spacing: .045em; }
.page-about .kbk-meaning-card > strong { grid-area: meaning; align-self: start; color: #5d785f; font-size: .8rem; }
.page-about .kbk-meaning-card > p { grid-area: copy; margin-top: .95rem; color: #56665a; font-size: .9rem; line-height: 1.6; }
@media (max-width: 760px) {
    .page-about.public-page-layout .public-page-content main.container > .editorial-hero { grid-template-columns: 1fr; gap: 1.3rem; min-height: 0; padding: 2.3rem 1.4rem; }
    .page-about .editorial-hero-art { justify-self: center; width: min(74vw, 290px); }
}

/* Home dashboard: consistent, high-contrast cards for public impact and requests. */
.public-dashboard-page .public-dashboard-container { --home-green: #1d4935; --home-muted: #536458; --home-gold: #c8a744; }
.public-dashboard-page .public-dashboard-container > .public-data-status {
    padding: .8rem 1rem; border: 1px solid #d7e2d4; border-radius: 11px; background: #f1f6ee; color: #435a49; font-size: .87rem; line-height: 1.55;
}
.public-dashboard-page .public-summary-section,
.public-dashboard-page .public-dashboard-primary > section,
.public-dashboard-page .public-dashboard-secondary > section {
    min-width: 0; padding: clamp(1.15rem, 2vw, 1.65rem); border: 1px solid #e0e6dc; border-radius: 18px;
    background: linear-gradient(145deg, #fffefa 0%, #fbfcf7 100%); box-shadow: 0 10px 28px #1c39260a;
}
.public-dashboard-page .public-dashboard-columns { align-items: start; gap: 1.2rem; }
.public-dashboard-page .public-dashboard-primary,
.public-dashboard-page .public-dashboard-secondary { min-width: 0; gap: 1.15rem; }
.public-dashboard-page .public-dashboard-container .public-section-heading { align-items: flex-start; gap: 1rem; margin-bottom: 1.15rem; }
.public-dashboard-page .public-dashboard-container .public-section-heading > div { min-width: 0; }
.public-dashboard-page .public-dashboard-container .public-section-heading h2,
.public-dashboard-page .public-dashboard-container .section-title {
    margin: 0 0 .45rem; color: #1d4935; font-size: clamp(1.2rem, 1.8vw, 1.52rem); font-weight: 750; line-height: 1.3; letter-spacing: -.025em;
}
.public-dashboard-page .public-dashboard-container .public-section-heading p,
.public-dashboard-page .public-dashboard-container .transparency-intro {
    max-width: 72ch; margin: 0; color: #536458; font-size: .93rem; line-height: 1.65;
}
.public-dashboard-page .public-dashboard-container .public-section-heading > a,
.public-dashboard-page .public-dashboard-container .public-text-link {
    flex: 0 0 auto; color: #20583d; font-size: .88rem; font-weight: 700; text-underline-offset: 3px;
}
.public-dashboard-page .public-dashboard-container .stats-grid { gap: .8rem; }
.public-dashboard-page .public-dashboard-container .stat-card { min-width: 0; min-height: 122px; padding: 1rem; border-color: #e2e8dd; border-left-width: 3px; border-radius: 14px; }
.public-dashboard-page .public-dashboard-container .stat-label { gap: .55rem; color: #536458; font-size: .78rem; font-weight: 700; line-height: 1.4; }
.public-dashboard-page .public-dashboard-container .stat-value { overflow-wrap: anywhere; color: #183f2d; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.25; }
.public-dashboard-page .public-dashboard-container .stat-sub { color: #59685d; font-size: .8rem; line-height: 1.5; }
.public-dashboard-page .public-dashboard-container .public-stat-icon { flex: 0 0 auto; }
.public-dashboard-page .public-dashboard-container .impact-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: .8rem; margin-top: 1rem; }
.public-dashboard-page .public-dashboard-container .impact-card,
.public-dashboard-page .public-dashboard-container .public-distribution-card {
    min-width: 0; padding: 1.1rem; border: 1px solid #e1e7dc; border-top: 3px solid #6b9877; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px #203a2808;
}
.public-dashboard-page .public-dashboard-container .impact-card h3,
.public-dashboard-page .public-dashboard-container .public-distribution-card h3 { margin: .6rem 0 .4rem; color: #214832; font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; }
.public-dashboard-page .public-dashboard-container .impact-card > p,
.public-dashboard-page .public-dashboard-container .public-distribution-card > p { color: #536458; font-size: .9rem; line-height: 1.65; }
.public-dashboard-page .public-dashboard-container .campaign-progress,
.public-dashboard-page .public-dashboard-container .transparency-chart { margin-top: .9rem; padding: .9rem; border: 1px solid #e3e8dc; border-radius: 12px; background: #f6f8f1; }
.public-dashboard-page .public-dashboard-container .progress-label { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; color: #43574a; font-size: .84rem; line-height: 1.5; }
.public-dashboard-page .public-dashboard-container progress { display: block; width: 100%; height: .72rem; margin-top: .45rem; accent-color: #38714e; }
.public-dashboard-page .public-dashboard-container .campaign-deadline,
.public-dashboard-page .public-dashboard-container .chart-caption { margin: .45rem 0 0; color: #536458; font-size: .82rem; line-height: 1.55; }
.public-dashboard-page .public-dashboard-container .project-fund-summary { display: grid; gap: .5rem; margin: .9rem 0 0; }
.public-dashboard-page .public-dashboard-container .project-fund-summary > div { display: flex; justify-content: space-between; gap: .8rem; padding-top: .5rem; border-top: 1px solid #e8ece4; }
.public-dashboard-page .public-dashboard-container .project-fund-summary dt { color: #536458; font-size: .82rem; line-height: 1.5; }
.public-dashboard-page .public-dashboard-container .project-fund-summary dd { margin: 0; color: #214832; font-size: .86rem; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.public-dashboard-page .public-dashboard-container .transparency-stats { margin-top: .9rem; }
.public-dashboard-page .public-dashboard-container .transparency-chart h3 { margin: 0; color: #214832; font-size: .98rem; line-height: 1.4; }
.public-dashboard-page .public-dashboard-container .transparency-progress { margin-top: .85rem; }
.public-dashboard-page .public-dashboard-container .public-privacy-note { margin: .9rem 0 0; padding: .75rem .85rem; border-left: 3px solid #c6a84c; border-radius: 0 9px 9px 0; background: #f6f5eb; color: #536458; font-size: .81rem; line-height: 1.65; }
.public-dashboard-page .public-dashboard-container .impact-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: .9rem 0; padding: 0; list-style: none; }
.public-dashboard-page .public-dashboard-container .impact-flow > li { min-width: 0; padding: .65rem; border-radius: 10px; background: #f3f6ef; color: #526458; font-size: .76rem; line-height: 1.45; }
.public-dashboard-page .public-dashboard-container .impact-flow > li > strong { display: block; margin-bottom: .25rem; color: #1d4935; font-size: 1rem; font-variant-numeric: tabular-nums; }
.public-dashboard-page .public-dashboard-container .impact-flow span { display: block; }
.public-dashboard-page .public-dashboard-container .impact-outcomes { margin: .45rem 0 0; padding-left: 1rem; }
.public-dashboard-page .public-dashboard-container .impact-outcomes li { margin-top: .25rem; overflow-wrap: anywhere; }
.public-dashboard-page .public-dashboard-container .impact-expenses { padding-top: .65rem; border-top: 1px solid #e6eadf; }
.public-dashboard-page .public-dashboard-container .public-distribution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .8rem; margin-top: 1rem; }
.public-dashboard-page .public-dashboard-container .public-distribution-card { border-top-color: #c5a746; }
.public-dashboard-page .public-dashboard-container .public-distribution-card ul { margin: .75rem 0 0; padding: 0; list-style: none; }
.public-dashboard-page .public-dashboard-container .public-distribution-card li { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-top: 1px solid #e7ebe3; color: #536458; font-size: .84rem; line-height: 1.5; }
.public-dashboard-page .public-dashboard-container .public-distribution-card li strong { color: #214832; text-align: right; }
.public-dashboard-page .public-dashboard-container .public-need-card { padding: .9rem; border: 1px solid #e1e7dc; border-radius: 12px; background: #fff; }
.public-dashboard-page .public-dashboard-container .public-need-heading h3 { color: #214832; font-size: .94rem; line-height: 1.4; }
.public-dashboard-page .public-dashboard-container .public-need-card > p,
.public-dashboard-page .public-dashboard-container .public-need-progress { color: #536458; font-size: .82rem; line-height: 1.55; }
.public-dashboard-page .public-dashboard-container .public-need-status { flex: 0 0 auto; font-size: .72rem; font-weight: 750; }
.public-dashboard-page .public-dashboard-container .public-assistance-request { border-top: 3px solid #c7a94e; background: linear-gradient(155deg, #fffefa, #f7f7ef); }
.public-dashboard-page .public-dashboard-container .request-storage-note { padding: .8rem; border: 1px solid #e3e6db; border-radius: 10px; background: #f3f5ee; color: #4d5e51; font-size: .79rem; line-height: 1.65; overflow-wrap: anywhere; }
.public-dashboard-page .public-dashboard-container .request-storage-note a { color: #20583d; font-weight: 650; }
.public-dashboard-page .public-dashboard-container .public-request-form .form-group label,
.public-dashboard-page .public-dashboard-container .public-request-form .request-consent { color: #33483a; font-size: .85rem; font-weight: 650; line-height: 1.5; }
.public-dashboard-page .public-dashboard-container .public-request-form small { color: #526458; font-size: .78rem; line-height: 1.5; }
.public-dashboard-page .public-dashboard-container .public-request-form .form-control { min-height: 44px; border-color: #cbd6c9; background: #fff; color: #263a2d; font-size: .9rem; }
.public-dashboard-page .public-dashboard-container .public-request-form textarea.form-control { min-height: 112px; }
.public-dashboard-page .public-dashboard-container .public-request-form .form-control:focus-visible,
.public-dashboard-page .public-dashboard-container a:focus-visible,
.public-dashboard-page .public-dashboard-container button:focus-visible { outline: 3px solid #bd9b31; outline-offset: 3px; }
.public-dashboard-page .public-dashboard-container .empty-table { grid-column: 1 / -1; margin: 0; padding: 1rem; border: 1px dashed #cbd7c8; border-radius: 12px; background: #f7f8f3; color: #526458; font-size: .9rem; line-height: 1.6; }
@media (max-width: 700px) {
    .public-dashboard-page .public-dashboard-container { width: min(100% - 1.2rem, 1500px); padding-top: 1rem; }
    .public-dashboard-page .public-dashboard-container .public-section-heading { flex-direction: column; }
    .public-dashboard-page .public-dashboard-container .public-section-heading > a { align-self: flex-start; }
    .public-dashboard-page .public-dashboard-container .impact-flow { grid-template-columns: 1fr; }
    .public-dashboard-page .public-dashboard-container .stat-card { min-height: 108px; }
}
@media (prefers-reduced-motion: reduce) {
    .public-dashboard-page .public-dashboard-container *, .public-dashboard-page .public-dashboard-container *::before,
    .public-dashboard-page .public-dashboard-container *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared finish across public pages, sign-in, and every administrator screen. */
:root { --kbk-forest: #173b2d; --kbk-forest-mid: #24543b; --kbk-gold: #d9bd68; --kbk-ink: #253a2e; --kbk-readable-muted: #536458; }
body { color: var(--kbk-ink); font-size: 16px; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #bd9b31; outline-offset: 3px; }

/* Unclassified public pages use the same KBK forest green and gold identity. */
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar {
    padding: .7rem clamp(1rem, 3vw, 2rem); border-bottom: 0; background: var(--kbk-forest); box-shadow: 0 8px 22px #10291d20;
}
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-container { max-width: 1440px; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-brand { color: #fff; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .brand-name { max-width: 230px; color: #eff5ec; line-height: 1.3; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-menu { gap: .35rem; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-menu a { display: inline-flex; min-height: 40px; align-items: center; padding: .45rem .72rem; border-radius: 9px; color: #dce8dd; font-size: .88rem; font-weight: 650; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-menu a:hover,
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-menu a.active { background: #ffffff16; color: #fff; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .container { width: min(100% - 2rem, 1240px); max-width: 1240px; padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .section-title { margin: 0 0 .5rem; color: #1d4935; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.3; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .page-intro { max-width: 74ch; margin: 0 0 1.25rem; color: var(--kbk-readable-muted); font-size: .96rem; line-height: 1.7; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .category-card,
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .need-card,
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .leaderboard,
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .progress-card,
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .public-donation-list,
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .public-page-panel {
    border: 1px solid #e0e6dc; border-radius: 15px; background: #fffefa; box-shadow: 0 8px 24px #1b392509;
}
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .category-card { border-top: 3px solid #6b9877; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .category-card:nth-child(3n + 2) { border-top-color: #c8a744; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .category-name { color: #214832; font-size: 1.05rem; line-height: 1.4; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .category-desc,
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .need-card p { color: #536458; font-size: .9rem; line-height: 1.65; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .needs-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .need-card { background: #fffefa; }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .public-donation-list { padding: clamp(1rem, 2.5vw, 1.5rem); }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .progress-card { background: linear-gradient(135deg, #f6f6ed, #fffefa); }
body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) table { min-width: 640px; }

/* Shared admin shell, content cards, controls, tables, and status text. */
body[data-page="dashboard"] { background: #f3f5ef; color: var(--kbk-ink); }
body[data-page="dashboard"] .sidebar { background: var(--kbk-forest); color: #f4f7f1; }
body[data-page="dashboard"] .sidebar-brand { color: #fff; }
body[data-page="dashboard"] .sidebar-menu a { min-height: 43px; border: 1px solid transparent; border-radius: 10px; color: #dce8dd; font-size: .9rem; font-weight: 600; line-height: 1.4; }
body[data-page="dashboard"] .sidebar-menu a:hover { background: #ffffff12; color: #fff; }
body[data-page="dashboard"] .sidebar-menu a.active { border-color: #ffffff18; background: #ffffff17; color: #fff; box-shadow: inset 3px 0 var(--kbk-gold); }
body[data-page="dashboard"] .sidebar-menu .ui-icon { background: #f2f5ee; color: #24543b; box-shadow: none; }
body[data-page="dashboard"] .main-content { min-width: 0; color: var(--kbk-ink); }
body[data-page="dashboard"] .page-header { gap: 1rem; }
body[data-page="dashboard"] .page-header h1 { color: #1d4935; font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.25; }
body[data-page="dashboard"] .page-header h2 { color: #214832; line-height: 1.35; }
body[data-page="dashboard"] .page-header p { color: #536458; font-size: .9rem; line-height: 1.6; }
body[data-page="dashboard"] .section-block,
body[data-page="dashboard"] .dashboard-panel,
body[data-page="dashboard"] .dashboard-shortcuts,
body[data-page="dashboard"] .donor-contributions,
body[data-page="dashboard"] .dashboard-shortcut-grid > a {
    min-width: 0; border: 1px solid #e0e6dc; border-radius: 15px; background: #fffefa; box-shadow: 0 8px 24px #1b392509;
}
body[data-page="dashboard"] .section-block { padding: clamp(1rem, 2vw, 1.5rem); }
body[data-page="dashboard"] .page-header.compact { align-items: flex-start; }
body[data-page="dashboard"] .mini-stat { border: 1px solid #e2e7dc; border-left: 3px solid #6b9877; border-radius: 13px; background: #fffefa; }
body[data-page="dashboard"] .mini-stat.accent { border-left-color: #c8a744; }
body[data-page="dashboard"] .mini-stat strong { color: #1d4935; font-variant-numeric: tabular-nums; }
body[data-page="dashboard"] .mini-stat span, body[data-page="dashboard"] .mini-stat small { color: #536458; line-height: 1.5; }
body[data-page="dashboard"] .table-wrapper { max-width: 100%; overflow: auto; border: 1px solid #dfe5dc; border-radius: 12px; background: #fff; }
body[data-page="dashboard"] table { border-collapse: separate; border-spacing: 0; }
body[data-page="dashboard"] th { position: sticky; top: 0; background: #edf3eb; color: #294b35; font-size: .78rem; font-weight: 750; line-height: 1.45; }
body[data-page="dashboard"] td { color: #34463a; font-size: .86rem; line-height: 1.55; }
body[data-page="dashboard"] tbody tr:nth-child(even) { background: #fafbf7; }
body[data-page="dashboard"] .form-group label { color: #33483a; font-size: .85rem; font-weight: 650; line-height: 1.5; }
body[data-page="dashboard"] .form-control { min-height: 42px; border: 1px solid #cbd6c9; border-radius: 9px; background: #fff; color: #263a2d; font-size: .9rem; }
body[data-page="dashboard"] textarea.form-control { min-height: 100px; }
body[data-page="dashboard"] .form-control::placeholder { color: #727e74; opacity: 1; }
body[data-page="dashboard"] .btn { min-height: 40px; border-radius: 9px; font-size: .86rem; font-weight: 700; }
body[data-page="dashboard"] .btn-primary, body[data-page="dashboard"] .btn-accent { background: #d9bd68; color: #203a2b; }
body[data-page="dashboard"] .btn-primary:hover, body[data-page="dashboard"] .btn-accent:hover { background: #e4ca7b; }
body[data-page="dashboard"] .modal-content { border: 1px solid #dfe5dc; border-radius: 16px; background: #fffefa; box-shadow: 0 24px 70px #10291d38; }
body[data-page="dashboard"] .empty-table, body[data-page="dashboard"] .muted-text { color: #536458; line-height: 1.6; }

/* Keep every page comfortable on tablets and small screens. */
@media (max-width: 800px) {
    body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar { padding: .65rem .9rem; }
    body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-menu { justify-content: flex-start; }
    body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-menu a { padding: .4rem .55rem; font-size: .82rem; }
    body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .container { width: min(100% - 1.25rem, 1240px); }
    body[data-page="dashboard"] .page-header { align-items: flex-start; flex-direction: column; }
    body[data-page="dashboard"] .page-header > .btn, body[data-page="dashboard"] .page-header > .action-group { width: 100%; }
    body[data-page="dashboard"] .page-header > .action-group { display: flex; flex-wrap: wrap; gap: .5rem; }
}
@media (max-width: 560px) {
    body[data-page="dashboard"] .main-content { padding: 4.15rem .75rem 1rem; }
    body[data-page="dashboard"] .section-block { padding: .9rem; }
    body[data-page="dashboard"] .section-block > .page-header.compact { flex-direction: column; }
    body[data-page="dashboard"] .section-block > .page-header.compact > .btn,
    body[data-page="dashboard"] .section-block > .page-header.compact .form-group { width: 100%; }
    body[data-page="dashboard"] .stats-grid { grid-template-columns: 1fr; }
    body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-container { align-items: flex-start; }
    body[data-page="public"]:not(.public-editorial-page):not(.public-dashboard-page) .navbar-menu { flex-basis: 100%; margin-top: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Donor recognition on the public transparency page. */
.page-progress .recognition-section-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.page-progress .recognition-heading-icon { display: grid; width: 3rem; height: 3rem; flex: 0 0 3rem; place-items: center; border: 1px solid #e9dfb9; border-radius: 15px; background: #f8f3e3; color: #8d7430; }
.page-progress .recognition-heading-icon svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-progress .recognition-section-heading .eyebrow { margin: 0 0 .28rem; color: #83733d; font-size: .72rem; font-weight: 750; letter-spacing: .12em; line-height: 1.4; }
.page-progress .recognition-section-heading .section-title { margin: 0 0 .35rem; color: #1d4935; font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.25; }
.page-progress .recognition-section-heading .transparency-intro { margin: 0; color: #536458; font-size: .93rem; line-height: 1.65; }
.page-progress #publicDonorRecognition { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: .85rem; }
.page-progress #publicDonorRecognition .donor-recognition-card {
    display: flex; min-width: 0; min-height: 102px; align-items: center; justify-content: space-between; gap: .85rem; padding: .95rem 1rem;
    border: 1px solid #dfe7dc; border-top: 3px solid #6b9877; border-radius: 14px; background: linear-gradient(145deg, #fffefa, #f8faf5);
    box-shadow: 0 7px 20px #203a2808; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.page-progress #publicDonorRecognition .donor-recognition-card:hover { transform: translateY(-2px); border-color: #cddbcf; box-shadow: 0 12px 25px #203a2812; }
.page-progress .recognition-person { display: flex; min-width: 0; align-items: center; gap: .75rem; }
.page-progress .recognition-avatar,
.page-progress .recognition-contribution-icon { display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; }
.page-progress .recognition-avatar { width: 2.7rem; height: 2.7rem; border: 1px solid #d9e7da; background: #edf4ec; color: #356442; }
.page-progress .recognition-avatar svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-progress .recognition-person-copy { display: grid; min-width: 0; gap: .18rem; }
.page-progress .recognition-name { overflow-wrap: anywhere; color: #214832; font-size: .94rem; font-weight: 750; line-height: 1.4; }
.page-progress .recognition-person-copy small { color: #5d6b60; font-size: .73rem; line-height: 1.4; }
.page-progress .recognition-contribution { display: flex; max-width: 48%; align-items: center; gap: .5rem; padding: .48rem .62rem; border: 1px solid #ebe4cc; border-radius: 10px; background: #faf7ed; color: #5e532f; }
.page-progress .recognition-contribution-icon { width: 1.65rem; height: 1.65rem; background: #f0e7c9; color: #816d2e; }
.page-progress .recognition-contribution-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-progress .recognition-contribution > strong { overflow-wrap: anywhere; color: #4c452e; font-size: .85rem; font-variant-numeric: tabular-nums; line-height: 1.4; }
.page-progress #publicDonorRecognition > .empty-table { grid-column: 1 / -1; margin: 0; padding: 1rem 1.1rem; border: 1px dashed #cbd7c8; border-radius: 12px; background: #f7f8f3; color: #536458; line-height: 1.6; }
@media (max-width: 560px) {
    .page-progress .recognition-section-heading { gap: .75rem; }
    .page-progress .recognition-heading-icon { width: 2.6rem; height: 2.6rem; flex-basis: 2.6rem; border-radius: 12px; }
    .page-progress #publicDonorRecognition .donor-recognition-card { align-items: flex-start; flex-direction: column; }
    .page-progress .recognition-contribution { max-width: 100%; margin-left: 3.45rem; }
}

/* News and announcement cards use clear, recognizable event icons and labels. */
.page-updates .updates-section-heading { display: flex; align-items: flex-start; gap: 1rem; }
.page-updates .updates-section-heading > div { min-width: 0; }
.page-updates .updates-heading-icon { display: grid; width: 3rem; height: 3rem; flex: 0 0 3rem; place-items: center; border: 1px solid #d9e7da; border-radius: 14px; background: #edf4ec; color: #356442; }
.page-updates .updates-heading-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-updates .updates-section-heading .eyebrow { color: #526d58; }
.page-updates .updates-section-heading h2 { color: #1d4935; line-height: 1.25; }
.page-updates .updates-section-heading > div > p:last-child { max-width: 68ch; color: #536458; font-size: .95rem; line-height: 1.65; }
.page-updates .updates-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); gap: .9rem; }
.page-updates .updates-list .update-card { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); grid-template-areas: "icon label" "icon title" "body body"; align-content: start; align-items: center; column-gap: .8rem; row-gap: .15rem; min-height: 185px; padding: 1.2rem; border: 1px solid #dfe7dc; border-top: 3px solid #6b9877; border-radius: 15px; background: linear-gradient(145deg, #fffefa, #f8faf5); box-shadow: 0 8px 23px #203a2809; }
.page-updates .updates-list .update-card::before { content: none; }
.page-updates .updates-list .update-card:nth-child(3n + 2) { border-top-color: #c8a744; }
.page-updates .updates-list .update-card:nth-child(3n) { border-top-color: #72948d; }
.page-updates .update-card-icon { grid-area: icon; display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid #d9e7da; border-radius: 13px; background: #edf4ec; color: #356442; }
.page-updates .update-card-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-updates .update-card-upcoming .update-card-icon { border-color: #e9dfb9; background: #f8f3e3; color: #8d7430; }
.page-updates .update-card-distribution .update-card-icon { border-color: #dce6e2; background: #edf3f1; color: #47766d; }
.page-updates .update-card-label { grid-area: label; color: #617264; font-size: .7rem; font-weight: 750; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; }
.page-updates .updates-list .update-card h3 { grid-area: title; align-self: start; margin: .12rem 0 0; color: #214832; font-size: 1rem; line-height: 1.4; }
.page-updates .updates-list .update-card p { grid-area: body; margin: .85rem 0 0; padding-top: .75rem; border-top: 1px solid #e7ebe3; color: #536458; font-size: .91rem; line-height: 1.65; overflow-wrap: anywhere; }
.page-updates .updates-list .empty-table { grid-column: 1 / -1; }
@media (max-width: 560px) {
    .page-updates .updates-section-heading { gap: .75rem; }
    .page-updates .updates-heading-icon { width: 2.6rem; height: 2.6rem; flex-basis: 2.6rem; border-radius: 12px; }
}

/* Login refresh: compact, balanced, and easy to scan at common laptop heights. */
body[data-page="login"] { min-height: 100svh; background: #f1f2eb; }
body[data-page="login"] .login-page { display: flex; min-height: 100svh; align-items: center; justify-content: center; padding: clamp(.65rem, 2vw, 1.5rem); background: radial-gradient(ellipse at 12% 88%, #e4e1cf 0, transparent 34%), radial-gradient(ellipse at 90% 8%, #e3eee3 0, transparent 30%), #f4f5ef; }
body[data-page="login"] .login-card { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); width: min(100%, 1160px); min-height: min(680px, calc(100svh - 1.5rem)); border-color: #e2e7dc; border-radius: 24px; box-shadow: 0 25px 70px #203a2817; }
body[data-page="login"] .login-story { min-width: 0; padding: clamp(1.5rem, 3.1vw, 2.8rem); background: radial-gradient(ellipse at 83% 63%, #54805e 0, transparent 35%), linear-gradient(145deg, #153b2c, #20513a 58%, #183b2d); }
body[data-page="login"] .login-story::after { content: ""; position: absolute; right: -5.5rem; bottom: 7rem; width: 15rem; height: 15rem; border: 1px solid #ffffff1b; border-radius: 50%; box-shadow: 0 0 0 1.8rem #ffffff08, 0 0 0 3.8rem #ffffff05; pointer-events: none; }
body[data-page="login"] .login-story-copy { max-width: 450px; padding: 1.2rem 0; }
body[data-page="login"] .login-story-copy h1 { max-width: 450px; font-size: clamp(2.8rem, 4.35vw, 4.15rem); line-height: 1.02; letter-spacing: -.055em; }
body[data-page="login"] .login-story-copy h1 em { font-family: Georgia, serif; font-style: italic; }
body[data-page="login"] .login-story-copy > p:last-child { max-width: 350px; font-size: .96rem; line-height: 1.7; }
body[data-page="login"] .login-story-footer { max-width: 320px; font-size: .78rem; }
body[data-page="login"] .login-form-panel { min-width: 0; padding: clamp(1.6rem, 3.3vw, 3.1rem); }
body[data-page="login"] .login-form-content { max-width: 410px; }
body[data-page="login"] .login-form-content .login-eyebrow { color: #55795e; font-size: .7rem; letter-spacing: .13em; }
body[data-page="login"] .login-form-content h2 { color: #193f2e; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.16; }
body[data-page="login"] .login-form-content .subtitle { margin-bottom: 1.35rem; color: #59695d; font-size: .93rem; line-height: 1.6; }
body[data-page="login"] .login-form-content .form-group { margin-bottom: .9rem; }
body[data-page="login"] .login-form-content .form-group label { margin-bottom: .4rem; color: #2d4636; font-size: .85rem; }
body[data-page="login"] .login-input-wrap, body[data-page="login"] .login-password-field { position: relative; }
body[data-page="login"] .login-form-content .form-control { min-height: 50px; padding: .72rem .85rem .72rem 2.8rem; border: 1px solid #d5dfd3; border-radius: 11px; background: #fff; color: #263a2d; font-size: .94rem; }
body[data-page="login"] .login-form-content .form-control::placeholder { color: #77847a; opacity: 1; }
body[data-page="login"] .login-form-content .form-control:focus { border-color: #61856b; box-shadow: 0 0 0 4px #61856b1c; }
body[data-page="login"] .login-form-content .login-password-field .form-control { padding-right: 4.3rem; }
body[data-page="login"] .login-field-icon { position: absolute; top: 50%; left: .9rem; z-index: 1; display: grid; width: 1.2rem; height: 1.2rem; place-items: center; color: #64806b; transform: translateY(-50%); pointer-events: none; }
body[data-page="login"] .login-field-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="login"] .login-form-content .login-password-toggle { right: .65rem; min-width: 3rem; min-height: 36px; padding: .3rem .45rem; border-radius: 8px; color: #28563a; font-size: .82rem; font-weight: 750; }
body[data-page="login"] .login-form-content .login-password-toggle:hover { background: #f0f4ed; }
body[data-page="login"] .login-form-content .login-submit { min-height: 50px; margin-top: 1.1rem; border-radius: 11px; background: linear-gradient(100deg, #1c4933, #285c3e); box-shadow: 0 10px 22px #183c2c22; font-size: .94rem; }
body[data-page="login"] .login-form-content .login-submit:hover { background: #173d2d; box-shadow: 0 12px 25px #183c2c30; }
body[data-page="login"] .login-form-content .login-hint { margin-top: .8rem; color: #59695d; font-size: .82rem; line-height: 1.6; }
body[data-page="login"] .login-form-content .login-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: #28563a; font-size: .9rem; }
body[data-page="login"] .login-panel-footer { color: #68766b; font-size: .64rem; letter-spacing: .06em; }
body[data-page="login"] .login-story-spark { color: #e0ca7f; }
body[data-page="login"] .login-story-spark svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="login"] #loginSuccess, body[data-page="login"] #loginError { border-radius: 10px; font-size: .88rem; line-height: 1.55; }
@media (max-width: 760px) {
    body[data-page="login"] .login-page { align-items: flex-start; padding: .75rem; }
    body[data-page="login"] .login-card { grid-template-columns: 1fr; width: min(100%, 540px); min-height: 0; margin: auto; border-radius: 20px; }
    body[data-page="login"] .login-story { min-height: 225px; padding: 1.2rem 1.35rem; }
    body[data-page="login"] .login-story-copy { max-width: 100%; padding: 1.05rem 0 .5rem; }
    body[data-page="login"] .login-story-copy .login-eyebrow { margin-bottom: .45rem; }
    body[data-page="login"] .login-story-copy h1 { max-width: 450px; margin-bottom: .55rem; font-size: clamp(2.25rem, 8vw, 3rem); }
    body[data-page="login"] .login-story-copy > p:last-child { max-width: 390px; font-size: .85rem; }
    body[data-page="login"] .login-story-footer { display: none; }
    body[data-page="login"] .login-form-panel { padding: 1.45rem 1.35rem 1.1rem; }
    body[data-page="login"] .login-panel-footer { margin-top: 1.1rem; }
}
@media (max-height: 740px) and (min-width: 761px) {
    body[data-page="login"] .login-story { padding-top: 1.4rem; padding-bottom: 1.4rem; }
    body[data-page="login"] .login-story-copy { padding: .55rem 0; }
    body[data-page="login"] .login-story-copy h1 { font-size: clamp(2.7rem, 4vw, 3.55rem); }
    body[data-page="login"] .login-form-panel { padding-top: 1.4rem; padding-bottom: 1.4rem; }
    body[data-page="login"] .login-form-content .subtitle { margin-bottom: .9rem; }
    body[data-page="login"] .login-form-content .form-group { margin-bottom: .65rem; }
    body[data-page="login"] .login-form-content .login-hint { margin-top: .6rem; }
    body[data-page="login"] .login-form-content .login-back { margin-top: .75rem; }
}

/* Use the supplied glossy KBK letters as art for the three name meanings. */
.page-about .kbk-meaning-card {
    grid-template-columns: 118px minmax(0, 1fr); grid-template-areas: "icon title" "icon meaning" "copy copy";
    column-gap: 1rem; row-gap: .2rem; min-height: 250px; padding: 1.2rem; background: #fffefa;
}
.page-about .kbk-meaning-card:nth-child(2) { background: #f7f7ef; }
.page-about .kbk-meaning-card .kbk-letter-art {
    align-self: stretch; width: 118px; height: 164px; overflow: hidden; padding: 0; border: 1px solid #d8e0d3; border-radius: 14px;
    background: #eaf2e8; box-shadow: 0 7px 18px #203a2814;
}
.page-about .kbk-letter-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-about .kbk-meaning-card h3 { align-self: end; color: #1e4431; font-size: clamp(.82rem, 1.1vw, .96rem); letter-spacing: .06em; line-height: 1.35; overflow-wrap: anywhere; }
.page-about .kbk-meaning-card > strong { align-self: start; color: #526c57; font-size: .82rem; line-height: 1.45; }
.page-about .kbk-meaning-card > p { margin-top: .7rem; font-size: .91rem; line-height: 1.65; }
@media (max-width: 600px) {
    .page-about .kbk-meaning-card { grid-template-columns: 94px minmax(0, 1fr); min-height: 0; gap: .75rem; padding: .95rem; }
    .page-about .kbk-meaning-card .kbk-letter-art { width: 94px; height: 138px; border-radius: 12px; }
    .page-about .kbk-meaning-card > p { grid-area: copy; }
}

/* About KBK refresh: transparent source art and a clearer story-first layout. */
.page-about > .hero.about-hero { min-height: 470px; padding: clamp(2.4rem, 5.5vw, 5rem) clamp(1.25rem, 5vw, 5rem); }
.page-about .editorial-hero .hero-inner { max-width: 700px; }
.page-about .editorial-hero .hero-badge { border-color: #ffffff30; background: #ffffff0e; color: #eed98d; }
.page-about .editorial-hero h1 { max-width: 680px; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; letter-spacing: -.045em; }
.page-about .editorial-hero p { max-width: 590px; font-size: 1.02rem; }
.page-about .editorial-hero-actions > a { min-height: 48px; padding: .75rem 1.05rem; border: 1px solid #e4cc79; border-radius: 10px; background: #dfc477; color: #203a2a; font-weight: 800; text-decoration: none; }
.page-about .editorial-hero-actions > span { color: #dae5dc; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.page-about .editorial-hero-art { width: min(100%, 315px); }
.page-about .editorial-hero-art .about-logo-link { width: 72%; height: 72%; }
.page-about main.container { width: min(100% - 2.5rem, 1320px); max-width: 1320px; padding-top: 1.5rem; }
.page-about .about-kbk { display: grid; gap: 1.1rem; padding: 0; border: 0; background: transparent; }
.page-about .about-intro { padding: clamp(1.35rem, 3vw, 2.1rem); border: 1px solid #e2e7dc; border-left: 4px solid #c7a94e; border-radius: 17px; background: #fffefa; box-shadow: 0 8px 24px #203a2808; }
.page-about .about-intro::after { content: "KBK"; right: 1.3rem; color: #eef1e9; font-family: var(--kbk-font); font-size: clamp(4.5rem, 9vw, 7rem); font-weight: 850; letter-spacing: -.08em; }
.page-about .about-intro h2 { max-width: 700px; font-size: clamp(1.65rem, 2.8vw, 2.2rem); }
.page-about .about-intro p { max-width: 920px; font-size: .98rem; line-height: 1.75; }
.page-about .kbk-meaning-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.page-about .kbk-meaning-card {
    grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "icon title" "icon meaning" "copy copy";
    min-width: 0; min-height: 245px; padding: 1.05rem; column-gap: .8rem; row-gap: .15rem;
    border: 1px solid #e1e7dc; border-top: 3px solid #6b9877; border-radius: 16px; background: #fffefa; box-shadow: 0 8px 24px #203a2808;
}
.page-about .kbk-meaning-card:nth-child(2) { border-top-color: #c8a744; background: #f8f7ef; }
.page-about .kbk-meaning-card:nth-child(3) { border-top-color: #78988a; }
.page-about .kbk-meaning-card .kbk-letter-art { align-self: center; width: 104px; height: 158px; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.page-about .kbk-letter-art img { object-fit: contain; }
.page-about .kbk-meaning-card h3 { color: #204631; font-size: clamp(.76rem, .95vw, .91rem); line-height: 1.4; letter-spacing: .045em; }
.page-about .kbk-meaning-card > strong { color: #526d58; font-size: .8rem; line-height: 1.5; }
.page-about .kbk-meaning-card > p { margin-top: .45rem; color: #536458; font-size: .9rem; line-height: 1.65; }
.page-about .about-purpose { margin-top: .1rem; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid #dae3d6; border-radius: 17px; background: linear-gradient(125deg, #eef3e9, #f6f5eb); }
.page-about .about-purpose h3 { color: #214832; font-size: 1.3rem; }
.page-about .about-purpose p { max-width: 1000px; color: #506155; font-size: .96rem; line-height: 1.75; }
.page-about .about-purpose blockquote { position: relative; z-index: 1; color: #214832; }
.page-about .about-principles { gap: 1rem; }
.page-about .about-principle-card { min-width: 0; padding: clamp(1.1rem, 2.4vw, 1.6rem); border: 1px solid #e0e6dc; border-radius: 16px; background: #fffefa; box-shadow: 0 8px 24px #203a2808; }
.page-about .about-principle-card:first-child { border-top: 3px solid #6b9877; }
.page-about .about-principle-card:last-child { border-top: 3px solid #c8a744; }
.page-about .about-principle-card .eyebrow { color: #647768; font-size: .7rem; font-weight: 750; letter-spacing: .1em; }
.page-about .about-principle-card h2 { margin: 0 0 .45rem; font-size: 1.35rem; }
.page-about .about-principle-card > p:last-child { color: #536458; font-size: .94rem; line-height: 1.7; }
.page-about .about-flow { border: 1px solid #315d42; background: radial-gradient(circle at 92% 5%, #ffffff12, transparent 30%), linear-gradient(125deg, #173d2c, #2b573b); }
.page-about .about-flow-grid { gap: .8rem; }
.page-about .about-flow-card { min-width: 0; min-height: 205px; padding: 1rem; background: #ffffff10; }
.page-about .about-flow-card h3 { font-size: .92rem; }
.page-about .about-flow-card p { color: #e1e9df; font-size: .83rem; line-height: 1.6; }
.page-about .about-goals-grid { gap: .9rem; }
.page-about .about-goal-card { min-width: 0; padding: 1.2rem; border: 1px solid #e0e6dc; border-radius: 15px; background: #fffefa; box-shadow: 0 7px 21px #203a2808; }
.page-about .about-goal-card h3 { color: #214832; font-size: 1rem; line-height: 1.4; }
.page-about .about-goal-card p { color: #536458; font-size: .9rem; line-height: 1.65; }
@media (max-width: 1000px) {
    .page-about .kbk-meaning-grid { grid-template-columns: 1fr; }
    .page-about .kbk-meaning-card { grid-template-columns: 116px minmax(0, 1fr); min-height: 210px; }
    .page-about .kbk-meaning-card .kbk-letter-art { width: 112px; height: 160px; }
    .page-about .about-flow { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .page-about > .hero.about-hero { min-height: 0; }
    .page-about main.container { width: min(100% - 1.25rem, 1320px); }
    .page-about .kbk-meaning-card { grid-template-columns: 90px minmax(0, 1fr); min-height: 0; padding: .9rem; }
    .page-about .kbk-meaning-card .kbk-letter-art { width: 88px; height: 132px; }
    .page-about .about-principles, .page-about .about-goals-grid { grid-template-columns: 1fr; }
    .page-about .about-flow-grid { grid-template-columns: 1fr; }
    .page-about .about-flow-card { min-height: 150px; }
}

/* KBK artwork palette across public, admin, and sign-in pages. */
:root {
    color-scheme: light;
    --primary: #168568;
    --primary-dark: #124939;
    --accent: #efd23a;
    --accent-dark: #76640a;
    --success: #288a5d;
    --danger: #b44b73;
    --dark: #193b30;
    --gray: #52685f;
    --light: #eff8f6;
    --white: #fffefa;
    --panel-cream: #fffdf2;
    --panel-green: #eaf7ef;
    --panel-gold: #fff7d5;
    --panel-rose: #fff0f6;
    --border: #d8e8e3;
    --kbk-forest: #124638;
    --kbk-forest-mid: #1d6a4a;
    --kbk-cyan: #31bfce;
    --kbk-pink: #e777ad;
    --kbk-leaf: #38ad71;
    --kbk-sun: #efd23a;
    --kbk-paper: #fffefa;
    --kbk-surface: #f0f8f6;
    --kbk-ink: #193b30;
    --kbk-muted-text: #52685f;
}
body { background-color: var(--kbk-surface); color: var(--kbk-ink); }

/* Green stays the anchor; cyan and yellow carry the primary highlights. */
body[data-page="dashboard"] .sidebar { background: radial-gradient(ellipse at 0 0, #24836a 0, transparent 42%), linear-gradient(165deg, #104638, #123a32 78%); }
body[data-page="dashboard"] .sidebar-menu a.active { box-shadow: inset 3px 0 var(--kbk-sun); }
body[data-page="dashboard"] .sidebar-menu a:hover { border-color: #31bfce35; background: #31bfce16; }
body[data-page="dashboard"] .sidebar-menu .ui-icon { background: #e9f8f5; color: #176247; }
body[data-page="dashboard"] .main-content { background: radial-gradient(ellipse at 100% 0, #dff5f2 0, transparent 28%), #f0f6f3; }
body[data-page="dashboard"] .section-block,
body[data-page="dashboard"] .dashboard-panel,
body[data-page="dashboard"] .dashboard-shortcuts,
body[data-page="dashboard"] .donor-contributions,
body[data-page="dashboard"] .dashboard-shortcut-grid > a { border-color: #dce9e3; background-color: var(--kbk-paper); }
body[data-page="dashboard"] .page-header h1,
body[data-page="dashboard"] .page-header h2 { color: #164a37; }
body[data-page="dashboard"] .mini-stat { border-left-color: var(--kbk-leaf); }
body[data-page="dashboard"] .mini-stat.accent { border-left-color: var(--kbk-sun); }
body[data-page="dashboard"] .mini-stat.info { border-left-color: var(--kbk-cyan); }
body[data-page="dashboard"] .mini-stat.warning { border-left-color: var(--kbk-pink); }
body[data-page="dashboard"] th { background: #e8f5f1; color: #174c3a; }
body[data-page="dashboard"] tbody tr:nth-child(even) { background: #f7fbf9; }
body[data-page="dashboard"] .form-control:focus { border-color: #22a98d; box-shadow: 0 0 0 3px #31bfce30; }
body[data-page="dashboard"] .btn-primary,
body[data-page="dashboard"] .btn-accent { border-color: #dfc52d; background: var(--kbk-sun); color: #233b2e; }
body[data-page="dashboard"] .btn-primary:hover,
body[data-page="dashboard"] .btn-accent:hover { border-color: #d5bc29; background: #f5dc53; }
body[data-page="dashboard"] .btn-outline { border-color: #72afa0; color: #15523d; }
body[data-page="dashboard"] .badge-success { background: #e4f5e9; color: #216c47; }
body[data-page="dashboard"] .badge-pending { background: #fff5c8; color: #6e5c0a; }
body[data-page="dashboard"] .badge-danger { background: #fdeaf1; color: #963c60; }

/* Public headers and calls to action repeat the logo's cyan-to-green energy. */
.public-editorial-page > .navbar { background: linear-gradient(100deg, #103f34, #15533e 72%, #145340); }
.public-editorial-page > .navbar .navbar-menu > li > a.active,
.public-editorial-page > .navbar .navbar-menu > li > a:hover { border-color: #31bfce38; background: #31bfce1b; color: #fff; }
.public-editorial-page :is(.public-page-hero, .editorial-hero) {
    background: radial-gradient(ellipse at 80% 50%, #31bfce42 0, transparent 33%), radial-gradient(ellipse at 8% 100%, #38ad7130 0, transparent 38%), linear-gradient(115deg, #103f32, #19523a 62%, #164333);
}
.public-editorial-page .eyebrow { color: #5e7768; }
.public-editorial-page :is(.public-page-hero, .editorial-hero) .eyebrow { color: #f0d75b; }
.public-editorial-page .editorial-primary-link,
.page-about .editorial-hero-actions > a { border-color: #e0c52e; background: var(--kbk-sun); color: #213a2d; }
.public-editorial-page .editorial-primary-link:hover,
.page-about .editorial-hero-actions > a:hover { background: #f5df64; }
.public-editorial-page .public-page-content,
.public-editorial-page main.container { background-color: transparent; }
.public-editorial-page .stat-card,
.public-editorial-page .impact-card,
.public-editorial-page .giving-card,
.public-editorial-page .contact-detail-card,
.public-editorial-page .about-intro,
.public-editorial-page .about-principle-card,
.public-editorial-page .about-goal-card { border-color: #dce9e3; background-color: var(--kbk-paper); }
.public-editorial-page .stat-card:nth-child(4n + 2) { border-left-color: var(--kbk-cyan); }
.public-editorial-page .stat-card:nth-child(4n + 3) { border-left-color: var(--kbk-leaf); }
.public-editorial-page .stat-card:nth-child(4n) { border-left-color: var(--kbk-pink); }
.public-editorial-page .about-flow { background: radial-gradient(circle at 90% 5%, #31bfce2c, transparent 32%), linear-gradient(125deg, #124638, #1d6a4a); }
.public-editorial-page .about-flow-step { color: #f0d75b; }
.public-editorial-page .about-flow-icon { border-color: #31bfce5c; background: #31bfce20; color: #ffe45c; }
.public-editorial-page .about-contact,
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta { background: radial-gradient(ellipse at 90% 5%, #31bfce30, transparent 36%), linear-gradient(110deg, #124638, #1c6748); }
.public-editorial-page .about-contact > a,
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta > a { border-color: #dfc52d; background: var(--kbk-sun); color: #233b2e; }
.public-editorial-page .about-purpose { border-color: #d6e8df; background: linear-gradient(125deg, #e9f6ee, #eef8f6); }
.public-editorial-page .about-purpose blockquote { border-left-color: var(--kbk-sun); }
.public-editorial-page .about-principle-icon,
.public-editorial-page .about-flow-icon,
.public-editorial-page .contact-detail-icon { border-color: #cceae7; background: #e8f7f5; color: #14725d; }
.public-editorial-page .contact-detail-card:nth-child(2) { border-top-color: var(--kbk-sun); }
.public-editorial-page .contact-detail-card:nth-child(3) { border-top-color: var(--kbk-pink); }

body.public-dashboard-page { background: #eff7f5; }
.public-dashboard-page .public-sidebar { background: radial-gradient(ellipse at 0 0, #21816a 0, transparent 36%), linear-gradient(165deg, #104638, #123a32 80%); }
.public-dashboard-page .public-home-hero { background: radial-gradient(ellipse at 82% 48%, #31bfce38 0, transparent 33%), radial-gradient(ellipse at 8% 100%, #38ad7128 0, transparent 42%), linear-gradient(115deg, #103f32, #19523a 62%, #164333); }
.public-dashboard-page .public-home-hero .hero-badge { border-color: #31bfce54; background: #31bfce17; color: #f2da5b; }
.public-dashboard-page .public-home-hero .public-request-link { border-color: #e0c52f; background: var(--kbk-sun); color: #213a2d; }
.public-dashboard-page .public-home-hero .public-request-link:hover { background: #f5df64; }
.public-dashboard-page .public-home-hero .public-impact-link { border-color: #31bfce68; background: #31bfce14; color: #fff; }
.public-dashboard-page .public-home-hero .hero-art { border-color: #5ad0d1a0; background: radial-gradient(ellipse at 76% 25%, #f0d54170 0 5%, transparent 5.5%), radial-gradient(ellipse at 80% 34%, #31bfce2e 0 18%, transparent 18.5%), #ffffff0d; }
.public-dashboard-page .public-dashboard-container .public-stat-icon { border-color: #cceae5; background: #e9f7f4; color: #18765d; }
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n + 2) { border-left-color: var(--kbk-cyan); }
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n + 3) { border-left-color: var(--kbk-leaf); }
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n) { border-left-color: var(--kbk-pink); }
.public-dashboard-page .public-dashboard-container .transparency-chart,
.public-dashboard-page .public-dashboard-container .campaign-progress { background: #eef8f4; }
.public-dashboard-page .public-dashboard-container progress { accent-color: #179b78; }
.public-dashboard-page .public-dashboard-container .transparency-progress:last-child progress { accent-color: #32b6c4; }

/* Login panel borrows the same teal, leaf, yellow, and rose accents. */
body[data-page="login"] .login-page { background: radial-gradient(ellipse at 12% 88%, #eaf2d7 0, transparent 36%), radial-gradient(ellipse at 91% 8%, #d9f2ef 0, transparent 31%), #f1f7f5; }
body[data-page="login"] .login-story { background: radial-gradient(ellipse at 83% 62%, #31bfce48 0, transparent 36%), radial-gradient(ellipse at 5% 100%, #38ad7133 0, transparent 42%), linear-gradient(145deg, #103f32, #19523a 60%, #164333); }
body[data-page="login"] .login-story-copy .login-eyebrow { color: #f0d75b; }
body[data-page="login"] .login-story-copy h1 em { color: #f1d73e; }
body[data-page="login"] .login-story-spark { border-color: #31bfce7a; background: #31bfce19; color: #f1d73e; }
body[data-page="login"] .login-form-content .login-eyebrow { color: #167860; }
body[data-page="login"] .login-form-content h2 { color: #164a38; }
body[data-page="login"] .login-field-icon { color: #18856b; }
body[data-page="login"] .login-form-content .form-control:focus { border-color: #21a68a; box-shadow: 0 0 0 4px #31bfce30; }
body[data-page="login"] .login-form-content .login-password-toggle { color: #17634c; }
body[data-page="login"] .login-form-content .login-submit { background: linear-gradient(100deg, #124638, #1d6a4a); }
body[data-page="login"] .login-form-content .login-submit:hover { background: #103d32; }
body[data-page="login"] .login-form-content .login-back { color: #14654e; }
body[data-page="login"] :where(a, button, input):focus-visible { outline-color: var(--kbk-cyan); }

/* Bring the full UI closer to the logo's cyan, mint, leaf, pink, and sunny yellow. */
:root {
    --primary: #168568;
    --primary-dark: #124638;
    --accent: #efd942;
    --accent-dark: #6c5b08;
    --success: #278754;
    --dark: #193b30;
    --gray: #4e665b;
    --light: #f2f9f6;
    --border: #d8e9e1;
    --kbk-cyan: #35c6dd;
    --kbk-pink: #e889b5;
    --kbk-leaf: #36ae74;
    --kbk-sun: #f1dc45;
    --kbk-surface: #f2f9f6;
    --kbk-muted-text: #4e665b;
}
body { background: radial-gradient(ellipse at 2% 0, #39c8dd12, transparent 27%), radial-gradient(ellipse at 98% 0, #f1dc4514, transparent 30%), #f2f9f6; }

/* Let the brand colors show through the interface without coloring reading surfaces. */
body[data-page="dashboard"] .main-content,
body.public-dashboard-page .public-main,
.public-editorial-page .public-page-content {
    background-image: radial-gradient(ellipse at 100% 0, #f1dc4512, transparent 25%), radial-gradient(ellipse at 0 5%, #35c6dd12, transparent 28%);
}
body[data-page="dashboard"] .sidebar,
body.public-dashboard-page .public-sidebar,
.public-editorial-page > .navbar {
    background-image: radial-gradient(ellipse at 0 0, #35c6dd36, transparent 40%), radial-gradient(ellipse at 100% 100%, #e889b51c, transparent 38%), linear-gradient(160deg, #104638, #123a32 82%);
}
body[data-page="dashboard"] .sidebar-menu a.active,
body.public-dashboard-page .public-sidebar a.active { border-color: #f1dc4580; }
body[data-page="dashboard"] .sidebar-menu a:hover,
body.public-dashboard-page .public-sidebar a:hover { background-color: #35c6dd1c; }

.public-editorial-page :is(.public-page-hero, .editorial-hero),
.public-dashboard-page .public-home-hero,
body[data-page="login"] .login-story {
    background-image: radial-gradient(ellipse at 8% 10%, #35c6dd42, transparent 34%), radial-gradient(ellipse at 87% 4%, #f1dc4534, transparent 28%), radial-gradient(ellipse at 90% 100%, #e889b528, transparent 30%), linear-gradient(115deg, #103f32, #19523a 60%, #164333);
}
.public-editorial-page :is(.stat-card, .impact-card, .giving-card, .contact-detail-card, .about-intro, .about-principle-card, .about-goal-card),
body[data-page="dashboard"] :is(.section-block, .dashboard-panel, .dashboard-shortcuts, .donor-contributions, .dashboard-shortcut-grid > a),
.public-dashboard-page .public-dashboard-container :is(.stat-card, .transparency-chart, .campaign-progress) {
    box-shadow: 0 10px 26px #174a3710;
}
.public-editorial-page .stat-card:nth-child(4n + 1),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n + 1) { border-left-color: var(--kbk-leaf); }
.public-editorial-page .stat-card:nth-child(4n + 2),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n + 2) { border-left-color: var(--kbk-cyan); }
.public-editorial-page .stat-card:nth-child(4n + 3),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n + 3) { border-left-color: var(--kbk-sun); }
.public-editorial-page .stat-card:nth-child(4n),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n) { border-left-color: var(--kbk-pink); }
.public-editorial-page :is(.about-purpose, .transparency-chart, .campaign-progress) { background: linear-gradient(120deg, #eaf8f1, #eff9f8 55%, #fffbea); }
.public-editorial-page .about-intro { border-left-color: var(--kbk-cyan); }
.page-about .kbk-meaning-card:nth-child(1) { border-top-color: var(--kbk-pink); }
.page-about .kbk-meaning-card:nth-child(2) { border-top-color: var(--kbk-leaf); }
.page-about .kbk-meaning-card:nth-child(3) { border-top-color: var(--kbk-sun); }
.page-about .about-principle-card:first-child { border-top-color: var(--kbk-cyan); }
.page-about .about-principle-card:last-child { border-top-color: var(--kbk-pink); }
body[data-page="dashboard"] .btn-primary,
body[data-page="dashboard"] .btn-accent,
.public-editorial-page .editorial-primary-link,
.page-about .editorial-hero-actions > a { background: linear-gradient(105deg, #f1dc45, #f6e779); }
body[data-page="dashboard"] .form-control:focus,
body[data-page="login"] .login-form-content .form-control:focus { border-color: #28a9a0; box-shadow: 0 0 0 4px #35c6dd30; }
body[data-page="login"] .login-story-copy h1 em { color: #f4df57; }
body[data-page="login"] .login-story-spark { border-color: #e889b566; background: #e889b51c; color: #f1dc45; }

/* Final palette balance: green leads, pink supports, yellow marks highlights. */
:root {
    --primary: #176b4b;
    --primary-dark: #124638;
    --accent: #e889b5;
    --accent-dark: #8f4267;
    --success: #278754;
    --dark: #193b30;
    --gray: #4e665b;
    --light: #f2f8f3;
    --white: #fffefa;
    --border: #dce8dd;
    --kbk-forest: #124638;
    --kbk-forest-mid: #1d6a4a;
    --kbk-pink: #e889b5;
    --kbk-leaf: #36ae74;
    --kbk-sun: #f1dc45;
    --kbk-surface: #f3f8f2;
    --kbk-ink: #193b30;
    --kbk-muted-text: #4e665b;
}
body { color: #193b30; background: radial-gradient(ellipse at 0 0, #36ae7410, transparent 32%), #f3f8f2; }
body[data-page="dashboard"] .main-content,
body.public-dashboard-page .public-main,
.public-editorial-page .public-page-content {
    color: #193b30;
    background: radial-gradient(ellipse at 100% 0, #e889b50c, transparent 25%), #f3f8f2;
}
body[data-page="dashboard"] .sidebar,
body.public-dashboard-page .public-sidebar,
.public-editorial-page > .navbar {
    background: radial-gradient(ellipse at 100% 100%, #e889b51c, transparent 34%), linear-gradient(160deg, #124638, #174d37 78%);
}
.public-editorial-page :is(.public-page-hero, .editorial-hero),
.public-dashboard-page .public-home-hero,
body[data-page="login"] .login-story {
    background: radial-gradient(ellipse at 92% 8%, #e889b524, transparent 28%), linear-gradient(120deg, #124638, #1d6a4a 76%, #21583d);
}
body[data-page="dashboard"] .sidebar-menu a:hover,
body.public-dashboard-page .public-sidebar a:hover,
.public-editorial-page > .navbar .navbar-menu > li > a:hover { background-color: #e889b51c; }
body[data-page="dashboard"] .sidebar-menu a.active,
body.public-dashboard-page .public-sidebar a.active { box-shadow: inset 3px 0 #f1dc45; }

/* Primary actions use green with white labels; yellow remains a highlight. */
body[data-page="dashboard"] .btn-primary,
.public-editorial-page .editorial-primary-link,
.public-editorial-page .about-contact > a,
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta > a,
.page-about .editorial-hero-actions > a,
.public-dashboard-page .public-home-hero .public-request-link {
    border-color: #124638;
    background: #176b4b;
    color: #fff;
}
body[data-page="dashboard"] .btn-primary:hover,
.public-editorial-page .editorial-primary-link:hover,
.public-editorial-page .about-contact > a:hover,
.page-donate.public-page-layout .public-page-content main.container > .editorial-cta > a:hover,
.page-about .editorial-hero-actions > a:hover,
.public-dashboard-page .public-home-hero .public-request-link:hover { background: #124638; color: #fff; }
body[data-page="login"] .login-form-content .login-submit { background: #176b4b; color: #fff; }
body[data-page="login"] .login-form-content .login-submit:hover { background: #124638; color: #fff; }
body[data-page="dashboard"] .btn-accent { border-color: #dfc52d; background: #f1dc45; color: #193b30; }
body[data-page="dashboard"] :is(.page-header, .section-block, .dashboard-panel) :is(h1, h2, h3),
.public-editorial-page :is(h1, h2, h3),
.public-dashboard-page .public-dashboard-container :is(h1, h2, h3) { color: #193b30; }
.public-editorial-page .eyebrow,
.public-dashboard-page .public-dashboard-container .eyebrow { color: #4e665b; }
.public-editorial-page :is(.public-page-hero, .editorial-hero) .eyebrow,
.public-dashboard-page .public-home-hero .hero-badge { color: #f1dc45; }
.public-editorial-page .stat-card:nth-child(4n + 1),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n + 1) { border-left-color: #36ae74; }
.public-editorial-page .stat-card:nth-child(4n + 2),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n + 2) { border-left-color: #e889b5; }
.public-editorial-page .stat-card:nth-child(4n + 3),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n + 3) { border-left-color: #36ae74; }
.public-editorial-page .stat-card:nth-child(4n),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(4n) { border-left-color: #e889b5; }
.page-about .about-intro { border-left-color: #36ae74; }
.page-about .kbk-meaning-card:nth-child(1),
.page-about .about-principle-card:last-child { border-top-color: #e889b5; }
.page-about .kbk-meaning-card:nth-child(2),
.page-about .about-principle-card:first-child { border-top-color: #36ae74; }
.page-about .kbk-meaning-card:nth-child(3) { border-top-color: #f1dc45; }
.public-editorial-page :is(.about-principle-icon, .about-flow-icon, .contact-detail-icon),
.public-dashboard-page .public-dashboard-container .public-stat-icon { border-color: #d4e9da; background: #eaf5ec; color: #176b4b; }
.public-editorial-page .contact-detail-card:nth-child(3) { border-top-color: #e889b5; }
body[data-page="dashboard"] .form-control:focus,
body[data-page="login"] .login-form-content .form-control:focus { border-color: #278754; box-shadow: 0 0 0 3px #27875426; }
body[data-page="login"] :where(a, button, input):focus-visible { outline-color: #e889b5; }

/* Add layered color to the shared interface while keeping content easy to scan. */
body { background: linear-gradient(135deg, #f4f8ee 0%, #edf7f1 48%, #f5f7ed 100%); }
body[data-page="dashboard"] .main-content,
body.public-dashboard-page .public-main,
.public-editorial-page .public-page-content {
    background-image: radial-gradient(ellipse at 100% 0, #f1dc451c, transparent 27%), radial-gradient(ellipse at 0 18%, #36ae7410, transparent 32%), linear-gradient(150deg, #f5f8ef, #edf6f0 58%, #f5f7ee);
}
body[data-page="dashboard"] .section-block:nth-of-type(3n + 1),
body[data-page="dashboard"] .dashboard-panel:nth-of-type(3n + 1) { background-image: linear-gradient(130deg, #fffefa, #f0f8ef); }
body[data-page="dashboard"] .section-block:nth-of-type(3n + 2),
body[data-page="dashboard"] .dashboard-panel:nth-of-type(3n + 2) { background-image: linear-gradient(130deg, #fffefa, #fff8e2); }
body[data-page="dashboard"] .section-block:nth-of-type(3n),
body[data-page="dashboard"] .dashboard-panel:nth-of-type(3n) { background-image: linear-gradient(130deg, #fffefa, #fff2f7); }
.public-editorial-page :is(.stat-card, .impact-card, .giving-card, .contact-detail-card, .about-principle-card, .about-goal-card),
.public-dashboard-page .public-dashboard-container .stat-card {
    background-image: linear-gradient(145deg, #fffefa 50%, #f2f8ef);
}
.public-editorial-page :is(.stat-card:nth-child(3n + 2), .giving-card:nth-child(3n + 2), .about-goal-card:nth-child(3n + 2)),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(3n + 2) {
    background-image: linear-gradient(145deg, #fffefa 48%, #fff7e2);
}
.public-editorial-page :is(.stat-card:nth-child(3n), .giving-card:nth-child(3n), .about-goal-card:nth-child(3n)),
.public-dashboard-page .public-dashboard-container .stat-card:nth-child(3n) {
    background-image: linear-gradient(145deg, #fffefa 48%, #fff1f6);
}
body[data-page="dashboard"] .sidebar-menu .ui-icon,
.public-dashboard-page .public-sidebar .ui-icon,
.public-editorial-page :is(.about-principle-icon, .about-flow-icon, .contact-detail-icon),
.public-dashboard-page .public-dashboard-container .public-stat-icon {
    box-shadow: 0 4px 12px #193b3010;
}
.public-editorial-page .contact-detail-card:nth-child(odd) .contact-detail-icon { border-color: #d3ead8; background: #eaf5ec; color: #176b4b; }
.public-editorial-page .contact-detail-card:nth-child(even) .contact-detail-icon { border-color: #f1d6e2; background: #fff0f6; color: #9a4c71; }
.public-editorial-page :is(.about-purpose, .transparency-chart, .campaign-progress) { border-color: #dbe7d8; background: linear-gradient(120deg, #eaf6eb, #eef8f3 52%, #fff8e2); }
.public-editorial-page .about-flow { background: radial-gradient(ellipse at 92% 0, #e889b539, transparent 30%), radial-gradient(ellipse at 4% 100%, #f1dc4520, transparent 34%), linear-gradient(125deg, #124638, #1d6a4a); }
body[data-page="dashboard"] tr:hover,
.public-editorial-page tbody tr:hover,
.public-dashboard-page tbody tr:hover { background-color: #edf7ef; }
body[data-page="dashboard"] .badge-pending { background: #fff4bd; color: #65550b; }
body[data-page="dashboard"] .badge-danger { background: #fcebf2; color: #8f4267; }
.public-editorial-page .eyebrow { color: #42634f; }
.public-editorial-page :is(.section-heading, .content-heading) { text-decoration-color: #e889b5; }
body[data-page="login"] .login-page { background: radial-gradient(ellipse at 0 100%, #36ae741c, transparent 35%), radial-gradient(ellipse at 100% 0, #f1dc4524, transparent 29%), #f4f8ee; }
body[data-page="login"] .login-form-content { background-image: linear-gradient(150deg, #fffefa, #fffefa 72%, #eff7ef); }
body[data-page="login"] .login-form-content .login-eyebrow { color: #176b4b; }
body[data-page="login"] .login-story { background-image: radial-gradient(ellipse at 88% 5%, #e889b535, transparent 30%), radial-gradient(ellipse at 2% 96%, #f1dc4520, transparent 36%), linear-gradient(125deg, #124638, #1d6a4a 78%); }

/* Replace repeated decorative patterns with quieter, page-specific compositions. */
.public-page-hero::before,
.public-dashboard-page .public-home-hero::before,
body[data-page="login"] .login-story::before { background-image: none; opacity: 0; }
.public-editorial-page :is(.public-page-hero, .editorial-hero),
.public-dashboard-page .public-home-hero {
    background-image: radial-gradient(ellipse at 88% 12%, #286948 0, transparent 32%), linear-gradient(118deg, #164a35, #1c5b3d 70%, #174831);
}

/* Home: a clear editorial feature panel, without the planet-and-orbit motif. */
.public-dashboard-page .public-home-hero .hero-art {
    min-height: 295px;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid #ffffff32;
    border-left: 4px solid #e889b5;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff10, #ffffff06 65%, #f1dc4510);
    box-shadow: 0 22px 50px #082b1c25;
}
.public-dashboard-page .public-home-hero .hero-art::before { display: none; }
.public-dashboard-page .public-home-hero .hero-orbit { display: none; }
.public-dashboard-page .public-home-hero .hero-art-copy { max-width: 370px; }
.public-dashboard-page .public-home-hero .hero-art-copy span { color: #efc5d8; }
.public-dashboard-page .public-home-hero .hero-art-copy strong { max-width: 360px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.08; }
.public-dashboard-page .public-home-hero .hero-art-mark { color: #f1dc45; }

/* Donate: make the central mark feel like a printed campaign seal. */
.page-donate .donor-hero { background-image: linear-gradient(115deg, #164a35, #1b5a3b 72%, #244f34); }
.page-donate .donor-hero-art {
    min-height: 290px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff0c, #ffffff04);
}
.page-donate .donor-art-orbit,
.page-donate .donor-art-spark { display: none; }
.page-donate .donor-art-sticker {
    display: grid;
    place-content: center;
    width: 184px;
    aspect-ratio: 1;
    border: 8px solid #fff8df;
    border-radius: 50%;
    background: #f1dc45;
    color: #164a35;
    font-size: 2rem;
    line-height: .95;
    letter-spacing: -.06em;
    text-align: center;
    transform: rotate(-5deg);
    box-shadow: 0 15px 35px #082b1c30;
}
.page-donate .donor-hero-art small { left: auto; right: 8%; bottom: 12%; color: #edf3e9; text-align: right; }

/* Progress: use a tidy bar chart as its visual cue instead of orbit rings. */
.page-progress .progress-hero { background-image: linear-gradient(115deg, #164a35, #1b5a3b 72%, #244f34); }
.page-progress .progress-hero-art {
    min-height: 280px;
    overflow: hidden;
    border: 1px solid #ffffff24;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff0b, #ffffff03);
}
.page-progress .progress-hero-art::before {
    width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none;
    background:
        linear-gradient(to top, #e889b5 0 35%, transparent 35%) 18% 100% / 34px 58% no-repeat,
        linear-gradient(to top, #36ae74 0 58%, transparent 58%) 34% 100% / 34px 72% no-repeat,
        linear-gradient(to top, #f1dc45 0 77%, transparent 77%) 50% 100% / 34px 86% no-repeat,
        linear-gradient(to top, #36ae74 0 48%, transparent 48%) 66% 100% / 34px 66% no-repeat,
        linear-gradient(to top, #e889b5 0 68%, transparent 68%) 82% 100% / 34px 82% no-repeat;
    opacity: .68;
}
.page-progress .progress-ring { display: none; }
.page-progress .progress-hero-art strong { padding: .35em .55em; border-radius: 12px; background: #164a35e8; font-size: 1.75rem; line-height: 1; }
.page-progress .progress-hero-art strong i { color: #f1dc45; }
.page-progress .progress-hero-art small { bottom: 1.1rem; z-index: 1; }

/* Get Help: one grounded message panel, with a single soft shape. */
.page-assistance .assistance-hero { background-image: linear-gradient(115deg, #164a35, #1b5a3b 72%, #244f34); }
.page-assistance .assistance-hero-art {
    min-height: 280px;
    border: 1px solid #ffffff2b;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff0c, #ffffff03);
}
.page-assistance .assistance-circle-b,
.page-assistance .assistance-sun { display: none; }
.page-assistance .assistance-circle-a { width: 175px; height: 175px; border-color: #e889b55e; border-radius: 50%; transform: translate(-75px, -20px); }
.page-assistance .assistance-hero-art strong { max-width: 310px; padding: 1.2rem 1.5rem; border-radius: 12px; background: #f4f5eb; color: #164a35; font-size: 1.7rem; line-height: 1.08; text-align: left; box-shadow: 0 12px 28px #082b1c22; }
.page-assistance .assistance-hero-art small { color: #e8efe8; }

/* Contact: line up message notes like an intentional editorial stack. */
.page-contact .contact-hero { background-image: linear-gradient(115deg, #164a35, #1b5a3b 72%, #244f34); }
.page-contact .contact-hero-art { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .8rem; min-height: 285px; padding: 1rem 1.5rem; }
.page-contact .contact-chat {
    position: relative;
    inset: auto;
    width: min(100%, 300px);
    padding: .85rem 1rem;
    border: 1px solid #ffffff55;
    border-radius: 10px;
    background: #f4f5eb;
    color: #193b30;
    font-size: .86rem;
    font-weight: 700;
    box-shadow: 0 8px 20px #082b1c20;
    transform: none;
}
.page-contact .contact-chat:nth-child(2) { align-self: flex-end; background: #e8f3e8; }
.page-contact .contact-chat:nth-child(3) { background: #f1dc45; }
.page-contact .contact-chat i { color: #a2577a; }
.page-contact .contact-hero-spark { display: none; }
@media (max-width: 760px) {
    .page-donate .donor-hero-art,
    .page-progress .progress-hero-art,
    .page-assistance .assistance-hero-art,
    .page-contact .contact-hero-art { width: 100%; max-width: 440px; }
    .page-contact .contact-hero-art { padding-inline: .25rem; }
}

/* KBK lettering: clean, oversized graphic-tee initials with clear definitions. */
.page-about .kbk-meaning-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.page-about .kbk-meaning-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "initial" "title" "meaning" "copy";
    align-content: start;
    min-height: 390px;
    padding: 1rem;
    border: 1px solid #dce8dd;
    border-radius: 14px;
    background: #fffefa;
    box-shadow: 0 8px 22px #193b300c;
}
.page-about .kbk-meaning-card::after { display: none; }
.page-about .kbk-meaning-card .kbk-letter-art {
    position: relative;
    grid-area: initial;
    display: grid;
    place-items: center;
    align-self: auto;
    width: 100%;
    height: 205px;
    margin: 0 0 1.05rem;
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: #eaf3e9;
}
.page-about .kbk-meaning-card .kbk-letter-art img { display: none; }
.page-about .kbk-meaning-card .kbk-letter-art::before {
    content: "01 / K";
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #315c43;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.page-about .kbk-meaning-card .kbk-letter-art::after {
    content: "K";
    color: #176b4b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(7rem, 12vw, 9rem);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.1em;
    transform: translateX(-.06em);
}
.page-about .kbk-meaning-card:nth-child(2) .kbk-letter-art { background: #176b4b; }
.page-about .kbk-meaning-card:nth-child(2) .kbk-letter-art::before { color: #e7f0e5; }
.page-about .kbk-meaning-card:nth-child(2) .kbk-letter-art::after { content: "B"; color: #fffefa; }
.page-about .kbk-meaning-card:nth-child(3) .kbk-letter-art { background: #f7f0d2; }
.page-about .kbk-meaning-card:nth-child(3) .kbk-letter-art::before { color: #6b5b21; }
.page-about .kbk-meaning-card:nth-child(3) .kbk-letter-art::after { color: #176b4b; }
.page-about .kbk-meaning-card h3 {
    grid-area: title;
    margin: 0 0 .25rem;
    color: #193b30;
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: .055em;
}
.page-about .kbk-meaning-card > strong { grid-area: meaning; color: #54705b; font-size: .82rem; }
.page-about .kbk-meaning-card > p { grid-area: copy; margin: .65rem 0 0; color: #4e665b; font-size: .88rem; line-height: 1.6; }
@media (max-width: 1000px) {
    .page-about .kbk-meaning-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .page-about .kbk-meaning-card { min-height: 360px; }
    .page-about .kbk-meaning-card .kbk-letter-art { height: 170px; }
}
@media (max-width: 700px) {
    .page-about .kbk-meaning-grid { grid-template-columns: 1fr; }
    .page-about .kbk-meaning-card {
        grid-template-columns: 86px minmax(0, 1fr);
        grid-template-areas: "initial title" "initial meaning" "copy copy";
        align-items: center;
        min-height: 0;
        column-gap: 1rem;
        padding: .9rem;
    }
    .page-about .kbk-meaning-card .kbk-letter-art { height: 92px; margin: 0; }
    .page-about .kbk-meaning-card .kbk-letter-art::before { top: .35rem; left: .45rem; font-size: .48rem; }
    .page-about .kbk-meaning-card .kbk-letter-art::after { font-size: 4.4rem; }
    .page-about .kbk-meaning-card > p { margin-top: .8rem; }
}

/* Shared design system for public pages, admin workspaces, and sign-in. */
:root {
    --primary: #176b4b;
    --primary-dark: #124638;
    --accent: #e889b5;
    --accent-dark: #8f4267;
    --dark: #193b30;
    --gray: #4e665b;
    --light: #f3f8f2;
    --white: #fffefa;
    --border: #dce8dd;
    --kbk-forest: #124638;
    --kbk-forest-mid: #1d6a4a;
    --kbk-pink: #e889b5;
    --kbk-leaf: #36ae74;
    --kbk-sun: #f1dc45;
    --kbk-surface: #f3f8f2;
    --kbk-ink: #193b30;
    --kbk-muted-text: #4e665b;
}
body {
    font-family: "Segoe UI", Aptos, Arial, sans-serif;
    color: #193b30;
    font-size: 16px;
    line-height: 1.6;
    background: #f3f8f2;
}
body :where(h1, h2, h3, h4) { color: #193b30; font-family: "Segoe UI", Aptos, Arial, sans-serif; line-height: 1.2; }
body :where(p, li, label, th, td, input, select, textarea, button, a) { font-family: inherit; }
body :where(p, li) { line-height: 1.65; }
body :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #e889b5; outline-offset: 3px; }

/* Admin: consistent page headings, calm panels, and readable data tables. */
body[data-page="dashboard"] .main-content { background: linear-gradient(145deg, #f4f8f1, #edf5ef 60%, #f6f6ed); }
body[data-page="dashboard"] .page-header h1,
body[data-page="dashboard"] .page-header h2 { color: #193b30; line-height: 1.2; letter-spacing: -.025em; }
body[data-page="dashboard"] .page-header p { color: #52685b; font-size: .92rem; line-height: 1.6; }
body[data-page="dashboard"] :is(.section-block, .dashboard-panel, .dashboard-shortcuts, .donor-contributions) {
    border: 1px solid #dce8dd;
    border-radius: 14px;
    background: #fffefa;
    box-shadow: 0 8px 22px #193b3009;
}
body[data-page="dashboard"] .sidebar { background: linear-gradient(165deg, #124638, #174d37 78%); }
body[data-page="dashboard"] .sidebar-menu a { color: #e8f0e9; font-weight: 650; }
body[data-page="dashboard"] .sidebar-menu a.active { border-left: 3px solid #f1dc45; background: #ffffff12; }
body[data-page="dashboard"] .sidebar-menu a:hover { background: #e889b51c; }
body[data-page="dashboard"] :where(.table-wrapper, table) { color: #193b30; }
body[data-page="dashboard"] th { background: #eaf3e9; color: #244b36; font-size: .75rem; font-weight: 800; letter-spacing: .035em; }
body[data-page="dashboard"] td { color: #42594a; font-size: .88rem; }
body[data-page="dashboard"] tbody tr:nth-child(even) { background: #f7faf6; }
body[data-page="dashboard"] .form-control { min-height: 44px; border-color: #d6e2d7; border-radius: 9px; background: #fffefa; color: #193b30; font-size: .92rem; }
body[data-page="dashboard"] .form-control::placeholder { color: #748176; opacity: 1; }
body[data-page="dashboard"] .form-control:focus { border-color: #278754; box-shadow: 0 0 0 3px #27875422; }
body[data-page="dashboard"] .btn-primary { border-color: #176b4b; background: #176b4b; color: #fff; font-weight: 750; }
body[data-page="dashboard"] .btn-primary:hover { border-color: #124638; background: #124638; color: #fff; }
body[data-page="dashboard"] .btn-accent { border-color: #e7cf36; background: #f1dc45; color: #193b30; font-weight: 750; }
body[data-page="dashboard"] .btn-outline { border-color: #6b9279; color: #176b4b; }

/* Public: shared type hierarchy with individually composed page heroes. */
.public-editorial-page, body.public-dashboard-page { color: #193b30; background: #f3f8f2; }
body[data-page="public"] > .navbar,
.public-editorial-page > .navbar { background: #124638; }
body[data-page="public"] > .navbar :is(.navbar-brand, .brand-name),
.public-editorial-page > .navbar :is(.navbar-brand, .brand-name) { color: #fff; }
body[data-page="public"] > .navbar .navbar-menu > li > a,
.public-editorial-page > .navbar .navbar-menu > li > a { color: #e8f0e9; }
body[data-page="public"] > .navbar .navbar-menu > li > a:hover,
body[data-page="public"] > .navbar .navbar-menu > li > a.active,
.public-editorial-page > .navbar .navbar-menu > li > a:hover,
.public-editorial-page > .navbar .navbar-menu > li > a.active { background: #ffffff13; color: #fff; }
.public-editorial-page :is(.public-page-hero, .editorial-hero) h1,
.public-dashboard-page .public-home-hero h1 { color: #fff; font-size: clamp(2.35rem, 4.7vw, 4.35rem); line-height: 1.04; letter-spacing: -.045em; }
.public-editorial-page :is(.public-page-hero, .editorial-hero) :is(.eyebrow, h1 em),
.public-dashboard-page .public-home-hero .hero-badge { color: #f1dc45; }
.public-editorial-page :is(.public-page-hero, .editorial-hero) p:not(.eyebrow),
.public-dashboard-page .public-home-hero p { color: #edf3ec; font-size: 1rem; line-height: 1.7; }
.public-editorial-page .public-page-content,
.public-editorial-page main.container,
.public-dashboard-page .public-dashboard-container { color: #193b30; }
.public-editorial-page :is(.stat-card, .impact-card, .giving-card, .contact-detail-card, .about-intro, .about-principle-card, .about-goal-card),
.public-dashboard-page .public-dashboard-container :is(.stat-card, .public-summary-section, .public-dashboard-primary > section, .public-dashboard-secondary > section) {
    border-color: #dce8dd;
    border-radius: 14px;
    color: #193b30;
    box-shadow: 0 8px 22px #193b3009;
}
.public-editorial-page :is(.public-page-content, .editorial-container) :where(p, li) { color: #4e665b; }
.public-editorial-page :is(.public-page-content, .editorial-container) :where(h2, h3) { color: #193b30; line-height: 1.25; letter-spacing: -.02em; }
.public-editorial-page .public-request-form .form-control,
.public-editorial-page .contact-message-section .form-control,
.public-editorial-page .public-assistance-request .form-control { min-height: 45px; border-color: #d6e2d7; border-radius: 9px; color: #193b30; }
.public-editorial-page .public-request-form .form-control::placeholder { color: #748176; opacity: 1; }
.public-editorial-page .editorial-primary-link,
.public-editorial-page .about-contact > a,
.public-dashboard-page .public-home-hero .public-request-link { border-color: #176b4b; background: #176b4b; color: #fff; font-weight: 750; }
.public-editorial-page .editorial-primary-link:hover,
.public-editorial-page .about-contact > a:hover,
.public-dashboard-page .public-home-hero .public-request-link:hover { background: #124638; color: #fff; }
.public-dashboard-page .public-home-hero .public-impact-link { border-color: #ffffff65; background: #ffffff0c; color: #fff; }
.public-editorial-page :is(.stat-card:nth-child(3n + 1), .giving-card:nth-child(3n + 1)) { border-top: 3px solid #36ae74; }
.public-editorial-page :is(.stat-card:nth-child(3n + 2), .giving-card:nth-child(3n + 2)) { border-top: 3px solid #e889b5; }
.public-editorial-page :is(.stat-card:nth-child(3n), .giving-card:nth-child(3n)) { border-top: 3px solid #f1dc45; }

/* Login: match the site, keep form labels and helper text high contrast. */
body[data-page="login"] .login-page { background: linear-gradient(140deg, #f4f8f1, #edf5ef 55%, #f6f5ed); }
body[data-page="login"] .login-story { background: linear-gradient(145deg, #124638, #1d6a4a); }
body[data-page="login"] .login-story-copy h1 { color: #fff; line-height: 1.02; }
body[data-page="login"] .login-story-copy h1 em { color: #f1dc45; }
body[data-page="login"] .login-form-panel { background: #fffefa; }
body[data-page="login"] .login-form-content h2 { color: #193b30; line-height: 1.2; }
body[data-page="login"] .login-form-content :where(.subtitle, .login-hint) { color: #52685b; line-height: 1.65; }
body[data-page="login"] .login-form-content .form-group label { color: #193b30; font-size: .86rem; font-weight: 750; }
body[data-page="login"] .login-form-content .form-control { min-height: 48px; border-color: #d6e2d7; color: #193b30; }
body[data-page="login"] .login-form-content .form-control::placeholder { color: #748176; opacity: 1; }
body[data-page="login"] .login-form-content .login-submit { border: 0; background: #176b4b; color: #fff; font-weight: 750; }
body[data-page="login"] .login-form-content .login-submit:hover { background: #124638; color: #fff; }
body[data-page="login"] .login-form-content .login-back { color: #176b4b; }
@media (max-width: 760px) {
    body[data-page="dashboard"] .main-content { padding: 1rem; }
    .public-editorial-page :is(.public-page-hero, .editorial-hero) h1,
    .public-dashboard-page .public-home-hero h1 { font-size: clamp(2.15rem, 9vw, 3.2rem); }
}

/* Second art direction: a restrained community editorial, not a collection of badges. */
.public-dashboard-page .public-home-hero,
.public-editorial-page :is(.public-page-hero, .editorial-hero) {
    background: linear-gradient(112deg, #153f30 0%, #1a5339 66%, #244f38 100%);
}
.public-dashboard-page .public-home-hero .hero-art {
    min-height: 312px;
    padding: 1.5rem 1.6rem;
    border: 0;
    border-radius: 4px 22px 4px 22px;
    border-top: 1px solid #ffffff39;
    border-bottom: 1px solid #ffffff39;
    background: linear-gradient(105deg, #ffffff0a 0 62%, #ffffff12 62% 100%);
    box-shadow: none;
}
.public-dashboard-page .public-home-hero .hero-art::after {
    position: absolute;
    right: 17%;
    top: 18%;
    width: 3px;
    height: 64%;
    content: "";
    background: linear-gradient(#e889b5, #f1dc45);
    opacity: .85;
}
.public-dashboard-page .public-home-hero .hero-art-top { max-width: 78%; color: #f3eddb; }
.public-dashboard-page .public-home-hero .hero-art-copy { max-width: 78%; padding-block: .4rem; }
.public-dashboard-page .public-home-hero .hero-art-copy span { color: #e9c2d3; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.public-dashboard-page .public-home-hero .hero-art-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.3vw, 2.8rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.public-dashboard-page .public-home-hero .hero-art-copy small { max-width: 250px; font-size: .83rem; line-height: 1.6; }
.public-dashboard-page .public-home-hero .hero-art-footer { max-width: 78%; border-top-style: dashed; }

/* Donate: a simple printed seal, with a little offset and ink-like type. */
.page-donate .donor-hero-art { min-height: 305px; border-radius: 4px 22px 4px 22px; background: linear-gradient(140deg, #ffffff0b, #ffffff03 70%); }
.page-donate .donor-art-sticker {
    width: 176px;
    border: 5px solid #fff8df;
    outline: 1px solid #f1dc4570;
    outline-offset: 7px;
    background: #f1dc45;
    box-shadow: 7px 10px 0 #e889b533, 0 17px 32px #09291b35;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.9rem;
    font-weight: 800;
    transform: rotate(-7deg);
}
.page-donate .donor-hero-art small { right: 4%; bottom: 10%; font-size: .64rem; line-height: 1.7; }

/* Progress: put the chart on an honest baseline and let the headline lead. */
.page-progress .progress-hero-art { min-height: 285px; border: 0; border-bottom: 1px solid #ffffff5c; border-radius: 0; background: linear-gradient(90deg, #ffffff08, transparent 55%); }
.page-progress .progress-hero-art::before {
    inset: auto 7% 0;
    width: 86%;
    height: 52%;
    border-bottom: 1px solid #ffffff48;
    background:
        linear-gradient(to top, #e889b5 0 42%, transparent 42%) 9% 100% / 13% 63% no-repeat,
        linear-gradient(to top, #71c292 0 66%, transparent 66%) 29% 100% / 13% 82% no-repeat,
        linear-gradient(to top, #f1dc45 0 82%, transparent 82%) 49% 100% / 13% 98% no-repeat,
        linear-gradient(to top, #71c292 0 58%, transparent 58%) 69% 100% / 13% 75% no-repeat,
        linear-gradient(to top, #e889b5 0 74%, transparent 74%) 89% 100% / 13% 90% no-repeat;
    opacity: .72;
}
.page-progress .progress-hero-art strong { position: relative; align-self: start; margin: 1.7rem 0 0 1rem; padding: 0; background: none; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 600; text-align: left; }
.page-progress .progress-hero-art strong i { font-family: var(--kbk-font); font-size: 1rem; }
.page-progress .progress-hero-art small { left: 1rem; right: auto; bottom: .8rem; }

/* Assistance: a calm note on a warm paper panel. */
.page-assistance .assistance-hero-art { min-height: 280px; border: 0; border-radius: 4px 22px 4px 22px; background: #f3f1df; box-shadow: 12px 12px 0 #e889b52e; }
.page-assistance .assistance-circle-a { width: 90px; height: 90px; top: 1.4rem; right: 1.5rem; border: 0; background: #e889b5; opacity: .9; transform: none; }
.page-assistance .assistance-hero-art strong { width: min(80%, 300px); margin-right: auto; margin-left: 9%; padding: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2rem); font-weight: 600; }
.page-assistance .assistance-hero-art small { left: 9%; right: auto; bottom: 1.25rem; color: #45634d; }

/* Contact: conversation notes become a neat, aligned sequence of messages. */
.page-contact .contact-hero-art { gap: .65rem; min-height: 285px; padding: 1.1rem 0 1.1rem 1.25rem; }
.page-contact .contact-chat { width: min(100%, 290px); border: 0; border-left: 3px solid #36ae74; border-radius: 2px 10px 10px 2px; background: #f4f4e9; box-shadow: 0 6px 17px #082b1c18; }
.page-contact .contact-chat:nth-child(2) { border-left-color: #e889b5; background: #f8eaf0; }
.page-contact .contact-chat:nth-child(3) { border-left-color: #f1dc45; background: #f1dc45; }
.page-contact .contact-chat i { display: none; }
@media (max-width: 760px) {
    .public-dashboard-page .public-home-hero .hero-art { min-height: 270px; }
    .public-dashboard-page .public-home-hero .hero-art::after { right: 9%; }
    .public-dashboard-page .public-home-hero :is(.hero-art-top, .hero-art-copy, .hero-art-footer) { max-width: 86%; }
    .page-progress .progress-hero-art { min-height: 250px; }
    .page-assistance .assistance-hero-art { min-height: 245px; }
}

/* KBK's playful identity: rounded display type, candy-color edging, and soft depth. */
:root {
    --kbk-display-font: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
    --kbk-pink-soft: #f8e8ef;
    --kbk-green-soft: #e9f4e9;
    --kbk-yellow-soft: #fff7d5;
}
body[data-page="dashboard"] .page-header h1,
body[data-page="dashboard"] .dashboard-page-header h1,
body.public-dashboard-page .public-home-hero h1,
.public-editorial-page :is(.public-page-hero, .editorial-hero) h1,
body[data-page="login"] .login-story-copy h1 {
    font-family: var(--kbk-display-font);
    font-weight: 900;
    letter-spacing: -.045em;
    -webkit-text-stroke: 1px currentColor;
    text-wrap: balance;
}
body[data-page="dashboard"] .page-header h1,
body[data-page="dashboard"] .dashboard-page-header h1 {
    color: #164a35;
    -webkit-text-stroke: 1px #e889b5;
    text-shadow: 0 2px 0 #e889b5, 0 4px 0 #f1dc45, 0 7px 14px #193b3015;
}
body.public-dashboard-page .public-home-hero h1,
.public-editorial-page :is(.public-page-hero, .editorial-hero) h1 {
    -webkit-text-stroke: 1px #f1dc45;
    text-shadow: 0 3px 0 #d879a6, 0 6px 0 #124638, 0 10px 20px #102f2240;
}
body[data-page="login"] .login-story-copy h1 {
    -webkit-text-stroke: 1px #e889b5;
    text-shadow: 0 3px 0 #9e5272, 0 6px 0 #123b2d, 0 10px 20px #102f2240;
}
body[data-page="dashboard"] .page-header h2,
body[data-page="dashboard"] .dashboard-panel h2,
body[data-page="dashboard"] .dashboard-shortcuts h2,
.public-editorial-page :is(.section-title, .contact-page-heading h2, .about-intro h2),
.public-dashboard-page .public-dashboard-container .section-title,
body[data-page="login"] .login-form-content h2 {
    font-family: var(--kbk-display-font);
    font-weight: 850;
    letter-spacing: -.035em;
}

/* Rounded cards and color-coded accents make the dashboards feel welcoming. */
body[data-page="dashboard"] .main-content,
body.public-dashboard-page .public-main,
.public-editorial-page .public-page-content { background-color: #f4f8ee; }
body[data-page="dashboard"] :is(.section-block, .dashboard-panel, .dashboard-shortcuts, .donor-contributions),
.public-dashboard-page .public-dashboard-container :is(.public-summary-section, .public-dashboard-primary > section, .public-dashboard-secondary > section),
.public-editorial-page :is(.about-intro, .about-purpose, .public-request-form, .contact-message-section) {
    border: 1px solid #d8e9d8;
    border-radius: 20px;
    box-shadow: 0 10px 28px #174a3710, inset 0 1px #ffffffb0;
}
body[data-page="dashboard"] .mini-stat,
body[data-page="dashboard"] #adminDashboardOverview .mini-stat { border-radius: 18px; box-shadow: 0 8px 20px #174a3712; }
body[data-page="dashboard"] .mini-stat:nth-child(4n + 1) { background: linear-gradient(145deg, #fffefa, #e9f4e9); }
body[data-page="dashboard"] .mini-stat:nth-child(4n + 2) { background: linear-gradient(145deg, #fffefa, #f8e8ef); }
body[data-page="dashboard"] .mini-stat:nth-child(4n + 3) { background: linear-gradient(145deg, #fffefa, #fff7d5); }
body[data-page="dashboard"] .mini-stat:nth-child(4n) { background: linear-gradient(145deg, #fffefa, #e9f4f3); }
body[data-page="dashboard"] .mini-stat :is(.stat-icon, .mini-stat-icon, .icon-wrap) { border-radius: 14px; }
body[data-page="dashboard"] .sidebar-menu a.active { border: 1px solid #ffffff28; border-radius: 14px; background: #ffffff18; }
body[data-page="dashboard"] .sidebar-menu .admin-nav-icon { border: 2px solid #f1dc45; border-radius: 12px; background: #e889b51c; color: #fff; }
body[data-page="dashboard"] .sidebar-menu a:hover .admin-nav-icon { background: #e889b5; color: #164a35; }

/* Pill-shaped actions echo the logo's glossy lettering without sacrificing contrast. */
body[data-page="dashboard"] :is(.btn-primary, .btn-accent, .btn-outline),
.public-editorial-page :is(.editorial-primary-link, .public-request-form .btn),
.public-dashboard-page .public-home-hero :is(.public-request-link, .public-impact-link),
body[data-page="login"] .login-form-content .login-submit {
    min-height: 46px;
    border-radius: 999px;
    font-family: var(--kbk-display-font);
    font-weight: 800;
    box-shadow: 0 4px 0 #0e3c2b, 0 8px 16px #103f3020;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
body[data-page="dashboard"] :is(.btn-primary, .btn-outline):hover,
.public-editorial-page .editorial-primary-link:hover,
body[data-page="login"] .login-form-content .login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #0e3c2b, 0 12px 18px #103f3024;
}
body[data-page="dashboard"] .btn-accent { box-shadow: 0 4px 0 #c1a927, 0 8px 16px #103f3018; }
.public-editorial-page .editorial-primary-link,
.public-dashboard-page .public-home-hero .public-request-link,
body[data-page="dashboard"] .btn-primary,
body[data-page="login"] .login-form-content .login-submit { border: 2px solid #f4f1dc; }
.public-dashboard-page .public-home-hero .public-impact-link { border-radius: 999px; }

/* Color appears in small, useful places: icons, labels, and focus states. */
.public-editorial-page .eyebrow,
body[data-page="dashboard"] .dashboard-eyebrow { display: inline-flex; width: fit-content; padding: .35rem .62rem; border-radius: 999px; background: #f8e8ef; color: #7b3d5b; }
.public-editorial-page :is(.contact-detail-icon, .about-principle-icon),
.public-dashboard-page .public-stat-icon,
body[data-page="dashboard"] .sidebar-menu .ui-icon { border: 2px solid #d8eadb; border-radius: 14px; background: linear-gradient(145deg, #f8e8ef, #fff7d5); color: #164a35; }
body[data-page="dashboard"] :is(input, select, textarea):focus,
.public-editorial-page :is(input, select, textarea):focus,
body[data-page="login"] :is(input, select, textarea):focus { outline: 3px solid #e889b553; outline-offset: 2px; border-color: #176b4b; }
@media (prefers-reduced-motion: reduce) {
    body[data-page="dashboard"] *, body.public-dashboard-page *, .public-editorial-page *, body[data-page="login"] * { scroll-behavior: auto; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Readability pass: keep the playful brand in accents, not across letterforms. */
body[data-page="dashboard"],
body.public-dashboard-page,
.public-editorial-page,
body[data-page="login"] { font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: #193b30; }
body[data-page="dashboard"] :is(h1, h2, h3, h4),
body.public-dashboard-page :is(h1, h2, h3, h4),
.public-editorial-page :is(h1, h2, h3, h4),
body[data-page="login"] :is(h1, h2, h3, h4) {
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 750;
    letter-spacing: -.025em;
    -webkit-text-stroke: 0;
    text-shadow: none;
}
body[data-page="dashboard"] :is(.page-header h1, .dashboard-page-header h1),
body.public-dashboard-page .public-home-hero h1,
.public-editorial-page :is(.public-page-hero, .editorial-hero) h1,
body[data-page="login"] .login-story-copy h1 {
    -webkit-text-stroke: 0;
    text-shadow: none;
}
body[data-page="dashboard"] .page-header h1,
body[data-page="dashboard"] .dashboard-page-header h1,
.public-editorial-page :is(.page-header h1, .section-title),
.public-dashboard-page .public-dashboard-container .section-title,
body[data-page="login"] .login-form-content h2 { color: #193b30; }
body.public-dashboard-page .public-home-hero h1,
.public-editorial-page :is(.public-page-hero, .editorial-hero) h1,
body[data-page="login"] .login-story-copy h1 { color: #fff; }



/* Public page heroes use the poster's warm paper and forest type, without right-side art. */
body.public-editorial-page:not(.page-about) :is(.public-page-hero, .editorial-hero) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    color: #173b2d;
    background: #f4f1dc;
}
body.public-editorial-page:not(.page-about) :is(.public-page-hero, .editorial-hero)::before {
    display: none;
}
body.public-editorial-page:not(.page-about) :is(.donor-hero-art, .progress-hero-art, .updates-hero-art, .assistance-hero-art, .contact-hero-art, .editorial-hero-art) {
    display: none;
}
body.public-editorial-page:not(.page-about) :is(.public-page-hero-copy, .hero-inner) {
    width: 100%;
    max-width: 860px;
}
body.public-editorial-page:not(.page-about) :is(.public-page-hero, .editorial-hero) h1 {
    max-width: 850px;
    color: #164a35;
}
body.public-editorial-page:not(.page-about) :is(.public-page-hero, .editorial-hero) h1 em {
    color: inherit;
}
body.public-editorial-page:not(.page-about) :is(.public-page-hero, .editorial-hero) .eyebrow {
    color: #526d58;
}
body.public-editorial-page:not(.page-about) :is(.public-page-hero, .editorial-hero) p:not(.eyebrow) {
    color: #40584b;
}
body.public-dashboard-page .public-home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    color: #173b2d;
    background: #f4f1dc;
}
body.public-dashboard-page .public-home-hero::before,
body.public-dashboard-page .public-home-hero .hero-art {
    display: none;
}
body.public-dashboard-page .public-home-hero .hero-inner {
    width: 100%;
    max-width: 860px;
}
body.public-dashboard-page .public-home-hero h1 {
    max-width: 850px;
    color: #164a35;
}
body.public-dashboard-page .public-home-hero p {
    color: #40584b;
}
body.public-dashboard-page .public-home-hero .hero-badge {
    border-color: #b8c9b6;
    background: #e9f0df;
    color: #526d58;
}

/* One calm, context-matched palette across the public site; About KBK keeps its own art direction. */
body.public-editorial-page:not(.page-about),
body.public-dashboard-page {
    --public-paper: #f4f1dc;
    --public-surface: #fffefa;
    --public-sage: #e9f0df;
    --public-border: #d5dfcb;
    --public-forest: #164a35;
    --public-forest-hover: #103d2d;
    --public-muted: #52685b;
    --public-accent: #9a526f;
    color: var(--public-forest);
    background: var(--public-paper);
}
body.public-editorial-page:not(.page-about) .public-page-content,
body.public-editorial-page:not(.page-about) main.container,
body.public-dashboard-page .public-main,
body.public-dashboard-page .public-dashboard-container {
    color: var(--public-forest);
    background-color: var(--public-paper);
}
body.public-editorial-page:not(.page-about) :is(h1, h2, h3, h4, .section-title),
body.public-dashboard-page .public-dashboard-container :is(h1, h2, h3, h4, .section-title) {
    color: var(--public-forest);
}
body.public-editorial-page:not(.page-about) :is(p, li, label, small, td),
body.public-dashboard-page .public-dashboard-container :is(p, li, label, small, td) {
    color: var(--public-muted);
}
body.public-editorial-page:not(.page-about) :is(.stat-card, .impact-card, .giving-card, .contact-detail-card, .public-summary-section, .public-request-form, .contact-message-section, .transparency-chart, .campaign-progress, .update-card, .public-evidence-card, .need-card, .progress-card),
body.public-dashboard-page .public-dashboard-container :is(.stat-card, .public-summary-section, .public-dashboard-primary > section, .public-dashboard-secondary > section, .transparency-chart, .campaign-progress) {
    border-color: var(--public-border);
    background-color: var(--public-surface);
    background-image: none;
    color: var(--public-forest);
}
body.public-editorial-page:not(.page-about) :is(.stat-card, .giving-card, .contact-detail-card, .update-card),
body.public-dashboard-page .public-dashboard-container .stat-card {
    border-top-color: var(--public-border);
}
body.public-editorial-page:not(.page-about) > .navbar,
body.public-dashboard-page .public-sidebar {
    background: #173b2d;
}
body.public-editorial-page:not(.page-about) .navbar-menu > li > a,
body.public-dashboard-page .public-sidebar a {
    color: #f4f1dc;
}
body.public-editorial-page:not(.page-about) .navbar-menu > li > a:hover,
body.public-editorial-page:not(.page-about) .navbar-menu > li > a.active,
body.public-dashboard-page .public-sidebar a:hover,
body.public-dashboard-page .public-sidebar a.active {
    background-color: #ffffff18;
    color: #fffefa;
}
body.public-editorial-page:not(.page-about) :is(.editorial-primary-link, .public-request-form .btn, .public-request-form button[type="submit"]),
body.public-dashboard-page .public-home-hero .public-request-link,
body.public-dashboard-page .public-dashboard-container :is(.btn-primary, button[type="submit"]) {
    border-color: var(--public-forest);
    background: var(--public-forest);
    color: #fffefa;
}
body.public-editorial-page:not(.page-about) :is(.editorial-primary-link, .public-request-form .btn, .public-request-form button[type="submit"]):hover,
body.public-dashboard-page .public-home-hero .public-request-link:hover,
body.public-dashboard-page .public-dashboard-container :is(.btn-primary, button[type="submit"]):hover {
    border-color: var(--public-forest-hover);
    background: var(--public-forest-hover);
    color: #fffefa;
}
body.public-editorial-page:not(.page-about) :is(.btn-outline, .public-impact-link),
body.public-dashboard-page .public-home-hero .public-impact-link,
body.public-dashboard-page .public-dashboard-container .btn-outline {
    border-color: #6e8874;
    background: var(--public-surface);
    color: var(--public-forest);
}
body.public-editorial-page:not(.page-about) :is(.eyebrow, .hero-badge),
body.public-dashboard-page .public-dashboard-container .eyebrow {
    color: var(--public-accent);
}
body.public-editorial-page:not(.page-about) :is(input, select, textarea, .form-control),
body.public-dashboard-page .public-dashboard-container :is(input, select, textarea, .form-control) {
    border-color: var(--public-border);
    background-color: var(--public-surface);
    color: var(--public-forest);
}
body.public-editorial-page:not(.page-about) :is(input, select, textarea, .form-control):focus,
body.public-dashboard-page .public-dashboard-container :is(input, select, textarea, .form-control):focus {
    border-color: #527760;
    outline-color: #8aa58a;
    box-shadow: 0 0 0 3px #52776024;
}
body.public-editorial-page:not(.page-about) :is(a:not(.editorial-primary-link), .text-link),
body.public-dashboard-page .public-dashboard-container :is(a:not(.btn), .text-link) {
    color: var(--public-forest);
}
body.public-editorial-page:not(.page-about) :is(th, .table thead th),
body.public-dashboard-page .public-dashboard-container :is(th, .table thead th) {
    background: var(--public-sage);
    color: var(--public-forest);
}
body.public-editorial-page:not(.page-about) tbody tr:nth-child(even),
body.public-dashboard-page .public-dashboard-container tbody tr:nth-child(even) {
    background: #f8f7ed;
}

body[data-page="dashboard"],
body[data-page="login"] {
    --public-paper: #f4f1dc;
    --public-surface: #fffefa;
    --public-sage: #e9f0df;
    --public-border: #d5dfcb;
    --public-forest: #164a35;
    --public-forest-hover: #103d2d;
    --public-muted: #52685b;
    --public-accent: #9a526f;
}
body[data-page="dashboard"] .main-content,
body[data-page="login"] .login-page {
    background: var(--public-paper);
    color: var(--public-forest);
}
body[data-page="dashboard"] :is(h1, h2, h3, h4),
body[data-page="login"] .login-form-content :is(h1, h2, h3, h4) {
    color: var(--public-forest);
}
body[data-page="dashboard"] :is(.section-block, .dashboard-panel, .dashboard-shortcuts, .donor-contributions),
body[data-page="login"] .login-form-panel {
    border-color: var(--public-border);
    background: var(--public-surface);
    color: var(--public-forest);
}
body[data-page="dashboard"] .sidebar,
body[data-page="login"] .login-story {
    background: #173b2d;
}
body[data-page="dashboard"] .sidebar-menu a.active { border-left-color: #d8cdb0; }
body[data-page="dashboard"] .sidebar-menu a:hover { background: #ffffff18; }
body[data-page="dashboard"] .mini-stat,
body[data-page="dashboard"] #adminDashboardOverview .mini-stat,
body[data-page="dashboard"] .mini-stat:nth-child(4n + 1),
body[data-page="dashboard"] .mini-stat:nth-child(4n + 2),
body[data-page="dashboard"] .mini-stat:nth-child(4n + 3),
body[data-page="dashboard"] .mini-stat:nth-child(4n) {
    border-color: var(--public-border);
    background: var(--public-surface);
}
body[data-page="dashboard"] .mini-stat :is(span, strong, .stat-label),
body[data-page="dashboard"] .page-header :is(h1, h2, p) {
    color: var(--public-forest);
}
body[data-page="dashboard"] :is(th, .table thead th) {
    background: var(--public-sage);
    color: var(--public-forest);
}
body[data-page="dashboard"] tbody tr:nth-child(even) { background: #f8f7ed; }
body[data-page="dashboard"] :is(input, select, textarea, .form-control),
body[data-page="login"] .login-form-content .form-control {
    border-color: var(--public-border);
    background: var(--public-surface);
    color: var(--public-forest);
}
body[data-page="dashboard"] :is(input, select, textarea, .form-control):focus,
body[data-page="login"] .login-form-content .form-control:focus {
    border-color: #527760;
    outline-color: #8aa58a;
    box-shadow: 0 0 0 3px #52776024;
}
body[data-page="dashboard"] .btn-primary,
body[data-page="login"] .login-form-content .login-submit {
    border-color: var(--public-forest);
    background: var(--public-forest);
    color: #fffefa;
}
body[data-page="dashboard"] .btn-primary:hover,
body[data-page="login"] .login-form-content .login-submit:hover {
    border-color: var(--public-forest-hover);
    background: var(--public-forest-hover);
    color: #fffefa;
}
body[data-page="dashboard"] .btn-accent {
    border-color: #c9d6c2;
    background: var(--public-sage);
    color: var(--public-forest);
}
body[data-page="dashboard"] .btn-outline {
    border-color: #6e8874;
    background: var(--public-surface);
    color: var(--public-forest);
}
body[data-page="dashboard"] .btn-danger,
body.public-editorial-page:not(.page-about) .btn-danger,
body.public-dashboard-page .public-dashboard-container .btn-danger {
    border-color: #873143;
    background: #9c4050;
    color: #fff;
}
body[data-page="login"] .login-story-copy h1 em,
body[data-page="login"] .login-story-copy .login-eyebrow { color: #e6c5d2; }

/* Home navigation shares the same soft paper-and-sage palette as its hero. */
body.public-dashboard-page .public-sidebar {
    border-right: 1px solid #d5dfcb;
    background: #e9f0df;
    box-shadow: 5px 0 22px #193b300a;
    color: #164a35;
}
body.public-dashboard-page .navbar-brand,
body.public-dashboard-page .brand-name {
    color: #164a35;
}
body.public-dashboard-page .navbar-menu > li > a,
body.public-dashboard-page .public-sidebar a {
    color: #40584b;
}
body.public-dashboard-page .navbar-menu > li > a:hover {
    background: #f4f1dc;
    color: #164a35;
    box-shadow: none;
}
body.public-dashboard-page .navbar-menu > li > a.active {
    border-color: #164a35;
    background: #164a35;
    color: #fffefa;
    box-shadow: inset 3px 0 #d8cdb0;
}
body.public-dashboard-page .public-nav-icon,
body.public-dashboard-page .navbar-menu a.active .public-nav-icon {
    border-color: #cbd8c5;
    background: #fffefa;
    color: #164a35;
    box-shadow: none;
}
body.public-dashboard-page .navbar-menu a:focus-visible {
    outline-color: #527760;
    outline-offset: 2px;
}

/* Cover the simpler public pages too (categories, donation list, and impact pages). */
body[data-page="public"]:not(.page-about) {
    --public-paper: #f4f1dc;
    --public-surface: #fffefa;
    --public-sage: #e9f0df;
    --public-border: #d5dfcb;
    --public-forest: #164a35;
    --public-forest-hover: #103d2d;
    --public-muted: #52685b;
    --public-accent: #9a526f;
    background: var(--public-paper);
    color: var(--public-forest);
}
body[data-page="public"]:not(.page-about) .navbar {
    border-color: #d5dfcb;
    background: #173b2d;
}
body[data-page="public"]:not(.page-about) .navbar :is(.navbar-brand, .brand-name, .navbar-menu a) {
    color: #f4f1dc;
}
body[data-page="public"]:not(.page-about) .navbar .navbar-menu a:hover,
body[data-page="public"]:not(.page-about) .navbar .navbar-menu a.active {
    border-color: #ffffff26;
    background: #ffffff18;
    color: #fffefa;
}
body[data-page="public"]:not(.page-about) main.container,
body[data-page="public"]:not(.page-about) .public-page-content,
body[data-page="public"]:not(.page-about) .public-dashboard-container {
    background-color: var(--public-paper);
    color: var(--public-forest);
}
body[data-page="public"]:not(.page-about) main :is(h1, h2, h3, h4, .section-title),
body[data-page="public"]:not(.page-about) main :is(.category-name, .need-title, .progress-title) {
    color: var(--public-forest);
}
body[data-page="public"]:not(.page-about) main :is(p, li, label, .category-desc, .page-intro, .stat-sub) {
    color: var(--public-muted);
}
body[data-page="public"]:not(.page-about) main :is(.category-card, .need-card, .progress-card, .stat-card, .impact-card, .public-evidence-card, .public-summary-section, .transparency-chart, .campaign-progress) {
    border-color: var(--public-border);
    background-color: var(--public-surface);
    background-image: none;
    color: var(--public-forest);
}
body[data-page="public"]:not(.page-about) main :is(.category-card, .need-card, .progress-card, .impact-card, .public-evidence-card, .stat-card) :is(h2, h3, h4, strong, .stat-value) {
    color: var(--public-forest);
}
body[data-page="public"]:not(.page-about) main :is(.btn-primary, .editorial-primary-link, button[type="submit"]) {
    border-color: var(--public-forest);
    background-color: var(--public-forest);
    color: #fffefa;
}
body[data-page="public"]:not(.page-about) main :is(.btn-primary, .editorial-primary-link, button[type="submit"]):hover {
    border-color: var(--public-forest-hover);
    background-color: var(--public-forest-hover);
    color: #fffefa;
}
body[data-page="public"]:not(.page-about) main :is(a:not(.btn), .text-link) {
    color: var(--public-forest);
}
body[data-page="public"]:not(.page-about) main :is(input, select, textarea, .form-control) {
    border-color: var(--public-border);
    background-color: var(--public-surface);
    color: var(--public-forest);
}
body[data-page="public"]:not(.page-about) main :is(input, select, textarea, .form-control):focus {
    border-color: #527760;
    outline-color: #8aa58a;
    box-shadow: 0 0 0 3px #52776024;
}
body[data-page="public"]:not(.page-about) main :is(th, .table thead th) {
    background: var(--public-sage);
    color: var(--public-forest);
}
body[data-page="public"]:not(.page-about) main tbody tr:nth-child(even) {
    background: #f8f7ed;
}
body[data-page="dashboard"] :is(p, li, td, th, label, .form-text, .text-muted),
body.public-dashboard-page :is(p, li, td, th, label, .form-text, .text-muted),
.public-editorial-page :is(p, li, td, th, label, .form-text, .text-muted),
body[data-page="login"] :is(p, label, .subtitle, .login-hint) { color: #40584b; }
body[data-page="dashboard"] .sidebar :is(p, a, .sidebar-group-label),
body.public-dashboard-page .public-sidebar :is(p, a),
body[data-page="login"] .login-story :is(p, a) { color: #fff; }
body[data-page="login"] .login-story-copy > p:last-child { color: #edf4ed; }
body[data-page="login"] .login-form-content .subtitle,
body[data-page="login"] .login-form-content .login-hint { color: #52685f; }
body[data-page="dashboard"] :is(.section-block, .dashboard-panel, .dashboard-shortcuts, .donor-contributions),
.public-dashboard-page .public-dashboard-container :is(.public-summary-section, .public-dashboard-primary > section, .public-dashboard-secondary > section),
.public-editorial-page :is(.about-intro, .about-purpose, .contact-message-section) {
    color: #193b30;
    background-color: #fffefa;
}
body[data-page="dashboard"] :is(.btn-primary, .btn-outline),
.public-editorial-page .editorial-primary-link,
.public-dashboard-page .public-home-hero .public-request-link,
body[data-page="login"] .login-form-content .login-submit { color: #fff; }
body[data-page="dashboard"] .btn-accent { color: #193b30; }
body[data-page="dashboard"] .sidebar-menu a,
body.public-dashboard-page .public-sidebar a { font-size: .92rem; font-weight: 650; }
body[data-page="dashboard"] table :is(th, td),
.public-dashboard-page table :is(th, td),
.public-editorial-page table :is(th, td) { color: #193b30; }
body[data-page="dashboard"] :is(input, select, textarea),
body.public-dashboard-page :is(input, select, textarea),
.public-editorial-page :is(input, select, textarea),
body[data-page="login"] :is(input, select, textarea) { color: #193b30; background-color: #fff; }
body.public-dashboard-page .public-home-hero :is(p, .hero-art-copy small),
.public-editorial-page :is(.public-page-hero, .editorial-hero) p,
.public-editorial-page :is(.about-flow, .about-contact, .editorial-cta) p { color: #edf4ed; }

/* Admin dashboard: make the review queue the first, easiest metric to scan. */
body[data-page="dashboard"] #adminDashboardOverview .mini-stat.warning {
    border-color: #efd8b8;
    border-left-color: #b66c20;
    background: linear-gradient(145deg, #fffaf2, #fff4e3);
}
body[data-page="dashboard"] #adminDashboardOverview .mini-stat.warning span,
body[data-page="dashboard"] #adminDashboardOverview .mini-stat.warning strong {
    color: #744514;
}
body[data-page="dashboard"] #adminDashboardOverview .mini-stat:focus-visible {
    outline: 3px solid #a17c15;
    outline-offset: 3px;
}

/* Final button contrast pass for the admin and public user dashboards. */
body[data-page="dashboard"] .btn-primary,
body[data-page="dashboard"] .btn-primary:hover {
    color: #fff;
}
body[data-page="dashboard"] .btn-accent,
body[data-page="dashboard"] .btn-accent:hover {
    color: #193b30;
}
body[data-page="dashboard"] .btn-outline,
body[data-page="dashboard"] .btn-outline:hover {
    border-color: #527760;
    background: #fffefa;
    color: #174b36;
}
body[data-page="dashboard"] .btn-danger,
body[data-page="dashboard"] .btn-danger:hover {
    border-color: #873143;
    background: #9c4050;
    color: #fff;
}
body[data-page="dashboard"] .btn:disabled {
    border-color: #7d8981;
    background: #e4e9e5;
    color: #46564b;
    opacity: 1;
}

body.public-dashboard-page .public-dashboard-container :is(.btn, button),
body.public-dashboard-page .public-home-hero :is(.public-request-link, .public-impact-link) {
    font-weight: 700;
}
body.public-dashboard-page .public-dashboard-container .btn-primary,
body.public-dashboard-page .public-dashboard-container .btn-primary:hover,
body.public-dashboard-page .public-dashboard-container button[type="submit"],
body.public-dashboard-page .public-dashboard-container button[type="submit"]:hover {
    border-color: #174b36;
    background: #176b4b;
    color: #fff;
}
body.public-dashboard-page .public-dashboard-container .btn-outline,
body.public-dashboard-page .public-dashboard-container .btn-outline:hover {
    border-color: #527760;
    background: #fffefa;
    color: #174b36;
}
body.public-dashboard-page .public-dashboard-container .btn-danger,
body.public-dashboard-page .public-dashboard-container .btn-danger:hover {
    border-color: #873143;
    background: #9c4050;
    color: #fff;
}
body.public-dashboard-page .public-dashboard-container :is(.btn, button):disabled {
    border-color: #7d8981;
    background: #e4e9e5;
    color: #46564b;
    opacity: 1;
}
body.public-dashboard-page .public-home-hero .public-request-link {
    border-color: #174b36;
    background: #176b4b;
    color: #fff;
}
body.public-dashboard-page .public-home-hero .public-request-link:hover {
    background: #124638;
    color: #fff;
}
body.public-dashboard-page .public-home-hero .public-impact-link,
body.public-dashboard-page .public-home-hero .public-impact-link:hover {
    border: 2px solid #fff;
    background: #173f32;
    color: #fff;
}

.public-evidence-section { margin: 2.5rem 0; }
.public-evidence-embed { display: grid; gap: .75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #d8e9d8; }
.public-evidence-embed > h3 { margin: 0; color: #193b30; font-size: 1rem; }
.public-evidence-embed .public-evidence-card { padding: .85rem 1rem; }
.public-evidence-embed .public-evidence-card .btn { min-height: 40px; }
.public-evidence-list { display: grid; gap: .8rem; }
.public-evidence-card { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.1rem 1.25rem; border: 1px solid #d8e9d8; border-radius: 14px; background: #fffefa; }
.public-evidence-card h3 { margin: 0 0 .25rem; color: #193b30; }
.public-evidence-card p { margin: 0; color: #40584b; }
.public-evidence-card .public-evidence-date { margin-bottom: .35rem; font-size: .82rem; }
.public-evidence-admin .confirmation-option { display: flex; align-items: flex-start; gap: .5rem; color: #193b30; }
@media (max-width: 600px) {
    .public-evidence-card { align-items: stretch; flex-direction: column; }
    .public-evidence-card .btn { justify-content: center; }
}

/* Make donor actions explain what each choice opens or changes. */
.donor-table-wrapper td:last-child { min-width: 285px; }
.donor-table-wrapper .action-group { align-items: center; gap: .55rem; }
.donor-action-group { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.donor-action-group--manage { flex-basis: 100%; margin-top: .1rem; padding-top: .45rem; border-top: 1px solid #e3e9e2; }
.donor-table-wrapper .donor-action-group .btn { min-height: 36px; padding: .35rem .65rem; font-size: .76rem; white-space: nowrap; }
.donor-form-status { grid-column: 1 / -1; margin: 0; padding: .55rem .7rem; border-left: 3px solid #176b4b; border-radius: 5px; background: #eaf3eb; color: #244d37; font-size: .86rem; font-weight: 650; }
.donor-panel-hint { margin: -.35rem 0 .75rem; color: #52685f; font-size: .84rem; }
@media (max-width: 900px) {
    .donor-table-wrapper td:last-child { min-width: 0; }
    .donor-action-group--manage { margin-top: .3rem; padding-top: .3rem; }
}

/* Editorial typography inspired by the KBK Community Care reference. */
:root {
    --kbk-display-font: Georgia, "Times New Roman", serif;
    --kbk-label-font: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
body[data-page="dashboard"] :is(.page-header h1, .dashboard-page-header h1),
body.public-dashboard-page .public-home-hero h1,
.public-editorial-page :is(.public-page-hero, .editorial-hero, .page-header) h1,
body[data-page="login"] .login-story-copy h1 {
    font-family: var(--kbk-display-font);
    font-weight: 700;
    letter-spacing: -.035em;
    -webkit-text-stroke: 0;
    text-shadow: none;
    text-wrap: balance;
}
body[data-page="dashboard"] :is(.page-header h1, .dashboard-page-header h1),
.public-editorial-page .page-header h1,
body.public-dashboard-page .public-dashboard-container .section-title,
body[data-page="login"] .login-form-content h2 {
    color: #164a35;
}
body[data-page="dashboard"] :is(.page-header h2, .section-title),
body[data-page="dashboard"] .dashboard-page-header h2,
.public-editorial-page :is(.editorial-section-heading h2, .about-flow-heading h2, .contact-page-heading h2, .section-title),
body.public-dashboard-page .public-dashboard-container .section-title,
body[data-page="login"] .login-form-content h2 {
    font-family: var(--kbk-display-font);
    font-weight: 700;
    letter-spacing: -.025em;
}
.public-editorial-page :is(.eyebrow, .public-page-hero .eyebrow),
body[data-page="dashboard"] .dashboard-eyebrow,
body.public-dashboard-page .public-dashboard-container .eyebrow,
body[data-page="login"] .login-eyebrow {
    font-family: var(--kbk-label-font);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}
.public-editorial-page .eyebrow,
body[data-page="dashboard"] .dashboard-eyebrow {
    padding: 0;
    border-radius: 0;
    background: transparent;
}
body.public-dashboard-page .public-home-hero h1,
.public-editorial-page :is(.public-page-hero, .editorial-hero) h1,
body[data-page="login"] .login-story-copy h1 { color: #fff; }

/* Unified Merino, Rock Blue, and Venice Blue theme. Keep semantic status colors
   (success, warning, and danger) distinct so meaning is not conveyed by blue alone. */
:root {
    --primary: #16587B;
    --primary-dark: #10445F;
    --accent: #84B3CE;
    --accent-dark: #16587B;
    --dark: #173D52;
    --gray: #456273;
    --light: #F5EEDD;
    --white: #FFFCF4;
    --panel-cream: #F5EEDD;
    --panel-green: #E7F0F3;
    --panel-gold: #E7F0F3;
    --panel-rose: #E7F0F3;
    --border: #B7CFDA;
    --kbk-forest: #16587B;
    --kbk-forest-mid: #10445F;
    --kbk-gold: #84B3CE;
    --kbk-ink: #173D52;
    --kbk-readable-muted: #456273;
    --kbk-surface: #F5EEDD;
    --public-paper: #F5EEDD;
    --public-surface: #FFFCF4;
    --public-sage: #DCEAF0;
    --public-border: #B7CFDA;
    --public-forest: #16587B;
    --public-forest-hover: #10445F;
    --public-muted: #456273;
    --public-accent: #84B3CE;
    --editorial-forest: #16587B;
    --editorial-leaf: #39799A;
    --editorial-gold: #84B3CE;
    --editorial-cream: #F5EEDD;
}

body,
body[data-page="public"],
.public-editorial-page {
    background: var(--light);
    color: var(--dark);
}

body :is(a, .text-link),
body[data-page="public"] main :is(a:not(.btn), .text-link) {
    color: var(--primary);
}

body :is(.navbar, .sidebar, .public-sidebar, .login-story),
.public-editorial-page > .navbar,
.public-editorial-page.public-page-layout > .navbar {
    background-color: var(--primary);
    color: var(--light);
}

body :is(.navbar-brand, .brand-name, .sidebar :is(a, p), .public-sidebar a),
body[data-page="dashboard"] .sidebar,
body[data-page="login"] .login-story,
.public-editorial-page > .navbar :is(.navbar-brand, .brand-name, .navbar-menu a) {
    color: var(--light);
}

body :is(.navbar-menu a:hover, .navbar-menu a.active, .sidebar-menu a:hover, .sidebar-menu a.active),
body.public-dashboard-page .public-sidebar a:is(:hover, .active),
.public-editorial-page > .navbar .navbar-menu > li > a:is(:hover, .active) {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary-dark);
}

body :is(main, .main-content, .page-content, .public-page-content, .public-dashboard-container),
body[data-page="dashboard"],
body.public-dashboard-page,
body.public-editorial-page {
    background-color: var(--light);
    color: var(--dark);
}

body :is(.dashboard-panel, .section-block, .dashboard-shortcuts, .donor-contributions,
    .category-card, .need-card, .impact-card, .stat-card, .progress-card,
    .public-summary-section, .public-evidence-card, .contact-page, .contact-detail-card,
    .login-form-panel, .login-form-content, .modal-content, .dropdown-menu),
body.public-dashboard-page .public-dashboard-container > section,
.public-editorial-page :is(.about-intro, .about-purpose, .about-principle-card,
    .about-goal-card, .about-contact, .contact-message-section, .giving-card) {
    border-color: var(--public-border);
    background-color: var(--public-surface);
    color: var(--dark);
}

body :is(h1, h2, h3, h4, .section-title, .page-header),
body[data-page="dashboard"] .page-header :is(h1, h2),
body.public-dashboard-page .public-dashboard-container .section-title,
.public-editorial-page :is(.page-header h1, .editorial-section-heading h2,
    .about-flow-heading h2, .contact-page-heading h2, .section-title),
body[data-page="login"] .login-form-content h2 {
    color: var(--primary);
}

body :is(p, li, label, td, th, .form-text, .text-muted, .subtitle, .stat-sub),
.public-editorial-page :is(p, li, label, td, th) {
    color: var(--public-muted);
}

body :is(input, select, textarea, .form-control),
body[data-page="login"] .login-form-content .form-control {
    border-color: var(--public-border);
    background-color: var(--public-surface);
    color: var(--dark);
}

body :is(input, select, textarea, .form-control):focus,
body :is(button, a, input, select, textarea, [tabindex]):focus-visible {
    border-color: var(--primary);
    outline-color: var(--primary);
    box-shadow: 0 0 0 3px #16587B33;
}

body :is(.btn-primary, .btn-admin, .login-submit, .editorial-primary-link,
    .public-request-link, button[type="submit"]),
body[data-page="public"] main :is(.btn-primary, .editorial-primary-link, button[type="submit"]) {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--light);
}

body :is(.btn-primary, .btn-admin, .login-submit, .editorial-primary-link,
    .public-request-link, button[type="submit"]):hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--light);
}

body :is(.btn-accent, .btn-outline, .public-impact-link),
body[data-page="public"] main :is(.btn-accent, .btn-outline) {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary-dark);
}

body :is(.btn-accent, .btn-outline, .public-impact-link):hover {
    border-color: var(--primary);
    background: #DCEAF0;
    color: var(--primary-dark);
}

body :is(button, .btn):disabled {
    border-color: #B7C3C9;
    background: #E5E8E8;
    color: #52636B;
    opacity: 1;
}

body :is(th, .table thead th) {
    background: var(--accent);
    color: var(--primary-dark);
}

body tbody tr:nth-child(even) { background: #EAF1F2; }
body :is(.badge, .status-badge, .status-pill) { color: var(--primary-dark); }
body :is(progress, input[type="checkbox"], input[type="radio"]) { accent-color: var(--primary); }

/* Keep editorial hero shapes/layout while bringing every page, including About, into the palette. */
body :is(.editorial-hero, .public-page-hero, .login-story),
.public-editorial-page .editorial-hero {
    background-color: var(--primary);
    background-image: linear-gradient(125deg, #10445F, #16587B 62%, #39799A);
    color: var(--light);
}

body :is(.editorial-hero, .public-page-hero, .login-story) :is(h1, h2, h3, p, .eyebrow),
.public-editorial-page .editorial-hero :is(h1, h2, h3, p, .eyebrow) {
    color: var(--light);
}

body[data-page="dashboard"] .sidebar-menu a.active,
body.public-dashboard-page .public-sidebar a.active {
    border-left-color: var(--accent);
    background: var(--accent);
    color: var(--primary-dark);
}

/* Enforce the three-color identity over older page-specific color declarations. */
body,
body[data-page="dashboard"],
body[data-page="login"],
body[data-page="public"],
body.public-dashboard-page,
body.public-editorial-page {
    background-color: #F5EEDD !important;
    background-image: none;
    color: #173D52;
}

body :is(main, .main-content, .page-content, .public-page-content, .public-dashboard-container) {
    background-color: #F5EEDD !important;
    color: #173D52;
}

body :is(.navbar, .sidebar, .public-sidebar, .login-story),
body.public-editorial-page > .navbar,
body.public-editorial-page.public-page-layout > .navbar {
    border-color: #16587B;
    background-color: #16587B !important;
    background-image: none;
    color: #F5EEDD !important;
}

body :is(.navbar-brand, .navbar-brand *, .brand-name, .sidebar a, .sidebar p,
    .public-sidebar a, .login-story :is(h1, h2, h3, p, a, .eyebrow)),
body.public-editorial-page > .navbar :is(.navbar-brand, .brand-name, .navbar-menu a) {
    color: #F5EEDD !important;
}

body :is(.navbar-menu a:hover, .navbar-menu a.active, .sidebar-menu a:hover,
    .sidebar-menu a.active, .public-sidebar a:hover, .public-sidebar a.active),
body.public-editorial-page > .navbar .navbar-menu > li > a:is(:hover, .active) {
    border-color: #84B3CE !important;
    background: #84B3CE !important;
    color: #10445F !important;
    box-shadow: none;
}

body :is(h1, h2, h3, h4, .section-title, .page-header h1, .page-header h2,
    .page-header h3, .dashboard-eyebrow, .public-dashboard-eyebrow),
.public-editorial-page :is(.page-header h1, .editorial-section-heading h2,
    .about-flow-heading h2, .contact-page-heading h2, .section-title) {
    color: #16587B !important;
}

body :is(.dashboard-panel, .section-block, .dashboard-shortcuts, .donor-contributions,
    .category-card, .need-card, .impact-card, .stat-card, .progress-card,
    .public-summary-section, .public-evidence-card, .contact-page, .contact-detail-card,
    .login-form-panel, .login-form-content, .modal-content, .dropdown-menu),
body.public-dashboard-page .public-dashboard-container > section,
.public-editorial-page :is(.about-intro, .about-purpose, .about-principle-card,
    .about-goal-card, .about-contact, .contact-message-section, .giving-card) {
    border-color: #B7CFDA !important;
    background-color: #FFFCF4 !important;
    background-image: none;
    color: #173D52;
}

body :is(p, li, label, td, th, .form-text, .text-muted, .subtitle, .stat-sub,
    .page-intro, .category-desc, .public-evidence-card p),
.public-editorial-page :is(p, li, label, td, th) {
    color: #456273;
}

body :is(input, select, textarea, .form-control) {
    border-color: #B7CFDA !important;
    background-color: #FFFCF4 !important;
    color: #173D52 !important;
}

body :is(input, select, textarea, .form-control):focus,
body :is(button, a, input, select, textarea, [tabindex]):focus-visible {
    border-color: #16587B !important;
    outline: 3px solid #16587B !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px #84B3CE66 !important;
}

body :is(.btn-primary, .btn-admin, .login-submit, .editorial-primary-link,
    .public-request-link, button[type="submit"]),
body[data-page="public"] main :is(.btn-primary, .editorial-primary-link, button[type="submit"]) {
    border-color: #16587B !important;
    background: #16587B !important;
    color: #F5EEDD !important;
}

body :is(.btn-primary, .btn-admin, .login-submit, .editorial-primary-link,
    .public-request-link, button[type="submit"]):hover {
    border-color: #10445F !important;
    background: #10445F !important;
    color: #F5EEDD !important;
}

body :is(.btn-accent, .btn-outline, .public-impact-link),
body[data-page="public"] main :is(.btn-accent, .btn-outline) {
    border-color: #84B3CE !important;
    background: #84B3CE !important;
    color: #10445F !important;
}

body :is(.btn-accent, .btn-outline, .public-impact-link):hover {
    border-color: #16587B !important;
    background: #DCEAF0 !important;
    color: #10445F !important;
}

body :is(.btn, button):disabled {
    border-color: #B7C3C9 !important;
    background: #E5E8E8 !important;
    color: #52636B !important;
    opacity: 1;
}

body :is(th, .table thead th) {
    background: #84B3CE !important;
    color: #10445F !important;
}

body tbody tr:nth-child(even) { background-color: #EAF1F2; }
body :is(progress, input[type="checkbox"], input[type="radio"]) { accent-color: #16587B; }

body :is(.public-home-hero, .public-page-hero, .editorial-hero, .page-about .about-flow,
    .page-about .about-contact, .page-contact .contact-hero, .page-donate .donor-hero,
    .page-progress .progress-hero, .page-assistance .assistance-hero) {
    border-color: #84B3CE;
    background-color: #16587B !important;
    background-image: linear-gradient(125deg, #10445F, #16587B 62%, #39799A) !important;
    color: #F5EEDD;
}

body :is(.public-home-hero, .public-page-hero, .editorial-hero, .page-about .about-flow,
    .page-contact .contact-hero, .page-donate .donor-hero, .page-progress .progress-hero,
    .page-assistance .assistance-hero) :is(h1, h2, h3, p, .eyebrow, a:not(.btn)) {
    color: #F5EEDD !important;
}

body :is(.logo img, .login-logo img, .about-logo-link img, #receiptLogo) {
    object-fit: contain;
}

/* About page KBK initials: replace legacy green/gold raster tiles with palette artwork. */
.page-about .kbk-meaning-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "icon" "title" "meaning" "copy" !important;
    min-height: 0;
    padding: 1rem;
    border: 1px solid #B7CFDA !important;
    border-top: 3px solid #84B3CE !important;
    border-radius: 16px;
    background: #FFFCF4 !important;
    color: #173D52;
}

.page-about .kbk-meaning-card:nth-child(2),
.page-about .kbk-meaning-card:nth-child(3) {
    border-top-color: #84B3CE !important;
    background: #FFFCF4 !important;
}

.page-about .kbk-meaning-card .kbk-letter-art {
    position: relative;
    display: grid;
    grid-area: icon;
    place-items: center;
    width: 100% !important;
    height: clamp(150px, 18vw, 225px) !important;
    margin: 0 0 .7rem;
    overflow: hidden;
    border: 0 !important;
    border-radius: 13px;
    background: #84B3CE !important;
    box-shadow: none;
}

.page-about .kbk-meaning-card .kbk-letter-art img { display: none !important; }

.page-about .kbk-meaning-card .kbk-letter-art::before {
    content: "K";
    color: #10445F;
    font: 900 clamp(6rem, 12vw, 9rem)/1 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.08em;
}

.page-about .kbk-meaning-card:nth-child(2) .kbk-letter-art {
    background: #16587B !important;
}

.page-about .kbk-meaning-card:nth-child(2) .kbk-letter-art::before {
    content: "B";
    color: #F5EEDD;
}

.page-about .kbk-meaning-card .kbk-letter-art::after {
    position: absolute;
    top: .8rem;
    left: .9rem;
    content: "01 / K";
    color: #10445F;
    font: 800 .7rem/1.2 "Segoe UI", Arial, sans-serif;
    letter-spacing: .16em;
}

.page-about .kbk-meaning-card:nth-child(2) .kbk-letter-art::after {
    content: "02 / B";
    color: #F5EEDD;
}

.page-about .kbk-meaning-card:nth-child(3) .kbk-letter-art::after { content: "03 / K"; }

.page-about .kbk-meaning-card h3 {
    grid-area: title;
    color: #16587B !important;
}

.page-about .kbk-meaning-card > strong { grid-area: meaning; color: #10445F !important; }
.page-about .kbk-meaning-card > p { grid-area: copy; color: #456273 !important; }

/* Apply the same theme to the shared layouts used by every public and admin page. */
body :is(.admin-layout, .public-dashboard-layout, .public-dashboard-content,
    .public-page-layout, .public-page-content, .login-page) {
    background-color: #F5EEDD !important;
    color: #173D52;
}

body[data-page="dashboard"] .main-content,
body[data-page="public"] main,
body[data-page="public"] .public-page-content,
body[data-page="public"] .public-dashboard-content,
body[data-page="login"] .login-page {
    background-color: #F5EEDD !important;
    background-image: none !important;
    color: #173D52;
}

body :is(.dashboard-panel, .dashboard-card, .content-card, .form-card,
    .filter-panel, .table-card, .table-wrapper, .report-preview,
    .settings-panel, .admin-page-guide, .account-panel) {
    border-color: #B7CFDA !important;
    background-color: #FFFCF4 !important;
    background-image: none !important;
    color: #173D52;
}

body a:not(.btn):not(.navbar-brand):not(.login-brand):not(.brand-name):not(.public-request-link):not(.public-impact-link):not(.navbar-menu a) {
    color: #16587B !important;
}

body :is(.navbar, .sidebar, .public-sidebar, .login-story) a:not(.active):not(:hover),
body .login-story a,
body .sidebar-menu a,
body .public-sidebar a {
    color: #F5EEDD !important;
}

body :is(.sidebar-menu a:is(.active, :hover), .public-sidebar a:is(.active, :hover),
    .navbar-menu a:is(.active, :hover)) {
    background-color: #84B3CE !important;
    color: #10445F !important;
}

body button:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.sidebar-toggle):not(.public-nav-mobile-toggle):not(.login-password-toggle),
body .btn-secondary {
    border-color: #84B3CE;
    background-color: #84B3CE;
    color: #10445F;
}

body button:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.sidebar-toggle):not(.public-nav-mobile-toggle):not(.login-password-toggle):hover,
body .btn-secondary:hover {
    border-color: #16587B;
    background-color: #DCEAF0;
    color: #10445F;
}

body[data-page="public"] :is(.hero, .category-hero, .impact-hero, .donor-hero,
    .progress-hero, .assistance-hero, .contact-hero),
body[data-page="dashboard"] :is(.page-header, .dashboard-page-header) {
    border-color: #B7CFDA;
}

/* Donation tracking contrast and readability */
.page-donations .main-content { color: #173D52; }
.page-donations .page-header h1,
.page-donations .page-header h2,
.page-donations .modal-header h2 { color: #10445F; }
.page-donations .page-header p,
.page-donations .field-hint,
.page-donations .muted-text,
.page-donations .existing-proof,
.page-donations .privacy-option { color: #456273; }
.page-donations .section-block {
    border-color: #B7CFDA;
    background: #FFFCF4;
}
.page-donations .donation-table-wrapper thead { background: #10445F; }
.page-donations .donation-table-wrapper th {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.page-donations .donation-table-wrapper td {
    color: #173D52;
    line-height: 1.5;
    vertical-align: top;
}
.page-donations .donation-table-wrapper tbody tr:nth-child(even) td { background: #F5EEDD; }
.page-donations .donation-table-wrapper tbody tr:hover td { background: #DCEAF0; }
.page-donations .badge-cash,
.page-donations .badge-success,
.page-donations .badge-verified,
.page-donations .badge-completed {
    background: #DCEAF5;
    color: #174B68;
}
.page-donations .badge-inkind,
.page-donations .badge-pending,
.page-donations .badge-received,
.page-donations .badge-planned {
    background: #FFF0B8;
    color: #594800;
}
.page-donations .badge-allocated,
.page-donations .badge-rejected {
    background: #F8DFE2;
    color: #812B3C;
}
.page-donations .badge-distributed {
    background: #DCEAF5;
    color: #174B68;
}
.page-donations .form-control {
    color: #173D52;
    border-color: #8FAAB7;
}
.page-donations .form-control:focus {
    border-color: #16587B;
    box-shadow: 0 0 0 3px rgba(22, 88, 123, 0.2);
}
.page-donations :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #16587B;
    outline-offset: 2px;
}
.page-donations .btn {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}
.page-donations[data-page="dashboard"] .btn-primary,
.page-donations[data-page="dashboard"] .btn-primary:visited {
    border-color: #10445F;
    background: #16587B;
    color: #fff;
}
.page-donations[data-page="dashboard"] .btn-primary:hover {
    border-color: #0B354B;
    background: #10445F;
    color: #fff;
}

/* Final public-page contrast overrides for legacy green stat and footer rules. */
body[data-page="public"].public-dashboard-page .public-dashboard-container :is(.stat-label, .stat-value, .stat-sub) {
    color: #10445F !important;
}
body[data-page="public"].public-dashboard-page .public-dashboard-container .stat-sub {
    color: #456273 !important;
}
body[data-page="public"].public-dashboard-page .public-dashboard-container .public-stat-icon {
    border-color: #B7CFDA !important;
    background: #E7F0F3 !important;
    color: #16587B !important;
}
body[data-page="public"].public-dashboard-page .public-dashboard-container .stat-card {
    border-top-color: #84B3CE !important;
}
body[data-page="public"] .public-nav-icon {
    border-color: #B7CFDA !important;
    background: #E7F0F3 !important;
    color: #16587B !important;
}
body[data-page="public"] .navbar-menu a:is(:hover, .active) .public-nav-icon {
    border-color: #55788A !important;
    background: #DCEAF0 !important;
    color: #10445F !important;
}
body[data-page="public"].public-dashboard-page .public-sidebar .navbar-menu > li > a:not(.active):not(:hover),
body[data-page="public"].public-dashboard-page .public-sidebar .navbar-menu > li > a:not(.active):not(:hover):visited {
    color: #F5EEDD !important;
}
body[data-page="public"].public-dashboard-page .public-sidebar .navbar-menu > li > a.active,
body[data-page="public"].public-dashboard-page .public-sidebar .navbar-menu > li > a:hover {
    background: #84B3CE !important;
    color: #10445F !important;
}
body[data-page="public"] main .stat-card {
    border-color: #B7CFDA !important;
    background: #FFFCF4 !important;
    background-image: none !important;
}
body[data-page="public"] :is(.public-page-content, .editorial-container) .stat-value,
body[data-page="public"] :is(.public-page-content, .editorial-container) .stat-label,
body[data-page="public"] :is(.public-page-content, .editorial-container) .stat-sub {
    color: #10445F !important;
}
body[data-page="public"] :is(.public-page-content, .editorial-container) .stat-sub {
    color: #456273 !important;
}
body[data-page="public"] .footer {
    border-top: 1px solid #55788A;
    background: #10445F !important;
    color: #F5EEDD !important;
}
body[data-page="public"] .footer p,
body[data-page="public"] .footer :is(a, small) {
    color: #F5EEDD !important;
}
body[data-page="public"] .transparency-chart progress::-webkit-progress-bar { background: #DCEAF0; }
body[data-page="public"] .transparency-chart progress::-webkit-progress-value,
body[data-page="public"] .transparency-chart .transparency-progress:last-child progress::-webkit-progress-value {
    background: #16587B;
}
body[data-page="public"] .transparency-chart progress::-moz-progress-bar { background: #16587B; }
body[data-page="public"].public-dashboard-page .public-home-hero .public-request-link {
    border-color: #F5EEDD !important;
    background: #16587B !important;
    color: #F5EEDD !important;
    box-shadow: 0 4px 0 #0B354B, 0 8px 16px rgba(11, 53, 75, 0.24) !important;
}
body[data-page="public"].public-dashboard-page .public-home-hero .public-request-link:hover {
    border-color: #F5EEDD !important;
    background: #10445F !important;
    color: #F5EEDD !important;
    box-shadow: 0 6px 0 #0B354B, 0 12px 18px rgba(11, 53, 75, 0.28) !important;
}
body[data-page="public"].public-dashboard-page .public-home-hero .public-impact-link,
body[data-page="public"].public-dashboard-page .public-home-hero .public-impact-link:hover {
    border-color: #B7CFDA !important;
    background: #84B3CE !important;
    color: #10445F !important;
    box-shadow: 0 4px 0 #39799A, 0 8px 16px rgba(11, 53, 75, 0.2) !important;
}
.page-donations[data-page="dashboard"] .btn-accent,
.page-donations[data-page="dashboard"] .btn-accent:visited {
    border-color: #B99B24;
    background: #F1DC45;
    color: #193B30;
}
.page-donations[data-page="dashboard"] .btn-accent:hover {
    border-color: #947614;
    background: #E4CA36;
    color: #193B30;
}
.page-donations[data-page="dashboard"] .btn-outline,
.page-donations[data-page="dashboard"] .btn-outline:visited {
    border-color: #55788A;
    background: #FFFCF4;
    color: #10445F;
}
.page-donations[data-page="dashboard"] .btn-outline:hover {
    border-color: #10445F;
    background: #DCEAF0;
    color: #10445F;
}
.page-donations[data-page="dashboard"] .btn-danger {
    border-color: #812B3C;
    background: #A63249;
    color: #fff;
}
.page-donations[data-page="dashboard"] .btn-danger:hover {
    border-color: #651E30;
    background: #812B3C;
    color: #fff;
}
.page-donations button:not(.btn-primary):not(.btn-accent):not(.btn-outline):not(.btn-danger):not(.sidebar-toggle) {
    border-color: #8FAAB7;
    background: #FFFCF4;
    color: #10445F;
}
.page-donations button:not(.btn-primary):not(.btn-accent):not(.btn-outline):not(.btn-danger):not(.sidebar-toggle):hover {
    border-color: #55788A;
    background: #DCEAF0;
    color: #10445F;
}
.page-donations .modal-close {
    border-color: transparent !important;
    background: transparent !important;
    color: #456273 !important;
}
.page-donations .modal-close:hover {
    background: #DCEAF0 !important;
    color: #10445F !important;
}
.page-donations .btn:disabled,
.page-donations button:disabled {
    border-color: #B7CFDA !important;
    background: #E5E9E8 !important;
    color: #536976 !important;
    opacity: 1;
}

/* Keep all Donation Tracking surfaces on one consistent blue-and-cream palette. */
body.page-donations[data-page="dashboard"] .admin-layout,
body.page-donations[data-page="dashboard"] .main-content {
    background-color: #F5EEDD !important;
    background-image: none !important;
    color: #173D52;
}
.page-donations .sidebar {
    background: #10445F !important;
    color: #F5EEDD;
}
.page-donations .sidebar-brand { border-bottom-color: #456B7E; }
.page-donations .sidebar-menu a,
.page-donations .sidebar-menu a:not(.active):not(:hover) {
    color: #F5EEDD !important;
}
.page-donations .sidebar-menu a:hover {
    background: #245F7A !important;
    color: #fff !important;
}
.page-donations .sidebar-menu a.active {
    background: #84B3CE !important;
    border-left-color: #F1DC45;
    color: #10445F !important;
}
.page-donations .sidebar-toggle {
    background: #10445F !important;
    color: #fff !important;
}
.page-donations .section-block,
.page-donations .table-wrapper {
    border-color: #B7CFDA !important;
    background-color: #FFFCF4 !important;
    background-image: none !important;
    color: #173D52;
}
.page-donations .page-header p,
.page-donations .section-block p,
.page-donations .field-hint,
.page-donations .muted-text,
.page-donations .existing-proof,
.page-donations .privacy-option {
    color: #456273;
}
.page-donations .modal {
    border: 1px solid #B7CFDA;
    background: #FFFCF4 !important;
    color: #173D52;
}
.page-donations .modal-header { border-bottom: 1px solid #D5E0E4; }
.page-donations .modal-close { min-height: 36px; }
.page-donations .donation-table-wrapper tbody tr td { background: #FFFCF4; }
.page-donations .donation-table-wrapper tbody tr:nth-child(even) td { background: #F0F4F7; }
.page-donations .donation-table-wrapper tbody tr:hover td { background: #DCEAF0; }
.page-donations .form-control,
.page-donations .form-control:focus {
    background-color: #fff;
}
.page-donations .form-control::placeholder { color: #607987; opacity: 1; }
.page-donations .form-control option { background: #fff; color: #173D52; }
.page-donations .btn-sm { min-height: 36px; }
.page-donations .btn-xs { min-height: 32px; }
.page-donations :is(.btn, button):focus-visible {
    outline: 3px solid #16587B !important;
    outline-offset: 2px;
}
.page-donations .sidebar-menu .ui-icon {
    border: 1px solid #55788A;
    background: #245F7A !important;
    color: #F5EEDD !important;
    box-shadow: none;
}
.page-donations .sidebar-brand .logo {
    background: linear-gradient(135deg, #10445F, #16587B 58%, #84B3CE) !important;
}
