* {
box-sizing: border-box;
}
@font-face {
font-family: 'Inter';
src: url('fonts/inter-400.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
src: url('fonts/inter-400-ext.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'Inter';
src: url('fonts/inter-600.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
src: url('fonts/inter-600-ext.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'Inter';
src: url('fonts/inter-700.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
--best: #00a878;
--good: #93d772;
--ok: #f5e169;
--risky: #f09d4d;
--danger: #d84334;
--unknown: #45484d;
--bg: #131417;
--surface: #1b1d20;
--ink: #e8eaed;
--muted: #989ea6;
--line: #2a2d31;
--line-strong: #3b3f45;
--soft-ink: #c6cad0;
--accent: #2fb388;
--on-accent: #0d130c;
}
body {
margin: 0;
padding: 0;
background-color: var(--bg);
color: var(--ink);
font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
body::before {
content: "";
display: block;
height: 4px;
background: linear-gradient(90deg, var(--danger), var(--risky), var(--ok), var(--good), var(--best));
}
a {
color: var(--accent);
transition: color 0.15s ease, background-color 0.15s ease;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
::selection {
background: #2b5c48;
}
p {
line-height: inherit;
}
.banner {
padding: 40px 20px 0;
border-bottom: 1px solid var(--line);
text-align: center;
}
.banner h1 {
margin: 0;
color: var(--ink);
font-size: 24px;
font-weight: 600;
line-height: 1.3;
letter-spacing: 0.24em;
text-indent: 0.24em;
text-transform: uppercase;
}
.banner h1 a {
color: inherit;
text-decoration: none;
}
.banner .year {
display: inline-block;
vertical-align: 4px;
margin-left: 12px;
padding: 2px 9px;
border: 1px solid var(--line-strong);
border-radius: 999px;
color: var(--muted);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.08em;
text-indent: 0;
}
.banner .tagline {
margin: 8px 0 0;
color: var(--muted);
font-size: 14px;
}
.banner nav {
padding: 14px 0 0;
}
.banner nav a {
display: inline-block;
padding: 10px 16px 12px;
color: var(--muted);
font-size: 15px;
text-decoration: none;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
}
.banner nav a:hover {
color: var(--ink);
}
.banner nav a.current {
color: var(--ink);
border-bottom-color: var(--accent);
}
.page {
max-width: 1024px;
margin: 0 auto;
padding: 40px 20px 20px;
}
.intro {
margin: 0 auto 36px;
max-width: 640px;
color: var(--muted);
font-size: 17px;
line-height: 1.6;
text-align: center;
}
.list-wrap {
overflow-x: visible;
margin: 0 0 8px;
}
.notes {
margin: 0 auto 25px;
font-size: 15px;
line-height: 1.7;
text-align: center;
}
.notes p {
margin: 0;
}
.verdict,
.legend {
margin: 0 auto 32px;
max-width: 640px;
text-align: center;
}
.legend {
max-width: 1024px;
margin-bottom: 18px;
}
.chip {
display: inline-block;
margin: 0 3px 8px;
padding: 5px 13px;
border-radius: 6px;
color: #10130f;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
}
.chip.best { background-color: var(--best); }
.chip.good { background-color: var(--good); }
.chip.ok { background-color: var(--ok); }
.chip.risky { background-color: var(--risky); }
.chip.danger { background-color: var(--danger); }
.chip.unknown {
background-color: var(--unknown);
color: #c9ccd0;
}
.filter-band,
.metric-toggle {
position: absolute;
width: 1px;
height: 1px;
margin: 0;
opacity: 0;
pointer-events: none;
}
label.chip {
cursor: pointer;
user-select: none;
transition: background-color 0.15s ease, border-color 0.15s ease,
color 0.15s ease, opacity 0.15s ease;
}
.legend .chip {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 4px 12px;
background-color: var(--surface);
border: 1px solid var(--line);
border-radius: 999px;
color: var(--ink);
}
.legend .chip::before {
content: "";
width: 9px;
height: 9px;
border-radius: 50%;
background-color: var(--accent);
}
.legend .chip.best::before { background-color: var(--best); }
.legend .chip.good::before { background-color: var(--good); }
.legend .chip.ok::before { background-color: var(--ok); }
.legend .chip.risky::before { background-color: var(--risky); }
.legend .chip.danger::before { background-color: var(--danger); }
.legend .chip:hover {
border-color: var(--line-strong);
}
.legend .count {
color: var(--muted);
font-weight: 400;
font-variant-numeric: tabular-nums;
}
#b-best:not(:checked) ~ .legend [for="b-best"],
#b-good:not(:checked) ~ .legend [for="b-good"],
#b-ok:not(:checked) ~ .legend [for="b-ok"],
#b-risky:not(:checked) ~ .legend [for="b-risky"],
#b-danger:not(:checked) ~ .legend [for="b-danger"] {
opacity: 0.4;
}
#b-best:checked ~ .legend [for="b-best"],
#b-good:checked ~ .legend [for="b-good"],
#b-ok:checked ~ .legend [for="b-ok"],
#b-risky:checked ~ .legend [for="b-risky"],
#b-danger:checked ~ .legend [for="b-danger"] {
border-color: var(--accent);
box-shadow: inset 0 0 0 1px var(--accent);
}
#b-best:focus-visible ~ .legend [for="b-best"],
#b-good:focus-visible ~ .legend [for="b-good"],
#b-ok:focus-visible ~ .legend [for="b-ok"],
#b-risky:focus-visible ~ .legend [for="b-risky"],
#b-danger:focus-visible ~ .legend [for="b-danger"] {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
#b-best:not(:checked) ~ .list-wrap tbody tr.v-best,
#b-good:not(:checked) ~ .list-wrap tbody tr.v-good,
#b-ok:not(:checked) ~ .list-wrap tbody tr.v-ok,
#b-risky:not(:checked) ~ .list-wrap tbody tr.v-risky,
#b-danger:not(:checked) ~ .list-wrap tbody tr.v-danger {
display: none;
}
.list-wrap .continent {
display: none;
scroll-margin-top: 56px;
}
#b-best:checked ~ .list-wrap .continent.has-best,
#b-good:checked ~ .list-wrap .continent.has-good,
#b-ok:checked ~ .list-wrap .continent.has-ok,
#b-risky:checked ~ .list-wrap .continent.has-risky,
#b-danger:checked ~ .list-wrap .continent.has-danger,
.list-wrap .continent.has-unknown {
display: block;
}
.continent-head {
margin: 36px 0 8px;
font-size: 19px;
text-align: center;
}
.list-wrap .continent:first-of-type .continent-head {
margin-top: 14px;
}
.scores {
border-collapse: separate;
border-spacing: 0;
width: 100%;
margin: 0 auto;
font-variant-numeric: tabular-nums;
table-layout: fixed;
}
.scores th.micon svg {
width: 17px;
height: 17px;
vertical-align: middle;
opacity: .8;
}
.scores th.micon {
position: relative;
cursor: help;
outline: none;
}
.scores th.micon::after {
content: attr(data-name);
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
padding: 3px 8px;
border: 1px solid var(--line-strong);
border-radius: 6px;
background: var(--surface);
color: var(--ink);
font-size: 12px;
font-weight: 500;
white-space: nowrap;
z-index: 30;
pointer-events: none;
opacity: 0;
transition: opacity .1s;
}
.scores th.micon:hover::after,
.scores th.micon:focus::after {
opacity: 1;
}
.scores .cg-label {
width: 30%;
}
.scores th:first-child {
width: 30%;
}
.scores-head {
position: sticky;
top: 0;
z-index: 6;
background: var(--bg);
margin-bottom: 4px;
}
.scores th,
.scores td {
padding: 11px 10px;
font-size: 14px;
text-align: center;
vertical-align: middle;
}
.scores th {
border-bottom: 1px solid var(--line);
}
.scores tbody tr:nth-child(even) td {
background-color: color-mix(in srgb, var(--line) 45%, transparent);
}
.scores td.score {
padding: 5px 4px;
}
.scores thead th {
background-color: var(--bg);
border-bottom: 1px solid var(--line-strong);
color: var(--muted);
font-size: 11.5px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.col-toggle {
display: inline-block;
padding: 4px 12px;
font-family: inherit;
font-size: 13px;
font-weight: 600;
text-transform: none;
letter-spacing: normal;
border: 1px solid var(--accent);
border-radius: 999px;
background-color: var(--surface);
box-shadow: inset 0 0 0 1px var(--accent);
color: var(--ink);
text-decoration: none;
cursor: pointer;
transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.col-toggle.off {
border-color: var(--line);
box-shadow: none;
color: var(--muted);
text-decoration: none;
}
.col-toggle.off:hover {
border-color: var(--line-strong);
color: var(--ink);
}
.toolbar,
.mobile-drawer,
.drawer-backdrop,
.deskrail,
.leftrail {
display: none;
}
.scores thead.plainhead {
display: none;
}
.search-hide {
display: none !important;
}
.list-empty {
margin: 24px auto;
text-align: center;
color: var(--muted);
font-size: 15px;
}
.scores td:first-child,
.scores th:first-child {
position: sticky;
left: 0;
z-index: 2;
background-color: var(--bg);
text-align: left;
}
.scores thead th:first-child {
z-index: 4;
}
.scores .name-row {
display: flex;
align-items: baseline;
gap: 0.35em;
}
.scores .flag {
flex: 0 0 auto;
}
.scores .name {
flex: 1 1 auto;
min-width: 0;
}
.country-link {
color: var(--ink);
text-decoration-color: #4b4f55;
text-underline-offset: 3px;
transition: text-decoration-color 0.15s ease;
}
.country-link .name::after {
content: "\00a0›";
color: var(--muted);
transition: color 0.15s ease;
}
.scores tbody tr:hover .country-link {
text-decoration-color: var(--accent);
}
.scores tbody tr:hover .country-link .name::after {
color: var(--accent);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.pill {
display: inline-block;
min-width: 52px;
padding: 4px 8px;
border-radius: 6px;
color: #10130f;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
}
.pill.swatch {
position: relative;
display: block;
width: 100%;
min-width: 0;
height: 26px;
padding: 0;
border-radius: 6px;
}
.pill.swatch .rank {
display: block;
height: 100%;
line-height: 26px;
text-align: center;
font-size: 12px;
font-weight: 600;
}
.pill.swatch .rank .crown {
width: 12px;
height: 12px;
margin-left: 3px;
vertical-align: -2px;
}
.pill.swatch .rank sup {
font-size: 0.65em;
line-height: 0;
vertical-align: super;
}
.pill.best { background-color: var(--best); }
.pill.good { background-color: var(--good); }
.pill.ok { background-color: var(--ok); }
.pill.risky { background-color: var(--risky); }
.pill.danger { background-color: var(--danger); }
.pill.unknown { background-color: var(--unknown); }
.pill.off {
background-color: var(--unknown);
color: #a6aab0;
}
.pill.swatch.off .rank { display: none; }
.pill.swatch.off { pointer-events: none; }
a.pill.swatch {
text-decoration: none;
transition: box-shadow 0.15s ease, filter 0.15s ease;
}
a.pill.swatch:hover {
box-shadow: 0 0 0 1px var(--bg), 0 0 0 3px var(--line-strong);
filter: brightness(1.1);
}
.country-title {
margin: 0 0 24px;
color: var(--ink);
font-size: 30px;
font-weight: 700;
text-align: center;
}
.country-blurb {
max-width: 640px;
margin: 0 auto 40px;
font-size: 16.5px;
line-height: 1.65;
text-align: center;
}
.country-blurb p {
margin: 0;
}
.metric {
position: relative;
overflow: hidden;
max-width: 680px;
margin: 0 auto 22px;
scroll-margin-top: 16px;
padding: 30px 28px 20px;
background-color: var(--surface);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.metric::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
}
.metric.best::before { background-color: var(--best); }
.metric.good::before { background-color: var(--good); }
.metric.ok::before { background-color: var(--ok); }
.metric.risky::before { background-color: var(--risky); }
.metric.danger::before { background-color: var(--danger); }
.metric.unknown::before { background-color: var(--unknown); }
.metric h2 .gcrown {
display: inline-flex;
align-items: center;
margin-left: 7px;
vertical-align: -2px;
color: #f2c14e;
}
.metric h2 .gcrown svg {
width: 15px;
height: 15px;
}
.metric h2 {
margin: 0 0 4px;
color: var(--ink);
font-size: 15px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
text-align: center;
}
.metric-desc {
margin: 0 0 22px;
color: var(--muted);
font-size: 13.5px;
text-align: center;
}
.scale {
display: flex;
align-items: center;
gap: 12px;
margin: 0 0 8px;
}
.scale-min,
.scale-max {
color: var(--muted);
font-size: 13px;
white-space: nowrap;
text-align: center;
}
.scale-min small,
.scale-max small {
display: block;
color: var(--muted);
font-size: 11px;
}
.scale-line {
position: relative;
flex: 1;
height: 6px;
background: linear-gradient(90deg, var(--danger), var(--risky), var(--ok), var(--good), var(--best));
border-radius: 3px;
}
.scale-dot {
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
width: 16px;
height: 16px;
border: 2px solid var(--ink);
border-radius: 50%;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}
.scale-dot.best { background-color: var(--best); }
.scale-dot.good { background-color: var(--good); }
.scale-dot.ok { background-color: var(--ok); }
.scale-dot.risky { background-color: var(--risky); }
.scale-dot.danger { background-color: var(--danger); }
.scale-dot.unknown { background-color: var(--unknown); }
.scale-value {
margin: 0 0 4px;
font-size: 15px;
font-variant-numeric: tabular-nums;
text-align: center;
}
.scale-rank {
margin: 0 0 16px;
color: var(--muted);
font-size: 14px;
text-align: center;
}
.metric .notes {
font-size: 15px;
color: var(--soft-ink);
}
.metric.about::before {
content: none;
}
.metric-strip {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
}
.metric.about h2 {
margin: 4px 0 10px;
font-size: 20px;
letter-spacing: 0.02em;
}
.metric.about .metric-list {
max-width: 62ch;
margin: 0 auto 16px;
padding-left: 20px;
color: var(--muted);
font-size: 13.5px;
line-height: 1.55;
text-align: left;
}
.metric.about .metric-list li { margin: 0 0 8px; }
.metric.about .metric-list strong { color: var(--ink); font-weight: 600; }
.metric.about .metric-list .src { display: block; font-size: 12px; opacity: 0.8; }
.metric.about .metric-desc {
margin-bottom: 16px;
}
.metric.about h2 svg {
width: 22px;
height: 22px;
margin-right: 9px;
vertical-align: -4.5px;
color: var(--muted);
}
.threshold-table {
width: 100%;
margin: 0 0 14px;
border-collapse: collapse;
}
.threshold-table tr:first-child td {
border-top: 1px solid var(--line);
}
.threshold-table td {
padding: 9px 0;
border-bottom: 1px solid var(--line);
color: var(--soft-ink);
font-size: 14.5px;
line-height: 1.55;
text-align: left;
vertical-align: top;
}
.threshold-table tr:last-child td {
border-bottom: none;
}
.threshold-table .t-pill {
width: 118px;
padding-right: 14px;
white-space: nowrap;
}
.threshold-table .t-pill .pill {
display: inline-block;
width: 84px;
padding-left: 0;
padding-right: 0;
text-align: center;
}
.contact-cta {
margin: 8px 0 4px;
text-align: center;
font-size: 15px;
font-weight: 600;
}
.contact-cta a {
display: inline-block;
padding: 8px 16px;
border-radius: 7px;
background: var(--accent);
color: var(--on-accent);
text-decoration: none;
}
.contact-cta a:hover {
background: var(--ink);
color: var(--bg);
}
.metric-source {
margin: 16px 0 0;
padding-top: 14px;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 12.5px;
text-align: center;
}
.timestamp {
margin: 12px 0 0;
color: var(--muted);
font-size: 12px;
text-align: center;
}
.country-nav {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 15px;
max-width: 680px;
margin: 36px auto 10px;
font-size: 15px;
}
.map-frame {
position: relative;
margin: 0 0 14px;
background-color: var(--surface);
border: 1px solid var(--line);
border-radius: 12px;
overflow: hidden;
}
.map-full {
display: none;
position: absolute;
top: 10px;
right: 10px;
z-index: 6;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
padding: 0;
border: 1px solid var(--line-strong);
border-radius: 8px;
background-color: color-mix(in srgb, var(--bg) 82%, transparent);
color: var(--ink);
font-family: inherit;
font-size: 16px;
line-height: 1;
cursor: pointer;
user-select: none;
-webkit-backdrop-filter: blur(2px);
backdrop-filter: blur(2px);
}
.map-frame.pz .map-full {
display: flex;
}
.map-full:hover {
border-color: var(--accent);
color: var(--accent);
}
.map-scroll {
overflow: hidden;
aspect-ratio: 2000 / 993.7;
max-height: 74vh;
cursor: grab;
user-select: none;
-webkit-user-select: none;
}
.map-scroll:active {
cursor: grabbing;
}
.map-scroll .worldmap {
display: block;
width: 100%;
height: 100%;
}
.map-cols {
display: none;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
margin: 18px 0 0;
}
.map-frame.pz ~ .map-cols {
display: flex;
}
.map-cols .col-toggle {
cursor: pointer;
user-select: none;
}
#c-homicide:not(:checked) ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-homicide"],
#c-roads:not(:checked) ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-roads"],
#c-peace:not(:checked) ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-peace"],
#c-freedom:not(:checked) ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-freedom"],
#c-lgbt:not(:checked) ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-lgbt"],
#c-women:not(:checked) ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-women"] {
border-color: var(--line);
box-shadow: none;
color: var(--muted);
}
#c-homicide:focus-visible ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-homicide"],
#c-roads:focus-visible ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-roads"],
#c-peace:focus-visible ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-peace"],
#c-freedom:focus-visible ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-freedom"],
#c-lgbt:focus-visible ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-lgbt"],
#c-women:focus-visible ~ :is(.map-cols, .mobile-drawer, .deskrail) [for="c-women"] {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.map-stage:fullscreen,
.map-stage.fs {
display: flex;
flex-direction: column;
justify-content: center;
gap: 12px;
padding: 16px;
background-color: var(--bg);
}
.map-stage.fs {
position: fixed;
inset: 0;
z-index: 50;
overflow: auto;
}
.map-stage:fullscreen .legend,
.map-stage.fs .legend,
.map-stage:fullscreen .map-cols,
.map-stage.fs .map-cols {
flex: 0 0 auto;
max-width: none;
margin: 0;
}
.map-stage:fullscreen .map-frame,
.map-stage.fs .map-frame {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 0;
margin: 0;
border: none;
border-radius: 0;
background-color: var(--bg);
}
.map-stage:fullscreen .map-scroll,
.map-stage.fs .map-scroll {
flex: 1 1 auto;
aspect-ratio: auto;
max-height: none;
min-height: 0;
}
.map-stage:fullscreen .map-full,
.map-stage.fs .map-full {
position: fixed;
top: 16px;
right: 16px;
z-index: 60;
}
.worldmap path,
.worldmap .dot {
stroke: var(--bg);
stroke-width: var(--sw, 0.5px);
}
.worldmap .terr { fill: #26282c; }
.worldmap .unknown { fill: var(--unknown); }
.worldmap .best { fill: var(--best); }
.worldmap .good { fill: var(--good); }
.worldmap .ok { fill: var(--ok); }
.worldmap .risky { fill: var(--risky); }
.worldmap .danger { fill: var(--danger); }
.worldmap .cty.found path,
.worldmap .cty.found .dot {
stroke: #ffffff;
stroke-width: calc(var(--sw, 0.5px) * 4);
animation: found-pulse 1.4s ease-in-out;
}
@keyframes found-pulse {
0%, 100% { stroke-opacity: 1; }
50%      { stroke-opacity: 0.25; }
}
.worldmap .dot {
r: var(--dotr, 4.5px);
opacity: var(--dotop, 1);
}
a.cty {
cursor: pointer;
}
a.cty:hover path,
a.cty:hover .dot,
a.cty:focus-visible path,
a.cty:focus-visible .dot {
stroke: var(--ink);
stroke-width: calc(var(--sw, 0.5px) * 2);
filter: brightness(1.12);
}
a.cty:focus-visible {
outline: none;
}
#m-best:not(:checked) ~ .map-frame .worldmap .cty.best,
#m-good:not(:checked) ~ .map-frame .worldmap .cty.good,
#m-ok:not(:checked) ~ .map-frame .worldmap .cty.ok,
#m-risky:not(:checked) ~ .map-frame .worldmap .cty.risky,
#m-danger:not(:checked) ~ .map-frame .worldmap .cty.danger {
opacity: 0.15;
}
#m-best:checked ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-best"],
#m-good:checked ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-good"],
#m-ok:checked ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-ok"],
#m-risky:checked ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-risky"],
#m-danger:checked ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-danger"] {
border-color: var(--accent);
box-shadow: inset 0 0 0 1px var(--accent);
}
#m-best:not(:checked) ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-best"],
#m-good:not(:checked) ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-good"],
#m-ok:not(:checked) ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-ok"],
#m-risky:not(:checked) ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-risky"],
#m-danger:not(:checked) ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-danger"] {
opacity: 0.4;
}
#m-best:focus-visible ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-best"],
#m-good:focus-visible ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-good"],
#m-ok:focus-visible ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-ok"],
#m-risky:focus-visible ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-risky"],
#m-danger:focus-visible ~ :is(.legend, .mobile-drawer, .deskrail) [for="m-danger"] {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.info-pop {
width: 224px;
padding: 14px 16px 12px;
background-color: var(--surface);
border: 1px solid var(--line-strong);
border-radius: 10px;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.info-pop[hidden] {
display: none;
}
.map-pop {
position: absolute;
bottom: 10px;
left: 10px;
z-index: 5;
}
.info-pop.map-pop {
width: max-content;
min-width: 168px;
max-width: min(236px, calc(100% - 20px));
}
.list-pop {
position: fixed;
z-index: 50;
}
.pop-close {
position: absolute;
top: 5px;
right: 5px;
width: 26px;
height: 26px;
padding: 0;
border: none;
border-radius: 50%;
background: none;
color: var(--muted);
font-family: inherit;
font-size: 13px;
line-height: 1;
cursor: pointer;
}
.pop-close:hover {
color: var(--ink);
background-color: var(--line);
}
.pop-scores .pill svg.crown {
width: 11px;
height: 11px;
margin-left: 3px;
vertical-align: -1px;
}
.pop-head {
display: flex;
align-items: baseline;
gap: 7px;
margin: 0 14px 1px 0;
font-size: 15.5px;
font-weight: 600;
}
.pop-cont {
margin: 0 0 10px;
color: var(--muted);
font-size: 12.5px;
}
.pop-scores {
width: auto;
border-collapse: collapse;
}
.pop-scores th {
padding: 3px 18px 3px 0;
color: var(--muted);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.06em;
text-align: left;
text-transform: uppercase;
}
.pop-scores td {
padding: 3px 0;
text-align: right;
}
.pop-scores .pill {
min-width: 64px;
padding: 2px 8px;
font-size: 12.5px;
text-align: center;
}
.pop-rank {
margin: 0;
font-size: 13.5px;
line-height: 1.55;
}
.pop-rank .pill {
min-width: 52px;
margin-right: 6px;
padding: 2px 8px;
font-size: 12.5px;
text-align: center;
}
.pop-link {
margin: 10px 0 0;
font-size: 13.5px;
text-align: right;
}
@media (max-width: 899px) {
.info-pop {
top: auto;
right: auto;
bottom: 10px;
left: 10px;
width: 224px;
max-width: calc(100% - 20px);
}
}
.footer {
margin-top: 28px;
padding: 26px 20px 36px;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 14px;
text-align: center;
}
.footer nav {
margin-bottom: 10px;
}
.footer nav a {
margin: 0 10px;
color: var(--muted);
text-decoration: none;
}
.footer nav a:hover {
color: var(--ink);
}
.footer p {
margin: 4px 0;
}
.footer a {
color: var(--muted);
}
.footer a:hover {
color: var(--ink);
}
.tracker {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
@media (max-width: 899px) {
.banner {
padding: 30px 12px 0;
}
.banner h1 {
font-size: 17px;
letter-spacing: 0.18em;
text-indent: 0.18em;
}
.banner .year {
margin-left: 9px;
vertical-align: 2px;
}
.banner .tagline {
font-size: 13px;
}
.banner nav a {
padding: 10px 10px 12px;
font-size: 14px;
}
.page {
position: relative;
padding: 28px 14px 10px;
}
.scores th,
.scores td {
padding: 9px 2px;
font-size: 13px;
}
.scores thead th {
font-size: 9px;
letter-spacing: 0.03em;
}
.scores-head .col-toggle,
.scores-head .col-toggle.off {
display: inline;
padding: 0;
border: 0;
box-shadow: none;
background: none;
color: var(--muted);
font: inherit;
font-weight: 600;
text-transform: uppercase;
pointer-events: none;
}
.pill.swatch {
height: 20px;
}
.pill.swatch .rank {
line-height: 20px;
font-size: 11px;
}
.scores td.score {
padding: 4px 2px;
}
.country-title {
font-size: 24px;
}
.metric {
padding: 26px 18px 16px;
}
.legend {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 5px;
}
.legend .chip {
flex: 0 0 auto;
gap: 5px;
margin: 0;
padding: 4px 9px;
}
.legend .chip-word {
display: none;
}
}
@media (max-width: 899px) {
body:not(.mappage) .legend {
display: none;
}
.toolbar {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 16px;
}
.searchbox {
flex: 1 1 auto;
display: flex;
align-items: center;
gap: 7px;
min-width: 0;
padding: 8px 12px;
background-color: var(--surface);
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
}
.searchbox svg {
flex: 0 0 auto;
}
.list-search,
.map-search {
flex: 1 1 auto;
min-width: 0;
background: none;
border: 0;
outline: none;
color: var(--ink);
font: inherit;
font-size: 13px;
padding: 0;
}
.list-search::placeholder,
.map-search::placeholder {
color: var(--muted);
}
.btn-filter {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 14px;
background-color: var(--surface);
border: 1px solid var(--line-strong);
border-radius: 999px;
color: var(--ink);
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.drawer-backdrop {
display: block;
position: fixed;
inset: 0;
z-index: 40;
background: transparent;
pointer-events: none;
}
.mobile-drawer {
display: block;
position: absolute;
top: 40px;
right: 0;
z-index: 41;
width: max-content;
max-width: min(80vw, 260px);
max-height: min(82vh, calc(100dvh - 130px));
background-color: var(--surface);
border: 1px solid var(--line-strong);
border-radius: 14px;
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
transform-origin: top right;
transform: scale(0.9);
opacity: 0;
pointer-events: none;
transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
opacity 0.16s ease;
}
body:not(.mappage) .mobile-drawer {
top: 66px;
}
#drawer:checked ~ .drawer-backdrop {
pointer-events: auto;
}
#drawer:checked ~ .mobile-drawer {
transform: scale(1);
opacity: 1;
pointer-events: auto;
}
.drawer-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px;
border-bottom: 1px solid var(--line);
}
.drawer-head strong {
font-size: 15px;
}
.drawer-x {
cursor: pointer;
color: var(--muted);
font-size: 17px;
line-height: 1;
padding: 2px 6px;
user-select: none;
}
.mobile-drawer .fgroup {
padding: 14px 16px;
border-bottom: 1px solid var(--line);
}
.mobile-drawer .fgroup:last-child {
border-bottom: 0;
}
.mobile-drawer h4 {
margin: 0 0 11px;
font-size: 10px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
font-weight: 600;
}
.drawer-rank,
.drawer-metrics {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 9px;
}
.drawer-rank .chip {
display: inline-flex;
align-items: center;
gap: 7px;
margin: 0;
box-sizing: border-box;
min-width: 128px;
padding: 4px 12px;
background-color: var(--surface);
border: 1px solid var(--line);
border-radius: 999px;
color: var(--ink);
font-size: 12.5px;
font-weight: 600;
cursor: pointer;
user-select: none;
}
.drawer-rank .chip::before {
content: "";
width: 9px;
height: 9px;
border-radius: 50%;
background-color: var(--accent);
}
.drawer-rank .chip.best::before { background-color: var(--best); }
.drawer-rank .chip.good::before { background-color: var(--good); }
.drawer-rank .chip.ok::before { background-color: var(--ok); }
.drawer-rank .chip.risky::before { background-color: var(--risky); }
.drawer-rank .chip.danger::before { background-color: var(--danger); }
.drawer-rank .count {
margin-left: auto;
padding-left: 10px;
color: var(--muted);
font-weight: 400;
font-variant-numeric: tabular-nums;
}
#b-best:checked ~ .mobile-drawer [for="b-best"],
#b-good:checked ~ .mobile-drawer [for="b-good"],
#b-ok:checked ~ .mobile-drawer [for="b-ok"],
#b-risky:checked ~ .mobile-drawer [for="b-risky"],
#b-danger:checked ~ .mobile-drawer [for="b-danger"] {
border-color: var(--accent);
box-shadow: inset 0 0 0 1px var(--accent);
}
#b-best:not(:checked) ~ .mobile-drawer [for="b-best"],
#b-good:not(:checked) ~ .mobile-drawer [for="b-good"],
#b-ok:not(:checked) ~ .mobile-drawer [for="b-ok"],
#b-risky:not(:checked) ~ .mobile-drawer [for="b-risky"],
#b-danger:not(:checked) ~ .mobile-drawer [for="b-danger"] {
opacity: 0.4;
}
.drawer-metrics .col-toggle,
.drawer-metrics .col-toggle.off {
display: inline-flex;
justify-content: center;
box-sizing: border-box;
min-width: 128px;
padding: 6px 14px;
font: inherit;
font-size: 12.5px;
font-weight: 600;
text-transform: none;
pointer-events: auto;
}
.drawer-metrics .col-toggle {
border: 1px solid var(--accent);
box-shadow: inset 0 0 0 1px var(--accent);
background-color: var(--surface);
color: var(--ink);
}
.drawer-metrics .col-toggle.off {
border: 1px solid var(--line);
box-shadow: none;
color: var(--muted);
}
}
body.mappage {
display: flex;
flex-direction: column;
height: 100vh;
height: 100dvh;
overflow: hidden;
}
html:has(body.mappage) {
overflow: hidden;
}
@media (max-height: 560px) {
body.mappage .banner {
padding-top: 12px;
}
body.mappage .banner .tagline {
display: none;
}
body.mappage .footer {
padding-top: 8px;
padding-bottom: 8px;
}
}
body.mappage .banner,
body.mappage .footer {
flex: 0 0 auto;
}
body.mappage .footer {
margin-top: 0;
padding-top: 14px;
padding-bottom: 14px;
}
body.mappage .page {
flex: 1 1 auto;
min-height: 0;
width: 100%;
display: flex;
flex-direction: column;
padding-top: 16px;
padding-bottom: 12px;
}
body.mappage .map-stage:not(:fullscreen):not(.fs) {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
}
body.mappage .map-frame {
flex: 1 1 auto;
min-height: 0;
margin-bottom: 0;
display: flex;
flex-direction: column;
}
body.mappage .map-scroll {
flex: 1 1 auto;
min-height: 0;
aspect-ratio: auto;
max-height: none;
}
@media (max-width: 899px) {
body.mappage .map-stage:not(.fs) {
position: relative;
}
body.mappage .map-stage .legend,
body.mappage .map-stage .map-cols {
display: none;
}
body.mappage .map-toolbar {
display: flex;
}
body.mappage .map-stage:is(:fullscreen, .fs) .map-toolbar {
margin: 0 46px 0 0;
}
body.mappage .map-stage:is(:fullscreen, .fs) .mobile-drawer {
top: 58px;
right: 16px;
}
}
@media (min-width: 900px) {
body.listpage .page {
max-width: 1240px;
display: grid;
grid-template-columns: 184px minmax(0, 1fr) 236px;
column-gap: 40px;
align-items: start;
}
body.listpage .list-wrap { grid-column: 2; grid-row: 1; }
body.listpage .list-empty { grid-column: 2; }
body.listpage .legend { display: none; }
.deskrail,
.leftrail {
flex-direction: column;
gap: 22px;
position: sticky;
top: 20px;
}
body.listpage .leftrail { display: flex; grid-column: 1; grid-row: 1; }
body.listpage .deskrail { display: flex; grid-column: 3; grid-row: 1; }
.deskrail .rail-search {
display: flex;
align-items: center;
gap: 8px;
padding: 9px 13px;
background-color: var(--surface);
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
}
.deskrail .rail-search svg { flex: 0 0 auto; }
.deskrail .list-search,
.deskrail .map-search {
flex: 1 1 auto;
min-width: 0;
background: none;
border: 0;
outline: none;
color: var(--ink);
font: inherit;
font-size: 13px;
padding: 0;
}
.deskrail .list-search::placeholder,
.deskrail .map-search::placeholder { color: var(--muted); }
.deskrail .rail-group,
.leftrail .rail-group { display: flex; flex-direction: column; gap: 10px; }
.deskrail h4,
.leftrail h4 {
margin: 0;
font-size: 10px;
letter-spacing: 0.13em;
text-transform: uppercase;
color: var(--muted);
font-weight: 700;
}
.deskrail .rail-rank { display: flex; flex-direction: column; gap: 8px; }
.deskrail .rail-rank .chip {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0;
padding: 6px 13px;
background-color: var(--surface);
border: 1px solid var(--line);
border-radius: 999px;
color: var(--ink);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.deskrail .rail-rank .chip::before {
content: "";
width: 9px; height: 9px; border-radius: 50%;
background-color: var(--accent);
}
.deskrail .rail-rank .chip.best::before { background-color: var(--best); }
.deskrail .rail-rank .chip.good::before { background-color: var(--good); }
.deskrail .rail-rank .chip.ok::before { background-color: var(--ok); }
.deskrail .rail-rank .chip.risky::before { background-color: var(--risky); }
.deskrail .rail-rank .chip.danger::before { background-color: var(--danger); }
.deskrail .rail-rank .count {
margin-left: auto;
color: var(--muted);
font-weight: 400;
font-variant-numeric: tabular-nums;
}
#b-best:checked ~ .deskrail [for="b-best"],
#b-good:checked ~ .deskrail [for="b-good"],
#b-ok:checked ~ .deskrail [for="b-ok"],
#b-risky:checked ~ .deskrail [for="b-risky"],
#b-danger:checked ~ .deskrail [for="b-danger"] {
border-color: var(--accent);
box-shadow: inset 0 0 0 1px var(--accent);
}
#b-best:not(:checked) ~ .deskrail [for="b-best"],
#b-good:not(:checked) ~ .deskrail [for="b-good"],
#b-ok:not(:checked) ~ .deskrail [for="b-ok"],
#b-risky:not(:checked) ~ .deskrail [for="b-risky"],
#b-danger:not(:checked) ~ .deskrail [for="b-danger"] {
opacity: 0.4;
}
.deskrail .rail-metrics { display: flex; flex-direction: column; gap: 8px; }
.deskrail .rail-metrics .col-toggle { width: 100%; text-align: center; }
}
@media (min-width: 900px) {
body.mappage .page { max-width: 1340px; }
body.mappage .map-stage:not(:fullscreen):not(.fs) {
display: grid;
grid-template-columns: minmax(0, 1fr) 236px;
grid-template-rows: minmax(0, 1fr);
column-gap: 40px;
align-items: stretch;
}
body.mappage .map-stage:not(:fullscreen):not(.fs) .legend,
body.mappage .map-stage:not(:fullscreen):not(.fs) .map-cols {
display: none;
}
body.mappage .map-stage:not(:fullscreen):not(.fs) .map-frame {
grid-column: 1;
grid-row: 1;
margin: 0;
align-self: stretch;
}
body.mappage .map-stage:not(:fullscreen):not(.fs) .deskrail {
display: flex;
grid-column: 2;
grid-row: 1;
align-self: start;
position: sticky;
top: 20px;
}
}
@media (min-width: 1120px) {
body.mappage .page { max-width: clamp(1340px, 92vw, 1600px); }
}
@media (min-width: 900px) {
.leftrail .jump-nav { display: flex; flex-direction: column; }
.leftrail .jump-nav a {
display: flex;
justify-content: space-between;
gap: 10px;
padding: 5px 0;
color: var(--muted);
font-size: 13px;
text-decoration: none;
border-bottom: 1px solid var(--line);
}
.leftrail .jump-nav a:last-child { border-bottom: 0; }
.leftrail .jump-nav a:hover { color: var(--ink); }
.leftrail .jump-nav .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.glance {
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px 13px;
border: 1px solid var(--line);
border-radius: 12px;
background-color: var(--surface);
}
.glance-top { display: flex; align-items: baseline; gap: 7px; }
.glance-big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.glance-k { font-size: 11px; color: var(--muted); }
.spread {
display: flex;
height: 7px;
border-radius: 4px;
overflow: hidden;
background-color: var(--line);
}
.spread i { height: 100%; transition: width 0.2s ease; }
.spread i[data-band="best"] { background-color: var(--best); }
.spread i[data-band="good"] { background-color: var(--good); }
.spread i[data-band="ok"] { background-color: var(--ok); }
.spread i[data-band="risky"] { background-color: var(--risky); }
.spread i[data-band="danger"] { background-color: var(--danger); }
}
.fs-search { display: none; }
@media (min-width: 900px) {
.map-stage:fullscreen .fs-search,
.map-stage.fs .fs-search {
display: flex;
align-items: center;
gap: 8px;
flex: 0 0 auto;
align-self: center;
width: min(340px, 90%);
padding: 9px 14px;
background-color: var(--surface);
border: 1px solid var(--line-strong);
border-radius: 999px;
color: var(--muted);
}
.map-stage:fullscreen .fs-search .map-search,
.map-stage.fs .fs-search .map-search {
flex: 1 1 auto;
min-width: 0;
background: none;
border: 0;
outline: none;
color: var(--ink);
font: inherit;
font-size: 14px;
padding: 0;
}
.map-stage:fullscreen .fs-search .map-search::placeholder,
.map-stage.fs .fs-search .map-search::placeholder { color: var(--muted); }
}