/* Cloud Providers. The colours and the typeface are the home page's, as on Open Source Ratings, so elestia.ai reads as one site. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/cloud-providers/fonts/schibsted-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Schibsted fallback"; font-weight: 400 500; src: local("Arial"), local("Helvetica Neue"); size-adjust: 103%; ascent-override: 95.1%; descent-override: 25.2%; line-gap-override: 0%; }
@font-face { font-family: "Schibsted fallback"; font-weight: 501 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"); size-adjust: 103%; ascent-override: 95.1%; descent-override: 25.2%; line-gap-override: 0%; }

:root {
  color-scheme: light dark;
  --paper: #f2f4f1;
  --surface: #fcfdfb;
  --ink: #17201d;
  --ink2: #3b4742;
  --muted: #5c6963;
  --rule: #d0d8d3;
  --accent: #0b6a5a;
  --accent-soft: #e1efea;
  /* A score's colour: its hue runs from red to green, at this lightness and strength. */
  --plate-l: 0.86;
  --plate-c: 0.12;
  --heat-l: 0.925;
  --heat-c: 0.07;
  --pad: 32px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111815;
    --surface: #18211d;
    --ink: #e3e9e5;
    --ink2: #c3cdc7;
    --muted: #96a49d;
    --rule: #2d3934;
    --accent: #5dc8af;
    --accent-soft: #15332c;
    --plate-l: 0.44;
    --plate-c: 0.1;
    --heat-l: 0.3;
    --heat-c: 0.055;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 "Schibsted Grotesk", "Schibsted fallback", system-ui, sans-serif; }
