/* Map page (/map/): a filter sidebar on the left (case type, decade), the map box on the right. Being rebuilt from
   scratch: the box is empty and the filters are not wired yet. On tablets and phones the filters sit above the map. */

body.ncc-map-page .site-main > article {
  box-sizing: border-box;
  max-width: calc(var(--ncc-max) + 2 * var(--ncc-gutter)); /* the shared frame */
  margin: 0 auto !important; /* .ncc-scroll main has its margins zeroed */
  padding: 40px var(--ncc-gutter); /* the same 40px above and below the map (2026-11-18; it was 64px under it) */
}
body.ncc-map-page .inside-article { padding: 0 !important; background: transparent !important; box-shadow: none; }
body.ncc-map-page :is(.entry-header, .entry-meta, .comments-area, .post-navigation) { display: none; }

.ncc-map-layout {
  display: grid;
  grid-template-columns: var(--ncc-side-w) minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
}

/* Filters */
.ncc-map-filters { position: static; } /* scrolls with the map, as one block (it was sticky: the map slid away under a pinned sidebar; 2026-11-18) */
/* Desktop: the page has two resting places, the map filling the screen and the footer in view. Proximity snapping settles
   a scroll that ends near either one, so scrolling back up puts the map exactly back in the screen. */
@media (min-width: 1025px) {
  html:has(body.ncc-map-page) { scroll-snap-type: y proximity; }
  body.ncc-map-page .ncc-map-layout { scroll-snap-align: start; scroll-margin-top: 16px; } /* + the root's scroll-padding (header + 24px) = the article's 40px under the header */
  body.ncc-map-page .ncc-footer { scroll-snap-align: end; }
}
.ncc-map-form { display: grid; gap: 28px; margin: 0; }
.ncc-map-group { display: grid; gap: 2px; min-width: 0; margin: 0; padding: 0; border: 0; }
html[data-theme] .ncc-map-group legend { margin: 0 0 8px; padding: 0; color: var(--ncc-ink); font-size: var(--ncc-step-small); font-weight: 500; line-height: 1.4; }
/* Options, in the cases page tabs' language: grey text at rest; ticked, the row takes the tabs' grey fill and ink in
   medium weight. The count sits at the right in a lighter grey. */
html[data-theme] .ncc-map-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin: 0 -10px;
  padding: 0 10px;
  border-radius: var(--ncc-radius-control);
  color: var(--ncc-secondary);
  font-size: var(--ncc-step-small);
  line-height: 1.4;
  cursor: pointer;
  transition: background-color var(--ncc-dur-fade) ease-out, color var(--ncc-dur-fade) ease-out;
}
html[data-theme] .ncc-map-option:has(input:checked) { background: var(--ncc-muted-bg); color: var(--ncc-ink); font-weight: 500; }
html[data-theme] .ncc-map-option:has(input:focus-visible) { outline: 2px solid var(--ncc-focus); outline-offset: -2px; }
.ncc-map-option span:first-of-type { flex: 1; min-width: 0; }
html[data-theme] .ncc-map-count { color: var(--ncc-subtle); font-weight: 400; font-variant-numeric: tabular-nums; }
html[data-theme] .ncc-map-option.is-empty { color: var(--ncc-muted); } /* ticking it would empty the map */
/* the box: 16px, 4px corners, a 1.5px line; ticked, the ink fill with a check in the fill's foreground (one image per theme) */
html[data-theme] .ncc-map-option input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: var(--ncc-surface) no-repeat center / 12px 12px;
  box-shadow: inset 0 0 0 1.5px var(--ncc-control-border);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color var(--ncc-dur-fade) ease-out, box-shadow var(--ncc-dur-fade) ease-out;
}
html[data-theme] .ncc-map-option input:checked { background-color: var(--ncc-primary); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5L10 17.5L19 7'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .ncc-map-option input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5L10 17.5L19 7'/%3E%3C/svg%3E"); }
html[data-theme] .ncc-map-option input:focus-visible { outline: none; } /* the row shows focus */
@media (hover: hover) {
  html[data-theme] .ncc-map-option:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--ncc-muted-bg) 60%, transparent); color: var(--ncc-ink); }
}
/* the count of cases showing, and Clear filters once anything is ticked */
.ncc-map-status { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 16px 0 0; } /* the count, then Clear filters under it (2026-11-18: it sat beside the count) */
/* phone-only parts: the sheet's grabber, head and Show button, and the Filter button under the map */
:is(.ncc-map-sheet-grabber, .ncc-map-sheet-head, .ncc-map-sheet-foot, .ncc-map-filter-btn, .ncc-map-open-case) { display: none; }
html[data-theme] .ncc-map-status p { margin: 0; color: var(--ncc-muted); font-size: var(--ncc-step-small); line-height: 1.4; font-variant-numeric: tabular-nums; }

