/* Textbook marks above continuous reading. Only accented ruby reserves space.
 * --pitch-height defaults to 10px; --pitch-stroke to unitless 1.4. */
.cue-pitch-ruby {
  ruby-position: over;
  ruby-align: center;
  line-height: inherit;
}
.cue-pitch-ruby .cue-pitch-rt {
  font-size: var(--ruby-size, .56em);
  font-weight: 400;
  line-height: 1.1;
}
.cue-pitch-ruby .cue-pitch-reading {
  display: inline-flex;
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  white-space: nowrap;
  letter-spacing: 0;
}
.cue-pitch-ruby .cue-pitch-kana {
  display: block;
  white-space: nowrap;
  letter-spacing: 0;
  font-variant-ligatures: none;
  color: inherit;
}
.cue-pitch-ruby .cue-pitch-line {
  display: block;
  width: 100%;
  height: clamp(6px, var(--pitch-height, 10px), 18px);
  overflow: visible;
  flex-shrink: 0;
  color: var(--pitch-color, var(--accent, currentColor));
  pointer-events: none;
}
.cue-pitch-ruby .cue-pitch-line path {
  stroke: currentColor;
  stroke-width: var(--pitch-stroke, 1.4);
  stroke-linecap: butt;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  fill: none;
}
.cue-pitch-ruby .cue-pitch-corner {
  display: none;
}
body[data-pitch-style="corner"] .cue-pitch-bar {
  display: none;
}
body[data-pitch-style="corner"] .cue-pitch-corner {
  display: inline;
}
.cue-pitch-ruby .cue-pitch-number {
  display: none;
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  color: var(--pitch-color, var(--accent, currentColor));
  font-size: clamp(8px, .75em, 10px);
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}
body.show-pitch-number .cue-pitch-reading {
  padding-top: 11px;
}
body.show-pitch-number .cue-pitch-number {
  display: block;
}
body.hide-pitch .cue-pitch-line,
body.hide-pitch .cue-pitch-number,
body.hide-ruby .cue-pitch-line,
body.hide-ruby .cue-pitch-number {
  display: none;
}
body.hide-pitch .cue-pitch-ruby,
body.hide-ruby .cue-pitch-ruby {
  line-height: inherit;
}
body.hide-pitch .cue-pitch-reading,
body.hide-ruby .cue-pitch-reading {
  display: inline;
  padding: 0;
}
body.hide-pitch .cue-pitch-kana,
body.hide-ruby .cue-pitch-kana {
  display: inline;
}
