/* ==========================================================================
   Paddy Prompt Studio — delay & reverb time calculator
   Layers on /blog/style.css and /tools/shared/tool-common.css.
   ========================================================================== */

.dr-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1fr); gap: 0.9rem; align-items: center; }
.dr-bpm-row { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 3.2rem; gap: 0.4rem; align-items: center; }
.dr-bpm {
  width: 100%; text-align: center; font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 800;
  font-size: 2rem; min-height: 3.4rem; padding: 0.2rem 0.4rem; font-variant-numeric: tabular-nums;
}
.dr-step { min-height: 3.4rem; font-size: 1.5rem; padding: 0; }
.dr-steps { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.dr-steps .btn-ghost { min-height: 40px; padding: 0.3rem 0.7rem; font-size: 0.82rem; font-family: "JetBrains Mono", ui-monospace, monospace; }
.dr-tap-box { text-align: center; }
.dr-tap { width: 100%; min-height: 5.2rem; font-size: 1.15rem; border-radius: 18px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.dr-tap.hit { filter: brightness(1.25); }
.dr-mini { margin: 0.45rem 0 0; font-size: 0.78rem; color: var(--text-dim); }
.dr-beat { text-align: center; }
.dr-big {
  margin: 0; font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.dr-big small { font-size: 0.45em; color: var(--text-dim); font-weight: 700; }
.dr-beat-sub { margin: 0.4rem 0 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.8rem; color: #a5f3fc; }
.dr-unit { color: var(--text-dim); font-weight: 700; }

/* ------------------------------------------------------------ note table */
.dr-table-wrap { margin: 0.6rem 0 1rem; }
.dr-table th[scope="row"] { white-space: nowrap; }
table.data.dr-table td, table.data.dr-table th { padding: 0.45rem 0.6rem; vertical-align: middle; }
.dr-nv { display: block; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; color: #fff; font-size: 0.95rem; }
.dr-nl { display: block; font-size: 0.7rem; color: var(--text-dim); font-weight: 400; }
.dr-v {
  display: block; width: 100%; text-align: left; cursor: copy; font: inherit; color: var(--text);
  background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 0.2rem 0.4rem; min-height: 2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85rem; white-space: nowrap;
}
.dr-v .dr-ms { color: #a5f3fc; font-weight: 700; font-size: 0.95rem; }
.dr-v.dr-hzv { color: var(--text-dim); font-size: 0.75rem; min-height: 1.7rem; }
.dr-v:hover { background: rgba(129, 140, 248, 0.14); border-color: var(--border); }
.dr-v:focus-visible { outline: 2px solid #22d3ee; outline-offset: 1px; }
.dr-v.copied { border-color: rgba(52, 211, 153, 0.7); background: rgba(52, 211, 153, 0.12); }
.dr-table tr.is-beat { background: rgba(34, 211, 238, 0.09); }
.dr-table tr.is-beat th { box-shadow: inset 3px 0 0 #22d3ee; }
.dr-table tr.is-hear td, .dr-table tr.is-hear th { background: rgba(129, 140, 248, 0.06); }

/* ------------------------------------------------------------ hear it */
.dr-hear { margin-bottom: 1rem; }
.dr-hear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.6rem; }
.dr-hear-grid label { display: grid; gap: 0.25rem; font-size: 0.8rem; color: var(--text-dim); font-weight: 600; }
.dr-hear-grid select, .dr-bpb select { width: 100%; cursor: pointer; }
.dr-hear-grid select option, .dr-bpb select option { background: #12131c; color: var(--text); }
.dr-hear-grid select:focus-visible, .dr-bpb select:focus-visible { outline: 2px solid #22d3ee; outline-offset: 1px; }
.dr-check { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.6rem 0; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; }
.dr-check input { width: 1.1rem; height: 1.1rem; accent-color: #6366f1; }
.dr-hear-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.dr-play { min-width: 11rem; min-height: 52px; font-size: 1.02rem; border-radius: 14px; }
.dr-play .ico { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.dr-play[aria-pressed="true"] { background: linear-gradient(135deg, #fb7185, #f59e0b); }
.dr-play[aria-pressed="true"] .ico { width: 13px; height: 13px; border: 0; background: currentColor; border-radius: 2px; }
.dr-hear-now { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85rem; color: #a5f3fc; }

/* ------------------------------------------------------------ reverb + extras */
.dr-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.8rem; }
.dr-side { display: grid; gap: 0.8rem; align-content: start; min-width: 0; }
.dr-split > .pt-panel { min-width: 0; }
.dr-rev-wrap { margin: 0.2rem 0 0.6rem; }
table.data.dr-rev td, table.data.dr-rev th { padding: 0.45rem 0.55rem; font-size: 0.85rem; vertical-align: top; }
.dr-rev th[scope="row"] { font-weight: 600; }
.dr-rev td { font-family: "JetBrains Mono", ui-monospace, monospace; white-space: nowrap; }
.dr-rev .dr-v { padding: 0.1rem 0.3rem; min-height: 1.8rem; }
.dr-rev .dr-v span { color: #a5f3fc; font-weight: 700; }
.dr-sub { display: block; font-size: 0.7rem; color: var(--text-dim); padding-left: 0.3rem; }
.dr-formula { margin: 0; font-size: 0.78rem; color: var(--text-dim); }
.dr-ms-row { display: flex; align-items: center; gap: 0.45rem; }
.dr-ms-in { width: 8rem; font-family: "JetBrains Mono", ui-monospace, monospace; }
.dr-rev-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.dr-rev-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.dr-rev-list li strong { font-family: "JetBrains Mono", ui-monospace, monospace; color: #fff; }
.dr-rev-list .chip-btn { min-height: 2rem; font-size: 0.75rem; padding: 0.2rem 0.6rem; }
.dr-rev-list .out { color: var(--text-dim); font-size: 0.78rem; }
.dr-bpb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-dim); font-weight: 600; margin-bottom: 0.5rem; }
.dr-bpb select { width: auto; min-width: 4rem; }
.dr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; margin: 0; }
.dr-facts > div { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border-soft); border-radius: 10px; padding: 0.4rem 0.6rem; min-width: 0; }
.dr-facts dt { font-size: 0.66rem; color: var(--text-dim); font-weight: 600; }
.dr-facts dd { margin: 0.1rem 0 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.9rem; color: #fff; overflow-wrap: anywhere; }
.dr-share-row { display: flex; justify-content: center; margin-top: 1rem; }

@media (max-width: 860px) {
  .dr-top { grid-template-columns: 1fr 1fr; }
  .dr-bpm-box { grid-column: 1 / -1; }
  .dr-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  table.data.dr-table td, table.data.dr-table th { padding: 0.35rem 0.3rem; }
  .dr-v { font-size: 0.78rem; padding: 0.15rem 0.25rem; }
  .dr-v .dr-ms { font-size: 0.85rem; }
  .dr-nl { display: none; }
  .dr-play { width: 100%; }
}
@media (max-width: 480px) {
  .dr-table { font-size: 0.8rem; }
  table.data.dr-table td, table.data.dr-table th { padding: 0.3rem 0.15rem; }
  table.data.dr-table thead th { font-size: 0.58rem; letter-spacing: 0.06em; }
  .dr-table td .dr-u { display: none; }
  .dr-v { padding: 0.15rem 0.2rem; }
  .dr-nv { font-size: 0.82rem; }
}
@media (max-width: 400px) {
  .dr-top { grid-template-columns: 1fr; }
}
