/* ========================================================================== 
   KWF Donor Portal — Modern Interface System v1.5.0
   Front-end only. Scoped to .kwf-portal to avoid theme conflicts.
   Brand: #27963c green, #f57035 orange
   ========================================================================== */

.kwf-portal {
    --kwf-green: #27963c;
    --kwf-green-dark: #176a2a;
    --kwf-green-soft: #edf9f0;
    --kwf-orange: #f57035;
    --kwf-orange-dark: #d9571e;
    --kwf-orange-soft: #fff3ed;
    --kwf-ink: #123c2c;
    --kwf-text: #263d32;
    --kwf-muted: #687b72;
    --kwf-line: #e1ece6;
    --kwf-soft: #f6faf7;
    --kwf-white: #ffffff;
    --kwf-shadow-sm: 0 8px 22px rgba(18, 60, 44, .06);
    --kwf-shadow: 0 18px 48px rgba(18, 60, 44, .10);
    --kwf-radius: 24px;
    --kwf-radius-sm: 16px;

    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 34px 18px 70px;
    color: var(--kwf-text);
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.6;
}

.kwf-portal * { box-sizing: border-box; }
.kwf-portal a { color: var(--kwf-green); }
.kwf-portal a:hover { color: var(--kwf-orange); }
.kwf-portal img { max-width: 100%; height: auto; }

/* Notices */
.kwf-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 16px;
    margin: 0 0 22px;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: var(--kwf-shadow-sm);
}
.kwf-notice:before { content: "✓"; display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,.8); }
.kwf-notice-success { background: #e9f8ee; color: var(--kwf-green-dark); border-color: #ccebd5; }
.kwf-notice-error { background: #fff0ed; color: #a0331d; border-color: #ffd3c4; }
.kwf-notice-error:before { content: "!"; }

/* Portal shell */
.kwf-portal-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}
.kwf-portal-main { min-width: 0; }

.kwf-portal-main > h1,
.kwf-portal h1 {
    margin: 0 0 10px;
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.05;
    font-weight:700;
    letter-spacing: -0.04em;
    color: var(--kwf-ink);
}
.kwf-portal h2 {
    margin: 0 0 16px;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.18;
    font-weight:700;
    letter-spacing: -0.025em;
    color: var(--kwf-ink);
}
.kwf-portal h3 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.25;
    font-weight:700;
    color: var(--kwf-ink);
}
.kwf-page-intro,
.kwf-muted { color: var(--kwf-muted); }
.kwf-page-intro { margin: 0 0 24px; max-width: 780px; font-size: 14px; }
.kwf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--kwf-orange);
    font-size: 12px;
    font-weight:700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.kwf-eyebrow:before { content:""; width: 8px; height: 8px; border-radius:50%; background: var(--kwf-orange); }

