/* Station guides and rankings. Tokens and type from website/src/index.css: the white page. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --chevron: #aeaeb2;
  --dot: #d2d2d7;
  --link: #0066cc;
  --focus: #0071e3;
  --surface: #f5f5f7;
  --border: #e5e5ea;
  --hair: rgba(0, 0, 0, 0.08);
  --good: #0c7f3d;
  --bad: #c21b17;
  --tile-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 18px 36px -30px rgba(0, 0, 0, 0.28);
  --pop-shadow: 0 18px 48px -14px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.05);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui,
    sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, system-ui,
    sans-serif;
  --gutter: 20px;
  --tile-pad: 24px;
  --anchor: 72px;
  --section-gap: 56px;
  --rule-gap: 32px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

/* ---- Header: one row. On a phone, the app icon, the search bar and the language. ---- */
.top { position: relative; z-index: 60; background: #fff; border-bottom: 1px solid var(--border); }
.top-row { position: relative; display: flex; align-items: center; gap: 10px; padding-block: 8px; }
.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
}
.brand img { width: 28px; height: 28px; border-radius: 6.5px; }
.nav { display: flex; flex: none; align-items: center; margin-left: auto; font-size: 14px; }
.nav a { padding: 12px 10px; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.nav .lang {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  padding: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s;
}
.nav .lang:hover { background: var(--surface); }

/* ---- Search: one field everywhere ---- */
.search { position: relative; flex: 1 1 0; min-width: 0; }
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.search-field:focus-within { background: #fff; box-shadow: 0 0 0 1px var(--border); }
.search-field > svg { flex: none; width: 16px; height: 16px; }
.search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 16px var(--sans);
  -webkit-appearance: none;
  appearance: none;
}
.search-input::placeholder { color: var(--muted); opacity: 1; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-key {
  display: none;
  flex: none;
  padding: 1px 7px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--border);
  font: 600 12px/18px var(--sans);
  color: var(--muted);
}
.search-clear {
  display: none;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.search-clear svg { width: 18px; height: 18px; }
.has-value .search-clear { display: grid; }
.results {
  position: absolute;
  z-index: 40;
  isolation: isolate;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(62vh, 480px);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--border), var(--pop-shadow);
  transform: translateY(-4px);
  visibility: hidden;
  transition: transform 0.22s var(--ease), visibility 0.16s;
}
.search.open .results { transform: none; visibility: visible; }
.results li { margin: 0; }
.results li[role="option"] { border-radius: 12px; }
.results a { display: block; padding: 9px 12px; border-radius: 12px; }
.results [aria-selected="true"] a, .results a:hover { background: var(--surface); }
.results-label {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.results-empty { padding: 14px 12px; font-size: 15px; color: var(--muted); }
.r-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.r-sub {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.results mark { background: none; color: var(--link); font-weight: 700; }
.r-sub mark { font-weight: 600; }

@media (max-width: 899px) {
  .brand-name { display: none; }
  .nav a:not(.lang) { padding-inline: 8px; }
  .nav .lang { margin-left: 2px; }
  /* The field shares its row, the results take the whole width. */
  .top .search { position: static; }
  .top .results { top: calc(100% - 2px); left: var(--gutter); right: var(--gutter); }
}

/* ---- Breadcrumb ---- */
.crumbs { margin-top: -4px; font-size: 13px; color: var(--muted); }
.crumbs ol {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.crumbs li { flex: none; display: flex; align-items: center; min-width: 0; margin: 0; }
.crumbs li:last-child { flex: 0 1 auto; }
.crumbs li + li::before { content: "›"; flex: none; margin: 0 10px; font-size: 14px; }
.crumbs a { display: flex; align-items: center; min-height: 44px; transition: color 0.2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
/* On a phone the h1 right below already names the page: the trail stops at its parent. */
@media (max-width: 480px) {
  .crumbs li:nth-child(n + 3):last-child { display: none; }
}

/* ---- Hero ---- */
.eyebrow-line {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero {
  margin-bottom: var(--rule-gap);
  padding: 8px 0 var(--rule-gap);
  border-bottom: 1px solid var(--hair);
}
.hero h1, .hub-hero h1 { font-family: var(--display); font-weight: 800; text-wrap: balance; }
.hero h1 {
  margin: 10px 0 0;
  font-size: clamp(36px, 10vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.hero.long h1 { font-size: clamp(28px, 7.7vw, 36px); letter-spacing: -0.03em; line-height: 1.06; }
.hero-sub {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--muted);
}
.hero-note { margin: 24px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.lede-big {
  margin: 16px 0 0;
  max-width: 640px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
}
.lede { margin: 12px 0 0; max-width: 640px; font-size: 16px; line-height: 1.45; color: var(--muted); }

/* ---- Layout: content and contents ---- */
.layout { padding-bottom: 56px; }

.toc {
  position: sticky;
  top: -1px;
  z-index: 20;
  margin: 0 calc(var(--gutter) * -1) 32px;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.toc.stuck { border-bottom-color: var(--border); }
.toc-title { display: none; }
.toc ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px var(--gutter);
  list-style: none;
  overflow-x: auto;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  white-space: nowrap;
  --fade-left: 0px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--fade-left),
    #000 calc(100% - 28px),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--fade-left),
    #000 calc(100% - 28px),
    transparent
  );
}
.toc ul.scrolled { --fade-left: 28px; }
.toc ul::-webkit-scrollbar { display: none; }
.toc li { flex: none; margin: 0; scroll-snap-align: start; }
/* What people come for goes first on a phone. The first section is already on screen. */
.toc li.pri { order: -1; }
.toc li.first { display: none; }
/* A 44 px target around a 32 px pill. */
.toc a {
  display: block;
  max-width: 15em;
  padding: 5px 14px;
  overflow: hidden;
  border: solid transparent;
  border-width: 6px 0;
  border-radius: 999px;
  background-clip: padding-box;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--muted);
  text-overflow: ellipsis;
  transition: color 0.2s, background-color 0.2s;
}
.toc a.on { background-color: var(--surface); color: var(--ink); }

/* With scripting, the chips stay off the first screen and slide in once the page has started.
   Without it they sit in the flow above, complete. */
@media (scripting: enabled) and (max-width: 1023px) {
  .toc {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-bottom-color: var(--border);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0.28s;
  }
  .toc.show { transform: none; visibility: visible; }
}

.flow > * + * { margin-top: var(--section-gap); }
.flow > details, .flow > .note { margin-top: 24px; }
/* Sections are told apart by a hairline above each heading. */
.flow > .sec + .sec {
  margin-top: var(--rule-gap);
  padding-top: var(--rule-gap);
  border-top: 1px solid var(--hair);
  scroll-margin-top: calc(var(--anchor) - var(--rule-gap) + 16px);
}
.flow > details + details { margin-top: 0; border-top: 0; }
.sec, .cta, details { scroll-margin-top: var(--anchor); }

.tile {
  padding: var(--tile-pad);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border), var(--tile-shadow);
  font-size: 16px;
  line-height: 1.5;
}
/* The summary: filled, no ring. Grey goes one step darker to hold its contrast on the fill. */
.tile.soft { --muted: #636366; background: var(--surface); box-shadow: none; }
.tile > :first-child { margin-top: 0; }
.tile > :last-child { margin-bottom: 0; }
h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
h3 {
  margin: 24px 0 6px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 12px 0; }
.tile a:not(.plain), .lede a, .note a, .method a { color: var(--link); }
.tile a:not(.plain):hover, .note a:hover, .method a:hover { text-decoration: underline; }
ul, ol { margin: 12px 0; padding-left: 20px; }
li { margin: 6px 0; }
em { font-style: normal; color: var(--muted); }
.source { font-size: 13px; line-height: 1.4; color: var(--muted); }
.source a { color: var(--muted) !important; text-decoration: underline; text-decoration-color: var(--border); }

/* One rhythm inside a tile: 16 px between blocks, a hairline wherever prose meets rows or a table. */
.copy > * { margin-block: 0; }
.copy > * + * { margin-top: 16px; }
.copy > p + p { margin-top: 12px; }
.copy > h3 + * { margin-top: 6px; }
.copy > * + h3 { margin-top: 24px; }
.copy > :is(p:not(.source), ul:not(.rows), ol) + :is(.rows, .table),
.copy > :is(.rows, .table) + :is(.rows, .table),
.copy > .table + :is(p:not(.source), ul:not(.rows), ol),
.copy > .rows + :is(p:not(.source), ul:not(.rows), ol),
.copy > * + .aside,
.copy > .aside + p:not(.source) {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}
.copy > .source + :is(.rows, .table) { padding-top: 16px; border-top: 1px solid var(--hair); }

.copy ul:not(.rows) { padding: 0; list-style: none; }
.copy ul:not(.rows) > li { position: relative; margin: 0 0 8px; padding-left: 16px; }
.copy ul:not(.rows) > li:last-child { margin-bottom: 0; }
.copy ul:not(.rows) > li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dot);
}

/* A link on its own closes the tile as a row. */
.row-link { padding: 0; border-top: 1px solid var(--hair); }
.copy > .row-link { padding-top: 0; }
.copy > .row-link:last-child { margin-bottom: -8px; }
.row-link a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }

/* Label and answer rows: the app's "Good to know" rows. */
.rows { padding: 0; list-style: none; }
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
}
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows li:last-child { padding-bottom: 0; }
.rows .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
/* A summary label that opens its full section. The 44 px target overlaps the row's padding. */
.rows a.k {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  min-height: 44px;
  margin-block: -14px;
  color: var(--link);
}
.rows a.k::after {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.rows a.k:hover { text-decoration: underline; }
.rows strong { font-weight: 600; color: var(--ink); }
.rows em { font-size: 13px; }

/* Figures: one tile, hairlines between, no big numerals. */
.stat-tile { padding-block: 4px; }
.stat-grid { display: grid; margin: 0; padding: 0; list-style: none; }
.stat {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
.stat:first-child { border-top: 0; }
.stat .fig {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
.stat em { margin-top: auto; padding-top: 8px; font-size: 12px; line-height: 1.45; }
.stat-tile > p:not(.row-link) {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
.stat-tile > p.source { font-size: 13px; }
.stat-tile > .row-link { margin: 0; }

/* Tables. */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
th {
  padding: 0 12px 8px 0;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: bottom;
}
td { padding: 12px 12px 12px 0; border-top: 1px solid var(--hair); vertical-align: top; }
td:first-child { font-weight: 600; }
th:last-child, td:last-child { padding-right: 0; }
td.num { text-align: right; white-space: nowrap; }
th.num { text-align: right; }
td.rank { font-weight: 600; color: var(--muted); white-space: nowrap; }
th.rank { width: 32px; }
td.title { font-weight: 600; }
td.lead { font-weight: 700; }
td.up { color: var(--good); }
td.down { color: var(--bad); }

@media (max-width: 719px) {
  /* Text tables: a row title, then label over value. */
  .stack:not(.ledger) thead { display: none; }
  .stack:not(.ledger) :is(table, tbody, tr, td) { display: block; width: 100%; }
  .stack:not(.ledger) tr { padding: 16px 0; border-top: 1px solid var(--hair); }
  .stack:not(.ledger) tr:first-child { border-top: 0; padding-top: 0; }
  .stack:not(.ledger) tr:last-child { padding-bottom: 0; }
  .stack:not(.ledger) td {
    margin-top: 10px;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }
  .stack:not(.ledger) td.title { margin-top: 0; font-size: 16px; font-weight: 600; }
  .stack:not(.ledger) td:not(.title)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* Number tables: name and key figure on one line, the rest in two columns under the name. */
  .ledger :is(table, thead, tbody) { display: block; }
  .ledger tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    min-height: 44px;
    padding: 14px 0;
    border-top: 1px solid var(--hair);
  }
  .ledger.ranked tr { padding-left: 24px; }
  .ledger.wide-rank tr { padding-left: 52px; }
  .ledger thead tr { min-height: 0; padding-top: 0; padding-bottom: 8px; border-top: 0; }
  .ledger :is(th, td) { display: block; padding: 0; border: 0; }
  .ledger th.more { display: none; }
  /* The rank reads on the name's line: same top, same line height. */
  .ledger .rank {
    position: absolute;
    top: 15px;
    left: 0;
    width: 20px;
    font-size: 13px;
    line-height: 20px;
    text-align: left;
    white-space: nowrap;
  }
  .ledger th.rank { display: none; }
  .ledger .title {
    order: 1;
    flex: 1 1 calc(100% - 132px);
    min-width: 0;
    text-align: left;
    white-space: normal;
  }
  .ledger tr:not(:has(.lead)) .title { flex-basis: 100%; }
  .ledger td.title { font-size: 15px; }
  .ledger tr:has(td.more) td.title { margin-bottom: 6px; }
  .ledger .lead { order: 2; flex: none; margin-left: auto; text-align: right; }
  .ledger td.lead { font-size: 17px; line-height: 1.2; }
  .ledger td.more {
    order: 3;
    flex: 0 0 calc(50% - 8px);
    min-width: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
  }
  /* The right column holds the longer figures: "1 392 (3,5 %)". */
  .ledger td.more:nth-child(odd of .more.num) { flex-basis: calc(44% - 8px); }
  .ledger td.more:nth-child(even of .more.num) { flex-basis: calc(56% - 8px); }
  /* An odd one out has the line to itself, so "Depuis 2019" never breaks. */
  .ledger td.more:nth-child(odd of .more.num):nth-last-child(1 of .more.num),
  .ledger td.more:not(.num) { flex-basis: 100%; }
  .ledger td.more:is(.up, .down) { font-weight: 600; }
  .ledger td.more::before {
    content: attr(data-label);
    margin-right: 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
  }
}

/* Collapsible method and sources: a hairline row, not a form field. */
details { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.detail-body { padding: 0 0 20px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.detail-body ul { margin: 0; padding: 0; list-style: none; }
.source-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.source-list a, .detail-body a { color: var(--link); }

/* App prompt: the page's close. */
.cta { text-align: center; padding-block: 40px; }
.cta img.icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12.6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.cta h2 { margin: 0 auto; max-width: 480px; }
.cta p { margin: 12px auto 0; max-width: 420px; color: var(--muted); }
.cta .badge { display: inline-block; margin-top: 20px; }
.cta .badge img { height: 44px; width: auto; }
.note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---- Hubs ---- */
.hub-hero { padding-top: 8px; }
.hub-hero h1 { margin: 0; font-size: clamp(40px, 11vw, 48px); letter-spacing: -0.04em; line-height: 1; }
.hub-hero p { margin: 12px 0 0; max-width: 34em; line-height: 1.45; color: var(--muted); }
.hub-group { padding-top: var(--section-gap); }
.hub-group:last-child { padding-bottom: var(--section-gap); }

/* Stations, city by city: Paris runs full width, the one-station cities pair up on desktop. */
.hub-cities { display: grid; gap: 40px; padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.hub-city { min-width: 0; }
.hub-city .list-row { height: auto; }

/* An inset list: one tile, rows split by hairlines. */
.list { display: grid; margin: 0; padding-block: 4px; list-style: none; }
.list > li { min-width: 0; margin: 0; border-top: 1px solid var(--hair); }
.list > li:first-child { border-top: 0; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 64px; height: 100%; padding: 16px 0; }
.list-row::after, .row-link a::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 3px;
  border-top: 2px solid var(--chevron);
  border-right: 2px solid var(--chevron);
  transform: rotate(45deg);
}
.list-text { flex: 1; min-width: 0; }
.list-text h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: pretty;
  transition: color 0.2s;
}
.list-text p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.list-text .blurb { font-size: 14px; }
.list-text .row-tag {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (hover: hover) {
  .list-row:hover h3 { color: var(--link); }
}

/* ---- Footer: the homepage's. ---- */
.foot { font-size: 13px; color: var(--muted); }
.foot-data { margin: 0; padding-bottom: 16px; font-size: 12px; line-height: 1.4; }
.foot-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--hair);
}
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.foot-brand b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.foot-brand img { width: 22px; height: 22px; border-radius: 5px; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.foot-links a { display: flex; align-items: center; min-height: 44px; transition: color 0.2s; }
.foot-links a:hover { color: var(--ink); }

/* ---- A small rise for what scrolls in. Set by the script, never an opacity. ---- */
.reveal { transition: transform 0.45s var(--ease); }
.reveal.rise { transform: translateY(10px); }

/* ---- Phones: more measure for the text ---- */
@media (max-width: 359px) {
  .brand-name { display: none; }
}
@media (max-width: 480px) {
  :root { --tile-pad: 20px 18px; }
}
@media (min-width: 720px) {
  /* A short hours column stays on one line, so "6 h 15 à 22 h" never breaks. */
  .tight { white-space: nowrap; }
}
@media (max-width: 719px) {
  /* A taller hit area around inline links. Inline padding moves no text. */
  .tile a:not(.plain), .lede a, .note a, .detail-body a, .prose a:not(:has(img)) { padding-block: 12px; }
}

/* ---- Larger screens ---- */
@media (min-width: 640px) {
  :root { --gutter: 32px; --tile-pad: 32px; }
  .foot-row { flex-direction: row; align-items: center; justify-content: space-between; padding-bottom: 32px; }
  .foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
  .foot-links a { min-height: 0; }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .list > li:nth-child(2) { border-top: 0; }
  /* An odd last row closes both columns, so no cell sits empty. */
  .list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* One wide row with a taller chart: the catalogue gets a second focal point. */
  .ranks > li.wide { grid-column: 1 / -1; }
  .ranks > li:last-child:not(.wide) { grid-column: auto; }
  .ranks > li.wide:first-child + li { border-top: 1px solid var(--hair); }
  .ranks > li.wide:first-child .cv-plot { height: 120px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .stat:nth-child(2) { border-top: 0; }
  .rows li { grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: baseline; }
  .tile.list { padding: 8px 32px; }
  .tile.stat-tile { padding: 8px 32px; }
  .tile.cta { padding-block: 48px; }
}
@media (min-width: 900px) {
  .hub-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
  .hub-city:first-child { grid-column: 1 / -1; }
  .hub-cities > .list { grid-column: 1 / -1; }
  :root { --section-gap: 80px; --rule-gap: 48px; --anchor: 88px; }
  h2 { font-size: 32px; }
  .top-row { display: grid; grid-template-columns: 1fr minmax(0, 360px) 1fr; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .nav { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
  .top .search { grid-column: 2; grid-row: 1; }
  .search-key { display: block; }
  .search-field:focus-within .search-key, .has-value .search-key { display: none; }
  .hero h1 { font-size: 64px; }
  .hero.long h1 { max-width: 24ch; font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -0.035em; }
  .hero-sub { font-size: 24px; }
  .lede-big { font-size: 20px; }
  .lede { font-size: 17px; }
  .hub-hero h1 { font-size: 72px; }
  .hub-hero p { font-size: 19px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --tile-pad: 40px; }
  .top { position: sticky; top: 0; }
  .tile.list, .tile.stat-tile { padding-inline: 40px; }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    align-items: start;
    padding-bottom: 80px;
  }
  .hero { grid-area: 1 / 1; }
  .flow { grid-area: 2 / 1; }
  /* The contents run from the hero down, so the title has no empty band beside it. */
  .toc { grid-area: 1 / 2 / 3 / 3; top: 96px; margin: 8px 0 0; background: none; border: 0; }
  .toc-title {
    display: block;
    margin: 0 0 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .toc ul {
    display: block;
    padding: 0;
    overflow: visible;
    white-space: normal;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .toc li.first { display: list-item; list-style: none; }
  .toc a { max-width: none; padding: 6px 12px; border-width: 0 0 0 2px; border-radius: 0; line-height: 1.3; }
  .toc a:hover { color: var(--ink); }
  .toc a.on { background: none; border-left-color: var(--ink); color: var(--ink); font-weight: 600; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- Hubs: tabs, the guides hero, the city index ---- */
.search-gap { flex: 1 1 0; min-width: 0; }
.tabs {
  display: inline-flex;
  max-width: 100%;
  margin-top: 20px;
  padding: 2px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
}
.tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
  color: var(--ink);
  font-weight: 600;
}
.hub-hero .tabs + p { margin-top: 12px; }
.hub-hero.big h1 { font-size: clamp(38px, 10.5vw, 76px); letter-spacing: -0.04em; max-width: 14em; }
.hero-search { margin-top: 20px; max-width: 560px; scroll-margin-top: 12px; }
.hero-search .search-field { height: 52px; padding: 0 18px; }
.hero-search + .tabs { display: flex; width: fit-content; }
.hub-lead { padding-top: 32px; }
.hub-part { padding-top: var(--section-gap); }
.hub-part:last-child { padding-bottom: var(--section-gap); }
.hub-part-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.hub-part-head h2 { margin: 0; }
.hub-part-head a { flex: none; margin-block: -11px; padding-block: 11px; font-size: 14px; color: var(--link); }
.hub-part-head a:hover { text-decoration: underline; }
.city-index { display: grid; padding-block: 8px; }
.city-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 12px; padding: 6px 0; border-top: 1px solid var(--hair); }
.city-row:first-child { border-top: 0; }
.city-row h3 { margin: 0; padding-top: 10px; font-size: 15px; font-weight: 700; }
.city-row ul { margin: 0; padding: 0; list-style: none; }
.city-row li { margin: 0; }
.city-row a { display: flex; align-items: center; min-height: 40px; font-size: 15px; line-height: 1.25; transition: color 0.2s; }
.city-row a:hover { color: var(--link); }
.city-row.wide { grid-template-columns: minmax(0, 1fr); }
.city-row.wide h3 { padding: 6px 0 2px; }
.city-row.wide ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
@media (min-width: 640px) {
  .city-index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .city-row.wide { grid-column: 1 / -1; }
  .city-row.wide { grid-template-columns: 92px minmax(0, 1fr); }
  .city-row.wide h3 { padding: 10px 0 0; }
  .city-row.wide ul { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); column-gap: 16px; }
  .city-row:nth-child(2) { border-top: 0; }
  .city-row.wide + .city-row, .city-row.wide + .city-row + .city-row { border-top: 1px solid var(--hair); }
}

/* ---- Charts. Text stays at a fixed size, marks stretch with the width. ---- */
.chart {
  position: relative;
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.35;
}
/* The card is the screenshot: it ends at the source. Limits and the table sit right under it. */
.c-card {
  padding: 20px 16px 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border), var(--tile-shadow);
}
.c-after { padding: 0 16px; }
.flow > .chart:first-child { margin-top: 0; }
.flow > .chart + .sec { margin-top: var(--rule-gap); }
.hub-lead .chart { margin-top: 0; }
.c-title {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: balance;
}
.c-sub { margin: 8px 0 0; font-size: 13px; line-height: 1.38; color: var(--muted); }
.c-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 12px; color: var(--ink); }
.c-key { display: inline-flex; align-items: center; gap: 6px; }
.k-line { flex: none; width: 16px; height: 2px; border-radius: 1px; background: var(--c); }
.k-swatch { flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--c); }
.k-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.k-ring { flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c); }
.k-tick { flex: none; width: 2px; height: 11px; background: var(--c); }
.c-scale { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.c-step { display: flex; flex-direction: column; gap: 3px; min-width: 26px; flex: 1 1 26px; max-width: 76px; white-space: nowrap; }
.c-step:has(+ .c-scale-note), .c-step:last-child { align-items: flex-end; }
.c-step:has(+ .c-scale-note) i, .c-step:last-child i { align-self: stretch; }
.c-step i { display: block; height: 10px; border-radius: 2px; }
.c-scale-note { flex-basis: 100%; margin-top: 4px; }
.c-body { margin-top: 14px; border-radius: 8px; }
.c-body:focus-visible { outline-offset: 6px; }
.c-note { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
.c-caveat { margin: 12px 0 0; font-size: 12px; line-height: 1.42; color: var(--muted); }
.c-caveat.ink { color: var(--ink); }
.c-src {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
.c-mark { display: inline-flex; flex: none; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink); }
.c-mark img { width: 16px; height: 16px; border-radius: 3.6px; }
.c-more { margin: 10px 0 0; font-size: 14px; }
.c-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); }

/* The table view. */
.chart details.c-data { margin-top: 2px; border: 0; }
.c-data summary { min-height: 44px; font-size: 13px; font-weight: 500; color: var(--muted); }
.c-data summary:hover { color: var(--ink); }
.c-data[open] { padding-bottom: 12px; }
.c-table { overflow: auto; font-size: 12px; }
.c-table.c-tall { max-height: 380px; }
.c-table table { width: 100%; min-width: max-content; font-size: 12px; }
.c-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 10px 6px 0;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: right;
  white-space: nowrap;
}
.c-table th:first-child { left: 0; z-index: 2; text-align: left; }
.c-table td { padding: 6px 10px 6px 0; text-align: right; white-space: nowrap; font-weight: 400; }
.c-table td:first-child { position: sticky; left: 0; background: #fff; text-align: left; font-weight: 600; }
.c-table-note { margin: 0 0 10px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.c-sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
/* The whole header cell is the target: the th is sticky, so it holds this box. */
.c-sort::before { content: ""; position: absolute; inset: 0; }
.c-sort:hover { color: var(--ink); }
th[aria-sort="ascending"] .c-sort::after { content: " ▲"; font-size: 9px; }
th[aria-sort="descending"] .c-sort::after { content: " ▼"; font-size: 9px; }

/* Plots. */
.cv { padding: 0 var(--pr) var(--pb) var(--pl); }
.cv-plot { position: relative; height: var(--h); touch-action: pan-y; }
.cv-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.cv-plot svg path { vector-effect: non-scaling-stroke; }
.cv-plot .g { fill: none; stroke: var(--border); stroke-width: 1; }
.cv-plot .g.b { stroke: #c7c7cc; }
.cv-plot .r { fill: none; stroke-width: 1; }
.cv-plot .l { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.c-wash { position: absolute; top: 0; bottom: 0; }
.c-yt {
  position: absolute;
  left: calc(var(--pl) * -1);
  width: calc(var(--pl) - 5px);
  transform: translateY(-50%);
  font-size: 11px;
  line-height: 1;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.c-xt {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.c-xt2 { margin-top: 22px; }
/* A label on the plot's left edge starts there, clear of the lowest y label. */
.c-xt.start { transform: none; }
.c-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px #fff;
  transform: translate(-50%, -50%);
}
.c-dot.o { background: #fff; box-shadow: inset 0 0 0 2px var(--c), 0 0 0 2px #fff; }
.c-dot.s { width: 6px; height: 6px; box-shadow: 0 0 0 1px #fff; }
.c-lab {
  position: absolute;
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  /* A white halo, so labels stay readable over lines. */
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  pointer-events: none;
}
.c-lab.strong { font-weight: 600; }
.c-lab.soft { color: var(--muted); }
.c-lab.val { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-lab.below { margin-top: 22px; text-align: center; }
.c-lab.month { font-size: 11px; }
.c-lab.right { text-align: right; }
.c-lab.mid { text-align: center; }
.c-xt b { font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .c-col { width: var(--bww) !important; } }
.c-col {
  position: absolute;
  width: var(--bw);
  background: var(--c);
  border-radius: 4px 4px 0 0;
  transform: translateX(-50%);
}
.c-col.dn { border-radius: 0 0 4px 4px; }
/* Short columns are the outliers: a finger still has to be able to hit them. */
.c-col[data-tip]::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(100%, 44px); }
.c-col.dn[data-tip]::before { top: 0; bottom: auto; }
/* A thin series beside a column: 2 px of air, then 6 px of bar. */
.c-col.thin { z-index: 1; width: 6px !important; margin-left: 13px; border-radius: 3px 3px 0 0; }
.c-gap { position: absolute; width: 0; border-left: 1px solid var(--ink); pointer-events: none; }
/* Ties a spread end label back to its line. */
.c-lead { position: absolute; height: 1px; background: #c7c7cc; transform-origin: 0 50%; pointer-events: none; }
.c-strip {
  position: absolute;
  top: 100%;
  margin-top: 28px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.c-strip-lab {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 44px;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
}
.dt { display: none; }

/* Small multiples. */
.c-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.c-panels .p-head { min-height: 2.5em; }
.c-stack { display: grid; gap: 16px; }
.c-panel { min-width: 0; }
.p-head { margin: 0 0 6px; font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.p-head b { font-weight: 700; }
.c-panel .p-head:has(.p-val) { font-size: 13px; font-weight: 600; }
.c-panel .p-head:has(.p-val) b { font-weight: 600; }
.p-val { display: block; font-variant-numeric: tabular-nums; }
.c-slope-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 0 0 calc(var(--pl) - 10px);
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}
.c-slope-head span:last-child { width: calc(var(--pr) + 22px); }
.c-slope-head b { color: var(--ink); font-weight: 600; }
.c-slope-head .c-big { font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.c-lab b { font-weight: 600; }

/* Tooltip. Floats over the figure, so nothing moves. */
.c-tip {
  position: absolute;
  z-index: 30;
  min-width: 112px;
  max-width: 250px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border), var(--pop-shadow);
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
  visibility: hidden;
}
.c-tip.on { visibility: visible; }
.c-tip-t { margin-bottom: 4px; font-size: 11px; color: var(--muted); }
.c-tip-r { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 0 5px; margin-top: 2px; }
.c-tip-r i { display: inline-block; width: 10px; height: 2px; border-radius: 1px; transform: translateY(-3px); }
.c-tip-r b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-tip-r span { color: var(--muted); }
.c-hair { position: absolute; top: 0; bottom: 0; width: 1px; background: #aeaeb2; pointer-events: none; }
.c-hdot { position: absolute; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; transform: translate(-50%, -50%); pointer-events: none; }
[data-tip] { cursor: default; }
[data-tip].hot { filter: brightness(1.08); }
.h-c.hot { filter: none; z-index: 1; outline: 2px solid var(--ink); outline-offset: 0; }
.c-col.hot { filter: none; z-index: 1; box-shadow: 0 0 0 1.5px var(--ink); }
.d-row[data-tip].hot, .b-row[data-tip].hot { filter: none; background: var(--surface); }

/* Heatmaps. */
.c-heat { --gap: 2px; }
.h-row {
  display: grid;
  grid-template-columns: var(--lab) repeat(var(--n), minmax(0, 1fr)) var(--end);
  column-gap: var(--gap);
  margin-bottom: var(--gap);
}
.h-head { margin-bottom: 4px; }
.h-lab { display: flex; align-items: center; font-size: 11px; line-height: 1.1; color: var(--muted); font-variant-numeric: tabular-nums; padding-right: 3px; }
.h-lab.b, .h-end.b { color: var(--ink); font-weight: 700; }
.h-m { font-size: 11px; line-height: 1.2; text-align: center; color: var(--muted); }
.h-end { display: flex; align-items: center; justify-content: flex-end; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink); }
.h-end.h-m { color: var(--muted); }
.h-c {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--cell);
  border-radius: 3px;
  font-style: normal;
  font-size: 11px;
  color: var(--ink);
}
.h-c[data-ink="w"] { color: #fff; }
.h-c b { font-weight: 600; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.h-c.empty { box-shadow: inset 0 0 0 1px var(--border); }
.h-c.empty b { font-weight: 400; color: var(--muted); }
.h-c.ring { z-index: 1; outline: 1.5px solid var(--ink); outline-offset: 0; }
.h-c u { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.h-c[data-ink="w"] u { background: #fff; }
/* A printed value keeps its dot, in the corner. */
.h-c b + u { position: absolute; top: 2px; right: 2px; width: 4px; height: 4px; }
.h-years { margin-bottom: 2px; font-size: 11px; color: var(--muted); }

/* Dumbbells. */
.c-dumb { position: relative; }
.d-rows { position: relative; }
.d-row { padding: 6px 0 3px; border-radius: 6px; }
.d-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; line-height: 1.25; color: var(--ink); }
.d-side { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.d-side small { font-size: 11px; }
.d-row.strong .d-name { font-weight: 700; }
.d-track { position: relative; height: 22px; margin: 0 6px; }
.d-link { position: absolute; top: 50%; height: 1px; background: #c7c7cc; }
.d-link.strong { height: 2px; margin-top: -0.5px; background: var(--focus); }
.d-track .c-dot { top: 50%; }
.d-mid { position: absolute; top: 50%; width: 2px; height: 11px; margin: -5.5px 0 0 -1px; background: var(--ink); }
.d-v { position: absolute; top: 50%; font-size: 11.5px; line-height: 1; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.d-v.l { transform: translate(calc(-100% - 8px), -50%); }
.d-v.r { transform: translate(8px, -50%); }
.d-row.strong .d-v { font-weight: 700; }
.d-sub { display: block; margin: -2px 6px 0; font-size: 11px; color: var(--muted); }
.d-rule { height: 1px; margin: 4px 0; background: var(--hair); }
.d-axis { position: relative; height: 18px; margin: 2px 6px 0; }
.d-scale { position: absolute; inset: 0; }
.d-tick { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The last tick sits at the track's end: it ends there too, inside the card. */
.d-tick:last-child { transform: translateX(-100%); }
.d-grid { display: none; }
.c-dumb[data-inline] .d-row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr) var(--side); align-items: center; padding: 1px 0; }
.c-dumb[data-inline] .d-head { display: contents; }
.c-dumb[data-inline] .d-name { grid-column: 1; font-size: 12px; }
.c-dumb[data-inline] .d-side { grid-column: 3; grid-row: 1; text-align: right; font-size: 11.5px; color: var(--ink); }
.c-dumb[data-inline] .d-track { grid-column: 2; grid-row: 1; height: 22px; }
.c-dumb[data-inline] .d-axis { margin-left: calc(var(--name) + 6px); margin-right: calc(var(--side) + 6px); }
.c-rule-wrap { position: relative; padding-top: 18px; }
.c-rule-wrap .c-dumb { position: static; }
.c-vrule { position: absolute; top: 15px; bottom: 18px; width: 1px; background: #86868b; margin-left: calc(var(--name) + 6px); }
.c-rule-wrap { --track: calc(100% - var(--name) - 12px); }
.c-vrule, .c-rule-lab { left: calc(var(--name) + 6px + (100% - var(--name) - 12px) * var(--p)); margin-left: 0; }
.c-rule-lab { position: absolute; top: 0; transform: translateX(-100%); padding-right: 4px; font-size: 11px; color: var(--ink); white-space: nowrap; }

/* Diverging bars: one row a year, out from a centred zero. */
.c-div { max-width: 720px; }
.v-row, .v-axis { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; }
.v-row { height: 22px; border-radius: 4px; }
.v-y { font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.v-y.b { font-weight: 700; }
.v-track { position: relative; align-self: stretch; }
.v-track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #86868b; }
.v-bar { position: absolute; top: 5px; height: 12px; min-width: 2px; background: var(--c); border-radius: 0 4px 4px 0; }
.v-bar.neg { border-radius: 4px 0 0 4px; }
.v-val { position: absolute; top: 50%; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v-val.r { transform: translate(5px, -50%); }
.v-val.l { transform: translate(calc(-100% - 5px), -50%); }
.v-axis { height: 18px; }
.v-scale { position: relative; align-self: stretch; }
.v-scale span { position: absolute; top: 5px; transform: translateX(-50%); font-size: 11px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.v-row.hot { background: var(--surface); filter: none; }

/* Bars. */
.b-row { display: grid; align-items: center; column-gap: 8px; font-size: 12px; border-radius: 6px; }
.b-row.one { grid-template-columns: 104px minmax(0, 1fr); min-height: 24px; }
.b-row.sep { margin-top: 12px; }
.b-name { font-size: 12px; line-height: 1.15; }
.b-row.strong .b-name, .b-row.strong .b-val { font-weight: 700; }
.b-track { display: flex; align-items: center; min-width: 0; }
.b-track i { flex: none; width: calc((100% - 58px) * var(--f)); height: 11px; min-width: 2px; border-radius: 0 2px 2px 0; background: var(--c); }
.b-val { flex: none; margin-left: 5px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.b-tag { flex: none; margin-left: 6px; font-size: 11.5px; color: var(--ink); }

/* Equal areas: one disc, one field of dots, the same size. */
.c-eq { display: grid; gap: 16px; }
.eq-side { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 14px; border-radius: 8px; }
.eq-disc { width: 100%; height: auto; overflow: visible; }
.eq-lab { display: grid; grid-template-columns: 9px minmax(0, 1fr); align-items: center; gap: 2px 7px; margin: 0; font-size: 13px; line-height: 1.25; }
.eq-lab b { font-weight: 700; }
.eq-lab span { grid-column: 2; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The hubs' small charts. */
.spark { margin-bottom: 12px; pointer-events: none; }
.spark .c-dot { width: 7px; height: 7px; }
.c-lab.spk { font-size: 11px; line-height: 1.25; color: var(--muted); }
.c-lab.spk b { font-size: 13px; font-weight: 700; color: var(--ink); }
.c-rng { position: absolute; width: 5px; border-radius: 2.5px; background: var(--c); transform: translateX(-50%); }
.spark-eq { display: flex; align-items: center; gap: 8px; height: 72px; }
.spark-eq svg { flex: 0 0 150px; width: 150px; height: 72px; }
.spark-eq .c-lab { position: static; }
.ranks .list-row { align-items: flex-start; }
.ranks .list-row::after { margin-top: 30px; }
.ranks-note { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.list-text h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: pretty;
  transition: color 0.2s;
}
@media (hover: hover) {
  .list-row:hover h2 { color: var(--link); }
}

/* A one-line section reads as a row: a small label, then its sentence. */
.sec.brief h2 {
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

/* The refund guide: one column of plain reading. */
.refund { max-width: 760px; padding-bottom: 56px; }
.refund .hero { margin-bottom: 0; padding-bottom: 8px; border: 0; }
.prose { font-size: 16px; line-height: 1.5; }
.prose h2 { margin: 36px 0 10px; font-size: 24px; }
.prose a:not(:has(img)) { color: var(--link); }
.prose a:not(:has(img)):hover { text-decoration: underline; }
.prose table { margin: 12px 0; }
.prose .badge { width: auto; height: 44px; margin-top: 16px; }
.prose .updated, .prose .sources { font-size: 13px; line-height: 1.45; color: var(--muted); }
.prose .updated { margin-top: 32px; }

/* A toggle for a ledger's extra columns: a phone only ever shows two lines a row until asked. */
.t-more { display: none; }

/* A tie: on a phone the rank slot only holds the figure, the words go under the name. */
.eq-under { display: none; }
@media (max-width: 719px) {
  .t-more { display: block; margin-bottom: 4px; border: 0; }
  .t-more summary { justify-content: flex-start; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--link); }
  .t-more summary::after { border-color: var(--link); }
  .ledger td.extra { display: none; }
  .ledger:has(.t-more[open]) td.extra { display: block; order: 4; }
  /* One extra figure: it sits under the key figure, so the row stays at two lines. */
  .ledger.one-more tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1px 16px;
    align-items: start;
    min-height: 56px;
    padding-block: 9px;
  }
  .ledger.one-more .rank { top: 10px; }
  .ledger.one-more td.title { grid-area: 1 / 1 / 3 / 2; margin-bottom: 0; }
  .ledger.one-more td.lead { grid-area: 1 / 2; margin-left: 0; }
  .ledger.one-more td.more { grid-area: 2 / 2; flex: none; text-align: right; }
  .ledger .rank .eq { display: none; }
  .ledger .title .eq-under { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
}

/* Rankings: charts are the only cards. Prose and tables sit flat, split by hairlines. */
.rank-page .tile.copy:not(.soft), .rank-page .tile.stat-tile {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.rank-page .tile.cta { box-shadow: 0 0 0 1px var(--border); }

@media (max-width: 639px) {
  /* The title frames the chart, and the numbers never get cut in a clamped line. */
  .ranks .blurb { display: none; }
  .ranks .list-text { display: flex; flex-direction: column; }
  .ranks .spark { order: 3; margin: 10px 0 0; }
  .ranks .cv-plot { height: 48px; }
  .ranks .spark-eq { height: 48px; }
  .ranks .spark-eq svg { flex-basis: 100px; width: 100px; height: 48px; }
  .ranks .list-row { padding-block: 14px; }
  .ranks .list-row::after { margin-top: 8px; }
  .h-c b { font-size: 10px; }
}
@media (max-width: 379px) {
  .h-c b { display: none; }
}
@media (min-width: 640px) {
  /* The chevron lines up with the row's title, under the small chart and the tag. */
  .ranks .list-row::after { margin-top: 112px; }
  .ranks > li.wide:first-child .list-row::after { margin-top: 160px; }
  .c-card { padding: 28px 28px 14px; }
  .c-after { padding: 0 28px; }
  .c-title { font-size: 24px; letter-spacing: -0.025em; }
  .c-sub { font-size: 14px; max-width: 62ch; }
  .c-legend { font-size: 13px; }
  .c-note { font-size: 14px; }
  .cv { padding-right: var(--prw); }
  .cv-plot { height: var(--hw); }
  .ph { display: none; }
  .dt { display: block; }
  .h-c b.dt { display: inline; }
  .c-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  .h-c { height: var(--cellw); }
  .c-dumb, .c-bars1, .c-rule-wrap { max-width: 720px; }
  .c-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 640px; }
  .eq-side { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .b-row { column-gap: 12px; }
  .h-c b { letter-spacing: -0.02em; }
  /* Room for the name beside its track. */
  .c-dumb:not([data-inline]) { --name: 268px; --side: 76px; }
  .c-dumb:not([data-inline]) .d-row {
    display: grid;
    grid-template-columns: var(--name) minmax(0, 1fr) var(--side);
    align-items: center;
    padding: 3px 0;
  }
  .c-dumb:not([data-inline]) .d-head { display: contents; }
  .c-dumb:not([data-inline]) .d-name { grid-column: 1; font-size: 13px; }
  .c-dumb:not([data-inline]) .d-track { grid-column: 2; grid-row: 1; height: 26px; }
  .c-dumb:not([data-inline]) .d-side { grid-column: 3; grid-row: 1; text-align: right; font-size: 12px; }
  .c-dumb:not([data-inline]) .d-sub { grid-column: 2; margin: -4px 6px 2px; }
  .c-dumb:not([data-inline]) .d-axis { margin-left: calc(var(--name) + 6px); margin-right: calc(var(--side) + 6px); }
  .b-row.one { grid-template-columns: 130px minmax(0, 1fr); }
}
@media (max-width: 359px) {
  .top .search-field > svg { display: none; }
}
.rank-more .hub-part-head { margin-bottom: 12px; }
