@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f8fafd;
  --ink: #152b49;
  --blue: #3265ce;
  --teal: #247568;
  --muted: #53647a;
  --border: #d5deea;
  --soft: #edf2f8;
  --ring: #3265ce26;
  --white: #fff;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
summary {
  font: inherit;
}
button,
input,
select,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  color: #79879a;
  opacity: 0.65;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 5px;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
#rankings:focus {
  outline: none;
}
.site-header,
main,
.site-footer {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}
.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.3;
}
.site-header nav {
  display: flex;
  gap: 22px;
}
.site-header nav button {
  min-height: 44px;
  padding: 8px 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.site-header nav button:hover {
  color: var(--ink);
}
main {
  padding-top: 44px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
h1 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -1.15px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  background: var(--soft);
  border-color: #b3c1d3;
}
.button.quiet {
  border-color: transparent;
  background: transparent;
}
.button.quiet:hover:not(:disabled) {
  background: var(--soft);
  border-color: transparent;
}
.button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.button.primary:hover:not(:disabled) {
  background: #244368;
  border-color: #244368;
}
.button.primary:disabled {
  background: #dfe5ed;
  color: #718096;
  border-color: #dfe5ed;
  opacity: 1;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--soft);
}
.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 32px;
}
.ranking-main {
  min-width: 0;
}
.table-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  padding: 12px 0 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: -12px;
}
.field {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.field:hover:not(:focus-within):not(:has(input:disabled, select:disabled)) {
  border-color: #adbbce;
}
.field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--ring);
}
.field input,
.field select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent;
  margin: 0;
  padding: 10px 12px;
}
.field input::placeholder {
  color: var(--muted);
}
.field:has(input:disabled, select:disabled) {
  background: #f2f5f9;
  color: #8995a6;
}
.field select {
  cursor: pointer;
  padding-right: 35px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2365758a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.field input:disabled,
.field select:disabled {
  cursor: wait;
}
.search-field {
  flex: 1;
  max-width: 390px;
  padding-left: 13px;
  gap: 8px;
}
.search-field > svg {
  width: 17px;
  color: var(--muted);
}
.search-field input {
  padding-inline: 0;
}
.search-field kbd {
  font: inherit;
  font-size: 11px;
  color: #8896a8;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 6px;
  margin-right: 11px;
  line-height: 20px;
  flex-shrink: 0;
}
.region-field {
  width: 190px;
  flex-shrink: 0;
}
.table-scroll {
  overflow-x: auto;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.col-rank {
  width: 52px;
}
.col-country {
  width: 27%;
}
.col-score {
  width: 76px;
}
.col-access {
  width: auto;
}
.col-live {
  width: 90px;
}
.col-compare {
  width: 78px;
}
.ranking-table th {
  height: 45px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--soft);
  border-block: 1px solid #e0e6ef;
}
.ranking-table th:first-child {
  padding-left: 12px;
  border-top-left-radius: 5px;
}
.ranking-table th:last-child {
  border-top-right-radius: 5px;
  text-align: center;
}
.ranking-table th button {
  min-height: 42px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  padding: 0 4px;
  margin-left: -4px;
}
.ranking-table th abbr {
  text-decoration: none;
  cursor: help;
}
.ranking-table td {
  height: 65px;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
  font-size: 14px;
}
.ranking-table td:first-child {
  padding-left: 13px;
  font-size: 12px;
  color: var(--muted);
}
.ranking-table tbody tr:hover {
  background: #f0f4fa;
}
.ranking-table tr[data-selected="true"] {
  background: #edf3fc;
}
.country-button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  min-height: 44px;
  width: 100%;
  padding: 6px 15px 6px 0;
  line-height: 1.45;
  font-size: 13px;
  font-weight: 650;
}
.country-button span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.flag {
  font-size: 23px;
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1.3;
  flex-shrink: 0;
}
.score-number {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.score-bar {
  height: 7px;
  display: flex;
  background: #e5ebf4;
  border-radius: 3px;
  overflow: hidden;
  width: calc(100% - 22px);
}
.score-bar i {
  height: 100%;
  display: block;
}
.score-bar .travel {
  background: var(--blue);
}
.score-bar .residence {
  background: var(--teal);
}
.bar-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.live-column,
.live-count {
  text-align: right !important;
  padding-right: 12px !important;
}
.live-count {
  color: var(--teal);
  font-weight: 650;
}
.compare-cell {
  text-align: center;
  position: relative;
}
.compare-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
}
.compare-check:hover {
  background: #dfebfa;
}
.compare-check:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.compare-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
  outline: none;
  margin: 0;
}
.row-compare-action {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.row-compare-action:focus-visible {
  width: auto;
  height: 36px;
  clip: auto;
  overflow: visible;
  right: 44px;
  top: 14px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 4;
  font-size: 11px;
  white-space: nowrap;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  min-height: 44px;
  color: var(--muted);
  font-size: 11px;
}
.table-footer .button {
  font-size: 11px;
  padding: 8px 12px;
}
.table-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.chart-legend {
  display: flex;
  gap: 6px;
  align-items: center;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.legend-dot.travel {
  background: var(--blue);
}
.legend-dot.residence {
  background: var(--teal);
  margin-left: 10px;
}
.empty-state {
  padding: 44px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.empty-state h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 9px 0 20px;
}
.loading-cell {
  padding: 40px 18px !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  text-align: center;
}
.loading-cell .button {
  margin-left: 10px;
}
.loading-cell p {
  margin-bottom: 14px;
}
.scoring-panel {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  position: sticky;
  top: 20px;
}
.scoring-panel summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 16px 19px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 750;
  border-radius: 8px;
}
.scoring-panel summary::-webkit-details-marker {
  display: none;
}
.scoring-panel summary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}
.scoring-panel[open] summary svg {
  transform: rotate(180deg);
}
#scoring-summary {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-left: auto;
}
.scoring-panel[open] #scoring-summary {
  visibility: hidden;
}
.scoring-content {
  padding: 0 19px 12px;
}
.presets {
  display: flex;
  background: var(--soft);
  border-radius: 6px;
  padding: 3px;
  margin: 0 0 22px;
  gap: 2px;
}
.presets button {
  flex: 1;
  min-height: 35px;
  border-radius: 4px;
  padding: 8px 3px;
  font-size: 10px;
  font-weight: 650;
}
.presets [aria-pressed="true"] {
  background: white;
  box-shadow: 0 1px 3px #152b4915;
  color: var(--blue);
}
.weight-labels {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}
.weight-labels > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
}
.weight-labels strong {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.travel-weight {
  color: var(--blue);
}
.residence-weight {
  color: var(--teal);
  text-align: right;
}
input[type="range"] {
  display: block;
  appearance: none;
  width: 100%;
  height: 28px;
  padding: 0;
  margin: 15px 0 24px;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--blue), var(--teal));
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6.5px;
  background: var(--ink);
  border: 3px solid white;
  box-shadow: 0 0 0 1px #a4b5cb;
  border-radius: 50%;
}
input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--blue), var(--teal));
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--ink);
  border: 3px solid white;
  box-shadow: 0 0 0 1px #a4b5cb;
  border-radius: 50%;
}
input[type="range"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.setting-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.switch-label {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding-block: 22px;
  border-bottom: 1px solid #e4eaf2;
  font-size: 12px;
  font-weight: 600;
}
.switch-label > span:first-child {
  flex: 1;
}
.switch-label small {
  display: block;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 5px;
}
.switch-label input {
  position: absolute;
  right: 0;
  width: 40px;
  height: 40px;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.switch {
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #c3cfdd;
  position: relative;
  pointer-events: none;
  flex-shrink: 0;
}
.switch:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transition: left 0.12s;
}
.switch-label input:checked + .switch {
  background: var(--teal);
}
.switch-label input:checked + .switch:after {
  left: 17px;
}
.switch-label input:focus-visible + .switch {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.reset-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 11px;
  color: var(--muted);
  padding: 10px 1px;
  margin-top: 6px;
}
.reset-button svg {
  width: 14px;
  height: 14px;
}
.reset-button:hover {
  color: var(--ink);
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 25px 0 32px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
}
.site-footer button {
  font-size: 11px;
  min-height: 40px;
  padding: 8px 0;
}
body.has-selection {
  padding-bottom: 108px;
}
.comparison-tray {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1050px, calc(100% - 48px));
  z-index: 15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  background: white;
  border: 1px solid #b9c9df;
  border-radius: 10px;
  box-shadow: 0 6px 32px #162b4926;
}
.selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}
.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 235px;
  border-radius: 6px;
  background: var(--soft);
  padding: 0 2px 0 11px;
  border: 1px solid #e1e8f1;
  height: 40px;
}
.selection-chip .flag {
  font-size: 19px;
}
.selection-chip .chip-name {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selection-chip .icon-button {
  height: 36px;
  width: 32px;
  border-radius: 4px;
}
.selection-chip .icon-button svg {
  height: 13px;
  width: 13px;
}
.selection-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.selection-actions .button {
  min-height: 40px;
}
.selection-actions .primary {
  min-width: 110px;
}
.comparison-tray.limit-reached {
  border-color: var(--blue);
  box-shadow:
    0 0 0 3px var(--ring),
    0 6px 32px #162b4926;
}
#detail-dialog {
  border: 0;
  margin: 0 0 0 auto;
  position: fixed;
  inset: 0;
  width: min(850px, 100%);
  max-width: 100%;
  max-height: 100dvh;
  height: 100dvh;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: -15px 0 80px #11253c25;
  overscroll-behavior: contain;
}
#detail-dialog::backdrop {
  background: #11253c66;
  backdrop-filter: blur(2px);
}
.dialog-topbar {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 25px;
  z-index: 6;
  min-height: 61px;
}
.dialog-close {
  margin-left: auto;
}
.dialog-topbar .button {
  min-height: 40px;
  font-size: 12px;
  padding-left: 4px;
}
.dialog-topbar .button svg {
  width: 16px;
}
#dialog-content {
  padding: 29px 32px 40px;
}
#dialog-title {
  font-size: 29px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.8px;
  outline: none;
}
.dialog-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.dialog-heading .flag {
  font-size: 38px;
}
.dialog-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.75;
}
.profile-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.profile-score strong {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.profile-score strong small {
  font-size: 15px;
  font-weight: 450;
  letter-spacing: 0;
  color: #cad7e9;
}
.profile-score .rank-badge {
  text-align: right;
  font-size: 18px;
  font-weight: 600;
}
.profile-score .rank-badge span {
  display: block;
  color: #cad7e9;
  font-size: 11px;
  margin-top: 7px;
  font-weight: 400;
}
.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.profile-metrics > div {
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
}
.profile-metrics strong {
  display: block;
  font-size: 23px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.profile-metrics span {
  display: block;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 4px;
}
.profile-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.calculation {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  margin-top: 16px;
}
.calculation summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.calculation summary:after {
  content: "+";
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
}
.calculation[open] summary:after {
  content: "−";
}
.calculation .formula {
  margin: 0 14px 12px;
  font-size: 12px;
}
.calculation p {
  margin: 0 14px 16px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.audit-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 31px 0 15px;
  gap: 12px;
}
.audit-heading h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.audit-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.audit-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.audit-toolbar .search-field {
  flex: 1;
  max-width: none;
}
.audit-toolbar > .field:last-child:not(:first-child) {
  width: 180px;
}
.destination-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.destination-table th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  padding: 13px 9px;
  background: var(--soft);
  white-space: nowrap;
}
.destination-table td {
  border-bottom: 1px solid var(--border);
  padding: 14px 9px;
  line-height: 1.7;
  vertical-align: middle;
}
.destination-table td:first-child {
  width: 30%;
  font-weight: 600;
}
.destination-table td .flag {
  font-size: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
.destination-table td:last-child {
  color: var(--teal);
}
.destination-table .dim {
  color: var(--muted) !important;
}
.destination-table a {
  color: var(--teal);
}
.table-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 15px;
}
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.doc-content h3 {
  font-size: 17px;
  margin: 27px 0 11px;
  letter-spacing: -0.3px;
}
.doc-content p,
.doc-content li {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.doc-content a {
  color: var(--blue);
}
.doc-content > p {
  margin-top: 12px;
}
.doc-content ul {
  padding-left: 20px;
  margin-block: 12px;
}
.formula {
  padding: 16px 18px;
  background: #ebf1fa;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
  font-variant-numeric: tabular-nums;
}
.doc-content .formula {
  margin-top: 18px;
}
.method-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin-top: 12px;
}
.method-table th {
  text-align: left;
  background: var(--soft);
  padding: 11px 10px;
  font-size: 11px;
  font-weight: 600;
}
.method-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}
.method-table td:last-child {
  text-align: right;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.source-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.source-item > a {
  font-size: 13px;
  font-weight: 650;
}
.source-item p {
  margin-top: 7px;
  font-size: 12px;
}
.source-item summary {
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  min-height: 32px;
  line-height: 1.7;
}
.source-item details p {
  margin-top: 10px;
}
.source-item details > a {
  font-size: 11px;
  display: inline-block;
  margin-top: 10px;
}
.compare-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.compare-selects label {
  display: block;
  min-width: 0;
}
.compare-selects .slot-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.compare-selects select {
  font-size: 12px;
  padding-left: 10px;
}
.compare-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.compare-grid th {
  text-align: left;
  vertical-align: top;
  background: white;
  padding: 18px 12px;
  border-bottom: 1px solid var(--border);
}
.compare-grid th:first-child {
  width: 25%;
  background: none;
  font-size: 11px;
  font-weight: 500;
  vertical-align: bottom;
  color: var(--muted);
}
.compare-grid th .flag {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}
.compare-grid th strong {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.compare-grid td {
  border-bottom: 1px solid var(--border);
  padding: 18px 12px;
  vertical-align: top;
  font-weight: 650;
}
.compare-grid td:first-child {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.compare-score {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.3;
}
.compare-grid small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 5px;
}
.compare-grid .button {
  white-space: normal;
  font-size: 11px;
  padding: 7px 10px;
  min-height: 38px;
}
.compare-destinations .destination-table {
  min-width: 430px;
}
.compare-destinations .destination-table th {
  white-space: normal;
  vertical-align: bottom;
  line-height: 1.7;
}
.compare-destinations .destination-table td {
  width: auto;
  font-size: 11px;
}
.compare-destinations .destination-table td:first-child {
  min-width: 120px;
  width: 25%;
}
.compare-destinations .destination-table td:last-child {
  color: inherit;
}
.comparison-empty {
  background: var(--soft);
  border-radius: 7px;
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.share-field {
  margin-top: 20px;
}
.share-field input {
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--ink);
  color: white;
  font-size: 12px;
  line-height: 1.7;
  padding: 11px 18px;
  border-radius: 7px;
  max-width: min(500px, calc(100% - 32px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
#toast.show {
  opacity: 1;
}
body.has-selection #toast {
  bottom: 120px;
}
.noscript-notice {
  margin: 24px;
  padding: 15px;
  border: 1px solid var(--border);
  font-size: 13px;
}
.noscript-notice a {
  color: var(--blue);
}
@media (max-width: 1150px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 64px);
  }
  .ranking-layout {
    grid-template-columns: minmax(0, 1fr) 254px;
    gap: 24px;
  }
  .col-country {
    width: 32%;
  }
  .col-access {
    width: auto;
  }
  .col-compare {
    width: 66px;
  }
  .col-live {
    width: 73px;
  }
  .col-rank {
    width: 43px;
  }
  .col-score {
    width: 62px;
  }
  .ranking-table th {
    font-size: 10px;
  }
  .ranking-table th button {
    font-size: 10px;
  }
  .country-button {
    font-size: 12px;
    gap: 8px;
    padding-right: 10px;
  }
  .score-number {
    font-size: 17px;
  }
  .scoring-content {
    padding-inline: 16px;
  }
  .scoring-panel summary {
    padding-inline: 16px;
  }
  .region-field {
    width: 168px;
  }
  .table-toolbar {
    gap: 12px;
  }
  .search-field kbd {
    display: none;
  }
  .selection-chip {
    max-width: 200px;
  }
  .selection-chip .chip-name {
    font-size: 11px;
  }
  .comparison-tray {
    gap: 12px;
  }
}
@media (max-width: 960px) {
  .ranking-table .access-column {
    display: none;
  }
  .col-access {
    display: none;
  }
  .col-country {
    width: auto;
  }
  .col-live {
    width: 80px;
  }
  .col-compare {
    width: 70px;
  }
  .col-rank {
    width: 44px;
  }
  .col-score {
    width: 68px;
  }
  .chart-legend {
    visibility: hidden;
  }
  .comparison-tray {
    width: calc(100% - 40px);
  }
  .selection-chip {
    max-width: 170px;
  }
  .selection-chip .flag {
    font-size: 17px;
  }
}
@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 73px;
    gap: 12px;
  }
  .brand {
    font-size: 25px;
    letter-spacing: -1.2px;
    gap: 8px;
  }
  .brand svg {
    width: 25px;
    height: 25px;
  }
  .site-header nav {
    gap: 14px;
  }
  .site-header nav button {
    font-size: 11px;
    padding: 5px 0;
  }
  main {
    padding-top: 28px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 23px;
    gap: 16px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -0.9px;
  }
  .page-heading p {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 8px;
  }
  .page-actions {
    gap: 6px;
  }
  .page-actions .button {
    padding: 9px 11px;
  }
  .page-actions .quiet {
    font-size: 0;
    gap: 0;
  }
  .page-actions .quiet svg {
    width: 18px;
    height: 18px;
  }
  .ranking-layout {
    display: flex;
    flex-direction: column;
    gap: 21px;
  }
  .ranking-main {
    width: 100%;
  }
  .scoring-panel {
    order: -1;
    position: static;
    width: 100%;
    background: transparent;
    border-color: var(--border);
  }
  .scoring-panel summary {
    min-height: 52px;
    padding: 13px 15px;
  }
  .scoring-panel[open] {
    background: white;
  }
  .scoring-panel[open] #scoring-summary {
    visibility: visible;
  }
  .scoring-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 26px;
    padding: 2px 17px 9px;
  }
  .presets {
    grid-column: 1/-1;
    margin: 4px 0 21px;
  }
  .presets button {
    font-size: 11px;
    min-height: 38px;
  }
  .weight-labels {
    grid-row: 2/4;
    grid-column: 1;
    align-self: start;
  }
  .weight-labels strong {
    font-size: 24px;
  }
  .weight-labels > div {
    font-size: 10px;
  }
  #residence-weight {
    grid-row: 4;
    grid-column: 1;
    margin: 10px 0 8px;
  }
  .setting-label {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
    margin: 0 0 9px;
    align-self: start;
  }
  .scoring-content > .field {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }
  .scoring-content > .field select {
    font-size: 12px;
  }
  .switch-label {
    grid-column: 1/-1;
    grid-row: 5;
    padding: 18px 0;
    margin-top: 4px;
    border-top: 1px solid #e4eaf2;
    font-size: 12px;
  }
  .switch-label small {
    font-size: 10px;
  }
  .reset-button {
    grid-column: 1/-1;
    grid-row: 6;
    justify-self: start;
  }
  .table-toolbar {
    gap: 10px;
    margin-top: -10px;
    padding-top: 10px;
  }
  .search-field {
    max-width: none;
  }
  .region-field {
    width: 178px;
  }
  .ranking-table .access-column {
    display: table-cell;
  }
  .col-access {
    display: table-column;
    width: auto;
  }
  .col-country {
    width: 31%;
  }
  .col-live {
    width: 76px;
  }
  .col-compare {
    width: 69px;
  }
  .col-score {
    width: 66px;
  }
  .col-rank {
    width: 42px;
  }
  .ranking-table td {
    height: 63px;
  }
  .chart-legend {
    visibility: visible;
  }
  .site-footer {
    margin-top: 31px;
    font-size: 10px;
    align-items: center;
  }
  .site-footer button {
    font-size: 10px;
  }
  body.has-selection {
    padding-bottom: 147px;
  }
  .comparison-tray {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 11px 12px;
    display: block;
    border-radius: 9px;
  }
  .selection-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .selection-chip {
    max-width: none;
    height: 36px;
    padding-left: 7px;
    gap: 5px;
    min-width: 0;
  }
  .selection-chip .chip-name {
    font-size: 10px;
    flex: 1;
  }
  .selection-chip .flag {
    font-size: 16px;
  }
  .selection-chip .icon-button {
    width: 27px;
    height: 34px;
  }
  .selection-chip .icon-button svg {
    width: 12px;
    height: 12px;
  }
  .selection-actions {
    justify-content: flex-end;
    margin-top: 9px;
    gap: 8px;
  }
  .selection-actions .button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 11px;
  }
  .selection-actions .primary {
    min-width: 115px;
  }
  body.has-selection #toast {
    bottom: 143px;
  }
  .dialog-topbar {
    padding: 9px 19px;
  }
  #dialog-content {
    padding: 24px 22px 32px;
  }
  #dialog-title {
    font-size: 27px;
  }
  .dialog-heading .flag {
    font-size: 33px;
  }
  .profile-metrics {
    gap: 9px;
  }
  .profile-metrics > div {
    padding: 14px;
  }
  .profile-metrics strong {
    font-size: 22px;
  }
  .profile-metrics span {
    font-size: 10px;
  }
  .compare-grid th {
    padding: 16px 9px;
  }
  .compare-grid td {
    padding: 16px 9px;
  }
  .compare-grid th strong {
    font-size: 12px;
  }
  .compare-selects {
    gap: 9px;
  }
  .compare-selects .slot-label {
    font-size: 10px;
  }
  .compare-selects select {
    font-size: 11px;
    padding-left: 8px;
    padding-right: 26px;
    background-position: right 8px center;
  }
  .compare-grid small {
    font-size: 9px;
  }
  .audit-toolbar {
    gap: 9px;
  }
  .audit-toolbar > .field:last-child:not(:first-child) {
    width: 165px;
  }
}
@media (max-width: 540px) {
  .page-heading {
    display: block;
    position: relative;
  }
  .page-heading h1 {
    padding-right: 0;
  }
  .page-heading p {
    max-width: 100%;
    font-size: 11px;
  }
  .page-actions {
    margin-top: 16px;
    justify-content: flex-start;
  }
  .page-actions .quiet {
    font-size: 11px;
    gap: 7px;
  }
  .page-actions .button {
    min-height: 38px;
    font-size: 11px;
    padding: 7px 11px;
  }
  .ranking-table .access-column {
    display: none;
  }
  .col-access {
    display: none;
  }
  .col-country {
    width: auto;
  }
  .col-rank {
    width: 35px;
  }
  .col-score {
    width: 62px;
  }
  .col-live {
    width: 70px;
  }
  .col-compare {
    width: 63px;
  }
  .ranking-table td:first-child {
    padding-left: 8px;
  }
  .ranking-table th:first-child {
    padding-left: 7px;
  }
  .ranking-table th {
    font-size: 9px;
  }
  .ranking-table th button {
    font-size: 10px;
  }
  .ranking-table td {
    height: 62px;
  }
  .country-button {
    font-size: 12px;
    gap: 8px;
    padding-right: 6px;
  }
  .flag {
    font-size: 21px;
  }
  .score-number {
    font-size: 17px;
  }
  .live-count {
    font-size: 13px !important;
  }
  .live-column,
  .live-count {
    padding-right: 9px !important;
  }
  .chart-legend {
    display: none;
  }
  .table-caption {
    justify-content: flex-end;
  }
  .region-field {
    width: 159px;
  }
  .field input,
  .field select {
    font-size: 12px;
  }
  .search-field {
    padding-left: 10px;
    gap: 7px;
  }
  .search-field > svg {
    width: 15px;
  }
  .region-field select {
    padding-left: 10px;
    padding-right: 29px;
    background-position: right 9px center;
    font-size: 11px;
  }
  .table-footer {
    font-size: 10px;
  }
  .table-footer .button {
    font-size: 10px;
  }
  .site-footer {
    gap: 12px;
    flex-wrap: wrap;
  }
  .profile-score {
    padding: 19px;
  }
  .profile-score strong {
    font-size: 38px;
  }
  .profile-score .rank-badge {
    font-size: 16px;
  }
  .profile-metrics > div {
    padding: 12px 10px;
  }
  .profile-metrics span {
    font-size: 9px;
  }
  .profile-metrics strong {
    font-size: 22px;
  }
  .audit-toolbar {
    flex-wrap: wrap;
  }
  .audit-toolbar .search-field {
    flex-basis: 100%;
  }
  .audit-toolbar > .field:last-child:not(:first-child) {
    width: 100%;
  }
  .audit-heading {
    margin-top: 27px;
  }
  .destination-table th {
    font-size: 9px;
    padding: 11px 6px;
    white-space: normal;
  }
  .destination-table td {
    padding: 12px 6px;
    font-size: 10px;
  }
  .destination-table td:first-child {
    width: 30%;
  }
  .destination-table td .flag {
    font-size: 16px;
    margin-right: 4px;
  }
  .compare-selects {
    gap: 7px;
    margin: 23px 0;
  }
  .compare-selects select {
    font-size: 10px;
    padding-left: 7px;
  }
  .compare-grid th {
    padding: 13px 6px;
  }
  .compare-grid th:first-child {
    width: 25%;
  }
  .compare-grid th .flag {
    font-size: 25px;
    margin-bottom: 9px;
  }
  .compare-grid th strong {
    font-size: 10px;
  }
  .compare-grid td {
    padding: 16px 6px;
    font-size: 12px;
  }
  .compare-grid td:first-child {
    font-size: 10px;
  }
  .compare-grid .compare-score {
    font-size: 23px;
  }
  .compare-grid .button {
    font-size: 9px;
    min-height: 36px;
    padding: 6px 7px;
  }
  .compare-grid small {
    font-size: 9px;
  }
  .doc-content p,
  .doc-content li {
    font-size: 12px;
  }
  .formula {
    font-size: 11px;
    padding: 14px;
    overflow-wrap: anywhere;
  }
  .profile-actions .button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .selection-chip .flag {
    display: none;
  }
  .selection-chip .chip-name {
    font-size: 10px;
  }
  .comparison-tray {
    padding: 10px;
  }
  .selection-chip {
    padding-left: 8px;
  }
  .dialog-subtitle {
    font-size: 11px;
  }
  .method-table {
    font-size: 11px;
  }
  .download-row .button {
    font-size: 11px;
    padding-inline: 12px;
  }
}
@media (max-width: 360px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 32px);
  }
  .site-header nav {
    gap: 10px;
  }
  .site-header nav button {
    font-size: 10px;
  }
  .brand {
    font-size: 23px;
    gap: 6px;
  }
  .brand svg {
    width: 22px;
    height: 22px;
  }
  h1 {
    font-size: 27px;
  }
  .col-rank {
    width: 30px;
  }
  .col-score {
    width: 53px;
  }
  .col-live {
    width: 62px;
  }
  .col-compare {
    width: 55px;
  }
  .country-button {
    font-size: 11px;
    gap: 6px;
  }
  .country-button .flag {
    font-size: 19px;
  }
  .score-number {
    font-size: 16px;
  }
  .ranking-table th {
    font-size: 8px;
  }
  .ranking-table th button {
    font-size: 9px;
  }
  .ranking-table td:first-child {
    font-size: 10px;
  }
  .region-field {
    width: 143px;
  }
  .region-field select {
    font-size: 10px;
  }
  .search-field input {
    font-size: 11px;
  }
  .scoring-content {
    gap: 0 18px;
    padding-inline: 14px;
  }
  .scoring-content > .field select {
    font-size: 11px;
  }
  #scoring-summary {
    font-size: 10px;
  }
  .weight-labels strong {
    font-size: 23px;
  }
  #dialog-content {
    padding-inline: 16px;
  }
  .dialog-topbar {
    padding-inline: 14px;
  }
  #dialog-title {
    font-size: 25px;
  }
  .compare-grid th strong {
    font-size: 9px;
  }
  .compare-grid td:first-child {
    font-size: 9px;
  }
  .compare-grid .compare-score {
    font-size: 20px;
  }
  .compare-grid small {
    font-size: 8px;
  }
  .compare-selects select {
    font-size: 9px;
    padding-left: 5px;
    padding-right: 22px;
    background-position: right 5px center;
  }
  .compare-grid .button {
    font-size: 8px;
    padding-inline: 5px;
  }
  .selection-chip .chip-name {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Shared control and content states. */
html {
  scrollbar-gutter: stable;
  scroll-padding-block: 88px var(--tray-clearance, 24px);
}
body.has-selection {
  padding-bottom: var(--tray-clearance, 140px);
}
body.has-selection #toast {
  bottom: var(--tray-clearance, 140px);
}
#detail-dialog {
  scroll-padding-block: 80px 24px;
}
#detail-dialog #toast {
  bottom: 24px;
}
.text-button {
  min-height: 44px;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.calculation > .text-button {
  margin: 0 14px 10px;
}
.destination-table small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.7;
}
.comparison-search {
  margin-bottom: 16px;
}
.compare-destinations {
  overflow-x: auto;
}
.compare-grid tbody th {
  vertical-align: middle;
}
.source-item > p + a {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
}
.share-field {
  margin-top: 8px;
}
.slot-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.compare-selects .slot-label {
  margin-top: 0;
}
@media (max-width: 760px) {
  .selection-list {
    display: flex;
    flex-wrap: wrap;
  }
  .selection-chip {
    max-width: 100%;
    height: 38px;
    padding-left: 9px;
    gap: 7px;
  }
  .selection-chip .chip-name {
    font-size: 11px;
  }
  .selection-chip .icon-button {
    width: 34px;
    height: 36px;
  }
}
@media (max-width: 760px), (pointer: coarse) {
  .field input,
  .field select,
  .compare-selects select,
  .region-field select,
  .scoring-content > .field select {
    font-size: 16px;
  }
  .compare-selects {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .compare-selects label {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }
  .compare-selects .slot-label {
    margin: 0;
  }
  .table-toolbar {
    flex-wrap: wrap;
  }
  .region-field {
    width: 100%;
  }
  .table-toolbar .search-field {
    flex-basis: 100%;
    max-width: none;
  }
  .audit-toolbar {
    flex-wrap: wrap;
  }
  .audit-toolbar > .field:last-child:not(:first-child) {
    width: 100%;
  }
  .audit-toolbar .search-field {
    flex-basis: 100%;
  }
  .selection-chip .icon-button {
    min-width: 40px;
    height: 40px;
  }
  .selection-chip {
    height: 42px;
  }
}
@media (max-width: 540px) {
  .compare-grid th strong {
    font-size: 11px;
  }
  .compare-grid small {
    font-size: 10px;
    line-height: 1.65;
  }
  .compare-grid .button {
    font-size: 10px;
    min-height: 44px;
  }
  .destination-table th {
    font-size: 11px;
  }
  .destination-table td {
    font-size: 12px;
  }
  .profile-metrics span {
    font-size: 11px;
  }
}
