/* MUSIC PROMO - BPM & key finder and delay calculator (extends style.css) */

header.tool-head { display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
header.tool-head h1 {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(38px, 6vw, 68px); line-height: 0.98; margin: 0; letter-spacing: -0.01em; max-width: 16ch;
}

/* ---- results ---- */
.tk-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .tk-results { grid-template-columns: 1fr; } }
.tk-card {
  background: var(--chassis-bg); border: 1px solid rgba(210,250,100,0.28); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.tk-label { font-size: 10.6px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); font-weight: 700; }
.tk-big {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(44px, 6vw, 64px); line-height: 1; color: var(--accent); letter-spacing: -0.01em; word-break: break-word;
}
.tk-big.mono { font-family: "IBM Plex Mono", monospace; font-style: normal; font-weight: 500; font-size: clamp(38px, 5vw, 52px); }
.tk-sub { font-size: 13px; color: var(--ink-dim); }
.tk-note { font-size: 12.4px; color: var(--ink-faint); line-height: 1.55; }
.tk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-chip {
  font: inherit; font-size: 12.4px; font-family: "IBM Plex Mono", monospace; cursor: pointer;
  background: transparent; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.tk-chip:hover { border-color: var(--accent); color: var(--ink); }
.camelot {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-dim);
}
.camelot b {
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 14px;
  background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 3px 10px;
}

/* ---- delay calculator ---- */
.delay-panel { gap: 18px; }
.delay-top { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.bpm-field { display: flex; flex-direction: column; gap: 8px; }
.bpm-input {
  width: 9em; background: #101010; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font: inherit; font-family: "IBM Plex Mono", monospace; font-size: 20px;
}
.bpm-input:focus { border-color: var(--accent); outline: none; }
.tap-btn { padding: 13px 22px; }
.delay-hint { font-size: 12.4px; color: var(--ink-faint); line-height: 1.55; flex: 1 1 260px; }

.delay-table-wrap { overflow-x: auto; }
table.delay-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.delay-table th, .delay-table td { padding: 4px; text-align: left; }
.delay-table thead th {
  font-size: 10.6px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600; padding-bottom: 8px;
}
.delay-table tbody th { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--ink); font-size: 15px; width: 70px; }
.delay-table tbody tr + tr > * { border-top: 1px solid var(--chassis-line); }
.delay-cell {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; color: inherit; font: inherit;
}
.delay-cell:hover { border-color: var(--accent); background: rgba(210,250,100,0.06); }
.delay-cell .ms { font-size: 15.5px; color: var(--ink); }
.delay-cell .hz { font-size: 11.5px; color: var(--ink-faint); }
.delay-empty { color: var(--ink-faint); font-size: 13px; padding: 18px 4px !important; }
.copy-note { font-size: 12.4px; color: var(--accent); min-height: 1.2em; }
@media (max-width: 520px) {
  table.delay-table { min-width: 0; }
  .delay-table tbody th { width: 44px; font-size: 13px; }
  .delay-table th, .delay-table td { padding: 2px; }
  .delay-cell { padding: 7px 5px; }
  .delay-cell .ms { font-size: 13px; }
  .delay-cell .hz { font-size: 10.5px; }
}
