/* esimreisvergelijker.nl
   Every destination is its map: a light sea carries the top of each page, land is white with a
   blue coast line, and white sheets on a pale water ground hold the answers and the lists.
   Tokens first, then base, shell, shared parts, the pages, narrow screens and motion. */

@font-face {
  font-family: "Overpass";
  src: url("/static/fonts/overpass-latin.woff2?v=1") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  /* Without U+00B7: Overpass sets the middle dot tight against the next word, so the dot
     between plan remarks comes from the platform font. */
  unicode-range: U+0000-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass";
  src: url("/static/fonts/overpass-latin-ext.woff2?v=1") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Sea, water and land. */
  --sea: #d7ecf9;
  --sea-2: #c3e1f4;
  --sea-ink: #24486b;
  --water: #f2f8fc;
  --land: #ffffff;
  --land-2: #f3f8fc;
  --coast: #1e63b5;
  --region: #7696b6;

  --ink: #0b2239;
  --ink-2: #47596d;
  --ink-3: #1b3a5c;
  --line: #d3dfea;
  --edge: #6b7f96;

  /* The one action colour, and the two price signals. */
  --blue: #1257c8;
  --blue-2: #0d46a6;
  --on-blue: #ffffff;
  --green: #0a7650;
  --green-bg: #dcf3e7;
  --green-wash: #f2faf6;
  --red: #b8322a;
  --coral: #d6432b;
  /* Where masts are reported, on a map, in two zones: almost everywhere (dark) and in places
     (light). The pictures that scripts/build_coverage.py draws carry the same two colours. */
  --reach: #4a2fb8;
  --reach-some: #8f7ce6;
  --reach-ink: #3d2699;

  --info-bg: #e9f4fc;
  --info-line: #b5d5ee;
  --code-bg: #e2ecf4;
  --focus: #0b2239;

  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  /* One module: the graticule of the sea and the larger gaps of the page. */
  --cell: 3rem;
  --radius: 0.625rem;
  --radius-sheet: 1rem;
  --lift: 0 1px 2px rgb(11 34 57 / 0.05), 0 10px 24px -10px rgb(11 34 57 / 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
  scrollbar-color: var(--edge) var(--water);
}

body {
  margin: 0;
  background: var(--water);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  caret-color: var(--blue);
}

main {
  flex: 1;
}
.page {
  padding-block: 1.75rem 4rem;
}

::selection {
  background: var(--blue);
  color: var(--on-blue);
}

h1,
h2,
h3,
p,
ul,
ol,
table,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}
/* Words that only one of the two layouts needs. A narrow word that stands in for a wide one
   also carries `hidden`, so that a page read without this stylesheet says it once; the rule
   for narrow screens below shows it all the same. */
.narrow-only {
  display: none;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  background: var(--land);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
}
.skip:focus {
  top: 0.5rem;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.28em;
}

.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* --- Shell: the sea, with the site name, the navigation, the title and the search -------- */

.shell {
  background: var(--sea);
  color: var(--ink);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-name span {
  color: var(--coast);
  font-weight: 600;
}
.brand-mark {
  flex: none;
  width: 1.862rem;
  height: 1.75rem;
}
.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 1.75rem;
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.9375rem;
}
.bar nav a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.15s var(--ease);
}
.bar nav a:hover {
  background: rgb(255 255 255 / 0.55);
}
.bar nav a[aria-current="page"],
.bar nav a.is-section {
  background: var(--land);
  box-shadow: 0 1px 2px rgb(11 34 57 / 0.1);
}

