.eurosotl-atlas {
  --atlas-paper: #f4f7fc;
  --atlas-paper-light: #ffffff;
  --atlas-ink: #1e2b45;
  --atlas-ink-soft: #4b5b78;
  --atlas-blue: #2463df;
  --atlas-blue-dark: #174fc4;
  --atlas-mint: #a7e2d2;
  --atlas-yellow: #ffd166;
  --atlas-pink: #f5b6b7;
  --atlas-lavender: #c9d8ff;
  --atlas-line: #1e438e;
  width: 100%;
  max-width: 1650px;
  margin: 48px auto 72px;
  color: var(--atlas-ink);
  /* Inherit the EuroSoTL theme typeface instead of loading a competing font. */
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.eurosotl-atlas *,
.eurosotl-atlas *::before,
.eurosotl-atlas *::after {
  box-sizing: border-box;
}

.eurosotl-atlas__data {
  display: none !important;
}

.eurosotl-atlas__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 54px;
  margin-bottom: 38px;
}

.eurosotl-atlas__eyebrow {
  margin: 0 0 12px !important;
  color: var(--atlas-blue);
  font-size: 12px !important;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eurosotl-atlas__intro h2 {
  max-width: 980px;
  margin: 0 !important;
  color: var(--atlas-ink);
  font-size: clamp(3.5rem, 7.6vw, 7.6rem) !important;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.eurosotl-atlas__lede {
  max-width: 720px;
  margin: 24px 0 0 !important;
  color: var(--atlas-ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.3rem) !important;
  line-height: 1.55;
}

.eurosotl-atlas__select-label {
  min-width: 250px;
  display: grid;
  gap: 8px;
  color: var(--atlas-ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eurosotl-atlas__select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 15px;
  border: 2px solid var(--atlas-line);
  border-radius: 0;
  background-color: var(--atlas-paper-light);
  color: var(--atlas-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.eurosotl-atlas__select:focus-visible,
.eurosotl-atlas a:focus-visible {
  outline: 4px solid var(--atlas-yellow);
  outline-offset: 3px;
}

.eurosotl-atlas__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(340px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.eurosotl-atlas__map-stage,
.eurosotl-atlas__panel {
  border: 3px solid var(--atlas-line);
  box-shadow: 9px 9px 0 var(--atlas-ink);
}

.eurosotl-atlas__map-stage {
  min-width: 0;
  overflow: hidden;
  background: var(--atlas-paper-light);
}

.eurosotl-atlas__map-header {
  min-height: 86px;
  padding: 19px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 2px solid var(--atlas-line);
}

.eurosotl-atlas__map-header strong {
  color: var(--atlas-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.eurosotl-atlas__map-header p {
  margin: 3px 0 0 !important;
  color: var(--atlas-ink-soft);
  font-size: 13px !important;
}

.eurosotl-atlas__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
  color: var(--atlas-ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.eurosotl-atlas__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.eurosotl-atlas__legend i {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1.5px solid var(--atlas-line);
  background: #ddd8ce;
}

.eurosotl-atlas__legend i.is-active {
  background: var(--atlas-mint);
}

.eurosotl-atlas__map-canvas {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 72%, rgba(199, 184, 243, 0.28), transparent 21%),
    radial-gradient(circle at 83% 20%, rgba(140, 219, 193, 0.25), transparent 22%),
    linear-gradient(135deg, #f6f9ff, #edf3ff);
}

.eurosotl-atlas__map-canvas::before,
.eurosotl-atlas__map-canvas::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.eurosotl-atlas__map-canvas::before {
  display: none;
}

.eurosotl-atlas__map-canvas::after {
  display: none;
}

.eurosotl-atlas__map {
  position: relative;
  z-index: 1;
  width: 96%;
  height: auto;
  max-height: 640px;
  overflow: hidden;
}

.eurosotl-atlas__country {
  cursor: pointer;
  outline: none;
}

.eurosotl-atlas__country-shape,
.eurosotl-atlas__country-marker {
  fill: #d9d6cf;
  stroke: var(--atlas-blue-dark);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  transform-origin: center;
  transition: fill 160ms ease, filter 160ms ease, transform 160ms ease;
}

.eurosotl-atlas__country.is-active .eurosotl-atlas__country-shape,
.eurosotl-atlas__country.is-active .eurosotl-atlas__country-marker {
  fill: var(--atlas-mint);
}

.eurosotl-atlas__country:hover .eurosotl-atlas__country-shape,
.eurosotl-atlas__country:hover .eurosotl-atlas__country-marker,
.eurosotl-atlas__country:focus-visible .eurosotl-atlas__country-shape,
.eurosotl-atlas__country:focus-visible .eurosotl-atlas__country-marker {
  fill: var(--atlas-lavender);
  filter: drop-shadow(0 4px 0 rgba(13, 46, 111, 0.28));
  transform: translateY(-2px);
}

.eurosotl-atlas__country:focus-visible .eurosotl-atlas__country-shape,
.eurosotl-atlas__country:focus-visible .eurosotl-atlas__country-marker {
  stroke: var(--atlas-blue);
  stroke-width: 3.5;
}

.eurosotl-atlas__country.is-selected .eurosotl-atlas__country-shape,
.eurosotl-atlas__country.is-selected .eurosotl-atlas__country-marker {
  fill: var(--atlas-yellow);
  stroke-width: 3;
  filter: drop-shadow(0 5px 0 rgba(13, 46, 111, 0.3));
}

.eurosotl-atlas__country-marker {
  stroke-width: 2.5;
}

.eurosotl-atlas__map-message {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0 !important;
  padding: 20px;
  border: 2px solid var(--atlas-line);
  background: var(--atlas-paper-light);
  box-shadow: 5px 5px 0 var(--atlas-line);
  color: var(--atlas-ink);
  font-size: 14px !important;
  font-weight: 800;
  text-align: center;
}

.eurosotl-atlas__credit {
  margin: 0 !important;
  padding: 10px 19px;
  border-top: 2px solid var(--atlas-line);
  color: var(--atlas-ink-soft);
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.eurosotl-atlas__panel {
  min-width: 0;
  padding: 27px;
  display: flex;
  flex-direction: column;
  background: var(--atlas-paper-light);
  max-height: 820px;
  container-type: inline-size;
}

.eurosotl-atlas__panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.eurosotl-atlas__status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1.5px solid var(--atlas-line);
  background: #e5e0d7;
  color: var(--atlas-ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eurosotl-atlas__status.is-active {
  background: var(--atlas-mint);
}

.eurosotl-atlas__code {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.eurosotl-atlas__country-name {
  margin: 0 !important;
  color: var(--atlas-ink);
  font-size: clamp(2.25rem, 3.2vw, 3.35rem) !important;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
  max-inline-size: 100%;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: balance;
}

@supports (font-size: 1cqi) {
  .eurosotl-atlas__country-name {
    font-size: clamp(2.25rem, 14cqi, 3.35rem) !important;
  }
}

.eurosotl-atlas__summary {
  margin: 19px 0 24px !important;
  color: var(--atlas-ink-soft);
  font-size: 15px !important;
  line-height: 1.62;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.eurosotl-atlas__resources {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  min-height: 0;
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 5px;
}

.eurosotl-atlas__resource-card {
  padding: 13px 14px;
  display: grid;
  border: 1.5px solid var(--atlas-line);
  background: #fbf8f1;
  color: var(--atlas-ink);
  text-decoration: none !important;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.eurosotl-atlas__resource-card:hover,
.eurosotl-atlas__resource-card:focus-visible {
  box-shadow: 4px 4px 0 var(--atlas-line);
  transform: translate(-2px, -2px);
}

.eurosotl-atlas__resource-card > span {
  color: var(--atlas-blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eurosotl-atlas__resource-card > strong {
  margin: 4px 0 3px;
  color: var(--atlas-ink);
  font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.eurosotl-atlas__resource-card > p {
  margin: 0 !important;
  color: var(--atlas-ink-soft);
  font-size: 12px !important;
  line-height: 1.42;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.eurosotl-atlas__empty {
  padding: 19px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  border: 1.5px dashed var(--atlas-line);
  background: #f3eee4;
}

.eurosotl-atlas__empty > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--atlas-line);
  background: var(--atlas-pink);
  font-size: 25px;
  font-weight: 800;
}

.eurosotl-atlas__empty > p {
  margin: 0 !important;
  color: var(--atlas-ink-soft);
  font-size: 13px !important;
  line-height: 1.45;
}

.eurosotl-atlas__profile-link {
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 2px solid var(--atlas-line);
  background: var(--atlas-blue);
  box-shadow: 5px 5px 0 var(--atlas-line);
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.eurosotl-atlas__profile-link:hover,
.eurosotl-atlas__profile-link:focus-visible {
  background: var(--atlas-blue-dark);
  box-shadow: 2px 2px 0 var(--atlas-line);
  transform: translate(3px, 3px);
}

.eurosotl-atlas__profile-link.is-disabled {
  cursor: not-allowed;
  background: #7c879e;
  box-shadow: none;
  opacity: 0.8;
  transform: none;
}

.eurosotl-atlas__note {
  margin: 17px 0 0 !important;
  color: var(--atlas-ink-soft);
  font-size: 10px !important;
  line-height: 1.45;
  text-align: center;
}

.eurosotl-atlas-editor {
  padding: 24px;
  border: 2px solid #17336f;
  background: #f7f2e8;
}

.eurosotl-atlas-editor__preview {
  min-width: min(100%, 520px);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border: 2px solid #17336f;
  background: #fffdfa;
  box-shadow: 5px 5px 0 #102552;
  color: #102552;
}

.eurosotl-country-resources {
  margin: 48px 0;
  color: var(--atlas-ink, #1e2b45);
}

.eurosotl-country-resources > h2 {
  color: #2463df;
}

.eurosotl-country-resources__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: start;
}

.eurosotl-country-resources__list article {
  padding: 22px;
  border: 2px solid #1e438e;
  background: #ffffff;
  box-shadow: 5px 5px 0 #1e438e;
}

.eurosotl-country-resources__list h3 {
  margin: 5px 0 10px;
}

.eurosotl-country-resources__category {
  margin: 0;
  color: #2463df;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eurosotl-country-resources__excerpt {
  margin-bottom: 0 !important;
}

.eurosotl-country-resources__details {
  margin-top: 12px;
}

.eurosotl-country-resources__details summary {
  width: fit-content;
  cursor: pointer;
  color: #2463df;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.eurosotl-country-resources__details > p {
  margin-bottom: 0 !important;
}

@media (max-width: 1100px) {
  .eurosotl-atlas__shell {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .eurosotl-atlas__map-canvas {
    min-height: 510px;
  }
}

@media (max-width: 880px) {
  .eurosotl-atlas__intro,
  .eurosotl-atlas__shell {
    grid-template-columns: 1fr;
  }

  .eurosotl-atlas__select-label {
    width: min(100%, 420px);
  }

  .eurosotl-atlas__panel {
    min-height: 540px;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .eurosotl-atlas {
    margin: 34px auto 54px;
  }

  .eurosotl-atlas__intro {
    gap: 28px;
    margin-bottom: 28px;
  }

  .eurosotl-atlas__intro h2 {
    font-size: clamp(3.2rem, 19vw, 5.4rem) !important;
  }

  .eurosotl-atlas__map-stage,
  .eurosotl-atlas__panel {
    box-shadow: 6px 6px 0 var(--atlas-ink);
  }

  .eurosotl-atlas__map-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .eurosotl-atlas__legend {
    justify-content: flex-start;
  }

  .eurosotl-atlas__map-canvas {
    min-height: 400px;
  }

  .eurosotl-atlas__map {
    width: 112%;
  }

  .eurosotl-atlas__credit {
    text-align: left;
  }

  .eurosotl-atlas__panel {
    min-height: auto;
    padding: 23px 19px;
  }

  .eurosotl-atlas__resources {
    max-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eurosotl-atlas *,
  .eurosotl-atlas *::before,
  .eurosotl-atlas *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
