/* WCCA water quality dashboard: tokens, then resets that keep the theme's styles out.
   Sizes are in px, not rem, because many themes shrink the root font size (62.5%),
   and every rule starts with #dash-root so it outranks the theme's own rules. */
#dash-root {
  --wq-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wq-font-serif: Georgia, "Times New Roman", serif;
  --color-fg: #1f1e1d;
  --color-fg-muted: #6b6a66;
  --color-bg: #ffffff;
  --color-panel: #ffffff;
  --color-border-line: #e3e1db;
  --color-ok: #2f7d4f;
  --color-warn: #a86b00;
  --color-bad: #c0392b;
  --cds-text-secondary: #6b6a66;
  --cds-surface-popover: #f5f4f0;
  --cds-border: #d6d3cb;
  --cds-shadow-popover: 0 4px 16px rgba(0, 0, 0, .12);
  --cds-chart-grid: #ecebe6;
  --cds-chart-axis: #c9c6bd;
  --cds-chart-muted: #b4b1a8;
  --cds-chart-reference: #55534e;
  --cds-chart-status-critical: #d1442f;
  --wq-series-1: #2b6cb0;
  --wq-road: #a9a69d;
  --wq-water: #6fa8dc;
  --cds-gap-xs: 4px;
  --cds-gap-sm: 8px;
  --cds-gap-md: 12px;
  --cds-gap-lg: 20px;
  --cds-pad-xs: 4px;
  --cds-pad-sm: 8px;
  --cds-pad-lg: 16px;
  --cds-pad-xl: 24px;
  --cds-radius: 6px;
  --cds-font-size-caption: 13px;
  --cds-font-size-body: 15px;
  --cds-font-size-heading: 17px;
  --cds-font-size-title: 32px;
  --cds-font-weight-medium: 500;
  --cds-dur-slow: .3s;
  color: var(--color-fg);
  font-family: var(--wq-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  max-width: 100%;
}
#dash-root [hidden] { display: none !important; }
#dash-root.alignfull { padding-left: 16px; padding-right: 16px; }
#dash-root *, #dash-root *::before, #dash-root *::after { box-sizing: border-box; }
#dash-root :where(div, section, header, p, span, b, a, label, table, thead, tbody, tr, th, td, ul, li, h1, h2, select, option, optgroup, input, button, dialog) {
  font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: normal; text-transform: none; text-shadow: none;
}
#dash-root :where(p, span, a, label, td, li, select, option, input, button, dialog, div) { font-weight: inherit; }
#dash-root :where(h1, h2) { color: var(--color-fg); line-height: 1.2; padding: 0; border: 0; }
#dash-root :where(p) { margin: 0; padding: 0; }
#dash-root :where(button, select, input) {
  height: auto; min-height: 0; width: auto; max-width: 100%; margin: 0; line-height: 1.3;
  box-shadow: none; text-transform: none; letter-spacing: normal; color: var(--color-fg); background-image: none;
}
#dash-root :where(select) { padding: 4px 28px 4px 8px; appearance: auto; -webkit-appearance: menulist; }
#dash-root :where(input) { padding: 2px 4px; }
#dash-root :where(button) { padding: 4px 8px; }
#dash-root :where(table) { margin: 0; border: 0; table-layout: auto; width: 100%; }
#dash-root :where(th, td) { border-left: 0; border-right: 0; border-top: 0; background: none; }
#dash-root :where(svg) { max-width: none; height: auto; }
#dash-root :where(svg text) { font-family: inherit; }
#dash-root :where(a) { text-decoration: underline; }
#dash-root .dash-skeleton { background: linear-gradient(90deg, var(--cds-surface-popover), var(--color-panel), var(--cds-surface-popover)); background-size: 200% 100%; animation: wq-pulse 1.4s ease-in-out infinite; border-radius: var(--cds-radius); }
@keyframes wq-pulse { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
#dash-root .wq-sw.line { width: 16px; height: 0; border-radius: 0; border-top: 2px solid; }
#dash-root .wq-sw.line.road { border-color: var(--wq-road); }
#dash-root .wq-sw.line.water { border-color: var(--wq-water); }

/* basemap site map (site-map.js) */
#dash-root .wq-lmap { width: 100%; border-radius: var(--cds-radius); z-index: 0; font-family: var(--wq-font-sans); }
#dash-root .leaflet-container a { text-decoration: none; }
#dash-root .leaflet-container img { max-width: none !important; max-height: none !important; box-shadow: none; margin: 0; padding: 0; border: 0; }
#dash-root .leaflet-control-layers label { font-size: 13px; display: block; margin: 2px 0; }
#dash-root .leaflet-control-layers input { width: auto; height: auto; padding: 0; margin: 0 4px 0 0; }
#dash-root .leaflet-control-attribution { font-size: 11px; }
#dash-root .leaflet-tooltip.wq-llbl { background: none; border: 0; box-shadow: none; padding: 0; font-size: 12px; font-weight: 600; color: #1f1e1d; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
#dash-root .leaflet-tooltip.wq-llbl::before { display: none; }
#dash-root .leaflet-tooltip.wq-llbl.sel { font-size: 14px; color: var(--wq-series-1); }
#dash-root .leaflet-tooltip.wq-ltip { font-size: 13px; line-height: 1.35; width: 240px; white-space: normal; padding: 6px 8px; }
#dash-root .leaflet-control-scale-line { font-size: 11px; line-height: 1.2; padding: 1px 5px; }
#dash-root .wq-lt-title { font-weight: 600; }
#dash-root .wq-lt-loc, #dash-root .wq-lt-d { color: var(--color-fg-muted); }
#dash-root .wq-maptabs { margin-bottom: 4px; }
#dash-root .wq-arcgis { display: flex; flex-direction: column; gap: 8px; }
#dash-root .wq-arcgis[hidden] { display: none; }
#dash-root .wq-arcgis iframe { width: 100%; height: 560px; border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); }
