/* Link treatment cleanup: keep component links clean and reserve underlines for inline prose links. */

/* Theme switching has been removed. Keep any legacy toggle markup out of the rendered UI. */
.theme-toggle,
[data-theme-toggle] {
  display: none !important;
}

/* UI and component links should never inherit browser underlines. */
.brand,
.brand-link,
.nav-links a,
.btn,
.rb-work-primary,
.rb-work-secondary,
.text-link,
.footer-links a,
.contact-link-row a,
.case-study-row,
.profile-embed a,
.rb-actions a,
.rb-close a,
.case-actions a,
.tag-list a,
.stats a,
.card > a,
.card h2 a,
.card h3 a,
.project-feature a,
.practice-card a,
.credential-panel a,
.aside-panel a {
  text-decoration: none;
}

/* Inline editorial/prose links remain identifiable, but less visually heavy. */
.prose-content p a,
.prose-content li a,
.case-section p a,
.card p a,
.card li a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
}

.prose-content p a:hover,
.prose-content li a:hover,
.case-section p a:hover,
.card p a:hover,
.card li a:hover {
  text-decoration-color: currentColor;
}

/* Contact rows already read as interactive rows, so an underline adds noise. */
.contact-link-row a {
  text-decoration: none !important;
}

/* Keep accessibility-mode underlines intentional without underlining button-style links. */
html.screen-reader-mode .btn,
html.screen-reader-mode .brand,
html.screen-reader-mode .brand-link,
html.screen-reader-mode .nav-links a,
html.screen-reader-mode .rb-work-primary,
html.screen-reader-mode .rb-work-secondary,
html.screen-reader-mode .footer-links a,
html.screen-reader-mode .contact-link-row a {
  text-decoration: none;
}
