/* Dynamic overline width: the right edge follows the visible first line.
 * Kept separate from generic heading styles so editor / frontend use exactly
 * the same geometry. The existing left edge continues to respect each BMP
 * overline variant and breakpoint (viewport or beyond the wide container).
 * No rule here applies to the automatically generated page title. */
h1.wp-block-heading[data-bmp-h1-measured="viewport"]::before,
h1.wp-block-heading[data-bmp-h1-measured="container"]::before {
    right: calc(100% - var(--bmp-h1-first-line-size)) !important;
    width: auto !important;
    transform: none;
}
/* Legacy frontend spans may be present in cached markup from older versions. */
h1.wp-block-heading[data-bmp-h1-measured] .bmp-heading-first-line::before {
    display: none !important;
}
