@font-face {
  font-family: Geist;
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

:root {
  --ground: #f8f8f6;
  --surface: #fff;
  --ink: #171a16;
  --muted: #5d6359;
  --line: #e2e4df;
  --rule: #ebede8;
  --control: #d2d6ce;
  --hover: #f3f4f0;
  --selected: #eef1ea;
  --positive: #24694e;
  --negative: #9c3535;
  --focus: #1d5fbf;
  --small-radius: 6px;
  --panel-radius: 9px;
  --gutter: clamp(16px, 3vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-family: Geist, system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.5;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

a { color: inherit; }
a:hover { text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: var(--gutter);
  padding: 8px 12px;
  border-radius: var(--small-radius);
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

/* The header, canvas and footer share the same 1120px column and page gutters. */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 38px);
}

.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  font-weight: 690;
  letter-spacing: -.035em;
  font-size: 17px;
  white-space: nowrap;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  border-radius: var(--small-radius);
  filter: grayscale(1);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  flex: 1;
  min-width: 0;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 510;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover, .primary-nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 5px;
}

.primary-nav a[aria-current] { font-weight: 630; }

.currency-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  white-space: nowrap;
}

.currency-label { color: var(--muted); font-size: 13px; }

select, input[type='search'], .button {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--control);
  border-radius: var(--small-radius);
  background-color: var(--surface);
}

select { padding-right: 6px; }
.currency-form select { min-height: 33px; font-size: 12px; font-weight: 590; }
.button:hover, select:hover { border-color: var(--muted); }

.site-main { flex: 1; }

.page-intro {
  padding-block: 34px 20px;
}

h1, h2, p { margin: 0; }

h1 {
  font-size: clamp(27px, 3.2vw, 32px);
  font-weight: 690;
  line-height: 1.12;
  letter-spacing: -.048em;
  text-wrap: balance;
}

h2 {
  font-size: 17px;
  font-weight: 660;
  line-height: 1.3;
  letter-spacing: -.024em;
}

.page-intro p, .section-heading p {
  max-width: 60ch;
  color: var(--muted);
  margin-top: 7px;
}

.intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.intro-row > * { min-width: 0; }

.intro-meta {
  display: grid;
  gap: 2px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.intro-meta a { text-underline-offset: 3px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  color: var(--muted);
  gap: 5px 9px;
  align-items: center;
  margin-bottom: 11px;
  font-size: 13px;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs a::after {
  content: '/';
  color: var(--muted);
  margin-inline-start: 9px;
}

.section { margin-top: 35px; }
.section-heading { margin-bottom: 11px; }

.comparison-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.ledger {
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  min-width: 0;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}

.table-toolbar p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.table-toolbar h2 { font-size: 16px; }

.table-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  gap: 7px;
  min-width: 0;
}

.search-field {
  position: relative;
  display: block;
  min-width: 0;
}

.search-field::before, .search-field::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.search-field::before {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  inset: 12px auto auto 11px;
}

.search-field::after {
  width: 5px;
  height: 1.5px;
  background: var(--muted);
  transform: rotate(45deg);
  inset: 22px auto auto 19px;
}

.search-field input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 280px;
  padding-left: 32px;
}

.search-field input::placeholder { color: var(--muted); opacity: 1; }
.table-controls .search-field { min-width: min(250px, 100%); }

.table-scroll { overflow-x: auto; border-radius: inherit; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 9px 13px;
  vertical-align: top;
}

.data-table :is(th, td):first-child { padding-inline-start: 16px; }
.data-table :is(th, td):last-child { padding-inline-end: 16px; }