/* The band under the bar: the sea with its graticule. */
.band {
  background-image:
    linear-gradient(var(--sea-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--sea-2) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  /* A line of the graticule lies on the left edge of the content. */
  background-position: calc(50% - 34.5rem) top;
}

.mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  align-items: end;
  gap: 1.5rem 3rem;
  padding-block: 2rem 2.5rem;
}
.mast h1 {
  font-size: clamp(2rem, 1.25rem + 3.2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.facts {
  margin-top: 0.7rem;
  color: var(--sea-ink);
  font-variant-numeric: tabular-nums;
  max-width: 56ch;
  text-wrap: balance;
}
.facts a {
  color: var(--blue);
  font-weight: 600;
}
.first-time {
  display: block;
  width: fit-content;
}

/* Home: the question, then the map of the world to pick from. */
.mast-home {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 2rem 2.25rem;
}
.home-ask {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: 1.25rem 3rem;
}
.home-title {
  display: grid;
  gap: 0.8rem;
}
.home-title h1 {
  max-width: 18ch;
}
.home-title .facts {
  margin-top: 0;
}
/* Under the counts: when the prices were last updated, by its date. While that update is
   recent the line opens with the live mark (a dot sending out two waves) and the word
   "Live"; the waves breathe slowly. After a missed night a clock and the date remain. */
.home-facts {
  display: grid;
  gap: 0.3rem;
}
.updated {
  color: var(--sea-ink);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.updated .icon {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.35rem;
  vertical-align: -0.24em;
  color: var(--ink);
}
.updated strong {
  color: var(--ink);
  font-weight: 750;
}
.updated.is-live .live-wave {
  animation: live-wave 2.8s ease-in-out infinite;
}
.updated.is-live .live-wave-far {
  animation-delay: 0.45s;
}
@keyframes live-wave {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
.home-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
}
.planner-hint {
  color: var(--sea-ink);
  font-size: 0.9375rem;
}
/* Said once, when a visitor adds a country to a route that is full. */
.planner-note {
  margin-top: 0.6rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
}
.planner-note[hidden] {
  display: none;
}
/* The search and not-found pages keep one narrow column. */
.mast-home > .search,
.mast-home > .facts {
  max-width: 40rem;
}
.mast-home > .facts {
  margin-top: 0;
}

/* --- Search ----------------------------------------------------------------------------- */

.search label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}
/* The field is land: white, with a coast line around it. */
.search-field {
  position: relative;
  display: flex;
  border: 1.5px solid var(--coast);
  border-radius: 0.875rem;
  background: var(--land);
  box-shadow: var(--lift);
}
.search input {
  flex: 1;
  min-width: 0;
  height: 2.875rem;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 0.875rem 0 0 0.875rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.search input::placeholder {
  color: var(--ink-2);
  opacity: 1;
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search input::-webkit-calendar-picker-indicator {
  display: none !important;
}
.search button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.search button:hover {
  background: var(--sea);
}
.search-field:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.search input:focus-visible {
  outline: none;
}
.search-big label {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.search-big input {
  height: 3.75rem;
  padding-inline: 1.15rem;
  font-size: 1.125rem;
}
/* On the home page the search is the one action: filled. */
.search-big button {
  margin: 0.35rem;
  padding-inline: 1.35rem;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 1.0625rem;
}
.search-big button:hover {
  background: var(--blue-2);
}

/* The list of suggestions under the field (drawn by the script): the country as its
   silhouette, its name and its lowest price. */
.combo {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  left: -1.5px;
  right: -1.5px;
  max-height: min(24rem, 60vh);
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--land);
  box-shadow:
    0 1px 2px rgb(11 34 57 / 0.06),
    0 18px 36px -14px rgb(11 34 57 / 0.32);
  list-style: none;
}
.combo-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.6rem;
  cursor: pointer;
}
.combo-item.is-active,
.combo-item:hover {
  background: var(--sea);
}
.combo-map {
  display: block;
  width: 2.75rem;
  height: 2.0625rem;
  padding: 0.15rem;
  border-radius: 4px;
  background: var(--sea);
  object-fit: contain;
}
.combo-item.is-active .combo-map,
.combo-item:hover .combo-map {
  background: var(--land);
}
.combo-name {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-in {
  margin-left: 0.5rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 400;
}
.combo-from {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The planner: the field, the route it builds, and the one action for that route. */
.route {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.route[hidden],
.planner-go[hidden] {
  display: none;
}
/* A chosen country is a pill filled with ink, like every chosen thing. */
.route li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.25rem 0.3rem 0.25rem 0.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--land);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.2;
}
.route-n {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--land);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.route .route-x {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c4d3e3;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.route .route-x:hover {
  background: var(--ink-3);
  color: var(--land);
}
.route-x .icon {
  width: 1rem;
  height: 1rem;
}
.route .route-x:focus-visible {
  outline-color: var(--land);
  outline-offset: -2px;
  border-radius: 50%;
}
.planner-go {
  margin-top: 0.8rem;
}
.planner-go .btn {
  min-height: 3.25rem;
  font-size: 1.0625rem;
  white-space: normal;
}
/* The button in the field compares when there is no route yet, and adds a country to a
   route that exists; its icon says which. */
.planner .icon-plus,
.planner.has-route .icon-search {
  display: none;
}
.planner.has-route .icon-plus {
  display: inline;
}
/* With a route the action is "compare for this route"; adding a country steps back. */
.planner.has-route .search-field button {
  background: transparent;
  color: var(--blue);
}
.planner.has-route .search-field button:hover {
  background: var(--sea);
}
.add-stop {
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: var(--blue);
}
.add-stop .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1em;
}

/* --- The world map: every country a link, with the reach of all networks under it -------- */

.world {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  min-width: 0;
}
/* Above the map, on one line where there is room: the parts of the world to jump to, and
   what the colours mean. */
.world-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}
.world > .reach-note {
  max-width: none;
}
.world-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.world-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--info-line);
  border-radius: var(--radius-sheet);
  background: var(--sea-2);
  box-shadow: var(--lift);
  view-transition-name: world-map;
}
.world-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6400 / 3120;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.world-map.is-live {
  cursor: grab;
}
.world-map.is-live:active {
  cursor: grabbing;
}
.world-map path,
.world-map circle {
  vector-effect: non-scaling-stroke;
}
/* A shape takes its fill and line from the group or link around it, never from a rule of
   its own: the same shape is drawn again as border over the reach, and there it must take
   them from that layer. */
.w-none {
  fill: #e8f4fb;
  stroke: #b9d6ec;
  stroke-width: 0.75;
  stroke-linejoin: round;
}
.w-lands a {
  fill: var(--land);
  stroke: #9dc0df;
  stroke-width: 0.75;
  stroke-linejoin: round;
  cursor: pointer;
  outline: none;
  transition: fill 0.15s var(--ease);
}
.w-lands a:hover,
.w-lands a:focus-visible {
  fill: #d5e6fb;
}
/* The borders again, over the reach: a pale line that shows on the dark zones and falls
   away on white land, where the line under it does the work. */
.w-lines {
  fill: none;
  stroke: rgb(255 255 255 / 0.5);
  stroke-width: 0.75;
  stroke-linejoin: round;
  pointer-events: none;
}
/* A country too small to hit has a dot to hit, drawn over the reach and only from close by:
   on the whole world the dots would cover what lies under them. */
.w-dots a {
  cursor: pointer;
  outline: none;
}
.w-dot {
  display: none;
  fill: var(--land);
  stroke: var(--coast);
  stroke-width: 1.5;
}
.is-close .w-dot,
.w-dots a.is-on .w-dot {
  display: inline;
}
.w-dots a:hover .w-dot,
.w-dots a.is-on .w-dot {
  fill: var(--ink);
  stroke: var(--land);
}
/* The country under the pointer: a coast-blue line on a white one, so it shows on a dark
   zone as well as on white land. */
.w-over {
  fill: none;
  stroke-linejoin: round;
  pointer-events: none;
}
.w-over path:first-child {
  stroke: var(--land);
  stroke-width: 4.5;
}
.w-over path:last-child {
  stroke: var(--coast);
  stroke-width: 2;
}
/* The reach lies over the land, cut off along the coasts, and lets the land under it show
   through, so a country under the pointer still lights up. */
.w-reach {
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* A chosen country: an ink line around it, its place on the route, and the route itself. */
.w-picks path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.25;
  stroke-linejoin: round;
  pointer-events: none;
}
.w-route {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-dasharray: 1 6;
  stroke-linecap: round;
  pointer-events: none;
}
.w-marks {
  pointer-events: none;
}
.w-marks circle {
  fill: var(--ink);
  stroke: var(--land);
  stroke-width: 2;
}
.w-marks text {
  fill: var(--land);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.map-tools {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  gap: 0.3rem;
}
.map-tools[hidden] {
  display: none;
}
.map-tools button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: var(--land);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.map-tools button:hover {
  border-color: var(--blue);
  background: var(--land-2);
}
/* The name under the pointer. */
.world-tip {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 0 0.5rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #c4d3e3;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px -6px rgb(11 34 57 / 0.5);
}
.world-tip[hidden] {
  display: none;
}
.world-tip .tip-hint,
.world-tip .tip-reach {
  grid-column: 1 / -1;
}
.world-tip strong {
  color: var(--land);
  font-weight: 700;
}

/* What the reach colours mean, in words, with every map that has them: the darker the
   zone, the more masts were reported and the better the chance of a connection. */
.reach-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
  color: var(--sea-ink);
  font-size: 0.875rem;
}
.reach-key-title {
  color: var(--ink);
  font-weight: 750;
}
.reach-key-title span {
  color: var(--sea-ink);
  font-weight: 400;
}
/* Every mark of the key takes the same room, a square or a drawn mark. */
.reach-key .map-key {
  width: 0.85rem;
  height: 0.85rem;
}
.reach-key ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reach-key li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.key-reach {
  display: inline-block;
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 4px;
}
.key-much {
  background: var(--reach);
}
/* The lighter zone and the empty one carry a line, so the swatch stands out on any ground. */
.key-some {
  background: var(--reach-some);
  box-shadow: inset 0 0 0 1px #6f5ad8;
}
.key-none {
  border: 1px solid var(--edge);
  background: var(--land);
}
/* --- Shared parts ------------------------------------------------------------------------ */

.block {
  margin-top: var(--cell);
}
.block:first-child {
  margin-top: 0.5rem;
}
.block > h2,
.list-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.block > h2 {
  margin-bottom: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--land);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
a.chip:hover {
  border-color: var(--blue);
  background: var(--land-2);
}
.chip .n {
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
button.chip {
  font-family: inherit;
  cursor: pointer;
}
button.chip:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--land-2);
}
/* Until the script runs, the networks under a reach map are a list to read, not to press. */
button.chip:disabled {
  cursor: default;
}
button.chip:disabled:not(.is-on) {
  border-color: var(--line);
  color: var(--ink);
}
/* Chosen: filled with ink. The blue fill is kept for the one action of a page. */
.chip.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--land);
}
.chip.is-on .n {
  color: #c4d3e3;
}
a.chip.is-on:hover,
button.chip.is-on:hover:not(:disabled) {
  border-color: var(--ink-3);
  background: var(--ink-3);
}
.chip.is-empty {
  border-style: dashed;
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The filled action: one per answer. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--blue);
  border-radius: 0.75rem;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.btn:hover {
  border-color: var(--blue-2);
  background: var(--blue-2);
}
.btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.btn-quiet {
  background: var(--land);
  color: var(--blue);
}
.btn-quiet:hover {
  background: var(--blue);
  color: var(--on-blue);
}

