/* Design B - Filters as a top-dropdown (drops from the top; frees vertical space).
   Neutral scheme. A sticky wrapper keeps the bar AND the expanded panel pinned while
   you scroll, like the dashboard accordion. */
.dw-stick{position:sticky;top:0;z-index:40;background:var(--bg);margin:0 0 12px}
.dw-bar{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:8px 0 10px;margin:0;border-bottom:1px solid var(--line)}
.dw-bar .nv-acc{flex:1;min-width:220px;margin:0}

/* ── item 2: the Filters button - wider, gear icon, yellow-highlighter when active ── */
.dw-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:160px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 18px;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap;flex:none;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:background .15s ease,color .15s ease,border-color .15s ease}
.dw-btn .dw-gear{width:16px;height:16px;flex:none}
.dw-btn:hover{background:var(--panel2);border-color:#d7d7d3}
.dw-btn.on{background:var(--accent);color:#000;border-color:var(--accent)}   /* yellow highlighter, black text when selected */
.dw-chev{font-weight:800}

/* ── note 2: slightly darker plot background so the yellow highlighter pops ── */
.chartbox{background:#e9ebee;border-radius:10px;overflow:hidden}

/* ── note 4: hover tooltip - dark gray instead of black, so series colors (incl. black) pop ── */
#chtt{background:rgba(56,60,66,0.97)!important}

/* ── note 1: collapse toggles for the KPI row and each graph card ── */
.d2-sechd{display:flex;align-items:center;gap:10px;margin:2px 0 8px;cursor:pointer;user-select:none}
.d2-secttl{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);font-weight:700}
.d2-caret{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:7px;color:var(--mut);cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}
.d2-sechd .d2-caret{margin-left:0}
.d2-caret:hover{background:var(--accent);border-color:var(--accent);color:#000}
.d2-cv{display:inline-block;font-size:11px;line-height:1;transition:transform .2s ease}
.d2-sechd.d2-collapsed .d2-cv,.card.d2-collapsed .d2-cv{transform:rotate(180deg)}
.kpis.d2-hide{display:none}
/* graph card: caret sits at the right of the title; collapsing hides everything below the h3 */
.card h3{display:flex;align-items:center;gap:10px}
.card h3 .d2-caret-h{margin-left:auto}
.card.d2-collapsed>*:not(h3){display:none}

/* ── item 3: panel does NOT clip - picker popovers escape the filter window ── */
.dw-panel{display:none;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;margin:10px 0 0;box-shadow:0 10px 26px rgba(0,0,0,.12);overflow:visible}
.dw-panel.open{display:block}
/* note 1: in-panel collapse header */
.dw-phead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0;padding:12px 0 0;border-top:1px solid var(--line)}
.dw-ptitle{display:inline-flex;align-items:center;gap:7px;font-weight:800;font-size:14px;color:var(--ink)}
.dw-ptitle .dw-gear,.dw-ptitle .dw-book{width:16px;height:16px;flex:none}
/* Ensure .dw-book (image or svg) stays small and aligned across buttons/headers */
.dw-book{width:16px;height:16px;flex:none;display:inline-block;object-fit:contain;vertical-align:middle;margin-right:8px}
.dw-close{display:inline-flex;align-items:center;gap:6px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:6px 12px;font:inherit;font-weight:700;font-size:12.5px;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}
.dw-close:hover{background:var(--accent);border-color:var(--accent);color:#000}
.dw-panel .controls{background:transparent;border:0;padding:0;margin:0 0 8px}
.dw-panel .occbar,.dw-panel .masters,.dw-panel .master{margin:0 0 12px}

/* User guide panel & button */
.dw-guide-btn{min-width:140px}
.dw-guide-panel{display:none;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;margin:10px 0 0;box-shadow:0 10px 26px rgba(0,0,0,.10);overflow:auto}
.dw-guide-panel.open{display:block}
.dw-guide-content{padding:10px 0;color:var(--ink);line-height:1.45}
.dw-guide-par{min-height:40px;margin:0 0 12px;padding:10px;border-radius:8px;background:linear-gradient(90deg,rgba(0,0,0,0.01),rgba(0,0,0,0.01));box-shadow:inset 0 1px 0 rgba(255,255,255,0.02)}

/* ── SVG download button on each chart card (sits by the collapse caret) ── */
.dlsvg{display:inline-flex;align-items:center;justify-content:center;height:26px;padding:0 9px;font:inherit;font-size:10.5px;font-weight:700;letter-spacing:.03em;color:var(--mut);background:var(--panel);border:1px solid var(--line);border-radius:7px;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}
.dlsvg:hover{background:var(--accent);border-color:var(--accent);color:#000}
.card h3 .dlsvg{margin-left:6px}

/* item 1's dashboard-nav chips live in shared/shared.css, so the notes
   page - which loads no styles/shell2.css - renders the same component. The bar-specific
   rule .dw-bar .nv-acc{flex:1...} above stays here; nothing about it is shared. */

/* Small-view modal: shown on very narrow viewports (<=300px) */
.smallview-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.45);z-index:9999}
.smallview-inner{max-width:320px;width:88%;background:var(--panel);color:var(--ink);padding:14px;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);text-align:center}
.smallview-inner p{margin:0 0 12px;line-height:1.3}
.smallview-actions{display:flex;gap:8px;justify-content:center}
.smallview-actions button{padding:8px 10px;border-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-weight:700;cursor:pointer}
.smallview-actions button:hover{background:var(--accent);border-color:var(--accent);color:#000}

/* footer: apply to the .foot container or the #footnote element */
.foot, #footnote {
   color: var(--mut);
   font-size: 12px;
   margin: 18px auto 0; /* center and add vertical spacing */
   border-top: 1px solid var(--line);
   padding: 10px 0 0;
   white-space: pre-line;
   max-width: 980px; /* don't exceed dashboard width */
   width: 100%;
   box-sizing: border-box;
}

/* ── The "Reading the data" bar control and the inline marker ─────────────────
   The control is an <a>, not a <button>, because it NAVIGATES while the two beside it
   open a panel in place. It takes the same .dw-btn box so the bar still reads as one
   row, and THREE channels separate it, none of them colour: the element itself, the
   arrow where Filters and User guide carry a chevron, and a link's underline. It never
   takes the .on state, because it has no state. */
a.dw-btn{text-decoration:underline;text-underline-offset:3px}
a.dw-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.dw-arrow{font-weight:800;font-size:13px}
/* The marker. 16px, aria-hidden glyph inside a link that carries the warning in words
   for a screen reader. Measured at 0px of table-header height in Chromium: the row is
   29px with it and 29px without. */
.docmark{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;
  margin:0 0 0 5px;line-height:1;font-size:12px;color:var(--ink);text-decoration:none;
  border-radius:50%;flex:none;vertical-align:baseline}
.docmark:hover{background:#f0f0ee}
.docmark:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
