.geography-compare-map {
  min-height: 0;
  overflow-y: visible;
  padding-top: 0.4rem;
}

.geography-map-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  padding: 0.35rem 0.55rem 0.1rem;
}

.geography-force-control {
  flex-wrap: wrap;
}

.geography-map-actions {
  display: flex;
  gap: 0.45rem;
}

.geography-mode-switch {
  display: inline-flex;
  gap: 0;
}

.geography-mode-switch .geography-mode-button {
  border-radius: 0;
}

.geography-mode-switch .geography-mode-button:first-child {
  border-radius: 6px 0 0 6px;
}

.geography-mode-switch .geography-mode-button:last-child {
  border-left: 0;
  border-radius: 0 6px 6px 0;
}

.geography-points-toggle[aria-pressed="true"],
.geography-zoom-toggle[aria-pressed="true"],
.geography-mode-button[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fffdf8;
}

.geography-map-status {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.25;
  margin: 0.28rem 0.7rem 0;
  min-height: 1em;
}

.geography-compare-map svg {
  background: #fffdf8;
}

.geography-map-guide {
  background: #fbf7ee;
  border-left: 4px solid var(--green);
  border-radius: 7px;
  color: var(--text, var(--ink));
  font-size: 0.86rem;
  line-height: 1.42;
  margin: 0.45rem 0.55rem 0.2rem;
  padding: 0.5rem 0.8rem 0.55rem;
}

.geography-map-guide-title {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.geography-map-guide ul {
  margin: 0;
  padding-left: 1.1rem;
}

.geography-map-guide li + li {
  margin-top: 0.15rem;
}

.geography-office-hit {
  cursor: crosshair;
}

.geography-commune-chart {
  border-top: 1px dashed rgba(65, 58, 48, 0.25);
  margin-top: 0.6rem;
  padding-top: 0.4rem;
}

.geography-commune-chart svg {
  display: block;
  height: auto;
  width: 100%;
}

.geography-chart-hit {
  cursor: crosshair;
}

.geography-chart-hit:focus-visible {
  outline: none;
  stroke: #c54832;
  stroke-width: 1.5px;
}

.geography-office-hit:focus-visible {
  outline: none;
  stroke: #c54832;
  stroke-width: 2px;
}

.geography-map-tooltip {
  max-width: 270px;
  transform: none;
}

.geography-map-tooltip > span {
  color: var(--muted);
  display: block;
}

.geography-tip-score {
  color: var(--ink);
  font-family: "Cabin Sketch", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
  margin: 0.32rem 0 0.18rem;
}

.geography-surface-hit {
  cursor: crosshair;
  touch-action: pan-y;
}

.geography-tip-grid {
  column-gap: 0.85rem;
  display: grid;
  font-variant-numeric: tabular-nums;
  grid-template-columns: auto auto;
  margin-top: 0.35rem;
  row-gap: 0.08rem;
}

.geography-tip-grid span {
  color: var(--muted);
}

.geography-tip-grid b {
  text-align: right;
}

.geography-tip-grid .is-up {
  color: #237a67;
}

.geography-tip-grid .is-down {
  color: #c54832;
}

.geography-scatter {
  padding-top: 0.4rem;
}

.geography-scatter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.geography-scatter-chip {
  align-items: center;
  background: #fffdf8;
  border: 1px solid rgba(65, 58, 48, 0.25);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  gap: 0.35rem;
  line-height: 1.1;
  padding: 0.28rem 0.6rem;
}

.geography-scatter-chip:hover {
  background: #f3efe6;
}

.geography-scatter-chip:focus-visible {
  outline: 3px solid rgba(214, 162, 31, 0.75);
  outline-offset: 2px;
}

.geography-scatter-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf8;
}

.habitat-sketch svg.geography-scatter-swatch {
  display: block;
  flex: 0 0 0.8rem;
  height: 0.8rem;
  max-width: 0.8rem;
  min-width: 0.8rem;
  overflow: hidden;
  width: 0.8rem;
}

.geography-scatter-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.4rem 0.55rem 0.6rem;
}

.geography-scatter-card {
  margin: 0;
  min-width: 0;
}

.geography-scatter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.geography-scatter-controls .habitat-map-control-label {
  flex: 1 1 14rem;
  min-width: 0;
}

.geography-scatter-controls .habitat-map-select {
  max-width: 100%;
  min-width: 0;
}

.geography-scatter-card svg {
  display: block;
  height: auto;
  width: 100%;
}

.geography-scatter-card svg:focus-visible {
  outline: 3px solid rgba(214, 162, 31, 0.75);
  outline-offset: 2px;
}

.geography-scatter-caption {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
  margin: 0.35rem 0.2rem 0;
}

.geography-map-error {
  color: var(--red);
  margin: 0;
  padding: 1rem;
}

.geography-lede {
  font-size: 1.08rem;
  max-width: 84ch;
}

.geography-force-table {
  margin: 1rem 0 1.8rem;
  overflow-x: auto;
}

.geography-force-table table {
  font-size: 0.9rem;
  width: 100%;
}

.geography-force-table th:not(:first-child),
.geography-force-table td:not(:first-child) {
  text-align: right;
}

.geography-force-swatch {
  border: 1px solid rgba(40, 37, 34, 0.5);
  border-radius: 50%;
  display: inline-block;
  height: 0.68rem;
  margin-right: 0.42rem;
  vertical-align: -0.04rem;
  width: 0.68rem;
}

.geography-method-note {
  background: #fbf7ee;
  border: 1px dashed rgba(65, 58, 48, 0.35);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.46;
  margin: 0.85rem 0 1.7rem;
  padding: 0.82rem 0.95rem;
}

.geography-method-note strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .geography-scatter-grid {
    grid-template-columns: 1fr;
  }

  .geography-map-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .geography-force-control {
    justify-content: space-between;
  }

  .geography-force-control select {
    max-width: 100%;
  }

  .geography-map-actions button {
    flex: 1;
  }

  .geography-map-actions {
    flex-wrap: wrap;
  }

  .geography-compare-map svg {
    max-width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .geography-points-toggle {
    transition: none;
  }
}
