:root {
  --bg: #F3F6F5;
  --surface: #FFFFFF;
  --ink: #12221E;
  --muted: #55655F;
  --rule: #CFD9D5;
  --rule-soft: #E3EAE7;
  --green: #0B6B57;
  --green-tint: #A8CFC3;
  --red: #C2372E;
  --focus: #1D4ED8;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1715;
    --surface: #16211E;
    --ink: #E6EEEB;
    --muted: #9DB0A9;
    --rule: #2E403A;
    --rule-soft: #22312C;
    --green: #45BA9D;
    --green-tint: #2F6F60;
    --red: #F0776C;
    --focus: #93B4FF;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--green); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* header */
.top { border-bottom: 1px solid var(--rule); background: var(--surface); }
.top .wrap { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; }
.mark {
  font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-size: 26px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; line-height: 1;
}
.mark span { color: var(--green); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); }

/* type */
h1, h2, h3 { font-family: var(--display); font-stretch: 82%; letter-spacing: -0.012em; line-height: 1.08; margin: 0; }
h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 58px); max-width: 20ch; }
h2 { font-weight: 700; font-size: clamp(24px, 3vw, 31px); margin-top: 56px; margin-bottom: 14px; }
h3 { font-weight: 700; font-size: 20px; margin-top: 30px; margin-bottom: 8px; }
p { margin: 0 0 14px; max-width: 70ch; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; max-width: 62ch; margin-top: 18px; }
.sub { color: var(--muted); font-size: 15px; margin-top: 12px; }
.note { color: var(--muted); font-size: 14.5px; max-width: 74ch; }
main { padding: 34px 0 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* ledger line: the row of key figures, ruled like a totals line */
.ledger {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 4px double var(--ink);
  margin: 30px 0 8px; background: var(--surface);
}
.ledger div { padding: 14px 16px 13px; border-right: 1px solid var(--rule); }
.ledger div:last-child { border-right: 0; }
.ledger dt { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.ledger dd {
  margin: 4px 0 0; font-family: var(--display); font-stretch: 78%; font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px); line-height: 1; font-variant-numeric: tabular-nums;
}
.ledger dd small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.3; font-stretch: 100%; }
dl.ledger { padding: 0; }

/* hundred-loan grid */
.hundred { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 32px; align-items: center; margin-top: 18px; }
.hundred svg { width: 100%; height: auto; display: block; }
.dot-co { fill: var(--red); }
.dot-pif { fill: var(--green-tint); }
.dot-out { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.key { list-style: none; margin: 0; padding: 0; }
.key li { display: grid; grid-template-columns: 20px 3.2em 1fr; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.key svg { width: 14px; height: 14px; align-self: center; }
.key b { font-family: var(--display); font-stretch: 80%; font-size: 22px; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 640px) { .hundred { grid-template-columns: 1fr; gap: 18px; } .hundred svg { max-width: 260px; } }

/* bar charts in plain HTML */
.chart { margin: 14px 0 6px; }
.plot { position: relative; height: 210px; margin-left: 46px; border-bottom: 1px solid var(--muted); }
.plot .gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rule-soft); }
.plot .gl span { position: absolute; right: 100%; margin-right: 8px; top: -8px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; min-width: 0; }
.col i { display: block; width: 72%; max-width: 30px; background: var(--green); border-radius: 4px 4px 0 0; min-height: 0; }
.col.na i { height: 100% !important; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--rule) 5px 6px); border-radius: 0; }
.chart.co .col i { background: var(--red); }
.col u { position: absolute; left: 6%; right: 6%; height: 0; border-top: 2px solid var(--ink); }
.col:hover i, .col:focus-visible i { filter: brightness(0.86); }
.col:focus-visible { outline-offset: -2px; }
.xl { display: flex; gap: 2px; margin-left: 46px; margin-top: 5px; }
.xl span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); min-width: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .xl span:nth-child(even) { visibility: hidden; } .xl.keep-even span:nth-child(even) { visibility: visible; } .xl.keep-even span:nth-child(odd) { visibility: hidden; } }
.legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 10px 0 0 46px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { width: 14px; height: 12px; background: var(--red); border-radius: 3px 3px 0 0; }
.legend .tk { width: 16px; border-top: 2px solid var(--ink); }
.legend .hx { width: 14px; height: 12px; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--muted) 4px 5px); }
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 13.5px; line-height: 1.35; padding: 7px 10px; border-radius: 4px; max-width: 260px; display: none; }
details.nums { margin: 10px 0 0; font-size: 15px; }
details.nums summary { cursor: pointer; color: var(--green); width: fit-content; }

/* tables */
.tw { overflow-x: auto; margin: 10px 0 4px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; background: var(--surface); }
caption { text-align: left; color: var(--muted); font-size: 14px; padding: 0 0 8px; caption-side: top; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
thead th { font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid var(--ink); white-space: nowrap; background: var(--surface); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th button { all: unset; cursor: pointer; font: inherit; color: inherit; }
th button:hover { color: var(--ink); }
th[aria-sort="ascending"] button::after { content: " \25B2"; font-size: 10px; }
th[aria-sort="descending"] button::after { content: " \25BC"; font-size: 10px; }
td .mb { display: inline-block; height: 10px; background: var(--green); border-radius: 0 3px 3px 0; vertical-align: middle; margin-right: 8px; min-width: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; gap: 8px; } }
.facts { list-style: none; padding: 0; margin: 10px 0; border-top: 1px solid var(--rule); max-width: 640px; }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.facts b { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* search */
.search { position: relative; max-width: 620px; margin-top: 28px; }
.search label { display: block; font-weight: 600; margin-bottom: 8px; }
.search input {
  width: 100%; font: inherit; font-size: 19px; padding: 15px 16px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 4px;
}
.results { list-style: none; margin: 6px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; position: absolute; left: 0; right: 0; z-index: 5; max-height: 420px; overflow: auto; }
.results:empty { display: none; }
.results a { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule-soft); }
.results a:hover, .results a.on { background: var(--bg); }
.results small { color: var(--muted); white-space: nowrap; }
.results .none { padding: 12px 14px; color: var(--muted); }

.filter { margin: 18px 0 6px; }
.filter input { font: inherit; padding: 10px 12px; width: 100%; max-width: 420px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--surface); color: var(--ink); }

/* link lists */
.links { list-style: none; padding: 0; margin: 10px 0; columns: 3 240px; column-gap: 32px; }
.links li { padding: 5px 0; break-inside: avoid; }
.links small { color: var(--muted); }

/* faq */
.faq h3 { margin-top: 24px; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 40px; margin-top: 26px; align-items: start; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; gap: 20px; } }
.calc label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
.calc input { font: inherit; font-size: 18px; padding: 11px 12px; width: 100%; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc .hint { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.calc output { display: block; }
.btn { display: inline-block; background: var(--green); color: #fff; font-weight: 600; padding: 13px 20px; border-radius: 4px; text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
@media (prefers-color-scheme: dark) { .btn { color: #06211B; } }

footer { border-top: 1px solid var(--rule); background: var(--surface); padding: 30px 0 44px; font-size: 14.5px; color: var(--muted); }
footer .cols4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin-bottom: 22px; }
footer b { color: var(--ink); display: block; margin-bottom: 6px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { padding: 3px 0; }
footer a { color: var(--muted); }
footer p { max-width: 90ch; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
