.finance { max-width: 56rem; margin-block: clamp(2rem, 5vw, 4rem); }
.finance header { margin-bottom: 1.65rem; }
.finance h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.finance .period { color: var(--teal); font-weight: 700; font-variant-numeric: tabular-nums; }
.finance .intro { margin-block: .8rem 0; }
.donations > details { border-bottom: 1px solid var(--line); background: white; }
.donations > details:first-child { border-top: 1px solid var(--line); }
.donations > details > summary { display: grid; align-items: baseline; grid-template-columns: minmax(0, 1fr) auto .6rem; gap: .85rem; padding: 1rem; cursor: pointer; list-style: none; }
.donations > details > summary::-webkit-details-marker { display:none; }
.donations > details > summary::after { content: ''; width: .5rem; height: .5rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-.15rem) rotate(45deg); }
.donations > details[open] > summary::after { transform: rotate(225deg); }
.donations > details > summary:hover, .donations > details[open] > summary { background: var(--party-wash); }
.donations > details > summary strong { text-align: right; font-variant-numeric: tabular-nums; }
.donor-list { padding: .5rem 1rem 1rem; }
.donor-list table { margin-block: .4rem 1rem; }
.donor-list th:last-child, .donor-list td:last-child { text-align: right; white-space: nowrap; }
.donor-list th, .donor-list td { padding: .45rem .6rem; }
.finance footer { margin-block: 1.5rem; max-width: 75ch; color: var(--muted); }
.coverage { font-weight: 650; }
@media (max-width: 32rem) {
  .donations > details > summary { column-gap: .55rem; padding: .8rem .55rem; }
  .donor-list { padding-inline: .5rem; }
  .donations > details > summary strong { max-width: 9rem; }
}


.finance [hidden] { display: none !important; }
.donor-search { margin-block: 1.2rem; }
.donor-search label { display: block; font-weight: 700; margin-bottom: .35rem; }
.search-fields { display: flex; align-items: stretch; gap: .55rem; }
.search-fields input { min-width: 0; width: min(100%, 28rem); padding: .65rem .85rem; border: 1px solid var(--muted); border-radius: .35rem; font: inherit; background: white; }
.search-fields button { background: white; color: var(--teal); border: 1px solid var(--line); border-radius: .35rem; padding: .4rem .65rem; }
#query-status { margin: .4rem 0 0; color: var(--muted); }
#query-status:empty { display: none; }
.donor-list td { vertical-align: top; }
.donor-name, .amount { font-weight: 650; }
.amount { font-variant-numeric: tabular-nums; }
.registry-link, .other-parties, .no-other, .public-pay, .donor-history { font-size: .9rem; }
.registry-link { margin-inline-start: .65rem; display: inline-block; }
.no-other { color: var(--muted); }
.other-parties, .no-other, .public-pay, .donor-history { margin-top: .2rem; }
.donor-history > summary { cursor: pointer; color: var(--teal); }
.donor-history ul { margin: .35rem 0; padding-inline-start: 1.25rem; }
.donor-list th button { background: transparent; padding: .35rem 0; color: inherit; font: inherit; font-weight: 700; border: none; cursor: pointer; }
.donor-list th button::after { content: ' ↕'; }
.donor-list th[aria-sort="ascending"] button::after { content: ' ↑'; }
.donor-list th[aria-sort="descending"] button::after { content: ' ↓'; }
.donor-list button:focus-visible, .finance input:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (max-width: 32rem) {
  .registry-link { display: block; margin-inline-start: 0; }
  .donor-list td, .donor-list th { padding-inline: .3rem; }
  .donor-list th:last-child { white-space: normal; }
}
