/* =====================================================================
   PHEASANTCOUCH.COM: THE AUTO MASTERING PAGE (mastering.html)
   Everything else comes from style.css: the hero, the deck, the tapes,
   the wavebox, the transport, the save band and the notes.
   ===================================================================== */

/* the heading: the search words as its kicker, the name as the big line (the kicker used to sit above it) */
.tool-name.with-kicker { padding-top: 0; }
.tool-name.with-kicker > .eyebrow { display: flex; width: max-content; max-width: 100%; margin-bottom: calc(18px + clamp(4.6px, .74vw, 9.8px)); }

/* the questions: the notes' grid, one question per card */
.faq h3 { font-size: clamp(19px, 1.9vw, 22px); }

/* the song in the deck */
.song { display: grid; gap: 6px; padding: 14px 0 4px; border-top: 1px dashed var(--line); }
.song-name { margin: 0; font: 800 19px/1.25 var(--font-body); color: var(--fg); overflow-wrap: anywhere; }
.song-meta, .song-step { margin: 0; font: 600 11px/1.6 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); font-variant-numeric: tabular-nums; }
.song-step { min-height: 1.6em; color: var(--violet-light); }
.progress { position: relative; height: 10px; margin: 6px 0 2px; border-radius: 999px; background: rgba(251, 248, 239, .12); overflow: hidden; }
.progress span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--violet-light)); transition: width .15s ease; }

/* the two choices */
.choice-row { display: grid; gap: 10px; justify-items: start; }
.choice-row + .choice-row { margin-top: 30px; padding-top: 24px; border-top: 1px dashed color-mix(in srgb, var(--fg) 22%, transparent); }
.choice-h { margin: 0; font: 700 12px/1.4 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.choice-row .preset-blurb { margin-top: 4px; }

/* listen: the waveform and the numbers side by side */
.listen-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.master-wave canvas { height: 220px; cursor: pointer; }
.master-wave canvas.empty { cursor: default; }
.legend .mix { background: rgba(35, 31, 32, .45); }
.legend .mst { background: var(--violet); }
.seg.ab button { min-height: 40px; }

/* the numbers: an index card */
.meter-card { position: relative; display: grid; gap: 4px; align-content: start; min-width: 0; padding: 26px 18px 18px; color: var(--card-ink); background: var(--card); box-shadow: 0 10px 22px rgba(35, 31, 32, .18), 0 1px 0 rgba(35, 31, 32, .1); transform: rotate(.4deg); }
.meter-card > .tape { position: absolute; top: -11px; left: 14px; margin: 0; }
.meters { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.meters th, .meters td { padding: 8px 4px; border-bottom: 1.5px solid var(--card-line); text-align: right; font: 700 15px/1.3 var(--font-body); }
.meters thead th { font: 600 10.5px/1.4 var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--card-ink-soft); }
.meters tbody th { text-align: left; font: 600 11px/1.4 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--card-ink-soft); }
.meters td:last-child { color: var(--violet); }
.did-h { margin: 14px 0 2px; font: 600 10.5px/1.4 var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--card-ink-soft); }
.did { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.did li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.did li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--violet); }
.did li.held { color: #8a3b00; }
.did li.held::before { background: var(--tape-red); }

@media (max-width: 860px) {
  .listen-grid { grid-template-columns: minmax(0, 1fr); }
  .meter-card { transform: none; }
}
@media (max-width: 560px) {
  .master-wave canvas { height: 170px; }
  .transport .readout { margin-left: 0; width: 100%; }
}
