/* Public-site links use text color for interaction feedback in every layout. */
:root {
  --sptg-link-highlight:#116786;
  --sptg-link-focus:#147da6;
}
html[data-theme="dark"], html.sptg-dark {
  --sptg-link-highlight:#79d5ef;
  --sptg-link-focus:#79d5ef;
}

/* This important layer wins over legacy component overrides without changing layout. */
@layer sptg-link-feedback {
/* Include nested labels so legacy rules and chip spans cannot restore underlines. */
html body a,
html body a *,
html body a::before,
html body a::after {
  text-decoration:none !important;
}

/* Filled controls retain their own contrasting foreground and surface feedback. */
html body a[href]:not(:is(
  .btn, [role="button"], .submit-btn, .reset-btn, .btn-file-wrapper,
  .sptg-footer-ai-button, .tile-item-readmore-btn, .tile-item-readmore-btn-mobile,
  .slider-item-readmore-btn, .tile-btn-inner, .sptg-banner-explore,
  .btn-primary, .btn-default, .btn-success, .btn-info, .btn-warning, .btn-danger,
  .label, .badge, .pagination > li.active > a, .pagination > li.disabled > a,
  .pager > li.disabled > a, .nav-pills > li.active > a, .nav-tabs a,
  .search-pager .navigation, .abouttext.blog .pagination li.prev > a,
  .abouttext.blog .pagination li.next > a, .disabled, [aria-disabled="true"]
)):is(:hover, .hover, :focus-visible, :active) {
  color:var(--sptg-link-highlight) !important;
}
html body a[href]:not(:is(
  .btn, [role="button"], .submit-btn, .reset-btn, .btn-file-wrapper,
  .sptg-footer-ai-button, .tile-item-readmore-btn, .tile-item-readmore-btn-mobile,
  .slider-item-readmore-btn, .tile-btn-inner, .sptg-banner-explore,
  .btn-primary, .btn-default, .btn-success, .btn-info, .btn-warning, .btn-danger,
  .label, .badge, .pagination > li.active > a, .pagination > li.disabled > a,
  .pager > li.disabled > a, .nav-pills > li.active > a, .nav-tabs a,
  .search-pager .navigation, .abouttext.blog .pagination li.prev > a,
  .abouttext.blog .pagination li.next > a, .disabled, [aria-disabled="true"]
)):is(:hover, .hover, :focus-visible, :active) :is(span, strong, em, b, i, small, code) {
  color:inherit !important;
}

/* Legacy hover classes must not underline the full clickable logo area. */
html body a.sptg-testimonial-brand {
  border-bottom-color:transparent !important;
}

/* Older text links used bottom borders as underlines; keep card/control borders. */
html body :is(
  .abouttext a, .nav-blogarticle a, .search-text a, .blog-section .title a,
  .blog-section .list-inline a, .tile-testimonials a, .tile.empty .tile-footer a,
  .left-menu-subpages a, .dropdown-menu a, .modal-content a,
  a.footer-menu-main-item, .footer-menu-sub-items a,
  .footer-privacy-policy a, a.company-details.contacts, .company-details a.contacts
):not(:is(
  .btn, [role="button"], .tile-item-readmore-btn, .tile-item-readmore-btn-mobile,
  .slider-item-readmore-btn, .tile-btn-inner, .sptg-banner-explore,
  .pagination a, .nav-tabs a, .sptg-work-logo > a, .sptg-testimonial-brand,
  .sptg-testimonial-photo, .sptg-case-contact-photo, .sptg-capability-section-link,
  .sptg-home-capability-card
)) {
  border-bottom-color:transparent !important;
}

}

/* Keyboard location remains visible even where the legacy reset removes outlines. */
html body a[href]:focus-visible {
  outline:2px solid var(--sptg-link-focus) !important;
  outline-offset:3px !important;
}
