/* Paint-stroke swooshes: arched and flat. Use .swoosh-arch or .swoosh-flat
   on a span around one word or a short phrase. One per hero, at most one
   or two more per page. */
.swoosh-arch,
.swoosh-flat {
  position: relative;
  display: inline-block;
  isolation: isolate;
  white-space: nowrap;
}
.swoosh-arch::after,
.swoosh-flat::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  left: -0.12em;
  right: -0.12em;
  bottom: 0.10em;
}

/* Arched stroke (current home hero "Control" values) */
.swoosh-arch { padding-bottom: 0.55em; }
.swoosh-arch::after {
  background-image: url("../images/brush/brush-paint.png");
  background-image: image-set(
    url("../images/brush/brush-paint.svg") type("image/svg+xml"),
    url("../images/brush/brush-paint.webp") type("image/webp"),
    url("../images/brush/brush-paint.png") type("image/png")
  );
  height: 0.83em;
}

/* Flat stroke (approved backup values) */
.swoosh-flat { padding-bottom: 0.32em; }
.swoosh-flat::after {
  background-image: url("../images/brush/brush-paint-flat.png");
  background-image: image-set(
    url("../images/brush/brush-paint-flat.svg") type("image/svg+xml"),
    url("../images/brush/brush-paint-flat.webp") type("image/webp"),
    url("../images/brush/brush-paint-flat.png") type("image/png")
  );
  height: 0.50em;
}

/* Paint-stroke circle around one short word. */
.swoosh-circle {
  position: relative;
  display: inline-block;
  isolation: isolate;
  white-space: nowrap;
  padding: 0.14em 0.24em 0.16em;
  margin: 0 -0.08em;
}
.swoosh-circle::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  left: -0.22em;
  right: -0.22em;
  top: -0.18em;
  height: calc(100% + 0.28em);
  bottom: auto;
  background-image: url("../images/brush/brush-paint-circle.png");
  background-image: image-set(
    url("../images/brush/brush-paint-circle.svg") type("image/svg+xml"),
    url("../images/brush/brush-paint-circle.webp") type("image/webp"),
    url("../images/brush/brush-paint-circle.png") type("image/png")
  );
}
