/**
 * Accessibility contrast helpers for public frontend (PageSpeed a11y).
 * Improves muted text contrast without forcing underlines on cards/UI chrome.
 */
:root {
  --a11y-muted: #5c6570;
}

.text-muted,
.small.text-muted,
.footer-text,
.widget .footer-text,
.abad-home .ah-skin--text-muted,
.abad-home .ah-skin--text-muted .abad-section-head__title,
.abad-home .ah-skin--text-muted .sec-title,
.abad-meta,
.abad-card__meta,
.blog-meta,
.post-meta,
.th-blog .blog-meta span,
.th-blog .blog-meta a {
  color: var(--a11y-muted) !important;
}

/* Keep listing/card/UI links clean (no forced underline) */
.th-blog a,
.th-blog .blog-content a,
.post-card-item a,
.post-card-body a,
.blog-meta a,
.post-meta a,
.abad-card a,
.abad-meta a,
.link-btn,
.th-btn,
.abad-btn,
.nav-link,
.simple-icon,
.icon-btn,
.scroll-top,
.scrollToTopBtn,
.whatsapp-btn,
.gallery-btn,
.reader-rail a,
.sidebar a,
.widget a,
.footer-widget a,
.th-menu-wrapper a,
.th-header a,
.as-blog a,
.blog-area a {
  text-decoration: none !important;
}

/* Underline only inside long-form article prose paragraphs */
.entry-content > p a:not(.btn):not(.th-btn):not(.abad-btn),
.single-content > p a:not(.btn):not(.th-btn):not(.abad-btn),
.blog-details .blog-content > p a:not(.btn):not(.th-btn):not(.abad-btn),
.np-article-main .blog-content > p a:not(.btn):not(.th-btn):not(.abad-btn) {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Scroll-top must stay a non-button box; reset if ever rendered as <button> */
button.scroll-top {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  line-height: 0;
}

.dark-theme {
  --a11y-muted: #b8c0cc;
}

.dark-theme .text-muted,
.dark-theme .footer-text,
.dark-theme .abad-meta,
.dark-theme .abad-card__meta,
.dark-theme .blog-meta,
.dark-theme .post-meta {
  color: var(--a11y-muted) !important;
}
