/* The atlas is shared by the homepage and the network overview. */
.network-atlas {
  --atlas-line: #34433a;
  --atlas-muted: #b1c0b7;
  --atlas-lime: #c1fa60;
  border: 1px solid var(--atlas-line);
  border-radius: 19px;
  background: #121815;
  overflow: hidden;
}

#locations {
  scroll-margin-top: 110px;
}

.atlas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(365px, 1fr);
}

.atlas-canvas {
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  isolation: isolate;
  min-width: 0;
  background:
    radial-gradient(ellipse at 64% 60%, #263d39 0%, #18282a 43%, transparent 79%),
    linear-gradient(125deg, #142024, #111919);
}

.atlas-map-head,
.atlas-map-foot {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  min-width: 0;
  padding-inline: clamp(14px, 2.1vw, 30px);
  color: #a7bbb3;
  font: 530 .68rem/1.4 var(--field-mono);
  letter-spacing: .065em;
  text-transform: uppercase;
}

.atlas-map-head {
  padding-block: 15px;
  border-bottom: 1px solid #3a565040;
}

.atlas-map-foot {
  border-top: 1px solid #3a565040;
  padding-block: 12px;
}

.atlas-brand,
.atlas-map-foot > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.atlas-brand {
  color: #e0efe6;
  font-weight: 650;
}

.atlas-brand .icon {
  width: 16px;
  height: 16px;
  color: var(--atlas-lime);
}

.atlas-map-foot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--atlas-lime);
  box-shadow: 0 0 0 3px #c1fa6030;
}

.atlas-scene {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 910px;
  aspect-ratio: 650 / 385;
}

.atlas-scene > svg {
  display: block;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(90deg, #0000, #000 4% 96%, #0000);
}

.atlas-scene .map-country {
  fill: url(#atlas-land);
  stroke: #536b65;
  stroke-width: .66px;
}

.atlas-scene .map-country[data-active="true"] {
  fill: url(#atlas-land-active);
  stroke: #92bc75;
  stroke-width: 1.05px;
}

.atlas-route {
  stroke: #869893;
  stroke-width: 1;
  stroke-dasharray: 2 6;
  opacity: .42;
  vector-effect: non-scaling-stroke;
}

.atlas-grid[data-active="is"] .atlas-route:is([data-from="is"], [data-to="is"]),
.atlas-grid[data-active="nl"] .atlas-route:is([data-from="nl"], [data-to="nl"]),
.atlas-grid[data-active="ro"] .atlas-route:is([data-from="ro"], [data-to="ro"]) {
  stroke: #b4eb83;
  stroke-dasharray: 4 5;
  opacity: .75;
}

.atlas-node {
  --pin: #b9cbbd;
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 1;
  color: #e1ece2;
  cursor: pointer;
}

.atlas-node[data-map-location="is"] { --map-x: 10.6%; --map-y: 32.4675%; }
.atlas-node[data-map-location="nl"] { --map-x: 45.9231%; --map-y: 61.6623%; }
.atlas-node[data-map-location="ro"] { --map-x: 73.8154%; --map-y: 77.1429%; }

.atlas-node[data-active="true"],
.atlas-node:hover,
.atlas-node:focus-visible {
  --pin: var(--atlas-lime);
  z-index: 2;
}

.atlas-node-pin {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pin);
  outline: 1px solid #202c26;
  box-shadow: 0 0 12px #b9ff6580;
}

.atlas-node-pin::before,
.atlas-node-pin::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--pin);
  border-radius: 50%;
  opacity: .5;
}

.atlas-node-pin::after {
  inset: -10px;
  opacity: .14;
}

.atlas-node[data-active="true"] .atlas-node-pin::after {
  background: #bfff4918;
  opacity: .72;
}

