/* VPN comparison section (buythisfor.com/vpn) — same tokens as style.css */
.vpn-subnav { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 20px; font-size: 13px; border-bottom: 1px solid var(--rule); }
.vpn-subnav a { color: var(--ink-2); text-decoration: none; }
.vpn-subnav a.active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
.small { font-size: .85em; }
.vpn-hero { padding: 36px 0 10px; }
.vpn-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7em, 4vw, 2.4em); margin: 8px 0 10px; letter-spacing: -.02em; }
.vpn-hero .kicker { font-family: var(--mono); color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .78em; }

.top3-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; margin: 22px 0; }
.top3-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; }
.top3-card h3 { font-family: var(--serif); font-weight: 400; margin: 10px 0 2px; font-size: 1.15em; }
.top3-card .btn { display: inline-block; margin-top: 8px; }

.badge { display: inline-block; font-family: var(--mono); font-size: .68em; font-weight: 500; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; letter-spacing: .03em; }
.badge-editorial { background: var(--accent-soft); color: var(--accent); }
.badge-independent { background: var(--pos-soft); color: var(--pos); }

.vpn-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 16px; margin: 18px 0 12px; }
.vpn-filters label { font-size: .9em; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.vpn-sort { margin-left: auto; }

.vpn-table { width: 100%; border-collapse: collapse; font-size: .9em; background: var(--surface); table-layout: fixed; }
.vpn-table th, .vpn-table td { border-bottom: 1px solid var(--rule); padding: 11px 10px; text-align: left; vertical-align: top; }
.vpn-table th { background: var(--rule-2); font-family: var(--mono); font-size: .74em; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 500; }
.vpn-table tr:hover td { background: var(--rule-2); }

/* fixed layout: 7 columns tuned so the grid fits ~1060px with no horizontal scroll */
.vpn-table th:nth-child(1) { width: 19%; }
.vpn-table th:nth-child(2) { width: 10%; }
.vpn-table th:nth-child(3) { width: 16%; }
.vpn-table th:nth-child(4) { width: 13%; }
.vpn-table th:nth-child(5) { width: 18%; }
.vpn-table th:nth-child(6) { width: 15%; }
.vpn-table th:nth-child(7) { width: 9%; }

.td-provider strong { font-size: 1.02em; }
.td-score strong { font-size: 1.15em; font-variant-numeric: tabular-nums; }
.td-renewal b { font-variant-numeric: tabular-nums; }
.price-stack { display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; }
.price-stack span { display: flex; align-items: baseline; gap: 6px; }
.price-stack small { font-family: var(--mono); font-size: .72em; color: var(--ink-3); }
.chip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-block; font-family: var(--mono); font-size: .68em; background: var(--rule-2); color: var(--ink-2); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.chip-stream { background: var(--accent-soft); color: var(--accent); }
.chip-free { background: var(--pos-soft); color: var(--pos); }
.use-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.use-tag { display: inline-block; font-family: var(--mono); font-size: .68em; background: var(--rule-2); border-radius: 999px; padding: 1px 7px; color: var(--ink-2); }
.no-aff { color: var(--pos); }
.aff-note { margin-top: 5px; font-family: var(--mono); font-size: .68em; color: var(--ink-3); line-height: 1.35; }
.vpn-link { display: inline-block; padding: 7px 13px; font-size: .82em; text-align: center; }

/* Narrow screens: a 7-column grid still can't fit, so each row becomes a card.
   Same DOM, so filtering and sorting keep working untouched. */
@media (max-width: 860px) {
  .vpn-table, .vpn-table tbody, .vpn-table tr, .vpn-table td { display: block; width: auto; }
  .vpn-table { table-layout: auto; border-collapse: separate; border-spacing: 0; background: transparent; }
  .vpn-table thead { display: none; }
  .vpn-table tr { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
  .vpn-table tr:hover td { background: transparent; }
  .vpn-table td { border-bottom: 0; padding: 7px 0; }
  .vpn-table td + td { border-top: 1px solid var(--rule-2); }
  .vpn-table td[data-label]::before {
    content: attr(data-label); display: block; font-family: var(--mono); font-size: .68em;
    text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 3px;
  }
  .td-provider { padding-top: 0 !important; }
  .price-stack { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .price-stack span { flex-direction: column; gap: 0; }
  .td-cta .vpn-link { width: 100%; }
}

.vpn-prose { max-width: 760px; }


/* Renewal-cost table (/sv/vpn/billigaste-vpn.html). Same visual language as the main
   grid, but narrower — seven short numeric columns rather than stacked cells. */
.renewal-table { width: 100%; border-collapse: collapse; font-size: .9em; background: var(--surface); }
.renewal-table th, .renewal-table td { border-bottom: 1px solid var(--rule); padding: 9px 10px; text-align: left; vertical-align: top; }
.renewal-table th { background: var(--rule-2); font-family: var(--mono); font-size: .74em; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 500; }
.renewal-table td:nth-child(1) { color: var(--ink-3); font-family: var(--mono); font-size: .85em; }
.renewal-table td:nth-child(3), .renewal-table td:nth-child(4),
.renewal-table td:nth-child(5), .renewal-table td:nth-child(6) { font-family: var(--mono); font-size: .92em; white-space: nowrap; }
.renewal-table tr:hover td { background: var(--rule-2); }
.jump-flag { display: inline-block; font-family: var(--sans); font-size: .72em; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; margin-left: 5px; white-space: nowrap; }

@media (max-width: 720px) {
  /* Restack as cards, matching the main grid's narrow-screen treatment. */
  .renewal-table, .renewal-table tbody, .renewal-table tr, .renewal-table td { display: block; width: auto; }
  .renewal-table thead { display: none; }
  .renewal-table tr { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
  .renewal-table tr:hover td { background: transparent; }
  .renewal-table td { border-bottom: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; }
  .renewal-table td + td { border-top: 1px solid var(--rule-2); }
  .renewal-table td[data-label]::before {
    content: attr(data-label); font-family: var(--mono); font-size: .72em; text-transform: uppercase;
    letter-spacing: .04em; color: var(--ink-3);
  }
}
