/* V5: show a real treble-staff pitch range instead of pitch abbreviations.
   The original text remains in the DOM and visible in V1–V4 or on parse failure. */
#results .v5-range-notation{display:none}
body[data-design-edition="v5"] #results .v5-range-original{display:none}
body[data-design-edition="v5"] #results .v5-range-notation{
  display:block;
  /* The whole notation stays at the approved 50% scale; only noteheads
     and ledger-line lengths change inside the SVG. */
  width:112px;
  max-width:100%;
  line-height:0;
  color:#332c42;
}
body[data-design-edition="v5"] #results .v5-range-notation svg{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
}
body[data-design-edition="v5"] #results .v5-range-notation .v5-range-staff{
  stroke:#afa7ba;
  stroke-width:1;
}
body[data-design-edition="v5"] #results .v5-range-notation .v5-range-connector{
  fill:none;
  stroke:#a56dae;
  stroke-width:1.8;
  stroke-linecap:round;
  opacity:.8;
}
body[data-design-edition="v5"] #results .v5-range-notation .v5-range-accidental{
  fill:#332c42;
  font-family:"Apple Symbols","Noto Music","Segoe UI Symbol",serif;
  font-size:19px;
}
body[data-design-edition="v5"] #results .v5-range-notation .v5-range-clef{
  fill:#51405e;
  font-family:"Apple Symbols","Noto Music","Segoe UI Symbol",serif;
  font-size:65px;
}
/* Only the pitch-range detail row: align label and miniature staff to the
   vertical centre of the taller musical example, on desktop and mobile. */
body[data-design-edition="v5"] #results>.result .detail-item.v5-range-row{
  align-items:center;
}
body[data-design-edition="v5"] #results>.result .detail-item.v5-range-row>strong,
body[data-design-edition="v5"] #results>.result .detail-item.v5-range-row>div{
  align-self:center;
}


/* Keep the restored music-font clef optically light at its tiny card size. */
body[data-design-edition="v5"] #results .v5-range-notation .v5-range-clef{
  font-family:"Noto Music","Apple Symbols","Segoe UI Symbol",serif;
  font-weight:400;
  opacity:.86;
}
