:root {
  --forest-950: #10261f;
  --forest-900: #173b32;
  --forest-800: #205044;
  --forest-700: #2d6657;
  --forest-100: #dfeae5;
  --gold: #d4aa63;
  --gold-soft: #f0e2c7;
  --cream: #f4f0e7;
  --paper: #fffdf9;
  --ink: #1b2924;
  --muted: #69766f;
  --line: rgba(23, 59, 50, 0.13);
  --shadow: 0 18px 50px rgba(19, 46, 38, 0.1);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 90% 3%,
      rgba(212, 170, 99, 0.16),
      transparent 27rem
    ),
    var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
.page-shell {
  width: min(100% - 28px, 1120px);
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.document-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  display: flex;
  align-items: end;
  color: white;
  background: linear-gradient(135deg, var(--forest-950), var(--forest-800));
}
.document-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 82% 12%,
    rgba(212, 170, 99, 0.3),
    transparent 25rem
  );
  pointer-events: none;
}
.music-lines {
  position: absolute;
  inset: -30px -25px auto auto;
  width: min(78vw, 880px);
  height: 330px;
  opacity: 0.08;
  transform: rotate(-5deg);
  pointer-events: none;
}
.music-lines::before,
.music-lines::after {
  content: "";
  position: absolute;
  inset: 80px 0 auto;
  height: 66px;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  box-shadow:
    0 16px 0 white,
    0 32px 0 white,
    0 48px 0 white;
  border-radius: 50%;
}
.music-lines span {
  position: absolute;
  z-index: 1;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 9vw, 7rem);
}
.music-lines span:nth-child(1) {
  left: 8%;
  top: 38px;
}
.music-lines span:nth-child(2) {
  left: 28%;
  top: 110px;
}
.music-lines span:nth-child(3) {
  left: 48%;
  top: 48px;
}
.music-lines span:nth-child(4) {
  left: 68%;
  top: 118px;
}
.music-lines span:nth-child(5) {
  left: 88%;
  top: 52px;
}
.document-hero__content {
  position: relative;
  z-index: 2;
  padding: 58px 0 54px;
}
.back-link {
  display: inline-flex;
  margin-bottom: 44px;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { color: white; }
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #efc87f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--dark {
  color: var(--forest-800);
}
h1,
h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}
h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 10vw, 6.6rem);
  line-height: 0.92;
}
h2 {
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 1;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-action {
  background: var(--gold);
  color: var(--forest-950);
}
.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.main-layout {
  padding: 46px 0 72px;
}
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.result-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
}
.reading-tools {
  position: sticky;
  z-index: 20;
  top: 10px;
  display: grid;
  gap: 9px;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(244, 240, 231, 0.92);
  box-shadow: 0 12px 35px rgba(19, 46, 38, 0.08);
  backdrop-filter: blur(12px);
}
.search-box {
  position: relative;
  display: block;
}
.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 10px 45px 10px 43px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: white;
  color: var(--ink);
}
.search-box input:focus {
  border-color: var(--forest-800);
  box-shadow: 0 0 0 3px rgba(32, 80, 68, 0.1);
}
.search-box__icon {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  color: var(--muted);
  font-size: 1.35rem;
  transform: translateY(-54%);
}
#clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--forest-100);
  color: var(--forest-800);
  cursor: pointer;
  transform: translateY(-50%);
}
.filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: thin;
}
.filter-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest-800);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.filter-chip span {
  opacity: 0.65;
}
.filter-chip.is-active {
  border-color: var(--forest-900);
  background: var(--forest-900);
  color: white;
}
.material-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.72rem;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
}
.legend-item strong {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.68rem;
}
.legend-item--available {
  background: rgba(72, 128, 99, 0.09);
}
.legend-item--available strong {
  background: #dcebe2;
  color: #285842;
}
.legend-item--missing {
  background: rgba(105, 118, 111, 0.08);
}
.legend-item--missing strong {
  background: #e7e7e2;
  color: #70766f;
}

