/* Pack Edge table system: native sans, quiet surfaces, readable supporting text. */
:root {
  color-scheme: dark;
  --bg: #11151b;
  --surface: #181e26;
  --raised: #222a35;
  --ink: #edf0f5;
  --muted: #a3adbd;
  --line: #303947;
  --accent: #b4c3ff;
  --positive: #8ad6b3;
  --negative: #f2a6a6;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { background: none; border: 0; }
:where(button, input, select, a, .table-scroll):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.site-header { max-width: 1360px; margin: auto; padding: 0 40px; height: 80px; display: flex; align-items: center; gap: 56px; border-bottom: 1px solid var(--line); }
.brand { font-size: 25px; font-weight: 750; letter-spacing: -1.2px; }
.brand span { color: var(--accent); }
nav { display: flex; align-self: stretch; gap: 28px; font-size: 14px; font-weight: 550; }
nav a { display: flex; align-items: center; position: relative; color: var(--muted); }
nav a:hover, #design-link:hover { color: var(--ink); }
nav [aria-current] { color: var(--ink); }
nav [aria-current]::after { content: ''; position: absolute; bottom: -1px; height: 2px; inset-inline: 0; background: var(--accent); }
#design-link { margin-left: auto; color: var(--muted); font-size: 13px; }
main { max-width: 1360px; margin: auto; padding: 44px 40px 28px; }
.page-heading h1 { font-size: 42px; line-height: 1.15; font-weight: 650; letter-spacing: -1.5px; margin: 0 0 12px; }
.page-heading p { font-size: 16px; color: var(--muted); margin: 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 16px; margin: 30px 0 36px; }
.filters label { font-size: 13px; font-weight: 550; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.filters select, .filters input, .coverage-search input, .basis-label select { min-width: 0; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; font-size: 15px; line-height: 22px; color: var(--ink); }
input::placeholder { color: var(--muted); opacity: 1; }
.filters select:hover, .filters input:hover, .basis-label select:hover { border-color: var(--muted); }
#custom-price { display: flex; gap: 16px; grid-column: 1/-1; }
#custom-price label { max-width: 180px; }
.error { font-size: 14px; color: var(--negative); margin: 0 0 20px; }
.error:empty { display: none; }
#provider-context a, #provider-context button { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
#provider-context button { padding: 0; text-align: left; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; }
h2 { font-size: 22px; line-height: 1.35; font-weight: 650; margin: 0; letter-spacing: -.45px; }
h2 span { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 10px; padding: 4px 8px; background: var(--raised); border-radius: 6px; white-space: nowrap; }
.sort { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.basis-label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.basis-label select { width: auto; font-size: 13px; padding: 8px 10px; }
.sort-options { display: flex; padding: 3px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; }
.sort button { padding: 7px 11px; border-radius: 5px; color: var(--muted); white-space: nowrap; font-weight: 550; }
.sort button:hover { color: var(--ink); }
.sort button[aria-pressed=true] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px #0002; }
.method { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0 0 18px; max-width: 1000px; }
.table-scroll { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scrollbar-color: var(--muted) var(--surface); }
table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
th { background: var(--raised); color: var(--muted); font-size: 12px; line-height: 1.4; text-align: right; padding: 15px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
th:first-child { width: 5%; text-align: left; }
th:nth-child(2) { width: 30%; text-align: left; }
th:nth-child(3) { width: 10%; }
th:nth-child(4) { width: 25%; }
th:nth-child(5) { width: 11%; }
th:nth-child(6) { width: 19%; }
td { padding: 19px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--raised); }
.rank { text-align: left; color: var(--muted); font-size: 13px; }
.identity { text-align: left; }
.identity a { display: flex; gap: 8px; align-items: center; width: fit-content; }
.identity strong { font-size: 15px; font-weight: 600; line-height: 1.45; }
.row-arrow { font-size: 13px; color: var(--muted); opacity: 0; }
.identity a:is(:hover, :focus-visible) { color: var(--accent); }
.identity a:is(:hover, :focus-visible) .row-arrow { opacity: 1; }
.pack-meta { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 5px; }
.price, .roi { font-size: 14px; }
.net strong { font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -.2px; }
.net small, .discount small { font-size: 12px; display: block; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.discount strong { font-size: 16px; font-weight: 600; }
.positive { color: var(--positive); }
.negative { color: var(--negative); }
.unranked-section { margin-top: 44px; }
.unranked-section .list-heading>a { font-size: 13px; color: var(--accent); }
#unranked .net strong { font-size: 14px; font-weight: 500; color: var(--muted); }
.empty { border: 1px solid var(--line); border-radius: 12px; padding: 28px; font-size: 15px; line-height: 1.7; color: var(--muted); background: var(--surface); }
.empty button { color: var(--accent); text-decoration: underline; }
footer { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 36px; font-size: 12px; color: var(--muted); line-height: 1.7; }
footer a { color: var(--accent); }
.price-mobile, .roi-mobile, .table-hint { display: none; }
/* Provider inventory uses the same table and control components. */
.coverage-search { display: flex; gap: 20px; align-items: center; margin: 28px 0; }
.coverage-search input { max-width: 350px; }
#count { font-size: 13px; color: var(--muted); }
.coverage-table th:first-child { width: 25%; }
.coverage-table th:nth-child(2), .coverage-table th:nth-child(3) { width: 12%; text-align: right; }
.coverage-table th:nth-child(4), .coverage-table th:nth-child(5) { width: 17%; }
.coverage-table th:nth-child(6) { width: 17%; }
.coverage-table td { font-size: 15px; }
.coverage-table td:first-child { text-align: left; font-weight: 600; }
.coverage-table a:hover { color: var(--accent); }
.coverage-table small { font-size: 12px; font-weight: 400; color: var(--muted); display: block; margin-top: 5px; line-height: 1.5; }
.coverage-table .zero { color: var(--muted); }
.next-batches { margin: 32px 0; }
.next-batches ol { color: var(--muted); font-size: 14px; line-height: 1.9; padding-left: 20px; }
/* Saved Design Lab choices remain supported. Auto typography is now sans. */
:root[data-look=editorial] { color-scheme: light; --bg:#f7f3e9; --surface:#fffcf5; --raised:#eee9dc; --ink:#1f3028; --muted:#626c62; --line:#cdd1c6; --accent:#8d4b31; --positive:#226b4b; --negative:#a4322b; }
:root[data-look=editorial] h1 { font-family: Georgia,serif; font-weight: 400; }
:root[data-look=swiss] { color-scheme: light; --bg:#f7f8fa; --surface:#fff; --raised:#eef1f6; --ink:#14191e; --muted:#59636f; --line:#d6dce3; --accent:#1646d9; --positive:#226b4b; --negative:#a4322b; }
:root[data-look=scoreboard] { color-scheme: light; --bg:#f3f4e9; --surface:#fcfdf5; --raised:#e6e9da; --ink:#142937; --muted:#5d6c74; --line:#c1ccbd; --accent:#526a10; --positive:#226b4b; --negative:#a4322b; }
:root[data-look=scoreboard] h1 { font-family: Impact,'Arial Narrow',sans-serif; text-transform: uppercase; letter-spacing: .02em; }
:root[data-type=serif] :is(h1,h2) { font-family: Georgia,serif; }
:root[data-type=sans] :is(h1,h2) { font-family: var(--font); }
:root[data-type=mono] :is(h1,h2) { font-family: 'Courier New',monospace; }
:root[data-density=relaxed] td { padding-top: 26px; padding-bottom: 26px; }
:root[data-accent=blue] { --accent:#315ee7; }
:root[data-accent=orange] { --accent:#a3441e; }
:root[data-accent=purple] { --accent:#8756c4; }
:root[data-look=terminal][data-accent=blue] { --accent:#94b8ff; }
:root[data-look=terminal][data-accent=orange] { --accent:#ffb58e; }
:root[data-look=terminal][data-accent=purple] { --accent:#d2b5ff; }
@media(max-width:1100px) {
  .table-hint { display: block; font-size: 12px; color: var(--muted); margin: 0 0 10px; }
  .list-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  #ranked table, #unranked table { min-width: 950px; }
}
@media(max-width:700px) {
  .site-header { height: auto; padding: 12px 20px 0; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 22px; }
  nav { flex-basis: 100%; height: 44px; gap: 17px; font-size: 13px; }
  #design-link { display: none; }
  main { padding: 28px 20px 24px; }
  .page-heading h1 { font-size: 32px; letter-spacing: -1px; }
  .page-heading p { font-size: 15px; line-height: 1.6; }
  .filters { grid-template-columns: 1fr 1fr; gap: 16px 12px; margin: 24px 0 28px; }
  .filters input, .filters select { font-size: 16px; padding: 10px; }
  h2 { font-size: 21px; }
  h2 span { font-size: 12px; margin-left: 6px; }
  .sort { width: 100%; flex-wrap: wrap; gap: 12px; }
  .basis-label { flex-basis: 100%; justify-content: space-between; }
  .basis-label select { flex: 1; margin-left: 8px; font-size: 15px; min-height: 44px; }
  .sort-options { width: 100%; }
  .sort button { flex: 1; min-height: 38px; }
  .method { font-size: 13px; }
  .table-hint { display: block; font-size: 12px; color: var(--muted); margin: 0 0 10px; }
  #ranked table, #unranked table { min-width: 535px; }
  #ranked th:first-child, #unranked th:first-child, td.rank,
  #ranked th:nth-child(3), #unranked th:nth-child(3), td.price,
  #ranked th:nth-child(5), #unranked th:nth-child(5), td.roi { display: none; }
  #ranked th:nth-child(2), #unranked th:nth-child(2) { width: 155px; }
  #ranked th:nth-child(4), #unranked th:nth-child(4) { width: 190px; }
  #ranked th:nth-child(6), #unranked th:nth-child(6) { width: 190px; }
  td, th { padding: 16px 12px; }
  .net, .discount, #ranked th:nth-child(4), #unranked th:nth-child(4), #ranked th:nth-child(6), #unranked th:nth-child(6) { text-align: left; }
  .net strong { font-size: 14px; }
  .identity, #ranked th:nth-child(2), #unranked th:nth-child(2) { position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--line); }
  #ranked th:nth-child(2), #unranked th:nth-child(2) { background: var(--raised); }
  .identity strong { font-size: 14px; }
  .row-arrow { display: none; }
  .price-mobile { display: block; font-size: 13px; margin-top: 5px; }
  .roi-mobile { display: block; font-size: 12px; margin-top: 6px; }
  .unranked-section { margin-top: 36px; }
  .coverage-table { min-width: 850px; }
  .coverage-search { align-items: start; flex-direction: column; gap: 12px; }
  .coverage-search input { font-size: 16px; max-width: none; }
}
@media(prefers-reduced-motion:no-preference) {
  a, button, input, select { transition: color .12s, background-color .12s, border-color .12s; }
}

@media(max-width:374px) {
  .site-header { padding: 12px 16px 0; gap: 6px; height: auto; flex-wrap: wrap; }
  nav { flex-basis: 100%; height: 40px; gap: 16px; font-size: 13px; }
  main { padding-inline: 16px; }
  h2 span { margin: 6px 0 0; }
}

/* Explain the selected evidence basis without a dismissible help overlay. */
.basis-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0 16px}
.basis-guide article{border-top:2px solid var(--line);padding:13px 0 0}
.basis-guide .active-basis{border-color:var(--accent)}
.basis-guide h3{font-size:13px;line-height:1.5;margin:0 0 7px;font-weight:600}
.basis-guide p{font-size:12px;line-height:1.65;color:var(--muted);margin:0}
.selected-basis{display:inline-block;margin-left:5px;font-size:10px;font-weight:500;color:var(--accent)}
.basis-formula{font-size:13px;line-height:1.65;color:var(--ink);margin:0 0 10px;max-width:1050px}
@media(max-width:700px){.basis-guide{grid-template-columns:1fr;margin-top:8px}.basis-guide article:not(.active-basis){display:none}.basis-guide p{font-size:13px}.basis-formula{font-size:12px}}
/* Rankings: category first, compact filters, and details in the current list. */
.rankings-page{padding-top:28px}
.ranking-heading{display:flex;align-items:center;gap:28px;margin-bottom:20px}
.ranking-heading h1{font-size:28px;letter-spacing:-.8px;margin-bottom:6px}
.ranking-heading p{font-size:13px}
.category-primary{min-width:250px;border-right:1px solid var(--line);padding-right:28px}
.category-primary label{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.category-primary select{width:100%;font-size:24px;font-weight:650;letter-spacing:-.5px;color:var(--accent);border:0;background:var(--bg);padding:3px 25px 3px 0}
.ranking-filters{grid-template-columns:1fr 1fr 1.5fr;margin:0 0 22px;gap:14px}
.ranking-filters label{font-size:12px;gap:5px}
.ranking-filters input,.ranking-filters select{font-size:14px;padding:8px 11px;line-height:20px}
.ranking-context{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:10px 0 14px;font-size:12px;color:var(--muted)}
.ranking-context p{margin:0}.ranking-context button{padding:0;color:var(--accent);font-size:12px;white-space:nowrap}
#basis-help{border-block:1px solid var(--line);padding:0 0 4px;margin-bottom:18px}
.rankings-page .list-heading{margin-bottom:8px}
.rankings-page .table-hint{display:none}
.rankings-page #ranked th:nth-child(5),.rankings-page #unranked th:nth-child(5),.rankings-page td.roi{display:none}
.rankings-page #ranked th:nth-child(4),.rankings-page #unranked th:nth-child(4){width:30%}
.rankings-page #ranked th:nth-child(6),.rankings-page #unranked th:nth-child(6){width:25%}
.rankings-page .net-secondary{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.pack-row{cursor:pointer}.pack-expand{display:flex;align-items:center;gap:10px;padding:0;text-align:left;width:100%}
.pack-expand:hover strong,.pack-expand[aria-expanded=true] strong{color:var(--accent)}
.pack-expand .row-arrow{opacity:1;display:inline;color:var(--muted);font-size:16px}
.pack-detail-row>td{padding:0!important;text-align:left;cursor:auto;border-bottom:1px solid var(--line)}
.pack-detail-row:hover>td{background:var(--surface)}
.inline-pack{padding:22px 26px;background:var(--bg);border-left:3px solid var(--accent);font-size:13px;white-space:normal}
.inline-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:20px}
.inline-heading h3{margin:0 0 5px;font-size:18px;font-weight:600}.inline-heading p{font-size:12px;color:var(--muted);margin:0}
.inline-pack a{color:var(--accent);font-size:12px}.inline-pack a:hover{text-decoration:underline}
.inline-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:20px}
.inline-metrics span,.inline-metrics small{display:block;font-size:12px;color:var(--muted);line-height:1.6}.inline-metrics strong{display:block;font-size:19px;font-weight:600;margin:5px 0}
.inline-note,.inline-warning{font-size:12px;line-height:1.65;color:var(--muted);margin:12px 0}.inline-warning{border-left:2px solid var(--accent);padding-left:12px}
.inline-distribution{border-top:1px solid var(--line);padding-top:14px;max-width:950px}
.inline-dist-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:10px}.inline-dist-heading h4{font-size:13px;margin:0}.inline-dist-heading>span{font-size:11px;color:var(--muted)}
.inline-band{display:grid;grid-template-columns:220px minmax(50px,1fr) 90px;align-items:center;gap:16px;margin:10px 0;font-size:12px;font-variant-numeric:tabular-nums}.inline-band b{text-align:right;font-weight:500}.inline-band small{font-size:10px;color:var(--muted)}
.inline-track{background:var(--raised);height:7px;border-radius:3px;overflow:hidden}.inline-track i{display:block;height:100%;background:var(--accent);border-radius:3px}.inline-track .loss{background:var(--negative)}.inline-track .gain{background:var(--positive)}.inline-track .mixed{background:#d8c28e}
.inline-footer{border-top:1px solid var(--line);margin-top:18px;padding-top:12px;color:var(--muted);font-size:11px;line-height:1.6}.inline-footer p{margin:0 0 8px}.inline-footer>div{display:flex;gap:8px 18px;flex-wrap:wrap}.inline-footer a{overflow-wrap:anywhere}
@media(max-width:1100px){.rankings-page .list-heading{flex-direction:row;align-items:center;flex-wrap:wrap}.rankings-page .sort{gap:10px}.inline-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rankings-page{padding-top:18px}.ranking-heading{gap:14px;margin-bottom:18px}.ranking-heading h1{font-size:18px;letter-spacing:-.4px}.ranking-heading p{display:none}.category-primary{min-width:0;width:56%;padding-right:14px;flex-shrink:0}.category-primary select{font-size:21px;padding-right:0}.ranking-filters{grid-template-columns:1fr 1fr;margin-bottom:16px;gap:10px}.ranking-filters .search{grid-column:1/-1}.ranking-filters label{font-size:11px}.ranking-filters input,.ranking-filters select{font-size:14px;padding:8px 10px}.rankings-page .list-heading{gap:10px}.rankings-page .list-heading h2{font-size:18px}.rankings-page .sort{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}.rankings-page .basis-label{display:block;font-size:0;margin:0}.rankings-page .basis-label select{width:100%;font-size:12px;margin:0;padding:8px;min-height:38px}.rankings-page .sort-options{padding:2px}.rankings-page .sort button{font-size:11px;padding:6px;min-height:32px}.ranking-context{gap:10px;margin:8px 0 12px;align-items:flex-start}.ranking-context p{font-size:11px;line-height:1.5}.ranking-context button{font-size:11px;white-space:normal;flex-shrink:0;max-width:80px;text-align:right}.rankings-page #ranked th:nth-child(4),.rankings-page #unranked th:nth-child(4){width:190px}.rankings-page #ranked th:nth-child(6),.rankings-page #unranked th:nth-child(6){width:190px}.inline-pack{padding:17px 14px;width:calc(100vw - 42px);max-width:100%;position:sticky;left:0}.inline-heading{display:block;margin-bottom:16px}.inline-heading h3{font-size:16px}.inline-heading>a{display:inline-block;margin-top:8px}.inline-metrics{gap:14px}.inline-metrics strong{font-size:17px}.inline-metrics span,.inline-metrics small{font-size:11px}.inline-band{grid-template-columns:minmax(100px,1fr) minmax(20px,.8fr) 76px;gap:10px;font-size:11px}.inline-dist-heading{display:block}.inline-dist-heading>span{display:block;margin-top:4px}.inline-footer{font-size:10px}}
@media(max-width:374px){.inline-pack{width:calc(100vw - 34px)}.category-primary select{font-size:19px}.ranking-heading h1{font-size:16px}.inline-band{grid-template-columns:minmax(100px,1fr) minmax(20px,.8fr) 70px;gap:8px}.inline-metrics{grid-template-columns:1fr}}
@media(min-width:701px) and (max-width:1100px){.inline-pack{width:calc(100vw - 82px);position:sticky;left:0}}

.inline-band-list{max-height:280px;overflow:auto;scrollbar-color:var(--muted) var(--bg);padding-right:8px}.inline-band-list:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.inline-metrics>div{min-width:0}.inline-metrics strong{overflow-wrap:anywhere}