a { color: inherit; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad) 96px; }
.top { display: flex; align-items: center; gap: 28px; height: 76px; font-size: 15px; }
.mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.mark svg { color: var(--ink); }
.top .here { color: var(--muted); text-decoration: none; }
.top .here:hover { color: var(--ink); }
.lede { max-width: 62ch; margin-top: 18px; font-size: 19px; line-height: 1.45; color: var(--ink2); }
.muted { color: var(--muted); }
.foot { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
section + section { margin-top: 64px; }
.intro { padding-top: 40px; }
.note { margin-top: 6px; font-size: 15px; }

/* The six providers, best average rank first. The first one gets the room. */
.picks { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.picks li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; align-content: start; padding-top: 14px; border-top: 1px solid var(--rule); }
.picks li:first-child { border-top: 2px solid var(--accent); }
.picks .pos { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }
.picks li:first-child .pos { color: var(--accent); }
.picks h3 { font-size: 22px; line-height: 1.2; font-weight: 700; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.picks .avg { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.picks p { margin-top: 8px; font-size: 15px; line-height: 1.45; }

/* The rank table: one colour per rank, from green (1) to red (6), with the number always shown. */
.ranks { margin-top: 18px; inline-size: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.ranks th, .ranks td { padding: 7px 4px; font-size: 15px; }
.ranks thead th { font-weight: 600; text-align: center; color: var(--ink2); }
.ranks thead th:first-child, .ranks tbody th, .ranks tfoot th { text-align: start; inline-size: 34%; font-weight: 500; }
.ranks td { text-align: center; font-variant-numeric: tabular-nums; font-weight: 650; border-radius: 4px; color: var(--ink); }
.ranks .short { display: none; text-decoration: none; }
.r1 { background: oklch(var(--heat-l) var(--heat-c) 150); }
.r2 { background: oklch(var(--heat-l) calc(var(--heat-c) * .7) 135); }
.r3 { background: oklch(var(--heat-l) calc(var(--heat-c) * .35) 110); }
.r4 { background: oklch(var(--heat-l) calc(var(--heat-c) * .35) 70); }
.r5 { background: oklch(var(--heat-l) calc(var(--heat-c) * .7) 50); }
.r6 { background: oklch(var(--heat-l) var(--heat-c) 28); }
.ranks tfoot th, .ranks tfoot td { padding-top: 12px; font-weight: 700; border-top: 1px solid var(--rule); border-radius: 0; }

/* Bar charts: the value at the end of each bar, a missing value as words. */
.charts { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.chart { margin: 0; }
.chart h3 { font-size: 18px; font-weight: 650; }
.chart > p { margin-top: 4px; font-size: 14px; }
.chart ul { margin: 14px 0 12px; }
.chart li { display: grid; grid-template-columns: 88px minmax(0, 1fr) 92px; align-items: center; gap: 10px; min-block-size: 28px; font-size: 15px; }
.chart .bar { block-size: 10px; }
.chart .bar span { display: block; block-size: 100%; background: var(--ink2); border-radius: 0 3px 3px 0; }
.chart .val { text-align: end; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart .none .val { color: var(--muted); font-weight: 400; }
.chart figcaption { font-size: 14px; line-height: 1.45; }
/* Jump links under the intro. */
.jump { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; }
.jump a { display: inline-flex; align-items: center; min-block-size: 44px; }

/* Host rankings: hosts as rows, topics as columns, the number always shown. */
.hostwrap { margin-top: 18px; }
.hosts { inline-size: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.hosts th, .hosts td { padding: 7px 4px; font-size: 15px; }
.hosts thead th { font-weight: 600; color: var(--ink2); text-align: center; font-size: 13px; line-height: 1.2; vertical-align: bottom; }
.hosts thead th:nth-child(2) { text-align: start; inline-size: 24%; }
.hosts .pos { inline-size: 28px; color: var(--muted); text-align: end; font-variant-numeric: tabular-nums; }
.hosts tbody th { text-align: start; font-weight: 500; inline-size: 24%; }
.hosts .avg { inline-size: 64px; text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.hosts tbody td:not(.pos):not(.avg) { text-align: center; font-weight: 650; border-radius: 4px; font-variant-numeric: tabular-nums; }
/* Compare: a checkbox before each host name; the ticked hosts side by side under the table. Only with JavaScript. */
.pick, .cmp { display: none; }
.js .pick { display: block; flex: none; inline-size: 16px; block-size: 16px; margin: 0; accent-color: var(--accent); }
.js .cmp { display: block; }
.cmp [hidden] { display: none; }
.hosts tbody th label { display: flex; align-items: center; gap: 8px; margin: -7px -4px; padding: 7px 4px; cursor: pointer; }
.hosts tbody th label:has(.pick:disabled) { cursor: default; }
.hosts tbody tr:has(.pick:checked) th { color: var(--accent); font-weight: 650; }
.cmp-hint { margin-top: 8px; font-size: 14px; }
.cmp-body { margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--accent); --n: 2; }
.cmp-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cmp-bar h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.cmp-clear { min-block-size: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; cursor: pointer; }
.cmp-clear:hover { color: var(--ink); }
.cmp-heads, .cmp-topic { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 28px; }
.cmp-heads { position: sticky; top: 0; z-index: 1; margin-top: 10px; padding: 10px 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
.cmp-host { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.cmp-host b { font-size: 17px; }
.cmp-topic { padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.cmp-about { grid-column: 1 / -1; margin-bottom: 10px; }
.cmp-about h4 { margin: 0; font-size: 17px; }
.cmp-about p { margin: 4px 0 0; max-width: 90ch; font-size: 14px; line-height: 1.45; }
.cmp-cell { font-size: 15px; line-height: 1.5; color: var(--ink2); }
.cmp-cell p { margin: 0 0 8px; }
.cmp-who { display: none; }
.cmp-score { display: flex; align-items: center; gap: 10px; }
.cmp-rank { display: inline-grid; place-items: center; min-inline-size: 32px; block-size: 28px; border-radius: 4px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-val { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-best { display: none; font-size: 13px; font-weight: 600; color: var(--accent); }
.cmp-cell.lead .cmp-best { display: inline; }
.cmp-src { font-size: 13px; overflow-wrap: anywhere; }
.cmp-src a { display: inline-block; margin-right: 10px; }

.legend { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 28px; font-size: 14px; line-height: 1.45; }
.legend b { color: var(--ink2); font-weight: 600; }
.hostchart { margin-top: 28px; max-inline-size: 640px; }
.hostchart li { grid-template-columns: 200px minmax(0, 1fr) 92px; }

#method p { max-width: 70ch; margin-top: 12px; }

@media (max-width: 860px) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .picks { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .lede { font-size: 17px; }
  .ranks { border-spacing: 2px; }
  .ranks th, .ranks td { padding: 8px 1px; font-size: 13px; }
  .ranks thead th:first-child, .ranks tbody th, .ranks tfoot th { inline-size: 38%; overflow-wrap: anywhere; }
  .ranks .long { display: none; }
  .ranks .short { display: inline; }
  .chart li { grid-template-columns: 76px minmax(0, 1fr) 96px; font-size: 14px; }
  /* Phone: each host takes two lines, its name and average, then its nine ranks. */
  .hosts, .hosts thead, .hosts tbody { display: block; }
  .hosts tr { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; margin-top: 10px; }
  .hosts th, .hosts td { padding: 5px 0; font-size: 13px; }
  .hosts .pos { display: none; }
  .hosts tbody th, .hosts thead th:nth-child(2) { grid-column: 1 / span 7; inline-size: auto; }
  .hosts .avg { grid-column: 8 / span 2; inline-size: auto; }
  .hosts thead th:nth-child(n+4) { block-size: 92px; }
  .hosts thead th:nth-child(n+4) span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; }
  .hostchart li { grid-template-columns: 112px minmax(0, 1fr) 84px; }
  /* Phone: the picked hosts stack under each topic, each with its name. */
  .hosts tbody th label { margin: 0; padding: 0; min-block-size: 44px; }
  .cmp-heads, .cmp-topic { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cmp-heads { position: static; gap: 10px; }
  .cmp-cell + .cmp-cell { margin-top: 10px; }
  .cmp-who { display: block; font-weight: 650; color: var(--ink); }
  .cmp-src a { min-block-size: 44px; display: inline-flex; align-items: center; }
}
