/* Focused public charity search and report */
.public-charity-search { background: #f4f7f9; color: #17324d; min-height: 70vh; }
.public-charity-search *, .public-charity-search *::before, .public-charity-search *::after { box-sizing: border-box; }
.public-charity-hero { background: linear-gradient(135deg, #082b4c 0%, #0d4267 100%); color: #fff; padding: 170px 0 72px; }
.public-charity-intro { margin: 0 auto 30px; max-width: 790px; text-align: center; }
.public-charity-kicker { color: #e8334f; display: block; font-size: .77rem; font-weight: 800; letter-spacing: .13em; margin-bottom: 9px; text-transform: uppercase; }
.public-charity-intro h1 { color: #fff; font-size: clamp(2.35rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin: 0 0 16px; text-shadow: none; }
.public-charity-intro p { color: #d9e7f1; font-size: 1.12rem; line-height: 1.7; margin: 0; }
.public-charity-form { background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 17, 35, .28); margin: 0 auto; max-width: 920px; padding: 24px; text-align: left; }
.public-charity-form label { color: #17324d; display: block; font-size: .9rem; font-weight: 800; margin: 0 0 9px; }
.public-charity-form-row { display: flex; gap: 12px; }
.public-charity-input-wrap { flex: 1; position: relative; }
.public-charity-input-wrap .fa { color: #557086; font-size: 1.05rem; left: 19px; position: absolute; top: 50%; transform: translateY(-50%); }
.public-charity-input-wrap input { background: #f8fafb; border: 2px solid #ccd8e0; border-radius: 11px; color: #17324d; font-size: 1.03rem; height: 58px; padding: 0 18px 0 50px; width: 100%; }
.public-charity-input-wrap input:focus { background: #fff; border-color: #0b6b8d; box-shadow: 0 0 0 4px rgba(11, 107, 141, .14); outline: 0; }
.public-charity-state-label { margin: 0 !important; }
.public-charity-state-label select { background: #f8fafb; border: 2px solid #ccd8e0; border-radius: 11px; color: #17324d; height: 58px; min-width: 175px; padding: 0 36px 0 15px; }
.public-charity-state-label select:focus { background: #fff; border-color: #0b6b8d; box-shadow: 0 0 0 4px rgba(11,107,141,.14); outline: 0; }
.public-charity-form button, .public-charity-print { align-items: center; border: 0; border-radius: 11px; cursor: pointer; display: inline-flex; font-weight: 800; justify-content: center; }
.public-charity-form button { background: #e8334f; color: #fff; min-height: 58px; padding: 0 28px; }
.public-charity-form button:hover, .public-charity-form button:focus { background: #c9213d; color: #fff; }
.public-charity-hint { color: #647b8d; font-size: .84rem; margin: 9px 0 0; }
.public-charity-content { padding: 54px 0 84px; }
.public-charity-notice { align-items: flex-start; background: #fff7e8; border: 1px solid #f0d59c; border-radius: 13px; color: #694d16; display: flex; gap: 12px; margin: 0 auto 28px; max-width: 920px; padding: 16px 18px; }
.public-charity-notice .fa { margin-top: 4px; }
.public-charity-notice p { color: inherit; margin: 0; }
.public-charity-results-heading { align-items: end; display: flex; justify-content: space-between; margin: 0 auto 22px; max-width: 980px; }
.public-charity-results-heading h2 { color: #0b2b46; font-size: 2rem; margin: 0; }
.public-charity-results-heading > p { color: #647b8d; margin: 0; }
.public-charity-results-controls { align-items: flex-end; display: flex; flex-direction: column; gap: 8px; }
.public-charity-results-controls > p { color: #647b8d; margin: 0; }
.public-charity-results-controls form { align-items: center; display: flex; gap: 8px; }
.public-charity-results-controls label { color: #526c7e; font-size: .82rem; font-weight: 800; }
.public-charity-results-controls select { background: #fff; border: 1px solid #cbd9e2; border-radius: 9px; color: #17324d; padding: 8px 30px 8px 10px; }
.public-charity-results { display: grid; gap: 16px; margin: 0 auto; max-width: 980px; }
.public-charity-result-card { align-items: center; background: #fff; border: 1px solid #dce5eb; border-radius: 16px; box-shadow: 0 8px 22px rgba(16, 50, 74, .06); display: flex; gap: 28px; justify-content: space-between; padding: 24px 26px; }
.public-charity-result-card, .public-charity-result-card:hover, .public-charity-result-card:focus { color: inherit; text-decoration: none; }
.public-charity-result-card:focus { border-color: #0b6b8d; box-shadow: 0 0 0 4px rgba(11,107,141,.18); outline: 0; }
.public-charity-result-card h3 { color: #0b2b46; font-size: 1.3rem; margin: 8px 0 5px; }
.public-charity-result-card p { color: #526c7e; line-height: 1.55; margin: 7px 0 0; }
.public-charity-result-meta { color: #6d8290 !important; font-size: .91rem; }
.public-charity-result-reason { color: #17664e !important; font-size: .86rem; font-weight: 800; }
.public-charity-result-reason .fa { color: #d79a00; margin-right: 5px; }
.public-charity-status { background: #eaf5f1; border-radius: 999px; color: #217257; display: inline-block; font-size: .71rem; font-weight: 800; letter-spacing: .06em; padding: 6px 10px; text-transform: uppercase; }
.public-charity-status.is-revoked { background: #fff0f0; color: #a62835; }
.public-charity-report-link { color: #0a6184; flex: 0 0 auto; font-weight: 800; text-decoration: none; }
.public-charity-report-link:hover { color: #e8334f; }
.public-charity-report { background: #fff; border: 1px solid #dce5eb; border-radius: 22px; box-shadow: 0 16px 45px rgba(16, 50, 74, .1); margin: 0 auto; max-width: 1080px; overflow: hidden; }
.public-charity-report-header { align-items: flex-start; background: #0b2b46; color: #fff; display: flex; gap: 30px; justify-content: space-between; padding: 38px 42px; }
.public-charity-report-header h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin: 13px 0 8px; }
.public-charity-report-header p { color: #cfdeea; margin: 0; }
.public-charity-report-header .is-active { background: #dff5ec; color: #17664e; }
.public-charity-print { background: #fff; color: #0b2b46; flex: 0 0 auto; gap: 8px; padding: 12px 17px; }
.public-charity-report-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 32px; }
.public-charity-panel { background: #f7f9fa; border: 1px solid #e0e7ec; border-radius: 15px; padding: 25px; }
.public-charity-panel h3 { color: #0b2b46; font-size: 1.25rem; margin: 0 0 17px; }
.public-charity-purpose, .public-charity-financials { grid-column: 1 / -1; }
.public-charity-purpose { align-items: flex-start; background: #edf7f4; border-color: #cfe6de; display: flex; gap: 18px; }
.public-charity-purpose p { color: #365b50; line-height: 1.75; margin: 0; }
.public-charity-panel-icon { align-items: center; background: #fff; border-radius: 50%; color: #e8334f; display: flex; flex: 0 0 45px; height: 45px; justify-content: center; }
.public-charity-panel-heading { align-items: end; display: flex; justify-content: space-between; }
.public-charity-panel-heading > span { color: #718492; font-size: .82rem; }
.public-charity-metrics { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.public-charity-metrics > div { background: #fff; border-radius: 11px; padding: 18px; }
.public-charity-metrics span { color: #718492; display: block; font-size: .8rem; margin-bottom: 5px; }
.public-charity-metrics strong { color: #0b2b46; font-size: 1.28rem; }
.public-charity-details-list { margin: 0; }
.public-charity-details-list > div { border-bottom: 1px solid #dce5eb; padding: 11px 0; }
.public-charity-details-list > div:last-child { border: 0; }
.public-charity-details-list dt { color: #718492; font-size: .78rem; font-weight: 700; }
.public-charity-details-list dd { color: #243f52; margin: 3px 0 0; }
.public-charity-contact-list { display: grid; gap: 10px; }
.public-charity-contact-list a { align-items: center; background: #fff; border: 1px solid #dce5eb; border-radius: 10px; color: #17324d; display: flex; gap: 12px; padding: 12px; text-decoration: none; word-break: break-word; }
.public-charity-contact-list a > .fa { color: #0a6c8d; width: 18px; }
.public-charity-contact-list small { color: #718492; display: block; }
.public-charity-report-footer { align-items: center; background: #edf2f5; display: flex; gap: 28px; justify-content: space-between; padding: 22px 32px; }
.public-charity-report-footer p { color: #526c7e; font-size: .85rem; line-height: 1.55; margin: 0; max-width: 760px; }
.public-charity-report-footer a { color: #0a6184; flex: 0 0 auto; font-weight: 800; }
.public-charity-empty { margin: 30px auto; max-width: 680px; text-align: center; }
.public-charity-empty > div { align-items: center; background: #e5eef3; border-radius: 50%; color: #0b5678; display: flex; font-size: 1.5rem; height: 62px; justify-content: center; margin: 0 auto 18px; width: 62px; }
.public-charity-empty h2 { color: #0b2b46; }
.public-charity-empty p { color: #526c7e; line-height: 1.7; }
@media (max-width: 767.98px) {
    .public-charity-hero { padding: 132px 0 52px; }
    .public-charity-form { padding: 18px; }
    .public-charity-form-row, .public-charity-result-card, .public-charity-report-header, .public-charity-report-footer { align-items: stretch; flex-direction: column; }
    .public-charity-form button, .public-charity-state-label select { width: 100%; }
    .public-charity-results-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .public-charity-results-controls { align-items: flex-start; }
    .public-charity-report-header, .public-charity-report-grid { padding: 25px 20px; }
    .public-charity-report-grid { grid-template-columns: 1fr; }
    .public-charity-purpose, .public-charity-financials { grid-column: auto; }
    .public-charity-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-charity-report-link { align-self: flex-start; }
}
@media print {
    .top-wrap, nav, .public-charity-hero, footer:not(.public-charity-report-footer), .public-charity-print, .public-charity-report-footer a { display: none !important; }
    .public-charity-content { padding: 0; }
    .public-charity-report { border: 0; box-shadow: none; }
}

/* Warm, playful touches that keep the choices simple */
.public-charity-hero { overflow: hidden; position: relative; }
.public-charity-hero::before, .public-charity-hero::after { border-radius: 50%; content: ""; opacity: .22; pointer-events: none; position: absolute; }
.public-charity-hero::before { background: #ffd760; height: 220px; left: -75px; top: 105px; width: 220px; }
.public-charity-hero::after { background: #55cbb0; bottom: -90px; height: 260px; right: -75px; width: 260px; }
.public-charity-hero .container { position: relative; z-index: 1; }
.public-charity-form { border-top: 6px solid #ffd760; }
.public-charity-form label .fa { color: #e8334f; margin-right: 6px; }
.public-charity-result-card:hover { border-color: #9bc8d8; box-shadow: 0 14px 30px rgba(16,50,74,.11); transform: translateY(-2px); }
.public-charity-empty-thanks { color: #e8334f; display: block; font-size: .78rem; font-weight: 900; letter-spacing: .08em; margin-bottom: 6px; text-transform: uppercase; }
.public-charity-steps { display: grid; gap: 13px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 25px; }
.public-charity-steps > div { align-items: center; background: #fff; border: 2px solid #d8e7ee; border-radius: 15px; display: flex; flex-direction: column; gap: 8px; padding: 19px 12px; }
.public-charity-steps > div:nth-child(2) { border-color: #f2d36e; }
.public-charity-steps > div:nth-child(3) { border-color: #a8dccf; }
.public-charity-steps strong { align-items: center; background: #0b2b46; border-radius: 50%; color: #fff; display: flex; height: 34px; justify-content: center; width: 34px; }
.public-charity-steps span { color: #29485e; font-weight: 800; }
.public-charity-thanks { color: #214f42 !important; font-size: .94rem !important; margin-bottom: 6px !important; }
.public-charity-thanks .fa { color: #e8334f; }
@media (prefers-reduced-motion: no-preference) { .public-charity-result-card { transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; } }
@media (max-width: 575.98px) { .public-charity-steps { grid-template-columns: 1fr; } .public-charity-steps > div { flex-direction: row; justify-content: flex-start; } }
