/*!
 * voice.split-reveal — companion styles for the port of React Bits `SplitText`.
 * MIT + Commons Clause License Condition v1.0, Copyright (c) 2026 David Haz; full notice in fx.js.
 * Private port: never published as a kit, package or public repository.
 */

/*
 * The line mask clips at the line box, so at a display line-height under 1 descenders and
 * accents are cut off. The padding widens the clip box and the negative margin gives the
 * space back, so the layout does not move.
 */
[data-fx="voice.split-reveal"] .fx-line-mask {
  padding-block: 0.12em 0.24em;
  margin-block: -0.12em -0.24em;
}

/*
 * Optional pre-paint hide: only when an inline head script has put `fx-split-pending` on <html>
 * (and set its own failsafe timer to remove it), so a page whose GSAP never loads stays readable.
 */
html.fx-split-pending [data-fx="voice.split-reveal"]:not(.fx-ready) {
  visibility: hidden;
}

@media print {
  [data-fx="voice.split-reveal"] .fx-line,
  [data-fx="voice.split-reveal"] .fx-word,
  [data-fx="voice.split-reveal"] .fx-char {
    opacity: 1 !important;
    transform: none !important;
  }
  html.fx-split-pending [data-fx="voice.split-reveal"] { visibility: visible !important; }
}