.data-table thead th {
  padding-block: 10px;
  font-size: 13px;
  font-weight: 530;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.data-table tbody th {
  font-weight: 520;
  overflow-wrap: anywhere;
}

.data-table tbody th, .data-table tbody td { border-bottom: 1px solid var(--rule); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover, .data-table tbody tr:focus-within { background: var(--hover); }
.data-table tbody tr.selected-region { background: var(--selected); }
.data-table .num { text-align: right; overflow-wrap: anywhere; }

.identity-cell { min-width: 0; }
.entity-link {
  font-weight: 640;
  text-decoration: none;
}

.entity-link:hover, .country-link:hover { text-decoration: underline; }

.field-sub {
  display: block;
  font-size: 13px;
  font-weight: 440;
  color: var(--muted);
  line-height: 1.43;
  margin-top: 2px;
}

.country-link { text-decoration: none; }

.price-figure, .billed-price { font-weight: 620; }
.delta { font-weight: 560; }
.delta-cheaper { color: var(--positive); }
.delta-pricier { color: var(--negative); }
.delta-neutral, .muted { color: var(--muted); }
.date-cell { white-space: nowrap; font-size: 13px; color: var(--muted); }

.row-action {
  width: 36px;
  text-align: right;
  color: var(--muted);
}

.row-action a {
  display: inline-block;
  padding: 1px 2px;
  min-width: 23px;
  text-decoration: none;
}

.row-action a:hover { color: var(--ink); }

.rank {
  display: inline-block;
  width: 23px;
  color: var(--muted);
  font-size: 12px;
}

.with-rank { margin-inline-start: 23px; }

.ledger-footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 16px;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 13px;
}

.ledger-footer a { text-underline-offset: 3px; }
.text-link { text-underline-offset: 3px; }
.compact-meta, .row-details { display: none; }

.row-details summary {
  width: fit-content;
  min-height: 25px;
  padding: 3px 5px 3px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}

.row-details dl { margin: 2px 0 6px; font-size: 13px; }
.row-details dl > div { margin-top: 4px; }
.row-details dt { color: var(--muted); }
.row-details dd { margin: 0; }

.plan-switcher, .plan-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.plan-switcher label { font-size: 13px; font-weight: 560; }
.plan-switcher select { min-width: 0; max-width: 100%; }
.plan-links { margin-bottom: 4px; }

.group-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-variant-numeric: tabular-nums;
}

.group-summary strong { color: var(--ink); font-weight: 640; }

.section-note { margin-top: 13px; font-size: 13px; color: var(--muted); }

.local-offers { margin-top: 15px; border-block: 1px solid var(--line); }

.local-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: start;
  gap: 5px 12px;
  padding-block: 10px;
  font-variant-numeric: tabular-nums;
}

.local-offer + .local-offer { border-top: 1px solid var(--line); }
.local-offer-price { text-align: right; overflow-wrap: anywhere; }
.local-offer-price > strong { font-size: 20px; line-height: 1.2; letter-spacing: -.045em; }
.page-intro .local-offer-note { grid-column: 1 / -1; margin: 0; font-size: 12px; }

.country-picker { position: relative; }
.country-picker summary {
  cursor: pointer;
  min-height: 37px;
  padding: 7px 10px;
  border: 1px solid var(--control);
  border-radius: var(--small-radius);
  background: var(--surface);
  font-size: 13px;
  white-space: nowrap;
}

.country-picker nav {
  position: absolute;
  z-index: 2;
  top: calc(100% + 5px);
  right: 0;
  width: min(215px, 75vw);
  max-height: 245px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  padding: 4px;
}

.country-picker a { display: block; padding: 6px 9px; text-decoration: none; }
.country-picker a:hover, .country-picker a[aria-current] { background: var(--hover); }

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 21px;
}

.related-list a {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-block: 9px;
  text-decoration: none;
}

.related-list a:hover strong { text-decoration: underline; }
.related-price { color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  padding-block: 10px;
  cursor: pointer;
  font-weight: 560;
}

.faq-list p { padding: 0 0 12px 14px; max-width: 70ch; color: var(--muted); }

.empty-state { padding: 14px 16px; color: var(--muted); margin: 0; }
.page-intro > .empty-state { padding-inline: 0; }

.source-panel { padding: 15px 16px; }
.source-panel > p { margin-top: 8px; }
.coverage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
  font-variant-numeric: tabular-nums;
}
.coverage-list dt, .source-list dd { color: var(--muted); }
.coverage-list dt { font-size: 13px; }
.coverage-list dd { margin: 2px 0 0; font-weight: 620; }

.source-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 36px;
}

.source-content h2 { margin-bottom: 7px; }
.source-content .ledger { margin-top: 12px; }
.source-content p { max-width: 65ch; }
.source-content:has(> :only-child) { grid-template-columns: 1fr; }

.source-list { margin: 0; }
.source-list > div { border-bottom: 1px solid var(--line); padding-block: 7px; }
.source-list dt { font-weight: 630; }
.source-list dd { margin: 2px 0 0; }

