/* Pointer, pressed and current-page states share the same component treatment.
 * Keyboard focus retains the explicit focus-visible outlines from site.css.
 */
body.walczak-site .wp-site-blocks a:focus:not(:focus-visible) {
  outline: none;
}

/* Ordinary text links retain their underline while pressed. */
body.walczak-site .wp-site-blocks a:not(:where(.wp-element-button, .wp-block-button__link, .w-topbar-call, .w-location-route, .w-location-google, .w-location-preview-link)):is(:hover, :active) {
  color: #8c6712;
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* The menu uses its existing underline for hover, press and current page. */
body.walczak-site .w-header .wp-block-navigation-item__content:is(:hover, :active, [aria-current="page"]) {
  color: #10271a;
  text-decoration: none !important;
}
body.walczak-site .w-header .wp-block-navigation-item__content:is(:hover, :active, [aria-current="page"])::after {
  transform: scaleX(1);
}

body.walczak-site .w-dark a:not(.wp-block-button__link):is(:hover, :active) {
  color: #e6b744;
}

/* Button variants preserve their own palette in both pointer states. */
body.walczak-site .wp-block-button:not(.w-outline):not(.w-button-dark):not(.w-button-light) > .wp-block-button__link:is(:hover, :active) {
  background-color: #f2ca64;
  color: #10271a;
}
body.walczak-site .w-button-dark .wp-block-button__link:is(:hover, :active, :focus-visible) {
  background-color: #10271a;
  color: #fff;
}
body.walczak-site .w-button-light .wp-block-button__link:is(:hover, :active, :focus-visible) {
  background-color: #e5eadd;
  color: #173b24;
}
body.walczak-site .w-outline .wp-block-button__link:is(:hover, :active, :focus-visible) {
  background-color: #254630;
  color: #f7f5ef;
}
body.walczak-site .w-topbar .w-contact-button:is(:hover, :active) {
  background: #2f5a3a;
  border-color: #79957a;
  color: #fff;
  text-decoration: none;
}
body.walczak-site .w-services-list a:is(:hover, :active) {
  background: #173b24;
  color: #fff;
}
body.walczak-site .w-footer a:is(:hover, :active) {
  color: #e6b744;
}
body.walczak-site .w-feature-card .w-text-link a:is(:hover, :active) {
  color: #f2ca64 !important;
}
body.walczak-site .w-location-route:is(:hover, :active) {
  background: #f2ca64;
}
body.walczak-site .w-location-google:is(:hover, :active) {
  background: #ffffff0d;
  border-color: #e6b744 !important;
}
body.walczak-site .w-location-preview-link:is(:hover, :active) .w-location-map-open {
  background: #e6b744;
}
