/* SAR labels: a readable orange core with a slow, luminous breath.
   Only the words explicitly marked in the page markup receive this effect. */
:is(body.tp-site, #thera-sar-editoriale, .sar-navigation-dialog) .sar-led-label {
  display: inline !important;
  min-width: 0;
  font: inherit !important;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: normal;
}

:is(body.tp-site, #thera-sar-editoriale, .sar-navigation-dialog) .sar-led-word {
  --sar-led-ink: #ae4207;
  display: inline !important;
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit !important;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: normal;
  color: var(--sar-led-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  background: transparent !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: 0 0 .07em rgb(255 133 40 / 15%),
               0 0 .25em rgb(255 107 18 / 7%);
  animation: sar-led-breathe 3.2s ease-in-out infinite;
}

/* The glyphs stay fully visible and do not move or change size. The halo
   breathes around the existing inline text, including naturally wrapped words. */
@keyframes sar-led-breathe {
  0%, 100% {
    text-shadow: 0 0 .07em rgb(255 133 40 / 15%),
                 0 0 .25em rgb(255 107 18 / 7%),
                 0 0 .55em rgb(255 127 35 / 0%);
  }
  50% {
    text-shadow: 0 0 .08em rgb(255 151 62 / 88%),
                 0 0 .30em rgb(255 105 15 / 65%),
                 0 0 .65em rgb(255 127 35 / 38%);
  }
}

/* Pause controls on both the shared website and the approved SAR page. */
:is(body.tp-site, #thera-sar-editoriale, .sar-navigation-dialog).tp-motion-muted .sar-led-word,
:is(body.tp-site, #thera-sar-editoriale, .sar-navigation-dialog) .tp-motion-muted .sar-led-word,
:is(body.tp-site, #thera-sar-editoriale, .sar-navigation-dialog)[data-paused="true"] .sar-led-word,
:is(body.tp-site, #thera-sar-editoriale, .sar-navigation-dialog) [data-paused="true"] .sar-led-word {
  animation: none !important;
  text-shadow: 0 0 .10em rgb(255 151 62 / 26%),
               0 0 .30em rgb(255 105 15 / 12%);
}

@media (prefers-reduced-motion: reduce) {
  :is(body.tp-site, #thera-sar-editoriale, .sar-navigation-dialog) .sar-led-word {
    animation: none !important;
    text-shadow: 0 0 .10em rgb(255 151 62 / 26%),
                 0 0 .30em rgb(255 105 15 / 12%);
  }
}

@media (forced-colors: active) {
  :is(body.tp-site, #thera-sar-editoriale, .sar-navigation-dialog) .sar-led-word {
    color: inherit !important;
    animation: none !important;
    text-shadow: none !important;
    forced-color-adjust: auto;
  }
}

@media print {
  :is(body.tp-site, #thera-sar-editoriale, .sar-navigation-dialog) .sar-led-word {
    color: inherit !important;
    animation: none !important;
    text-shadow: none !important;
  }
}
