/* Trace explorer: the DC | AC buttons, the frequency and peak sliders, the chart and the readout.
   Builds on the shared .explorer, .btn and .cx styles in styles.css. */
.trace-explorer { min-width: 0; }

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

.te-waves { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.te-wave { flex: 1 1 auto; min-height: 44px; }
.te-wave[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.te-slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow-wrap: anywhere; align-items: center; gap: 0.1rem 0.6rem; font-weight: 600; font-size: 0.95rem; }
.te-value { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.te-range { grid-column: 1 / -1; width: 100%; min-height: 44px; margin: 0; accent-color: var(--accent); }
.te-range:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.te-slider.is-off { color: var(--muted); }
.te-slider.is-off .te-value { color: var(--muted); }
.te-range:disabled { opacity: 0.55; }
.te-note { margin: -0.3rem 0 0; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }

/* The picture. The zero line is thin and grey, the trace thick and coloured, the peak guides dashed, so colour is never the only cue. */
.te-chart-wrap { max-width: 460px; border-radius: 10px; }
.te-grid { stroke: var(--grid); stroke-width: 1; }
.te-zero { stroke: var(--axis); stroke-width: 1.5; }
.te-guide { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 5 4; }
.te-trace { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.te-trace--dc { stroke-width: 4; }
.te-tick { font-size: 13px; }

/* The readout is the live region: it is also what the student reads. */
.te-readout { margin: 0.7rem 0 0; min-height: 7.5em; 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; }
