/* ---------------------------------------------------------------------------
   /fund/ — running costs + ways to support.
   Loaded only by templates/fund.html, after collaborate.css (which supplies
   the hero, the card grid and the dashed rule). Tokens only, no hex: the
   light theme and the print sheet must follow automatically.
   --------------------------------------------------------------------------- */

/* Screen-reader-only text (table caption). */
.fd-sr {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---- hero cover ---------------------------------------------------------- */
.fd-cover {
  margin:0; border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); background:var(--bg-1);
}
.fd-cover img { display:block; width:100%; height:auto; aspect-ratio:1200/750; }

/* ---- the bill ------------------------------------------------------------ */
.fd-table-wrap {
  overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--bg-2); box-shadow:var(--shadow);
}
.fd-costs { width:100%; border-collapse:collapse; font-size:15px; line-height:1.5; }
.fd-costs thead th {
  font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted-2); font-weight:500; text-align:left; padding:12px 18px;
  border-bottom:1px solid var(--line);
}
.fd-costs thead th:last-child { text-align:right; }
.fd-costs tbody th, .fd-costs td {
  padding:14px 18px; border-bottom:1px solid var(--line); vertical-align:top;
  text-align:left; font-weight:400;
}
.fd-costs td { width:34%; text-align:right; }
.fd-costs tr.fd-group th {
  font-family:var(--mono); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent-2); background:var(--bg-1); padding:10px 18px; font-weight:600;
}
.fd-costs tbody.is-owned tr.fd-group th { color:var(--muted); }
.fd-costs tbody:last-child tr:last-child > * { border-bottom:0; }

.fd-item { display:block; color:var(--ink); font-weight:600; }
.fd-detail { display:block; color:var(--muted); font-size:14px; margin-top:3px; }
.fd-note { display:block; color:var(--muted-2); font-size:13px; margin-top:6px; }
.fd-src { display:block; color:var(--muted-2); font-size:13px; margin-top:6px; }
.fd-src a { color:var(--accent); text-decoration:underline; text-underline-offset:2px; }

/* Figures in ink, not amber: amber on white fails contrast in light mode. */
.fd-fig { display:block; font-family:var(--mono); font-size:14px; font-weight:600; color:var(--ink); }
.fd-fig + .fd-fig { margin-top:4px; }

.fd-chip {
  display:inline-block; font-family:var(--mono); font-size:10.5px; letter-spacing:.12em;
  text-transform:uppercase; border-radius:999px; padding:4px 10px; white-space:nowrap;
}
.fd-chip.is-pending { color:var(--muted); border:1px dashed var(--muted-2); }
.fd-chip.is-owned { color:var(--muted); border:1px solid var(--line); background:var(--bg-1); }

.fd-foot { color:var(--muted-2); font-size:13.5px; margin:12px 0 0; }

/* Phone widths: two columns squeeze the line item to three words a line, so
   each row stacks — item, then its cost underneath. The header row is
   clipped visually but kept for screen readers. */
@media (max-width:560px) {
  .fd-costs thead tr {
    position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0);
  }
  .fd-costs tr.fd-group th { padding-left:14px; padding-right:14px; }
  .fd-costs tbody tr:not(.fd-group) > th,
  .fd-costs tbody tr:not(.fd-group) > td { display:block; width:auto; text-align:left; padding:12px 14px; }
  .fd-costs tbody tr:not(.fd-group) > th { border-bottom:0; padding-bottom:8px; }
  .fd-costs tbody tr:not(.fd-group) > td { padding-top:0; }
  .fd-fig { display:inline; }
  .fd-fig + .fd-fig::before { content:" · "; color:var(--muted-2); }
  .fd-fig + .fd-fig { margin-top:0; }
}

@media print {
  .fd-cover { display:none; }
  .fd-table-wrap { border-color:#c8c8c8; box-shadow:none; overflow:visible; }
}