.site-footer { margin-top: 38px; border-top: 1px solid var(--line); padding-block: 15px 25px; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px 15px;
}
.footer-name { font-weight: 650; text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 13px; }
.site-footer nav a, .site-footer p { font-size: 13px; color: var(--muted); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 24px; }
.site-footer p { max-width: 80ch; margin-top: 6px; }

@media (max-width: 1040px) {
  .wide-col { display: none; }
  .row-details { display: block; }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .header-row { gap: 13px; min-height: 50px; }
  .brand { font-size: 15px; gap: 6px; }
  .brand-mark { width: 21px; height: 21px; }
  .primary-nav { gap: 10px; }
  .primary-nav a { font-size: 12px; }
  .nav-source, .currency-label { display: none !important; }
  .currency-form select { max-width: 90px; min-height: 38px; }
  .page-intro { padding-block: 24px 15px; }
  .intro-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .intro-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; text-align: left; }
  .table-toolbar { padding: 10px 12px; align-items: stretch; flex-direction: column; gap: 8px; }
  .table-controls { flex: auto; justify-content: flex-start; gap: 6px; }
  .table-controls .search-field { flex: 1 1 100%; }
  .search-field input { max-width: none; }
  .table-controls select { max-width: 100%; }
  .desktop-col { display: none; }
  .compact-meta { display: block; }
  .data-table th, .data-table td { padding: 8px; }
  .data-table :is(th, td):first-child { padding-inline-start: 12px; }
  .data-table :is(th, td):last-child { padding-inline-end: 12px; }
  .data-table thead th { padding-block: 8px; }
  .comparison-table .identity-cell { width: 50%; }
  .ledger-footer { padding: 8px 12px; }
  .related-list, .source-content { grid-template-columns: 1fr; }
  .coverage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { margin-top: 26px; }
  .country-picker nav { right: auto; left: 0; }
}

@media (max-width: 365px) {
  .header-row { flex-wrap: wrap; gap: 0 9px; }
  .primary-nav { flex: 0 0 100%; order: 3; gap: 14px; }
  .primary-nav a { min-height: 36px; }
  .brand { font-size: 14px; }
  .currency-form select { max-width: 80px; }
}


.spread-meter {
  display: block;
  width: 68px;
  height: 4px;
  margin: 4px 0 0 auto;
  border: 0;
  appearance: none;
  background: var(--rule);
}

.spread-meter::-webkit-meter-bar { background: var(--rule); border: 0; }
.spread-meter::-webkit-meter-optimum-value { background: var(--focus); }
.spread-meter::-moz-meter-bar { background: var(--focus); }
.data-table .duration-cell, .nowrap { white-space: nowrap; }

.comparison-tools { display: flex; justify-content: flex-end; margin: 0 0 .65rem; }
.comparison-heading { color: inherit; font: inherit; background: transparent; border: 0; cursor: pointer; white-space: nowrap; padding: .35rem; }
.comparison-heading:hover { text-decoration: underline; }
.price-comparison-dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; width: min(29rem, calc(100% - 2rem)); max-height: 86dvh; margin: auto; }
.price-comparison-dialog::backdrop { background: rgb(22 23 26 / 48%); }
.price-comparison-dialog header, .price-comparison-dialog footer, .comparison-plan { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.price-comparison-dialog header button { font-size: 1.45rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.price-comparison-dialog h3, .price-comparison-dialog p { margin: 0; }
.price-comparison-dialog p, .comparison-plan small { color: var(--muted); font-size: .875rem; }
.comparison-market { display: grid; gap: .35rem; margin: 1rem 0; font-weight: 600; }
.comparison-market select { width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--control); padding: .5rem; border-radius: 6px; }
.price-comparison-dialog fieldset { margin: 0; padding: 0; border: 0; }
.price-comparison-dialog legend { font-size: .875rem; font-weight: 600; padding: 0 0 .35rem; }
.comparison-plan { padding: .65rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.comparison-plan small { display: block; }
.comparison-plan input { width: 1.15rem; height: 1.15rem; }
.price-comparison-dialog footer { margin-top: 1rem; justify-content: flex-end; }
.price-comparison-dialog .comparison-done {
  min-width: 5.5rem;
  min-height: 2.5rem;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--surface);
  font-weight: 650;
  cursor: pointer;
}
.price-comparison-dialog .comparison-done:hover { background: color-mix(in srgb, var(--ink) 90%, var(--surface)); }
.price-comparison-dialog .comparison-done:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
