/* vegter-overrides.css — project-specific additions.
   Loaded AFTER cbc-tokens.css + cbc-components.css.
   Never edit the canonical token/component files. */

/* ── Slider grid ─────────────────────────────────────────────────── */
.slider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-4);
}

.slider-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.slider-field input[type="range"] {
  flex: 1;
  accent-color: var(--c-accent);
  cursor: pointer;
  height: 4px;
}

.slider-val {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-accent-dk);
  min-width: 52px;
  text-align: right;
}

/* ── Plot tile height override for this app ──────────────────────── */
.plot-tile iframe {
  height: 460px;
}

/* ── Info-row stat override — tighter mono numbers ───────────────── */
.info-row .stat__num--mono {
  font-size: 17px;
  letter-spacing: 0.02em;
}

/* ── ctrl-strip section label spacing ───────────────────────────── */
.ctrl-strip {
  margin-bottom: var(--s-2);
}

/* ── Focus ring on sliders (accessibility) ───────────────────────── */
input[type="range"]:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Plot tile eyebrow (FIG A · ...) ─────────────────────────────── */
.plot-tile__eyebrow {
  padding: var(--s-2) var(--s-3);
  color: var(--c-ink-mute, #6a5e54);
  border-bottom: 1px dashed var(--c-rule, #c9bfae);
  letter-spacing: 0.08em;
}

/* ── Inline legend substitute (no Plotly legend on shape plots) ──── */
.plot-tile__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-2) var(--s-3);
  border-top: 1px dashed var(--c-rule, #c9bfae);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ink-mute, #4a403a);
}

.legend-swatch {
  display: inline-block;
  width: 18px;
  height: 0;
  margin-right: 6px;
  vertical-align: middle;
  border-top-width: 2.5px;
  border-top-style: solid;
}
.legend-swatch--locus  { border-top-color: var(--c-accent, #b65a1f); }
.legend-swatch--vm     { border-top-color: #a7beae; border-top-style: dotted; }
.legend-swatch--anchor {
  width: 8px; height: 8px; border-radius: 50%;
  background: #763510; border: none;
  margin-top: -2px;
}
