/* ── Hørsholmvejr — Forecast multi-model chart (reusable component) ───────────
   Styles for the chart component: chips, resolution toggle, panel chrome, stacked
   plot boxes. Pairs with /assets/js/forecast-chart.js and the src/views partial.
   Lifted verbatim from prognose.php so the component renders identically wherever
   it is included (prognose now, forside/verdikt later) — one source, no copies.
   All colour goes through the CSS tokens in tokens.css (light/dark aware).

   The chart panel uses its OWN classes (.fc-panel / .fc-cap) so it never depends
   on a host page's generic .panel; density is a height/tightness variant only. */

/* ── controls bar (model chips + resolution toggle) ──────────────────────────── */
.controls{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 6px;align-items:center}
.chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);
  background:var(--surface);border-radius:999px;padding:7px 13px;font-size:12.5px;
  font-weight:600;cursor:pointer;user-select:none;font-family:var(--mono);letter-spacing:.02em;
  color:var(--ink);transition:opacity .15s}
.chip .sw{width:11px;height:11px;border-radius:3px;flex:none}
/* OFF state: shading (dim + muted fill) AND strikethrough — consistent with chart legend */
.chip[aria-pressed="false"]{opacity:.45;background:var(--paper);color:var(--muted)}
.chip[aria-pressed="false"] .chip-name{text-decoration:line-through;text-decoration-thickness:1.5px}
.chip[aria-pressed="false"] .sw{opacity:.4}
.chip:hover{opacity:1}
.metric{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;font-family:var(--mono)}
.metric button{border:0;background:var(--surface);font:inherit;font-size:12px;font-weight:600;
  color:var(--muted);padding:7px 13px;cursor:pointer;transition:background .1s}
.metric button.on{background:var(--ink);color:var(--paper)}
.res-hint{font-size:11px;color:var(--muted);letter-spacing:.02em;align-self:center;font-family:var(--mono)}
.ch-h{font-size:13px;font-weight:700;color:var(--ink);margin:14px 0 4px;
  font-family:var(--mono);letter-spacing:.02em}
.ch-h:first-of-type{margin-top:2px}

/* ── chart panel (component-owned; distinct from any host .panel) ─────────────── */
.fc-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;margin-top:10px}
.fc-panel h3{font-size:15px;font-weight:700;letter-spacing:-.01em;margin-bottom:4px;color:var(--ink)}
.fc-panel .fc-cap{font-size:12px;color:var(--muted);margin-bottom:12px;line-height:1.5}
.chart-box{height:280px;position:relative}

/* ── density: 'kompakt' shrinks the plot boxes (forside/mobil) — height only ──── */
.fc-root[data-fc-density="kompakt"] .chart-box{height:180px}
