/* Joburg Watch (/joburg-watch): the canvas v17 design inside the public dashboard shell.
   The page is drawn by the canvas runtime (support.js) from src/views/joburg-watch/template.html. The colours,
   fonts and sizes are inline in that template; this file holds only what the canvas kept in a <helmet> block, scoped
   to .jw so it cannot touch the site menu, plus the shell fixes (sticky offsets under the fixed top bar).
   Colours: the template and logic.js use the page tokens --jw-* below, which reference the shared --id-* tokens
   (assets/css/dashboard-theme.css), so the page follows light and dark with no per-theme rules except the two
   page-scoped values at the end. Party colours are the only colours set directly (data identity, in logic.js). */
main.jw {
  --jw-ink: var(--id-heading);          /* text, filled marks, outlines */
  --jw-ink2: var(--id-text-2);          /* secondary text */
  --jw-paper: var(--id-bg);             /* page */
  --jw-white: var(--id-surface);        /* cards, inputs, and the gaps drawn between fills */
  --jw-tint: var(--id-surface-2);       /* selected row, echo bar, empty bars */
  --jw-muted: var(--id-surface-3);      /* chips, tracks, row dividers */
  --jw-line: var(--id-line);
  --jw-line2: var(--id-chart-neutral);  /* control borders, empty seat outline */
  --jw-on-ink: var(--id-surface);       /* text and icons on an ink fill */
  --jw-on-ink-2: color-mix(in srgb, var(--jw-on-ink) 80%, var(--jw-ink));
  --jw-rest: var(--id-chart-neutral);   /* the "up to" part of a range, other candidates */
  --jw-pend: var(--id-chart-neutral);   /* still-counting hatch */
  /* ward margin ramp, closest to widest: ink, ink2, mid, light */
  --jw-bin1: var(--id-heading);
  --jw-bin2: var(--id-text-2);
  --jw-bin3: var(--id-chart-neutral);
  --jw-bin4: var(--id-line);
  /* page-scoped, light value then dark value */
  --jw-bin3-text: var(--id-heading);
  --jw-shadow: rgba(4, 52, 80, 0.14);
}
:root[data-theme="dark"] main.jw { --jw-bin3-text: var(--id-bg); --jw-shadow: rgba(0, 0, 0, 0.5); }
main.jw { display: block; background: var(--jw-paper); color: var(--jw-ink); min-height: calc(100vh - var(--dashboard-header-height, 78px)); }
.jw *, .jw *::before, .jw *::after { box-sizing: border-box; }
.jw #dc-root > div { min-height: calc(100vh - var(--dashboard-header-height, 78px)) !important; }
.jw a { color: var(--id-link); text-underline-offset: 2px; }
.jw a:hover { color: var(--jw-ink); }
.jw input { background: var(--jw-white); color: var(--jw-ink); }
.jw .jw-stk { stroke: var(--jw-ink); }
.jw .jw-stk-on { stroke: var(--jw-on-ink); }
.jw button { font-family: inherit; }
.jw .jw-bnav { display: flex; }
.jw .jw-tnav { display: none; }
.jw .jw-head { position: relative; }
.jw details > summary { list-style: none; }
.jw details > summary::-webkit-details-marker { display: none; }
.jw details[open] .jw-chev { transform: rotate(90deg); }
.jw .jw-rail { scrollbar-width: none; }
.jw .jw-rail::-webkit-scrollbar { display: none; }
.jw button:focus-visible, .jw a:focus-visible, .jw summary:focus-visible, .jw input:focus-visible, .jw #jwRowsTitle:focus-visible { outline: 3px solid var(--id-focus); outline-offset: 2px; }
@media (min-width: 760px) { .jw .jw-bnav { display: none; } .jw .jw-tnav { display: flex; } .jw .jw-head { position: sticky; top: var(--dashboard-header-height, 78px); } }
@media (prefers-reduced-motion: reduce) { .jw * { transition: none !important; animation: none !important; } }
/* section anchors clear the fixed site bar (and the sticky page bar from 760 px) */
.jw [id] { scroll-margin-top: calc(var(--dashboard-header-height, 78px) + 8px) !important; }
@media (min-width: 760px) { .jw [id] { scroll-margin-top: calc(var(--dashboard-header-height, 78px) + 72px) !important; } }
/* the site styles bare tags (section, h1, h2, p, header, footer, nav); undo what the design does not expect */
.jw section { display: block; flex-direction: initial; justify-content: initial; align-items: stretch; text-align: left; margin: 0; padding-left: 0; padding-right: 0; padding-bottom: 0; min-height: 0; width: auto; }
.jw .jw-noscript { max-width: 680px; margin: 0 auto; padding: 24px 16px; font-family: var(--id-font); }
/* the beta notice sits in the same 1200px column as the page (it is outside the canvas root) */
main.jw > .dashboard-beta-notice { box-sizing: border-box; width: calc(100% - 2 * var(--id-gutter)); max-width: calc(var(--id-content-max) - 2 * var(--id-gutter)); margin: 24px auto 0; }