/* Map box */
html[data-theme] .ncc-map-box {
  box-sizing: border-box;
  height: calc(100dvh - var(--ncc-fixed-top) - 56px); /* fitted to the screen with 40px above and below it (--ncc-fixed-top already holds 24px) */
  min-height: 480px;
  border: 1px solid var(--ncc-border);
  border-radius: var(--ncc-media-radius);
  background: var(--ncc-media-bg);
  overflow: hidden; /* the tiles stay inside the rounded corners */
  font: inherit;
}
html[data-theme] .ncc-map-box .leaflet-control-attribution { font-size: 11px; }

/* Clusters: an ink circle with the case count, a white ring to lift it off the tiles and the pins */
html[data-theme] .ncc-map-cluster {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ncc-primary);
  color: var(--ncc-primary-fg);
  box-shadow: 0 0 0 3px var(--ncc-surface), var(--ncc-float-shadow);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
@media (hover: hover) {
  html[data-theme] .ncc-map-cluster:hover { background: var(--ncc-primary-hover); }
}

/* Pin popups: a card per case, built like the cases grid's cards: a 4:5 photo (or the head-and-shoulders placeholder),
   the name with a View button, the category and date as the grid's grey chips, and the whole summary. A fixed 480px wide;
   no close button (a click on the map or Escape closes it). Cases sharing a pin (at most 4) show one card at a time with a footer to step through them. */
html[data-theme] .ncc-map-box :is(.leaflet-popup-content-wrapper, .leaflet-popup-tip) { background: var(--ncc-surface); color: var(--ncc-ink); box-shadow: var(--ncc-float-shadow); }
html[data-theme] .ncc-map-box .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--ncc-radius-menu); } /* the site's floating-panel corners */
html[data-theme] .ncc-map-box .leaflet-popup-content { margin: 0; font-size: var(--ncc-step-small); line-height: 1.4; }
.ncc-map-popup { display: grid; margin: 0; padding: 0; list-style: none; }
/* the card: a 4:5 photo on the left; beside it the name with Open (an icon button) at its right, the category and date
   chips under the name, then the whole summary */
