:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --paper: #ffffff;
  --paper-soft: #fbfaf6;
  --ink: #0a1119;
  --deep: #121c27;
  --slate: #243140;
  --text: #4b535d;
  --muted: #7b858f;
  --line: #d8d9da;
  --soft-line: rgba(10, 17, 25, 0.12);
  --accent: #8d7551;
  --gold: #c9a24a;
  --green: #1f6f5d;
  --blue: #244e73;
  --red: #8b2635;
  --eta: #6f7fc8;
  --radius: 2px;
  --header-h: 104px;
  font-family: "Public Sans", Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", Inter, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 clamp(20px, 3.5vw, 58px);
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(7, 19, 35, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 340px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 42px;
  border-radius: 2px;
  background: var(--deep);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  max-width: 310px;
  font-size: 15px;
  font-weight: 800;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}

.top-nav a,
.header-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav a:hover {
  color: var(--accent);
}

.header-action {
  padding: 0 18px;
  border: 1px solid rgba(7, 19, 35, 0.18);
  background: #fff;
  color: var(--ink);
}

main {
  overflow: hidden;
}

#directory,
#rankings,
#compare,
#destinations {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.hero,
.directory,
.profile-section,
.rankings,
.compare-section,
.destinations,
.site-footer {
  width: min(1840px, 100%);
  margin: 0 auto;
  padding-left: clamp(14px, 3vw, 58px);
  padding-right: clamp(14px, 3vw, 58px);
}

.hero {
  padding-top: clamp(20px, 3.4vw, 64px);
  padding-bottom: clamp(34px, 4.8vw, 82px);
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(10, 17, 25, 0.38);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topline span:last-child {
  color: var(--muted);
  text-align: right;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: end;
  padding-top: clamp(48px, 6vw, 98px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 1360px;
  font-size: clamp(58px, 8.4vw, 134px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(38px, 4.5vw, 74px);
  line-height: 1.04;
}

.hero-copy,
.section-head p {
  color: var(--text);
  font-size: clamp(15px, 1.08vw, 19px);
  line-height: 1.78;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
}

.hero-aside {
  display: grid;
  gap: 28px;
}

.hero-image {
  min-height: 310px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 17, 25, 0.12), rgba(10, 17, 25, 0.36)),
    url("./assets/passports-desk.png") center / cover no-repeat;
}

.stat-grid,
.current-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1840px, calc(100% - clamp(28px, 6vw, 116px)));
  margin: 0 auto clamp(54px, 6vw, 96px);
}

.stat-grid article,
.current-grid article {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.stat-grid article {
  min-height: 126px;
  padding: 24px;
}

.stat-grid span,
.current-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat-grid strong,
.current-grid strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3vw, 50px);
  font-weight: 400;
  line-height: 1;
}

.stat-grid small {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 13px;
}

.directory,
.profile-section,
.rankings,
.compare-section,
.destinations {
  padding-top: clamp(38px, 5vw, 84px);
  padding-bottom: clamp(38px, 5vw, 84px);
  border-top: 1px solid rgba(10, 17, 25, 0.34);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 0.68fr);
  gap: clamp(24px, 5vw, 82px);
  align-items: end;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 800px;
  margin: 0;
}

.current-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.current-grid article {
  min-height: 92px;
  padding: 18px;
}

.current-grid strong {
  font-size: clamp(20px, 1.8vw, 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) minmax(180px, 0.55fr) minmax(210px, 0.62fr) minmax(230px, 0.72fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span,
.range-meta,
.destination-summary .label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  font-size: 13px;
  letter-spacing: 0.02em;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  border-color: var(--deep);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(141, 117, 81, 0.16);
}

input[type="range"] {
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.score-field {
  gap: 10px;
}

.range-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  letter-spacing: 0.04em;
}

output {
  color: var(--ink);
  font-weight: 850;
}

.reset-button,
.view-button,
.tab-button,
.swap-button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 0 18px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reset-button:hover,
.view-button:hover,
.tab-button:hover,
.swap-button:hover {
  border-color: var(--ink);
}

.view-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 22px;
}

