/* Benefactors page (2026-11-23). Colours come from the --sj-* theme variables,
   so light and dark mode both work without extra rules. */
.ben-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .ben-layout { grid-template-columns: minmax(0, 1fr); } }
.ben-layout--single { grid-template-columns: minmax(0, 1fr); }

.ben-intro { max-width: 68ch; margin: 0 auto 2.25rem; text-align: center; color: var(--sj-dark-gray); font-size: 1.05rem; line-height: 1.8; text-wrap: balance; }

.ben-filters { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.ben-chips, .ben-selects { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ben-filters .filter-btn { margin: 0; }
.ben-selects select { width: auto; min-width: 0; max-width: 100%; flex: 0 1 auto; }
.ben-count { margin-left: auto; color: var(--sj-dark-gray); font-size: .875rem; white-space: nowrap; }
@media (max-width: 575.98px) {
    .ben-chips .filter-btn { flex: 1 1 calc(50% - .25rem); text-align: center; }
    .ben-selects select { flex: 1 1 calc(50% - .25rem); }
    .ben-count { flex-basis: 100%; text-align: right; }
}

.ben-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ben-card { overflow-wrap: anywhere; background: var(--sj-white); border: 1px solid var(--sj-gray); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.ben-card:target { box-shadow: 0 0 0 3px var(--sj-gold); }
.ben-ph { position: relative; aspect-ratio: 4 / 3; max-width: 100%; display: flex; align-items: center; justify-content: center; background: var(--sj-light-gray); color: var(--sj-primary); font-size: 3.4rem; overflow: hidden; }
.ben-ph > .bi { opacity: .85; }
@media (max-width: 575.98px) { .ben-ph--icon { aspect-ratio: auto; height: 88px; font-size: 2.2rem; } }
.ben-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ben-ph a { display: block; width: 100%; height: 100%; }
.ben-ph.money { background: rgba(212, 175, 55, .16); color: var(--sj-gold-dark); }
.ben-ph.service { background: rgba(67, 160, 71, .14); color: var(--sj-success); }
.ben-kind { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--sj-white); color: var(--sj-charcoal); padding: 3px 8px; border-radius: 4px; line-height: 1.4; }
.ben-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ben-body h3 { font-size: 1.05rem; margin: 0; line-height: 1.35; color: var(--sj-charcoal); }
.ben-memo { font-size: .85rem; color: var(--sj-dark-gray); font-style: italic; }
.ben-donor { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; margin-top: 4px; color: var(--sj-charcoal); }
.ben-av { width: 30px; height: 30px; border-radius: 50%; background: var(--sj-light-gray); color: var(--sj-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.ben-donor.anon .ben-av { background: rgba(212, 175, 55, .18); color: var(--sj-gold-dark); }
.ben-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--sj-dark-gray); margin-top: 2px; }
.ben-amt { font-weight: 700; color: #7A5E00; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .ben-amt { color: var(--sj-gold-light); }
.ben-share { margin-top: auto; padding-top: 6px; }
.ben-share a { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; font-size: .8rem; color: var(--sj-dark-gray); border: 1px solid var(--sj-gray); border-radius: 6px; padding: 3px 10px; text-decoration: none; }
.ben-share a:hover, .ben-share a:focus-visible { color: var(--sj-primary); border-color: var(--sj-primary); }
.ben-empty { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--sj-dark-gray); border: 1px dashed var(--sj-gray); border-radius: 12px; }
.ben-empty i { font-size: 2.4rem; display: block; margin-bottom: .5rem; color: var(--sj-gold); }
.ben-empty--page { max-width: 640px; width: 100%; margin: 0 auto; padding: 2.75rem 1.5rem; border: 1px solid var(--sj-gray); border-top: 3px solid var(--sj-gold); background: var(--sj-white); box-shadow: 0 6px 24px rgba(16, 42, 67, .06); }
.ben-empty-icon { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(212, 175, 55, .14); margin-bottom: 1rem; }
.ben-empty-icon i { font-size: 2rem; margin: 0; line-height: 1; }
.ben-empty--page h2 { font-size: 1.35rem; margin: 0 0 .6rem; color: var(--sj-charcoal); text-wrap: balance; }
.ben-empty--page p { margin: 0 auto 1.5rem; max-width: 46ch; color: var(--sj-dark-gray); line-height: 1.75; }
.ben-empty-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.ben-empty-actions .btn { min-height: 40px; display: inline-flex; align-items: center; padding-inline: 1.1rem; }
@media (max-width: 575.98px) { .ben-empty--page { padding: 2rem 1.1rem; } .ben-empty-actions .btn { flex: 1 1 100%; justify-content: center; } }

.ben-aside { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 576px) and (max-width: 991.98px) {
    .ben-aside { grid-template-columns: 1fr 1fr; align-items: start; }
    .ben-aside > .ben-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.ben-box { overflow-wrap: anywhere; background: var(--sj-white); border: 1px solid var(--sj-gray); border-radius: 12px; padding: 1.1rem 1.2rem; }
.ben-box h2 { font-size: 1.05rem; margin: 0 0 .75rem; color: var(--sj-charcoal); display: flex; align-items: center; gap: .5rem; }
.ben-box h2 i { color: var(--sj-gold); }
.ben-proj + .ben-proj { margin-top: .9rem; }
.ben-proj b { display: block; font-size: .92rem; color: var(--sj-charcoal); margin-bottom: 4px; }
.ben-bar { height: 8px; background: var(--sj-light-gray); border-radius: 4px; overflow: hidden; }
.ben-bar i { display: block; height: 100%; background: var(--sj-gold); border-radius: 4px; }
.ben-proj small { color: var(--sj-dark-gray); font-variant-numeric: tabular-nums; }
.ben-reached { color: #2E7D32; font-weight: 700; white-space: nowrap; }
[data-theme="dark"] .ben-reached { color: #6FD3A0; }
.ben-wish { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ben-wish li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .9rem; color: var(--sj-charcoal); padding-bottom: .5rem; border-bottom: 1px solid var(--sj-gray); }
.ben-wish li:last-child { border-bottom: 0; padding-bottom: 0; }
.ben-wish li.done span:first-child { color: var(--sj-dark-gray); text-decoration: line-through; }
.ben-pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ben-pill.need { background: rgba(251, 140, 0, .15); color: #A55A00; }
.ben-pill.done { background: rgba(67, 160, 71, .15); color: #2E7D32; }
[data-theme="dark"] .ben-pill.need { color: #F2C064; }
[data-theme="dark"] .ben-pill.done { color: #6FD3A0; }
.ben-contrib p { font-size: .9rem; color: var(--sj-dark-gray); margin: 0 0 .5rem; }
.ben-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .88rem; padding: .5rem 0; border-top: 1px solid var(--sj-gray); color: var(--sj-charcoal); }
.ben-row > span:first-child { color: var(--sj-dark-gray); flex: none; white-space: nowrap; }
.ben-row > span:last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.ben-copy { border: 1px solid var(--sj-gray); background: none; color: var(--sj-primary); border-radius: 6px; margin-left: 8px; padding: 2px 10px; min-height: 32px; font-size: .8rem; cursor: pointer; vertical-align: middle; }
.ben-row a { display: inline-block; padding: 4px 0; }
.ben-also { text-align: center; margin: 2rem auto 0; max-width: 68ch; color: var(--sj-dark-gray); }
