/* Financials page. Builds on scaffold-page.css and the Get Involved category colors. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.financials-page .eyebrow { display: block; margin-bottom: 0.4rem; }
.financials-page .content-panel > p,
.financials-page .hero-panel > p { max-width: 70ch; }
.financials-page .fine { color: var(--muted); font-size: 0.92rem; }

/* Headline figures */
.fin-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin: 1.6rem 0 0; padding: 0; list-style: none;
}
.fin-stat {
  padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--paper-light);
  border-left: 4px solid var(--category-edge);
}
.fin-stat strong {
  display: block; color: var(--navy); font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.1 "Fraunces", Georgia, serif;
}
.fin-stat span { display: block; margin-top: 0.4rem; color: #4b5964; font-size: 0.92rem; }

.fin-hero-actions { margin: 1.4rem 0 0; }
.fin-button {
  display: inline-flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem 1.2rem;
  color: #fff; background: var(--navy); border: 1px solid var(--navy); text-decoration: none; font-weight: 700;
}
.fin-button small { font-weight: 400; opacity: 0.85; }
.fin-button:hover, .fin-button:focus-visible { background: var(--navy-deep); }

/* Launch equation */
.fin-equation {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.75rem; margin: 1.4rem 0;
}
.fin-equation > div {
  flex: 1 1 11rem; padding: 1rem; border: 1px solid var(--line); background: var(--paper-light); text-align: center;
}
.fin-equation strong {
  display: block; color: var(--navy); font: 700 clamp(1.3rem, 2.6vw, 1.9rem)/1.15 "Fraunces", Georgia, serif;
}
.fin-equation span { display: block; margin-top: 0.3rem; color: #4b5964; font-size: 0.9rem; }
.fin-equation .op { flex: 0 0 auto; align-self: center; color: var(--gold); font-size: 1.6rem; font-weight: 700; }
.fin-equation .result { background: #f4ead4; border-color: var(--gold); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1.2rem 0; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fin-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; }
.fin-table caption { text-align: left; }
.fin-table th, .fin-table td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.fin-table thead th {
  color: var(--navy); border-bottom: 2px solid var(--navy); font-weight: 700; vertical-align: bottom;
}
.fin-table thead th small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.fin-table tbody th, .fin-table tfoot th { color: var(--ink); font-weight: 600; }
.fin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-table thead th.num { text-align: right; }
.fin-table tfoot th, .fin-table tfoot td { border-top: 2px solid var(--navy); border-bottom: 0; font-weight: 700; }
.fin-table tr.key th, .fin-table tr.key td { background: rgba(183, 134, 44, 0.08); font-weight: 700; }
.fin-table tr.total th, .fin-table tr.total td { border-top: 2px solid var(--navy); font-size: 1.02rem; }
.fin-lines { min-width: 28rem; }
.fin-lines .group th { background: #f4ead4; color: var(--navy); font-family: "Fraunces", Georgia, serif; }
.fin-lines .subtotal td { font-weight: 700; border-bottom: 2px solid var(--line); }

/* Bars */
.fin-bars .bar-cell { min-width: 14rem; }
.fin-bars .bar {
  display: inline-block; width: calc(var(--w) * 0.6); min-width: 2px; height: 0.8rem; vertical-align: middle;
  background: var(--navy); border-radius: 2px;
}
.fin-bars .bar-text { margin-left: 0.6rem; font-variant-numeric: tabular-nums; }

.fin-split-table .split-cell { min-width: 10rem; width: 28%; }
.split { display: flex; width: 100%; height: 0.9rem; overflow: hidden; border-radius: 2px; background: var(--line); }
.seg { display: block; width: var(--w); height: 100%; }
.seg-program { background: var(--navy); }
.seg-mgmt { background: var(--gold); }
.seg-fund { background: #8a96a3; }

/* Cards and lists */
.fin-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.2rem; }
.fin-big { margin: 0 0 0.5rem !important; color: var(--navy) !important; font: 700 2rem/1.1 "Fraunces", Georgia, serif; }
.fin-list { max-width: 72ch; margin: 1.4rem 0 0; padding-left: 1.2rem; color: #394956; }
.fin-list li { margin: 0.7rem 0; }

/* Detail disclosures */
.fin-details { margin-top: 1rem; border: 1px solid var(--line); background: var(--paper-light); }
.fin-details > summary {
  padding: 0.9rem 1.1rem; color: var(--navy); font-weight: 700; cursor: pointer;
}
.fin-details[open] > summary { border-bottom: 1px solid var(--line); }
.fin-details > .table-scroll { margin: 0; padding: 0.4rem 0.8rem 0.8rem; }

/* Timeline */
.fin-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.fin-timeline li { padding: 1rem; border: 1px solid var(--line); border-top: 4px solid var(--category-edge); background: var(--paper-light); }
.fin-timeline strong { display: block; margin-bottom: 0.4rem; color: var(--navy); font-family: "Fraunces", Georgia, serif; }
.fin-timeline span { color: #4b5964; font-size: 0.95rem; }

@media (max-width: 52rem) {
  .fin-stats, .fin-grid-3 { grid-template-columns: 1fr; }
  .fin-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 34rem) {
  .fin-timeline { grid-template-columns: 1fr; }
  .fin-equation .op { flex-basis: 100%; text-align: center; }
}
@media print {
  .fin-details:not([open]) > *:not(summary) { display: block; }
}