.view-button {
  min-height: 38px;
}

.view-button.active,
.tab-button.active {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.passport-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.passport-grid.list-mode {
  grid-template-columns: 1fr;
}

.passport-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  padding: 0;
  border: 1px solid rgba(10, 17, 25, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.24s ease, transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.passport-card:hover,
.passport-card.selected {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 34px rgba(7, 19, 35, 0.08);
  transform: translateY(-2px);
}

.passport-card-media {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 1 / 1.28;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfaf6 0%, #f1f2f0 100%);
}

.passport-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 112px;
}

.passport-image-frame.large {
  min-height: 300px;
}

.passport-image-frame.matrix {
  min-height: 0;
  height: 232px;
}

.passport-cover-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(7, 19, 35, 0.18));
}

.passport-cover {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(86px, 100%);
  aspect-ratio: 2 / 2.82;
  padding: 10px 9px 9px;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 28%, rgba(0, 0, 0, 0.12) 100%),
    var(--cover-color);
  color: var(--foil-color);
  box-shadow:
    0 18px 34px rgba(7, 19, 35, 0.22),
    inset -10px 0 18px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.passport-cover.large {
  width: min(220px, 100%);
  padding: 20px 18px 18px;
}

.passport-cover.matrix {
  width: min(150px, 100%);
  padding: 16px 14px 14px;
}

.passport-cover::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--foil-color) 58%, transparent);
  border-radius: 2px;
  pointer-events: none;
}

.passport-cover.large::before {
  inset: 12px;
}

.passport-cover.matrix::before {
  inset: 10px;
}

.cover-authority,
.passport-code,
.cover-label,
.passport-title,
.passport-chip {
  position: relative;
  z-index: 1;
  font-style: normal;
  transform: none;
}

.cover-authority {
  min-height: 18px;
  max-height: 24px;
  color: color-mix(in srgb, var(--foil-color) 86%, #fff 14%);
  font-family: "Public Sans", Inter, Arial, sans-serif;
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1.22;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.passport-cover.large .cover-authority {
  min-height: 34px;
  max-height: 40px;
  font-size: 10px;
}

.passport-cover.matrix .cover-authority {
  min-height: 28px;
  max-height: 34px;
  font-size: 8px;
}

.passport-code {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 16px;
  height: 12px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--foil-color) 48%, transparent);
  color: color-mix(in srgb, var(--foil-color) 86%, #fff 14%);
  font-size: 6px;
  font-weight: 850;
  line-height: 1;
}

.passport-cover.large .passport-code {
  top: 18px;
  right: 18px;
  min-width: 28px;
  height: 20px;
  font-size: 9px;
}

.passport-cover.matrix .passport-code {
  top: 14px;
  right: 14px;
  min-width: 24px;
  height: 17px;
  font-size: 8px;
}

.passport-emblem {
  display: none;
}

.cover-label {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 160px;
  color: color-mix(in srgb, var(--foil-color) 92%, #fff 8%);
  font-family: "Public Sans", Inter, Arial, sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.passport-cover.large .cover-label {
  font-size: clamp(13px, 1.2vw, 17px);
}

.passport-cover.matrix .cover-label {
  font-size: 12px;
}

.cover-label.arabic,
.cover-label.hebrew,
.cover-label.chinese,
.cover-label.japanese,
.cover-label.korean,
.cover-label.thai,
.cover-label.greek,
.cover-label.cyrillic {
  text-transform: none;
}

.passport-title {
  display: grid;
  gap: 3px;
  align-self: end;
  justify-items: center;
  color: color-mix(in srgb, var(--foil-color) 86%, #fff 14%);
  font-family: "Public Sans", Inter, Arial, sans-serif;
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1.16;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
}

.passport-cover.large .passport-title {
  gap: 6px;
  font-size: 10px;
}

.passport-cover.matrix .passport-title {
  gap: 5px;
  font-size: 8px;
}

.passport-title small {
  color: color-mix(in srgb, var(--foil-color) 68%, transparent);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.passport-cover.large .passport-title small {
  font-size: 9px;
}

.passport-cover.matrix .passport-title small {
  font-size: 8px;
}

.passport-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.passport-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 12px;
  height: 9px;
  border: 1px solid color-mix(in srgb, var(--foil-color) 72%, transparent);
}

.passport-cover.large .passport-chip {
  left: 18px;
  bottom: 18px;
  width: 20px;
  height: 15px;
}

.passport-cover.matrix .passport-chip {
  left: 14px;
  bottom: 14px;
  width: 17px;
  height: 12px;
}

.passport-chip::before,
.passport-chip::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid color-mix(in srgb, var(--foil-color) 44%, transparent);
  border-left: 0;
  border-right: 0;
}

.passport-chip::after {
  inset: 0 7px;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--foil-color) 44%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--foil-color) 44%, transparent);
}

