.m-wordmark:has(> .tnf-wordmark) {
  flex: none;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}

.m-wordmark > .tnf-wordmark {
  display: block;
  width: auto;
  height: .75em;
  overflow: visible;
}

.tnf-wordmark-animated > .tnf-wordmark { height: .7em; }

@media (max-width: 460px) {
  .c-brand .tnf-wordmark,
  .tnf-standalone-brand .tnf-wordmark { height: .57em; }
}

.tnf-wordmark-accent { fill: #ff293e; }
.tnf-wordmark-letter { fill: #f8f9fb; }

:root[data-theme="light"] .tnf-wordmark-accent { fill: #cb1730; }
:root[data-theme="light"] .tnf-wordmark-letter { fill: #17202a; }

.tnf-wordmark-spark {
  --tnf-spark-core: #fff0f7;
  --tnf-spark-glow: #ff255e;
  --tnf-ember: #ffd097;
  --tnf-ember-glow: #ff8e32;
  pointer-events: none;
  fill: none;
  stroke: var(--tnf-spark-core);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 .65px var(--tnf-spark-glow)) drop-shadow(0 0 2px var(--tnf-spark-glow));
}

.tnf-wordmark-spark path { opacity: 0; }

:root[data-theme="light"] .tnf-wordmark-spark {
  --tnf-spark-core: #ae103e;
  --tnf-spark-glow: #f75d81;
  --tnf-ember: #ae4d09;
  --tnf-ember-glow: #f0904f;
}

@media (prefers-reduced-motion: no-preference) {
  .tnf-wordmark-animated { animation: tnf-wordmark-entry .75s .12s both; }

  .tnf-wordmark-animated > .tnf-wordmark {
    transform: scale(var(--tnf-wordmark-scale, 1));
    transition: transform .2s ease-out;
  }

  .tnf-wordmark-sweep path {
    stroke-dasharray: 24 6 9 61;
    animation: tnf-wordmark-trace 6.6s linear infinite;
    animation-delay: calc(1.85s + var(--letter-order) * .125s);
  }

  .tnf-wordmark-embers {
    stroke: var(--tnf-ember);
    stroke-width: 3.5;
    stroke-dasharray: 10 4 3 9;
    filter: drop-shadow(0 0 2px var(--tnf-ember-glow));
    transform-box: view-box;
    transform-origin: center;
    animation: tnf-wordmark-embers 6.6s 5s ease-out infinite;
  }

  .tnf-wordmark-pulse path,
  .tnf-wordmark-pulse-arc {
    stroke-dasharray: 70 30;
    animation-name: var(--tnf-pulse, tnf-wordmark-ripple);
    animation-timing-function: ease-out;
    animation-fill-mode: both;
  }

  .tnf-wordmark-pulse path {
    animation-duration: .55s;
    animation-delay: calc(var(--tnf-pulse-delay, .12s) + var(--letter-distance) * .065s);
  }

  .tnf-wordmark-pulse-arc {
    stroke-dasharray: 56 44;
    animation-duration: .7s;
    animation-delay: calc(var(--tnf-pulse-delay, .12s) + .05s);
  }

  .tnf-wordmark-hover-pulse {
    --tnf-pulse: none;
    --tnf-pulse-delay: 0s;
  }

  :is(.c-brand, .m-brand, .gr-brand, .sh-store-brand, .tnf-standalone-brand):is(:hover, :focus-visible) .tnf-wordmark-animated {
    --tnf-wordmark-scale: 1.045;
    --tnf-entry-scale: 1;
  }

  :is(.c-brand, .m-brand, .gr-brand, .sh-store-brand, .tnf-standalone-brand):is(:hover, :focus-visible) .tnf-wordmark-hover-pulse {
    --tnf-pulse: tnf-wordmark-ripple;
  }

  :is(.c-brand, .m-brand, .gr-brand, .sh-store-brand, .tnf-standalone-brand):is(:hover, :focus-visible) :is(.tnf-wordmark-entry-pulse, .tnf-wordmark-sweep, .tnf-wordmark-embers) {
    visibility: hidden;
  }

  @keyframes tnf-wordmark-entry {
    0%, 100% { transform: scale(1); }
    27%, 70% { transform: scale(var(--tnf-entry-scale, 1.045)); }
  }

  @keyframes tnf-wordmark-trace {
    0% { opacity: 0; stroke-dashoffset: 0; }
    1.2% { opacity: 1; stroke-dashoffset: -15px; }
    5% { opacity: .94; stroke-dashoffset: -65px; }
    7.5%, 100% { opacity: 0; stroke-dashoffset: -100px; }
  }

  @keyframes tnf-wordmark-embers {
    0% { opacity: 0; transform: scaleX(1); stroke-dashoffset: 12px; }
    2% { opacity: .98; }
    6% { opacity: .62; }
    11%, 100% { opacity: 0; transform: scaleX(.28); stroke-dashoffset: -12px; }
  }

  @keyframes tnf-wordmark-ripple {
    0% { opacity: 0; stroke-dashoffset: 76px; }
    18% { opacity: 1; }
    58% { opacity: .9; }
    100% { opacity: 0; stroke-dashoffset: -43px; }
  }
}
