/* Styling for the headless river turbine simulator. Everything is scoped under .rt so it cannot touch the rest of the page.
   Colours come from the site's own variables (with fallbacks); fonts are the site's self-hosted Space Grotesk and Inter. */
.rt{--rt-ink:var(--ink,#eef3fa);--rt-soft:var(--soft,#9fb0c6);--rt-panel:var(--panel,#0e1a2b);--rt-edge:var(--edge,#22324a);
  --rt-teal:#4fb3c0;--rt-amber:#f4a840;--rt-water:#2a9fb3; /* fixed BTF teal and amber: the site's accent2 is cyan, which made drop and velocity look alike */
  margin:28px 0;border:1px solid var(--rt-edge);border-radius:var(--r,18px);background:#0b1626;overflow:hidden;color:var(--rt-ink)}
.rt *{box-sizing:border-box;min-width:0}
.rt-head{display:flex;align-items:center;gap:14px;padding:12px 18px;background:rgba(8,17,31,.7);border-bottom:1px solid var(--rt-edge)}
.rt-head img{height:44px;width:auto;display:block}
.rt-tag{font-family:'BTF Display',system-ui,sans-serif;font-weight:500;font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;color:var(--rt-teal)}
.rt-n{margin-left:auto;font-family:ui-monospace,Consolas,monospace;font-size:.78rem;color:var(--rt-soft)}
.rt-band{padding:12px 18px 0;background:rgba(8,17,31,.7)}
.rt-title{font-family:'BTF Display',system-ui,sans-serif;font-weight:700;font-size:1.35rem;line-height:1.2;color:var(--rt-ink)}
.rt-cap{font-size:.9rem;color:var(--rt-soft);line-height:1.45}
.rt-band{padding-bottom:12px;border-bottom:1px solid var(--rt-edge)}
.rt-head{border-bottom:0}
.rt-body{padding:16px 18px 6px}
.rt-fig{position:relative;height:clamp(280px,48vw,400px);border-radius:12px;overflow:hidden;background:#0f2236}
.rt-fig canvas{position:absolute;inset:0;width:100%;height:100%}
.rt-split{margin-top:12px;display:grid;gap:6px}
.rt-bar{display:flex;height:14px;border-radius:7px;overflow:hidden;background:var(--rt-edge)}
.rt-bar i{display:block;height:100%;transition:width .4s}
.rt-bar .k{background:var(--rt-water)}.rt-bar .h{background:var(--rt-amber)}
.rt-legend{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:.88rem;color:var(--rt-soft)}
.rt-legend b{color:var(--rt-ink);font-weight:600}
.rt-sw{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.rt-gauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:18px 0}
.rt-g{background:var(--rt-panel);border:1px solid var(--rt-edge);border-radius:12px;padding:10px 8px 8px;text-align:center}
.rt-g svg{width:100%;height:auto;display:block}
.rt-g .lab{font-size:.82rem;color:var(--rt-soft);line-height:1.3}
.rt .trk{fill:none;stroke:var(--rt-edge);stroke-width:12;stroke-linecap:round}
.rt .val{fill:none;stroke:var(--rt-water);stroke-width:12;stroke-linecap:round;transition:stroke-dasharray .5s}
.rt .ndl{transform-box:view-box;transform-origin:100px 100px;transition:transform .5s cubic-bezier(.3,1.4,.5,1)}
.rt .ndl line{stroke:var(--rt-amber);stroke-width:4;stroke-linecap:round}.rt .ndl circle{fill:var(--rt-amber)}
.rt .gv{font:700 30px 'BTF Display',system-ui,sans-serif;fill:var(--rt-ink)}.rt .gt{font:400 15px 'BTF Text',system-ui,sans-serif;fill:var(--rt-soft)}
.rt-card{background:var(--rt-panel);border:1px solid var(--rt-edge);border-radius:12px;padding:16px 18px;margin-bottom:14px}
.rt-card h3{font-family:'BTF Display',system-ui,sans-serif;font-weight:700;font-size:1.1rem;margin:0 0 12px;color:var(--rt-ink)}
.rt-presets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.rt button{font:600 .9rem 'BTF Text',system-ui,sans-serif;min-height:44px;padding:8px 14px;border-radius:999px;border:1px solid var(--rt-edge);background:transparent;color:var(--rt-ink);cursor:pointer}
.rt button:hover{border-color:var(--rt-teal)}
.rt button[aria-pressed=true]{background:var(--rt-amber);border-color:var(--rt-amber);color:#10161f}
.rt button:focus-visible,.rt input:focus-visible{outline:3px solid var(--rt-amber);outline-offset:2px}
.rt-ctl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;margin-bottom:10px}
.rt-ctl label{font-size:.92rem;font-weight:600}.rt-ctl output{font-weight:600;white-space:nowrap;text-align:right;color:var(--rt-amber)}
.rt-ctl input{grid-column:1/-1;width:100%;height:32px;accent-color:var(--rt-amber)}
.rt-eq{font-size:.92rem;line-height:1.5;padding:9px 0;border-bottom:1px solid var(--rt-edge)}
.rt-eq:last-of-type{border:0}.rt-eq b{font-weight:600;color:var(--rt-ink)}.rt-eq .n{color:var(--rt-soft);overflow-wrap:anywhere}
.rt-note{margin-top:12px;padding:12px 14px;border-radius:10px;background:#0b2a3a;font-size:.92rem;color:#C9D3E6}
.rt-foot{padding:10px 18px 12px;border-top:1px solid var(--rt-edge);font-family:ui-monospace,Consolas,monospace;font-size:.74rem;color:var(--rt-soft)}
@media(max-width:600px){.rt-gauges{grid-template-columns:repeat(2,minmax(0,1fr))}.rt-fig{height:280px}.rt-body{padding:12px 12px 4px}}
