:is(#main, #sidebar, .penci-mag-featured-content, .penci-home-popular-post, .post-related) a.te-headline-link {
  /* The ink owns hover. An inherited theme color must not fade through blue on exit. */
  transition-property: none;
}

/* Keep the theme's link box and line breaks. Only the inline text carries the rule. */
.te-headline-link > .te-headline-ink {
  box-decoration-break: slice;
  -webkit-box-decoration-break: slice;
  background: linear-gradient(var(--te-headline-accent, #1165f1), var(--te-headline-accent, #1165f1))
    left bottom / 0% 1px no-repeat;
}
body.pcdark-mode .te-headline-link {
  --te-headline-accent: #8dbaff;
  --te-headline-hover-ink: #e4efff;
}
body.home .penci-mag-featured-content .feat-text a.te-headline-link {
  --te-headline-accent: #fff;
  --te-headline-hover-ink: #fff;
}
@media (any-hover: hover) {
  body a.te-headline-link:hover {
    text-decoration: none;
  }
  .te-headline-link:hover > .te-headline-ink {
    color: var(--te-headline-hover-ink, #203954);
    background-size: 100% 1px;
    animation: te-headline-underline 260ms ease-out;
  }
}
a.te-headline-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.te-headline-link:focus-visible > .te-headline-ink {
  background-size: 100% 1px;
}
@keyframes te-headline-underline {
  from { background-size: 0% 1px; }
  to { background-size: 100% 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .te-headline-link:hover > .te-headline-ink { animation: none; }
}
@media (max-width: 960px) {
  #sidebar .te-headline-link > .te-headline-ink { background: none; animation: none; }
}
@media (forced-colors: active) {
  a.te-headline-link:is(:hover, :focus-visible) > .te-headline-ink {
    text-decoration: underline;
  }
}
