/* Draw on the text, preserving the link's existing hit area and line breaks. */
.cd-underline-label,
:is(.article-body, .privacy-notice, .service-specialist, .field-hint) a[href]:not(:has(img, .cd-underline-label)) {
  --cd-line: var(--cd-underline-color, var(--action-color));
  padding-bottom: .12em;
  text-decoration-line: none;
  background-image: linear-gradient(var(--cd-line), var(--cd-line)), linear-gradient(var(--cd-rest-line, transparent), var(--cd-rest-line, transparent));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0% 2px, 100% 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size var(--motion-link) ease-in-out;
}

.topbar .cd-underline-label {
  transition-duration: var(--motion-navigation);
}
.topbar :is(.desk-nav, .mobile-links, .lang-list) a {
  transition: color var(--motion-color) ease-in-out;
}
.topbar .head-contact {
  transition: color var(--motion-color) ease-in-out, background-color var(--motion-color) ease-in-out;
}

/* Inline links remain distinguishable inside running text. */
:is(.article-body, .privacy-notice, .service-specialist, .field-hint) a[href] { --cd-rest-line: #9daecc; }
:is(.jump-nav, .breadcrumbs, .side-nav, .career-nav, .article-toc, .site-directory-list, .sitemap-grid, .facts-table) a:has(.cd-underline-label),
:is(.jump-nav, .breadcrumbs, .article-toc, .sitemap-grid) a:is(:hover, :focus-visible):has(.cd-underline-label),
.role-list a h3, .service-card .card-action, .card-action:has(.cd-underline-label) {
  text-decoration-line: none;
}

/* Replace the original static decorations on these links and their headings. */
.domestic-services h3 a, .domestic-related nav a, .service-entry h3 a,
.agency-services-footer a, .footer-links a:hover, .hero-service:hover,
a.text-button, a.line-link, .company-section a.line-link,
.news-item:is(:hover, :focus-visible) .news-title, .archive-row .archive-title,
.article-card:is(:hover, :focus-visible) :is(h2, h3),
.featured-services a:is(:hover, :focus-visible) h3 {
  text-decoration-line: none;
}

.service-entry { --cd-underline-color: var(--entry-heading); }
.site-nav a[aria-current="page"]::after { content: none; }
a:not([aria-current="page"]):focus-visible .cd-underline-label,
:is(.article-body, .privacy-notice, .service-specialist, .field-hint) a[href]:not(:has(img, .cd-underline-label)):focus-visible {
  background-size: 100% 2px, 100% 1px;
}
@media (hover: hover) {
  a:not([aria-current="page"]):hover .cd-underline-label,
  :is(.article-body, .privacy-notice, .service-specialist, .field-hint) a[href]:not(:has(img, .cd-underline-label)):hover { background-size: 100% 2px, 100% 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-underline-label, .topbar .cd-underline-label, .topbar a,
  :is(.article-body, .privacy-notice, .service-specialist, .field-hint) a[href]:not(:has(img, .cd-underline-label)) { transition: none !important; }
}
@media (forced-colors: active) {
  :is(.article-body, .privacy-notice, .service-specialist, .field-hint) a[href]:not(:has(img, .cd-underline-label)),
  a:not([aria-current="page"]):is(:hover, :focus-visible) .cd-underline-label {
    text-decoration: underline;
  }
}