.passport-card-body {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 10px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.passport-card-title {
  display: -webkit-box;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--line);
  padding: 0 6px;
  color: var(--text);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.passport-grid.list-mode .passport-card {
  grid-template-columns: 130px 1fr;
  grid-template-rows: 1fr;
}

.passport-grid.list-mode .passport-card-media {
  min-height: 160px;
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.passport-grid.list-mode .passport-cover {
  width: 88px;
}

.inline-profile {
  grid-column: 1 / -1;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 0 24px 54px rgba(7, 19, 35, 0.08);
}

.inline-profile-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(280px, 0.72fr) minmax(340px, 0.74fr) minmax(300px, 0.62fr);
  gap: 1px;
  background: var(--line);
}

.profile-cover,
.profile-summary,
.mobility-card,
.quick-list {
  background: #fff;
}

.profile-cover {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 26px;
  background: linear-gradient(180deg, #fbfaf6 0%, #f1f2f0 100%);
}

.selected-passport,
.mobility-card,
.quick-list,
.compare-card,
.destination-summary,
.policy-list {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.profile-summary {
  padding: 28px;
}

.profile-summary h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 3.2vw, 62px);
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.profile-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.selected-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.fact {
  min-height: 86px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.fact small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.mobility-card {
  padding: 28px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 26px;
  align-items: center;
  min-height: 304px;
}

.donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  border-radius: 50%;
}

.donut::after {
  content: "";
  position: absolute;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: var(--bg);
}

.donut span {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.legend-list,
.quick-list,
.policy-list {
  display: grid;
  gap: 1px;
}

.legend-item,
.mini-item,
.policy-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.legend-item:last-child,
.mini-item:last-child,
.policy-item:last-child {
  border-bottom: 0;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot-color);
}

.mini-item span,
.policy-item span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-item small,
.policy-item small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.status {
  min-width: 82px;
  padding: 6px 9px;
  background: var(--deep);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.status.free {
  background: var(--green);
}

.status.arrival {
  background: var(--blue);
}

.status.eta {
  background: var(--eta);
}

.status.evisa {
  background: var(--accent);
}

.status.required,
.status.noAdmission {
  background: var(--red);
}

.status.same {
  background: var(--muted);
}

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tab-button {
  min-height: 42px;
}

.ranking-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.ranking-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.ranking-table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ranking-table td {
  color: var(--slate);
  font-size: 14px;
}

.ranking-table tr:last-child td {
  border-bottom: 0;
}

.passport-inline {
  color: var(--ink);
  font-weight: 850;
}

.compare-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.compare-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compare-card {
  padding: 28px;
}

.compare-head {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.compare-head .passport-cover {
  width: 130px;
}

.compare-head .passport-image-frame {
  min-height: 190px;
}

.compare-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 2.8vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.compare-head small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar-row {
  display: grid;
  grid-template-columns: 138px 1fr 52px;
  gap: 14px;
  align-items: center;
  min-height: 38px;
  color: var(--text);
  font-size: 13px;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  background: #e4e6e7;
}

.bar-fill {
  display: block;
  width: var(--bar-width);
  height: 100%;
  background: var(--bar-color);
}

.destination-head {
  align-items: end;
}

.destination-field {
  width: min(360px, 100%);
  justify-self: end;
}

.destination-grid {
  --matrix-height: clamp(720px, 62vh, 860px);
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.destination-summary {
  height: var(--matrix-height);
  min-height: 0;
  overflow: auto;
  padding: 30px;
}

.destination-summary-cover {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: -6px 0 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfaf6 0%, #f1f2f0 100%);
}

.destination-summary-cover .passport-cover-img {
  max-height: 226px;
}

.destination-summary h3 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4vw, 74px);
  font-weight: 400;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.destination-summary p {
  margin: 22px 0 0;
  color: var(--text);
  line-height: 1.72;
}

.destination-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.policy-list {
  height: var(--matrix-height);
  max-height: none;
  overflow: auto;
}

.site-footer {
  padding-top: 30px;
  padding-bottom: 52px;
  border-top: 1px solid rgba(10, 17, 25, 0.34);
}

.site-footer p {
  max-width: 960px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1320px) {
  .filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reset-button {
    width: 100%;
  }

  .passport-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .inline-profile-inner {
    grid-template-columns: minmax(200px, 0.45fr) minmax(260px, 0.7fr) minmax(300px, 0.85fr);
  }

  .inline-profile .quick-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .passport-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .inline-profile-inner {
    grid-template-columns: 1fr 1fr;
  }

  .profile-cover {
    min-height: 340px;
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 18px;
  }

  .top-nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .hero-grid,
  .section-head,
  .stat-grid,
  .current-grid,
  .filter-bar,
  .compare-output,
  .destination-grid {
    grid-template-columns: 1fr;
  }

  .passport-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .passport-grid.list-mode .passport-card,
  .compare-controls {
    grid-template-columns: 1fr;
  }

  .passport-grid.list-mode .passport-card-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .destination-field {
    justify-self: stretch;
  }

  .destination-grid {
    --matrix-height: auto;
  }

  .destination-summary,
  .policy-list {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 74px;
  }

  .site-header {
    padding: 0 14px;
  }

  .brand small,
  .header-action {
    display: none;
  }

  .topline {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  h2 {
    font-size: clamp(36px, 12vw, 58px);
  }

  .stat-grid {
    width: calc(100% - 28px);
  }

  .passport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .passport-card-media {
    padding: 10px;
  }

  .compare-head h3,
  .destination-summary h3 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .passport-card-title {
    font-size: 20px;
    line-height: 1.05;
    -webkit-line-clamp: 3;
  }

  .donut-wrap,
  .inline-profile-inner,
  .compare-head,
  .bar-row,
  .destination-stats {
    grid-template-columns: 1fr;
  }

  .donut {
    margin: 0 auto;
  }

  .policy-list {
    max-height: none;
  }
}

html.wima-atlas-embed,
html.wima-atlas-embed body {
  background: #fbfaf6;
}

html.wima-atlas-embed .wima-official-header,
html.wima-atlas-embed .wima-official-footer,
html.wima-atlas-embed .hero,
html.wima-atlas-embed .stat-grid {
  display: none;
}

html.wima-atlas-embed main {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

html.wima-atlas-embed #directory,
html.wima-atlas-embed #rankings,
html.wima-atlas-embed #compare,
html.wima-atlas-embed #destinations {
  scroll-margin-top: 0;
}

html.wima-atlas-embed .directory,
html.wima-atlas-embed .rankings,
html.wima-atlas-embed .compare-section,
html.wima-atlas-embed .destinations {
  width: 100%;
  max-width: none;
  padding: 22px 22px 32px;
}

html.wima-atlas-embed .directory {
  border-top: 0;
}

html.wima-atlas-embed .section-head {
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 18px;
}

html.wima-atlas-embed .section-head p {
  display: none;
}

html.wima-atlas-embed h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

html.wima-atlas-embed .current-grid,
html.wima-atlas-embed .view-toggle {
  display: none;
}

html.wima-atlas-embed .filter-bar {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.48fr) minmax(190px, 0.58fr);
  gap: 8px;
  margin-bottom: 18px;
}

html.wima-atlas-embed .score-field {
  grid-column: span 2;
}

html.wima-atlas-embed .reset-button {
  width: 100%;
}

html.wima-atlas-embed input,
html.wima-atlas-embed select,
html.wima-atlas-embed .reset-button {
  min-height: 42px;
}

html.wima-atlas-embed .passport-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

html.wima-atlas-embed .passport-card-media {
  padding: 8px;
}

html.wima-atlas-embed .passport-card-body {
  min-height: 96px;
  padding: 9px;
}

html.wima-atlas-embed .passport-card-title {
  font-size: 15px;
  -webkit-line-clamp: 2;
}

html.wima-atlas-embed .inline-profile-inner {
  grid-template-columns: minmax(180px, 0.45fr) minmax(220px, 0.75fr);
}

html.wima-atlas-embed .inline-profile .mobility-card,
html.wima-atlas-embed .inline-profile .quick-list {
  grid-column: 1 / -1;
}

html.wima-atlas-embed .profile-cover {
  min-height: 280px;
}

html.wima-atlas-embed .ranking-table {
  min-width: 680px;
}

html.wima-atlas-embed .ranking-table th,
html.wima-atlas-embed .ranking-table td {
  padding: 14px 16px;
}

html.wima-atlas-embed .compare-controls {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

html.wima-atlas-embed .compare-output {
  gap: 12px;
}

html.wima-atlas-embed .compare-card {
  padding: 18px;
}

html.wima-atlas-embed .compare-head {
  grid-template-columns: 96px 1fr;
  gap: 16px;
}

html.wima-atlas-embed .compare-head .passport-cover {
  width: 96px;
}

html.wima-atlas-embed .compare-head .passport-image-frame {
  min-height: 142px;
}

html.wima-atlas-embed .compare-head h3 {
  font-size: clamp(28px, 2.4vw, 42px);
}

html.wima-atlas-embed .destination-grid {
  --matrix-height: clamp(520px, 52vh, 660px);
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
}

html.wima-atlas-embed .destination-summary {
  padding: 20px;
}

html.wima-atlas-embed .destination-summary-cover {
  min-height: 210px;
}

html.wima-atlas-embed .destination-summary-cover .passport-cover-img {
  max-height: 184px;
}

@media (max-width: 1320px) {
  html.wima-atlas-embed .filter-bar {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.62fr);
  }

  html.wima-atlas-embed .score-field,
  html.wima-atlas-embed .reset-button {
    grid-column: 1 / -1;
  }

  html.wima-atlas-embed .passport-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html.wima-atlas-embed .compare-output,
  html.wima-atlas-embed .destination-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html.wima-atlas-embed .directory,
  html.wima-atlas-embed .rankings,
  html.wima-atlas-embed .compare-section,
  html.wima-atlas-embed .destinations {
    padding: 16px 14px;
  }

  html.wima-atlas-embed .filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  html.wima-atlas-embed .search-field,
  html.wima-atlas-embed .score-field,
  html.wima-atlas-embed .reset-button {
    grid-column: 1 / -1;
  }

  html.wima-atlas-embed .inline-profile-inner {
    grid-template-columns: 1fr;
  }

  html.wima-atlas-embed .passport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.wima-atlas-embed .compare-controls,
  html.wima-atlas-embed .compare-head {
    grid-template-columns: 1fr;
  }
}
