@import url('../assets/cores.css?v=20261120-10');

body { margin: 0; }

.atlas-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .65rem;
  min-height: var(--bar);
  padding: .65rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.atlas-header a { width: fit-content; }
.atlas-brand {
  font: 600 clamp(1.375rem, 3.15vw, 2.375rem)/1.55 var(--display-font);
  white-space: nowrap;
}

.atlas-header a:is(:hover, :focus-visible),
.country-themes a:is(:hover, :focus-visible) { background-color: transparent; }

.country-page {
  width: min(100% - clamp(2rem, 9vw, 10rem), 88rem);
  margin: 0 auto;
}

.country-intro { padding: clamp(1.6rem, 4.5vw, 4rem) 0 clamp(.85rem, 2vw, 1.5rem); }

.country-intro h1 {
  margin: 0;
  font: 400 clamp(2.8rem, 8vw, 7.5rem)/1 var(--display-font);
  overflow-wrap: anywhere;
}

.globe-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
}

.map-back {
  position: absolute;
  inset-block-start: clamp(.65rem, 2vw, 1.5rem);
  inset-inline-start: clamp(.65rem, 2vw, 1.5rem);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font: 1.65rem/1 system-ui, sans-serif;
}
.map-back:is(:hover, :focus-visible) { background-color: transparent; }

.world-globe {
  display: block;
  width: min(95vw, 96svh);
  aspect-ratio: 1;
  cursor: grab;
  touch-action: none;
  border-radius: 50%;
}
.world-globe[data-hover] { cursor: pointer; }
.world-globe[data-dragging] { cursor: grabbing; }
.world-globe[hidden] { display: none; }

.globe-status:not([data-error]) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.country-page h2 {
  margin: 0 0 .8rem;
  font: 400 clamp(1.5rem, 2.5vw, 2.25rem)/1.1 var(--display-font);
}
.country-title { display: flex; align-items: center; gap: .25em; }
.country-title .flag-icon { font-size: .56em; }
.country-filters {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.35rem;
  padding-bottom: 1rem;
}
.country-picker {
  display: grid;
  grid-template-columns: minmax(0, 14rem) auto;
  gap: .25rem .45rem;
  max-width: 100%;
}
.country-picker label { grid-column: 1 / -1; }
.country-picker :is(select, button) {
  padding: .35rem .7rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.country-picker select { text-transform: none; }
.country-picker button:hover { color: var(--focus); border-color: var(--focus); }
.country-themes { display: flex; flex-wrap: wrap; gap: .35rem clamp(.6rem, 2vw, 1.5rem); }
.country-themes a { display: inline-flex; align-items: center; min-height: 44px; }
.country-themes a[aria-current] { color: var(--focus); font-weight: 700; }
.country-photos,
.country-content section { padding: 1rem 0 2rem; border-top: 1px solid var(--line); }
.country-photos .photo-wall {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  grid-auto-rows: auto;
}
.country-photos .wall-photo { aspect-ratio: 3 / 2; }
.country-content ul { padding-left: 1.2em; }
.country-content li { padding: .3rem 0; }
.country-status { color: var(--muted); }
.country-status:empty { display: none; }

@media (max-width: 720px) {
  .country-photos .photo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .country-title { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .atlas-header { grid-template-columns: minmax(0, 1fr) auto; }
}
