/* Editor preview: render the same icon as a pseudo-element so authors see
   the cue immediately when they toggle "Open in new tab". On the front-end,
   the PHP filter injects a real <span class="vizcue">, so we suppress the
   pseudo for anchors that already contain one.

   Button blocks render their link as a contenteditable <div> (not an <a>)
   in edit mode, so a companion JS filter adds `has-link-target-blank` to
   the block wrapper when linkTarget === '_blank'. */
a[target$="blank"]:not(:has(.vizcue))::after,
.has-link-target-blank .wp-block-button__link::after {
  content: "";
  display: inline-block;
  width: 1.125rem;
  height: 1.5rem;
  vertical-align: top;
  margin-left: 0.5rem;
  background-color: currentColor;
  mask: url(data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20122.6%20122.88%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M110.6%2C72.58c0-3.19%2C2.59-5.78%2C5.78-5.78c3.19%2C0%2C5.78%2C2.59%2C5.78%2C5.78v33.19c0%2C4.71-1.92%2C8.99-5.02%2C12.09c-3.1%2C3.1-7.38%2C5.02-12.09%2C5.02H17.11c-4.71%2C0-8.99-1.92-12.09-5.02c-3.1-3.1-5.02-7.38-5.02-12.09V17.19C0%2C12.48%2C1.92%2C8.2%2C5.02%2C5.1C8.12%2C2%2C12.4%2C0.08%2C17.11%2C0.08h32.98c3.19%2C0%2C5.78%2C2.59%2C5.78%2C5.78c0%2C3.19-2.59%2C5.78-5.78%2C5.78H17.11c-1.52%2C0-2.9%2C0.63-3.91%2C1.63c-1.01%2C1.01-1.63%2C2.39-1.63%2C3.91v88.58c0%2C1.52%2C0.63%2C2.9%2C1.63%2C3.91c1.01%2C1.01%2C2.39%2C1.63%2C3.91%2C1.63h87.95c1.52%2C0%2C2.9-0.63%2C3.91-1.63s1.63-2.39%2C1.63-3.91V72.58L110.6%2C72.58z%20M112.42%2C17.46L54.01%2C76.6c-2.23%2C2.27-5.89%2C2.3-8.16%2C0.07c-2.27-2.23-2.3-5.89-0.07-8.16l56.16-56.87H78.56c-3.19%2C0-5.78-2.59-5.78-5.78c0-3.19%2C2.59-5.78%2C5.78-5.78h26.5c5.12%2C0%2C11.72-0.87%2C15.65%2C3.1c2.48%2C2.51%2C1.93%2C22.52%2C1.61%2C34.11c-0.08%2C3-0.15%2C5.29-0.15%2C6.93c0%2C3.19-2.59%2C5.78-5.78%2C5.78c-3.19%2C0-5.78-2.59-5.78-5.78c0-0.31%2C0.08-3.32%2C0.19-7.24C110.96%2C30.94%2C111.93%2C22.94%2C112.42%2C17.46L112.42%2C17.46z%22%2F%3E%3C%2Fsvg%3E);
  mask-repeat: no-repeat;
  mask-position: left center;
  mask-size: 0.75rem;
  -webkit-mask: url(data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20122.6%20122.88%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M110.6%2C72.58c0-3.19%2C2.59-5.78%2C5.78-5.78c3.19%2C0%2C5.78%2C2.59%2C5.78%2C5.78v33.19c0%2C4.71-1.92%2C8.99-5.02%2C12.09c-3.1%2C3.1-7.38%2C5.02-12.09%2C5.02H17.11c-4.71%2C0-8.99-1.92-12.09-5.02c-3.1-3.1-5.02-7.38-5.02-12.09V17.19C0%2C12.48%2C1.92%2C8.2%2C5.02%2C5.1C8.12%2C2%2C12.4%2C0.08%2C17.11%2C0.08h32.98c3.19%2C0%2C5.78%2C2.59%2C5.78%2C5.78c0%2C3.19-2.59%2C5.78-5.78%2C5.78H17.11c-1.52%2C0-2.9%2C0.63-3.91%2C1.63c-1.01%2C1.01-1.63%2C2.39-1.63%2C3.91v88.58c0%2C1.52%2C0.63%2C2.9%2C1.63%2C3.91c1.01%2C1.01%2C2.39%2C1.63%2C3.91%2C1.63h87.95c1.52%2C0%2C2.9-0.63%2C3.91-1.63s1.63-2.39%2C1.63-3.91V72.58L110.6%2C72.58z%20M112.42%2C17.46L54.01%2C76.6c-2.23%2C2.27-5.89%2C2.3-8.16%2C0.07c-2.27-2.23-2.3-5.89-0.07-8.16l56.16-56.87H78.56c-3.19%2C0-5.78-2.59-5.78-5.78c0-3.19%2C2.59-5.78%2C5.78-5.78h26.5c5.12%2C0%2C11.72-0.87%2C15.65%2C3.1c2.48%2C2.51%2C1.93%2C22.52%2C1.61%2C34.11c-0.08%2C3-0.15%2C5.29-0.15%2C6.93c0%2C3.19-2.59%2C5.78-5.78%2C5.78c-3.19%2C0-5.78-2.59-5.78-5.78c0-0.31%2C0.08-3.32%2C0.19-7.24C110.96%2C30.94%2C111.93%2C22.94%2C112.42%2C17.46L112.42%2C17.46z%22%2F%3E%3C%2Fsvg%3E);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  -webkit-mask-size: 0.75rem;
}

