/* The title follows the text baseline. Section icons align with the first line. */
.article-editorial .article-body h2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .45em;
}
.article-editorial .article-body h2::before {
  content: "";
  width: .75em;
  aspect-ratio: 1;
  margin-block-start: .23em;
  background: var(--article-heading-icon, url("/assets/favicon.png")) center / contain no-repeat;
  transform-origin: 55% 65%;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .article-editorial .article-body h2:hover::before { animation: heading-sport-nudge .35s ease-out; }
}
@keyframes heading-sport-nudge {
  42% { transform: translateY(-.13em) rotate(-11deg); }
  73% { transform: rotate(5deg); }
}

[data-heading-sport="badminton"] { --article-heading-icon: url("/assets/coach-pointer-badminton.png"); }
[data-heading-sport="fitness"] { --article-heading-icon: url("/assets/coach-pointer-fitness.png"); }
[data-heading-sport="basketball"] { --article-heading-icon: url("/assets/coach-pointer-basketball.png"); }
[data-heading-sport="swimming"] { --article-heading-icon: url("/assets/coach-pointer-swimming.png"); }
[data-heading-sport="yoga"] { --article-heading-icon: url("/assets/coach-pointer-yoga.png"); }
[data-heading-sport="running"] { --article-heading-icon: url("/assets/coach-pointer-running.png"); }
[data-heading-sport="baseball"] { --article-heading-icon: url("/assets/coach-pointer-baseball.png"); }
[data-heading-sport="pickleball"] { --article-heading-icon: url("/assets/coach-pointer-pickleball.png"); }

.article-editorial { --article-heading-highlight: #c7ddc8; }
:root[data-site-light="dusk"] .article-editorial { --article-heading-highlight: #e4b4a3; }
:root[data-site-light="night"] .article-editorial { --article-heading-highlight: #375574; }
.article-editorial-header h1 > span {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(to bottom, transparent 69%, var(--article-heading-highlight) 69% 97%, transparent 97%);
}
@media (forced-colors: active) {
  .article-editorial-header h1 > span { text-decoration: underline; text-underline-offset: .16em; }
}
