/* ============================================================================
   course-widgets/waveform-plot.css -- widget #23

   stylized concentration-over-time waveform cards for side-by-side comparison.
   theme-token colors only; the trace color encodes the data line so it uses the
   library accent (--cw-accent), which a course may override on the mount.
   ============================================================================ */

.cw-waveform { display: block; }

.cw-wf-row {
    display: grid;
    grid-template-columns: repeat(var(--cw-cols, auto-fit), minmax(180px, 1fr));
    gap: var(--cw-gap);
}

.cw-wf-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 12px;
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    color: var(--cw-text);
}

.cw-wf-head { display: flex; flex-direction: column; gap: 2px; }
.cw-wf-label { font-weight: 600; font-size: 0.95rem; color: var(--cw-text); }
.cw-wf-caption { font-size: 0.78rem; color: var(--cw-muted); line-height: 1.35; }

.cw-wf-plot-wrap { position: relative; display: flex; align-items: stretch; }

.cw-wf-plot {
    width: 100%;
    height: 96px;
    display: block;
    border-radius: 8px;
    background: var(--cw-bg);
    border: 1px solid var(--cw-border);
}

.cw-wf-fill { fill: var(--cw-accent-soft); stroke: none; }
.cw-wf-line {
    fill: none;
    stroke: var(--cw-accent);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.cw-wf-axis {
    stroke: var(--cw-border);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.cw-wf-ylabel {
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-size: 0.64rem;
    color: var(--cw-muted);
    pointer-events: none;
    white-space: nowrap;
}

.cw-wf-xlabel {
    align-self: center;
    font-size: 0.66rem;
    color: var(--cw-muted);
}
