/* THE WIRELESS RACK · generated by rx_surface.py.
   Four channels of radio, read at a glance. Narrow on purpose: it lives in
   the top-left corner of the desk, beside the mixer, which is where it is
   on Nathan's real tech table. */

.rxr { --rx-ok:#4FD38A; --rx-warn:#C9A84C; --rx-bad:#D64545;
  display:flex; flex-direction:column; gap:6px; }

.rxr__bar { display:flex; align-items:center; gap:8px;
  font:700 8.5px/1 'Courier New',monospace; letter-spacing:.13em;
  text-transform:uppercase; color:#8C97A4; }
.rxr__bar b { color:var(--ink,#e7ecf2); letter-spacing:.05em; }
.rxr__bar .rxr__b { margin-left:auto; }
.rxr__b { cursor:pointer; border:1px solid var(--rule,#2a3340);
  border-radius:3px; background:linear-gradient(180deg,#262C35,#171C23);
  color:#8C97A4; padding:4px 8px; font:700 8px/1 'Courier New',monospace;
  letter-spacing:.11em; text-transform:uppercase; }
.rxr__b:hover { color:var(--ink,#e7ecf2); border-color:var(--gel,#C9A84C); }

/* ── A CHANNEL. One row, everything on it, nothing hidden. ───────────── */
.rxc { display:grid; gap:7px; align-items:center;
  grid-template-columns:62px 1fr 46px 30px;
  border:1px solid var(--rule,#2a3340); border-radius:5px;
  background:#0D1116; padding:6px 8px; }
.rxc.is-warn { border-color:rgba(201,168,76,.55); }
.rxc.is-bad { border-color:rgba(214,69,69,.7);
  background:linear-gradient(90deg,rgba(214,69,69,.1),#0D1116 40%); }
.rxc.is-muted { opacity:.6; }

.rxc__id { min-width:0; }
.rxc__nm { font:700 10px/1.15 'Segoe UI',sans-serif; color:var(--ink,#e7ecf2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rxc__fq { font:400 8px/1.3 'Courier New',monospace; color:#5D6873;
  letter-spacing:.04em; }

/* the two meters. RF on top, audio under it — the order on the unit. */
.rxc__mets { display:flex; flex-direction:column; gap:3px; min-width:0; }
.rxc__met { display:flex; align-items:center; gap:5px; }
.rxc__mlab { flex:0 0 15px; font:700 7px/1 'Courier New',monospace;
  color:#4A535F; letter-spacing:.06em; }
.rxc__bars { flex:1; display:flex; gap:1.5px; height:7px; min-width:0; }
.rxc__bars i { flex:1; border-radius:1px; background:#1C222A;
  font-style:normal; }
.rxc__bars i.on { background:var(--rx-ok); }
.rxc__bars.is-rf i.on { background:#5B9FD6; }
.rxc__bars.is-rf.is-low i.on { background:var(--rx-warn); }
/* ⛔ the top two segments of the audio meter are RED and they mean clipping,
   because that is what they mean on every receiver and every desk. A
   student who learns a different colour here learns a wrong reflex. */
.rxc__bars.is-af i.on:nth-last-child(1),
.rxc__bars.is-af i.on:nth-last-child(2) { background:var(--rx-bad); }

.rxc__bat { text-align:right; }
.rxc__batpc { font:700 11px/1 'Courier New',monospace;
  color:var(--ink,#e7ecf2); font-variant-numeric:tabular-nums; }
.rxc.is-warn .rxc__batpc { color:var(--rx-warn); }
.rxc.is-bad .rxc__batpc { color:var(--rx-bad); }
.rxc__bathr { font:400 8px/1.3 'Courier New',monospace; color:#5D6873; }

.rxc__mute { cursor:pointer; width:30px; height:26px; border-radius:4px;
  border:1px solid var(--rule,#2a3340); background:#161B21;
  font:700 7.5px/1 'Courier New',monospace; letter-spacing:.04em;
  color:#5D6873; }
.rxc__mute:hover { border-color:var(--gel,#C9A84C); }
.rxc.is-muted .rxc__mute { background:var(--rx-bad); border-color:var(--rx-bad);
  color:#fff; }

/* ── THE LINE THAT TELLS YOU WHAT TO DO ABOUT IT ─────────────────────── */
.rxr__say { font:400 11px/1.45 'Segoe UI',sans-serif; color:#6B7785;
  border-top:1px solid var(--rule,#2a3340); padding-top:7px; margin:1px 0 0; }
.rxr__say.is-bad { color:#E0A0A0; }
.rxr__say b { color:var(--ink,#e7ecf2); }

@media (max-width:520px){
  .rxc { grid-template-columns:54px 1fr 40px 28px; }
}
