.atlas-main {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.atlas-main > p {
  margin-block: .75rem 1.5rem;
  max-width: 65ch;
}

.atlas-search {
  display: grid;
  gap: .4rem;
  max-width: 34rem;
}

.atlas-search label {
  font-weight: 700;
}

.atlas-search input {
  width: 100%;
  min-height: 48px;
  padding: .6rem .85rem;
  border: 2px solid #8564aa;
  border-radius: .75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.atlas-map {
  display: block;
  width: min(100%, 54rem);
  height: auto;
  margin: 1rem auto 1.5rem;
}

.atlas-map-lines {
  fill: none;
  stroke: #64949a;
  opacity: .25;
  pointer-events: none;
}

.atlas-map-border {
  fill: none;
  stroke: #80628e;
  stroke-width: 3px;
  pointer-events: none;
}

.atlas-map a path {
  stroke: #5a4670;
  stroke-width: 2px;
}

.atlas-map a:hover path,
.atlas-map a:focus-visible path {
  stroke: #281747;
  stroke-width: 6px;
}

.atlas-map text {
  fill: #281747;
  text-anchor: middle;
  font: 700 24px Georgia, serif;
  pointer-events: none;
}

.atlas-continents,
.atlas-countries,
.atlas-sources,
.atlas-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.atlas-continents a,
.atlas-countries a,
.atlas-results a {
  display: block;
  padding: .65rem .85rem;
  border: 1px solid #80628e;
  border-radius: .75rem;
  background: var(--region-color, #f2e9fa);
  color: #281747;
  font-weight: 700;
  text-align: center;
}

.atlas-sources {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.atlas-sources li {
  padding: 1.25rem;
  border: 1px solid #bca8d0;
  border-radius: 1rem;
  background: #f8f0fb;
  color: #281747;
}

.atlas-sources h2 {
  margin-bottom: .6rem;
  font-size: 1.35rem;
}

.atlas-main :focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.reading-simple .atlas-map {
  display: none;
}

.atlas-research-paths {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.atlas-research-paths li:nth-child(1) {
  background: #fff1bb;
}

.atlas-research-paths li:nth-child(2) {
  background: #def3ea;
}

.atlas-research-paths p + p {
  margin-top: .85rem;
}

.atlas-research-paths a {
  font-weight: 700;
}
