/* Map retains its light-theme preference, consent boundary and full workspace. */
body[data-mode] { font-family: var(--pv-font-body); --accent: #08618e; --accent-soft: #e4f5fe; }
body[data-mode].dark {
  --bg: var(--pv-bg); --surface: var(--pv-surface); --ink: var(--pv-text);
  --muted: var(--pv-text-muted); --line: var(--pv-border-strong);
  --accent: var(--pv-accent); --accent-soft: var(--pv-surface-2); --focus: var(--pv-accent);
}
.app-header .brand { font: 28px/1 var(--pv-font-display); color: var(--ink); }
.app-header .brand > span > span { color: var(--accent); }
.map-site-nav { display: flex; align-items: center; gap: 4px; padding: 0 20px; height: 48px; overflow-x: auto; flex-shrink: 0; background: var(--surface); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.map-site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-size: 14px; color: var(--muted); }
.map-site-nav a:hover, .map-site-nav a[aria-current] { background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.map-site-nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.workspace { height: calc(100dvh - 120px); }
body.dark button.primary { background: var(--accent); color: var(--pv-on-accent); }
@media (max-width: 760px) {
  .app-header .brand { font-size: 24px; }
  .app-header .icon-button { min-height: 40px; min-width: 40px; flex-basis: 40px; }
  .app-header { gap: 8px; }
  .map-site-nav { padding: 0 8px; }
  .workspace { height: calc(100dvh - 108px); }
  .workspace[data-view='list'] { height: auto; min-height: calc(100dvh - 108px); }
}
@media (max-width: 359px) { .app-header .brand { font-size: 20px; } }
