/* Sprucen Design v1.0.105 | shared text-action links
 * Visual reference: "View Services →" on the About page.
 * Applies only to text actions; deliberately excludes navigation, footer,
 * contact cards, image cards, and arrow-only inline service links.
 * Keep native keyboard-focus feedback (2px underline) from focus.css.
 */
:root {
  --sprucen-action-font-size: 19px;
  --sprucen-action-underline-weight: 1px;
  --sprucen-action-underline-offset: 6px;
}

/* The same text scale, weight, and native underline on all public CTAs.
 * These selectors also cover labels within stretched project cards.
 * A scoped late-loaded stylesheet wins over historic page/plugin overrides. */
:root body .wp-site-blocks main :is(
  .sprucen-underline-button .wp-block-button__link,
  .sprucen-page-about a.sa-text-link,
  .sprucen-page-services a.sa-text-link,
  .sprucen-page-projects .sprucen-project-card__link,
  .sprucen-page-joinery .sj-back-link a,
  .sprucen-page-service .sj-back-link a,
  .sprucen-page-joinery .sj-contact-cta a,
  .sprucen-page-service .sj-contact-cta a,
  .sprucen-page-joinery .sj-project__more,
  .sprucen-page-service .sj-project__more,
  .sprucen-page-joinery .sj-projects > .sj-wrap > p > a,
  .sprucen-page-service .sj-projects > .sj-wrap > p > a,
  .sprucen-project-cta__button
) {
  font-family: Manrope, Arial, sans-serif !important;
  font-size: var(--sprucen-action-font-size) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: -.02em !important;
  text-decoration-line: underline !important;
  text-decoration-style: solid !important;
  text-decoration-thickness: var(--sprucen-action-underline-weight) !important;
  text-underline-offset: var(--sprucen-action-underline-offset) !important;
  text-decoration-skip-ink: auto;
  border-bottom: 0 !important;
}

/* Retire artificial CSS underlines used by older homepage/project CTA
 * components. A native underline then keeps one consistent baseline. */
:root body .wp-site-blocks main :is(
  .sprucen-underline-button .wp-block-button__link,
  .sprucen-page-joinery .sj-contact-cta a,
  .sprucen-page-service .sj-contact-cta a,
  .sprucen-project-cta__button
)::after {
  content: none !important;
  display: none !important;
}

/* The old Back to Services rule was a border separated by 5px of padding.
 * Remove both so the line is in exactly the same place as View Services. */
:root body .wp-site-blocks main :is(
  .sprucen-page-joinery .sj-back-link a,
  .sprucen-page-service .sj-back-link a,
  .sprucen-page-joinery .sj-contact-cta a,
  .sprucen-page-service .sj-contact-cta a,
  .sprucen-project-cta__button
) { padding-bottom: 0 !important; }

/* "View all" opens a Details element rather than following a URL.
 * Preserve its continuous line across text and arrow and the 44px target,
 * but match the action typography and optical 6px underline separation. */
:root body .wp-site-blocks main .sprucen-page-services .sa-service .sprucen-service-disclosure > summary {
  font-family: Manrope, Arial, sans-serif !important;
  font-size: var(--sprucen-action-font-size) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: -.02em !important;
}
:root body .wp-site-blocks main .sprucen-page-services .sa-service .sprucen-service-disclosure > summary::before {
  bottom: 10px !important;
  height: var(--sprucen-service-link-line, 1px) !important;
}

/* Keep 2px pressed/focus feedback, without changing normal resting links. */
:root body .wp-site-blocks main :is(
  .sprucen-underline-button .wp-block-button__link,
  .sprucen-page-about a.sa-text-link,
  .sprucen-page-services a.sa-text-link,
  .sprucen-page-projects .sprucen-project-card__link,
  .sprucen-page-joinery .sj-back-link a,
  .sprucen-page-service .sj-back-link a,
  .sprucen-page-joinery .sj-contact-cta a,
  .sprucen-page-service .sj-contact-cta a,
  .sprucen-page-joinery .sj-project__more,
  .sprucen-page-service .sj-project__more,
  .sprucen-project-cta__button
):is(:focus-visible, :active, [data-sprucen-pressed="true"]) {
  text-decoration-thickness: 2px !important;
}

/* v1.0.108: Back to Services now uses the shared native text-action
 * underline, exactly like the About page's View services link.
 * Inline-block plus skip-ink:none ensures one continuous line beneath
 * the inline arrow AND label, without a separate background or border.
 */
:root body .wp-site-blocks main :is(
  .sprucen-page-joinery .sj-back-link a,
  .sprucen-page-service .sj-back-link a
) {
  display: inline-block;
  text-decoration-line: underline !important;
  text-decoration-style: solid !important;
  text-decoration-thickness: var(--sprucen-action-underline-weight) !important;
  text-underline-offset: var(--sprucen-action-underline-offset) !important;
  text-decoration-skip-ink: none !important;
  background-image: none !important;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