.ncc-map-card { display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 12px; }
html[data-theme] .ncc-map-card + .ncc-map-card { border-top: 1px solid var(--ncc-border); }
html[data-theme] .ncc-map-photo { flex: none; width: 120px; height: 150px; border-radius: 8px; background: var(--ncc-media-bg); object-fit: cover; object-position: 50% 25%; outline: 1px solid var(--ncc-edge); outline-offset: -1px; }
.ncc-map-photo--none { display: block; overflow: hidden; }
html[data-theme] .ncc-map-photo--none svg { display: block; width: 100%; height: 100%; fill: var(--ncc-thumb); }
.ncc-map-text { flex: 1; min-width: 0; }
.ncc-map-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
html[data-theme] .ncc-map-text strong { padding-top: 4px; color: var(--ncc-ink); font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; text-wrap: balance; }
/* the grid cards' meta chips: grey fill, 8px corners, 13px medium (html[data-theme] beats Leaflet's own popup p margins) */
html[data-theme] .ncc-map-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
html[data-theme] .ncc-map-chips span { padding: 7px 10px 8px; border-radius: 8px; background: var(--ncc-muted-bg); color: var(--ncc-secondary); font-size: 13px; font-weight: 500; line-height: 13px; white-space: nowrap; }
html[data-theme] .ncc-map-excerpt { margin: 10px 0 0; color: var(--ncc-secondary); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
/* View: the ink primary, a word and an arrow */
html[data-theme] .ncc-map-box a.ncc-map-open {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 12px;
  border-radius: var(--ncc-radius-control);
  background: var(--ncc-primary);
  color: var(--ncc-primary-fg);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--ncc-dur-fade) ease-out;
}
/* shared pins (2 to 4 cases): one card at a time, and a footer to step through them */
.ncc-map-card[hidden] { display: none; }
html[data-theme] .ncc-map-pager { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--ncc-border); }
html[data-theme] .ncc-map-pager span { flex: 1; color: var(--ncc-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
html[data-theme] .ncc-map-pager button { display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: var(--ncc-radius-control); background: var(--ncc-muted-bg); color: var(--ncc-ink); cursor: pointer; transition: background-color var(--ncc-dur-fade) ease-out; }
html[data-theme] .ncc-map-pager button:disabled { background: transparent; color: var(--ncc-faint); cursor: default; }
html[data-theme] .ncc-map-pager button:focus-visible { outline: 2px solid var(--ncc-focus); outline-offset: 2px; }
@media (hover: hover) {
  html[data-theme] .ncc-map-box a.ncc-map-open:hover { background: var(--ncc-primary-hover); color: var(--ncc-primary-fg); }
  html[data-theme] .ncc-map-pager button:not(:disabled):hover { background: var(--ncc-hover-btn); }
}
html[data-theme] .ncc-map-box a.ncc-map-open:focus-visible { outline: 2px solid var(--ncc-focus); outline-offset: 2px; }

@media (max-width: 1024px) {
  .ncc-map-layout { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .ncc-map-filters { position: static; }
  .ncc-map-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  html[data-theme] .ncc-map-box { height: 60dvh; min-height: 360px; }
}
/* Phones: the map runs edge to edge from the header and stops 56px short of the screen's foot, so the footer's top shows:
   that strip is where a thumb scrolls the page on (a drag on the map moves the map). Filter floats over its lower right. Filter opens the form as a bottom sheet, the cases page's "Filter and sort" sheet:
   grabber, title and close, 44px rows, Show N cases; it closes on Show, the X, the dimmed page, Escape or a swipe down.
   The bar is also where the page scrolls from, since a drag on the map moves the map. */
@media (max-width: 767px) {
  body.ncc-map-page .site-main > article { padding: 0; } /* the margin round the box is where a thumb scrolls the page: on the map itself a drag moves the map */
  .ncc-map-layout { display: flex; flex-direction: column; align-items: stretch; row-gap: 0; } /* the tablet layout's 24px gap made the bottom margin uneven */
  .ncc-map-filters { order: 2; }
  .ncc-map-layout { position: relative; }
  html[data-theme] .ncc-map-box { height: calc(100svh - var(--ncc-header-h, 57px) - var(--wp-admin--admin-bar-height, 0px) - 56px); min-height: 360px; border: 0; border-radius: 0; } /* a box again, its corners and line; 56px short of the screen with the margin under it and the footer's top showing, so the page plainly scrolls on */
  .ncc-map-box .leaflet-control-zoom { display: none; } /* pinch zooms */
  /* Filter floats over the map's lower right, above the credits and clear of Safari's bottom toolbar (as on the cases
     page); the case count and the bar's Clear filters are desktop-only (Clear is in the sheet on phones) */
  .ncc-map-status { position: absolute; right: var(--ncc-gutter); bottom: 36px; z-index: 1001; min-height: 0; margin: 0; } /* inside the box's lower right, above Leaflet's controls (1000) and its credits line */
  .ncc-map-status :is(p, .ncc-map-clear) { display: none !important; }
  html[data-theme] .ncc-map-status .ncc-map-filter-btn { height: 48px; }
  /* Filter: the cases page's phone Filter button (white, the menu shadow, the three-line glyph and the word) */
  html[data-theme] .ncc-map-filter-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 16px 0 14px; border: 0; border-radius: var(--ncc-radius-control); background: var(--ncc-surface); color: var(--ncc-ink); box-shadow: var(--ncc-float-shadow); font: 500 var(--ncc-step-body)/1 var(--ncc-font); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  html[data-theme] .ncc-map-filter-btn:is(:hover, :focus) { background: var(--ncc-surface); color: var(--ncc-ink); } /* the theme's button hover fill sticks after a tap on iOS */
  .ncc-map-filter-btn:focus-visible { outline: 2px solid var(--ncc-focus); outline-offset: 2px; }
  .ncc-map-filter-btn .ncc-icon { width: 18px; height: 18px; }
  html[data-theme] .ncc-map-filter-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: var(--ncc-pill); background: var(--ncc-primary); color: var(--ncc-primary-fg); font-size: 12px; font-variant-numeric: tabular-nums; }
  html[data-theme] .ncc-map-filter-n[hidden] { display: none; }
  @media (prefers-reduced-motion: no-preference) { .ncc-map-status button:active { scale: 0.97; transition: scale var(--ncc-dur-press) var(--ncc-ease-out); } }

  /* the sheet */
  html[data-theme] .ncc-map-form { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: block; box-sizing: border-box; max-height: calc(100dvh - 48px); padding: 4px var(--ncc-gutter) calc(16px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; border-radius: 20px 20px 0 0; background: var(--ncc-surface); color: var(--ncc-ink); box-shadow: var(--ncc-float-shadow); translate: 0 100%; transition: translate var(--ncc-dur-ui) var(--ncc-ease-out); will-change: transform; }
  .ncc-map-form[hidden] { display: none !important; }
  html[data-theme] .ncc-map-form.is-open { translate: 0 0; transition-duration: var(--ncc-dur-travel); } /* rises in 300ms, leaves in 200ms */
  .ncc-map-sheet-backdrop { position: fixed; inset: calc(var(--ncc-header-h, 57px) + var(--wp-admin--admin-bar-height, 0px)) 0 0; z-index: 9998; background: rgb(0 0 0 / 0.4); opacity: 0; transition: opacity var(--ncc-dur-ui) ease-out; touch-action: none; } /* from the header down: Safari paints the status-bar strip from the header and never dims it */
  .ncc-map-sheet-backdrop.is-open { opacity: 1; transition-duration: var(--ncc-dur-travel); }
  html[data-theme] .ncc-map-sheet-grabber { display: block; width: 36px; height: 5px; margin: 4px auto 0; border-radius: var(--ncc-pill); background: var(--ncc-border-strong); }
  html[data-theme] .ncc-map-sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
  html[data-theme] .ncc-map-sheet-head h2 { margin: 0; color: var(--ncc-ink); font: 600 var(--ncc-step-lead)/1.3 var(--ncc-font); letter-spacing: -0.01em; }
  html[data-theme] .ncc-map-sheet-close { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: var(--ncc-radius-control); background: none; color: var(--ncc-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  html[data-theme] .ncc-map-sheet-close:is(:hover, :focus) { background: none; color: var(--ncc-ink); }
  html[data-theme] .ncc-map-sheet-close:active { background: var(--ncc-muted-bg); }
  .ncc-map-sheet-close:focus-visible { outline: 2px solid var(--ncc-focus); outline-offset: 0; }
  /* the options as the cases page sheet's chips: filled, 44px, wrapping; ticked, the ink fill. The box is kept for the
     keyboard and screen readers but not drawn. */
  .ncc-map-form .ncc-map-group { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 16px; }
  html[data-theme] .ncc-map-group legend { float: left; width: 100%; margin: 0 0 12px; color: var(--ncc-ink); font-weight: 500; }
  html[data-theme] .ncc-map-option { gap: 6px; min-height: 44px; margin: 0; padding: 0 16px; background: var(--ncc-muted-bg); color: var(--ncc-ink); font-size: var(--ncc-step-small); font-weight: 500; -webkit-tap-highlight-color: transparent; }
  html[data-theme] .ncc-map-option:has(input:checked) { background: var(--ncc-primary); color: var(--ncc-primary-fg); }
  html[data-theme] .ncc-map-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .ncc-map-option span:first-of-type { flex: none; }
  html[data-theme] .ncc-map-option .ncc-map-count { color: inherit; opacity: 0.6; }
  html[data-theme] .ncc-map-option.is-empty { color: var(--ncc-muted); }
  html[data-theme] .ncc-map-option:has(input:focus-visible) { outline: 2px solid var(--ncc-focus); outline-offset: 2px; }
  @media (prefers-reduced-motion: no-preference) { .ncc-map-option:active { scale: 0.97; transition: scale var(--ncc-dur-press) var(--ncc-ease-out); } }
  /* the sheet's foot: Clear (once anything is ticked) beside Show N cases */
  .ncc-map-sheet-foot { display: flex; gap: 8px; margin-top: 8px; }
  html[data-theme] .ncc-map-form .ncc-map-sheet-show { display: flex; flex: 1; align-items: center; justify-content: center; height: 52px !important; /* .ncc-button sets its own */ border-radius: var(--ncc-radius-control); background: var(--ncc-primary); color: var(--ncc-primary-fg); font-size: var(--ncc-step-body) !important; font-weight: 500; }
  html[data-theme] .ncc-map-sheet-clear { display: flex; align-items: center; height: 52px; margin: 0; padding: 0 20px; border: 0; border-radius: var(--ncc-radius-control); background: var(--ncc-muted-bg); color: var(--ncc-ink); font: 500 var(--ncc-step-body)/1 var(--ncc-font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  html[data-theme] .ncc-map-sheet-clear:is(:hover, :focus) { background: var(--ncc-muted-bg); color: var(--ncc-ink); }
  .ncc-map-sheet-clear[hidden] { display: none !important; }

  /* popups at phone width (map.js sizes them to the screen): stacked, as map apps show a place. A 64px photo beside the
     name and chips; the summary across the whole card under them; a full-width View case button at the foot. */
  .ncc-map-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "photo ." "photo name" "photo chips" "photo ." "text text" "open open"; grid-template-rows: 1fr auto auto 1fr; align-items: start; gap: 0 12px; padding: 14px; } /* the name and chips sit together, centred beside the photo (two flexible rows above and below take its spare height) */ /* row gap 0: the desktop card's 16px gap added 48px between the rows */
  :is(.ncc-map-text, .ncc-map-head) { display: contents; }
  html[data-theme] .ncc-map-photo { grid-area: photo; width: 64px; height: 80px; border-radius: 6px; }
  html[data-theme] .ncc-map-text strong { grid-area: name; padding: 0; font-size: 17px; line-height: 1.3; }
  html[data-theme] .ncc-map-chips { grid-area: chips; gap: 4px; margin-top: 6px; }
  html[data-theme] .ncc-map-chips span { padding: 5px 8px 6px; font-size: 12px; line-height: 12px; }
  html[data-theme] .ncc-map-excerpt { grid-area: text; margin: 12px 0 0; font-size: 15px; line-height: 1.45; }
  html[data-theme] .ncc-map-box a.ncc-map-open { grid-area: open; justify-content: center; gap: 8px; width: auto; height: 44px; margin-top: 14px; padding: 0 16px; font-size: var(--ncc-step-small); }
  :is(.ncc-map-open-word, .ncc-map-open-case) { display: inline; } /* "View case": the button is wide enough to say what it opens */
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  html[data-theme] .ncc-map-form, html[data-theme] .ncc-map-form.is-open { translate: 0 0; opacity: 0; transition: opacity var(--ncc-dur-fade) ease-out; }
  html[data-theme] .ncc-map-form.is-open { opacity: 1; }
}

/* Clear filters (sidebar and the empty map): a quiet filled control, as the site's secondary buttons */
html[data-theme] :is(.ncc-map-clear, .ncc-map-empty button) {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: var(--ncc-radius-control);
  background: var(--ncc-muted-bg);
  color: var(--ncc-ink);
  font: 500 13px/1 var(--ncc-font);
  cursor: pointer;
  transition: background-color var(--ncc-dur-fade) ease-out;
}
html[data-theme] .ncc-map-clear[hidden] { display: none; }
@media (hover: hover) {
  html[data-theme] :is(.ncc-map-clear, .ncc-map-empty button):hover { background: var(--ncc-hover-btn, var(--ncc-border)); }
}

/* No matches: a card in the middle of the empty map */
html[data-theme] .ncc-map-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 800;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-radius: var(--ncc-radius-control);
  background: var(--ncc-surface);
  box-shadow: var(--ncc-float-shadow);
  translate: -50% -50%;
}
html[data-theme] .ncc-map-empty[hidden] { display: none; }
html[data-theme] .ncc-map-empty p { margin: 0; color: var(--ncc-ink); font-size: var(--ncc-step-small); }

/* Pins: an ink teardrop with a surface-coloured centre and edge (the clusters' colours). It grows a little from its
   tip on hover and while its popup is open. */
.ncc-map-pin { background: none; border: 0; }
.ncc-map-pin svg { display: block; overflow: visible; transform-origin: 50% 97%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); transition: scale var(--ncc-dur-fade) var(--ncc-ease-out); }
html[data-theme] .ncc-map-pin-body { fill: var(--ncc-primary); stroke: var(--ncc-surface); stroke-width: 1.5; }
html[data-theme] .ncc-map-pin-dot { fill: var(--ncc-surface); }
@media (hover: hover) {
  .ncc-map-pin:hover svg { scale: 1.12; }
}
.ncc-map-pin.ncc-map-pin--open svg { scale: 1.18; }
html[data-theme] .ncc-map-box .ncc-map-cluster:focus-visible { outline: 2px solid var(--ncc-focus); outline-offset: 2px; }
html[data-theme] .ncc-map-box .ncc-map-pin:focus-visible { outline: 2px solid var(--ncc-focus); outline-offset: 1px; border-radius: 6px; }

/* Zoom buttons: the site's control look (surface, ink glyph, 8px corners) instead of Leaflet's blue on white squares */
html[data-theme] .ncc-map-box .leaflet-bar { overflow: hidden; border: 0; border-radius: var(--ncc-radius-control); box-shadow: var(--ncc-float-shadow); }
html[data-theme] .ncc-map-box .leaflet-bar a {
  width: 32px;
  height: 32px;
  border: 0;
  border-bottom: 1px solid var(--ncc-border);
  border-radius: 0;
  background: var(--ncc-surface);
  color: var(--ncc-ink);
  font: 400 18px/32px var(--ncc-font);
  text-decoration: none;
  transition: background-color var(--ncc-dur-fade) ease-out;
}
html[data-theme] .ncc-map-box .leaflet-bar a:last-child { border-bottom: 0; }
@media (hover: hover) {
  html[data-theme] .ncc-map-box .leaflet-bar a:hover { background: var(--ncc-muted-bg); color: var(--ncc-ink); }
}
html[data-theme] .ncc-map-box .leaflet-bar a.leaflet-disabled { background: var(--ncc-surface); color: var(--ncc-faint); }
html[data-theme] .ncc-map-box .leaflet-bar a:focus-visible { outline: 2px solid var(--ncc-focus); outline-offset: -2px; }
html[data-theme] .ncc-map-box .leaflet-top.leaflet-left .leaflet-control { margin: 12px 0 0 12px; }

/* Credits: muted, not link blue */
html[data-theme] .ncc-map-box .leaflet-control-attribution { padding: 2px 6px; background: color-mix(in srgb, var(--ncc-surface) 80%, transparent); color: var(--ncc-muted); }
html[data-theme] .ncc-map-box .leaflet-control-attribution a { color: inherit; text-decoration: none; }
html[data-theme] .ncc-map-box .leaflet-control-attribution a:hover { color: var(--ncc-ink); text-decoration: underline; }

/* Between-zoom levels scale the tiles by a fraction, and each tile's half-transparent edge pixels left hairline seams.
   plus-lighter adds the two edges up to a solid pixel (Leaflet 2.0's own fix; the tile container isolates the blend). */
.ncc-map-box .leaflet-tile-container img.leaflet-tile { mix-blend-mode: plus-lighter; }
