/* Giving shares one themed surface and the DogMode selected-tab treatment. */
/* Shelter directory stays compact inside a dialog and each Giving surface. */
html body .shelter-directory,html body #modal-body .shelter-directory{min-width:0;max-width:100%;overflow-wrap:anywhere}
html body .shelter-directory>h2,html body #modal-body .shelter-directory>h2{font-size:24px;line-height:1.2;margin:0 0 6px}
html body .shelter-directory .shelter-intro{font-size:13px;line-height:1.4;color:var(--muted);margin:0 0 14px}
html body .shelter-directory .shelter-search{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0 0 8px}
html body .shelter-directory .shelter-query-row{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:8px;min-width:0}
html body .shelter-directory .shelter-query-row label{display:grid;gap:4px;min-width:0;font-size:13px;margin:0}
html body .shelter-directory .shelter-query-row input,html body #modal-body .shelter-directory input,html body .shelter-directory .shelter-query-row select,html body #modal-body .shelter-directory select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:9px 10px;font-size:16px;line-height:1.35}
html body .shelter-directory #giving-location-status{font-size:13px;line-height:1.4;margin:0;color:var(--muted)}
html body .shelter-directory .shelter-results{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0}
html body .shelter-directory .shelter-state{min-width:0;margin:0;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
html body .shelter-directory .shelter-state>summary{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:48px;padding:10px 12px;cursor:pointer;list-style:none;font-size:16px;font-weight:600}
html body .shelter-directory .shelter-state>summary::-webkit-details-marker{display:none}
html body .shelter-directory .shelter-state>summary:focus-visible{outline:2px solid var(--mint,#b5ed58);outline-offset:-3px}
html body .shelter-directory .shelter-state-count{font-size:14px;font-weight:400;color:var(--muted)}
html body .shelter-directory .shelter-state-chevron{display:flex;margin-left:auto;flex:none}
html body .shelter-directory .shelter-state-chevron svg{width:18px;height:18px}
html body .shelter-directory .shelter-state[open]>summary .shelter-state-chevron{transform:rotate(180deg)}
html body .shelter-directory .shelter-state:not([open])>.shelter-state-list{display:none}
html body .shelter-directory .shelter-result{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:10px 12px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
html body .shelter-directory .shelter-result-info{min-width:0;flex:1}
html body .shelter-directory .shelter-result h3,html body #modal-body .shelter-directory .shelter-result h3{font-size:16px;font-weight:600;line-height:1.3;margin:0 0 4px;overflow-wrap:anywhere}
html body .shelter-directory .shelter-result p{font-size:12px;line-height:1.4;margin:0;color:var(--muted)}
html body .shelter-directory .shelter-result small{display:block;font-size:11px;line-height:1.4;margin-top:3px;color:var(--muted)}
html body .shelter-directory .shelter-visit{display:inline-flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;min-height:44px;padding:8px 10px;flex:none;border:1px solid var(--line);border-radius:11px;text-decoration:none;font-size:13px;font-weight:600;color:var(--ink)}
html body .shelter-directory [hidden]{display:none!important}
html body .shelter-directory #giving-broader-search{margin-top:10px}
html body .shelter-directory #giving-broader-search a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
html body .shelter-directory .shelter-directory-note{font-size:12px;line-height:1.45;margin:12px 0 0;color:var(--muted)}
html body .shelter-directory :is(a,button,input,select,summary):focus-visible{outline:2px solid var(--mint,#b5ed58);outline-offset:3px}
@media(max-width:360px){html body .shelter-directory .shelter-query-row{grid-template-columns:minmax(0,1fr) 130px}html body .shelter-directory .shelter-result{gap:8px;padding:10px}html body .shelter-directory .shelter-visit{padding:8px}}
.giving-surface{padding:24px}.giving-surface h1{margin:0 0 20px}.giving-tabs{display:flex;gap:6px;padding:6px;border:1px solid var(--line,#d7e2dc);border-radius:20px;margin-bottom:22px}.giving-tabs button{flex:1;min-height:48px;font-weight:700;border:0;border-radius:14px}.giving-links{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;margin-top:20px}.giving-links a{text-decoration:underline}.virtual-bucket{text-align:center;padding:8px 0}.virtual-bucket-icon svg{width:52px;height:52px}.virtual-bucket h2{margin:12px 0}.virtual-bucket .treat-balance{display:block;font-size:56px;line-height:1.2;color:var(--ink,#254734)}.virtual-bucket p{font-size:16px;margin:12px 0 18px}.bucket-account-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.bucket-account-stats div{padding:16px;border:1px solid var(--line,#d7e2dc);border-radius:16px}.bucket-account-stats dt{font-size:14px}.bucket-account-stats dd{font-size:26px;font-weight:700;margin:4px 0 0}.virtual-bucket button{margin-top:10px}.giving-surface [hidden]{display:none!important}
html body .giving-tabs button{background:transparent!important;color:var(--ink,#254734)!important}html body .giving-tabs button[aria-selected="true"]{background:#b5ed58!important;color:#254734!important;border-color:#b5ed58!important}
html[data-theme="dark"] body .virtual-bucket button.primary{background:#b5ed58!important;color:#254734!important}
@media(max-width:600px){.giving-surface{padding:16px}.giving-surface h1{font-size:32px}.virtual-bucket h2{font-size:24px}.virtual-bucket .treat-balance{font-size:48px}}
/* The five sections stay in one scrollable ribbon on phones. */
.giving-page .giving-surface{padding:0}.giving-tabs{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%}.giving-tabs button{flex:1 0 auto;padding:12px 16px;white-space:nowrap}.giving-page [role="tabpanel"]{min-width:0}.featured-nonprofit{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,1fr);gap:28px;align-items:center}.featured-photo{margin:0;min-width:0}.featured-photo img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:left center;border-radius:20px}.featured-photo figcaption{font-size:12px;margin-top:8px;color:var(--muted)}.featured-nonprofit h2{font-size:30px;line-height:1.2;margin:12px 0}.featured-nonprofit .giving-links{justify-content:flex-start;gap:12px 20px}.give-back-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.give-back-card{min-width:0;border:1px solid var(--line,#d7e2dc);border-radius:16px;padding:18px}.give-back-card h3{font-size:21px;line-height:1.3;margin:12px 0}.give-back-card p{font-size:16px;line-height:1.5}.give-back-card a{display:block;margin-top:12px;overflow-wrap:anywhere}.shelter-search{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shelter-search label{display:grid;gap:6px;font-size:14px}.shelter-search input,.shelter-search select,.nonprofit-directory select{width:100%;min-width:0;box-sizing:border-box}.shelter-search-actions{grid-column:1/-1;display:flex;gap:10px}.shelter-search-actions button{min-height:44px}#giving-broader-search{margin:16px 0}.shelter-directory h2,.nonprofit-directory h2{margin:8px 0 20px}
@media(max-width:650px){.featured-nonprofit{grid-template-columns:1fr;gap:20px}.featured-photo{max-width:320px;margin:0 auto}.featured-nonprofit h2{font-size:26px}.give-back-cards{grid-template-columns:1fr}.giving-tabs button{font-size:14px;padding:10px 12px}.shelter-search{grid-template-columns:1fr}.shelter-search-actions{grid-column:auto}}
/* Match the dark page's geometry with an opaque light surface. */
html:not([data-theme="dark"]) .care-page.giving-page{width:calc(100% - 48px);max-width:1080px;margin:35px auto;padding:28px;background:#fff;color:#254734;border:1px solid #d7e1db;border-radius:24px;box-shadow:0 12px 32px #25473418;box-sizing:border-box;overflow-wrap:anywhere}
@media(max-width:760px){html:not([data-theme="dark"]) .care-page.giving-page{width:calc(100% - 24px);margin:16px auto;padding:20px;border-radius:20px}}

/* Match the profile's discoverable swipe ribbon without moving the page. */
.giving-tab-navigation{display:flex;align-items:center;gap:4px;min-width:0;margin-bottom:8px}.giving-tab-navigation .giving-tabs{position:relative;flex:1;min-width:0;margin:0;border:0;border-radius:0;scrollbar-width:none}.giving-tabs::-webkit-scrollbar{display:none}.giving-tab-navigation .giving-tab-scroll{flex:0 0 32px;display:grid;place-items:center;min-width:32px;min-height:44px;padding:4px;border:0;background:transparent;color:inherit;box-shadow:none}.giving-tab-scroll svg{width:20px;height:20px}.giving-tab-scroll:disabled{opacity:.35}.giving-tab-swipe-hint{margin:0 0 20px;color:var(--muted);font-size:13px;line-height:1.4;text-align:center}.giving-tab-navigation button:focus-visible{outline:2px solid var(--mint,#b5ed58);outline-offset:-2px}.giving-tab-navigation [hidden],.giving-tab-swipe-hint[hidden]{display:none!important}

html[data-theme="dark"] body .giving-tab-navigation .giving-tab-scroll{background:transparent;color:var(--ink)}

/* The November community spotlight has no inherited shelter photo. */
.featured-nonprofit.is-text-only{display:block}

/* A photo-led monthly spotlight uses the existing light and dark theme. */
html body .featured-nonprofit.is-spotlight{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px;align-items:center;min-width:0;padding:20px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-sizing:border-box}
html body .featured-nonprofit.is-spotlight .featured-photo{width:100%;max-width:none;margin:0}
html body .featured-nonprofit.is-spotlight .featured-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:50% 20%;border-radius:14px}
html body .featured-nonprofit.is-spotlight .featured-photo figcaption{margin-top:6px;font-size:11px;line-height:1.35;color:var(--muted)}
html body .featured-nonprofit.is-spotlight .featured-copy{min-width:0;overflow-wrap:anywhere}
html body .featured-nonprofit.is-spotlight .featured-kicker{margin:0 0 8px;font-size:12px;line-height:1.4;font-weight:700;letter-spacing:.04em;color:var(--ink)}
html[data-theme="dark"] body .featured-nonprofit.is-spotlight .featured-kicker{color:var(--mint,#b5ed58)}
html body .featured-nonprofit.is-spotlight h2{margin:0 0 12px;font-size:30px;line-height:1.15}
html body .featured-nonprofit.is-spotlight .featured-description{margin:0;font-size:16px;line-height:1.5}
html body .featured-nonprofit.is-spotlight .giving-links{gap:10px;margin:18px 0 0;justify-content:flex-start}
html body .featured-nonprofit.is-spotlight .giving-links a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 14px;margin:0;border:1px solid var(--line);border-radius:12px;font-size:14px;line-height:1.35;text-decoration:none}
html body .featured-nonprofit.is-spotlight .giving-links a:first-child{background:#b5ed58;color:#254734;border-color:#b5ed58;font-weight:700}
html body .featured-nonprofit.is-spotlight .featured-legal{margin:14px 0 0;font-size:11px;line-height:1.4;color:var(--muted)}
html body .featured-nonprofit.is-spotlight a:focus-visible{outline:2px solid var(--mint,#b5ed58);outline-offset:3px}
@media(max-width:650px){html body .featured-nonprofit.is-spotlight{grid-template-columns:minmax(0,1fr);gap:16px;padding:14px}html body .featured-nonprofit.is-spotlight h2{font-size:26px}html body .featured-nonprofit.is-spotlight .giving-links{display:grid;grid-template-columns:minmax(0,1fr);margin-top:14px}}
