/* =====================================================================================
   Transparency page. Scoped to .page-transparency.
   Story order: at a glance, money flow, projects, categories, ledgers, assurance.
   ===================================================================================== */
.page-transparency{--tx-r:16px;--tx-gap:20px;--tx-shadow:0 1px 2px rgba(16,24,20,.05),0 8px 24px -14px rgba(16,24,20,.22);--tx-green:#177355;--tx-gold:#e2b04a}
.page-transparency main::before{display:none}   /* the page uses its own two neutrals; no tile behind the sections */
.page-transparency main{background:var(--bg,#faf7f0);background-image:none}
.page-transparency .tx{padding-block:clamp(40px,5vw,64px);position:relative}
.page-transparency .sec--white{background:#fff}
.page-transparency .sec--cream{background:#f6f1e6}
.page-transparency .tx .section__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin:0 0 24px}
.page-transparency .tx .section__head .eyebrow{margin:0 0 4px}
.page-transparency .tx__lead{margin:0;max-width:36rem;color:var(--muted);font-size:.9rem}

/* ---- sub menu ---------------------------------------------------------------------------------------------- */
.page-transparency .tsub{background:#fff}
.page-transparency .tsub__in{gap:.2rem 1.1rem}
.page-transparency .tsub__csv{margin-inline-start:.5rem;display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .8rem;border-radius:99px;border:1.5px solid var(--green-700,#0b4b38);color:var(--green-700,#0b4b38);font-weight:600;font-size:.82rem;text-decoration:none;border-bottom-width:1.5px}
.page-transparency .tsub__csv:hover{background:var(--green-700,#0b4b38);color:#fff}
@media (max-width:720px){.page-transparency .tsub__csv{display:none}}

/* ---- cards ----------------------------------------------------------------------------------------------------- */
.tx-card{background:var(--surface,#fff);border:1px solid var(--line);border-radius:var(--tx-r);box-shadow:var(--tx-shadow)}
.tx-card h3{margin:0 0 2px;font:700 1.1rem/1.3 var(--font-head)}
.tx-sub{margin:0 0 16px;color:var(--muted);font-size:.85rem}
.tx-note{margin:0;padding:12px 20px;color:var(--muted);font-size:.85rem;border-bottom:1px solid var(--line);background:#fcfaf5}
.page-transparency .note{margin:14px 0 0;color:var(--muted);font-size:.82rem}

/* ---- 1. KPIs ---------------------------------------------------------------------------------------------------- */
.tx-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--tx-gap)}
@media (max-width:980px){.tx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tx-kpi{position:relative;overflow:hidden;padding:20px 22px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:var(--tx-r);box-shadow:var(--tx-shadow);display:flex;flex-direction:column;gap:2px}
.tx-kpi::after{content:"";position:absolute;inset-inline-end:-8px;top:-8px;width:60px;height:60px;border-radius:0 0 0 60px;opacity:.13;background:var(--kc,var(--tx-green))}
.tx-kpi--out{--kc:var(--tx-gold)}.tx-kpi--bal{--kc:#2b7a9e}.tx-kpi--adm{--kc:#a45a36}
.tx-kpi__l{font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
html.is-ur .tx-kpi__l{letter-spacing:0;text-transform:none;font-size:.85rem}
.tx-kpi strong{font:700 clamp(1.4rem,2.6vw,1.9rem)/1.15 var(--font-head);color:var(--kc,var(--tx-green));margin:6px 0 2px}
.tx-kpi--in strong{color:#0b4b38}.tx-kpi--out strong{color:#8a6410}.tx-kpi--bal strong{color:#1f6a8a}.tx-kpi--adm strong{color:#8a4524}
.tx-kpi small{color:var(--muted);font-size:.82rem;line-height:1.4}
@media (max-width:520px){.tx-kpi{padding:14px}.tx-kpi strong{font-size:1.25rem}}

/* flow bar */
.tx-flowcard{margin-top:var(--tx-gap);padding:22px 24px}
.tx-flowcard p{margin:0 0 14px;color:var(--muted);font-size:.85rem}
.tx-bar{display:flex;gap:3px;height:22px;border-radius:99px;overflow:hidden;background:var(--line)}
.tx-bar>span{display:block;height:100%}
.tx-bar__rest,.tx-rest{background:repeating-linear-gradient(45deg,#cfe5d9 0 6px,#e3f1ea 6px 12px)}
.tx-bar__rest{border:1px dashed #177355;border-radius:99px}
.tx-legend{list-style:none;display:flex;flex-wrap:wrap;gap:8px 28px;margin:14px 0 0;padding:0;font-size:.85rem}
.tx-legend li{display:flex;align-items:center;gap:8px}
.tx-legend i{width:11px;height:11px;border-radius:3px;flex:none}
.tx-legend i.tx-rest{border:1px dashed #177355}
.tx-legend b{font-variant-numeric:tabular-nums}.tx-legend em{font-style:normal;color:var(--muted)}

/* ---- 2. money flow ------------------------------------------------------------------------------------------- */
.tx-two{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:var(--tx-gap)}
@media (max-width:900px){.tx-two{grid-template-columns:minmax(0,1fr)}}
.tx-chart,.tx-panel{padding:22px 24px}
.tx-cols{height:200px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;align-items:end;border-bottom:1px solid var(--line)}
.tx-col{height:100%;display:flex;gap:3px;align-items:flex-end;justify-content:center;min-width:0}
.tx-col span{width:38%;max-width:16px;border-radius:5px 5px 0 0;min-height:0}
.tx-col .in,.tx-key i.in{background:var(--tx-green)}.tx-col .out,.tx-key i.out{background:var(--tx-gold)}
.tx-labs{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;margin-top:6px;font-size:.68rem;color:var(--muted);text-align:center}
.tx-labs span{overflow:hidden;white-space:nowrap}
.tx-key{display:flex;gap:16px;margin:12px 0 0;font-size:.78rem;color:var(--muted)}
.tx-key i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:6px}
.tx-donut{width:156px;height:156px;border-radius:50%;margin:4px auto 18px;display:grid;place-items:center}
.tx-donut>div{width:102px;height:102px;border-radius:50%;background:var(--surface,#fff);display:grid;place-items:center;text-align:center;font:700 1.05rem/1.1 var(--font-head);color:#0b4b38}
.tx-donut small{display:block;font:500 .7rem var(--font);color:var(--muted)}
.tx-rows{list-style:none;margin:0;padding:0;display:grid;gap:10px;font-size:.88rem}
.tx-rows li{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tx-rows span{display:flex;align-items:center;gap:8px}.tx-rows i{width:10px;height:10px;border-radius:3px;flex:none}
.tx-rows b{font-variant-numeric:tabular-nums}

/* ---- 3. projects ---------------------------------------------------------------------------------------------- */
.tx-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--tx-gap)}
@media (max-width:980px){.tx-projects{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.tx-projects{grid-template-columns:minmax(0,1fr)}}
.tx-proj{padding:20px 22px;display:flex;flex-direction:column;gap:12px}
.tx-proj h4{margin:0;font:700 1.1rem/1.3 var(--font-head)}.tx-proj h4 a{color:inherit;text-decoration:none}
.tx-chip{display:inline-block;font-size:.7rem;font-weight:700;border-radius:99px;padding:2px 10px;background:var(--green-100,#e3f1ea);color:var(--green-800,#0b4b38)}
.tx-chip.is-done{background:#e7ebe9;color:#53625b}
.tx-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.tx-nums div{min-width:0}
.tx-nums dd{margin:0;font:700 1.05rem/1.2 var(--font-head);color:var(--ink)}
.tx-nums dt{font-size:.72rem;color:var(--muted)}
.tx-dual{position:relative;height:9px;border-radius:99px;background:var(--tint,#f3efe4);overflow:hidden}
.tx-dual span{position:absolute;inset-block:0;inset-inline-start:0;border-radius:99px}
.tx-dual .raised{background:#cfe5d9}.tx-dual .spent{background:var(--tx-green)}
.tx-more{margin-top:auto;font-weight:600;font-size:.85rem;text-decoration:none;display:inline-flex;align-items:center;gap:6px}

/* ---- 4. categories ---------------------------------------------------------------------------------------------- */
.tx-cats{display:grid;gap:12px}
.tx-cat{display:grid;grid-template-columns:minmax(110px,170px) minmax(0,1fr) minmax(130px,auto);gap:12px;align-items:center;font-size:.88rem}
.tx-track{height:10px;border-radius:99px;background:var(--tint,#f3efe4);overflow:hidden}
.tx-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#177355,#e2b04a)}
.tx-cat b{text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-width:620px){.tx-cat{grid-template-columns:minmax(0,1fr) auto}.tx-cat .tx-track{grid-column:1/-1;order:3}}

/* ---- 5. ledgers ---------------------------------------------------------------------------------------------------- */
.tx-led{overflow:hidden}
.tx-tabs{display:flex;gap:4px;padding:14px 18px 0;border-bottom:1px solid var(--line);background:#fcfaf5}
.tx-tabs a{padding:9px 18px;font-weight:700;font-size:.92rem;border-radius:10px 10px 0 0;color:var(--muted);text-decoration:none;border:1px solid transparent;border-bottom:0}
.tx-tabs a[aria-selected=true]{background:#fff;color:#0b4b38;border-color:var(--line);margin-bottom:-1px;box-shadow:inset 0 3px 0 var(--tx-gold)}
.tx-tabs em{font-style:normal;font-size:.7rem;background:var(--green-100,#e3f1ea);border-radius:99px;padding:0 7px;margin-inline-start:6px}
.tx-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px 20px}
.tx-filters select,.tx-filters input[type=search],.tx-filters .tx-search{border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:.88rem;background:#fff;color:var(--ink);min-width:150px;min-height:0}
.tx-filters .tx-search{flex:1;min-width:190px}
.tx-table{width:100%;border-collapse:collapse;font-size:.9rem}
.tx-table th{text-align:start;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:10px 20px;background:#fcfaf5;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html.is-ur .tx-table th{letter-spacing:0;text-transform:none;font-size:.85rem}
.tx-table td{padding:13px 20px;border-bottom:1px solid #eee8da;vertical-align:top}
.tx-table tr:last-child td{border-bottom:0}
.tx-table .num{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}
.tx-tag{display:inline-block;font-size:.72rem;font-weight:700;padding:2px 9px;border-radius:99px;background:var(--green-100,#e3f1ea);color:#0b4b38}
.tx-pg{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 20px;font-size:.85rem;color:var(--muted);background:#fcfaf5;border-top:1px solid var(--line)}
.tx-pg .pager{margin:0}
@media (max-width:720px){
  .tx-table thead{display:none}
  .tx-table,.tx-table tbody,.tx-table tr,.tx-table td{display:block;width:100%}
  .tx-table tr{padding:12px 16px;border-bottom:1px solid #eee8da}
  .tx-table td{padding:2px 0;border:0;display:flex;justify-content:space-between;gap:12px;text-align:end}
  .tx-table td::before{content:attr(data-label);color:var(--muted);font-size:.75rem;text-align:start;flex:none}
  .tx-table td.num{font-weight:700}
}

/* ---- 6. assurance ---------------------------------------------------------------------------------------------------- */
.page-transparency .tx--trust{padding-block:clamp(32px,4vw,48px)}
.tx-trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--tx-gap)}
@media (max-width:820px){.tx-trust{grid-template-columns:minmax(0,1fr)}}
.tx-t3{padding:18px 20px;display:flex;gap:14px;align-items:flex-start}
.tx-ic{flex:none;width:42px;height:42px;border-radius:12px;background:var(--green-100,#e3f1ea);color:#0b4b38;display:grid;place-items:center}
.tx-ic .icon{width:1.2rem;height:1.2rem}
.tx-t3 b{display:block;margin-bottom:2px}.tx-t3 span:not(.tx-ic){font-size:.85rem;color:var(--muted)}

/* form controls inside the ledger filter bar sit in one row (global form rules make inputs full width) */
.tx-filters select,.tx-filters input[type=search],.tx-filters .tx-search{width:auto;max-width:100%;flex:0 1 220px;margin:0}
.tx-filters .tx-search{flex:1 1 220px}
.tx-filters .btn{flex:none}

/* no second menu: the update date lives with the page intro */
.tx__lead{display:flex;flex-direction:column;gap:6px}
.tx__upd{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;color:var(--muted)}
.tx__upd .icon{width:.95em;height:.95em}
.page-transparency .tx#overview{padding-top:clamp(28px,4vw,44px)}

/* compact ledger rows */
.tx-table{font-size:.85rem}
.tx-table th{padding:8px 16px}
.tx-table td{padding:7px 16px;line-height:1.35}
.tx-table td small{font-size:.74rem}
.tx-tag{padding:1px 8px;font-size:.7rem}
.tx-pg{padding:9px 16px}
.tx-filters{padding:10px 16px}
@media (max-width:720px){
  .tx-table tr{padding:8px 14px}
  .tx-table td{padding:1px 0}
}

/* "Funded by": the donor / investor codes behind each expense */
.tx-fund{white-space:normal}
.tx-giver{display:inline-flex;align-items:baseline;gap:6px;margin:0 8px 2px 0;font-size:.8rem}
.tx-giver code{font-size:.78rem;background:var(--green-100,#e3f1ea);color:#0b4b38;border-radius:6px;padding:1px 6px;font-weight:700}
.tx-giver small{color:var(--muted);font-size:.7rem}
.tx-giver em{font-style:normal;color:var(--muted);font-size:.74rem;font-variant-numeric:tabular-nums}
.tx-giver.is-anon{color:var(--muted);font-style:italic}
.tx-giver--more{background:var(--tint,#f3efe4);border-radius:99px;padding:0 8px;font-weight:700;color:var(--muted);cursor:help}
@media (max-width:720px){.tx-table td.tx-fund{display:block;text-align:start}.tx-table td.tx-fund::before{display:block;margin-bottom:2px}}/* Phones: 12 month labels do not fit in one row, so show every other one (bars stay aligned) */
@media (max-width:520px){.tx-labs span:nth-child(odd){visibility:hidden}.tx-labs span{overflow:visible;text-align:center}}
.tx-donut>div{font-size:.86rem;padding:0 .35rem;overflow-wrap:anywhere}

/* Ledger filters: the project list is wide enough for full project names (it was cut at 150px) */
.tx-filters select#fp{min-width:min(320px,100%);max-width:100%}
.tx-filters select#fc{min-width:190px}
.tx-two--solo{grid-template-columns:minmax(0,1fr)}

/* Summary tables size to their content instead of stretching across the card (ledgers stay full width) */
.tx-table--fit{width:auto;min-width:min(100%,360px);max-width:100%}
.tx-table--fit th,.tx-table--fit td{padding-inline-end:2rem}
.tx-table--fit th:last-child,.tx-table--fit td:last-child{padding-inline-end:1rem}
@media (max-width:640px){.tx-table--fit{width:100%}}
.tx-table--fit tbody td{max-width:none;white-space:normal;overflow:visible;text-overflow:clip;height:auto}

/* Cards around the summary tables hug the table too, so their border is not stretched */
.tx-card--fit{width:fit-content;max-width:100%;min-width:min(100%,360px)}
.tx-two{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--tx-gap)}
@media (max-width:640px){.tx-card--fit{width:100%}}

/* Table fills its card; the card is as wide as its widest line, and the footnote stays on one row */
.tx-card--fit .tx-table--fit{width:100%}
.tx-card--fit>.note{white-space:nowrap}
@media (max-width:640px){.tx-card--fit>.note{white-space:normal}}

/* "Updated" date sits at the card's top right; the explanatory line is a smaller footnote under the table */
.tx-card--dated{position:relative}
.tx__upd--card{position:absolute;top:1rem;inset-inline-end:1.25rem;font-size:calc(.8rem - 1px)}
.tx-card__foot{font-size:calc(.9rem - 1px);white-space:nowrap}
@media (max-width:640px){.tx-card__foot{white-space:normal}.tx__upd--card{position:static;display:flex;padding:.75rem 1.25rem 0}}

/* Page-bottom note (was inside the first card) */
.tx--foot{padding-block:1.25rem 2rem}
.tx-pagefoot{margin:0;text-align:center;font-size:calc(.9rem - 1px);color:var(--muted)}
.tx--foot{background:var(--bg,transparent)}

/* Underline the "At a glance" label */
#overview .section__head .eyebrow{display:inline-block;border-bottom:2px solid var(--gold-500,#c9962b);padding-bottom:.3rem}
