/* ===========================================================
 * Newman Core — site-wide CTA polish
 * Loads on every front-end page (not just gallery).
 *
 * Goal: every "Gutenberg block button" inside page content
 * (used as CTAs on treatment pages: "Breast Augmentation Gallery",
 * "Contact Us", "Set up consultation", etc.) renders identically
 * to the homepage .eii-btn.secondary (Meet Dr. Newman / Media
 * Appearances) — navy, square, white text, uppercase.
 *
 * Specificity strategy:
 *   - chain :where(.wp-block-button) > .wp-block-button__link
 *     so we beat Gutenberg defaults without inflating specificity
 *   - !important on color + bg to beat the theme's `a:visited`
 *     repaint (same bug as gallery .nmc-btn--primary).
 * =========================================================== */

.wp-block-button > .wp-block-button__link,
a.wp-block-button__link,
a.wp-block-button__link:link,
a.wp-block-button__link:visited,
a.wp-block-button__link:hover,
a.wp-block-button__link:focus,
a.wp-block-button__link:active {
  background-color: #363e4e !important;
  color: #ffffff !important;
  border: 1px solid #363e4e !important;
  border-radius: 0 !important;
  padding: 10px 16px !important;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}

a.wp-block-button__link:hover,
a.wp-block-button__link:focus {
  background-color: #272d39 !important;
  border-color: #272d39 !important;
  color: #ffffff !important;
}

/* Gutenberg sometimes wraps buttons in a group with its own bg/padding
   that visually creates a "pill" look. Keep our buttons square even
   when authored as outline/pill style in the editor. */
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-fill > .wp-block-button__link {
  background-color: #363e4e !important;
  color: #ffffff !important;
  border: 1px solid #363e4e !important;
  border-radius: 0 !important;
}
