@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #182126;
  --text: #455158;
  --quiet: #55636b;
  --blue: #164ac7;
  --blue-dark: #10398e;
  --line: #dbe0e3;
  --mist: #f6f8f9;
  --gutter: clamp(1.25rem, 5.55vw, 5.5rem);
  --page-inset: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --masthead-height: 4.8rem;
  --header-offset: calc(var(--masthead-height) + env(safe-area-inset-top, 0px) + 1px);
}
* { box-sizing: border-box; }
html {
  scroll-padding-block-start: calc(var(--header-offset) + .85rem);
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.55 "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; min-width: 0; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a, summary, label { -webkit-tap-highlight-color: #164ac719; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[tabindex="-1"]:focus { outline-offset: -3px; }
button, summary, input { font: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
figure, fieldset, h1, h2, p, dl, dd { margin: 0; }
fieldset { min-width: 0; border: 0; padding: 0; }
.wrap { width: min(80rem, calc(100% - var(--page-inset) * 2)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0;
}
.skip-link:focus { position: fixed; z-index: 20; top: max(.7rem, env(safe-area-inset-top, 0px)); left: max(.75rem, env(safe-area-inset-left, 0px)); background: #fff; padding: .65rem 1rem; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 1.12em; height: 1.12em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.masthead {
  position: sticky; inset-block-start: 0; z-index: 5; flex: none;
  padding-block-start: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line); background: white;
}
.masthead-inner { min-height: var(--masthead-height); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.identity, .header-tools, .desktop-nav, .menu-pop summary { display: inline-flex; align-items: center; }
.identity { gap: .48rem; flex: none; width: fit-content; text-decoration: none; }
.mark { width: 2rem; height: 2rem; }
.wordmark { font-size: 1.8rem; font-weight: 750; line-height: 1; letter-spacing: -.065em; }
.identity-name { margin-left: .47rem; padding-left: .87rem; border-left: 1px solid #c9d0d4; color: #465158; font-size: .72rem; font-weight: 525; line-height: 1.19; }
.header-tools { gap: clamp(1.2rem, 2.8vw, 2.8rem); }
.desktop-nav { gap: clamp(1.15rem, 2.3vw, 2.45rem); }
.desktop-nav a, .menu-pop summary { min-height: 2.75rem; align-content: center; color: #37424a; font-size: .895rem; font-weight: 550; text-decoration: none; }
.desktop-nav a:hover, .menu-pop summary:hover, .popover a:hover { color: var(--blue); }
.menu-pop { position: relative; }
.menu-pop summary { gap: .42rem; justify-content: center; }
.language-menu { border-left: 1px solid var(--line); padding-left: clamp(.9rem, 2vw, 1.9rem); }
.language-menu .icon:last-child { width: .8rem; }
.menu-pop[open] summary .icon:last-child:not(:first-child) { transform: rotate(180deg); }
.lang-code, .mobile-menu { display: none; }
.popover {
  position: absolute; z-index: 4; top: calc(100% + .3rem); right: 0;
  min-width: 10rem; padding: .28rem; border: 1px solid #bdc7cc; border-radius: .24rem; background: #fff;
  max-height: calc(100vh - var(--header-offset) - 1rem);
  max-height: calc(100dvh - var(--header-offset) - env(safe-area-inset-bottom, 0px) - 1rem);
  overflow-y: auto; overscroll-behavior-y: contain;
}
.popover a { display: flex; justify-content: space-between; align-items: center; gap: .9rem; min-height: 2.7rem; padding: .5rem .74rem; font-size: .925rem; text-decoration: none; }
.popover a:hover, .popover a[aria-current] { background: #f2f5fa; }
.popover a[aria-current] { color: var(--blue); font-weight: 650; }
.popover .icon { width: 1rem; }

.hero-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2rem, 5.3vw, 5.8rem); align-items: center; padding-block: clamp(4rem, 7.2vw, 7.2rem) clamp(4rem, 6.5vw, 6.7rem); }
.edition { display: flex; align-items: center; flex-wrap: wrap; gap: .64rem; color: var(--quiet); font-size: .8rem; font-weight: 550; line-height: 1.5; }
.edition::before { content: ""; width: 1.55rem; height: 2px; background: var(--blue); }
.version { color: var(--blue); font-weight: 680; font-variant-numeric: tabular-nums; }
h1 { margin-top: 1.45rem; max-width: 13em; font-size: clamp(3.25rem, 5.28vw, 5.05rem); font-weight: 635; line-height: 1.015; letter-spacing: -.062em; text-wrap: balance; overflow-wrap: break-word; }
.intro { max-width: 34rem; margin-top: 1.5rem; color: var(--text); font-size: clamp(1.035rem, 1.25vw, 1.16rem); line-height: 1.56; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-top: 2rem; }
.button, .secondary, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .52rem; min-height: 2.95rem; font-weight: 610; font-size: .925rem; }
.primary { border-radius: .25rem; padding: .72rem 1.12rem; background: var(--blue); color: #fff; text-decoration: none; }
.primary:hover { background: var(--blue-dark); }
.secondary, .text-link { color: var(--ink); text-decoration: underline; text-decoration-color: #95a0a7; text-underline-offset: .28em; }
.secondary:hover, .text-link:hover { color: var(--blue); text-decoration-color: currentColor; }
.target-lang { align-self: center; font-size: .65em; letter-spacing: .02em; font-weight: 650; }

.atlas { width: 100%; min-width: 0; align-self: center; }
.atlas-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .9rem; margin-bottom: .3rem; }
.atlas-head h2 { color: var(--ink); font-size: .86rem; font-weight: 650; letter-spacing: -.012em; }
.map-key, .map-key span { display: inline-flex; flex-wrap: wrap; align-items: center; }
.map-key { gap: .3rem .9rem; color: var(--quiet); font-weight: 500; font-size: .73rem; }
.map-key span { gap: .38rem; }
.map-key i { width: .54rem; height: .54rem; border-radius: 1px; }
.key-live { background: var(--blue); }
.key-planned { background: #d2dce8; border: 1px solid #8498b1; }
.map-canvas { position: relative; isolation: isolate; }
.map-canvas picture, .map-canvas img { display: block; width: 100%; height: auto; }
.sea-label { position: absolute; top: 31.8%; left: 38%; color: #6a7780; font-size: clamp(.58rem, .85vw, .76rem); font-weight: 490; transform: translate(-50%, -50%); }
.map-point { position: absolute; display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; transform: translate(-50%, -50%); cursor: pointer; }
.point-LT { left: 63.07%; top: 43.43%; }
.point-LV { left: 66.65%; top: 30.33%; }
.point-EE { left: 67.16%; top: 14.54%; }
.point-PL { left: 47.02%; top: 71.13%; }
.marker-name { display: inline-flex; align-items: center; gap: .23rem; padding: .13rem .2rem; color: #263645; font-size: clamp(.64rem, 1.03vw, .85rem); font-weight: 630; line-height: 1.13; white-space: nowrap; }
.point-LT .marker-name { color: #fff; background: var(--blue); }
.map-point:hover .marker-name, .map-point input:checked + .marker-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.map-point input:focus-visible + .marker-name { outline: 2px solid var(--ink); outline-offset: 2px; background: white; color: var(--ink); }
.map-results { border-top: 1px solid var(--line); padding-top: .72rem; }
.market-result { display: none; flex-wrap: wrap; align-items: baseline; gap: .2rem .72rem; color: var(--quiet); font-size: .79rem; line-height: 1.4; }
.market-result strong { color: var(--ink); font-weight: 650; }
.result-LT { display: flex; }
.atlas:has(input:checked:not([value="LT"])) .result-LT { display: none; }
.atlas:has(#market-LV:checked) .result-LV, .atlas:has(#market-EE:checked) .result-EE, .atlas:has(#market-PL:checked) .result-PL { display: flex; }

.statistics { border-block: 1px solid var(--line); background: var(--mist); }
.stat-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr .82fr; padding-block: clamp(1.8rem, 3.1vw, 3rem); }
.stat { position: relative; display: grid; align-content: start; gap: .35rem; min-width: 0; padding: 0 clamp(1rem, 3.3vw, 3.3rem); border-left: 1px solid #cdd4d9; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat dt { grid-row: 2; font-size: .88rem; line-height: 1.3; color: var(--text); }
.stat dd:not(.snapshot) { grid-row: 1; font-size: clamp(2.5rem, 3.7vw, 3.6rem); line-height: 1; font-weight: 570; letter-spacing: -.055em; font-variant-numeric: lining-nums tabular-nums; }
.snapshot { margin-top: .12rem; font-size: .75rem; color: var(--quiet); line-height: 1.3; }
.snapshot a { text-decoration-color: #9ca7ae; }

.method-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7.5vw, 8.5rem); align-items: start; padding-block: clamp(4rem, 7.3vw, 7rem); }
.method-copy { max-width: 32.5rem; }
.method-copy h2, .error-page h1 { margin: 0; font-size: clamp(2.1rem, 3.4vw, 3.15rem); font-weight: 615; line-height: 1.07; letter-spacing: -.05em; text-wrap: balance; }
.method-copy p { margin-top: 1rem; color: var(--text); }
.method-copy p + p { margin-top: .65rem; }
.text-link { margin-top: .8rem; color: var(--blue); text-decoration-color: #839bcb; }
.weight-strip { display: flex; gap: 2px; height: .36rem; margin: .35rem 0 .8rem; }
.dim-continuity { background: #193866; }
.dim-financial { background: var(--blue); }
.dim-resilience { background: #819ccf; }
.dim-transparency { background: #c1cddd; }
.dimension { border-bottom: 1px solid var(--line); }
.dimension summary { display: flex; align-items: center; gap: .7rem; min-height: 3.65rem; font-size: 1rem; font-weight: 555; line-height: 1.28; }
.dimension summary:hover { color: var(--blue); }
.swatch { flex: none; width: .55rem; height: .55rem; border-radius: 1px; }
.dim-weight { margin-left: auto; flex: none; color: var(--quiet); font-size: .865rem; font-weight: 520; font-variant-numeric: tabular-nums; }
.dimension .icon { width: 1.03rem; margin-left: .55rem; }
.dimension[open] summary .icon { transform: rotate(45deg); }
.dimension p { padding: 0 1.6rem 1.05rem 1.25rem; color: var(--text); font-size: .94rem; }
footer { background: var(--mist); border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 7rem); padding-block: clamp(2.55rem, 4.5vw, 4.2rem); }
.footer-identity p { max-width: 23rem; margin-top: .85rem; color: var(--text); font-size: .9rem; }
.footer-links { display: grid; align-content: start; justify-items: start; gap: .2rem; }
.footer-links h2 { margin-bottom: .45rem; font-size: .85rem; font-weight: 675; }
.footer-links a { display: inline-flex; align-items: baseline; gap: .35rem; padding: .13rem 0; color: var(--text); font-size: .88rem; text-decoration: none; }
.footer-links a:hover, .colophon a:hover { color: var(--blue); text-decoration: underline; }
.colophon { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .45rem 1rem; padding-block: 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: .75rem; color: var(--quiet); }
.error-page { padding-block: 6rem; }
.error-page h1 { margin: 2rem 0 1rem; }
.error-page a { color: var(--blue); }

@media (max-width: 62rem) {
  .hero-layout { gap: 2rem; }
  h1 { font-size: clamp(2.85rem, 5.6vw, 3.65rem); }
  .hero-actions { gap: .55rem 1rem; }
  .method-layout { gap: 3rem; }
}
@media (max-width: 49rem) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .header-tools { gap: .6rem; }
  .language-menu { border: 0; padding: 0; }
  .mobile-menu summary { min-width: 2.75rem; }
  .mobile-menu summary .icon { width: 1.3rem; height: 1.3rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 2.7rem; padding-block: 3.2rem 2.7rem; }
  h1 { max-width: 14em; font-size: clamp(2.6rem, 8.25vw, 4.2rem); }
  .intro { max-width: 38rem; }
  .atlas { max-width: 37rem; }
  .marker-name { font-size: clamp(.69rem, 2.45vw, .91rem); }
  .sea-label { font-size: clamp(.61rem, 1.8vw, .78rem); }
  .method-layout { grid-template-columns: 1fr; gap: 2rem; }
  .method-copy { max-width: 38rem; }
  .stat { padding-inline: 1rem; }
  .footer-main { gap: 2rem; grid-template-columns: 1.15fr 1fr 1fr; }
  .footer-identity .identity-name { display: none; }
}
@media (max-width: 34rem) {
  :root { --masthead-height: 3.95rem; }
  .masthead-inner { gap: .5rem; }
  .identity { gap: .33rem; }
  .mark { width: 1.64rem; height: 1.64rem; }
  .wordmark { font-size: 1.5rem; }
  .identity-name { padding-left: .5rem; margin-left: .2rem; font-size: .61rem; }
  .lang-word { display: none; }
  .lang-code { display: inline; }
  .menu-pop summary { font-size: .79rem; gap: .24rem; }
  .language-menu summary { min-width: 2.75rem; }
  .header-tools { gap: .14rem; }
  .hero-layout { padding-block: 2.65rem 2.4rem; gap: 2.35rem; }
  .edition { font-size: .735rem; gap: .44rem; }
  .edition::before { width: 1.05rem; }
  h1 { margin-top: .93rem; font-size: clamp(2.48rem, 10.55vw, 3.3rem); }
  .intro { margin-top: 1rem; font-size: 1.02rem; }
  .hero-actions { gap: .4rem 1rem; margin-top: 1.3rem; }
  .button, .secondary { min-height: 2.75rem; font-size: .86rem; }
  .primary { padding-inline: .85rem; }
  .map-key { gap: .25rem .6rem; font-size: .68rem; }
  .atlas-head h2 { font-size: .81rem; }
  .map-results { padding-top: .57rem; }
  .market-result { font-size: .74rem; gap: .16rem .58rem; }
  .map-point { min-height: 1.65rem; min-width: 2.5rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; padding-block: 1.8rem; row-gap: 1.7rem; }
  .stat { padding-inline: 1rem 0; }
  .stat:nth-child(odd) { border-left: 0; padding-inline: 0 .9rem; }
  .stat dt { font-size: .79rem; }
  .stat dd:not(.snapshot) { font-size: 2.5rem; }
  .method-layout { padding-block: 3.15rem; }
  .dimension summary { min-height: 3.35rem; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 1.7rem 1.2rem; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-identity .identity-name { display: inline-block; }
  .footer-links a { min-height: 1.68rem; }
}
@media (max-width: 22.5rem) {
  .masthead .identity-name { display: none; }
}
@media (max-height: 30rem) and (max-width: 64rem) {
  :root { --masthead-height: 3.25rem; }
}
@media (pointer: coarse) {
  .popover a, .footer-links a { min-height: 2.75rem; align-items: center; }
}
@media (forced-colors: active) {
  .key-live, .key-planned, .swatch, .weight-strip { border: 1px solid CanvasText; }
  .primary { border: 1px solid LinkText; }
}
