/* Labs for the El Niño, La Niña, IOD and MJO course (drivers-labs.js). */
.drv-lab{display:grid;gap:.6rem}
.drv-lab .drv-svg{width:100%;height:auto;display:block}
.drv-controls{display:flex;flex-wrap:wrap;gap:.8rem 1.4rem;align-items:end}
.drv-slider{display:grid;gap:.2rem;flex:1 1 15rem;font-size:.9rem}
.drv-slider input{width:100%;accent-color:var(--vl-low,#c2412f)}
.drv-ends{display:flex;justify-content:space-between;font-size:.78rem;opacity:.75}
.drv-ends b{font-weight:600}
.drv-play{font:inherit;padding:.45rem .9rem;border-radius:.5rem;border:1px solid currentColor;background:transparent;cursor:pointer}
.drv-play:focus-visible,.drv-slider input:focus-visible{outline:3px solid var(--vl-region,#e8922f);outline-offset:2px}
.drv-read{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;margin:0;font-size:.92rem}
.drv-read b{margin-right:.3rem}
.drv-caption{margin:0;font-size:.95rem;min-height:2.6em}
.drv-note{margin:0;font-size:.82rem;opacity:.75}
.drv-loop{display:grid;gap:.3rem;margin:0;padding-left:1.3rem;font-size:.88rem}
.drv-loop li{opacity:.5}.drv-loop li.is-done{opacity:.75}.drv-loop li.is-on{opacity:1;font-weight:600}
.drv-mjo-row{display:grid;gap:.4rem;justify-items:center}
.drv-wheel{width:100%;max-width:340px;height:auto}
.drv-narrow{max-width:460px;margin:0 auto}

/* Story pictures: the fan turns while it blows (not with reduced motion). */
.drv-story [data-spin]{animation:drv-spin 1s linear infinite}
@keyframes drv-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.drv-story [data-spin]{animation:none}}
.drv-lab [hidden]{display:none}
.drv-caption:empty{display:none}
