/* fx.css · headline/draw-underline, an underline draws itself · owner: Lizzy East · all rights reserved */

[data-fx~="headline/draw-underline"] [data-fx-mark] { position: relative; white-space: nowrap; }
[data-fx~="headline/draw-underline"] [data-fx-mark] svg {
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 0.34em;
  overflow: visible;
}
[data-fx~="headline/draw-underline"] [data-fx-mark] path {
  fill: none;
  stroke: var(--fx-draw, currentColor);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
html.fx-armed [data-fx~="headline/draw-underline"].is-pending [data-fx-mark] path { stroke-dashoffset: 1; }
html.fx-armed [data-fx~="headline/draw-underline"].is-in [data-fx-mark] path {
  transition: stroke-dashoffset var(--fx-draw-dur, 900ms) var(--fx-ease);
  transition-delay: calc(var(--fx-delay, 0ms) + 200ms);
}
