/* Native CTA and testimonial styles shared by the website and editor canvas.
 * Legacy .btn-cta / .wnc-testimonial rules in custom.css remain unchanged.
 */
.wp-block-button:is(.is-style-wnc-cta-red, .is-style-wnc-cta-white) {
    font-size: clamp(0.8rem, 2vw, 1rem);
}
.wp-block-button:is(.is-style-wnc-cta-red, .is-style-wnc-cta-white) > .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.5em 1.1em;
    font-family: var(--wp--preset--font-family--heading);
    font-weight: var(--wp--custom--font-weight--bold);
    font-size: inherit;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none !important;
    border: 2px solid;
    border-radius: var(--wp--custom--border-radius--default);
    transition: background-color var(--wp--custom--transition-duration), color var(--wp--custom--transition-duration), border-color var(--wp--custom--transition-duration);
}
.wp-block-button.is-style-wnc-cta-red > .wp-block-button__link {
    --wnc-focus-color: var(--wp--preset--color--white);
    background: var(--wp--preset--color--brand);
    border-color: var(--wp--preset--color--brand);
    color: var(--wp--preset--color--white) !important;
}
.wp-block-button.is-style-wnc-cta-red > .wp-block-button__link:hover {
    background: var(--wp--preset--color--brand-dark);
    border-color: var(--wp--preset--color--brand-dark);
    color: var(--wp--preset--color--white) !important;
}
.wp-block-button.is-style-wnc-cta-white > .wp-block-button__link {
    --wnc-focus-color: var(--wp--preset--color--text-dark);
    background: var(--wp--preset--color--white);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--wp--preset--color--text-dark) !important;
}
.wp-block-button.is-style-wnc-cta-white > .wp-block-button__link:hover {
    background: var(--wp--preset--color--white);
    border-color: rgba(0, 0, 0, 0.35);
    color: var(--wp--preset--color--brand) !important;
}

/* A semantic Quote with a native citation field. Inherit the surrounding
 * section colour, so it works on both white cards and brand-red sections. */
.wp-block-quote.is-style-wnc-testimonial {
    max-width: var(--wp--custom--container-width--narrow);
    margin: 0 auto 2.5rem;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: center;
}
.wp-block-quote.is-style-wnc-testimonial:last-child { margin-bottom: 0; }
.wp-block-quote.is-style-wnc-testimonial p {
    margin: 0;
    color: inherit;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.9;
}
.wp-block-quote.is-style-wnc-testimonial p + p { margin-top: 1rem; }
.wp-block-quote.is-style-wnc-testimonial cite {
    display: block;
    margin-top: 1rem;
    color: inherit;
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: right;
}
.wp-block-quote.is-style-wnc-testimonial cite::before { content: '— '; }
/* No orphan em dash when a citation has not yet been entered. */
.wp-block-quote.is-style-wnc-testimonial cite:empty::before { content: none; }
@media print {
    .wp-block-quote.is-style-wnc-testimonial,
    .wp-block-quote.is-style-wnc-testimonial p,
    .wp-block-quote.is-style-wnc-testimonial cite { color: #000 !important; }
}