.vizcue {
  position: relative;
  display: inline-block;
  width: 1.125rem;
  height: 1.5rem;
  vertical-align: top;
  margin-left: 0.5rem;
}

.vizcue:before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  mask: url(data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20122.6%20122.88%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M110.6%2C72.58c0-3.19%2C2.59-5.78%2C5.78-5.78c3.19%2C0%2C5.78%2C2.59%2C5.78%2C5.78v33.19c0%2C4.71-1.92%2C8.99-5.02%2C12.09c-3.1%2C3.1-7.38%2C5.02-12.09%2C5.02H17.11c-4.71%2C0-8.99-1.92-12.09-5.02c-3.1-3.1-5.02-7.38-5.02-12.09V17.19C0%2C12.48%2C1.92%2C8.2%2C5.02%2C5.1C8.12%2C2%2C12.4%2C0.08%2C17.11%2C0.08h32.98c3.19%2C0%2C5.78%2C2.59%2C5.78%2C5.78c0%2C3.19-2.59%2C5.78-5.78%2C5.78H17.11c-1.52%2C0-2.9%2C0.63-3.91%2C1.63c-1.01%2C1.01-1.63%2C2.39-1.63%2C3.91v88.58c0%2C1.52%2C0.63%2C2.9%2C1.63%2C3.91c1.01%2C1.01%2C2.39%2C1.63%2C3.91%2C1.63h87.95c1.52%2C0%2C2.9-0.63%2C3.91-1.63s1.63-2.39%2C1.63-3.91V72.58L110.6%2C72.58z%20M112.42%2C17.46L54.01%2C76.6c-2.23%2C2.27-5.89%2C2.3-8.16%2C0.07c-2.27-2.23-2.3-5.89-0.07-8.16l56.16-56.87H78.56c-3.19%2C0-5.78-2.59-5.78-5.78c0-3.19%2C2.59-5.78%2C5.78-5.78h26.5c5.12%2C0%2C11.72-0.87%2C15.65%2C3.1c2.48%2C2.51%2C1.93%2C22.52%2C1.61%2C34.11c-0.08%2C3-0.15%2C5.29-0.15%2C6.93c0%2C3.19-2.59%2C5.78-5.78%2C5.78c-3.19%2C0-5.78-2.59-5.78-5.78c0-0.31%2C0.08-3.32%2C0.19-7.24C110.96%2C30.94%2C111.93%2C22.94%2C112.42%2C17.46L112.42%2C17.46z%22%2F%3E%3C%2Fsvg%3E);
  mask-repeat: no-repeat;
  mask-position: left center;
  -webkit-mask: url(data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20122.6%20122.88%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M110.6%2C72.58c0-3.19%2C2.59-5.78%2C5.78-5.78c3.19%2C0%2C5.78%2C2.59%2C5.78%2C5.78v33.19c0%2C4.71-1.92%2C8.99-5.02%2C12.09c-3.1%2C3.1-7.38%2C5.02-12.09%2C5.02H17.11c-4.71%2C0-8.99-1.92-12.09-5.02c-3.1-3.1-5.02-7.38-5.02-12.09V17.19C0%2C12.48%2C1.92%2C8.2%2C5.02%2C5.1C8.12%2C2%2C12.4%2C0.08%2C17.11%2C0.08h32.98c3.19%2C0%2C5.78%2C2.59%2C5.78%2C5.78c0%2C3.19-2.59%2C5.78-5.78%2C5.78H17.11c-1.52%2C0-2.9%2C0.63-3.91%2C1.63c-1.01%2C1.01-1.63%2C2.39-1.63%2C3.91v88.58c0%2C1.52%2C0.63%2C2.9%2C1.63%2C3.91c1.01%2C1.01%2C2.39%2C1.63%2C3.91%2C1.63h87.95c1.52%2C0%2C2.9-0.63%2C3.91-1.63s1.63-2.39%2C1.63-3.91V72.58L110.6%2C72.58z%20M112.42%2C17.46L54.01%2C76.6c-2.23%2C2.27-5.89%2C2.3-8.16%2C0.07c-2.27-2.23-2.3-5.89-0.07-8.16l56.16-56.87H78.56c-3.19%2C0-5.78-2.59-5.78-5.78c0-3.19%2C2.59-5.78%2C5.78-5.78h26.5c5.12%2C0%2C11.72-0.87%2C15.65%2C3.1c2.48%2C2.51%2C1.93%2C22.52%2C1.61%2C34.11c-0.08%2C3-0.15%2C5.29-0.15%2C6.93c0%2C3.19-2.59%2C5.78-5.78%2C5.78c-3.19%2C0-5.78-2.59-5.78-5.78c0-0.31%2C0.08-3.32%2C0.19-7.24C110.96%2C30.94%2C111.93%2C22.94%2C112.42%2C17.46L112.42%2C17.46z%22%2F%3E%3C%2Fsvg%3E);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
}
