/* Use the appointment section's green for interactive states. */
.button:not(.button-lime):is(:hover, :focus-visible, :active),
.button:not(.button-lime).active,
.js .menu-toggle:is(:hover, :focus-visible, :active, [aria-expanded="true"]) {
    background: var(--green);
    border-color: var(--green);
    color: var(--cream);
}

.js .menu-toggle:is(:hover, :focus-visible, :active, [aria-expanded="true"]) span {
    background: var(--cream);
}

.service-card:is(:hover, :focus-within, :active),
.office-card:is(:hover, :focus-within, :active),
.service-card.active,
.office-card.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--cream);
}

.service-card:is(:hover, :focus-within, :active) :is(p, .service-number),
.service-card.active :is(p, .service-number),
.office-card:is(:hover, :focus-within, :active) :is(address, .eyebrow, th, .closed),
.office-card.active :is(address, .eyebrow, th, .closed) {
    color: #d2dfd3;
}

.service-card:is(:hover, :focus-within, :active) .service-icon,
.service-card.active .service-icon {
    color: var(--lime);
    border-color: #527165;
}

.service-card:is(:hover, :focus-within, :active) > a,
.service-card.active > a,
.office-card:is(:hover, :focus-within, :active) .hours,
.office-card.active .hours {
    border-color: #527165;
}

.office-card:is(:hover, :focus-within, :active) .button-outline,
.office-card.active .button-outline {
    color: var(--cream);
    border-color: #8ba596;
}

.office-card:is(:hover, :focus-within, :active) .office-pin,
.office-card.active .office-pin {
    background: #365c4e;
    color: var(--lime);
}

.office-card:is(:hover, :focus-within, :active) h3 > span,
.office-card.active h3 > span {
    color: var(--lime);
}

.service-card, .office-card, .button, .js .menu-toggle,
.service-card :is(p, .service-number, .service-icon, a),
.office-card :is(address, .eyebrow, th, .closed, .hours, .office-pin, h3 > span),
.js .menu-toggle span {
    transition:
        background-color 380ms ease 60ms,
        color 380ms ease 60ms,
        border-color 380ms ease 60ms,
        transform 250ms ease;
}

:focus-visible {
    outline-color: var(--green);
}

.service-card :focus-visible,
.office-card :focus-visible {
    outline-color: var(--lime);
}
