.cedo-uk-map {
  --map-ink: #eff9f5;
  --map-muted: #bbd5d2;
  --map-border: #315358;
  --map-faint: #87aeb2;
  --map-selected: #f7c171;
  --map-eng: #80e4c5;
  --map-wales: #a7d7ed;
  --map-scot: #f2bb89;
  --map-ni: #cec4f3;
  color: var(--map-ink);
  background: #0c2833;
  border: 1px solid var(--map-border);
  border-radius: 14px;
  overflow: hidden;
}
.cedo-uk-map :focus-visible { outline: 2px solid var(--map-selected); outline-offset: 3px; }
.cedo-uk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px clamp(12px, 2vw, 26px);
  border-bottom: 1px solid var(--map-border);
}
.cedo-uk-nations { display: flex; flex-wrap: wrap; gap: 5px; }
.cedo-uk-nations button {
  min-height: 37px;
  padding: 6px clamp(7px, 1.45vw, 15px);
  background: transparent;
  color: var(--map-muted);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .81rem;
  font-weight: 650;
}
.cedo-uk-nations button[aria-pressed="true"] {
  background: #1b4147;
  border-color: #567d7e;
  color: var(--map-ink);
}
.cedo-uk-nations button:hover { color: white; }
.cedo-uk-overlay {
  display: flex;
  align-items: center;
  gap: .48rem;
  color: var(--map-muted);
  font-size: .80rem;
  white-space: nowrap;
  cursor: pointer;
}
.cedo-uk-overlay input { margin: 0; width: 15px; height: 15px; accent-color: #65d9c3; }
.cedo-uk-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(285px, 1fr); }
.cedo-uk-figure { margin: 0; min-width: 0; background: #082332; }
.cedo-uk-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 600 / 620;
  overflow: hidden;
  background: radial-gradient(ellipse at 72% 65%, #103a46 3%, #092735 63%, #071e2c 100%);
}
.cedo-uk-art, .cedo-uk-markers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cedo-uk-art { display: block; }
.cedo-uk-land path {
  fill: #16313a;
  fill-rule: evenodd;
  stroke: #35525a;
  stroke-width: .65;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.cedo-uk-land [data-uk-land="England"] { fill: #23524f; stroke: #6a9d8f; }
.cedo-uk-land [data-uk-land="Wales"] { fill: #235163; stroke: #62939d; }
.cedo-uk-land [data-uk-land="Scotland"] { fill: #345957; stroke: #79a797; }
.cedo-uk-land [data-uk-land="Northern Ireland"] { fill: #4b5269; stroke: #8789a5; }
.cedo-uk-land [data-uk-land].is-dim { fill: #1a3c44; stroke: #4c6267; }
.cedo-uk-graticule { fill: none; stroke: #73a8af; stroke-width: .55; opacity: .28; }
.cedo-uk-water-labels { fill: #85b9bf; font-size: 8px; letter-spacing: 2.5px; font-style: italic; text-anchor: middle; opacity: .9; }
.cedo-uk-zoomed .cedo-uk-water-labels { opacity: .54; }
.cedo-uk-census circle { fill: #9be7d1; opacity: .72; }
.cedo-uk-marker {
  --pin-ink: var(--map-eng);
  position: absolute;
  z-index: 1;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  touch-action: manipulation;
}
.cedo-uk-marker[data-uk-pin-nation="Wales"] { --pin-ink: var(--map-wales); }
.cedo-uk-marker[data-uk-pin-nation="Scotland"] { --pin-ink: var(--map-scot); }
.cedo-uk-marker[data-uk-pin-nation="Northern Ireland"] { --pin-ink: var(--map-ni); }
.cedo-uk-marker span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #071c27;
  border-radius: 50%;
  background: var(--pin-ink);
  box-shadow: 0 0 0 1px var(--pin-ink), 0 0 0 3px #0c2532b0;
  transform: translate(-50%, -50%);
}
.cedo-uk-marker[aria-pressed="true"] { z-index: 4; }
.cedo-uk-marker[aria-pressed="true"] span { background: var(--map-selected); box-shadow: 0 0 0 2px var(--map-selected), 0 0 0 5px #102e36, 0 0 0 6px var(--map-selected), 0 0 12px 3px #ffc16d; }
.cedo-uk-marker:is(:hover, :focus-visible) { z-index: 5; }
.cedo-uk-marker:is(.show-label, [aria-pressed="true"], :hover, :focus-visible)::after {
  content: attr(data-uk-place);
  position: absolute;
  left: 21px;
  top: 50%;
  padding: 2px 5px;
  color: #def0ef;
  background: #0b2733c9;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: none;
}
.cedo-uk-marker.label-left::after { right: 21px; left: auto; }
.cedo-uk-marker[aria-pressed="true"]::after { color: var(--map-selected); background: #0b2635; border-color: #f7c171; }
.cedo-uk-marker[data-uk-place="Blackpool"]::after { right: 21px; left: auto; top: 1px; }
.cedo-uk-marker[data-uk-place="Southport"]::after { top: calc(50% + 6px); }
.cedo-uk-zoomed .cedo-uk-marker { width: 25px; height: 25px; }
.cedo-uk-north { position: absolute; top: 5.5%; left: 7.4%; display: grid; justify-items: center; gap: 3px; color: #abd4d0; font-size: 10px; font-weight: 700; pointer-events: none; }
.cedo-uk-north span:last-child { width: 12px; height: 17px; background: #abd4d0; clip-path: polygon(50% 0%, 100% 100%, 50% 65%, 0% 100%); }
.cedo-uk-map-key { position: absolute; display: grid; grid-template-columns: min-content max-content; align-items: center; gap: 5px 6px; bottom: 12px; left: 12px; font-size: 10px; line-height: 1.3; color: var(--map-muted); pointer-events: none; }
.cedo-uk-map-key i { width: 6px; height: 6px; border-radius: 50%; background: #e5f8f3; }
.cedo-uk-map-key .cedo-uk-key-census { grid-column: span 2; display: flex; align-items: center; gap: 6px; }
.cedo-uk-key-census i { background: #9be7d1; height: 4px; width: 4px; margin-inline: 1px; }
.cedo-uk-map-caption { padding: 9px 13px; border-top: 1px solid var(--map-border); color: var(--map-muted); font-size: .68rem; line-height: 1.45; }
.cedo-uk-census-credit { display: block; }
.cedo-uk-aside {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 3.3vw, 42px);
  border-left: 1px solid var(--map-border);
  background: radial-gradient(ellipse at 82% 2%, #153b40, #102e36 48%, #0d2933 100%);
}
.cedo-uk-select-wrap label { display: block; color: var(--map-muted); font-size: .83rem; font-weight: 650; margin-bottom: 6px; }
.cedo-uk-select-wrap select {
  width: 100%;
  min-height: 42px;
  padding: 7px 12px;
  color-scheme: dark;
  color: var(--map-ink);
  background: #0b2732;
  border: 1px solid #577a7e;
  border-radius: 6px;
  cursor: pointer;
}
.cedo-uk-panel { margin: clamp(22px, 4vw, 55px) 0 clamp(20px, 3.5vw, 43px); }
.cedo-uk-nation { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 12px; color: #96dccb; font-size: .82rem; font-weight: 700; }
.cedo-uk-nation span:first-child { width: 7px; height: 7px; flex: 0 0 7px; background: #96dccb; border-radius: 50%; }
.cedo-uk-slash { color: #93b5b6; }
.cedo-uk-feature h3 { margin: 0; color: var(--map-ink); font-family: var(--display-font, Georgia, serif); font-weight: 400; font-size: clamp(34px, 5vw, 61px); line-height: .99; letter-spacing: -.04em; }
.cedo-uk-question { margin: 16px 0 0; color: #e0edeb; font-size: clamp(.98rem, 1.38vw, 1.2rem); line-height: 1.52; }
.cedo-uk-coverage { display: grid; justify-items: start; gap: 10px; margin-top: clamp(20px, 3vw, 33px); }
.cedo-uk-coverage p { margin: 0; color: var(--map-muted); font-size: .86rem; }
.cedo-uk-coverage a { color: #b6dcd5; font-size: .83rem; }
.cedo-uk-coverage a:hover { color: white; }
.cedo-uk-compare { padding: 7px 12px; min-height: 39px; color: #0c2f33; background: #a0e8d6; border: 1px solid transparent; border-radius: 6px; font-weight: 750; font-size: .84rem; }
.cedo-uk-compare:hover { background: #c8f6ea; }
.cedo-uk-external { display: inline-block; width: 7px; height: 7px; margin-left: 2px; background: linear-gradient(135deg, transparent 44%, currentColor 45%, currentColor 55%, transparent 56%); border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.cedo-uk-scope { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--map-border); font-size: .82rem; color: var(--map-muted); }
.cedo-uk-scope strong { color: #cef4e8; }
.cedo-uk-scope p { margin: 3px 0 0; }
@media (max-width: 780px) {
  .cedo-uk-layout { grid-template-columns: minmax(0, 1fr); }
  .cedo-uk-aside { border-top: 1px solid var(--map-border); border-left: none; }
  .cedo-uk-toolbar { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 500px) {
  .cedo-uk-toolbar { gap: 6px; }
  .cedo-uk-nations { column-gap: 2px; }
  .cedo-uk-nations button { padding: 4px 5px; font-size: .72rem; min-height: 33px; }
  .cedo-uk-marker.show-label:not([aria-pressed="true"]):not(:hover):not(:focus-visible)::after { display: none; }
  .cedo-uk-marker span { width: 6px; height: 6px; }
  .cedo-uk-marker { width: 19px; height: 19px; }
  .cedo-uk-stage { aspect-ratio: 600 / 620; }
  .cedo-uk-overlay { padding: 4px 5px; min-height: 30px; }
}
