.cedo-atlas {
  --atlas-bg: #0b252e;
  --atlas-ink: #edf9f6;
  --atlas-muted: #9dbebd;
  --atlas-border: #25444b;
  --atlas-investment: #f8bb65;
  --atlas-nature: #6fddbc;
  --atlas-access: #8bc8ed;
  color: var(--atlas-ink);
  background: var(--atlas-bg);
  border: 1px solid var(--atlas-border);
  border-radius: 19px;
  overflow: hidden;
}
.cedo-atlas button, .cedo-atlas select { font: inherit; }
.cedo-atlas button:focus-visible, .cedo-atlas select:focus-visible, .cedo-atlas a:focus-visible {
  outline: 2px solid #dfef96;
  outline-offset: 3px;
}
.cedo-atlas .investment { --atlas-layer: var(--atlas-investment); }
.cedo-atlas .nature { --atlas-layer: var(--atlas-nature); }
.cedo-atlas .access { --atlas-layer: var(--atlas-access); }
.cedo-atlas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--atlas-border);
}
.cedo-atlas-layers { display: flex; flex-wrap: wrap; gap: 5px; }
.cedo-atlas-layers button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 5px 11px;
  color: var(--atlas-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.cedo-atlas-layers button:hover { color: var(--atlas-ink); }
.cedo-atlas-layers button[aria-pressed="true"] {
  color: var(--atlas-ink);
  border-color: #42676c;
  background: #16353c;
}
.cedo-atlas-layers i, .cedo-atlas-detail-category i {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--atlas-layer);
}
.cedo-atlas-count { color: var(--atlas-muted); font-size: 11px; white-space: nowrap; }
.cedo-atlas-body { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(240px, 1fr); }
.cedo-atlas-figure { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.cedo-atlas-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 720 / 520;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 80%, #0b3b48 10%, #0a2836 63%, #09212b 100%);
  user-select: none;
}
.cedo-atlas-stage:focus-visible { outline: 2px solid #dfef96; outline-offset: -3px; }
.cedo-atlas-stage.can-pan { cursor: grab; }
.cedo-atlas-stage.is-panning { cursor: grabbing; }
.cedo-atlas-map-art, .cedo-atlas-markers { position: absolute; width: 100%; height: 100%; inset: 0; }
.cedo-atlas-map-art { display: block; pointer-events: none; }
.cedo-atlas-districts path {
  fill: #12363b;
  fill-rule: evenodd;
  stroke: #41736f;
  stroke-width: .8;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.cedo-atlas-districts path.is-sefton { fill: #1c4b4c; stroke: #5c9990; stroke-width: 1; }
.cedo-atlas-graticule { fill: none; stroke: #69a8ab; stroke-width: .65; opacity: .24; }
.cedo-atlas-rail {
  fill: none;
  stroke: #93cbe9;
  stroke-width: 1.45;
  stroke-dasharray: 3 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: .7;
}
.cedo-atlas-rail.is-muted { opacity: .22; }
.cedo-atlas-map-label {
  fill: #a8c8c3;
  text-anchor: middle;
  font-family: inherit;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.9px;
}
.cedo-atlas-map-label.water { fill: #7ab8bf; font-size: 11px; font-style: italic; letter-spacing: 2.5px; }
.cedo-atlas-markers { pointer-events: none; }
.cedo-atlas-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--atlas-ink);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}
.cedo-atlas-marker[hidden] { display: none; }
.cedo-atlas-marker[aria-pressed="true"] { z-index: 2; }
.cedo-atlas-marker:is(:hover, :focus-visible) { z-index: 3; }
.cedo-atlas-marker-dot {
  position: relative;
  width: 11px;
  height: 11px;
  border: 2px solid #102e36;
  border-radius: 50%;
  background: var(--atlas-layer);
  box-shadow: 0 0 0 1px var(--atlas-layer), 0 0 0 4px #0c222d70;
}
.cedo-atlas-marker[aria-pressed="true"] .cedo-atlas-marker-dot {
  box-shadow: 0 0 0 1px var(--atlas-layer), 0 0 0 5px #102e36, 0 0 0 6px var(--atlas-layer), 0 0 14px 3px var(--atlas-layer);
}
.cedo-atlas-marker-label {
  position: absolute;
  left: 29px;
  top: calc(50% + var(--label-y));
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #dfedeb;
  background: #0a242dc9;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
  transform: translateY(-50%);
  white-space: nowrap;
}
.cedo-atlas-marker.label-left .cedo-atlas-marker-label { left: auto; right: 29px; }
.cedo-atlas-marker[aria-pressed="true"] .cedo-atlas-marker-label {
  border-color: var(--atlas-layer);
  color: var(--atlas-layer);
  background: #0b2631;
}
.cedo-atlas-marker:is(:hover, :focus-visible) .cedo-atlas-marker-label { border-color: var(--atlas-layer); }
.cedo-atlas-north {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 3px;
  top: 17px;
  left: 19px;
  color: #9dcdce;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}
.cedo-atlas-north span:last-child {
  width: 14px;
  height: 20px;
  background: #9dcdce;
  clip-path: polygon(50% 0%, 100% 100%, 50% 70%, 0% 100%);
}
.cedo-atlas-map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  overflow: hidden;
  border: 1px solid #4a7376;
  border-radius: 8px;
  box-shadow: 0 2px 12px #0a1c25;
}
.cedo-atlas-map-controls button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0 0 2px;
  border: 0;
  color: #dbf0ec;
  background: #0d303a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.cedo-atlas-map-controls button + button { border-top: 1px solid #34535a; }
.cedo-atlas-map-controls button:hover { background: #1c4b51; }
.cedo-atlas-map-controls button:focus-visible { outline-offset: -3px; }
.cedo-atlas-map-controls button[aria-disabled="true"] { color: #739497; cursor: default; }
.cedo-atlas-scale {
  position: absolute;
  bottom: 16px;
  left: 19px;
  display: grid;
  gap: 1px;
  align-items: center;
  text-align: center;
  color: #bdd6d4;
  font-size: 10px;
  pointer-events: none;
}
.cedo-atlas-scale i { height: 5px; border: 1px solid #a6cecb; border-top: 0; }
.cedo-atlas-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-content: center;
  flex: 1;
  padding: 9px 13px;
  border-top: 1px solid var(--atlas-border);
  color: var(--atlas-muted);
  font-size: 10px;
  line-height: 1.45;
}
.cedo-atlas-caption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cedo-atlas-caption i { display: inline-block; width: 15px; border-top: 1px dashed var(--atlas-access); vertical-align: middle; }
.cedo-atlas-detail {
  padding: clamp(14px, 2.4vw, 26px);
  border-left: 1px solid var(--atlas-border);
  background: #102b34;
}
.cedo-atlas-detail > label { display: block; margin-bottom: 6px; color: var(--atlas-muted); font-size: 11px; font-weight: 650; }
.cedo-atlas-detail > select {
  width: 100%;
  min-height: 39px;
  padding: 6px 10px;
  color: var(--atlas-ink);
  color-scheme: dark;
  background: #0a232c;
  border: 1px solid #3a6067;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
}
.cedo-atlas-detail-content { display: grid; gap: 12px; margin-top: 20px; }
.cedo-atlas-detail-category {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--atlas-layer);
  font-size: 11px;
  font-weight: 650;
}
.cedo-atlas-detail-category span { color: #749595; }
.cedo-atlas-detail-content h3 { color: var(--atlas-ink); font-size: clamp(21px, 2.45vw, 31px); line-height: 1.08; margin: 0; }
.cedo-atlas-detail-content p { color: #c0d6d3; font-size: 13px; line-height: 1.52; margin: 0; }
.cedo-atlas-question {
  display: grid;
  gap: 5px;
  padding: 10px 0 10px 12px;
  border-left: 2px solid #75cbb2;
  background: linear-gradient(90deg, #71cbb212, transparent);
}
.cedo-atlas-question strong { color: #99dfcc; font-size: 11px; }
.cedo-atlas-source-links { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; font-size: 11px; }
.cedo-atlas-source-links a { color: #bbd9d4; text-decoration: underline; text-underline-offset: 2px; }
.cedo-atlas-source-links a:hover { color: white; }
.cedo-atlas-external {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  background: linear-gradient(135deg, transparent 44%, currentColor 45%, currentColor 55%, transparent 56%);
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
@media (max-width: 760px) {
  .cedo-atlas-body { grid-template-columns: minmax(0, 1fr); }
  .cedo-atlas-detail { border-top: 1px solid var(--atlas-border); border-left: 0; }
}
@media (max-width: 475px) {
  .cedo-atlas-toolbar { flex-wrap: wrap; padding: 8px 10px; gap: 4px; }
  .cedo-atlas-layers { width: 100%; justify-content: space-between; gap: 2px; }
  .cedo-atlas-layers button { gap: 5px; padding-inline: 4px; font-size: clamp(9px, 2.8vw, 11px); }
  .cedo-atlas-count { padding-left: 6px; }
  .cedo-atlas-map-controls { top: 8px; right: 8px; }
  .cedo-atlas-map-controls button { width: 31px; height: 31px; }
  .cedo-atlas-marker-label { font-size: 9px; padding: 2px 4px; }
  .cedo-atlas-marker.label-right .cedo-atlas-marker-label { left: 25px; }
  .cedo-atlas-marker.label-left .cedo-atlas-marker-label { right: 25px; }
  .cedo-atlas-marker[data-atlas-pin="southport-station"] .cedo-atlas-marker-label { top: calc(50% + 12px); }
}