/* A sheet: white land on the water. */
.panel {
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--land);
}
.panel h2,
.panel h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.panel p {
  margin-top: 0.6rem;
  max-width: 60ch;
}
.promises h3 {
  margin-top: 1rem;
  font-size: 1rem;
}
.promises h3 + p {
  margin-top: 0.25rem;
}
.promises .source {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.notice {
  margin-bottom: 1rem;
  border-color: var(--info-line);
  background: var(--info-bg);
}
.notice p + p {
  color: var(--sea-ink);
}
.empty {
  margin-top: 1.25rem;
}

/* --- Home: destinations as tiles --------------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  display: grid;
  height: 100%;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--land);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.tile:hover {
  border-color: var(--coast);
  box-shadow: var(--lift);
  transform: translateY(-2px);
}
.tile:focus-visible {
  border-radius: var(--radius-sheet);
}
/* The country in its sea, and over it the reach of all its networks: the same 800 by 600
   frame as the silhouette, so the two lie on each other. */
.tile-map {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--sea);
}
.tile-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0.6rem;
  object-fit: contain;
}
.tile-reach {
  mix-blend-mode: multiply;
}
.tile-name {
  padding: 0.65rem 0.9rem 0;
  font-weight: 750;
  line-height: 1.25;
}
.tile-price {
  padding: 0.1rem 0.9rem 0.8rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.tile-price strong {
  color: var(--ink);
  font-weight: 750;
}

/* --- Country page: the map in the sea ---------------------------------------------------- */

.mast-country,
.mast-trip {
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
  align-items: start;
  padding-block: 1.5rem 4rem;
}
/* The map stands on the right with its key right under it; what the map shows, the
   networks to choose from and where the data comes from stand under the title, beside it,
   so the band stays low and the answer near. */
.mast-country {
  grid-template-areas:
    "text map"
    "pick map"
    "note map";
  grid-template-rows: auto auto 1fr;
  row-gap: 0.7rem;
}
.mast-country .mast-text {
  grid-area: text;
  padding-bottom: 0.6rem;
}
.mast-country .mast-map,
.mast-country .mast-map .reach {
  display: contents;
}
.mast-country .reach-map {
  grid-area: map;
  align-self: start;
}
.mast-country .reach-pick,
.mast-country .map-legend {
  grid-area: pick;
}
.mast-country .reach-note {
  grid-area: note;
}
.mast-country .mast-text,
.mast-trip .mast-text {
  padding-top: 1.25rem;
}
.mast-next {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.mast-next .search {
  flex: 0 1 19rem;
}
.mast-next .add-stop {
  min-height: 2.875rem;
}
.mast-trip {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 34rem);
}
.mast-trip .planner {
  max-width: 28rem;
  margin-top: 1.25rem;
}
.mast-trip .world-map {
  aspect-ratio: 4 / 3;
}
/* The first sheet of the page lies half in the sea. */
.is-country .mast {
  padding-bottom: 4rem;
}
.is-country .page {
  position: relative;
  margin-top: -2.25rem;
  padding-top: 0;
}

.map-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.map {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--info-line);
  border-radius: var(--radius-sheet);
  background: var(--sea-2);
}
.mast-map {
  view-transition-name: country-map;
}
.mast-map .map {
  box-shadow: var(--lift);
}
.mast-tile {
  display: none;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--sea-ink);
  font-size: 0.875rem;
}
.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.map-key {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
}
.key-capital {
  fill: var(--land);
  stroke: var(--coral);
  stroke-width: 3;
}
.key-city {
  fill: var(--coral);
  stroke: var(--land);
  stroke-width: 1.5;
}
.key-region {
  fill: none;
  stroke: var(--region);
  stroke-width: 2;
}
.map-context {
  fill: #e8f4fb;
  stroke: #afd0e9;
  stroke-width: calc(2px / var(--z, 1));
  stroke-linejoin: round;
}
/* The land is drawn twice: white ground under the reach, the coast line over it. */
.map-ground {
  fill: var(--land);
}
.map-coast {
  fill: none;
  stroke: var(--coast);
  stroke-width: calc(3px / var(--z, 1));
  stroke-linejoin: round;
}
/* Under the coast of a map with a reach: a white line, so the coast reads on a dark zone. */
.map-halo {
  fill: none;
  stroke: var(--land);
  stroke-width: calc(7px / var(--z, 1));
  stroke-linejoin: round;
}
.map-regions {
  fill: none;
  stroke: var(--region);
  stroke-width: calc(2px / var(--z, 1));
  stroke-linejoin: round;
}
.map-city,
.map-scale {
  opacity: var(--map-labels, 1);
}
/* Zoomed in (the script sets --z), a city keeps its size and stays on its dot. The scale
   bar only holds for the whole map. */
.map-city {
  transform: scale(calc(1 / var(--z, 1)));
  transform-box: fill-box;
  transform-origin: 8px 50%;
}
.map-city.is-end {
  transform-origin: calc(100% - 8px) 50%;
}
.map-scale {
  opacity: var(--scale-bar, 1);
}
.map-city circle {
  fill: var(--coral);
  stroke: var(--land);
  stroke-width: 3;
}
/* The capital is marked by form as well as size: a ring. */
.map-city.is-capital circle {
  fill: var(--land);
  stroke: var(--coral);
  stroke-width: 5;
}
.map-city text {
  fill: var(--ink);
  font-family: var(--font);
  font-size: 27px;
  font-weight: 650;
  paint-order: stroke;
  stroke: var(--land);
  stroke-width: 8px;
  stroke-linejoin: round;
}
.map-scale path {
  fill: none;
  stroke: var(--sea-ink);
  stroke-width: 3;
}
.map-scale text {
  fill: var(--sea-ink);
  font-family: var(--font);
  font-size: 23px;
  font-weight: 650;
}

/* The reach map: the country's map with, under its coast line, where masts are reported;
   under it the networks to choose from and what the colours mean. */
