/* BestVPSHosting.net — "ultramarine catalogue" theme. Tokens come from config.json (see build.py: theme vars). */
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-serif-4.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2-variations");
}

:root {
  --paper: #ffffff;
  --ink: #10204a;
  --blue: #2238d6;
  --blue-deep: #15268f;
  --tint: #eef1fb;
  --tint-2: #e1e6f7;
  --line: #c7cde4;
  --yellow: #ffd23f;
  --green: #167a48;
  --red: #b3261e;
  --muted: #5b6484;
  --display: "Archivo Variable", Archivo, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4 Variable", "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1180px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-head { background: var(--blue); color: #fff; border-bottom: 4px solid var(--yellow); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 58px; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: 0.01em; text-transform: uppercase; color: #fff; text-decoration: none; font-variation-settings: "wdth" 78; white-space: nowrap; }
.brand:hover { color: var(--yellow); }
.brand small { display: block; font-weight: 500; font-size: 11px; letter-spacing: 0; text-transform: none; font-variation-settings: "wdth" 100; opacity: 0.85; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #fff; text-decoration: none; padding: 8px 10px; font-weight: 600; font-size: 15px; white-space: nowrap; border-radius: 3px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.14); color: #fff; }
.head-search { margin-left: auto; }
.head-search input { font: inherit; font-size: 14px; padding: 7px 10px; border: 0; border-radius: 3px; width: 180px; color: var(--ink); }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0 6px; }
.crumbs a { color: var(--muted); }
.crumbs span { padding: 0 6px; }

/* Page header */
.page-head { padding: 8px 0 20px; border-bottom: 3px solid var(--ink); margin-bottom: 28px; }
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; font-variation-settings: "wdth" 86; margin: 8px 0 14px; max-width: 24ch; }
.lede { font-family: var(--serif); font-size: 20px; line-height: 1.45; max-width: 68ch; margin: 0 0 18px; }
.lede b, .lede strong { font-family: var(--display); font-weight: 700; }
.verified { font-size: 13px; color: var(--muted); }
.verified a { color: var(--muted); }

/* Key figures strip */
.figures { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.figures li { border-left: 3px solid var(--blue); padding: 2px 0 2px 12px; margin: 6px 0; min-width: 120px; }
.figures .n { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variation-settings: "wdth" 86; }
.figures .l { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Layout grid */
.page-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.side { position: sticky; top: 16px; font-size: 14px; }
.side h2, .side h3 { font-size: 13px; text-transform: none; color: var(--muted); font-weight: 600; margin: 18px 0 6px; border: 0; padding: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { margin: 0; padding: 4px 0; border-top: 1px solid var(--line); }
.side li:first-child { border-top: 0; }
.side a { text-decoration: none; color: var(--ink); }
.side a:hover { color: var(--blue); text-decoration: underline; }
.side .count { color: var(--muted); font-size: 12px; }
main.content { min-width: 0; }

/* Sections */
section { margin: 0 0 40px; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; font-variation-settings: "wdth" 88; border-top: 3px solid var(--ink); padding-top: 10px; margin: 36px 0 14px; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 24px 0 8px; }
.prose p, .prose li, .prose dd { font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.prose p { max-width: 70ch; margin: 0 0 14px; }
.prose ul, .prose ol { max-width: 70ch; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose dl { max-width: 70ch; }
.prose dt { font-weight: 700; margin-top: 10px; }
.prose dd { margin: 2px 0 0; }
.note { font-size: 14px; color: var(--muted); }
p.small { font-size: 14px; }

/* Definition box */
.define { background: var(--tint); border-left: 4px solid var(--blue); padding: 14px 18px; max-width: 72ch; margin: 16px 0 22px; }
.define p { margin: 0; font-family: var(--serif); font-size: 17px; }
.define b { font-family: var(--display); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 10px 0 18px; border-bottom: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
thead th { text-align: left; font-weight: 700; font-size: 13px; color: var(--ink); border-bottom: 3px solid var(--blue); padding: 8px 10px; white-space: nowrap; vertical-align: bottom; }
tbody td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
tbody th { text-align: left; font-weight: 600; color: var(--muted); padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) th { background: var(--tint); }
tbody tr:nth-child(even) td { background: var(--tint); }
td.num, th.num { text-align: right; white-space: nowrap; }
td.rank { font-weight: 800; font-size: 18px; width: 36px; color: var(--ink); }
td.best { background: var(--yellow) !important; font-weight: 700; }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--red); }
.na { color: var(--muted); }
.cell-provider { min-width: 190px; }
.cell-provider a.name { font-weight: 700; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.cell-provider a.name:hover { color: var(--blue); text-decoration: underline; }
.cell-provider .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; max-width: 34ch; }
.favicon { width: 18px; height: 18px; border-radius: 3px; background: var(--tint-2); flex: none; }
th[data-sort] { cursor: pointer; }
th[data-sort]:hover { color: var(--blue); }
th[data-sort]::after { content: " ↕"; color: var(--line); font-weight: 400; }
th[data-sort].asc::after { content: " ↑"; color: var(--blue); }
th[data-sort].desc::after { content: " ↓"; color: var(--blue); }
.table-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 4px; font-size: 14px; }
.table-tools input { font: inherit; padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; width: 220px; }
.table-tools .hint { color: var(--muted); }

/* Ranked list (shortlist) */
.shortlist { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.shortlist li { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.shortlist li:first-child { border-top: 0; }
.shortlist .pos { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variation-settings: "wdth" 80; color: var(--blue); }
.shortlist h3 { margin: 0 0 4px; font-size: 20px; }
.shortlist h3 a { color: var(--ink); text-decoration: none; }
.shortlist h3 a:hover { color: var(--blue); text-decoration: underline; }
.shortlist .why { font-family: var(--serif); font-size: 16px; margin: 0; max-width: 64ch; }
.shortlist .specs { font-size: 13px; color: var(--muted); margin-top: 6px; }
.shortlist .price { text-align: right; white-space: nowrap; }
.shortlist .price .n { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.shortlist .price .l { font-size: 12px; color: var(--muted); }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 3px; border: 2px solid var(--blue); }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--tint); }

/* Link lists (hub navigation) */
.linklist { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 8px 0 0; font-size: 15px; }
.linklist li { break-inside: avoid; padding: 5px 0; border-top: 1px solid var(--line); }
.linklist a { text-decoration: none; }
.linklist a:hover { text-decoration: underline; }
.linklist .count { color: var(--muted); font-size: 13px; }
.cols-3 { columns: 3; }
.hubgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.hubgrid h2 { margin-top: 0; font-size: 20px; border-top-width: 3px; }
.hubgrid .linklist { columns: 1; }

/* Home hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 28px 0 32px; border-bottom: 3px solid var(--ink); margin-bottom: 30px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 16ch; }
.hero .lede { font-size: 19px; }
.hero .figures { margin-top: 10px; }

/* Map */
.map { height: 460px; border: 1px solid var(--line); background: var(--tint); }
.map.small { height: 360px; }
.map-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; font-size: 14px; }
.map-tools select { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.map-svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.figure { margin: 0 0 18px; }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.leaflet-container { background: var(--tint); font-family: var(--display); }
.leaflet-popup-content { font-family: var(--display); font-size: 14px; }
.leaflet-popup-content b { font-size: 15px; }
.leaflet-popup-content ul { margin: 6px 0 0; padding-left: 16px; }

/* Charts */
.chart { display: block; width: 100%; height: auto; }
.chart text { font-family: var(--display); }

/* Pros/cons */
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 40px; }
.proscons h3 { margin-top: 0; }
.proscons ul { padding-left: 20px; margin: 0; }
.proscons li { font-family: var(--serif); font-size: 17px; margin: 6px 0; }

/* Facts table (provider page) */
.facts { font-size: 15px; width: 100%; max-width: 760px; }
.facts th { text-align: left; width: 220px; font-weight: 600; color: var(--muted); padding: 7px 10px 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.facts td { padding: 7px 0; border-top: 1px solid var(--line); }

/* Provider header */
.provider-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.provider-head .logo { width: 56px; height: 56px; border-radius: 6px; background: var(--tint); border: 1px solid var(--line); flex: none; }
.provider-head .cta { margin-left: auto; align-self: center; }

/* Compare */
.vs-table th:first-child { width: 200px; }
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.vs-head .vs { font-size: 20px; font-weight: 800; color: var(--muted); }

/* FAQ */
.faq h3 { margin-top: 20px; }
.faq p { margin-top: 4px; }

/* Related */
.related ul { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.related li { break-inside: avoid; padding: 5px 0; border-top: 1px solid var(--line); font-size: 15px; }

/* Footer */
.site-foot { margin-top: 56px; background: var(--tint); border-top: 3px solid var(--ink); font-size: 14px; }
.site-foot .wrap { padding-top: 26px; padding-bottom: 36px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-foot h2 { font-size: 14px; border: 0; margin: 0 0 8px; padding: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { padding: 3px 0; }
.site-foot p { max-width: 48ch; color: var(--muted); margin: 6px 0; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tags a, .tags span { font-size: 13px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--ink); background: #fff; }
.tags a:hover { border-color: var(--blue); color: var(--blue); }

/* Responsive */
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; gap: 20px; }
  .side { position: static; order: 2; }
  .side ul { columns: 2; column-gap: 24px; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .cols-3 { columns: 2; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-head .wrap { gap: 14px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .head-search { display: none; }
  .linklist, .cols-3, .related ul, .side ul { columns: 1; }
  .shortlist li { grid-template-columns: 32px minmax(0,1fr); }
  .shortlist .price { grid-column: 2; text-align: left; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .map { height: 340px; }
  .figures .n { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-head, .site-foot, .side, .map, .table-tools { display: none; } }

/* ---- answer-first blocks (short answer, takeaways, update stamp, sources) */
.updated { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 3px 10px 3px 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--ink); background: var(--yellow); border-radius: 2px; }
.updated .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px rgba(255,255,255,0.7); }
.answer { border: 2px solid var(--blue); background: var(--tint); padding: 16px 20px 12px; margin: 0 0 28px; }
.answer h2 { margin: 0 0 6px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-deep); }
.answer > p { margin: 0 0 10px; font-family: var(--serif); font-size: 18px; line-height: 1.5; max-width: 75ch; }
.answer > p b { font-family: var(--display); }
.answer h3 { margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
.answer ul { margin: 0 0 4px; padding-left: 20px; }
.answer li { margin: 3px 0; font-size: 15px; }
.sources ol { padding-left: 22px; font-size: 14px; columns: 2; column-gap: 28px; }
.sources li { break-inside: avoid; margin: 3px 0; }
table.req th, table.sizes th { text-align: left; }
table.sizes td.best { font-weight: 700; }
ol.steps li { margin: 8px 0; }
.hubgrid li:not(:has(a)) { color: var(--muted); }
@media (max-width: 760px) { .sources ol { columns: 1; } .answer > p { font-size: 17px; } }