/* Navigation */
.kwf-portal-nav {
    position: sticky;
    top: 24px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--kwf-line);
    border-radius: 26px;
    padding: 14px;
    box-shadow: var(--kwf-shadow);
    backdrop-filter: blur(12px);
}
.kwf-portal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight:700;
    color: var(--kwf-ink);
    padding: 14px 14px 16px;
    border-bottom: 1px solid var(--kwf-line);
    margin-bottom: 10px;
}
.kwf-portal-brand:before {
    content: "❤";
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--kwf-green), var(--kwf-orange));
    color: #fff;
    box-shadow: 0 10px 20px rgba(39,150,60,.18);
}
.kwf-portal-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none !important;
    color: var(--kwf-text);
    padding: 11px 14px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
    margin: 4px 0;
    transition: transform .16s ease, background .16s ease, color .16s ease;
}
.kwf-portal-nav a:hover { background: var(--kwf-green-soft); transform: translateX(2px); color: var(--kwf-green-dark) !important; }
.kwf-portal-nav a.active {
    background: linear-gradient(135deg, var(--kwf-green), #1f8735);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(39,150,60,.18);
}
.kwf-portal-nav a:last-child { margin-top: 12px; color: #8a3d27; background: var(--kwf-orange-soft); }

/* Hero sections */
.kwf-dashboard-welcome,
.kwf-page-hero,
.kwf-ij-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(245,112,53,.25), transparent 28%),
        radial-gradient(circle at 8% 80%, rgba(39,150,60,.22), transparent 32%),
        linear-gradient(135deg, #123c2c 0%, #1f7634 100%);
    border-radius: 30px;
    padding: clamp(26px, 4vw, 46px);
    color: #fff;
    margin: 0 0 26px;
    box-shadow: var(--kwf-shadow);
}
.kwf-dashboard-welcome:after,
.kwf-page-hero:after,
.kwf-ij-hero:after {
    content:"";
    position:absolute;
    right:-70px;
    bottom:-80px;
    width:240px;
    height:240px;
    border-radius:50%;
    background: rgba(255,255,255,.08);
}
.kwf-dashboard-welcome h1,
.kwf-page-hero h1,
.kwf-ij-hero h1,
.kwf-dashboard-welcome h2,
.kwf-page-hero h2,
.kwf-ij-hero h2 { color:#fff !important; max-width: 780px; margin-bottom: 12px; }
.kwf-dashboard-welcome p,
.kwf-page-hero p,
.kwf-ij-hero p { color: rgba(255,255,255,.9); max-width: 760px; margin: 0 0 22px; font-size: 18px; }
.kwf-dashboard-welcome .kwf-eyebrow,
.kwf-page-hero .kwf-eyebrow,
.kwf-ij-hero .kwf-eyebrow { color: #ffd9c8; }
.kwf-dashboard-welcome .kwf-eyebrow:before,
.kwf-page-hero .kwf-eyebrow:before,
.kwf-ij-hero .kwf-eyebrow:before { background: #ffd9c8; }
.kwf-dashboard-actions { display:flex; flex-wrap:wrap; gap: 12px; align-items:center; margin-top: 18px; }

/* Cards and panels */
.kwf-card,
.kwf-stat,
.kwf-badge,
.kwf-next-impact-card,
.kwf-fr-card,
.kwf-ij-card,
.kwf-ij-category-card,
.kwf-mini-report-card {
    background: rgba(255,255,255,.98);
    border: 1px solid var(--kwf-line);
    border-radius: var(--kwf-radius);
    padding: 24px;
    box-shadow: var(--kwf-shadow-sm);
    min-width: 0;
}
.kwf-card { margin-bottom: 24px; }
.kwf-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:16px; }
.kwf-card p { margin-top: 0; }
.kwf-empty-state {
    background: var(--kwf-soft);
    border: 1px dashed #cdded5;
    border-radius: 18px;
    padding: 22px;
    color: var(--kwf-muted);
}
.kwf-empty-state strong { display:block; color: var(--kwf-ink); font-size: 18px; margin-bottom: 4px; }

/* Buttons */
.kwf-btn,
.kwf-primary-action,
.kwf-secondary-action,
.kwf-table-action,
.kwf-secondary-button,
.kwf-link-button,
.kwf-form button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight:700;
    text-decoration: none !important;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.kwf-btn:hover,
.kwf-primary-action:hover,
.kwf-secondary-action:hover,
.kwf-table-action:hover,
.kwf-secondary-button:hover,
.kwf-link-button:hover,
.kwf-form button:hover { transform: translateY(-1px); }
.kwf-btn-primary,
.kwf-primary-action,
.kwf-table-action,
.kwf-form button {
    background: var(--kwf-green);
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(39,150,60,.18);
}
.kwf-btn-primary:hover,
.kwf-primary-action:hover,
.kwf-table-action:hover,
.kwf-form button:hover { background: var(--kwf-green-dark); color:#fff !important; }
.kwf-btn-secondary,
.kwf-secondary-action,
.kwf-secondary-button,
.kwf-link-button {
    background: #fff;
    color: var(--kwf-green) !important;
    border-color: var(--kwf-line);
}
.kwf-btn-secondary:hover,
.kwf-secondary-action:hover,
.kwf-secondary-button:hover,
.kwf-link-button:hover { background: var(--kwf-green-soft); color: var(--kwf-green-dark) !important; }

/* Auth */
.kwf-auth { padding: 20px 0 42px; }
.kwf-auth-clean { max-width: 680px; margin: 0 auto; }
.kwf-auth-intro {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(245,112,53,.36), transparent 35%), linear-gradient(135deg,#123c2c,#27963c);
    color: #fff;
    padding: clamp(30px, 6vw, 54px);
    border-radius: 30px;
    margin-bottom: 28px;
    box-shadow: var(--kwf-shadow);
}
.kwf-auth-intro h2 { color: #fff !important; font-size: clamp(23px, 3vw, 30px); font-weight:700; line-height: 1.08; margin: 0 0 16px; letter-spacing:-.04em; }
.kwf-auth-intro p { color: rgba(255,255,255,.92); font-size: 18px; line-height: 1.7; margin: 0; }
.kwf-auth-panel .kwf-card { padding: 28px; }
.kwf-auth-links { display:flex; flex-wrap:wrap; justify-content:space-between; gap: 12px; margin-top: 16px; align-items:center; }
.kwf-hp-field { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

/* Forms */
.kwf-form { display: grid; gap: 16px; }
.kwf-form label { display: grid; gap: 7px; color: var(--kwf-ink); font-weight: 750; }
.kwf-form input,
.kwf-form select,
.kwf-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9e6df;
    border-radius: 14px;
    padding: 11px 14px;
    background: #fff;
    color: var(--kwf-text);
    font: inherit;
    outline: none;
    transition: border .16s ease, box-shadow .16s ease;
}
.kwf-form textarea { min-height: 120px; resize: vertical; }
.kwf-form input:focus,
.kwf-form select:focus,
.kwf-form textarea:focus { border-color: rgba(39,150,60,.7); box-shadow: 0 0 0 4px rgba(39,150,60,.10); }
.kwf-check { display:flex !important; grid-template-columns: unset !important; flex-direction: row; align-items:flex-start; gap: 10px !important; font-weight: 650 !important; color: var(--kwf-muted) !important; }
.kwf-check input,
.kwf-form input[type="checkbox"],
.kwf-form input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    padding: 0 !important;
    margin: 3px 0 0 !important;
    flex: none !important;
    border-radius: 4px !important;
    accent-color: var(--kwf-green);
}
.kwf-form input[type="radio"] { border-radius: 50% !important; }

/* Grids */
.kwf-grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items:start; }
.kwf-stat-grid,
.kwf-impact-stat-grid,
.kwf-ij-top-cards,
.kwf-report-stat-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0 26px; }
.kwf-stat { position:relative; overflow:hidden; padding: 22px; }
.kwf-stat:after { content:""; position:absolute; right:-34px; top:-34px; width:94px; height:94px; border-radius:50%; background: var(--kwf-green-soft); }
.kwf-stat strong { position:relative; z-index:1; display:block; color: var(--kwf-ink); font-size: clamp(19px, 1.8vw, 24px); line-height: 1; letter-spacing:-.04em; margin-bottom:8px; }
.kwf-stat > span { position:relative; z-index:1; display:block; color: var(--kwf-muted); font-weight: 750; }

/* Dashboard */
.kwf-impact-list { display:grid; gap: 10px; }
.kwf-impact-list span {
    display:flex;
    justify-content:space-between;
    gap: 12px;
    align-items:center;
    background: var(--kwf-soft);
    border: 1px solid var(--kwf-line);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--kwf-muted);
}
.kwf-impact-list b { color: var(--kwf-ink); }
.kwf-next-impact { background: linear-gradient(180deg,#fff,#fbfffc); }
.kwf-next-impact-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kwf-next-impact-card { display:block; text-decoration:none !important; transition: transform .16s ease, border .16s ease; }
.kwf-next-impact-card:hover { transform: translateY(-2px); border-color: rgba(39,150,60,.35); }
.kwf-next-impact-card strong { display:block; color: var(--kwf-ink); font-size: 19px; margin-bottom: 4px; }
.kwf-next-impact-card span { color: var(--kwf-muted); }
.kwf-cause-bar { margin: 14px 0; }
.kwf-cause-bar-head { display:flex; justify-content:space-between; gap:12px; margin-bottom: 8px; color: var(--kwf-ink); font-weight:750; }
.kwf-cause-track,
.kwf-ij-progress-bar,
.kwf-ij-mini-progress { height: 12px; border-radius: 99px; background:#eaf1ed; overflow:hidden; }
.kwf-cause-track div,
.kwf-ij-progress-bar div,
.kwf-ij-mini-progress div { height:100%; border-radius:99px; background: linear-gradient(90deg, var(--kwf-green), var(--kwf-orange)); }

/* Tables */
.kwf-table-wrap { overflow:auto; border-radius: 18px; border: 1px solid var(--kwf-line); }
.kwf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    overflow:hidden;
}
.kwf-table th,
.kwf-table td { padding: 14px 16px; border-bottom: 1px solid var(--kwf-line); vertical-align: top; text-align:left; }
.kwf-table th { background: #f7fbf8; color: var(--kwf-ink); font-weight:700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.kwf-table tr:last-child td { border-bottom: 0; }
.kwf-table tr:hover td { background: #fcfffd; }
.kwf-table-action { min-height: 36px; padding: 9px 13px; font-size: 13px; }

/* Receipts/documents */
/* Receipt page — matches the markup in render_receipt(). */
.kwf-receipt-actions { display:flex; flex-wrap:wrap; gap:10px; margin: 0 0 18px; }
.kwf-receipt {
    display:block;
    background:#fff;
    border:1px solid var(--kwf-line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--kwf-shadow-sm);
    max-width: 820px;
}
.kwf-receipt-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; border-bottom:1px solid var(--kwf-line); padding-bottom:18px; margin-bottom:20px; flex-wrap:wrap; }
.kwf-receipt-header h1 { font-size: clamp(20px, 2.2vw, 25px); margin: 0 0 6px; }
.kwf-receipt-header p { color: var(--kwf-muted); font-size:14px; max-width:440px; margin:0; }
.kwf-receipt-meta { text-align:right; flex: none; }
.kwf-receipt-meta strong { display:block; color: var(--kwf-ink); font-size:12px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:4px; }
.kwf-receipt-meta span { display:block; color: var(--kwf-muted); font-size:13px; }
.kwf-receipt-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:20px; margin-bottom:22px; }
.kwf-receipt-grid h3 { font-size:13px; text-transform:uppercase; letter-spacing:.06em; color: var(--kwf-muted); margin-bottom:8px; }
.kwf-receipt-grid p { margin:0; font-size:14px; line-height:1.6; color: var(--kwf-text); }
.kwf-receipt-table { width:100%; border-collapse:separate; border-spacing:0; margin-bottom:18px; font-size:14px; }
.kwf-receipt-table th, .kwf-receipt-table td { padding:11px 12px; border-bottom:1px solid var(--kwf-line); text-align:left; }
.kwf-receipt-table th { background: var(--kwf-soft); color: var(--kwf-ink); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.kwf-receipt-table td small { display:block; color: var(--kwf-muted); font-size:11px; margin-top:2px; }
.kwf-receipt-totals { display:grid; gap:8px; max-width:320px; margin: 0 0 24px auto; }
.kwf-receipt-totals div { display:flex; justify-content:space-between; gap:12px; font-size:14px; color: var(--kwf-muted); }
.kwf-receipt-total { border-top:1px solid var(--kwf-line); padding-top:8px; margin-top:4px; }
.kwf-receipt-total span, .kwf-receipt-total strong { color: var(--kwf-ink) !important; font-size:16px !important; font-weight:700; }
.kwf-receipt-thanks { background: var(--kwf-green-soft); border-radius:16px; padding:18px 20px; margin-bottom:18px; }
.kwf-receipt-thanks h2 { font-size:16px; color: var(--kwf-green-dark); margin:0 0 6px; }
.kwf-receipt-thanks p { margin:0; color: var(--kwf-text); font-size:14px; }
.kwf-receipt-footer { text-align:center; color: var(--kwf-muted); font-size:12px; }
.kwf-receipt-footer p { margin:2px 0; }
@media (max-width: 640px) {
    .kwf-receipt { padding:20px; }
    .kwf-receipt-header { flex-direction:column; }
    .kwf-receipt-meta { text-align:left; }
    .kwf-receipt-grid { grid-template-columns:1fr; }
    .kwf-receipt-totals { max-width:none; }
}
.kwf-doc-list { margin: 0; padding: 0; list-style: none; display:grid; gap:10px; }
.kwf-doc-list li { padding: 12px 14px 12px 42px; background: var(--kwf-soft); border:1px solid var(--kwf-line); border-radius:14px; position:relative; }
.kwf-doc-list li:before { content:"📄"; position:absolute; left:14px; top:12px; }

/* Fundraising */
.kwf-fr-hero { margin-bottom: 26px; }
.kwf-fr-grid,
.kwf-fr-public-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kwf-fr-card { display:flex; flex-direction:column; gap:12px; overflow:hidden; }
.kwf-fr-card h3 { margin-bottom: 2px; }
.kwf-fr-card-image { display:block; margin: -24px -24px 4px; aspect-ratio: 16/9; border-radius: var(--kwf-radius) var(--kwf-radius) 0 0; overflow:hidden; background: var(--kwf-soft); }
.kwf-fr-card-image img { width:100%; height:100%; object-fit:cover; display:block; }
.kwf-fr-card-body { display:flex; flex-direction:column; gap:10px; }
.kwf-fr-card-body p { margin:0; color: var(--kwf-muted); font-size:13.5px; line-height:1.5; }
.kwf-fr-status { display:inline-flex; align-self:flex-start; padding:4px 10px; border-radius:999px; background: var(--kwf-orange-soft); color: var(--kwf-orange-dark); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.kwf-bar.kwf-fr-progress { height:auto; background:none; overflow:visible; display:flex; flex-direction:column; gap:6px; }
.kwf-bar.kwf-fr-progress > div { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; color: var(--kwf-muted); }
.kwf-bar.kwf-fr-progress > div b { color: var(--kwf-ink); }
.kwf-bar.kwf-fr-progress em { display:block; height:10px; border-radius:99px; background:#eaf1ed; overflow:hidden; font-style:normal; }
.kwf-bar.kwf-fr-progress em i { display:block; height:100%; border-radius:99px; background: linear-gradient(90deg,var(--kwf-green),var(--kwf-orange)); }
.kwf-fr-progress { height: 12px; background:#eaf1ed; border-radius:99px; overflow:hidden; }
.kwf-fr-progress div { height:100%; background: linear-gradient(90deg,var(--kwf-green),var(--kwf-orange)); }
.kwf-fr-meta { display:flex; flex-wrap:wrap; gap:8px; color:var(--kwf-muted); font-size:13px; }
.kwf-fr-pill { display:inline-flex; padding:6px 10px; border-radius:999px; background:var(--kwf-green-soft); color:var(--kwf-green-dark); font-weight:700; }
.kwf-fr-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.kwf-fr-info-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; margin-top:6px; }
.kwf-fr-info-grid > div { background: var(--kwf-soft); border-radius:14px; padding:16px; }
.kwf-fr-info-grid strong { display:block; color: var(--kwf-ink); margin-bottom:6px; font-size:13.5px; }
.kwf-fr-info-grid p { margin:0; color: var(--kwf-muted); font-size:13px; line-height:1.5; }

/* Gift Aid page — compact toggle-switch design */
.kwf-giftaid-toggle-card { padding-bottom:22px; }
.kwf-giftaid-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; }
.kwf-giftaid-toggle-row h2 { margin: 4px 0 6px; font-size: clamp(17px,1.8vw,20px); }
.kwf-giftaid-address-toggle { width:auto; justify-self:start; min-height:36px; padding:8px 16px; font-size:13px; margin-bottom:0; }
.kwf-giftaid-scope-check { font-size:13.5px !important; margin: 2px 0 14px !important; }
.kwf-giftaid-address-panel { margin-top:16px; padding-top:16px; border-top:1px solid var(--kwf-line); display:grid; gap:12px; }
.kwf-giftaid-address-panel[hidden] { display:none !important; }
.kwf-giftaid-missed-note { background: var(--kwf-orange-soft); border-radius:14px; padding:14px 16px; margin: 4px 0 20px; color: var(--kwf-text); font-size:13.5px; }
.kwf-giftaid-inactive-note { background: var(--kwf-soft); border-radius:12px; padding:10px 14px; font-size:13px; margin-bottom:14px; }

/* Toggle switch component (reused for both the main declaration and per-row toggles) */
.kwf-switch { position:relative; display:inline-flex; flex:none; cursor:pointer; }
.kwf-switch input[type="checkbox"] { position:absolute !important; opacity:0 !important; width:100% !important; height:100% !important; max-width:none !important; min-height:0 !important; margin:0 !important; border-radius:0 !important; cursor:pointer; }
.kwf-switch-track { width:50px; height:28px; border-radius:999px; background:#d7dedb; transition: background .18s ease; display:block; }
.kwf-switch-thumb { display:block; width:22px; height:22px; margin:3px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.2); transition: transform .18s ease; }
.kwf-switch input:checked + .kwf-switch-track { background: var(--kwf-green); }
.kwf-switch input:checked + .kwf-switch-track .kwf-switch-thumb { transform: translateX(22px); }
.kwf-switch input:disabled + .kwf-switch-track { opacity:.45; cursor:not-allowed; }
.kwf-switch input:focus-visible + .kwf-switch-track { outline:2px solid var(--kwf-green); outline-offset:2px; }
.kwf-switch-sm .kwf-switch-track { width:38px; height:22px; }
.kwf-switch-sm .kwf-switch-thumb { width:16px; height:16px; margin:3px; }
.kwf-switch-sm input:checked + .kwf-switch-track .kwf-switch-thumb { transform: translateX(16px); }

/* Per-row Gift Aid toggle sits inside its own tiny form within a table cell */
.kwf-giftaid-row-form { display:inline-flex; margin:0; }

/* Image-based tile icon (used for the "Meals" Gift Aid tile) */
.kwf-dtile-icon-img { width:34px; height:34px; border-radius:10px; overflow:hidden; display:inline-block; }
.kwf-dtile-icon-img img { width:100%; height:100%; object-fit:cover; display:block; }

@media (max-width: 640px) {
    .kwf-giftaid-toggle-row { flex-direction:column; align-items:flex-start; }
}

/* My Impact page thumbnail (varied placement vs. Gift Aid's left-side media card) */
.kwf-impact-cause-card .kwf-card-head { align-items:flex-start; }
.kwf-impact-thumb { width:56px; height:56px; border-radius:14px; object-fit:cover; flex:none; }

/* Achievements hero image (right-side banner — a third distinct placement) */
.kwf-ij-hero-with-media { display:flex; align-items:center; justify-content:space-between; gap:24px; text-align:left; }
.kwf-ij-hero-with-media .kwf-ij-hero-text { flex:1; min-width:0; }
.kwf-ij-hero-media { flex:none; width:180px; height:130px; border-radius:16px; object-fit:cover; }
@media (max-width:760px) {
    .kwf-ij-hero-with-media { flex-direction:column; align-items:stretch; text-align:center; }
    .kwf-ij-hero-media { width:100%; height:140px; }
}

/* Dashboard giving-summary banner (full-width strip — a fourth distinct placement) */
.kwf-dashboard-banner { display:block; width:100%; height:auto; max-height:120px; object-fit:cover; border-radius:14px; margin-top:16px; }

/* Achievements */
.kwf-ij-card { text-align:center; }
.kwf-ij-card div:first-child { font-size: 26px; line-height:1; margin-bottom: 8px; }
.kwf-ij-card span { display:block; color: var(--kwf-muted); font-weight:750; }
.kwf-ij-card strong { display:block; color: var(--kwf-ink); font-size: 22px; margin-top: 5px; }
.kwf-ij-challenge {
    display:grid;
    grid-template-columns: minmax(0,1fr) 180px;
    gap: 22px;
    align-items:center;
    background: var(--kwf-orange-soft);
    border: 1px solid #ffd9c8;
    border-radius: 28px;
    padding: 28px;
    margin: 24px 0;
}
.kwf-ij-large-trophy { font-size: 60px; text-align:center; filter: drop-shadow(0 12px 20px rgba(245,112,53,.18)); }
.kwf-ij-progress-info { display:flex; justify-content:space-between; gap:12px; margin: 16px 0 8px; font-weight:700; color: var(--kwf-ink); }
.kwf-ij-rewards { display:flex; flex-wrap:wrap; gap:8px; margin: 14px 0 18px; }
.kwf-ij-rewards span { background:#fff; border:1px solid #ffd9c8; border-radius:999px; padding: 7px 11px; color:#8a3d27; font-weight:750; }
.kwf-ij-category-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 28px; }
.kwf-ij-category-icon { font-size: 24px; margin-bottom: 8px; }
.kwf-badges { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kwf-badge { box-shadow: none; }
.kwf-badge strong { display:block; color:var(--kwf-ink); }
.kwf-badge span { color:var(--kwf-muted); }
.kwf-badge.earned { border-color: rgba(39,150,60,.30); background: linear-gradient(180deg,#fff,#f4fff7); }
.kwf-badge.locked { opacity:.62; filter: grayscale(.3); }
.kwf-badge.standard { border-color: rgba(104,123,114,.22); }
.kwf-badge.rare { border-color: rgba(39,150,60,.34); background: linear-gradient(180deg,#fff,#f4fff7); }
.kwf-badge.epic { border-color: rgba(98,83,180,.34); background: linear-gradient(180deg,#fff,#f7f5ff); }
.kwf-badge.legendary { border-color: rgba(245,112,53,.38); background: linear-gradient(180deg,#fff,#fff6ef); }

/* Impact */
.kwf-impact-table td:nth-child(4) { max-width: 360px; }

/* Email-style report */
.kwf-email-report {
    background: #f4f7f5;
    border: 1px solid var(--kwf-line);
    border-radius: 30px;
    padding: 18px;
    margin: 26px 0;
    box-shadow: var(--kwf-shadow);
}
.kwf-email-report-top {
    text-align:center;
    color:#fff;
    background:
        radial-gradient(circle at 88% 0%, rgba(245,112,53,.42), transparent 30%),
        linear-gradient(135deg, var(--kwf-green), #1e7d34);
    border-radius: 24px 24px 0 0;
    padding: 34px 28px;
}
.kwf-confetti { font-size: 24px; line-height:1; margin-bottom: 8px; }
.kwf-email-report-top span { display:block; color:#eaffef; font-weight:700; text-transform:uppercase; letter-spacing:.12em; font-size:12px; margin-bottom: 9px; }
.kwf-email-report-top h2 { color:#fff !important; font-size: clamp(20px,2.2vw,25px); margin: 0 0 10px; }
.kwf-email-report-top p { color: rgba(255,255,255,.92); max-width: 680px; margin:0 auto; font-size:17px; }
.kwf-email-report-body { background:#fff; border-radius: 0 0 24px 24px; padding: clamp(22px, 4vw, 34px); }
.kwf-report-highlight {
    background: var(--kwf-orange-soft);
    border: 1px solid #ffd9c8;
    border-left: 6px solid var(--kwf-orange);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 22px;
}
.kwf-report-highlight strong { display:block; color: var(--kwf-green); font-size: 15px; margin-bottom: 6px; }
.kwf-report-highlight p { margin:0; color: var(--kwf-text); }
.kwf-email-metric-row { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.kwf-email-metric-row div { background:#f7fbf8; border:1px solid var(--kwf-line); border-radius: 18px; padding: 16px; }
.kwf-email-metric-row span { display:block; color:var(--kwf-muted); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
.kwf-email-metric-row strong { color:var(--kwf-ink); font-size:19px; line-height:1.1; }
.kwf-report-sections { margin-top: 10px; }
.kwf-mini-report-card { box-shadow:none; }
.kwf-report-purpose-list { margin: 0; padding: 0; list-style:none; display:grid; gap:10px; }
.kwf-report-purpose-list li { position:relative; padding: 12px 14px 12px 40px; background:#f7fbf8; border:1px solid var(--kwf-line); border-radius:14px; }
.kwf-report-purpose-list li:before { content:"✓"; position:absolute; left:14px; top:12px; color:var(--kwf-green); font-weight:700; }
.kwf-report-signature { margin-top: 24px; padding: 20px; border-radius: 18px; background: #fbfdfc; border-top: 4px solid var(--kwf-orange); }
.kwf-report-signature p { margin: 0 0 14px; }
.kwf-report-signature div { display:flex; flex-direction:column; gap:3px; color:var(--kwf-muted); }
.kwf-report-signature div strong { color: var(--kwf-green); font-size: 15px; }

/* Responsive */
@media (max-width: 1100px) {
    .kwf-stat-grid,
    .kwf-impact-stat-grid,
    .kwf-ij-top-cards,
    .kwf-report-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kwf-fr-grid,
    .kwf-fr-public-grid,
    .kwf-fr-info-grid,
    .kwf-ij-category-grid,
    .kwf-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .kwf-portal { padding: 18px 14px 50px; }
    .kwf-portal-shell { grid-template-columns: 1fr; gap: 0; position: relative; }
    .kwf-portal-brand { display:none; }
    .kwf-grid-2,
    .kwf-next-impact-grid,
    .kwf-email-metric-row,
    .kwf-ij-challenge { grid-template-columns: 1fr; }
    .kwf-ij-large-trophy { display:none; }
}
@media (max-width: 640px) {
    .kwf-stat-grid,
    .kwf-impact-stat-grid,
    .kwf-ij-top-cards,
    .kwf-report-stat-grid,
    .kwf-fr-grid,
    .kwf-fr-public-grid,
    .kwf-fr-info-grid,
    .kwf-ij-category-grid,
    .kwf-badges { grid-template-columns: 1fr; }
    .kwf-card,
    .kwf-stat,
    .kwf-dashboard-welcome,
    .kwf-page-hero,
    .kwf-ij-hero { border-radius: 22px; }
    .kwf-card-head,
    .kwf-receipt-header { flex-direction:column; }
    .kwf-dashboard-actions .kwf-btn,
    .kwf-dashboard-actions .kwf-primary-action,
    .kwf-dashboard-actions .kwf-secondary-action { width:100%; }
}

/* Print report only */
@media print {
    body * { visibility: hidden !important; }
    .kwf-email-report, .kwf-email-report * { visibility: visible !important; }
    .kwf-email-report { position:absolute; left:0; top:0; width:100%; margin:0; box-shadow:none; border:0; padding:0; }
    .kwf-portal-nav, .kwf-dashboard-actions, .kwf-notice { display:none !important; }
}

/* ========================================================================== 
   v1.0.4 — Donations table + giving breakdown + delivery report polish
   ========================================================================== */
.kwf-giving-breakdown-list{
    display:grid;
    gap:16px;
}
.kwf-giving-row{
    background:linear-gradient(180deg,#ffffff,#f9fdfb);
    border:1px solid var(--kwf-line);
    border-radius:18px;
    padding:14px 16px;
}
.kwf-giving-row-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    margin-bottom:10px;
}
.kwf-giving-row-top strong{
    min-width:0;
    color:var(--kwf-ink);
    font-size:15px;
    line-height:1.35;
    font-weight:700;
}
.kwf-giving-row-top span{
    color:var(--kwf-green);
    font-weight:700;
    white-space:nowrap;
}
.kwf-giving-track{
    height:10px;
    background:#eaf1ed;
    border-radius:999px;
    overflow:hidden;
}
.kwf-giving-track i{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,var(--kwf-green),var(--kwf-orange));
}

.kwf-donations-history-card .kwf-card-head{
    margin-bottom:20px;
}
.kwf-donation-table-v2{
    table-layout:fixed;
    min-width:860px;
}
.kwf-donation-table-v2 th,
.kwf-donation-table-v2 td{
    font-size:14px;
    line-height:1.45;
    vertical-align:middle;
}
.kwf-donation-table-v2 th:nth-child(1),
.kwf-donation-table-v2 td:nth-child(1){width:110px;}
.kwf-donation-table-v2 th:nth-child(2),
.kwf-donation-table-v2 td:nth-child(2){width:auto;}
.kwf-donation-table-v2 th:nth-child(3),
.kwf-donation-table-v2 td:nth-child(3){width:120px;}
.kwf-donation-table-v2 th:nth-child(4),
.kwf-donation-table-v2 td:nth-child(4){width:270px;}
.kwf-donation-table-v2 th span{
    display:block;
    margin-top:2px;
    font-size:10px;
    letter-spacing:.08em;
    color:var(--kwf-muted);
}
.kwf-order-ref{
    display:inline-flex;
    align-items:center;
    padding:7px 10px;
    border-radius:999px;
    background:var(--kwf-green-soft);
    color:var(--kwf-green-dark)!important;
    text-decoration:none!important;
    font-weight:700;
    white-space:nowrap;
}
.kwf-order-description{
    display:block;
    color:var(--kwf-ink);
    font-size:14px;
    line-height:1.35;
    font-weight:700;
}
.kwf-order-meta{
    display:block;
    margin-top:5px;
    color:var(--kwf-muted);
    font-size:12px;
    line-height:1.35;
}
.kwf-amount-cell{
    color:var(--kwf-green)!important;
    font-weight:700;
    white-space:nowrap;
}
.kwf-table-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}
.kwf-table-actions .kwf-table-action{
    min-height:34px;
    padding:8px 12px;
    font-size:12px;
}
.kwf-table-action-outline{
    background:#fff!important;
    color:var(--kwf-green)!important;
    border-color:rgba(39,150,60,.28)!important;
    box-shadow:none!important;
}
.kwf-table-action-outline:hover{
    background:var(--kwf-green-soft)!important;
    color:var(--kwf-green-dark)!important;
}

.kwf-donor-delivery-report{
    overflow:hidden;
    background:#fff;
    border:1px solid var(--kwf-line);
    border-radius:20px;
    box-shadow:var(--kwf-shadow-sm);
    margin-bottom:24px;
}
.kwf-donor-report-top{
    text-align:center;
    padding:22px 24px;
    background: var(--kwf-soft);
    border-bottom: 3px solid var(--kwf-green);
    color: var(--kwf-ink);
}
.kwf-donor-report-top .kwf-report-confetti{
    font-size:20px;
    line-height:1;
    margin-bottom:6px;
}
.kwf-donor-report-top span{
    display:block;
    margin-bottom:6px;
    color: var(--kwf-green-dark);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.1em;
    font-weight:700;
}
.kwf-donor-report-top h1{
    color: var(--kwf-ink) !important;
    margin-bottom:8px !important;
    font-size: clamp(20px, 2.2vw, 25px) !important;
}
.kwf-donor-report-top p{
    color: var(--kwf-muted);
    max-width:640px;
    margin:0 auto;
    font-size:14px;
}
.kwf-donor-report-body{
    padding:24px;
}
.kwf-report-delivery-list{
    display:grid;
    gap:16px;
    margin-top:20px;
}
.kwf-report-delivery-card{
    border:1px solid var(--kwf-line);
    border-radius:22px;
    background:linear-gradient(180deg,#fff,#fbfffc);
    padding:20px;
}
.kwf-report-delivery-card-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin-bottom:14px;
}
.kwf-report-delivery-card-head span{
    display:block;
    color:var(--kwf-orange);
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.1em;
    margin-bottom:4px;
}
.kwf-report-delivery-card-head h3{
    margin:0;
}
.kwf-report-delivery-card-head > strong{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border-radius:999px;
    color:var(--kwf-green-dark);
    background:var(--kwf-green-soft);
    white-space:nowrap;
    font-size:12px;
}
.kwf-report-delivery-meta{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-bottom:14px;
}
.kwf-report-delivery-meta span{
    display:block;
    padding:11px 12px;
    border-radius:14px;
    background:var(--kwf-soft);
    color:var(--kwf-muted);
    font-size:12px;
}
.kwf-report-delivery-meta b{
    display:block;
    margin-top:3px;
    color:var(--kwf-ink);
    font-size:13px;
}
.kwf-report-impact-line{
    margin:12px 0;
    padding:14px 16px;
    border-left:5px solid var(--kwf-orange);
    border-radius:14px;
    background:var(--kwf-orange-soft);
    color:var(--kwf-text);
}
.kwf-report-impact-line strong{
    color:var(--kwf-green-dark);
}

@media(max-width:900px){
    .kwf-donation-table-v2{min-width:720px;}
    .kwf-donation-table-v2 th:nth-child(4),
    .kwf-donation-table-v2 td:nth-child(4){width:230px;}
    .kwf-report-delivery-meta{grid-template-columns:1fr 1fr;}
}
@media(max-width:640px){
    .kwf-giving-row-top{display:block;}
    .kwf-giving-row-top span{display:block;margin-top:6px;}
    .kwf-donor-report-body{padding:22px;}
    .kwf-report-delivery-card-head{display:block;}
    .kwf-report-delivery-card-head > strong{margin-top:10px;}
    .kwf-report-delivery-meta{grid-template-columns:1fr;}
}


/* v1.3.0 product/UX polish */
.kwf-auth-modern{display:grid;grid-template-columns:minmax(320px,520px) 1fr;min-height:620px;max-width:1280px;margin:20px auto 54px;background:#fff;border:1px solid var(--kwf-line);border-radius:28px;overflow:hidden;box-shadow:var(--kwf-shadow)}
.kwf-auth-left{padding:48px;display:flex;flex-direction:column;justify-content:center;background:#fff}
.kwf-auth-logo{font-weight:700;color:var(--kwf-ink);font-size:20px;margin-bottom:50px;letter-spacing:-.02em}
.kwf-auth-form h1{font-size:clamp(21px,2.2vw,26px);line-height:1.05;margin:0 0 12px;color:var(--kwf-ink)}
.kwf-auth-form p{color:var(--kwf-muted);font-size:16px;line-height:1.65;margin:0 0 22px}
.kwf-auth-form button,.kwf-auth-main-link{display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;border-radius:999px;border:0;background:#101010;color:#fff!important;font-weight:700;text-decoration:none;margin-top:10px}
.kwf-auth-form label{font-weight:760;color:var(--kwf-ink)}
.kwf-auth-form input:not([type=checkbox]){min-height:54px;border-radius:12px;border:1px solid var(--kwf-line);padding:0 15px;background:#fff}
.kwf-auth-visual{padding:42px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f5132,#229c44 58%,#f6a313);color:#fff;position:relative;overflow:hidden}
.kwf-auth-visual:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 25% 25%,rgba(255,255,255,.18),transparent 35%),radial-gradient(circle at 80% 80%,rgba(0,0,0,.18),transparent 35%)}
.kwf-auth-visual-card{position:relative;max-width:520px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(8px);border-radius:28px;padding:42px;box-shadow:0 25px 90px rgba(0,0,0,.18)}
.kwf-auth-visual-card h2{font-size:clamp(23px,2.6vw,29px);line-height:1.04;margin:10px 0 16px;color:#fff!important;letter-spacing:-.05em}
.kwf-auth-visual-card p,.kwf-auth-visual-card li{color:rgba(255,255,255,.94);font-size:17px;line-height:1.7}
.kwf-auth-visual-card ul{margin:20px 0 0;padding-left:22px}
.kwf-team-login-link{margin-top:24px;padding:16px;border-radius:16px;background:#f7fbf8;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--kwf-muted)}
.kwf-team-login-link a{font-weight:700;color:var(--kwf-green)}
.kwf-estimate-note{margin:-12px 0 18px;font-size:14px}.kwf-pending-card{border-left:5px solid #f6a313}.kwf-pending-list{display:grid;gap:10px}.kwf-pending-list div{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:12px 14px;border:1px solid var(--kwf-line);border-radius:14px;background:#fffaf0}.kwf-pending-list b{white-space:nowrap;color:#b36b00}.kwf-amount-cell,.kwf-table td[data-label="Amount"]{white-space:nowrap;font-weight:700;color:var(--kwf-green)}.kwf-order-description{display:block;line-height:1.35}.kwf-order-meta{display:block;margin-top:5px;color:var(--kwf-muted);font-size:13px}.kwf-pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.kwf-pagination a{min-width:36px;height:36px;border-radius:999px;border:1px solid var(--kwf-line);display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--kwf-ink);font-weight:700}.kwf-pagination a.active{background:var(--kwf-green);color:#fff;border-color:var(--kwf-green)}.kwf-fieldset{border:1px solid var(--kwf-line);border-radius:18px;padding:18px;margin:12px 0}.kwf-fieldset legend{font-weight:700;color:var(--kwf-ink);padding:0 8px}.kwf-profile-warning{background:#fff9ed;border:1px solid #ffe4b5;padding:12px 14px;border-radius:14px}.kwf-badge small,.kwf-ij-badge small{display:block;margin-top:8px;color:var(--kwf-muted);font-size:12px;line-height:1.45}.kwf-doc-list li{display:block}.kwf-doc-list li strong{display:block;color:var(--kwf-ink);margin-bottom:4px}.kwf-doc-list li span{display:block;color:var(--kwf-muted);font-size:14px;line-height:1.55}
@media(max-width:900px){.kwf-auth-modern{grid-template-columns:1fr;min-height:auto}.kwf-auth-left{padding:30px 20px}.kwf-auth-visual{padding:24px}.kwf-auth-visual-card{padding:26px}.kwf-table th{display:none}.kwf-table,.kwf-table tbody,.kwf-table tr,.kwf-table td{display:block;width:100%}.kwf-table tr{border-bottom:1px solid var(--kwf-line);padding:12px}.kwf-table td{border:0!important;padding:8px 0!important}.kwf-table td:before{content:attr(data-label);display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--kwf-muted);font-weight:700;margin-bottom:3px}.kwf-table-actions{justify-content:flex-start}.kwf-pending-list div{grid-template-columns:1fr}.kwf-team-login-link{align-items:flex-start;flex-direction:column}}

/* v1.3.0 stabilisation + document generation */
.kwf-generated-doc{background:#fff;border:1px solid var(--kwf-line);border-radius:20px;padding:30px;box-shadow:var(--kwf-shadow-sm);max-width:820px;margin:0 auto 24px;line-height:1.65}
.kwf-generated-doc h1{font-size:clamp(22px,2.4vw,27px);line-height:1.15;margin:6px 0 12px;color:var(--kwf-ink);letter-spacing:-.03em}
.kwf-generated-doc h2{margin-top:22px;color:var(--kwf-green-dark);border-top:1px solid var(--kwf-line);padding-top:18px}
.kwf-generated-doc .kwf-doc-list{margin-top:14px}
.kwf-annual-doc{border-top:6px solid #0f766e}
.kwf-gift-aid-doc{border-top:6px solid #7c3aed}
.kwf-certificate-doc{text-align:center;border:3px double var(--kwf-orange)}
.kwf-certificate-doc .kwf-email-metric-row{text-align:left}
.kwf-certificate-doc .kwf-confetti{font-size:24px;margin-bottom:8px}
.kwf-doc-list-detailed .kwf-btn{margin-top:12px;width:max-content}
.kwf-auth-main-link{font-size:15px}
@media print{.no-print,.kwf-portal-nav,.kwf-dashboard-actions,.kwf-pagination{display:none!important}.kwf-portal,.kwf-portal-shell,.kwf-portal-main{display:block!important;background:#fff!important;padding:0!important;margin:0!important}.kwf-generated-doc,.kwf-receipt,.kwf-donor-delivery-report,.kwf-email-report{box-shadow:none!important;border:0!important;max-width:none!important;margin:0!important}.kwf-card{box-shadow:none!important}}

/* v1.3.0 core foundations: enhanced donor profile */
.kwf-profile-overview{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}
.kwf-profile-overview h2{margin:6px 0 8px}
.kwf-profile-score{min-width:190px;padding:18px;border:1px solid var(--kwf-line);border-radius:20px;background:var(--kwf-soft);text-align:center}
.kwf-profile-score strong{display:block;font-size:26px;line-height:1;color:var(--kwf-green-dark)}
.kwf-profile-score span{display:block;margin:8px 0 12px;color:var(--kwf-muted);font-weight:700}
.kwf-mini-bar{height:9px;border-radius:999px;background:#e7eee8;overflow:hidden}
.kwf-mini-bar i{display:block;height:100%;border-radius:999px;background:var(--kwf-green)}
.kwf-profile-form .kwf-form-section{padding:18px 0;border-top:1px solid var(--kwf-line)}
.kwf-profile-form .kwf-form-section:first-of-type{border-top:0;padding-top:0}
.kwf-profile-form h3{margin:0 0 14px;color:var(--kwf-ink);font-size:18px}
.kwf-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.kwf-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 14px}
.kwf-profile-form select,.kwf-profile-form textarea{width:100%;border:1px solid var(--kwf-line);border-radius:12px;padding:12px;background:#fff;color:var(--kwf-ink)}
@media(max-width:760px){.kwf-profile-overview{display:block}.kwf-profile-score{margin-top:18px}.kwf-form-grid,.kwf-check-grid{grid-template-columns:1fr}}

/* v1.3.0 Document Engine */
.kwf-document-vault{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:18px 0 28px}
.kwf-document-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:22px;box-shadow:0 14px 34px rgba(15,23,42,.06);display:flex;flex-direction:column;justify-content:space-between;gap:16px;min-height:220px;position:relative;overflow:hidden}
.kwf-document-card:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:#2563eb}
.kwf-document-card-annual:before{background:#0f766e}.kwf-document-card-gift-aid:before{background:#7c3aed}.kwf-document-card-fundraiser:before{background:#d97706}.kwf-document-card-receipt:before{background:#16a34a}
.kwf-document-card h3{margin:8px 0 8px;font-size:1rem}.kwf-document-card p{margin:0;color:#64748b}.kwf-document-card small{display:block;margin-top:12px;color:#475569;font-weight:700}.kwf-doc-type{display:inline-flex;border-radius:999px;background:#f1f5f9;padding:5px 10px;font-size:.76rem;font-weight:700;color:#334155;text-transform:uppercase;letter-spacing:.04em}
.kwf-document-note{border-left:5px solid #f59e0b}.kwf-doc-header{display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:1px solid rgba(15,23,42,.08);padding-bottom:14px;margin-bottom:18px}.kwf-doc-header strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:6px 10px}
@media print{.no-print,.kwf-portal-nav,.kwf-notice{display:none!important}.kwf-portal,.kwf-portal-shell,.kwf-portal-main{display:block!important;background:#fff!important;padding:0!important}.kwf-generated-doc,.kwf-receipt,.kwf-donor-delivery-report{box-shadow:none!important;border:0!important;max-width:none!important;margin:0!important;padding:20px!important}.kwf-table th{display:table-cell!important}.kwf-table td{display:table-cell!important}.kwf-table td:before{display:none!important}}

/* v1.4.1 Build 3: engagement, sponsorship and next-action polish */
.kwf-next-impact-card em{display:inline-block;margin-top:10px;font-style:normal;font-weight:700;color:inherit;opacity:.88}
.kwf-sponsorship-types{display:grid;gap:14px}
.kwf-sponsorship-types article{border:1px solid rgba(15,23,42,.1);border-radius:16px;padding:16px;background:#fff}
.kwf-sponsorship-types article strong{display:block;margin-bottom:6px;color:#0f172a}
.kwf-sponsorship-types article p{margin:0;color:#64748b}
.kwf-sponsorship-form textarea{min-height:120px}
.kwf-profile-complete{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid rgba(22,163,74,.18);background:rgba(22,163,74,.06);border-radius:14px;padding:12px 14px;margin:0 0 16px}
.kwf-profile-complete span{color:#64748b;font-size:.92rem}
@media(max-width:700px){.kwf-profile-complete{display:block}.kwf-profile-complete span{display:block;margin-top:4px}}

/* ==========================================================================
   Dashboard v2 — colourful KPI tiles + charts.
   Scoped entirely under .kwf-dashboard-v2 so other portal tabs
   (fundraising, achievements, documents, profile...) are untouched.
   Brand green/orange stay on the nav, hero and primary "total donated" tile;
   everything else in here uses a varied, more playful palette.
   ========================================================================== */
.kwf-dashboard-v2 { display: block; }

.kwf-dtopbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
}
.kwf-dtopbar-crumb { display:flex; align-items:center; gap:8px; color: var(--kwf-muted); font-weight:700; font-size:14px; }
.kwf-dtopbar-crumb i { font-style:normal; opacity:.6; }
.kwf-dtopbar-crumb b { color: var(--kwf-ink); font-weight:700; }
.kwf-duser { position: relative; }
.kwf-dtopbar-user {
    display:flex;
    align-items:center;
    gap:10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    font: inherit;
}
.kwf-dtopbar-user:hover { background:#fff; border-color: var(--kwf-line); }
.kwf-davatar {
    display:inline-grid;
    place-items:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background: linear-gradient(135deg, var(--kwf-green), var(--kwf-green-dark));
    color:#fff;
    font-weight:700;
    font-size:13px;
    letter-spacing:.02em;
    box-shadow: 0 8px 18px rgba(39,150,60,.22);
    flex: none;
}
.kwf-dtopbar-name { font-weight:700; color: var(--kwf-ink); }
.kwf-duser-caret { width:16px; height:16px; color: var(--kwf-muted); transition: transform .16s ease; }
.kwf-duser.kwf-duser-open .kwf-duser-caret { transform: rotate(180deg); }
.kwf-duser-menu {
    display:none;
    position:absolute;
    top: calc(100% + 8px);
    right:0;
    min-width:200px;
    background:#fff;
    border:1px solid var(--kwf-line);
    border-radius:16px;
    box-shadow: var(--kwf-shadow);
    padding:8px;
    z-index:70;
}
.kwf-duser.kwf-duser-open .kwf-duser-menu { display:block; }
.kwf-duser-menu a {
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-radius:12px;
    color: var(--kwf-text);
    font-weight:750;
    text-decoration:none !important;
}
.kwf-duser-menu a:hover { background: var(--kwf-green-soft); color: var(--kwf-green-dark) !important; }
.kwf-duser-menu a.kwf-duser-logout { color: #a0331d; }
.kwf-duser-menu a.kwf-duser-logout:hover { background: #fff0ed; color:#a0331d !important; }
.kwf-duser-menu .kwf-nav-icon { opacity:.8; }

/* Colourful KPI tiles */
.kwf-dtile-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; margin: 22px 0 26px; }
.kwf-dtile {
    position:relative;
    overflow:hidden;
    padding: 22px;
    border-radius: var(--kwf-radius-sm);
    color:#fff;
    box-shadow: 0 16px 32px rgba(15,23,42,.14);
    display:flex;
    flex-direction:column;
    gap:10px;
}
.kwf-dtile:after {
    content:"";
    position:absolute;
    right:-30px;
    bottom:-30px;
    width:110px;
    height:110px;
    border-radius:50%;
    background: rgba(255,255,255,.14);
}
.kwf-dtile-icon { width:34px; height:34px; display:inline-grid; place-items:center; border-radius:10px; background: rgba(255,255,255,.18); }
.kwf-dtile-icon svg { width:19px; height:19px; color:#fff; }
.kwf-dtile-label { position:relative; z-index:1; font-weight:750; opacity:.92; font-size:14px; }
.kwf-dtile-value { position:relative; z-index:1; font-size: clamp(18px,1.8vw,22px); font-weight:700; letter-spacing:-.03em; line-height:1.1; }
.kwf-dtile-value.kwf-dtile-value.kwf-dtile-value.kwf-dtile-value,
.kwf-dtile-value.kwf-dtile-value.kwf-dtile-value.kwf-dtile-value * { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.kwf-dtile-brand  { background: linear-gradient(135deg, var(--kwf-green), var(--kwf-green-dark)); }
.kwf-dtile-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.kwf-dtile-teal   { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.kwf-dtile-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

/* Chart row */
.kwf-dgrid-main { display:grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items:start; margin: 0 0 24px; }
.kwf-dchart-card, .kwf-ddonut-card { margin-bottom:0; }

/* Trend line/area chart */
.kwf-dtrend { width:100%; }
.kwf-dtrend-svg { width:100%; height:220px; display:block; overflow:visible; }
.kwf-dtrend-grid { stroke: var(--kwf-line); stroke-width:1; }
.kwf-dtrend-line { stroke: var(--kwf-green); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.kwf-dtrend-dot { fill:#fff; stroke: var(--kwf-green); stroke-width:2.2; }
.kwf-dtrend-axis { display:flex; justify-content:space-between; margin-top:8px; color: var(--kwf-muted); font-size:12px; font-weight:700; }

/* Donut chart + legend */
.kwf-ddonut { display:flex; flex-direction:column; align-items:center; gap:18px; }
.kwf-ddonut-svg { width:180px; height:180px; }
.kwf-ddonut-total-label { fill: var(--kwf-muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.kwf-ddonut-total-value { fill: var(--kwf-ink); font-size:15px; font-weight:700; }
.kwf-ddonut-legend { width:100%; display:grid; gap:12px; }
.kwf-ddonut-legend-row { display:flex; align-items:center; gap:8px; }
.kwf-ddonut-dot { width:10px; height:10px; border-radius:50%; flex:none; }
.kwf-ddonut-legend-label { flex:1; min-width:0; color: var(--kwf-text); font-weight:700; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kwf-ddonut-legend-percent { color: var(--kwf-ink); font-weight:700; font-size:13.5px; }
.kwf-ddonut-track { height:6px; border-radius:99px; background:#eef1f4; overflow:hidden; margin: -4px 0 0 18px; }
.kwf-ddonut-track i { display:block; height:100%; border-radius:99px; }

@media (max-width: 1100px) {
    .kwf-dtile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .kwf-dgrid-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .kwf-dtile-grid { grid-template-columns: 1fr; }
    .kwf-dtile { border-radius:20px; }
}

/* ==========================================================================
   App shell v1.6.0 — portal-wide, full-page layout.
   Everything below applies to ALL tabs (dashboard, donations, impact, gift
   aid, fundraising, achievements, reports, sponsorships, documents, profile),
   not just the dashboard. Existing per-tab data/markup is untouched — this
   only restyles shared shell/hero classes and adds the topbar + mobile nav.
   ========================================================================== */

/* Full-bleed layout instead of the old 1220px boxed container. */
.kwf-portal.kwf-app {
    max-width: none;
    width: 100%;
    padding: 20px clamp(14px, 2.4vw, 36px) 60px;
    background: #f4f6f8;
}
.kwf-portal-col { display:flex; flex-direction:column; min-width:0; }

/* Flatten every hero/banner block portal-wide into a slim admin-style header. */
.kwf-dashboard-welcome,
.kwf-page-hero,
.kwf-ij-hero {
    background: #fff;
    color: var(--kwf-text);
    border: 1px solid var(--kwf-line);
    border-radius: 18px;
    padding: clamp(18px, 2.6vw, 28px);
    box-shadow: var(--kwf-shadow-sm);
}
.kwf-dashboard-welcome:after,
.kwf-page-hero:after,
.kwf-ij-hero:after { content: none; }
.kwf-dashboard-welcome h1, .kwf-page-hero h1, .kwf-ij-hero h1,
.kwf-dashboard-welcome h2, .kwf-page-hero h2, .kwf-ij-hero h2 {
    color: var(--kwf-ink) !important;
    font-size: clamp(22px, 2.6vw, 30px) !important;
}
.kwf-dashboard-welcome p, .kwf-page-hero p, .kwf-ij-hero p {
    color: var(--kwf-muted) !important;
}
.kwf-dashboard-welcome .kwf-eyebrow, .kwf-page-hero .kwf-eyebrow, .kwf-ij-hero .kwf-eyebrow { color: var(--kwf-orange); }
.kwf-dashboard-welcome .kwf-eyebrow:before, .kwf-page-hero .kwf-eyebrow:before, .kwf-ij-hero .kwf-eyebrow:before { background: var(--kwf-orange); }

/* Topbar — now rendered on every tab, not just the dashboard. */
.kwf-dtopbar-left { display:flex; align-items:center; gap:12px; min-width:0; }
.kwf-nav-toggle {
    display:none;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:12px;
    border:1px solid var(--kwf-line);
    background:#fff;
    color: var(--kwf-ink);
    cursor:pointer;
    flex: none;
}
.kwf-nav-toggle svg { width:19px; height:19px; }

/* Sidebar nav icons */
.kwf-portal-nav a { gap: 10px; }
.kwf-nav-icon { display:inline-flex; width:18px; height:18px; flex:none; opacity:.85; }
.kwf-nav-icon svg { width:18px; height:18px; }

/* Mobile: hamburger-driven slide-in drawer instead of horizontal-scroll pills. */
@media (max-width: 900px) {
    .kwf-nav-toggle { display:inline-flex; }
    .kwf-portal-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(82vw, 300px);
        z-index: 60;
        overflow-y: auto;
        border-radius: 0 22px 22px 0;
        transform: translateX(-105%);
        transition: transform .25s ease;
    }
    .kwf-portal-shell.kwf-nav-open .kwf-portal-nav {
        transform: translateX(0);
        box-shadow: 0 24px 60px rgba(15,23,42,.28);
    }
    .kwf-portal-shell.kwf-nav-open:before {
        content:"";
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,.45);
        z-index: 55;
    }
    .kwf-portal-brand { display:flex; }
    .kwf-dtopbar-crumb span,
    .kwf-dtopbar-crumb i { display:none; }
}
@media (max-width: 480px) {
    .kwf-dtopbar-name { display:none; }
}

/* ==========================================================================
   KWF Portal shell root v1.9.17
   One source of truth for the standalone portal canvas.
   Auth pages use .kwf-standalone-auth-page. Logged-in portal pages use
   .kwf-logged-in-portal-page. The old .kwf-app-page shell is retired.
   ========================================================================== */
html:has(body.kwf-standalone-portal-page),
body.kwf-standalone-portal-page{
    margin:0 !important;
    min-height:100% !important;
    background:#f6f7f5 !important;
}
body.kwf-standalone-portal-page{
    overflow-x:hidden !important;
}
body.kwf-logged-in-portal-page,
body.kwf-logged-in-portal-page .kwf-portal,
body.kwf-logged-in-portal-page .kwf-portal-shell,
body.kwf-logged-in-portal-page .kwf-portal-main{
    background:#f6f7f5 !important;
}
body.kwf-logged-in-portal-page .kwf-portal{
    max-width:none !important;
    width:100% !important;
    min-height:100vh !important;
    margin:0 !important;
    padding:18px clamp(14px,2.4vw,34px) 54px !important;
    color:var(--kwf-text) !important;
}
body.kwf-logged-in-portal-page .kwf-portal-shell{
    max-width:1540px !important;
    margin:0 auto !important;
}
body.kwf-logged-in-portal-page .kwf-portal-main{
    padding-bottom:36px !important;
}
body.kwf-logged-in-portal-page .kwf-portal-back-main{
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
    margin:18px clamp(18px,3vw,48px) 0 !important;
    color:#123c2c !important;
    text-decoration:none !important;
    font-weight:700!important;
    font-size:15px !important;
    letter-spacing:-.01em !important;
}
body.kwf-logged-in-portal-page .kwf-portal-back-main:hover{
    color:var(--kwf-orange,#f57035) !important;
    text-decoration:underline !important;
}
@media (max-width:980px){
    body.kwf-logged-in-portal-page .kwf-portal{padding:16px 14px 40px !important;}
    body.kwf-logged-in-portal-page .kwf-portal-back-main{margin:14px 16px 0 !important;}
}

/* KWF standalone auth v1.9.8: true 50/50 desktop, no theme chrome, viewport fit */
html body.kwf-standalone-auth-page,
html body.kwf-standalone-auth-page #page,
html body.kwf-standalone-auth-page .kwf-portal{
    width:100% !important;
    min-height:100svh !important;
    margin:0 !important;
    padding:0 !important;
    background:#fff !important;
}
body.kwf-standalone-auth-page{
    overflow:hidden !important;
}
body.kwf-standalone-auth-page .kwf-auth-stage{
    height:100svh !important;
    min-height:0 !important;
    padding:16px clamp(18px,2.5vw,40px) !important;
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-rows:24px minmax(0,1fr) !important;
    gap:12px !important;
    background:#fff !important;
    overflow:hidden !important;
}
body.kwf-standalone-auth-page .kwf-auth-back-link{
    display:inline-flex !important;
    align-items:center !important;
    width:max-content !important;
    margin:0 !important;
    padding:0 !important;
    color:#111 !important;
    font-size:15px !important;
    font-weight:700!important;
    line-height:1 !important;
    text-decoration:none !important;
}
body.kwf-standalone-auth-page .kwf-auth-back-link:hover{color:var(--kwf-orange,#f58220) !important;}
body.kwf-standalone-auth-page .kwf-auth-modern{
    width:100% !important;
    max-width:1540px !important;
    height:100% !important;
    min-height:0 !important;
    margin:0 auto !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:0 !important;
    overflow:hidden !important;
    border-radius:24px !important;
    border:1px solid #e5e8e6 !important;
    box-shadow:0 18px 55px rgba(12,18,15,.10) !important;
    background:#fff !important;
}
body.kwf-standalone-auth-page .kwf-auth-left{
    min-width:0 !important;
    min-height:0 !important;
    height:100% !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:flex-start !important;
    padding:clamp(24px,4vh,44px) clamp(38px,5vw,76px) !important;
    box-sizing:border-box !important;
}
body.kwf-standalone-auth-page .kwf-auth-logo{
    width:clamp(104px,14vh,150px) !important;
    height:clamp(104px,14vh,150px) !important;
    flex:0 0 auto !important;
    margin:0 0 clamp(18px,2.6vh,28px) !important;
    border-radius:0 !important;
    overflow:hidden !important;
    background:#fff !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
body.kwf-standalone-auth-page .kwf-auth-logo img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    display:block !important;
}
body.kwf-standalone-auth-page .kwf-auth-form{
    width:100% !important;
    max-width:430px !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
}
body.kwf-standalone-auth-page .kwf-auth-form h1{
    font-size:clamp(34px,5.2vh,54px) !important;
    line-height:.98 !important;
    margin:0 0 clamp(8px,1.5vh,14px) !important;
}
body.kwf-standalone-auth-page .kwf-auth-form p{
    font-size:clamp(14px,1.8vh,17px) !important;
    line-height:1.45 !important;
    margin:0 0 clamp(12px,2vh,20px) !important;
}
body.kwf-standalone-auth-page .kwf-auth-form label:not(.kwf-check){
    display:block !important;
    margin:0 0 8px !important;
    font-size:14px !important;
    line-height:1.2 !important;
}
body.kwf-standalone-auth-page .kwf-auth-form input:not([type=checkbox]){
    width:100% !important;
    min-height:clamp(44px,5.6vh,54px) !important;
    margin:0 0 clamp(10px,1.7vh,16px) !important;
    box-sizing:border-box !important;
}
body.kwf-standalone-auth-page .kwf-check{
    margin:0 0 clamp(10px,1.7vh,16px) !important;
}
body.kwf-standalone-auth-page .kwf-auth-form button,
body.kwf-standalone-auth-page .kwf-auth-main-link{
    width:100% !important;
    min-height:clamp(46px,5.8vh,56px) !important;
    margin-top:0 !important;
}
body.kwf-standalone-auth-page .kwf-auth-links{
    width:100% !important;
    max-width:430px !important;
    margin-top:clamp(12px,2vh,20px) !important;
    display:flex !important;
    justify-content:space-between !important;
    gap:18px !important;
}
body.kwf-standalone-auth-page .kwf-team-login-link{
    width:100% !important;
    max-width:430px !important;
    margin-top:clamp(14px,2.2vh,24px) !important;
    padding:clamp(12px,1.8vh,18px) !important;
    box-sizing:border-box !important;
}
body.kwf-standalone-auth-page .kwf-auth-visual{
    min-width:0 !important;
    min-height:0 !important;
    height:100% !important;
    align-self:stretch !important;
    margin:0 !important;
    padding:clamp(24px,4vw,60px) !important;
    border-radius:0 !important;
    background-image:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.50)),var(--kwf-auth-photo) !important;
    background-size:cover !important;
    background-position:center !important;
    overflow:hidden !important;
    filter:grayscale(1) !important;
    box-sizing:border-box !important;
}
body.kwf-standalone-auth-page .kwf-auth-visual-card{
    width:min(560px,100%) !important;
    max-width:560px !important;
    padding:clamp(28px,3.8vw,46px) !important;
    border-radius:24px !important;
    background:rgba(10,10,10,.58) !important;
    border:1px solid rgba(255,255,255,.18) !important;
    box-shadow:0 24px 80px rgba(0,0,0,.36) !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(14px) !important;
    filter:none !important;
}
body.kwf-standalone-auth-page .kwf-auth-visual-card h2{
    font-size:clamp(34px,4.2vw,58px) !important;
    line-height:1.05 !important;
}
@media(max-width:980px){
    body.kwf-standalone-auth-page{overflow:auto !important;}
    body.kwf-standalone-auth-page .kwf-auth-stage{
        height:auto !important;
        min-height:100svh !important;
        padding:14px !important;
        grid-template-rows:auto auto !important;
        overflow:visible !important;
    }
    body.kwf-standalone-auth-page .kwf-auth-modern{
        grid-template-columns:1fr !important;
        height:auto !important;
        min-height:0 !important;
        border-radius:22px !important;
    }
    body.kwf-standalone-auth-page .kwf-auth-left{
        height:auto !important;
        overflow:visible !important;
        padding:28px 22px !important;
        align-items:center !important;
    }
    body.kwf-standalone-auth-page .kwf-auth-form,
    body.kwf-standalone-auth-page .kwf-auth-links,
    body.kwf-standalone-auth-page .kwf-team-login-link{
        max-width:520px !important;
    }
    body.kwf-standalone-auth-page .kwf-auth-logo{
        width:128px !important;
        height:128px !important;
        margin-bottom:22px !important;
        align-self:flex-start !important;
    }
    body.kwf-standalone-auth-page .kwf-auth-visual{
        min-height:420px !important;
        height:auto !important;
        border-radius:0 !important;
        padding:22px !important;
    }
}
@media(max-width:560px){
    body.kwf-standalone-auth-page .kwf-auth-stage{padding:10px !important;gap:10px !important;}
    body.kwf-standalone-auth-page .kwf-auth-left{padding:24px 18px !important;align-items:stretch !important;}
    body.kwf-standalone-auth-page .kwf-auth-logo{width:108px !important;height:108px !important;align-self:flex-start !important;}
    body.kwf-standalone-auth-page .kwf-auth-form h1{font-size:38px !important;}
    body.kwf-standalone-auth-page .kwf-auth-links,
    body.kwf-standalone-auth-page .kwf-team-login-link{flex-direction:column !important;align-items:flex-start !important;gap:10px !important;}
    body.kwf-standalone-auth-page .kwf-auth-visual{min-height:360px !important;}
    body.kwf-standalone-auth-page .kwf-auth-visual-card{padding:22px !important;}
    body.kwf-standalone-auth-page .kwf-auth-visual-card h2{font-size:31px !important;}
    body.kwf-standalone-auth-page .kwf-auth-visual-card p,
    body.kwf-standalone-auth-page .kwf-auth-visual-card li{font-size:15px !important;}
}
@media(max-height:740px) and (min-width:981px){
    body.kwf-standalone-auth-page .kwf-auth-stage{padding-top:10px !important;padding-bottom:10px !important;gap:8px !important;grid-template-rows:20px minmax(0,1fr) !important;}
    body.kwf-standalone-auth-page .kwf-auth-logo{width:94px !important;height:94px !important;margin-bottom:12px !important;}
    body.kwf-standalone-auth-page .kwf-auth-left{padding-top:18px !important;padding-bottom:18px !important;}
    body.kwf-standalone-auth-page .kwf-auth-form h1{font-size:36px !important;margin-bottom:8px !important;}
    body.kwf-standalone-auth-page .kwf-auth-form p{margin-bottom:10px !important;}
    body.kwf-standalone-auth-page .kwf-auth-form input:not([type=checkbox]){min-height:42px !important;margin-bottom:9px !important;}
    body.kwf-standalone-auth-page .kwf-auth-form button,
    body.kwf-standalone-auth-page .kwf-auth-main-link{min-height:44px !important;}
    body.kwf-standalone-auth-page .kwf-auth-links{margin-top:10px !important;}
    body.kwf-standalone-auth-page .kwf-team-login-link{margin-top:10px !important;padding:10px 14px !important;}
    body.kwf-standalone-auth-page .kwf-auth-visual-card{padding:26px !important;}
    body.kwf-standalone-auth-page .kwf-auth-visual-card h2{font-size:38px !important;margin:12px 0 !important;}
    body.kwf-standalone-auth-page .kwf-auth-visual-card ul{margin-top:12px !important;padding-top:12px !important;}
    body.kwf-standalone-auth-page .kwf-auth-visual-card li{margin-bottom:7px !important;}
}


/* ========================================================================== 
   KWF Donor Portal v1.9.17 — standalone portal shell ownership
   This intentionally does not set auth backgrounds or donate-only backgrounds.
   The root canvas is defined once above.
   ========================================================================== */
body.kwf-standalone-auth-page .kwf-portal{
    padding:0 !important;
    min-height:100vh !important;
    background:#fff !important;
}
body.kwf-standalone-auth-page .kwf-auth-stage{
    background:#fff !important;
}
body.kwf-standalone-auth-page .kwf-auth-back-link{
    color:#111 !important;
}
body.kwf-standalone-auth-page .kwf-auth-modern{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
}
body.kwf-standalone-auth-page .kwf-auth-visual{
    height:100% !important;
    min-height:100% !important;
    border-radius:0 !important;
}
@media (max-width:980px){
    body.kwf-standalone-auth-page .kwf-auth-modern{grid-template-columns:1fr !important; height:auto !important; min-height:auto !important;}
    body.kwf-standalone-auth-page .kwf-auth-visual{min-height:420px !important;}
}
@media (max-width:560px){
    body.kwf-standalone-auth-page .kwf-auth-visual{min-height:340px !important;}
}

/* ==========================================================================
   KWF Donor Portal v2.0.0 — Personal Experience foundation
   Scope: dashboard Personal Home, notification centre, saved basket card only.
   ========================================================================== */
.kwf-dashboard-v2 .kwf-personal-home{
    display:grid;
    grid-template-columns: minmax(0,1.35fr) minmax(260px,.85fr) minmax(260px,.85fr);
    gap:16px;
    margin:0 0 24px;
}
.kwf-dashboard-v2 .kwf-personal-card{
    background:#fff;
    border:1px solid var(--kwf-line);
    border-radius:24px;
    padding:22px;
    box-shadow:var(--kwf-shadow-sm);
    min-width:0;
}
.kwf-dashboard-v2 .kwf-personal-card h2{
    margin:0 0 10px;
    font-size:clamp(20px,2vw,26px);
    letter-spacing:-.04em;
}
.kwf-dashboard-v2 .kwf-personal-card p{
    margin:0 0 16px;
    color:var(--kwf-muted);
}
.kwf-dashboard-v2 .kwf-personal-card p strong{
    color:var(--kwf-ink);
    font-weight:700;
}
.kwf-dashboard-v2 .kwf-personal-story{
    background:linear-gradient(135deg,#ffffff,#f4fff7);
}
.kwf-dashboard-v2 .kwf-personal-rank{
    display:grid;
    grid-template-columns:1fr auto;
    gap:6px 14px;
    align-items:end;
    padding:14px 16px;
    border-radius:18px;
    background:var(--kwf-green-soft);
    border:1px solid rgba(39,150,60,.16);
}
.kwf-dashboard-v2 .kwf-personal-rank span{
    color:var(--kwf-green-dark);
    font-weight:700;
}
.kwf-dashboard-v2 .kwf-personal-rank strong{
    color:var(--kwf-ink);
    font-size:24px;
    line-height:1;
    font-weight:700;
}
.kwf-dashboard-v2 .kwf-personal-rank em{
    grid-column:1/-1;
    color:var(--kwf-muted);
    font-style:normal;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
}
.kwf-dashboard-v2 .kwf-personal-progress{
    height:12px;
    border-radius:999px;
    background:#e9f0ec;
    overflow:hidden;
    margin:14px 0 18px;
}
.kwf-dashboard-v2 .kwf-personal-progress i{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,var(--kwf-green),var(--kwf-orange));
}
.kwf-dashboard-v2 .kwf-personal-recommendations{
    margin-bottom:24px;
}
.kwf-dashboard-v2 .kwf-personal-rec-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.kwf-dashboard-v2 .kwf-personal-rec{
    display:block;
    padding:16px;
    border-radius:18px;
    background:#f8fbf9;
    border:1px solid var(--kwf-line);
    text-decoration:none!important;
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.kwf-dashboard-v2 .kwf-personal-rec:hover{
    transform:translateY(-2px);
    border-color:rgba(39,150,60,.32);
    box-shadow:var(--kwf-shadow-sm);
}
.kwf-dashboard-v2 .kwf-personal-rec strong{
    display:block;
    color:var(--kwf-ink);
    font-size:16px;
    font-weight:700;
    margin-bottom:6px;
}
.kwf-dashboard-v2 .kwf-personal-rec span{
    display:block;
    color:var(--kwf-muted);
    font-size:13.5px;
    line-height:1.45;
}
.kwf-dtopbar{
    position:relative;
}
.kwf-dnotify{
    position:relative;
    margin-left:auto;
}
.kwf-dnotify-trigger{
    position:relative;
    width:44px;
    height:44px;
    border-radius:999px;
    border:1px solid var(--kwf-line);
    background:#fff;
    color:var(--kwf-ink);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.kwf-dnotify-trigger svg{
    width:21px;
    height:21px;
}
.kwf-dnotify-count{
    position:absolute;
    top:-5px;
    right:-5px;
    min-width:21px;
    height:21px;
    padding:0 6px;
    border-radius:999px;
    background:var(--kwf-orange);
    color:#fff;
    font-size:11px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
}
.kwf-dnotify-panel{
    display:none;
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:min(360px,calc(100vw - 32px));
    background:#fff;
    border:1px solid var(--kwf-line);
    border-radius:20px;
    box-shadow:var(--kwf-shadow);
    z-index:80;
    overflow:hidden;
}
.kwf-dnotify.kwf-dnotify-open .kwf-dnotify-panel{
    display:block;
}
.kwf-dnotify-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    padding:15px 16px;
    border-bottom:1px solid var(--kwf-line);
}
.kwf-dnotify-head strong{
    color:var(--kwf-ink);
    font-weight:700;
}
.kwf-dnotify-head span{
    color:var(--kwf-muted);
    font-size:12px;
    font-weight:700;
}
.kwf-dnotify-item{
    display:flex;
    gap:12px;
    padding:14px 16px;
    text-decoration:none!important;
    border-bottom:1px solid #eef4f0;
    color:var(--kwf-text)!important;
}
.kwf-dnotify-item:last-child{
    border-bottom:0;
}
.kwf-dnotify-item:hover{
    background:#f8fbf9;
}
.kwf-dnotify-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:var(--kwf-green);
    margin-top:6px;
    flex:none;
}
.kwf-dnotify-basket .kwf-dnotify-dot,
.kwf-dnotify-pending .kwf-dnotify-dot{
    background:var(--kwf-orange);
}
.kwf-dnotify-item strong{
    display:block;
    color:var(--kwf-ink);
    font-size:14px;
    font-weight:700;
    margin-bottom:3px;
}
.kwf-dnotify-item em,
.kwf-dnotify-empty{
    display:block;
    color:var(--kwf-muted);
    font-style:normal;
    font-size:13px;
    line-height:1.4;
}
.kwf-dnotify-empty{
    padding:18px;
}
@media(max-width:1100px){
    .kwf-dashboard-v2 .kwf-personal-home{grid-template-columns:1fr 1fr;}
    .kwf-dashboard-v2 .kwf-personal-story{grid-column:1/-1;}
    .kwf-dashboard-v2 .kwf-personal-rec-grid{grid-template-columns:1fr;}
}
@media(max-width:700px){
    .kwf-dashboard-v2 .kwf-personal-home{grid-template-columns:1fr;}
    .kwf-dnotify-panel{right:-64px;}
    .kwf-dtopbar-name{display:none;}
}

/* v2.0 complete — persistent notifications and saved basket */
.kwf-dnotify-count:empty,
.kwf-dnotify[data-unread="0"] .kwf-dnotify-count {
    opacity: .55;
}
.kwf-dnotify-item.is-read {
    opacity: .68;
}
.kwf-dnotify-item.is-read .kwf-dnotify-dot {
    background: #cbd5cf !important;
}
.kwf-dnotify-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 4px;
    border-top: 1px solid var(--kwf-line);
    margin-top: 8px;
}
.kwf-dnotify-foot a,
.kwf-dnotify-foot button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--kwf-green);
    font: inherit;
    font-size: 12px;
    font-weight:700;
    cursor: pointer;
    text-decoration: none !important;
    padding: 4px;
}
.kwf-dnotify-foot a:hover,
.kwf-dnotify-foot button:hover {
    color: var(--kwf-orange);
}
.kwf-notification-hero {
    margin-bottom: 22px;
}
.kwf-notification-centre .kwf-card-head form {
    margin: 0;
}
.kwf-notification-list {
    display: grid;
    gap: 12px;
}
.kwf-notification-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    border: 1px solid var(--kwf-line);
    border-radius: 18px;
    background: #fff;
    text-decoration: none !important;
    color: var(--kwf-text) !important;
    transition: transform .16s ease, border .16s ease, background .16s ease;
}
.kwf-notification-row:hover {
    transform: translateY(-1px);
    border-color: rgba(39,150,60,.35);
    background: #fbfffc;
}
.kwf-notification-row.is-unread {
    border-left: 5px solid var(--kwf-orange);
    background: linear-gradient(180deg, #ffffff, #fffaf7);
}
.kwf-notification-row.is-read {
    opacity: .75;
}
.kwf-notification-row strong {
    display: block;
    color: var(--kwf-ink);
    font-size: 15px;
    margin-bottom: 3px;
}
.kwf-notification-row em {
    display: block;
    color: var(--kwf-muted);
    font-style: normal;
    font-size: 13.5px;
    line-height: 1.45;
}
.kwf-notification-row small {
    font-size: 11px;
    font-weight:700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--kwf-muted);
}
.kwf-notification-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: var(--kwf-green-soft);
}
.kwf-notification-icon:before {
    content: "•";
    color: var(--kwf-green);
    font-size: 24px;
    line-height: 1;
}
.kwf-notification-basket:before { content: "🧺"; font-size: 18px; }
.kwf-notification-pending:before { content: "⏳"; font-size: 18px; }
.kwf-notification-giftaid:before { content: "£"; font-size: 18px; font-weight:700; }
.kwf-notification-impact:before { content: "✓"; font-size: 20px; font-weight:700; }
.kwf-notification-welcome:before { content: "❤"; font-size: 18px; }
.kwf-notification-milestone:before { content: "★"; font-size: 20px; }
.kwf-saved-basket-actions {
    margin: 12px 0 0;
}
.kwf-saved-basket-actions .kwf-btn {
    width: 100%;
}
@media (max-width: 640px) {
    .kwf-notification-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }
    .kwf-notification-row small {
        grid-column: 2;
    }
    .kwf-dnotify-foot {
        flex-direction: column;
        align-items: stretch;
    }
}

/* v2.1.7 Saved Causes Page */
.kwf-saved-causes-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.kwf-saved-causes-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}
.kwf-saved-causes-summary strong {
    font-size: 28px;
    line-height: 1;
}
.kwf-saved-causes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.kwf-saved-cause-card {
    overflow: hidden;
    padding: 0;
}
.kwf-saved-cause-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
    overflow: hidden;
}
.kwf-saved-cause-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kwf-saved-cause-body {
    padding: 18px;
}
.kwf-saved-cause-body h3 {
    margin: 10px 0 8px;
}
.kwf-saved-cause-body h3 a {
    color: inherit;
    text-decoration: none;
}
.kwf-saved-cause-body p {
    margin: 0 0 16px;
    color: var(--kwf-muted, #667085);
}
.kwf-saved-cause-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.kwf-saved-cause-donate,
.kwf-saved-cause-share,
.kwf-saved-cause-remove {
    min-height: 38px;
}
.kwf-saved-cause-donate,
.kwf-saved-cause-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    font-weight: 700;
}
.kwf-saved-cause-donate {
    background: var(--kwf-primary, #115e59);
    color: #fff;
}
.kwf-saved-cause-share {
    background: #f3f4f6;
    color: #1f2937;
}
.kwf-saved-cause-remove {
    position: static;
    box-shadow: none;
}
@media (max-width: 980px) {
    .kwf-saved-causes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .kwf-saved-causes-hero {
        align-items: flex-start;
        flex-direction: column;
    }
    .kwf-saved-causes-grid {
        grid-template-columns: 1fr;
    }
    .kwf-saved-cause-actions > * {
        flex: 1 1 auto;
    }
}

/* v2.1.11 Recurring Giving Dashboard */
.kwf-recurring-giving-hero{display:flex;align-items:center;justify-content:space-between;gap:18px}.kwf-recurring-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.kwf-recurring-summary .kwf-card{margin:0}.kwf-recurring-summary span{display:block;color:var(--kwf-muted,#667085);font-weight:700;margin-bottom:8px}.kwf-recurring-summary strong{font-size:30px;line-height:1;color:var(--kwf-primary,#115e59)}.kwf-recurring-list{margin-top:18px}.kwf-recurring-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.kwf-recurring-card{border:1px solid #e6eee8;border-radius:20px;padding:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06)}.kwf-recurring-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.kwf-recurring-status{display:inline-flex;align-items:center;border-radius:999px;background:#eef7f1;color:#087a2f;padding:6px 10px;font-size:12px;font-weight:700}.kwf-recurring-ref{color:var(--kwf-muted,#667085);font-weight:700}.kwf-recurring-card h3{font-size:28px;margin:0 0 4px;color:#102a1d}.kwf-recurring-currency{margin:0 0 14px;color:var(--kwf-muted,#667085);font-weight:700}.kwf-recurring-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}.kwf-recurring-meta div{border-radius:14px;background:#f8fbf9;padding:12px}.kwf-recurring-meta dt{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--kwf-muted,#667085);font-weight:700}.kwf-recurring-meta dd{margin:4px 0 0;font-weight:700;color:#102a1d}.kwf-recurring-items{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}.kwf-recurring-items li{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #eef3ef;padding-top:8px}.kwf-recurring-items em{font-style:normal;color:var(--kwf-muted,#667085);font-weight:700}.kwf-recurring-note{margin:0;color:var(--kwf-muted,#667085);font-size:13px}.kwf-recurring-section-empty{padding:10px 0 0}
@media(max-width:900px){.kwf-recurring-summary,.kwf-recurring-grid{grid-template-columns:1fr}.kwf-recurring-giving-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.kwf-recurring-meta{grid-template-columns:1fr}.kwf-recurring-card{padding:15px}}

/* v2.1.12 Recurring Giving manual action requests */
.kwf-recurring-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}
.kwf-recurring-action-request {
    border: 1px solid #d8e0ea;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.kwf-recurring-action-request:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}
.kwf-recurring-action-message {
    display: block;
    flex-basis: 100%;
    min-height: 18px;
    font-size: 13px;
}
.kwf-recurring-action-message.is-success { color: #1f7a3f; }
.kwf-recurring-action-message.is-error { color: #b42318; }
@media (max-width: 640px) {
    .kwf-recurring-actions { align-items: stretch; }
    .kwf-recurring-action-request { width: 100%; }
}

/* v2.2.3 Impact Explorer donor map and district browser */
.kwf-impact-explorer {
    overflow: hidden;
}
.kwf-impact-map-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #e4eee7;
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 120, 68, .10), transparent 28%),
        radial-gradient(circle at 80% 40%, rgba(10, 95, 72, .12), transparent 25%),
        linear-gradient(135deg, #f7fbf8 0%, #eef7f1 100%);
}
.kwf-impact-district-pin {
    display: flex;
    min-height: 96px;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
    border: 1px solid #dbe9de;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    color: #113d2a;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}
.kwf-impact-district-pin:hover,
.kwf-impact-district-pin.is-active {
    border-color: #123d2a;
    background: #123d2a;
    color: #fff;
}
.kwf-impact-district-pin strong {
    font-size: 15px;
    line-height: 1.2;
}
.kwf-impact-district-pin span {
    font-size: 12px;
    font-weight:700;
    opacity: .82;
}
.kwf-impact-district-panel {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: stretch;
}
.kwf-impact-district-summary,
.kwf-impact-district-records {
    border: 1px solid #e5eee8;
    border-radius: 22px;
    padding: 18px;
    background: #fff;
}
.kwf-impact-district-summary h3,
.kwf-impact-district-records h3 {
    margin-top: 0;
}
.kwf-impact-district-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.kwf-impact-district-stats span {
    display: block;
    border-radius: 16px;
    padding: 12px;
    background: #f7fbf8;
}
.kwf-impact-district-stats strong,
.kwf-impact-district-stats em {
    display: block;
}
.kwf-impact-district-stats strong {
    color: #0f5f46;
    font-size: 24px;
    line-height: 1;
}
.kwf-impact-district-stats em {
    margin-top: 6px;
    color: var(--kwf-muted,#667085);
    font-size: 12px;
    font-style: normal;
    font-weight:700;
}
.kwf-impact-district-records {
    display: grid;
    gap: 10px;
}
.kwf-impact-record-card {
    border: 1px solid #eef3ef;
    border-radius: 16px;
    padding: 14px;
    background: #fbfdfb;
}
.kwf-impact-record-card strong,
.kwf-impact-record-card small {
    display: block;
}
.kwf-impact-record-card p {
    margin: 8px 0;
    color: var(--kwf-muted,#667085);
}
.kwf-impact-record-card small {
    color: #0f5f46;
    font-weight:700;
}
@media (max-width: 1100px) {
    .kwf-impact-map-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .kwf-impact-map-grid,
    .kwf-impact-district-panel,
    .kwf-impact-district-stats { grid-template-columns: 1fr; }
    .kwf-impact-map-grid { padding: 12px; }
    .kwf-impact-district-pin { min-height: auto; }
}

/* v2.2.4 Evidence Viewer Foundation */
.kwf-impact-evidence-viewer{margin-top:14px;padding:14px;border:1px solid #e5e7eb;border-radius:14px;background:#f9fafb}
.kwf-impact-evidence-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#111827}
.kwf-impact-evidence-empty{margin:0;color:#6b7280;font-size:.92rem}
.kwf-impact-evidence-group{margin-top:12px}
.kwf-impact-evidence-label{display:block;margin-bottom:8px;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#6b7280}
.kwf-impact-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kwf-impact-evidence-item{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#111827;text-decoration:none;font-size:.88rem;line-height:1.25}
.kwf-impact-evidence-item:hover{border-color:#cbd5e1;text-decoration:none}
.kwf-impact-evidence-thumb{width:42px;height:42px;flex:0 0 42px;border-radius:10px;overflow:hidden;background:#e5e7eb}
.kwf-impact-evidence-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.kwf-impact-evidence-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border-radius:999px;background:#eef2ff;color:#1f2937;font-size:.9rem}
@media (max-width:720px){.kwf-impact-evidence-grid{grid-template-columns:1fr}.kwf-impact-evidence-item{min-height:48px}}


/* v2.2.5 Timeline & Before/After Experiences */
.kwf-impact-timeline-viewer,
.kwf-impact-before-after{margin-top:14px;padding:14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.kwf-impact-timeline-head,
.kwf-impact-before-after-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#111827}
.kwf-impact-timeline-empty,
.kwf-impact-before-after-empty{margin:0;color:#6b7280;font-size:.92rem}
.kwf-impact-timeline-list{position:relative;margin:0;padding:0 0 0 18px;list-style:none;border-left:2px solid #dbe9de}
.kwf-impact-timeline-item{position:relative;margin:0 0 12px;padding:0 0 0 14px}
.kwf-impact-timeline-item:last-child{margin-bottom:0}
.kwf-impact-timeline-dot{position:absolute;left:-24px;top:4px;width:10px;height:10px;border-radius:999px;background:#0f5f46;box-shadow:0 0 0 4px #fff}
.kwf-impact-timeline-item strong{display:block;color:#111827;font-size:.92rem;line-height:1.25}
.kwf-impact-timeline-item small{display:block;margin-top:3px;color:#0f5f46;font-size:.78rem;font-weight:700}
.kwf-impact-timeline-item p{margin:6px 0 0;color:#6b7280;font-size:.88rem}
.kwf-impact-before-after-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kwf-impact-before-after-item{min-height:110px;border:1px solid #edf2ee;border-radius:12px;background:#f9fafb;overflow:hidden}
.kwf-impact-before-after-item span{display:block;padding:8px 10px;color:#475467;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.kwf-impact-before-after-item p{margin:0;padding:0 10px 12px;color:#6b7280;font-size:.88rem}
.kwf-impact-before-after-item img{display:block;width:100%;height:150px;object-fit:cover}
@media (max-width:720px){.kwf-impact-before-after-grid{grid-template-columns:1fr}.kwf-impact-before-after-item img{height:180px}}

/* v2.2.6 Impact Downloads */
.kwf-impact-downloads-viewer{margin-top:14px;padding-top:12px;border-top:1px solid rgba(15,23,42,.08)}
.kwf-impact-downloads-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:#0f172a}
.kwf-impact-downloads-empty{margin:0;color:#64748b;font-size:.92rem}
.kwf-impact-downloads-list{display:grid;gap:8px}
.kwf-impact-download-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(15,23,42,.1);border-radius:12px;background:#fff;text-decoration:none;color:#0f172a;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.kwf-impact-download-item:hover,.kwf-impact-download-item:focus{transform:translateY(-1px);border-color:rgba(20,83,45,.28);box-shadow:0 10px 24px rgba(15,23,42,.08);outline:none}
.kwf-impact-download-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:999px;background:rgba(20,83,45,.08);color:#14532d;font-weight:700}
.kwf-impact-download-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.kwf-impact-download-copy strong{font-size:.94rem;line-height:1.25;color:#0f172a}
.kwf-impact-download-copy em{font-style:normal;font-size:.8rem;color:#64748b}
@media (max-width:640px){.kwf-impact-download-item{align-items:flex-start}.kwf-impact-download-icon{margin-top:2px}}

/* v2.2.7 Impact Search, Filters, Performance & Polish */
.kwf-impact-filter-bar{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(150px,.7fr) minmax(170px,.8fr) auto;gap:12px;align-items:end;margin:16px 0 18px;padding:14px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#f8faf9}
.kwf-impact-filter-bar label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:.85rem;font-weight:700;color:#344054}
.kwf-impact-filter-bar input,.kwf-impact-filter-bar select{width:100%;min-height:42px;border:1px solid #d0d5dd;border-radius:12px;padding:9px 11px;background:#fff;color:#101828;font:inherit;font-weight:600}
.kwf-impact-filter-bar input:focus,.kwf-impact-filter-bar select:focus{outline:2px solid rgba(20,83,45,.18);border-color:#14532d}
.kwf-impact-filter-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.kwf-impact-results-meta{margin:-4px 0 8px;color:#64748b;font-size:.9rem;font-weight:700}
@media (max-width:980px){.kwf-impact-filter-bar{grid-template-columns:1fr 1fr}.kwf-impact-filter-actions{justify-content:flex-start}}
@media (max-width:640px){.kwf-impact-filter-bar{grid-template-columns:1fr;padding:12px}.kwf-impact-filter-actions .kwf-btn{width:100%;justify-content:center}}

/* v2.2.9 Sponsorship Portal Foundation */
.kwf-sponsorship-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(135deg,#fff,#f4fff6);border-radius:28px}.kwf-sponsorship-hero h2{font-size:clamp(28px,3vw,44px);line-height:1.05;margin:8px 0 10px;font-weight:700;color:#123d2a}.kwf-sponsor-hero-stats{min-width:160px;text-align:center;background:#123d2a;color:#fff;border-radius:24px;padding:22px}.kwf-sponsor-hero-stats strong{display:block;font-size:42px;line-height:1;font-weight:700}.kwf-sponsor-hero-stats span{display:block;margin-top:6px;font-weight:700;color:#dff6e8}.kwf-sponsorship-section{margin-top:22px}.kwf-sponsor-profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.kwf-sponsor-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;overflow:hidden;box-shadow:0 16px 38px rgba(15,23,42,.08);display:flex;flex-direction:column;min-width:0}.kwf-sponsor-card-photo{height:190px;background:linear-gradient(135deg,#e8f7ed,#fff2e8);display:flex;align-items:center;justify-content:center;text-decoration:none;overflow:hidden}.kwf-sponsor-card-photo img{width:100%;height:100%;object-fit:cover;display:block}.kwf-sponsor-card-photo span,.kwf-sponsor-avatar span{display:flex;align-items:center;justify-content:center;width:86px;height:86px;border-radius:999px;background:#19943a;color:#fff;font-size:36px;font-weight:700;text-transform:uppercase}.kwf-sponsor-card-body{padding:16px;display:flex;flex-direction:column;gap:10px;flex:1}.kwf-sponsor-card-badges{display:flex;flex-wrap:wrap;gap:6px}.kwf-sponsor-card-badges span,.kwf-sponsor-status{font-size:11px;font-weight:700;border-radius:999px;padding:6px 9px;background:#eaf8ee;color:#087a2f}.kwf-sponsor-card h3{margin:0;font-size:20px;line-height:1.2;font-weight:700;color:#10251b}.kwf-sponsor-card h3 a{color:inherit;text-decoration:none}.kwf-sponsor-card p{margin:0;color:#61746b;line-height:1.45;font-size:14px}.kwf-sponsor-card-meta{font-weight:700;color:#3b4d44!important}.kwf-sponsor-progress{height:9px;border-radius:999px;background:#eef3ef;overflow:hidden;margin-top:auto}.kwf-sponsor-progress span{display:block;height:100%;background:#19943a;border-radius:999px}.kwf-sponsor-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}.kwf-sponsor-view,.kwf-sponsor-cta,.kwf-sponsor-profile-actions .kwf-primary-link,.kwf-sponsor-profile-actions .kwf-secondary-link{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:14px;font-weight:700;text-decoration:none}.kwf-sponsor-view,.kwf-sponsor-profile-actions .kwf-secondary-link{background:#f0f6f2;color:#173c2a}.kwf-sponsor-cta,.kwf-sponsor-profile-actions .kwf-primary-link{background:#ff6b35;color:#fff}.kwf-sponsor-profile-page{display:block}.kwf-sponsor-cover{height:240px;border-radius:28px;background:linear-gradient(135deg,#123d2a,#19943a);background-size:cover;background-position:center;margin-bottom:-70px;box-shadow:0 18px 45px rgba(15,23,42,.12)}.kwf-sponsor-profile-head{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:end;gap:20px;margin-top:0;padding-top:34px}.kwf-sponsor-avatar{width:134px;height:134px;border-radius:999px;background:#fff;border:6px solid #fff;box-shadow:0 14px 35px rgba(15,23,42,.18);display:flex;align-items:center;justify-content:center;overflow:hidden}.kwf-sponsor-avatar img{width:100%;height:100%;object-fit:cover;display:block}.kwf-sponsor-profile-head h2{font-size:clamp(30px,4vw,48px);line-height:1;margin:8px 0 8px;font-weight:700;color:#10251b}.kwf-sponsor-profile-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.kwf-sponsor-profile-actions a{padding:0 18px}.kwf-sponsor-profile-page .kwf-grid-2{margin-top:22px}.kwf-sponsor-profile-page .kwf-doc-list li{display:flex;justify-content:space-between;gap:12px}.kwf-sponsor-profile-page .kwf-doc-list li span{font-weight:700;color:#10251b}@media(max-width:1200px){.kwf-sponsor-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.kwf-sponsorship-hero{align-items:flex-start;flex-direction:column}.kwf-sponsor-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kwf-sponsor-profile-head{grid-template-columns:1fr;align-items:start}.kwf-sponsor-profile-actions{width:100%}.kwf-sponsor-profile-actions a{flex:1}.kwf-sponsor-cover{height:190px}}@media(max-width:640px){.kwf-sponsor-profile-grid{grid-template-columns:1fr}.kwf-sponsor-card-actions{grid-template-columns:1fr}.kwf-sponsor-avatar{width:112px;height:112px}.kwf-sponsor-cover{height:160px;margin-bottom:-52px}.kwf-sponsor-profile-head{padding-top:24px}}

/* v2.2.10 My Sponsorships */
.kwf-sponsor-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 22px}.kwf-sponsor-summary-tile{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.06)}.kwf-sponsor-summary-tile span{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b}.kwf-sponsor-summary-tile strong{display:block;margin:8px 0 3px;font-size:30px;line-height:1;font-weight:700;color:#123d2a}.kwf-sponsor-summary-tile small{display:block;color:#64748b;font-weight:700}.kwf-sponsor-status-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.kwf-sponsor-status-filters a{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 12px;border-radius:999px;text-decoration:none;background:#f3f7f4;color:#173c2a;border:1px solid rgba(15,23,42,.08);font-weight:700}.kwf-sponsor-status-filters a strong{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border-radius:999px;background:#fff;color:#123d2a;font-size:12px}.kwf-sponsor-status-filters a.is-active{background:#123d2a;color:#fff}.kwf-sponsor-status-filters a.is-active strong{background:#dff6e8;color:#123d2a}.kwf-sponsor-card-facts{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:7px}.kwf-sponsor-card-facts li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid rgba(15,23,42,.07);padding-top:7px;font-size:13px}.kwf-sponsor-card-facts span{color:#64748b;font-weight:700}.kwf-sponsor-card-facts strong{color:#10251b;font-weight:700;text-align:right}.kwf-sponsor-status-payment_issue .kwf-sponsor-card-badges span:first-child{background:#fff4e5;color:#b45309}.kwf-sponsor-status-paused .kwf-sponsor-card-badges span:first-child{background:#eef2ff;color:#4338ca}.kwf-sponsor-status-awaiting_review .kwf-sponsor-card-badges span:first-child{background:#fdf2f8;color:#be185d}@media(max-width:1000px){.kwf-sponsor-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.kwf-sponsor-summary-grid{grid-template-columns:1fr}.kwf-sponsor-status-filters a{width:100%;justify-content:space-between}}


/* v2.2.11 Sponsor a Child Discovery */
.kwf-section-count{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#f0f6f2;color:#123d2a;font-weight:700;padding:8px 12px;white-space:nowrap}
.kwf-sponsor-discovery-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr auto;gap:12px;align-items:end;margin:0 0 18px;padding:14px;border:1px solid rgba(15,23,42,.08);border-radius:20px;background:#f8fbf9}
.kwf-sponsor-discovery-filters label{display:grid;gap:6px;margin:0;font-weight:700;color:#173c2a;font-size:13px}
.kwf-sponsor-discovery-filters label span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
.kwf-sponsor-discovery-filters input,.kwf-sponsor-discovery-filters select{width:100%;min-height:44px;border-radius:14px;border:1px solid rgba(15,23,42,.12);background:#fff;padding:10px 12px;font-weight:700;color:#10251b;box-shadow:none}
.kwf-sponsor-filter-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.kwf-sponsor-filter-actions button,.kwf-sponsor-filter-actions a{min-height:44px;border-radius:14px;border:0;text-decoration:none;font-weight:700;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.kwf-sponsor-filter-actions button{background:#123d2a;color:#fff;cursor:pointer}
.kwf-sponsor-filter-actions a{background:#eaf3ee;color:#123d2a}
.kwf-sponsor-progress-label{font-size:12px!important;font-weight:700!important;color:#426253!important;margin-top:-4px!important}
.kwf-sponsor-action-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;background:linear-gradient(135deg,#fff,#f5fff7)}
.kwf-sponsor-action-panel h2{margin-bottom:6px}
.kwf-sponsor-action-panel .kwf-primary-link{white-space:nowrap}
@media(max-width:1120px){.kwf-sponsor-discovery-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.kwf-sponsor-filter-actions{justify-content:flex-start}}
@media(max-width:680px){.kwf-section-count{margin-top:10px}.kwf-sponsor-discovery-filters{grid-template-columns:1fr}.kwf-sponsor-filter-actions{display:grid;grid-template-columns:1fr 1fr}.kwf-sponsor-action-panel{align-items:flex-start;flex-direction:column}.kwf-sponsor-action-panel .kwf-primary-link{width:100%;justify-content:center}}

/* v2.2.12 Sponsored Person Profile Pages */
.kwf-sponsor-profile-v2212 .kwf-sponsor-cover {
	position: relative;
	min-height: 260px;
	border-radius: 24px 24px 0 0;
	background-size: cover;
	background-position: center;
	background-color: #e8f4ee;
	overflow: hidden;
}
.kwf-sponsor-profile-v2212 .kwf-sponsor-cover-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.34));
}
.kwf-sponsor-profile-v2212 .kwf-sponsor-profile-head {
	position: relative;
	margin-top: -70px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: end;
	gap: 20px;
	border-radius: 22px;
}
.kwf-sponsor-profile-v2212 .kwf-sponsor-avatar {
	width: 140px;
	height: 140px;
	border-radius: 999px;
	border: 6px solid #fff;
	background: #e9f7ef;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(0,0,0,.16);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 54px;
	font-weight:700;
	color: #0f7a3c;
}
.kwf-sponsor-profile-v2212 .kwf-sponsor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kwf-sponsor-profile-title h2 { margin-bottom: 4px; }
.kwf-sponsor-profile-headline { margin: 12px 0 0; font-size: 16px; font-weight: 700; color: #1f2937; }
.kwf-sponsor-profile-overview {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: center;
}
.kwf-sponsor-profile-progress-meter {
	padding: 18px;
	border-radius: 18px;
	background: #f7fbf8;
	border: 1px solid #dceee3;
}
.kwf-sponsor-profile-progress-meter strong { display: block; margin-bottom: 10px; font-size: 18px; color: #0f7a3c; }
.kwf-sponsor-profile-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 20px;
	align-items: start;
	margin-top: 20px;
}
.kwf-sponsor-profile-main-col,
.kwf-sponsor-profile-side-col { display: grid; gap: 20px; }
.kwf-sponsor-profile-block p { font-size: 15px; line-height: 1.7; }
.kwf-sponsor-profile-facts {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}
.kwf-sponsor-profile-facts li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid #eef2f0;
}
.kwf-sponsor-profile-facts li:last-child { border-bottom: 0; }
.kwf-sponsor-profile-facts span { color: #667085; }
.kwf-sponsor-profile-facts strong { text-align: right; color: #1f2937; }
.kwf-sponsor-privacy-card { background: #fbf9f0; border-color: #f0dfaa; }
.kwf-sponsor-profile-timeline { margin-top: 20px; }
.kwf-sponsor-timeline-list {
	position: relative;
	list-style: none;
	padding: 0;
	margin: 14px 0 0;
	display: grid;
	gap: 16px;
}
.kwf-sponsor-timeline-list li {
	position: relative;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 12px;
}
.kwf-sponsor-timeline-dot {
	width: 14px;
	height: 14px;
	margin-top: 5px;
	border-radius: 999px;
	background: #0f7a3c;
	box-shadow: 0 0 0 5px #e8f5ed;
}
.kwf-sponsor-timeline-list time { display: block; font-size: 12px; font-weight:700; color: #0f7a3c; text-transform: uppercase; letter-spacing: .04em; }
.kwf-sponsor-timeline-list h3 { margin: 3px 0 5px; font-size: 17px; }
.kwf-sponsor-timeline-list p { margin: 0; color: #667085; line-height: 1.55; }
.kwf-sponsor-profile-gallery { margin-top: 20px; }
.kwf-sponsor-gallery-grid,
.kwf-sponsor-gallery-placeholders {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}
.kwf-sponsor-gallery-grid a,
.kwf-sponsor-gallery-placeholders div {
	min-height: 150px;
	border-radius: 16px;
	overflow: hidden;
	background: #f2f7f4;
	border: 1px solid #e1ece6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight:700;
	color: #6b7b72;
}
.kwf-sponsor-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
	.kwf-sponsor-profile-v2212 .kwf-sponsor-profile-head,
	.kwf-sponsor-profile-overview,
	.kwf-sponsor-profile-main-grid { grid-template-columns: 1fr; }
	.kwf-sponsor-profile-v2212 .kwf-sponsor-profile-head { align-items: start; }
	.kwf-sponsor-profile-v2212 .kwf-sponsor-avatar { width: 112px; height: 112px; font-size: 42px; }
	.kwf-sponsor-profile-actions { justify-content: flex-start; }
	.kwf-sponsor-gallery-grid,
	.kwf-sponsor-gallery-placeholders { grid-template-columns: 1fr; }
}

/* v2.2.13 Sponsorship Polish & Audit */
.kwf-sponsor-card:focus-within{outline:3px solid rgba(34,160,69,.25);outline-offset:3px}
.kwf-sponsor-card-photo:focus-visible,.kwf-sponsor-view:focus-visible,.kwf-sponsor-cta:focus-visible,.kwf-sponsor-status-filters a:focus-visible,.kwf-sponsor-discovery-filters button:focus-visible,.kwf-sponsor-discovery-filters a:focus-visible,.kwf-sponsor-profile-actions a:focus-visible{outline:3px solid rgba(34,160,69,.35);outline-offset:3px}
.kwf-sponsor-card-photo img,.kwf-sponsor-profile-head img,.kwf-sponsor-gallery-grid img{background:#f1f5f9}
.kwf-sponsor-privacy-card{border-left:4px solid #0f766e}
.kwf-sponsor-action-panel{display:flex;align-items:center;justify-content:space-between;gap:18px}
.kwf-sponsor-profile-facts li:empty{display:none}
.kwf-sponsor-discovery-filters input[type="search"],.kwf-sponsor-discovery-filters select{min-height:44px}
.kwf-sponsor-progress span{max-width:100%}
@media (max-width:760px){.kwf-sponsor-action-panel{display:block}.kwf-sponsor-action-panel .kwf-primary-link{margin-top:14px;width:100%;text-align:center}.kwf-sponsor-status-filters{overflow-x:auto;padding-bottom:4px}.kwf-sponsor-status-filters a{min-width:128px}.kwf-sponsor-discovery-filters{grid-template-columns:1fr}.kwf-sponsor-profile-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.kwf-sponsor-profile-actions a{flex:1 1 160px;text-align:center}}

/* v2.2.17 Clean Sponsorship Discovery Layout - rebuilt from v2.2.15 */
.kwf-portal-main-sponsorships .kwf-sponsorship-page-title,
.kwf-portal-main-sponsorships > h1:first-child{
    color: var(--kwf-orange) !important;
}
.kwf-portal-shell:has(.kwf-portal-main-sponsorships) .kwf-portal-nav a.active{
    background: linear-gradient(135deg, var(--kwf-orange), #e65a24) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(255,107,53,.22) !important;
}
.kwf-portal-main-sponsorships .kwf-sponsor-profile-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
}
.kwf-portal-main-sponsorships .kwf-sponsorship-discovery-main .kwf-sponsor-profile-grid-two{
    max-width: none;
}
.kwf-sponsorship-featured-strip{
    margin-top: 22px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 112px;
    padding: 16px 18px;
    background: linear-gradient(135deg,#fff7ed,#ffffff);
    border-color: rgba(255,107,53,.22);
}
.kwf-sponsorship-featured-photo{
    width: 82px;
    height: 82px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg,#e8f7ed,#fff2e8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 82px;
}
.kwf-sponsorship-featured-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.kwf-sponsorship-featured-photo span{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:999px;background:#19943a;color:#fff;font-weight:700;font-size:26px;}
.kwf-sponsorship-featured-copy h2{margin:4px 0 4px;font-size:24px;line-height:1.1;color:#10251b;}
.kwf-sponsorship-featured-copy p{margin:0;color:#61746b;font-weight:700;}
.kwf-sponsorship-featured-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.kwf-sponsorship-featured-actions a{padding:0 14px;min-height:42px;}
.kwf-sponsorship-discovery-layout{
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.kwf-sponsorship-encouragement-panel{
    position: sticky;
    top: 18px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg,#123d2a,#155f3c);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
}
.kwf-sponsorship-encouragement-panel .kwf-eyebrow{color:#ffd9c8;}
.kwf-sponsorship-encouragement-panel .kwf-eyebrow:before{background:#ffb088;}
.kwf-sponsorship-encouragement-panel h3{margin:10px 0 10px;font-size:24px;line-height:1.15;color:#fff;}
.kwf-sponsorship-encouragement-panel p{margin:0 0 12px;color:#e9fff1;line-height:1.55;}
.kwf-sponsorship-encouragement-panel blockquote{margin:14px 0;padding:12px 14px;border-left:4px solid var(--kwf-orange);background:rgba(255,255,255,.08);border-radius:14px;color:#fff;font-weight:700;line-height:1.45;}
.kwf-sponsorship-discovery-main{min-width:0;}
.kwf-sponsorship-discovery-main .kwf-sponsor-discovery-filters{
    grid-template-columns: minmax(180px,1.4fr) minmax(130px,.8fr) minmax(160px,1fr) auto;
}
.kwf-sponsorship-discovery-main .kwf-sponsor-discovery-filters label:nth-of-type(3){display:none;}
.kwf-portal-main-sponsorships .kwf-sponsor-progress,
.kwf-portal-main-sponsorships .kwf-sponsor-progress-label{
    display:none !important;
}
.kwf-portal-main-sponsorships .kwf-sponsor-card-actions{
    margin-top:auto;
}
@media(max-width:1100px){
    .kwf-sponsorship-discovery-layout{grid-template-columns:1fr;}
    .kwf-sponsorship-encouragement-panel{position:relative;top:auto;}
    .kwf-sponsorship-discovery-main .kwf-sponsor-discovery-filters{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
    .kwf-portal-main-sponsorships .kwf-sponsor-profile-grid,
    .kwf-portal-main-sponsorships .kwf-sponsorship-discovery-main .kwf-sponsor-profile-grid-two{grid-template-columns:1fr;max-width:none;}
    .kwf-sponsorship-featured-strip{grid-template-columns:72px minmax(0,1fr);}
    .kwf-sponsorship-featured-actions{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;width:100%;}
    .kwf-sponsorship-featured-photo{width:72px;height:72px;}
    .kwf-sponsorship-discovery-main .kwf-sponsor-discovery-filters{grid-template-columns:1fr;}
}
@media(max-width:520px){.kwf-sponsorship-featured-actions{grid-template-columns:1fr;}}

/* v2.2.18 Sponsorship grid stabilisation */
.kwf-portal-main-sponsorships .kwf-sponsor-grid-three,
.kwf-portal-main-sponsorships .kwf-sponsorship-discovery-main .kwf-sponsor-grid-three{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    max-width:none;
}
.kwf-portal-main-sponsorships .kwf-sponsor-discovery-filters{
    max-width:860px;
    margin:0 0 22px 0;
    grid-template-columns:minmax(220px,1.5fr) minmax(160px,.8fr) minmax(190px,1fr) auto;
}
.kwf-portal-main-sponsorships .kwf-sponsor-discovery-filters label:nth-of-type(3){display:none!important;}
.kwf-portal-main-sponsorships .kwf-sponsorship-discovery-layout{display:block;}
.kwf-sponsorship-encouragement-card{
    background:linear-gradient(135deg,#0b4a2f,#12613e)!important;
    color:#fff;
    min-height:100%;
}
.kwf-sponsorship-encouragement-card .kwf-sponsor-card-body{justify-content:center;gap:14px;}
.kwf-sponsorship-encouragement-card .kwf-eyebrow{color:#ffd8c6;}
.kwf-sponsorship-encouragement-card .kwf-eyebrow:before{background:#ffb088;}
.kwf-sponsorship-encouragement-card h3{margin:0;font-size:26px;line-height:1.15;color:#fff;}
.kwf-sponsorship-encouragement-card p{margin:0;color:#eafff1;line-height:1.55;font-weight:700;}
.kwf-sponsorship-encouragement-card blockquote{margin:2px 0;padding:13px 15px;border-left:4px solid var(--kwf-orange);background:rgba(255,255,255,.1);border-radius:14px;color:#fff;font-weight:700;line-height:1.45;}
.kwf-load-more-pagination{display:flex;justify-content:center;margin-top:24px;}
.kwf-load-more-pagination a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 28px;border-radius:999px;background:var(--kwf-orange);color:#fff;text-decoration:none;font-weight:700;box-shadow:0 12px 28px rgba(249,91,40,.22);}
.kwf-load-more-pagination a:hover{filter:brightness(.98);transform:translateY(-1px);}
@media(max-width:1180px){
    .kwf-portal-main-sponsorships .kwf-sponsor-grid-three,
    .kwf-portal-main-sponsorships .kwf-sponsorship-discovery-main .kwf-sponsor-grid-three{grid-template-columns:repeat(2,minmax(0,1fr));}
    .kwf-portal-main-sponsorships .kwf-sponsor-discovery-filters{grid-template-columns:1fr 1fr;max-width:none;}
}
@media(max-width:700px){
    .kwf-portal-main-sponsorships .kwf-sponsor-grid-three,
    .kwf-portal-main-sponsorships .kwf-sponsorship-discovery-main .kwf-sponsor-grid-three{grid-template-columns:1fr;}
    .kwf-portal-main-sponsorships .kwf-sponsor-discovery-filters{grid-template-columns:1fr;}
}


/* v2.2.19 sponsorship stabilisation */
.kwf-sponsor-cta,
.kwf-sponsor-profile-actions .kwf-primary-link {
    color:#fff !important;
    font-weight:700 !important;
}
.kwf-sponsor-view,
.kwf-sponsor-card,
.kwf-sponsor-card * {
    font-weight:inherit;
}
.kwf-sponsor-card h3,
.kwf-sponsor-card h3 a,
.kwf-sponsor-card-meta,
.kwf-sponsor-card-badges span,
.kwf-sponsor-card-actions a,
.kwf-sponsorship-encouragement-card blockquote,
.kwf-sponsorship-encouragement-card h3,
.kwf-sponsorship-encouragement-card p,
.kwf-sponsor-summary-tile strong,
.kwf-sponsor-summary-tile span,
.kwf-sponsor-status-filters a {
    font-weight:700 !important;
}
.kwf-sponsor-profile-grid.kwf-sponsor-grid-three {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.kwf-sponsor-discovery-filters {
    max-width:860px;
}
@media(max-width:900px){.kwf-sponsor-profile-grid.kwf-sponsor-grid-three{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media(max-width:640px){.kwf-sponsor-profile-grid.kwf-sponsor-grid-three{grid-template-columns:1fr !important;}}

/* v2.2.20 Recurring Giving Manager donor subscription integration */
.kwf-recurring-health{margin:-4px 0 12px;color:#475467;font-weight:600}.kwf-recurring-sync-warning{margin:12px 0 0;padding:10px 12px;border-radius:12px;background:#fff8e6;color:#8a5a00;font-size:13px;font-weight:600}.kwf-recurring-history{margin-top:14px;border-top:1px solid #e9efeb;padding-top:12px}.kwf-recurring-history summary{cursor:pointer;font-weight:700;color:var(--kwf-primary,#115e59)}.kwf-recurring-history-list{display:grid;gap:8px;margin-top:12px}.kwf-recurring-history-row{display:grid;grid-template-columns:minmax(90px,1fr) auto auto auto;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#f8fbf9;font-size:13px}.kwf-recurring-history-row em{font-style:normal;color:#667085}.kwf-recurring-history-row a{font-weight:700;text-decoration:none}.kwf-recurring-meta{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}@media(max-width:620px){.kwf-recurring-history-row{grid-template-columns:1fr auto}.kwf-recurring-history-row em,.kwf-recurring-history-row a{grid-column:auto}}


/* v2.2.21 donor subscription actions */
.kwf-recurring-manage{margin-top:16px;border-top:1px solid #e7eee9;padding-top:14px}.kwf-recurring-manage>summary{cursor:pointer;font-weight:800;color:var(--kwf-primary,#115e59)}.kwf-recurring-actions{display:grid;gap:12px;margin-top:14px}.kwf-recurring-payment-method,.kwf-recurring-action-form button,.kwf-recurring-cancel-request{border:0;border-radius:10px;cursor:pointer;font-weight:700}.kwf-recurring-payment-method,.kwf-recurring-action-form button{min-height:42px;padding:10px 15px;background:var(--kwf-primary,#115e59);color:#fff}.kwf-recurring-action-form{display:grid;gap:10px;padding:14px;border:1px solid #e3ebe6;border-radius:14px;background:#fbfdfc}.kwf-recurring-action-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.kwf-recurring-action-heading span{font-size:12px;padding:4px 8px;border-radius:999px;background:#fff3e8;color:#9a4b00;font-weight:700}.kwf-recurring-action-form label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#344054}.kwf-recurring-action-form input,.kwf-recurring-action-form select,.kwf-recurring-action-form textarea{width:100%;border:1px solid #cfd8d3;border-radius:10px;padding:10px;background:#fff;font:inherit}.kwf-recurring-action-message{margin:0;font-size:13px;font-weight:700}.kwf-recurring-action-message.is-success{color:#087443}.kwf-recurring-action-message.is-error{color:#b42318}.kwf-recurring-requests{margin-top:16px;padding-top:14px;border-top:1px solid #e7eee9}.kwf-recurring-requests h4{margin:0 0 10px}.kwf-recurring-request-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px dashed #e3e8e5}.kwf-recurring-request-row:first-of-type{border-top:0}.kwf-recurring-request-row div{display:grid;gap:3px}.kwf-recurring-request-row span{font-size:12px;color:#667085}.kwf-recurring-cancel-request{padding:7px 10px;background:#fff1f0;color:#b42318}@media(max-width:620px){.kwf-recurring-action-heading,.kwf-recurring-request-row{align-items:flex-start;flex-direction:column}.kwf-recurring-cancel-request{width:100%}}




/* v2.3.0 RC5 — monetary output must remain an indivisible inline value. */
.kwf-portal .woocommerce-Price-amount,
.kwf-portal .woocommerce-Price-amount bdi,
.kwf-portal .woocommerce-Price-currencySymbol,
.kwf-portal .kwf-money,
.kwf-portal [data-kwf-money]{
    display:inline !important;
    white-space:nowrap !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
}
.kwf-stat > strong .woocommerce-Price-amount,
.kwf-recurring-summary strong .woocommerce-Price-amount,
.kwf-report-stat-grid strong .woocommerce-Price-amount{
    font:inherit;
    color:inherit;
}

/* v2.3.1 RC1 — Notification Centre upgrade */
.kwf-notification-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid var(--kwf-line);
    border-radius: 18px;
    background: #f8fbf9;
}
.kwf-notification-filters label { display:grid; gap:6px; font-size:12px; font-weight:800; color:var(--kwf-muted); }
.kwf-notification-filters select { min-height:44px; border:1px solid var(--kwf-line); border-radius:12px; background:#fff; padding:0 12px; color:var(--kwf-ink); }
.kwf-notification-meta { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:5px; }
.kwf-notification-meta b,
.kwf-notification-meta i { display:inline-flex; align-items:center; min-height:22px; padding:2px 8px; border-radius:999px; font-size:10px; line-height:1; font-style:normal; text-transform:uppercase; letter-spacing:.06em; }
.kwf-notification-meta b { background:var(--kwf-green-soft); color:var(--kwf-green); }
.kwf-notification-meta i { background:#eef1ef; color:var(--kwf-muted); }
.kwf-notification-row.importance-critical { border-left-color:#b42318; }
.kwf-notification-row.importance-critical .kwf-notification-meta i { background:#fee4e2; color:#b42318; }
.kwf-notification-row.importance-high { border-left-color:var(--kwf-orange); }
.kwf-notification-row.importance-low.is-unread { border-left-color:#98a2b3; }
.kwf-notification-pagination { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:22px; }
.kwf-notification-pagination a { display:inline-grid; place-items:center; min-width:40px; height:40px; padding:0 10px; border:1px solid var(--kwf-line); border-radius:12px; background:#fff; color:var(--kwf-ink); text-decoration:none; font-weight:800; }
.kwf-notification-pagination a.is-current { background:var(--kwf-green); border-color:var(--kwf-green); color:#fff; }
@media (max-width: 900px) { .kwf-notification-filters { grid-template-columns:1fr 1fr; } }
@media (max-width: 560px) { .kwf-notification-filters { grid-template-columns:1fr; } .kwf-notification-filters .kwf-btn { width:100%; } }
