/* Wire explorer: the sliders, the material and temperature buttons, the picture of the wire and the readout.
   Builds on the shared .explorer, .btn and .cx styles in styles.css and uses its colour tokens (they exist for light, for
   prefers-color-scheme: dark and for data-theme="dark"), so this file declares none of its own. */
.wire-explorer { min-width: 0; }

.we-hint { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.we-body-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: flex-start; }
.we-panel { flex: 1 1 15rem; min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.we-stage { flex: 1 1 20rem; min-width: 0; max-width: 460px; }

.we-slider { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.1rem 0.6rem; font-weight: 600; font-size: 0.95rem; }
.we-slider-name { overflow-wrap: break-word; min-width: 0; }
.we-value { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.we-range { flex: 0 0 100%; width: 100%; min-height: 44px; margin: 0; accent-color: var(--accent); }
.we-range:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.we-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.we-field-name { font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.we-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.we-choice { flex: 1 1 auto; min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
.we-choice[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.we-reset { min-height: 44px; min-width: 0; overflow-wrap: anywhere; }

/* The picture. Hot is not only a colour: the ions have dashed rings. The wire we compare with is a dashed outline. */
.we-chart-wrap { max-width: 460px; border-radius: 10px; }
.we-body, .we-end { fill: var(--accent-soft); stroke: var(--line); stroke-width: 2; }
.we-body--hot { fill: var(--bad-soft); stroke: var(--bad); }
.we-ion { fill: var(--wire); }
.we-plus { stroke: var(--surface); stroke-width: 1.3; fill: none; }
.we-electron { fill: var(--extra); }
.we-ring { fill: none; stroke: var(--bad); stroke-width: 1.3; stroke-dasharray: 2.5 2; }
.we-ref { fill: none; stroke: var(--axis); stroke-width: 1.5; stroke-dasharray: 5 3; }
.we-dimension { fill: none; stroke: var(--axis); stroke-width: 1.5; }
.we-tick { font-size: 13px; }

.we-key { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; overflow-wrap: anywhere; }

/* The readout is the live region: it is also what the student reads. */
.we-readout { margin: 0.7rem 0 0; padding: 0.55rem 0.75rem; border-radius: 10px; background: var(--accent-soft); font-weight: 600; font-size: 0.95rem; line-height: 1.4; overflow-wrap: anywhere; }
.we-rule { margin-top: 0.45rem; font-weight: 500; }