.atlas-node-label {
  position: absolute;
  top: 50%;
  left: calc(50% + 19px);
  transform: translateY(-50%);
  padding: 5px 9px 6px;
  border: 1px solid #59716a;
  border-radius: 6px;
  background: #131e20f2;
  font-size: clamp(.69rem, 1vw, .9rem);
  font-weight: 670;
  line-height: 1.25;
  white-space: nowrap;
  filter: drop-shadow(0 3px 6px #0a101266);
  transition: border-color .16s, background-color .16s;
}

.atlas-node-label small {
  display: block;
  color: #b0c5bc;
  font: 600 .64rem/1.3 var(--field-mono);
  letter-spacing: .045em;
}

.atlas-node:is([data-active="true"], :hover, :focus-visible) .atlas-node-label {
  border-color: #b3db7f;
  background: #263624;
  color: #f0f8e8;
}

.atlas-node[data-active="true"] .atlas-node-label small {
  color: #cefa97;
}

.atlas-board {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(16px, 2.5vw, 36px);
  border-left: 1px solid var(--atlas-line);
  background: radial-gradient(ellipse at top right, #202c2199, transparent 67%);
}

.atlas-kicker {
  margin: 0 0 10px;
  color: #ccdacf;
  font: 600 .73rem/1.4 var(--field-mono);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.atlas-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid #36453b;
  border-radius: 11px;
  background: #101512;
}

.atlas-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #c9d6cc;
  font-size: clamp(.71rem, .92vw, .82rem);
  font-weight: 620;
  line-height: 1.2;
  transition: border-color .16s, background-color .16s;
}

.atlas-switcher a:hover {
  background: #1c2920;
  color: white;
}

.atlas-switcher a:is([aria-current], [aria-selected="true"]) {
  border-color: #6b8954;
  background: #283725;
  color: #e6f5d9;
}

.atlas-switcher .region-flag {
  flex: none;
  width: 19px;
  height: 13px;
  border-radius: 2px;
}

.atlas-portrait {
  display: flex;
  position: relative;
  align-items: end;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(142px, 13vw, 206px);
  padding: clamp(13px, 1.6vw, 22px);
  border: 1px solid #587363;
  border-radius: 12px;
  background: #172923;
}

.atlas-portrait img,
.atlas-portrait::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atlas-portrait img {
  z-index: -2;
  object-fit: cover;
  object-position: 50% 50%;
}

.atlas-location-detail[data-region-panel="is"] img {
  object-position: 50% 49%;
}

.atlas-location-detail[data-region-panel="ro"] img {
  object-position: 50% 32%;
}

.atlas-location-detail[data-region-panel="nl"] img {
  object-position: 50% 15%;
}

.atlas-portrait::after {
  z-index: -1;
  content: '';
  background:
    linear-gradient(0deg, #09130ff7, #0c1d159c 34%, #182b2520 73%, transparent),
    linear-gradient(90deg, #162c2752, transparent 80%);
}

.atlas-country {
  color: #e6f0e7;
  font: 650 .72rem/1.4 var(--field-mono);
  letter-spacing: .085em;
  text-transform: uppercase;
}

.atlas-place > strong {
  display: block;
  margin-top: 4px;
  color: #fbfff9;
  font-size: clamp(1.8rem, 3vw, 3.35rem);
  font-weight: 670;
  letter-spacing: -.062em;
  line-height: 1;
}

.atlas-place-code {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border: 1px solid #e2eddf80;
  border-radius: 5px;
  background: #0d1d17e6;
  color: #e3f3dc;
  font: 650 .71rem/1.35 var(--field-mono);
}

.atlas-position {
  display: flex;
  flex-wrap: wrap;
  column-gap: 15px;
  row-gap: 4px;
  justify-content: space-between;
  padding: 4px 1px 10px;
  border-bottom: 1px solid var(--atlas-line);
  color: #bbcfc1;
  font: 500 .72rem/1.35 var(--field-mono);
}

.atlas-position > span:first-child {
  color: #d4ecbb;
  white-space: nowrap;
}

.atlas-summary {
  min-height: 2.8em;
  margin: 12px 0 14px;
  color: var(--atlas-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.atlas-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 15px;
}

.atlas-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  line-height: 1.3;
}

.atlas-configure {
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--atlas-lime);
  color: #102009;
  font-weight: 730;
}

.atlas-configure:hover {
  color: #102009;
  background: #dcff99;
}

.atlas-guide {
  padding-block: 5px;
  color: #d3e4d4;
  font-weight: 590;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.atlas-guide:hover {
  color: var(--atlas-lime);
}

.atlas-grid :is(a:focus-visible) {
  outline: 2px solid #ddffa2;
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .atlas-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(325px, 1fr);
  }
}

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

  .atlas-board {
    border-left: 0;
    border-top: 1px solid var(--atlas-line);
    padding: clamp(14px, 4vw, 28px);
  }

  .atlas-scene {
    max-width: 650px;
  }

  .atlas-portrait {
    min-height: clamp(136px, 32vw, 240px);
  }

  .atlas-switcher a {
    font-size: .82rem;
  }

  .atlas-summary {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .network-atlas {
    border-radius: 14px;
  }

  .atlas-map-head,
  .atlas-map-foot {
    font-size: .59rem;
    letter-spacing: .045em;
  }

  .atlas-map-head {
    padding-block: 12px;
  }

  .atlas-map-foot {
    padding-block: 9px;
  }

  .atlas-node-label {
    left: calc(50% + 9px);
    padding: 3px 5px 4px;
    font-size: .66rem;
  }

  .atlas-node-label small,
  .atlas-ocean-label {
    display: none;
  }

  .atlas-node-pin {
    width: 7px;
    height: 7px;
  }

  .atlas-node-pin::before { inset: -4px; }
  .atlas-node-pin::after { inset: -7px; }

  .atlas-switcher a {
    flex-direction: column;
    gap: 4px;
    font-size: .72rem;
  }
}

@media (max-width: 360px) {
  .atlas-map-index {
    display: none;
  }

  .atlas-node[data-map-location="ro"] .atlas-node-label {
    left: 50%;
    top: 5px;
    transform: translate(-50%, -100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-grid :is(.atlas-node-label, .atlas-switcher a) {
    transition: none;
  }
}
