.costs-hero { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.costs-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18em; }
.costs-hero .lede { max-width: 40em; }
.ref { margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.ref > div { padding: 16px 20px 0 0; }
.ref > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.ref dt { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 6px; }
.ref dd { margin: 0; color: var(--muted); font-size: 0.93rem; }
.lead-gap { margin-top: clamp(36px, 5vw, 60px); }
.cap { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; max-width: 60em; }
.tbl-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tbl-wrap.narrow { max-width: 760px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 0.93rem; min-width: 760px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl thead th { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--bg-alt); white-space: nowrap; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody th { font-weight: 600; }
.tbl td span, .tbl th span { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .rk { color: var(--muted); font: 500 0.8rem var(--mono); width: 2.2em; }
.tbl.small { font-size: 0.88rem; min-width: 560px; }
.tbl.small td span, .tbl.small th span { display: inline; font-size: inherit; }
.tbl code { font-size: 0.78em; color: var(--muted); }
.league { min-width: 900px; }
.matrix { min-width: 960px; }
.matrix td.heat.cheap { background: color-mix(in srgb, var(--accent) calc(var(--k) * 50%), transparent); }
.matrix td.heat.dear { background: color-mix(in srgb, var(--warn) calc(var(--k) * 42%), transparent); }
.matrix td b { display: block; font-variant-numeric: tabular-nums; }
.matrix td span { font-size: 0.78rem; color: var(--ink); opacity: 0.75; }
.matrix td.na { color: var(--muted); text-align: center; }
.conf { display: inline-block !important; font: 500 0.68rem var(--mono) !important; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border: 1px solid var(--line); color: var(--ink) !important; }
.conf.ok { border-color: var(--accent); }
.conf.mid { border-color: var(--warn); }
.conf.low { border-color: #a3361f; }
.provs { margin-top: 28px; display: grid; gap: 10px; }
.prov { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prov summary { cursor: pointer; padding: 14px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; list-style: none; font-weight: 600; }
.prov summary::-webkit-details-marker { display: none; }
.prov summary::before { content: "+"; font: 400 1.2rem/1 var(--mono); color: var(--accent); margin-right: 10px; }
.prov[open] summary::before { content: "\2212"; }
.prov summary > span:first-child { flex: 1; min-width: 12em; }
.prov summary em { font: 500 0.78rem var(--mono); font-style: normal; color: var(--muted); margin-left: 8px; }
.prov .sm { font-weight: 400; font-size: 0.86rem; color: var(--muted); }
.prov .tbl-wrap { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; max-height: 28rem; overflow: auto; }
.prov .cap { padding: 0 18px 14px; }
.src-list li { max-width: none; font-size: 0.95rem; }
.src { color: var(--muted); display: block; font-size: 0.85rem; margin-top: 2px; }
.pilot-cta .sub { max-width: 36em; }
.nav .links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 980px) { .ref { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } .ref > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 640px) { .ref { grid-template-columns: minmax(0, 1fr); } .ref > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 8px; } }

/* filters */
.filters { position: relative; background: var(--bg-alt); border-block: 1px solid var(--line); padding-block: 18px; z-index: 5; }
.filters-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px 14px; align-items: end; }
.f-field { display: grid; gap: 6px; min-width: 0; }
.f-field label { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.f-field select { font: 400 0.95rem var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; width: 100%; min-width: 0; }
.f-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.f-reset { font: 600 0.9rem var(--body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; cursor: pointer; }
.f-reset:hover { border-color: var(--ink); }
.f-sum { grid-column: 1 / -1; margin: 4px 0 0; font-size: 0.92rem; color: var(--muted); min-height: 1.5em; }
@media (min-width: 981px) { .filters { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 980px) { .filters-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-reset { justify-self: start; } }
@media (max-width: 520px) { .filters-in { grid-template-columns: minmax(0, 1fr); } }
[hidden] { display: none !important; }

/* sovereign table */
.sovt { min-width: 1080px; }
.sovt td.notes { color: var(--muted); font-size: 0.86rem; min-width: 18em; }
.matrix td.na2 { color: var(--muted); }
.matrix td.na2 b { font-weight: 500; font-style: italic; }
.matrix td.na2 span { font-size: 0.75rem; }
.tbl .muted { color: var(--muted); }
.tbl-wrap.tall { max-height: 36rem; overflow: auto; }
.tbl-wrap.tall thead th { position: sticky; top: 0; z-index: 1; }
.empty { margin: 14px 0 0; padding: 16px; border: 1px dashed var(--line); color: var(--muted); border-radius: var(--radius); }
