/* The Audio Toolkit — Guide pages, Console layer on top of styles.css.
   Loaded only on /guides/*, which is why .note can carry a different meaning
   here (a callout) than it does on the tool pages (a quiet caption). */

/* ── Reference diagram ───────────────────────────────────────────────── */
.diagram-section { margin-bottom: var(--spacing-xl); }

.xlr-diagram { margin: 0; }
.speakon-diagram { margin: 0 auto; max-width: 800px; }

.xlr-diagram svg {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  min-height: 320px;
}
.speakon-diagram svg {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 0 auto;
}
.xlr-diagram figcaption {
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: var(--spacing-sm);
}

/* Responsive diagram: stack views on mobile */
@media (max-width: 800px) {
  .xlr-diagram svg,
  .speakon-diagram svg {
    max-width: none;
    width: 100%;
    height: auto;
    min-height: auto;
  }
}

/* ── Callouts ────────────────────────────────────────────────────────────
   A coloured left rule rather than a tinted panel, matching the disclaimer on
   the limiter tool. Not italicised: these are instructions, not asides. */
.note {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid var(--led);
  margin-top: var(--spacing-md);
}
.note-text {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid var(--amber);
  margin-top: var(--spacing-md);
}

/* ── Procedures ──────────────────────────────────────────────────────── */
.steps { padding-left: 1.5rem; margin: var(--spacing-md) 0; color: var(--muted); }
.steps li { margin-bottom: var(--spacing-sm); line-height: 1.6; }
.steps li::marker { font-family: var(--font-mono); font-size: 0.8125em; color: var(--faint); }
.steps li strong { color: var(--silk); }

/* ── Fault tables ────────────────────────────────────────────────────── */
.faults-table { width: 100%; border-collapse: collapse; }
.faults-table th,
.faults-table td {
  padding: 9px var(--spacing-md);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-2);
}
.faults-table th {
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--well);
  white-space: nowrap;
}
.faults-table tr:last-child td { border-bottom: none; }
.faults-table td:first-child { color: var(--silk); width: 40%; }
.faults-table td:last-child { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) {
  .faults-table th, .faults-table td { padding: 6px var(--spacing-sm); font-size: 0.8125rem; }
}

/* ── Pin badges ──────────────────────────────────────────────────────────
   Pin colours are the cable's own convention, not the site palette: pin 1
   screen, pin 2 hot, pin 3 cold. They stay as they are. */
.pin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-weight: 500;
  font-size: 0.75rem;
}
.pin-1 { color: #00d4aa; background: rgba(0, 212, 170, 0.15); border: 1.5px solid #00d4aa; }
.pin-2 { color: #e85050; background: rgba(232, 80, 80, 0.15); border: 1.5px solid #e85050; }
.pin-3 { color: #5090e8; background: rgba(80, 144, 232, 0.15); border: 1.5px solid #5090e8; }

/* ── Print ───────────────────────────────────────────────────────────── */
@media print {
  .xlr-diagram svg,
  .speakon-diagram svg { max-width: 100%; height: auto; page-break-inside: avoid; }
  .note, .note-text { border-left: 2px solid #999; }
}
