main {
  max-width: 72rem;
}
.intro {
  font-size: 1rem;
  color: var(--ink);
}
.intro h2 {
  margin-bottom: .5rem;
}
.intro li {
  margin-block: .35rem;
}
.workspace {
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--card);
}
.controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  align-items: center;
}
.place-field {
  min-width: 0;
}
.place-field label {
  font-weight: 700;
}
.dot {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  margin-right: .4rem;
}
.base-dot {
  background: oklch(43% .09 175);
}
.compare-dot {
  background: oklch(58% .16 45);
}
.search-wrap {
  position: relative;
  margin-top: .5rem;
}
.search-wrap input {
  width: 100%;
  padding-right: 2rem;
  background: var(--card);
  color: var(--ink);
}
.search-wrap > span {
  position: absolute;
  right: .75rem;
  top: .65rem;
  pointer-events: none;
}
.place-field p {
  margin: .5rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.search-wrap ul {
  position: absolute;
  z-index: 10;
  inset-inline: 0;
  top: 100%;
  max-height: 18rem;
  overflow: auto;
  list-style: none;
  padding: .3rem;
  margin: .25rem 0;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: .4rem;
}
.search-wrap li {
  padding: .6rem;
  min-height: 48px;
  cursor: pointer;
}
.search-wrap li[aria-selected="true"],
.search-wrap li:hover {
  background: var(--paper);
}
.actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.swap,
.text-button,
.examples button,
.direction-pad button,
.zoom-controls button {
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--line);
}
button:disabled {
  opacity: .5;
  cursor: default;
}
button:hover:not(:disabled) {
  filter: brightness(.95);
}
.map-stage {
  background: oklch(96% .02 210);
  border-block: 1px solid var(--line);
}
.map-topline,
.map-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem;
  color: var(--muted);
  font-size: .9rem;
}
.zoom-controls,
.direction-pad {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.zoom-controls {
  padding: .5rem;
}
.zoom-controls button,
.direction-pad button {
  min-width: 48px;
}
.zoom-controls output {
  min-width: 4rem;
  text-align: center;
}
#map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
#map.dragging,
#map.dragging #moving-outline {
  cursor: grabbing;
}
.ocean {
  fill: oklch(93% .035 210);
  stroke: oklch(65% .05 210);
}
.country {
  fill: oklch(82% .045 140);
  stroke: oklch(98% .01 140);
  stroke-width: .65;
  vector-effect: non-scaling-stroke;
}
.graticule {
  fill: none;
  stroke: oklch(80% .03 210);
  stroke-width: .6;
}
#base-outline {
  fill: oklch(48% .10 175 / .5);
  stroke: oklch(35% .09 175);
  stroke-width: 2;
  pointer-events: none;
}
#moving-outline {
  fill: oklch(68% .16 45 / .55);
  stroke: oklch(43% .14 45);
  stroke-width: 2;
  cursor: grab;
  touch-action: none;
  stroke-linejoin: round;
}
#moving-outline.dragging {
  cursor: grabbing;
}
#moving-outline:focus-visible {
  stroke-width: 4;
}
#move-handle {
  fill: oklch(53% .16 45);
  stroke: white;
  stroke-width: 2;
  cursor: grab;
  touch-action: none;
}
.insight {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem;
  font-size: 1.2rem;
}
.insight p {
  margin: 0;
}
.insight-symbol {
  font-size: 2rem;
}
.below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-block: 1.5rem;
}
.eyebrow {
  font-weight: 700;
}
.examples > div {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.explanation h2 {
  font-size: 1.2rem;
}
#continent-note,
footer {
  font-size: .9rem;
  color: var(--muted);
}
footer {
  max-width: 72rem;
  margin: auto;
  padding: 1rem 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#error {
  padding: 1rem;
  border: 2px solid oklch(45% .15 30);
}
@media (max-width: 650px) {
  .controls {
    grid-template-columns: 1fr;
  }
  .swap {
    justify-self: start;
  }
  .below {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .map-topline {
    display: none;
  }
  .map-bottom {
    justify-content: center;
  }
  .insight {
    font-size: 1rem;
  }
}