.song-list {
  display: grid;
  gap: 13px;
}
.song-card {
  overflow: hidden;
  scroll-margin-top: 150px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 12px 35px rgba(19, 46, 38, 0.07);
}
.song-card[open] {
  border-color: rgba(32, 80, 68, 0.36);
}
.song-card.is-unavailable {
  background: rgba(245, 244, 239, 0.82);
}
.song-card > summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 88px;
  padding: 15px;
  list-style: none;
  cursor: pointer;
}
.song-card > summary::-webkit-details-marker {
  display: none;
}
.song-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  background: var(--forest-900);
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.is-unavailable .song-number {
  background: #8d948f;
}
.song-summary {
  min-width: 0;
}
.song-summary strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.availability {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-transform: uppercase;
}
.availability--available {
  background: #dcebe2;
  color: #285842;
}
.availability--missing {
  background: #e7e7e2;
  color: #6d746e;
}
.card-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-100);
  color: var(--forest-800);
  transition: transform 0.18s ease;
}
.song-card[open] .card-arrow {
  transform: rotate(180deg);
}
.song-content {
  padding: 0 18px 22px 81px;
}
.song-content::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 19px;
  background: var(--line);
}
.song-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.youtube-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #e93232;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.youtube-action span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.62rem;
}
.material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.material-section {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}
.material-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.material-section__heading h3 {
  margin: 0;
  color: var(--forest-800);
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.material-count {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--forest-100);
  color: var(--forest-800);
  font-size: 0.68rem;
  font-weight: 700;
}
.material-list {
  display: grid;
  gap: 8px;
}
.material-entry {
  padding: 10px;
  border-radius: 13px;
  background: #f7f5ef;
}
.material-entry strong {
  display: block;
  margin-bottom: 8px;
  color: #35433d;
  font-size: 0.79rem;
  line-height: 1.4;
}
.material-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.preview-button,
.pdf-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--forest-800);
  font-size: 0.69rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.preview-button:hover,
.pdf-link:hover {
  border-color: rgba(32, 80, 68, 0.34);
  background: var(--forest-100);
}
.material-empty {
  margin: 0;
  padding: 15px;
  border: 1px dashed rgba(105, 118, 111, 0.28);
  border-radius: 13px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.unavailable-panel {
  padding: 18px;
  border: 1px dashed rgba(105, 118, 111, 0.3);
  border-radius: 16px;
  background: rgba(105, 118, 111, 0.055);
  color: var(--muted);
  text-align: center;
}
.unavailable-panel strong {
  display: block;
  margin-bottom: 3px;
  color: #5d665f;
}
.unavailable-panel p {
  margin: 0;
  font-size: 0.82rem;
}



/* Leitura integrada: conteúdo nativo do site */
.preview-button.is-active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--forest-950);
  box-shadow: 0 0 0 2px rgba(212, 170, 99, 0.1);
}

.inline-material {
  margin-top: 16px;
  overflow: hidden;
  scroll-margin-top: 125px;
  border: 1px solid rgba(23, 59, 50, 0.16);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(19, 46, 38, 0.07);
}

.inline-material__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 3vw, 26px);
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}

.inline-material__heading {
  min-width: 0;
}

.inline-material__type {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inline-material__title {
  margin: 0;
  color: var(--forest-900);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.1;
}

.inline-material__close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--forest-800);
  font-size: 1.08rem;
  cursor: pointer;
}

.inline-material__close:hover {
  border-color: rgba(32, 80, 68, 0.3);
  background: var(--forest-100);
}

.inline-material__body {
  padding: clamp(14px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(240, 226, 199, 0.17), transparent 140px), #fbf9f4;
}

.support-sheet {
  width: min(100%, 900px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(23, 59, 50, 0.11);
  border-radius: 18px;
  background: #fffefb;
  box-shadow: 0 10px 32px rgba(19, 46, 38, 0.05);
}

.support-sheet__head {
  padding: clamp(20px, 4vw, 34px) clamp(18px, 5vw, 46px) 18px;
  border-bottom: 1px solid rgba(212, 170, 99, 0.24);
}

.support-sheet__head > span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.support-sheet__head h4 {
  margin: 0;
  color: var(--gold);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.05;
}

.support-sheet__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 12px;
  color: rgba(23, 59, 50, 0.68);
  font-size: 0.74rem;
  line-height: 1.5;
}

.support-sheet__content {
  padding: 24px clamp(18px, 5vw, 46px) 36px;
}

/* Letras: leitura fluida como Repertório/Estatuto */
.support-sheet--letra .support-sheet__content {
  display: grid;
  gap: 0;
}

