/* VPS Price Board: table, filters, stats. Loaded after /styles.css (tokens come from there). */
.stats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.stats li { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-k { color: var(--ink-3); font-size: 12.5px; letter-spacing: .04em; }
.stats strong { font-size: 26px; letter-spacing: -.02em; color: var(--accent); }
.stat-s { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }

.filters { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; margin: 0 0 14px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.filters legend { color: var(--ink-3); font-size: 12.5px; padding: 0; margin: 0 0 8px; float: left; width: 100%; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); font-size: 15px; background: rgba(15,15,16,.6); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.f-sel { display: flex; flex-direction: column; gap: 6px; }
.f-sel > span { color: var(--ink-3); font-size: 12.5px; }
.f-sel select { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink); font: inherit; font-size: 15px; }
.f-sel select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.count { color: var(--ink-3); font-size: 13px; margin: 0 0 10px; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); max-width: 100%; }
.tbl-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tbl { border-collapse: collapse; width: 100%; min-width: 1040px; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-weight: 400; }
.tbl thead th { position: sticky; top: 0; background: #1c1c20; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; padding: 0 12px; height: 46px; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl thead th.n { text-align: right; }
.tbl tbody tr:hover { background: rgba(246,244,239,.03); }
.tbl .key { color: var(--accent); font-weight: 600; }
.tbl thead .key { color: var(--accent); }
.sort { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: inherit; font: inherit; font-size: 13px; font-weight: 600; }
.sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
th[aria-sort="ascending"] .sort::after { content: "▲"; font-size: 10px; }
th[aria-sort="descending"] .sort::after { content: "▼"; font-size: 10px; }
.c-plan { min-width: 250px; }
.c-plan .prov { font-weight: 600; margin-right: 6px; }
.c-plan .fam { display: block; color: var(--ink-3); font-size: 13px; }
.orig { display: block; color: var(--ink-3); font-size: 12.5px; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.tag-api { border-color: var(--accent); color: var(--accent); }
.tag-reported { border-color: var(--warn); color: var(--warn); }
a.go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; }
a.go:hover { color: var(--ink); border-color: var(--ink-3); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.method .ticks { margin-top: 18px; }
.method h3 { margin-top: 26px; }
.sources a { color: var(--ink); }
.disclosure { max-width: 70ch; }
@media (max-width: 760px) {
  /* Phones: keep plan, vCPU, RAM, price and the ranking column; the full table is one tap away on a wider screen. */
  .hide-m { display: none; }
  .tbl { min-width: 0; }
  .tbl th, .tbl td { padding: 10px 8px; }
  .c-plan { min-width: 0; }
  .c-plan .prov { display: block; }

  .stats { grid-template-columns: minmax(0, 1fr); }
  .filters { gap: 12px 14px; }
}
