/* escalas.css — ferramenta em /escalas-no-braco/. Namespace .esc-* */

.esc-head { margin: 4px 0 16px; }
.esc-head__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.esc-head__date { font-size: 12px; color: var(--text-muted); }
.esc-head .rr-pill--outline { border-color: var(--border); color: var(--text-muted); }
.esc-head__title {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.18;
  color: var(--text); margin: 0; text-wrap: pretty;
}

.esc-byline {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 0; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem; color: var(--text-muted);
}
.esc-byline img {
  /* estilos.css tem img{width:100%} global */
  width: 40px; height: 40px; border-radius: 9px;
  flex-shrink: 0; display: block; object-fit: cover;
}
.esc-byline a { color: var(--text); }

/* ── Ferramenta ── */
.esc { background: #0f1210; border-radius: 12px; padding: 22px 20px; color: #fff; }

.esc__grupo { margin-bottom: 14px; }
.esc__label {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6b7280; margin-bottom: 8px;
}
.esc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.esc__chip {
  border: 1px solid #2f322e; background: #1a1d19; color: #d1d5db;
  border-radius: 8px; padding: 8px 12px;
  font-size: 0.84rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease;
}
.esc__chip:hover { background: #232722; }
.esc__chip.is-on { background: #30df47; border-color: #30df47; color: #08240f; }

.esc__topo {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  padding-top: 16px; margin-top: 4px; border-top: 1px solid #23261f;
}
.esc__nome { font-size: 1.3rem; font-weight: 800; color: #fff; }
.esc__notas { font-size: 0.84rem; color: #9ca3af; font-variant-numeric: tabular-nums; }
.esc__rotulos { display: flex; gap: 6px; margin-left: auto; }
.esc__rot-btn {
  border: 1px solid #2f322e; background: #1a1d19; color: #9ca3af;
  border-radius: 8px; padding: 6px 11px;
  font-size: 0.78rem; font-weight: 700; font-family: inherit; cursor: pointer;
}
.esc__rot-btn.is-on { background: #30df47; border-color: #30df47; color: #08240f; }

/* O braço é largo: rola só ele, nunca a página */
.esc__braco-wrap {
  margin: 16px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #161a15;
  border: 1px solid #2f322e;
  border-radius: 10px;
  padding: 10px 8px;
}
.esc__svg { display: block; min-width: 620px; height: auto; }

.esc__nut { fill: #e5e7eb; }
.esc__fret { stroke: #3f443c; stroke-width: 1.4; }
.esc__str { stroke: #52584e; stroke-width: 1.2; }
.esc__inlay { fill: #23261f; }
.esc__corda { fill: #6b7280; font-size: 11px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.esc__casa-num { fill: #6b7280; font-size: 10px; text-anchor: middle; font-family: inherit; }
.esc__nota { fill: #1f4a2a; stroke: #30df47; stroke-width: 1.5; }
.esc__nota.is-tonica { fill: #30df47; stroke: #30df47; }
.esc__nota-txt {
  fill: #a7f3b8; font-size: 10px; font-weight: 700;
  text-anchor: middle; font-family: inherit;
}
.esc__nota-txt.is-tonica { fill: #08240f; }

.esc__tocar {
  margin-top: 16px; width: 100%; height: 48px;
  border: none; border-radius: 10px;
  background: #30df47; color: #08240f;
  font-size: 0.98rem; font-weight: 800; font-family: inherit; cursor: pointer;
  transition: background 0.12s ease;
}
.esc__tocar:hover { background: #4ae85f; }

.esc__hint { margin: 14px 0 0; font-size: 0.78rem; line-height: 1.6; color: #6b7280; text-align: center; }
.esc__legenda {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; font-size: 0.76rem; color: #9ca3af;
}
.esc__legenda span { display: inline-flex; align-items: center; gap: 6px; }
.esc__bolinha { width: 12px; height: 12px; border-radius: 50%; background: #1f4a2a; border: 1.5px solid #30df47; }
.esc__bolinha--tonica { background: #30df47; }

.esc :focus-visible { outline: 2px solid #30df47; outline-offset: 2px; }

@media (max-width: 420px) {
  .esc { padding: 18px 14px; }
  .esc__chip { padding: 7px 10px; font-size: 0.78rem; }
  .esc__rotulos { margin-left: 0; }
}