.reach {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}
/* The map with its key right under it. */
.reach-map {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}
.reach-stage {
  position: relative;
}
.reach.is-live .map {
  cursor: crosshair;
  touch-action: pan-y;
}
/* A plan's networks were asked for: the map answers with a ring that fades. */
.reach.is-called .map {
  animation: called 1.4s var(--ease);
}
@keyframes called {
  from {
    outline: 3px solid var(--reach);
    outline-offset: 3px;
  }
  to {
    outline: 3px solid transparent;
    outline-offset: 3px;
  }
}
.reach-pick {
  display: grid;
  gap: 0.7rem;
}
.reach-nets {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
}
.reach-back {
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
}
.reach-back[hidden] {
  display: none;
}
.reach-back .icon {
  width: 1rem;
  height: 1rem;
}
/* What the map shows, in a sentence, before the networks to look at one by one. */
.reach-words {
  max-width: 58ch;
  color: var(--ink);
}
.reach-q {
  font-size: 0.9375rem;
  font-weight: 750;
}
.reach-nets ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reach-note a {
  white-space: nowrap;
}
.reach-note {
  max-width: 62ch;
  color: var(--sea-ink);
  font-size: 0.875rem;
  line-height: 1.4;
}
/* Every network at the spot under the pointer. */
.reach-tip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0.65rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--land);
  box-shadow: var(--lift);
  font-size: 0.875rem;
  line-height: 1.35;
  pointer-events: none;
}
.reach-tip[hidden],
.reach-spot[hidden] {
  display: none;
}
/* After a tap: the answer at the foot of the map, and a ring on the spot it is about. */
.reach-tip.is-foot {
  position: static;
  margin-top: 0.5rem;
  box-shadow: none;
}
.reach-spot {
  position: absolute;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  margin: -0.55rem 0 0 -0.55rem;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--land);
  pointer-events: none;
}
.reach-tip p {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.reach-tip strong {
  font-weight: 700;
}
.reach-tip p > span:last-child {
  color: var(--ink-2);
  text-align: right;
}
.reach-tip .is-off strong {
  color: var(--ink-2);
  font-weight: 400;
}
/* All networks together stands apart from the networks one by one. */
.reach-tip .is-all {
  margin-bottom: 0.1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}
/* The networks of a plan: with the script a button that shows their reach on the map. */
.net.is-live {
  position: relative;
  z-index: 1;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--reach);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.net.is-live:hover {
  color: var(--reach-ink);
}
.answer-net {
  margin-top: 0.15rem;
}

/* The same map again as its own sheet, where a phone has room for the labels. The sheet
   carries `hidden`, so a page read without this stylesheet shows the map once. */
.map-sheet {
  display: none;
}
.map-sheet h2,
.sellers h2 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.map-sheet .map-words {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.map-sheet .reach-key,
.map-sheet .reach-note {
  color: var(--ink-2);
}

/* --- The trip: two questions on one sheet ------------------------------------------------- */

.filters {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.5rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--land);
  box-shadow: var(--lift);
}
.filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
}
.filter-label {
  font-size: 0.9375rem;
  font-weight: 750;
}
.filter ul,
.sort ul,
.wider ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.help {
  max-width: 78ch;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* --- The answer: one statement about the plan at the top of the list, then its action ------ */

.answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2.5rem;
  margin-top: 1rem;
  padding: 1.3rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--land);
  view-transition-name: answer;
}
/* Who, what and for how much read as one line of one size; weight tells them apart. */
.answer h2 {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.answer h2 .icon {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.35rem;
  color: var(--green);
}
.answer-plan,
.answer-fig {
  font-weight: 800;
}
.answer-fig {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.answer-fig .unit {
  color: inherit;
  font-size: inherit;
  font-weight: 500;
}
.answer .note {
  margin-top: 0.4rem;
}
.answer-more {
  margin-top: 0.3rem;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
/* One or two providers behind the answer: the foot of the sheet says so, in ink on the
   notice wash. It is part of the sheet, not a box inside it. */
.answer-thin {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
  margin: 0.2rem -1.5rem -1.4rem;
  padding: 0.7rem 1.5rem 0.75rem;
  border-top: 1px solid var(--info-line);
  border-radius: 0 0 calc(var(--radius-sheet) - 1px) calc(var(--radius-sheet) - 1px);
  background: var(--info-bg);
  color: var(--ink);
  font-size: 0.9375rem;
}
.answer-thin .icon {
  flex: none;
  margin-top: 0.12em;
}
/* The cheapest plan that fits the chosen trip: green in the line around the sheet, in the
   check mark and in the figure. */
.answer.is-best {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  background: var(--green-wash);
}
.is-best .answer-fig {
  color: var(--green);
}

/* The answer for a trip through several countries: the eSIMs to buy, one line each, and
   under them the other way to do it. */
.answer-trip {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}
.picks {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.is-best .picks,
.is-best .pick {
  border-color: #bfe3d2;
}
.pick,
.answer-other {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6rem 1.5rem;
}
.pick {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.pick-where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 750;
}
.pick-stop {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.pick-n {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--land);
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pick-plan {
  margin-top: 0.15rem;
  font-size: 1.0625rem;
}
.pick-plan strong {
  font-weight: 750;
}
.pick-price {
  font-size: 1.0625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.pick .note,
.answer-other .note {
  margin-top: 0.2rem;
}
.answer-none {
  margin-top: 0;
}

/* The route, country by country: which eSIM covers it and where its networks reach. */
.rates.rates-stops td,
.rates.rates-stops th {
  vertical-align: middle;
}
.rates-stops .c-stop {
  width: 24%;
}
.rates-stops .c-reach {
  width: 30%;
}
.stop-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
}
.rates-stops .go-name {
  display: inline;
}
.rates-stops .route-n {
  background: var(--ink);
  color: var(--land);
}
.rates-stops .c-stop .note {
  margin-left: 2.15rem;
}
.reach-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.reach-mini {
  position: relative;
  display: inline-block;
  flex: none;
  width: 6.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sea);
}
.reach-mini img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0.3rem;
  object-fit: contain;
}
.mini-reach {
  mix-blend-mode: multiply;
}
/* The key above the route table: only where the world map with its key is left out. */
.stops-key {
  display: none;
}
.reach-words {
  margin-top: 0;
}
.is-trip .list-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.rates-whole {
  view-transition-name: none;
}
/* Example routes on the page of a part of the world: what one eSIM for all of a route costs
   and what an eSIM per country costs, each figure with what it buys. */
.rates-ways .c-one,
.rates-ways .c-each {
  width: 22%;
}

/* --- Above the list ----------------------------------------------------------------------- */

.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.7rem;
}
.block > .list-head {
  margin-top: 0;
  margin-bottom: 0.9rem;
  align-items: baseline;
}
.order {
  color: var(--ink-2);
}
.order strong {
  color: var(--ink);
}
/* Above the plan list: the sentence, then the tools, always in that order. */
.list-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
}
.list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.wider {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}
.panel .wider {
  margin-top: 0.75rem;
}
.panel .wider p {
  margin-top: 0;
}
.touch-hint {
  display: none;
}
.stamp {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stamp strong {
  color: var(--ink);
  font-weight: 700;
}
.sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- The list: one line per plan, country, provider or question --------------------------- */

.rates {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--land);
  font-variant-numeric: tabular-nums;
}
.rates th,
.rates td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  vertical-align: baseline;
  font-weight: 400;
  transition: background-color 0.15s var(--ease);
}
.rates .num {
  text-align: right;
}
.rates thead th {
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.rates tbody tr + tr th,
.rates tbody tr + tr td {
  border-top: 1px solid var(--line);
}
.rates-plans {
  view-transition-name: plan-list;
}
.rates tbody tr:hover th,
.rates tbody tr:hover td {
  background: var(--land-2);
}
/* The corners of the sheet stay round when the last row is tinted. */
.rates tbody tr:last-child > :first-child {
  border-bottom-left-radius: calc(var(--radius-sheet) - 1px);
}
.rates tbody tr:last-child > :last-child {
  border-bottom-right-radius: calc(var(--radius-sheet) - 1px);
}
.rates th:first-child,
.rates td:first-child {
  padding-left: 1.4rem;
}
.rates th:last-child,
.rates td:last-child {
  padding-right: 1.4rem;
}

.prov {
  display: block;
  font-weight: 750;
  color: var(--ink);
}
a.prov {
  text-decoration: none;
}
a.prov:hover {
  color: var(--blue);
  text-decoration: underline;
}
.note {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
}
.unit {
  color: var(--ink-2);
  font-size: 0.875rem;
}
.c-pergb .unit {
  display: none;
}
.c-pergb .unit-day {
  display: inline;
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.c-gap {
  font-weight: 550;
}
.rates-plans .c-data,
.rates-plans .c-days {
  white-space: nowrap;
}
.lowest {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 700;
}
.is-lowest .price {
  color: var(--green);
}
/* Sorted on price per GB: that figure is the one to read down, and the one that turns green. */
.by-gb .c-pergb .fig {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.by-gb .price {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.by-gb .is-lowest .price {
  color: inherit;
}
.by-gb .is-lowest .c-pergb .fig {
  color: var(--green);
}
.gap-word {
  display: none;
}

.move {
  display: inline-flex;
  margin-right: 0.15rem;
  vertical-align: 0.05em;
}
.move .icon {
  width: 1rem;
  height: 1rem;
}
.move-down {
  color: var(--green);
}
.move-up {
  color: var(--red);
}

.c-go {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}
.go {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.go:hover {
  background: var(--blue);
  color: var(--on-blue);
}
.go .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.go-name {
  display: none;
}
/* One width down the column, whatever the provider's name. */
.rates-plans .go {
  display: flex;
  justify-content: space-between;
}

.more {
  margin-top: 1rem;
}
/* Where "show the others" lands: the first new row, with the row before it still in view. */
#meer {
  scroll-margin-top: 6rem;
}

.after-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3.5rem;
  margin-top: 1.5rem;
}
.after-list .prose {
  margin-top: 0;
}
.after-col {
  display: grid;
  align-content: start;
  gap: 2rem;
}
.sellers p {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.sellers dl {
  margin: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.sellers dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.15rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.sellers dt {
  font-weight: 750;
}
.sellers dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.sellers .names {
  margin-top: 0.6rem;
  color: var(--ink);
}
.sellers .names + p {
  margin-top: 0.6rem;
}
/* A fold: a question that opens its answer in place, without script. The whole line is the
   control; the chevron turns when it is open. */
.fold {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.6rem 0;
  cursor: pointer;
  list-style: none;
}
.fold summary::-webkit-details-marker {
  display: none;
}
.fold summary h2,
.fold summary h3 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.fold summary .icon {
  color: var(--ink-2);
  transition: transform 0.2s var(--ease);
}
.fold summary:hover .icon {
  color: var(--ink);
}
.fold[open] summary .icon {
  transform: rotate(180deg);
}
.fold .sellers {
  padding-bottom: 0.9rem;
}
.fold .sellers dl {
  margin-bottom: 0.6rem;
}
/* Folds in a row share the rule between them. */
.fold + .fold {
  border-top: 0;
}
/* The answer of a question: running text, then the link to the page that says more. */
.fold-answer {
  padding-bottom: 1.1rem;
}
.prose .fold-answer p + p {
  margin-top: 0.5rem;
}
.after-list > :only-child {
  margin-top: 1.75rem;
}
.legend {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.9375rem;
  max-width: 62ch;
}
.legend li + li {
  margin-top: 0.35rem;
}
.legend strong {
  color: var(--ink);
  font-weight: 700;
}

/* The provider table sets its own column behaviour. */
.prov .icon {
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.35rem;
  color: var(--ink-2);
}
.rates-providers .c-prov {
  width: 55%;
}
.rates-providers td {
  white-space: nowrap;
}

/* The price index: per destination (or part of the world) the lowest price of three fixed
   packages, each with a Note line under it. A price leads to the country's list for that
   package, so it reads as a link while staying Ink, the colour of every price. */
.rates-index .c-basket {
  width: 21%;
}
.rates-index td.c-basket {
  line-height: 1.3;
}
.rates-index .price {
  font-size: 1.125rem;
}
.rates-index .fig {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.rates-index .fig:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}
.rates-index .note {
  margin-top: 0.2rem;
}
.rates-index .cell-label {
  display: none;
}
.rates-index .is-group th {
  padding-block: 0.75rem 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 750;
}
.rates-index .is-group .note {
  font-weight: 400;
}
.rates-index tbody tr.is-group:hover th {
  background: none;
}
/* Two groups in one sheet: the first one's last row keeps square corners. */
.rates-index tbody:not(:last-child) tr:last-child > * {
  border-radius: 0;
}
.rates-index tbody + tbody tr:first-child > * {
  border-top: 1px solid var(--line);
}
.rates-parts {
  margin-top: 0.25rem;
}
/* A part of the world as a fold: its name, how many countries, the chevron; opened, its
   table. */
.index-parts {
  margin-top: 1.25rem;
}
.index-part summary .fold-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.index-part[open] summary {
  margin-bottom: 0.25rem;
}
.index-part .rates {
  margin-bottom: 1.25rem;
}
.index-legend {
  margin-top: 1.25rem;
}

/* --- Prose ------------------------------------------------------------------------------- */

.prose {
  margin-top: 3.5rem;
  max-width: 46rem;
}
.prose h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.prose > h2:first-child,
.prose > div > h2:first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol {
  max-width: 60ch;
}
.prose p + p,
.prose ul + p,
.prose p + ul,
.prose ol + p,
.prose p + ol {
  margin-top: 0.75rem;
}
.prose ul,
.prose ol {
  padding-left: 1.2rem;
}
.prose li + li {
  margin-top: 0.3rem;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: var(--code-bg);
  white-space: nowrap;
}
.prose-page {
  margin-top: 1rem;
}
/* The questions page: per group a heading and its questions as folds, one cell between the
   groups. */
.prose .faq-group > h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.faq-group + .faq-group {
  margin-top: var(--cell);
}
.prose .faq-close {
  margin-top: var(--cell);
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3.5rem;
  max-width: none;
}

/* --- Guide ------------------------------------------------------------------------------- */

/* The index and "Verder in de gids": each question with its short answer. */
.rates-guide .c-q {
  width: 27rem;
}
.rates-guide .c-a {
  color: var(--ink-2);
}

/* An article: a reading column. Where a paragraph rests on a source, the source stands beside
   it in the margin on a wide screen and under it on a narrow one. */
.mast-article h1 {
  max-width: 20ch;
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
}
.prose.guide {
  margin-top: 0.5rem;
}
.guide-more {
  margin-top: 3rem;
}
.prose .rates {
  margin-block: 1rem 1.25rem;
}
.prose .rates th[scope="row"] {
  font-weight: 650;
}
.prose .noted + p,
.prose .noted + ul,
.prose .noted + .noted,
.prose p + .noted,
.prose ul + .noted,
.prose ol + .noted {
  margin-top: 0.75rem;
}
.margin-note {
  margin-top: 0.4rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.45;
}
.prose .margin-note p {
  max-width: 60ch;
}
.margin-label {
  color: var(--ink);
  font-weight: 700;
}
.ext .icon {
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.25em;
  vertical-align: -0.12em;
}
.prose .article-stamp {
  margin-top: 2.25rem;
}
.country-run {
  color: var(--ink-2);
}
/* A figure in an article, such as the world map: as wide as the text and its margin
   together. It lies on the water, so it is flat; Lift belongs to the map in the band. */
.guide-figure {
  margin-block: 1.25rem 1.5rem;
}
.guide-figure .world-stage {
  box-shadow: none;
}

/* A table of shares: per row the part of the land in each zone of the reach, as a bar under
   the name and as figures in the columns. The column headings carry the key's swatches. */
.shares-caption {
  margin-bottom: 0.5rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-align: left;
}
.shares-title {
  color: var(--ink);
  font-weight: 750;
}
.rates-shares .c-place {
  width: 100%;
}
.rates-shares thead .key-reach {
  margin-right: 0.4rem;
  vertical-align: -0.1em;
}
.rates.rates-shares th,
.rates.rates-shares td {
  vertical-align: middle;
}
.prose .rates-shares th[scope="row"] {
  font-weight: 400;
}
.share-place {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
}
.share-name {
  font-weight: 650;
}
.share-name .prov {
  font-weight: 750;
}
.has-maps .share-place {
  grid-template-columns: 6.5rem minmax(0, 1fr);
  grid-template-areas:
    "map name"
    "map bar";
  align-items: center;
  column-gap: 1rem;
}
.has-maps .reach-mini {
  grid-area: map;
}
.has-maps .share-name {
  grid-area: name;
  align-self: end;
}
.has-maps .share-bar {
  grid-area: bar;
  align-self: start;
}
.share-bar {
  display: block;
  max-width: 22rem;
  height: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: var(--land);
}
.share-bar svg {
  display: block;
}
.sb-much {
  fill: var(--reach);
}
.sb-some {
  fill: var(--reach-some);
}
.sb-gap {
  fill: var(--land);
}
/* The row of all countries together closes the table, set apart by a firmer line. */
.rates-shares tbody tr.is-total th,
.rates-shares tbody tr.is-total td {
  border-top-color: var(--edge);
}
.rates-shares .is-total .share-name {
  font-weight: 750;
}

@media (min-width: 72rem) {
  .guide-figure {
    width: 67rem;
  }
  .noted {
    display: grid;
    grid-template-columns: minmax(0, 46rem) 17rem;
    align-items: start;
    column-gap: 4rem;
    width: 67rem;
  }
  .margin-note {
    margin-top: 0.3rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }
}

/* --- All countries ----------------------------------------------------------------------- */

.letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.letters a {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--land);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.letters a:hover {
  border-color: var(--blue);
  background: var(--land-2);
}
.az {
  columns: 3 18rem;
  column-gap: 2.5rem;
}
.az-group {
  break-inside: avoid;
  margin-bottom: 1.75rem;
  scroll-margin-top: 1rem;
}
.az-group h2 {
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--coast);
  font-size: 1.125rem;
  font-weight: 800;
}
.az-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.az-group li,
.region-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.az-group a,
.region-list a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.az-group a:hover,
.region-list a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.az-group .num,
.region-list .num {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
/* The parts of the world, above the letters. */
.parts {
  margin-bottom: 1rem;
}

/* --- A part of the world: its countries in the columns of the A to Z list ---------------- */

.region-list {
  columns: 3 18rem;
  column-gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.region-list li {
  break-inside: avoid;
}
.region-lead {
  max-width: 60ch;
  margin-bottom: 0.9rem;
  color: var(--ink-2);
}

/* --- Footer ------------------------------------------------------------------------------ */

.foot {
  border-top: 1px solid var(--line);
  background: var(--land);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 3rem;
  padding-block: 1.75rem 2.25rem;
}
.foot-note {
  max-width: 58ch;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-content: start;
}
.foot nav a {
  padding-block: 0.15rem;
  color: var(--ink);
}
.foot-credit {
  grid-column: 1 / -1;
  font-size: 0.875rem;
}

/* --- Wide screens: room to name the provider in each row's link -------------------------- */

@media (min-width: 68rem) {
  .pick .go-name,
  .answer-other .go-name {
    display: inline;
  }
  .rates-plans .go-name {
    display: inline;
  }
}

/* --- Between a phone and a wide screen: the band in one column ----------------------------- */

@media (max-width: 60rem) and (min-width: 48.0625rem) {
  .mast-country,
  .mast-trip {
    grid-template-columns: minmax(0, 1fr);
  }
  .mast-country {
    grid-template-areas:
      "text"
      "map"
      "pick"
      "note";
    grid-template-rows: auto;
  }
  .mast-country .reach-map {
    max-width: 36rem;
  }
  .mast-trip .world-map {
    aspect-ratio: 2 / 1;
  }
  .home-ask {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-title h1 {
    max-width: none;
  }
  /* The plan table keeps all its columns: less air between them, and "Geen einddatum" and a
     remark under a provider may take two lines. */
  .rates-plans th,
  .rates-plans td {
    padding-inline: 0.5rem;
  }
  .rates-plans th:first-child,
  .rates-plans td:first-child {
    padding-left: 1rem;
  }
  .rates-plans th:last-child,
  .rates-plans td:last-child {
    padding-right: 1rem;
  }
  .rates-plans .c-days,
  .rates-plans .note .nowrap {
    white-space: normal;
  }
  /* The route table: the action says "Alle bundels"; the country stands at the start of
     its row. */
  .rates-stops .go-name {
    display: none;
  }
}

/* --- Narrow screens ---------------------------------------------------------------------- */

@media (max-width: 48rem) {
  body {
    /* Room for the tab bar, which stays at the bottom of the screen. */
    padding-bottom: calc(3.75rem + env(safe-area-inset-bottom));
  }
  html {
    scroll-padding-bottom: 4.5rem;
  }
  .page {
    padding-block: 1.25rem 3rem;
  }
  .narrow-only {
    display: inline;
  }
  .wide-only {
    display: none;
  }

  .bar {
    padding-block: 0.3rem;
  }
  .brand {
    min-height: 2.75rem;
    font-size: 1.0625rem;
  }

  /* The navigation becomes a tab bar: four destinations under the thumb. */
  .bar nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: var(--land);
    font-size: 0.6875rem;
    view-transition-name: tab-bar;
  }
  .bar nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.75rem;
    padding: 0.4rem 0.2rem 0.35rem;
    border-radius: 0;
    color: var(--ink-2);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
  }
  .bar nav a::before {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    background: currentColor;
    mask: var(--tab-icon) center / contain no-repeat;
  }
  /* An icon per menu item, found by its address: the Dutch one and the same page on the
     English site (docs/sites.md). A new site's addresses are added here. */
  .bar nav a[href="/landen"],
  .bar nav a[href="/countries"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.25'/%3E%3Cpath d='M2.75 10h14.5'/%3E%3Cpath d='M10 2.75c2.2 2.3 3.2 4.7 3.2 7.25s-1 4.95-3.2 7.25c-2.2-2.3-3.2-4.7-3.2-7.25s1-4.95 3.2-7.25z'/%3E%3C/svg%3E");
  }
  .bar nav a[href="/aanbieders"],
  .bar nav a[href="/providers"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3.25h6.25L15 7v9.75H5z'/%3E%3Cpath d='M7.75 10.25h4.5v3.75h-4.5z'/%3E%3C/svg%3E");
  }
  .bar nav a[href="/gids"],
  .bar nav a[href="/guide"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5.5C8.4 4.3 6.4 3.8 4 4v11c2.4-.2 4.4.3 6 1.5 1.6-1.2 3.6-1.7 6-1.5V4c-2.4-.2-4.4.3-6 1.5z'/%3E%3Cpath d='M10 5.5v11'/%3E%3C/svg%3E");
  }
  .bar nav a[href="/zo-vergelijken-wij"],
  .bar nav a[href="/how-we-compare"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 5.75 1.5 1.5 2.5-2.75'/%3E%3Cpath d='M10.5 6h6'/%3E%3Cpath d='m3.5 12.75 1.5 1.5 2.5-2.75'/%3E%3Cpath d='M10.5 13h6'/%3E%3C/svg%3E");
  }
  .bar nav a:hover {
    background: transparent;
    color: var(--ink);
  }
  /* The open tab: blue, and a line on top so it does not rest on colour alone. */
  .bar nav a[aria-current="page"],
  .bar nav a.is-section {
    background: transparent;
    box-shadow: inset 0 3px 0 var(--blue);
    color: var(--blue);
  }
  .bar nav a:focus-visible {
    outline-offset: -3px;
  }

  .foot nav {
    gap: 0 1.5rem;
  }
  .foot nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .chip {
    align-items: center;
    min-height: 2.75rem;
  }

  .mast {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 1rem 1.5rem;
  }
  .mast-home {
    gap: 1.1rem;
    padding-block: 1.25rem 1.5rem;
  }
  .home-ask {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }
  .home-title h1 {
    max-width: none;
  }
  /* The world on a phone: the whole world in its own proportions, and above it the parts of
     the world on one line that scrolls sideways and fades out at its end, then the key. */
  .world-map {
    aspect-ratio: 2 / 1;
  }
  /* The zoom buttons side by side at the foot of the map, out of the way of the land. */
  .map-tools {
    top: auto;
    bottom: 0.6rem;
    right: 0.6rem;
    grid-auto-flow: column;
  }
  /* On the map of a country they stay at the top: under it the reading of a tapped spot
     takes the foot. */
  .reach-stage .map-tools {
    top: 0.6rem;
    bottom: auto;
    grid-auto-flow: row;
  }
  .map-tools button {
    width: 2.75rem;
    height: 2.75rem;
  }
  /* The networks of a plan stand in a row that is a link itself: room to hit them. */
  .net.is-live {
    display: inline-block;
    margin-block: -0.6rem;
    padding-block: 0.6rem;
  }
  .world-parts {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
  .world-parts::-webkit-scrollbar {
    display: none;
  }
  .route li {
    min-height: 2.75rem;
  }
  .route .route-x {
    width: 2.75rem;
    height: 2.75rem;
  }
  .combo-in {
    display: block;
    margin-left: 0;
  }
  .search-big label {
    font-size: 1.25rem;
  }
  .first-time {
    padding-block: 0.6rem;
    margin-block: -0.2rem -0.6rem;
  }

  /* The country beside its name; the reach map returns under the answer. */
  .mast-country {
    grid-template-columns: minmax(0, 1fr) 7.5rem;
    grid-template-areas: none;
    grid-template-rows: auto;
    gap: 0.75rem;
    padding-block: 0.75rem 3.25rem;
  }
  .mast-country .mast-text {
    grid-area: auto;
    padding-bottom: 0;
  }
  .mast-country .mast-map {
    display: block;
  }
  .mast-country .mast-text,
  .mast-trip .mast-text {
    padding-top: 0;
  }
  .mast-next {
    margin-top: 0.6rem;
  }
  /* Beside the name the country is its silhouette; the map with its reach has its own
     sheet under the answer. */
  .mast-country .mast-map .reach {
    display: none;
  }
  /* A trip keeps its planner in the sea: it is how the route is changed. */
  .mast-trip {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-block: 0.75rem 3.25rem;
  }
  .mast-trip .planner {
    max-width: none;
    margin-top: 0.9rem;
  }
  /* On a phone the map of a trip would push the answer off the first screen: the route
     stands in the pills, and every country has its own map a tap away. */
  .mast-trip .world {
    display: none;
  }
  /* The small maps in the route table then stand without the key above the world map:
     it is repeated above that table. */
  .stops-key {
    display: block;
    margin-bottom: 0.75rem;
  }
  .stops-key .reach-key,
  .stops-key .reach-key-title span {
    color: var(--ink-2);
  }
  .pick,
  .answer-other {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }
  .pick .go,
  .pick .btn,
  .answer-other .go {
    justify-content: center;
    min-height: 2.75rem;
  }
  .pick .go-name,
  .answer-other .go-name {
    display: inline;
  }
  .pick-price {
    text-align: left;
  }
  /* The route on a phone: one block per country. */
  .rates-stops,
  .rates-stops tbody {
    display: block;
  }
  .rates-stops {
    width: auto;
    overflow: hidden;
  }
  .rates-stops thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .rates-stops tbody tr {
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem 1rem 1rem;
  }
  .rates-stops tbody tr + tr {
    border-top: 1px solid var(--line);
  }
  .rates-stops th,
  .rates-stops td,
  .rates-stops th:first-child,
  .rates-stops td:last-child,
  .rates-stops tbody tr + tr th,
  .rates-stops tbody tr + tr td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .rates-stops .c-stop,
  .rates-stops .c-reach {
    width: auto;
  }
  .rates-stops .go {
    justify-content: center;
    min-height: 2.75rem;
  }
  .rates-stops .go-name {
    display: inline;
  }
  /* An example route as a block: its figures read from the left, under its name. */
  .rates-ways .c-one,
  .rates-ways .c-each {
    width: auto;
  }
  .rates-ways .num {
    text-align: left;
  }
  .mast-tile {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 3px 4px rgb(11 34 57 / 0.16));
  }
  .is-country .page {
    margin-top: -2rem;
  }
  .map-sheet {
    display: block;
    margin-top: 1rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sheet);
    background: var(--land);
  }
  .map-sheet .map-coast {
    stroke-width: calc(4px / var(--z, 1));
  }
  /* The drawing is under half its size here: its names and its scale stay readable. */
  .map-sheet .map-city text,
  .map-sheet .map-scale text {
    font-size: 30px;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .band {
    background-position: var(--gutter) top;
  }

  /* The guide's list of questions: one question per block, the answer under it, and the whole
     block a link. */
  .rates-guide,
  .rates-guide tbody {
    display: block;
  }
  .rates-guide {
    width: auto;
    overflow: hidden;
  }
  .rates-guide thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .rates-guide tbody tr {
    position: relative;
    display: block;
    padding: 0.85rem 1rem 0.95rem;
  }
  .rates-guide tbody tr + tr {
    border-top: 1px solid var(--line);
  }
  .rates-guide th,
  .rates-guide td,
  .rates-guide th:first-child,
  .rates-guide td:last-child,
  .rates-guide tbody tr + tr th,
  .rates-guide tbody tr + tr td {
    display: block;
    padding: 0;
    border: 0;
  }
  .rates-guide .c-q {
    width: auto;
  }
  .rates-guide .c-a {
    margin-top: 0.2rem;
    font-size: 0.9375rem;
  }
  .rates-guide a.prov {
    display: inline;
  }
  .rates-guide a.prov::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .rates-guide a.prov:focus-visible {
    outline: none;
  }
  .rates-guide a.prov:focus-visible::after {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
  }

  /* A table of shares: one block per row, the name and its bar across, the three figures
     under it with their words; the column headings are left to screen readers. A row that
     names a country is a link as a whole. */
  .rates-shares,
  .rates-shares tbody {
    display: block;
  }
  .rates-shares {
    width: auto;
    border: 0;
    background: none;
  }
  .rates-shares caption {
    display: block;
  }
  .rates-shares tbody {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sheet);
    background: var(--land);
  }
  .rates-shares thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .rates-shares tbody tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
    padding: 0.85rem 1rem 0.9rem;
  }
  .rates-shares tbody tr + tr,
  .rates-shares tbody tr.is-total {
    border-top: 1px solid var(--line);
  }
  .rates-shares tbody tr.is-total {
    border-top-color: var(--edge);
  }
  .rates-shares th,
  .rates-shares td,
  .rates-shares th:first-child,
  .rates-shares td:last-child,
  .rates-shares tbody tr + tr th,
  .rates-shares tbody tr + tr td {
    display: block;
    padding: 0;
    border: 0;
    background: none;
  }
  .rates-shares th[scope="row"] {
    flex: 1 0 100%;
    margin-bottom: 0.35rem;
  }
  .rates-shares td {
    color: var(--ink-2);
    font-size: 0.875rem;
    text-align: left;
  }
  .rates-shares tbody tr:last-child > :first-child,
  .rates-shares tbody tr:last-child > :last-child {
    border-radius: 0;
  }
  .has-maps .share-place {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-areas:
      "map name"
      "bar bar";
    row-gap: 0.6rem;
  }
  .has-maps .reach-mini {
    width: 5.5rem;
  }
  .has-maps .share-name {
    align-self: center;
  }
  .share-bar {
    max-width: none;
  }
  .rates-shares a.prov::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .rates-shares a.prov:focus-visible {
    outline: none;
  }
  .rates-shares a.prov:focus-visible::after {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
  }

  /* The price index: one block per row, the name across, then the three packages side by
     side, each with its own label because the column headings are left to screen readers.
     A group under EU roaming is a sheet of its own. */
  .rates-index,
  .rates-index tbody {
    display: block;
  }
  .rates-index {
    width: auto;
    border: 0;
    background: none;
  }
  .rates-index tbody {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sheet);
    background: var(--land);
  }
  .rates-index tbody + tbody {
    margin-top: 0.75rem;
  }
  .rates-index thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .rates-index tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
    padding: 0.8rem 1rem 0.85rem;
  }
  .rates-index tbody tr + tr {
    border-top: 1px solid var(--line);
  }
  .rates-index th,
  .rates-index td,
  .rates-index th:first-child,
  .rates-index td:last-child,
  .rates-index tbody tr + tr th,
  .rates-index tbody tr + tr td,
  .rates-index tbody + tbody tr:first-child > *,
  .rates-index .is-group th {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    text-align: left;
    white-space: normal;
  }
  .rates-index .c-basket {
    width: auto;
    text-align: left;
  }
  .rates-index .cell-label > span {
    display: block;
  }
  .rates-index th[scope="row"],
  .rates-index .is-group th {
    grid-column: 1 / -1;
  }
  .rates-index .cell-label {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--ink-2);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
  }
  .rates-index .price {
    font-size: 1.0625rem;
  }
  .rates-index .fig {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .rates-index .c-land .prov {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .rates-parts .fig,
  .rates-index .is-thin .unit {
    display: block;
    padding-top: 0.15rem;
  }
  .stamp {
    white-space: normal;
  }
  .letters a {
    min-width: 2.75rem;
    height: 2.75rem;
  }
  .az-group li,
  .region-list li {
    padding: 0;
  }
  .az-group a,
  .region-list a {
    flex: 1;
    padding-block: 0.65rem;
  }
  .two-col,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* All choices stay in view: short labels, no counts, so a question takes one or two rows. */
  .filters {
    padding: 0.9rem 0.9rem 1rem;
  }
  .filter ul {
    gap: 0.3rem;
  }
  /* The choices share the row, so seven day counts fit on a 360px screen. */
  .filter li {
    flex: 1 1 auto;
  }
  .filter .chip {
    display: flex;
    justify-content: center;
    min-width: 2.25rem;
    padding-inline: 0.4rem;
  }
  .filter .chip .n {
    display: none;
  }
  /* The question names the unit: a pill shows the number, and screen readers still hear
     the unit. */
  .chip-unit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* The answer: the statement, then its action across the sheet. */
  .answer {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem 1rem 1.1rem;
  }
  .answer-thin {
    margin: 0.1rem -1rem -1.1rem;
    padding: 0.7rem 1rem 0.75rem;
  }

  .list-head {
    align-items: start;
    margin-top: 1.25rem;
  }
  .touch-hint {
    display: block;
    color: var(--ink-2);
    font-size: 0.875rem;
  }

  /* Less in the sea on a phone: the search lives on the home page and behind "Landen". */
  .mast:not(.mast-home):not(.mast-trip) .search {
    display: none;
  }
  .after-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .sellers dl > div {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Each plan becomes two lines on one grid: who and price, then the plan and the difference.
     The whole row is the link to the provider. The table roles are set in the markup, so a
     row still reads as a table row to a screen reader. */
  .rates-plans,
  .rates-providers {
    display: block;
    width: auto;
    overflow: hidden;
  }
  .rates-plans thead,
  .rates-providers thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .rates-plans tbody,
  .rates-providers tbody {
    display: block;
  }
  .rates-plans tbody tr,
  .rates-providers tbody tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.5rem;
    row-gap: 0.15rem;
    padding: 0.85rem 1rem 0.9rem;
    transition: background-color 0.15s var(--ease);
  }
  .rates-plans tbody tr + tr,
  .rates-providers tbody tr + tr {
    border-top: 1px solid var(--line);
  }
  .rates-plans tbody tr:hover {
    background: var(--land-2);
  }
  .rates-plans tbody tr::before {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 4;
  }
  .rates-plans th,
  .rates-plans td,
  .rates-plans th:first-child,
  .rates-plans td:first-child,
  .rates-plans th:last-child,
  .rates-plans td:last-child,
  .rates-providers th,
  .rates-providers td,
  .rates-providers th:first-child,
  .rates-providers td:first-child,
  .rates-providers th:last-child,
  .rates-providers td:last-child,
  .rates-plans tbody tr + tr th,
  .rates-plans tbody tr + tr td,
  .rates-providers tbody tr + tr th,
  .rates-providers tbody tr + tr td {
    padding: 0;
    border: 0;
    background: transparent;
  }
  .rates-plans tbody tr:hover th,
  .rates-plans tbody tr:hover td,
  .rates-providers tbody tr:hover th,
  .rates-providers tbody tr:hover td {
    background: transparent;
  }
  .rates-plans .c-prov {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }
  .rates-plans .c-prov .prov {
    display: inline;
  }
  .rates-plans .c-prov .prov::after {
    content: "";
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    margin-left: 0.4rem;
    vertical-align: -0.1em;
    background: var(--ink-2);
    mask: url("icon-out.svg") center / contain no-repeat;
  }
  .rates-plans .c-go {
    order: 2;
    width: 0;
  }
  .rates-plans .c-go .icon {
    display: none;
  }
  .rates-plans .c-price {
    order: 3;
  }
  .rates-plans .c-data,
  .rates-plans .c-days,
  .rates-plans .c-pergb,
  .rates-plans .c-gap {
    font-size: 0.9375rem;
  }
  .rates-plans .c-data {
    order: 5;
    font-weight: 650;
  }
  .rates-plans .c-days {
    order: 6;
  }
  .rates-plans .c-pergb {
    display: none;
    order: 7;
    text-align: left;
    color: var(--ink-2);
  }
  /* " per GB" reads "/GB" here; screen readers still hear "per". The second `content`
     keeps the slash itself from being read, where a browser knows that form. */
  .rates-plans .c-pergb .unit {
    display: inline;
  }
  .rates-plans .c-pergb .unit::before {
    content: "/";
    content: "/" / "";
  }
  .rates-plans .c-pergb .unit-per {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .rates-plans .c-gap {
    order: 8;
    margin-left: auto;
  }
  /* Without the column heading, the difference says in words what it is. */
  .gap-word {
    display: inline;
    font-weight: 400;
  }
  /* Sorted on price per GB: that figure takes the place of the price on the first line. */
  .rates-plans.by-gb .c-pergb {
    display: block;
    order: 3;
    color: var(--ink);
  }
  .rates-plans.by-gb .c-price {
    order: 7;
    font-size: 0.9375rem;
  }
  .rates-plans.by-gb .price {
    font-size: inherit;
  }
  .rates-plans.by-gb .gap-word {
    display: none;
  }

  .rates-plans .go {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-2);
  }
  .rates-plans .go:hover {
    background: transparent;
    color: var(--blue);
  }
  /* The link covers the row; its words stay available to screen readers. */
  .rates-plans .go::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .rates-plans .go-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .rates-plans .go:focus-visible {
    outline: none;
  }
  .rates-plans .go:focus-visible::after {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
  }
  .rates-plans .go-name {
    display: inline;
  }

  /* A provider becomes two lines as well: who it is, then how many plans and when checked. */
  .rates-providers .c-prov {
    flex-basis: 100%;
    width: auto;
  }
  .rates-providers .c-count,
  .rates-providers .c-checked {
    color: var(--ink-2);
    font-size: 0.875rem;
    text-align: left;
    white-space: normal;
  }
  /* How many plans and when checked share one line, under the description; the dot between
     them is in the markup. A paused provider says why on a line of its own. */
  .rates-providers .c-checked {
    margin-left: -0.25rem;
  }
  .rates-providers .is-paused .c-checked {
    flex-basis: 100%;
    margin-left: 0;
  }
  .rates-providers .c-checked .note {
    margin-top: 0.2rem;
  }
  .rates-providers .c-cur,
  .rates-providers thead .c-cur {
    display: none;
  }
  /* The name is tapped: its area reaches into the row's padding without moving the text. */
  .rates-providers a.prov {
    display: inline-block;
    padding-block: 0.6rem;
    margin-block: -0.6rem;
  }
  /* So is the link to the provider's website under it. */
  .rates-providers .note a.ext {
    display: inline-block;
    padding-block: 0.76rem;
    margin-block: -0.76rem;
  }
  /* A list whose rows lead to a page of this site (the countries on a provider's page): the
     arrow follows the name, not the sign for leaving the site. */
  .rates-in .c-prov .prov::after {
    mask-image: url("icon-arrow.svg");
  }

}

/* --- Motion: a filter tap cross-fades the page; the map and the answer keep their place ---- */

@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.2s;
  animation-timing-function: var(--ease);
}
::view-transition-group(answer),
::view-transition-group(plan-list),
::view-transition-group(world-map) {
  animation-duration: 0.28s;
  animation-timing-function: var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  * {
    transition: none !important;
  }
  .tile:hover {
    transform: none;
  }
  .reach.is-called .map {
    animation: none;
  }
  .updated.is-live .live-wave {
    animation: none;
  }
}

@media print {
  .shell nav,
  .search,
  .filters,
  .c-go,
  .foot nav,
  .more,
  .answer .btn,
  .world-parts,
  .map-tools,
  .reach-pick {
    display: none !important;
  }
  .shell,
  .band {
    background: none;
    color: #000;
  }
  .facts,
  .updated {
    color: #000;
  }
}