.support-sheet--letra .support-line {
  color: #173b32;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.96rem, 2.8vw, 1.06rem);
  line-height: 1.78;
}

.support-sheet--letra .support-line--section,
.support-sheet--letra .support-line--meta,
.support-sheet--letra .support-line--key {
  margin-top: 8px;
  color: #d4aa63;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-sheet--letra .support-line--space {
  height: 1.15rem;
}

/* Cifras: acordes e versos usam a mesma malha tipográfica para manter o alinhamento. */
.support-sheet--cifra .support-sheet__content {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.support-sheet--cifra .support-line {
  width: max-content;
  min-width: 100%;
  white-space: pre;
  font-family: "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.76rem, 2.35vw, 0.9rem);
  font-variant-ligatures: none;
  line-height: 1.5;
  tab-size: 4;
}

.support-sheet--cifra .support-line--chord,
.support-sheet--cifra .support-line--section,
.support-sheet--cifra .support-line--key,
.support-sheet--cifra .support-line--meta {
  color: #d4aa63;
  font-weight: 700;
}

.support-sheet--cifra .support-line--lyric {
  color: #173b32;
  font-weight: 500;
}

.support-sheet--cifra .support-line--space {
  height: 0.9rem;
}

.inline-material__error {
  display: grid;
  gap: 3px;
  padding: 20px;
  border: 1px dashed rgba(105, 118, 111, 0.3);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.inline-material__error strong {
  color: var(--forest-900);
}

.inline-material__footer {
  display: flex;
  justify-content: center;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fffdf9;
}

.inline-material__close--footer {
  width: auto;
  min-width: 150px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}


.no-results {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}
.no-results > span {
  font-size: 2rem;
}
.no-results p {
  margin: 0;
}
.document-footer {
  padding: 29px 0;
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.62);
}
.document-footer__content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.78rem;
}
.document-footer strong,
.document-footer span {
  display: block;
}
.document-footer strong {
  color: white;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.footer-actions a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }
  .document-hero {
    min-height: 440px;
  }
  .document-hero__content {
    padding: 42px 0 46px;
  }
  .back-link {
    margin-bottom: 52px;
  }
  .hero-actions {
    display: grid;
  }
  .primary-action,
  .secondary-action {
    width: 100%;
  }
  .catalog-heading {
    align-items: start;
  }
  .song-card > summary {
    grid-template-columns: auto 1fr auto;
    padding: 12px;
  }
  .song-number {
    width: 48px;
    height: 48px;
  }
  .song-content {
    padding: 0 13px 18px;
  }
  .material-grid {
    grid-template-columns: 1fr;
  }

  .inline-material {
    margin-top: 12px;
    border-radius: 15px;
  }
  .inline-material__header {
    align-items: flex-start;
    padding: 10px;
  }
  .inline-material__controls {
    gap: 3px;
  }
  .text-size-button,
  .inline-material__close {
    min-width: 32px;
    height: 32px;
  }
  .inline-material__body {
    padding: 8px;
  }
  .material-sheet {
    border-radius: 10px;
  }
  .material-sheet__content--letra {
    padding: 18px 14px 24px;
    font-size: calc(0.98rem * var(--material-scale));
    line-height: 1.75;
  }
  .material-sheet__content--cifra {
    padding: 16px 12px 22px;
    font-size: calc(0.78rem * var(--material-scale));
    line-height: 1.5;
  }
  .document-footer__content {
    display: grid;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


@media (max-width: 700px) {
  .inline-material {
    margin-top: 12px;
    border-radius: 17px;
  }
  .inline-material__header {
    padding: 14px;
  }
  .inline-material__body {
    padding: 10px;
  }
  .support-sheet {
    border-radius: 14px;
  }
  .support-sheet__head {
    padding: 20px 16px 14px;
  }
  .support-sheet__content {
    padding: 20px 16px 28px;
  }
  .support-sheet--cifra .support-sheet__content {
    padding-left: 14px;
    padding-right: 14px;
  }
}



/* A identificação da música fica apenas no cabeçalho externo da visualização.
   Metadados permanecem discretos dentro da folha, sem repetir o título. */
.support-sheet__meta--standalone {
  margin: 0;
  padding: 18px clamp(18px, 5vw, 46px) 0;
}

.support-sheet__meta--standalone + .support-sheet__content {
  padding-top: 14px;
}

/* A cifra posicionada usa a mesma família tipográfica da letra.
   textLength preserva a largura original de cada trecho do PDF. */
.support-sheet--positional .support-score__token {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Cifras posicionadas pelas coordenadas do PDF original.
   Cada acorde e cada palavra mantêm o ponto horizontal de origem do documento,
   evitando o deslocamento causado por espaços em arquivos de texto. */
.support-sheet__layout-note {
  max-width: 660px;
  margin: 10px 0 0;
  color: rgba(23, 59, 50, 0.66);
  font-size: 0.76rem;
  line-height: 1.5;
}

.support-sheet__score-pages {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.support-score-page {
  min-width: 0;
}

.support-score-page__label {
  display: inline-flex;
  margin: 0 0 8px 4px;
  color: #d4aa63;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support-score-page__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 14px;
  background: #fffefb;
}

.support-score {
  display: block;
  width: min(100%, calc(var(--score-width) * 1.12));
  height: auto;
  min-height: 1px;
  margin-inline: auto;
  background: #fffefb;
}

.support-score__token {
  fill: #173b32;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  text-rendering: geometricPrecision;
}

.support-score__token.is-bold {
  font-weight: 700;
}

.support-score__token--title,
.support-score__token--chord {
  fill: #d4aa63;
}


.support-score__token--meta {
  fill: rgba(23, 59, 50, 0.68);
}

@media (max-width: 700px) {
  .support-sheet__score-pages {
    gap: 14px;
    padding: 12px;
  }

  .support-score-page__scroll {
    border-radius: 12px;
  }

  /* No celular a cifra mantém uma largura mínima legível.
     Quando necessário, a rolagem ocorre somente dentro da folha. */
  .support-score {
    width: max(100%, var(--score-width));
    margin-inline: 0;
  }
}


/* Reparos 2026-08-21 */


/* =========================================================
   Visualização de cifra: zoom responsivo + layout mais limpo
   ========================================================= */
.inline-material {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.inline-material__header {
  padding-inline: 4px;
  border-bottom: 1px solid rgba(23, 59, 50, 0.10);
  background: transparent;
}

.inline-material__body {
  padding: 16px 0 4px;
  background: transparent;
}

.inline-material__footer {
  padding: 14px 0 0;
  border-top: 0;
  background: transparent;
}

.support-sheet--positional {
  width: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.support-score-toolbar {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px auto;
  padding: 5px;
  border: 1px solid rgba(23, 59, 50, 0.10);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.96);
}

.score-zoom-button,
.score-fit-button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--forest-900);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.score-zoom-button {
  width: 36px;
  padding: 0;
  font-size: 1.1rem;
}

.score-fit-button {
  padding: 0 12px;
}

.score-zoom-button:hover,
.score-fit-button:hover,
.score-fit-button.is-active {
  background: var(--forest-100);
}

.support-score-toolbar__value {
  min-width: 46px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.support-sheet__score-pages {
  gap: 20px;
  padding: 0;
}

.support-score-page {
  min-width: 0;
}

.support-score-page__label {
  margin-left: 2px;
}

.support-score-page__scroll {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(23, 59, 50, 0.10);
  border-radius: 12px;
  background: #fffefb;
  box-shadow: 0 8px 24px rgba(19, 46, 38, 0.045);
  scrollbar-width: thin;
}

.support-score {
  flex: 0 0 auto;
  max-width: none;
  height: auto;
  margin-inline: auto;
  background: #fffefb;
  transition: width 160ms ease;
}

@media (max-width: 700px) {
  .inline-material__header {
    padding: 10px 0;
  }

  .inline-material__body {
    padding: 12px 0 2px;
  }

  .support-score-toolbar {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  .score-fit-button {
    padding-inline: 10px;
  }

  .support-sheet__score-pages {
    padding: 0;
  }

  .support-score-page__scroll {
    border-radius: 10px;
  }
}


/* Correção de rolagem no zoom:
   quando a cifra é maior que a área visível, o auto-margin colapsa para zero
   e mantém a borda esquerda acessível; quando cabe, continua centralizada. */


/* =========================================================
   Visualização de letra: controles de zoom iguais aos da cifra
   ========================================================= */
.support-sheet--text-zoom {
  --text-zoom: 1;
}

.support-sheet--text-zoom .support-text-toolbar {
  margin: 12px 12px 0 auto;
}

.support-sheet--text-zoom .support-line {
  font-size: calc(1rem * var(--text-zoom));
  transition: font-size 140ms ease, line-height 140ms ease;
}

.support-sheet--text-zoom .support-line--section,
.support-sheet--text-zoom .support-line--meta,
.support-sheet--text-zoom .support-line--key {
  font-size: calc(.78rem * var(--text-zoom));
}

.support-sheet--text-zoom .support-line--space {
  height: calc(1.15rem * var(--text-zoom));
}

.support-sheet--text-zoom .support-sheet__meta {
  font-size: calc(.74rem * var(--text-zoom));
}

@media (max-width: 700px) {
  .support-sheet--text-zoom .support-text-toolbar {
    width: calc(100% - 20px);
    justify-content: center;
    margin: 10px auto 0;
  }

  .support-sheet--text-zoom .support-line {
    font-size: calc(.98rem * var(--text-zoom));
  }
}


/* =========================================================
   Transposição de cifras
   ========================================================= */
.support-score-toolbar {
  position: relative;
}

.score-key-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.score-key-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(212, 170, 99, 0.16);
  color: var(--forest-900);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.score-key-toggle strong {
  color: var(--forest-950);
  font-weight: 800;
}

.score-key-toggle:hover,
.score-key-toggle[aria-expanded="true"] {
  background: rgba(212, 170, 99, 0.28);
}

.score-key-toggle__chevron {
  margin-left: 2px;
  font-size: 0.8rem;
  transition: transform 160ms ease;
}

.score-key-toggle[aria-expanded="true"] .score-key-toggle__chevron {
  transform: rotate(180deg);
}

.score-key-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(23, 59, 50, 0.14);
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 18px 44px rgba(13, 39, 31, 0.18);
}

.score-key-panel[hidden] {
  display: none;
}

.score-key-panel__steps {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}

.score-key-reset,
.score-key-step,
.score-key-note {
  min-height: 42px;
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 13px;
  background: rgba(23, 59, 50, 0.055);
  color: var(--forest-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.score-key-reset {
  padding: 0;
  font-size: 1.16rem;
}

.score-key-step {
  padding-inline: 8px;
  font-size: 0.78rem;
}

.score-key-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.score-key-note {
  min-width: 0;
  padding: 0 4px;
  font-size: 0.83rem;
}

.score-key-reset:hover,
.score-key-step:hover,
.score-key-note:hover {
  border-color: rgba(23, 59, 50, 0.18);
  background: rgba(212, 170, 99, 0.20);
}

.score-key-note.is-active {
  border-color: var(--forest-900);
  background: var(--forest-900);
  color: #fff;
}

.score-key-panel__footer {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 9px 4px 1px;
  border-top: 1px solid rgba(23, 59, 50, 0.09);
  color: var(--forest-800);
  font-size: 0.7rem;
  line-height: 1.35;
}

.score-key-panel__footer strong {
  color: var(--forest-950);
}

.score-key-panel__footer small {
  color: var(--muted);
  font-size: 0.65rem;
}

@media (max-width: 700px) {
  .support-score-toolbar {
    display: grid;
    grid-template-columns: 36px minmax(48px, auto) 36px minmax(0, 1fr);
    justify-items: center;
    align-items: center;
    width: 100%;
    gap: 6px;
    padding: 8px;
  }

  .support-score-toolbar__value {
    min-width: 48px;
  }

  .score-fit-button {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  .score-key-control {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .score-key-toggle {
    padding-inline: 14px;
  }

  .score-key-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(330px, calc(100vw - 40px));
    max-width: 100%;
    border-radius: 18px;
  }

  .score-key-panel__steps {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr);
  }

  .score-key-reset,
  .score-key-step,
  .score-key-note {
    min-height: 44px;
  }
}

@media (max-width: 430px) {
  .score-key-panel {
    width: min(100%, calc(100vw - 32px));
    padding: 9px;
  }

  .score-key-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .score-key-panel__footer {
    gap: 4px;
  }
}
