/* THE GRAPHIC EQ · generated by eq_surface.py.
   A wide, short unit, which is what a 31-band graphic physically is — one
   rack space of sliders. It reads across the top of the mixer because that
   is where it is inserted in the signal path. */

.eqp { --eq-ink:#8C97A4; --eq-hot:#D64545; --eq-ok:#4FD38A; }
/* ⛔ ONE ROW CARRIES EVERYTHING THAT CHANGES: the band under your hand, its
   gain, the name of that region, and the two buttons. The unit is already
   named on the chassis plate above it. */
.eqp__bar { display:flex; align-items:baseline; gap:9px; flex-wrap:wrap;
  margin:0 0 6px; font:700 9px/1 'Courier New',monospace;
  letter-spacing:.13em; text-transform:uppercase; color:var(--eq-ink); }
.eqp__bar b { color:var(--ink,#e7ecf2); letter-spacing:.05em; }
.eqp__btns { margin-left:auto; display:flex; gap:4px; }
.eqp__b { cursor:pointer; border:1px solid var(--rule,#2a3340);
  border-radius:3px; background:linear-gradient(180deg,#262C35,#171C23);
  color:var(--eq-ink); padding:5px 9px; font:700 8.5px/1 'Courier New',monospace;
  letter-spacing:.12em; text-transform:uppercase; }
.eqp__b:hover { color:var(--ink,#e7ecf2); border-color:var(--gel,#C9A84C); }
.eqp__b.on { background:var(--eq-hot); border-color:var(--eq-hot);
  color:#fff; }

/* ── THE BANK. 31 columns, and the analyser sits BEHIND them in the same
   grid so a bar and its slider are the same column — which is the whole
   reason to look at an RTA while your hand is on a fader. ────────────── */
.eqp__bank { position:relative; display:grid; gap:2px;
  grid-template-columns:repeat(31,1fr); align-items:end;
  padding:0 0 2px; min-height:112px; flex:1; }
.eqp__rta { position:absolute; inset:0; width:100%; height:100%;
  display:block; pointer-events:none; opacity:.85; }

/* the 0 dB line, and the +/-6 guides. Printed on a real unit, so printed
   here — a slider bank with no scale is unreadable. */
.eqp__grid { position:absolute; inset:0; pointer-events:none; }
.eqp__gl { position:absolute; left:0; right:0; height:1px;
  background:rgba(255,255,255,.06); }
.eqp__gl.is-zero { background:rgba(255,255,255,.2); }
.eqp__gl span { position:absolute; left:0; top:-6px;
  font:700 7.5px/1 'Courier New',monospace; color:#4A535F;
  background:var(--bg-soft,#10151b); padding:0 3px; }

.eqp__ch { position:relative; z-index:2; display:flex; flex-direction:column;
  align-items:center; min-width:0; height:100%; }
/* the slot a real fader runs in */
.eqp__slot { position:relative; flex:1; width:9px; min-height:0;
  border-radius:5px; cursor:ns-resize; touch-action:none;
  background:linear-gradient(90deg, transparent 3px,
    rgba(0,0,0,.55) 3px, rgba(0,0,0,.55) 6px, transparent 6px); }
.eqp__cap { position:absolute; left:50%; width:19px; height:11px;
  margin-left:-9.5px; margin-top:-5.5px; border-radius:2px;
  background:linear-gradient(180deg,#4A535F,#22272F 52%,#15191E);
  border:1px solid #0A0D11; box-shadow:0 1px 3px rgba(0,0,0,.55);
  pointer-events:none; }
.eqp__cap::after { content:''; position:absolute; left:2px; right:2px;
  top:50%; height:1px; margin-top:-.5px; background:rgba(255,255,255,.34); }
.eqp__ch.is-cut .eqp__cap { background:linear-gradient(180deg,#5E4A4A,#2A1E1E);
  border-color:#140B0B; }
.eqp__ch.is-boost .eqp__cap {
  background:linear-gradient(180deg,#4A5E52,#1E2A24); border-color:#0B140F; }
.eqp__ch.is-flat .eqp__cap { opacity:.72; }

.eqp__hz { margin-top:4px; font:700 7px/1 'Courier New',monospace;
  color:#5D6873; white-space:nowrap; transform:rotate(-90deg);
  transform-origin:50% 50%; height:22px; display:flex; align-items:center; }
/* ⛔ the octave anchors are the ones an engineer says out loud. They get the
   bright label; the two bands between them do not, so the scale is
   readable at a glance instead of being thirty-one equal numbers. */
.eqp__ch.is-anchor .eqp__hz { color:var(--ink,#e7ecf2); }
.eqp__ch:focus-visible { outline:2px solid var(--gel,#C9A84C);
  outline-offset:1px; border-radius:3px; }

/* ── THE READOUT, inline in the bar. What your hand is on. ───────────── */
.eqp__rhz { font:700 13px/1 'Courier New',monospace;
  color:var(--ink,#e7ecf2); font-variant-numeric:tabular-nums;
  letter-spacing:.02em; }
.eqp__rdb { font:700 11px/1 'Courier New',monospace;
  color:var(--gel,#C9A84C); font-variant-numeric:tabular-nums;
  letter-spacing:.02em; }
.eqp__rzname { font:700 8.5px/1 'Courier New',monospace;
  letter-spacing:.15em; text-transform:uppercase; color:var(--eq-ink); }
/* ⛔ the explanation of the region is one line and it WRAPS rather than
   growing the unit — a 31-band EQ is a short rack unit and anything that
   makes it tall is taking height from the console underneath it. */
.eqp__rztext { margin:6px 0 0; font:400 11px/1.45 'Segoe UI',sans-serif;
  color:#6B7785; max-height:3.1em; overflow:auto; }

@media (max-width:900px){
  /* ⛔ 31 sliders at phone width is 9 px a slider, which is not a control.
     The bank scrolls sideways INSIDE the unit instead of being thrown away:
     a student on a phone still has the whole EQ, they just have to move
     along it, which is also true of the real one on a dark stage. */
  .eqp__bank { grid-template-columns:repeat(31,16px); overflow-x:auto;
    overflow-y:hidden; }
  .eqp__rta { width:auto; min-width:100%; }
}
