/* Contextual contrast corrections for the mixed light/dark i3 presentation. */
:root { --readable-text:#f5f5f5; --readable-muted:#c8ccd0; --readable-link:#d3baff; }
.eyebrow, .story-copy>.eyebrow, .directory .eyebrow, .form-aside>.eyebrow, .reading-nav .eyebrow { color:#d3baff; }
.original-home-purpose h2, .home-support h2 { color:var(--readable-text); }
.original-home-purpose .text-link, .story-copy .source-link, .reading-layout .source-link { color:var(--readable-link); }
.home-statistics span { color:var(--readable-muted); }
.home-support-grid h3 { color:var(--readable-text); }
.home-support-grid>a:nth-child(2) h3, .home-support-grid>a:nth-child(3) h3 { color:#1a1a1a; }
.original-copy :is(strong,em,h2,h3,summary) { color:var(--readable-text); }
.original-copy a, .view-basket-link { color:var(--readable-link); }
.original-copy blockquote { background:#303033; color:var(--readable-text); border-color:#b995ff; }
.policy-panel, .join-panel, .about-feature, #empty-basket { color:var(--readable-text); background:#242424; }
/* Light sections intentionally retain dark, readable ink. */
.page-intro { color:#163e35; }
.page-intro>p, .page-intro :is(.eyebrow,.breadcrumb,.breadcrumb a) { color:#355d50; }
.related>.eyebrow, .principles .eyebrow { color:#355d50; }
.principles, .fundraise-banner { color:#163e35; }
.principles p, .fundraise-banner .original-copy, .fundraise-banner .original-copy :is(p,strong,em,h2,h3,a), .fundraise-banner .original-copy>p:first-child { color:#244c3d; }
.preview-form p, .source-calculator, .source-calculator p { color:#355d50; }
.preview-form .eyebrow, .source-calculator .eyebrow { color:#245b48; }
.involved .eyebrow { color:#344a22; }
/* Donation panels, basket and dialogs use a consistent dark surface. */
.pledge, .basket-summary, .basket-drawer, .donation-modal, .checkout-card { color:var(--readable-text); }
.pledge :is(p,.price-note), .donation-modal :is(p,.price-note,.preview-note), .basket-summary :is(p,.recurring-note,.preview-note), .checkout-card .checkout-demo-note p, #checkout-receipt>p, .campaign-snapshot { color:var(--readable-muted)!important; }
.pledge :is(label,.field-label), .donation-modal :is(label,.field-label), .pledge .dedication summary, .donation-modal .dedication summary, .basket-item-controls label { color:var(--readable-text)!important; }
.pledge .pledge-frequency { background:#191919; }
.pledge-frequency button, .pledge-amount { color:#f1f1f1; background:#343434; border-color:#737373; }
.pledge-frequency button.selected, .pledge-amount.selected { background:#ecff95; color:#1a1a1a; border-color:#ecff95; }
.pledge :is(input,select), .basket-item-controls :is(input,select), .donation-modal :is(input,select) { background:#1c1c1c; color:#f5f5f5; border-color:#777; }
.pledge input::placeholder, .donation-modal input::placeholder { color:#bdc1c6; opacity:1; }
.donation-modal :is(.frequency,.amounts) button { background:#343434; color:#f5f5f5; border-color:#777; }
.donation-modal :is(.frequency,.amounts) button.active { background:#ecff95; color:#1a1a1a; border-color:#ecff95; }
.basket-summary :is(.total-row,.total-row b,.grand-total span,.total-row small), .basket-item-total, .drawer-item :is(b,small), .continue-giving { color:#f0f0f0; }
.basket-summary .grand-total b { color:#ecff95; }
.basket-item :is(.item-type,.item-dedication), .basket-item .eyebrow { color:var(--readable-muted)!important; }
.basket-summary .gift-aid-summary, .basket-summary .gift-aid-summary small { color:#d8e7c2!important; }
.gift-aid-box, .gift-aid-box :is(p,.eyebrow,.gift-impact,.gift-aid-mark,.tax-note), .gift-aid-box .check-row, #campaign-gift .check-row { color:#244c3d!important; }
.gift-aid-mark b { background:#327d66; color:#fff; }
.checkout-steps, .checkout-steps .selected { color:#4b6056!important; }
.checkout-card #gift-aid-address legend { color:#f0f0f0; }
/* About and contact: light cards stay light; text over the page is bright. */
.ac-mission, .ac-vision, .ac-contact-grid, .ac-contact-bottom { color:var(--readable-text); }
.ac-mission p, .ac-vision p, .ac-contact-bottom p { color:var(--readable-muted); }
.ac-mission .ac-label, .ac-vision .ac-label, .ac-contact-grid>.ac-contact-info .ac-label, .ac-contact-item .ac-label { color:#d3baff; }
.ac-contact-link { color:#ecff95; overflow-wrap:anywhere; }
.ac-projects, .ac-invite, .ac-address, .ac-bank, .ac-contact-form, .ac-icon { color:#163e35; }
.ac-label { font-size:.875rem; }
.ac-contact-item .ac-label { font-size:.875rem; }
.ac-project span, .ac-bank dt, .ac-values span, .ac-crumb { font-size:.875rem; }
.ac-project p, .ac-section-head p, .ac-bank p, .ac-contact-form .ac-form-intro, .ac-invite p { font-size:1rem; }
.ac-contact-form label { font-size:.9375rem; }
/* Fundraising editorial text and explicitly light cards. */
.fund-builder-head>p:not(.eyebrow), .fund-campaign-head>p, #campaign-story, .fund-editor-tips p { color:var(--readable-muted); }
.fund-steps, .fund-end, .fund-live-card, .fund-support-card, .fund-donors { color:#163e35; }
.fund-live-card .eyebrow, .fund-support-card .eyebrow, .fund-end .eyebrow, .fund-donors .eyebrow { color:#245b48; }
.fund-live-card p, .fund-support-card p { color:#355d50; }
.fund-live-card strong { color:#245b48; }
.fund-actions .button { background:#f2eddb; color:#163e35; }
/* Newsletter is inset from every footer edge, including the top. */
footer { padding-top:48px; }
footer .newsletter-preview { padding:32px; margin-bottom:42px; gap:28px; background:#1b493e; border:1px solid #668a7e; border-radius:22px; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); }
footer .newsletter-preview h3 { margin:0; line-height:1.25; color:#fff; text-wrap:balance; }
footer .newsletter-form { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; margin:0; }
footer .newsletter-preview input { width:100%; min-width:0; font-size:1rem; min-height:52px; }
footer .newsletter-preview input::placeholder { color:#52665c; opacity:1; }
footer .newsletter-preview .button { min-height:52px; font-size:1rem; padding:14px 24px; background:#ecff95; color:#1a1a1a; }
footer .newsletter-status { grid-column:1/-1; font-size:.875rem; color:#e6f1d9; }
footer .newsletter-status:empty { display:none; }
/* Single-column cards and flexible form controls on phones. */
@media(max-width:760px) {
  .appeal-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
  .appeal-card .card-visual { height:auto; aspect-ratio:16 / 9; }
  .appeal-card h3 { font-size:1.7rem; margin-top:22px; }
  .appeal-card .card-description { max-width:none; min-height:0; margin-bottom:22px; }
  .appeal-card .card-basket { min-height:48px; font-size:1rem; }
  .i3-project-grid { grid-template-columns:minmax(0,1fr); }
  .i3-project-grid>.i3-project-card { grid-column:auto; left:auto; right:auto; }
  .i3-kindness-card { min-height:370px; }
  footer { padding:32px 20px 28px; }
  footer .newsletter-preview { display:grid; grid-template-columns:minmax(0,1fr); padding:26px 22px; gap:22px; margin-bottom:34px; }
  footer .newsletter-preview h3 { font-size:1.75rem; text-align:left; }
  footer .newsletter-form { grid-template-columns:minmax(0,1fr); gap:12px; }
  footer .newsletter-form .button { width:100%; }
  .directory-tools { flex-direction:column; align-items:stretch; gap:18px; }
  .search-label input { min-width:0; width:100%; }
  .filters { display:flex; flex-wrap:wrap; gap:8px; }
  .reading-nav { min-width:0; }
  .trust-row { gap:20px; flex-wrap:wrap; }
  .pledge { max-height:none; overflow:visible; }
  .donation-modal { padding:28px 20px; max-height:calc(100dvh - 32px); overflow-y:auto; }
  .donation-modal .amounts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fund-field-row { grid-template-columns:minmax(0,1fr); }
  .fund-support-card { position:static; }
  .ac-contact-link { font-size:1.2rem; }
  .ac-contact-item { gap:14px; }
  .ac-address-bottom { flex-wrap:wrap; gap:12px; }
}
@media(max-width:380px) {
  .review-header.i3-header { padding-inline:12px; }
  .i3-header .i3-brand { width:120px; flex-basis:120px; }
  .review-header .i3-actions .button.i3-donate { padding-inline:12px; }
  .i3-hero h1 { font-size:clamp(44px,13.5vw,52px); letter-spacing:-2px; }
  .home-statistics strong { font-size:40px; letter-spacing:-1.5px; }
  .home-statistics span { font-size:.75rem; }
}
.source-complete-about { color:#f5f5f5; }
.ac-contact-item .ac-address .ac-label { color:#245b48; }
.demo-fund-meter small { color:#4f5d3f; }
.preview-form .muted { color:#52665c; }
.ac-contact-grid .ac-address .ac-label { color:#245b48; }
.basket-drawer :is(.total-row,.total-row b,.grand-total span,.total-row small) { color:#f0f0f0; }
.basket-drawer .grand-total b { color:#ecff95; }
.basket-drawer .preview-note { color:#c8ccd0!important; }
.footer-main>div { min-width:0; }
@media(max-width:380px) { .footer-brand { font-size:34px; letter-spacing:-1.4px; } }
