/* 1) Remove underline in site header + navigation menus */
header a,
.site-header a,
.wp-site-blocks header a,
.wp-block-navigation a,
.wp-block-navigation-item__content,
nav a,
.menu a {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* 2) Remove underline on anything styled as a button */
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.button,
a[class*="button"] {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* 3) Keep underlines in the main page/post content only (optional but recommended) */
.entry-content a,
.wp-block-post-content a,
main a {
  text-decoration: underline;
}
/* Remove underline from ALL button-like links (including hover/focus) */
.wp-block-button__link,
.wp-element-button,
a.wp-block-button__link,
a.wp-element-button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  background-image: none !important;
}

/* If underline appears only on hover/focus */
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-element-button:hover,
.wp-element-button:focus,
a.wp-element-button:hover,
a.wp-element-button:focus {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  background-image: none !important;
}
/* A) Remove underlines from links everywhere by default */
a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  background-image: none !important;
}

/* B) Re-enable underlines ONLY for body/content links */
.entry-content a,
.wp-block-post-content a,
main .entry-content a,
main .wp-block-post-content a {
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  border-bottom: initial !important;
  background-image: initial !important;
}

/* C) Make sure buttons never get underlines (even if inside content) */
.wp-block-button__link,
.wp-element-button,
a.wp-block-button__link,
a.wp-element-button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.button,
a[class*="button"] {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  background-image: none !important;
}
