/* Public website controls: no click/tap boxes, with visible keyboard focus. */
:root body .wp-site-blocks {
    --sprucen-interaction-focus: #53584c;
    --sprucen-field-focus: #8a8c78;
}
:root body .wp-site-blocks :is(.sprucen-footer-frame, .sprucen-footer-inner) {
    --sprucen-interaction-focus: #e8e9df;
}
:root body .wp-site-blocks :is(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="link"], [contenteditable="true"]) {
    -webkit-tap-highlight-color: transparent;
}
:root body .wp-site-blocks :is(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="link"], [contenteditable="true"]):focus,
:root body .wp-site-blocks :is(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="link"], [contenteditable="true"]):active {
    outline: none !important;
    box-shadow: none !important;
}
/* Keyboard focus remains distinct without changing control dimensions. */
:root body .wp-site-blocks :is(button, input, select, textarea, [tabindex], [role="button"], [contenteditable="true"]):focus-visible:where(:not([tabindex="-1"])) {
    outline: 2px solid var(--sprucen-interaction-focus) !important;
    outline-offset: 4px !important;
    box-shadow: none !important;
}
/* Text-entry controls use their existing border, including when tapped. */
:root body .wp-site-blocks :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea):focus {
    outline: none !important;
    box-shadow: none !important;
}
:root body .wp-site-blocks :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea):focus:not([aria-invalid="true"]):not(.is-invalid) {
    border-color: var(--sprucen-field-focus) !important;
}
/* Text links and View all use an underline rather than a rectangular ring. */
:root body .wp-site-blocks :is(a, summary, [role="link"]):focus-visible:where(:not([tabindex="-1"])) {
    outline: none !important;
    box-shadow: none !important;
    text-decoration-line: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 6px !important;
}
/* Services disclosures supply their own continuous keyboard-focus line. */
:root body .wp-site-blocks .sprucen-page-services .sa-service .sprucen-service-disclosure > summary:focus-visible {
    /* Its continuous line becomes 2px on keyboard focus in services-bands.css. */
    text-decoration-line: none !important;
}
/* Links containing images or icons need a visible keyboard indicator. */
:root body .wp-site-blocks :is(a, [role="link"]):has(img, svg):focus-visible:where(:not([tabindex="-1"])) {
    outline: 2px solid var(--sprucen-interaction-focus) !important;
    outline-offset: 4px !important;
}
/* Messages and step headings can still receive focus without a visible box. */
:root body .wp-site-blocks [tabindex="-1"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Page links keep their resting design and respond while pressed. */
:root body .wp-site-blocks main :is(a[href], .sprucen-service-disclosure > summary):is(:active, [data-sprucen-pressed="true"]) {
    color: var(--sprucen-interaction-focus) !important;
    text-decoration-thickness: 2px !important;
}
:root body .wp-site-blocks main .sprucen-service-disclosure > summary:is(:active, [data-sprucen-pressed="true"])::before {
    height: 2px;
}
:root body .wp-site-blocks main :is(.sprucen-underline-button a[href], a.sprucen-project-cta__button):is(:active, [data-sprucen-pressed="true"])::after {
    height: 2px;
}
/* The project title supplies the existing stretched card link. Give its
   visible View project link feedback wherever the card is pressed. */
:root body .wp-site-blocks main .sprucen-project-card:has(a:is(:active, [data-sprucen-pressed="true"])) .sprucen-project-card__link {
    color: var(--sprucen-interaction-focus) !important;
    text-decoration-thickness: 2px !important;
}
:root body .wp-site-blocks main a[href]:is(:active, [data-sprucen-pressed="true"]) img {
    filter: brightness(.85);
}
:root body .wp-site-blocks main .sprucen-contact-link:is(:active, [data-sprucen-pressed="true"]) h3 {
    color: var(--sprucen-interaction-focus) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
@media (prefers-reduced-motion: no-preference) {
    :root body .wp-site-blocks main :is(.sprucen-underline-button a[href], a.sa-text-link, a.sprucen-project-cta__button, a.sprucen-ig__follow, .sprucen-service-disclosure > summary):is(:active, [data-sprucen-pressed="true"]),
    :root body .wp-site-blocks main .sprucen-project-card:has(a:is(:active, [data-sprucen-pressed="true"])) .sprucen-project-card__link {
        translate: 0 1px;
    }
}
