/* Keep motion local to portal controls so form and checkout behavior stays native. */
body :is(.yt-refined-button, .yt-explore-action, .yt-application-link, .yt-campus-action,
    .yt-contact-links a, .yt-solution-select-controls button, [data-yt-copy], .yt-feature-arrows button) {
    transition: translate .16s ease-out, scale .12s ease-out, box-shadow .16s ease-out,
        background-color .16s, color .16s, border-color .16s;
}
body :is(.yt-hero-actions, .yt-feature-arrows, .yt-feature-topics, .yt-contact-links, .yt-campus,
    .yt-solution-select-controls, .yt-contact-topics, .yt-application-exhibit,
    .yt-offer, .yt-rental-body) :is(button, a):focus-visible {
    outline: 2px solid #24257d;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fff;
}
body :is(.yt-pick-controls, .yt-feature-topics, .yt-application-choices) button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}
body :is(.yt-refined-button, .yt-hero-case-jump, .yt-explore-action, .yt-application-link,
    .yt-service-links a, .yt-campus-action, .yt-campus-paths a, .yt-home-all-solutions,
    .yt-contact-links a, .yt-feature-arrows button, .yt-rental-consult, .yt-portal-overview)
    :is(i, span[aria-hidden="true"]) { transition: translate .18s ease-out; }

@media (hover: hover) and (pointer: fine) {
    body :is(.yt-refined-button, .yt-offer .yt-explore-action, .yt-application-link,
        .yt-campus-action, .yt-contact-links a, .yt-solution-select-controls button, .yt-feature-arrows button):hover {
        translate: 0 -2px;
        box-shadow: 0 4px 11px #1d245536, 0 0 0 1px #7778d859;
    }
    body :is(.yt-refined-button, .yt-explore-action, .yt-application-link, .yt-service-links a,
        .yt-campus-action, .yt-campus-paths a, .yt-home-all-solutions, .yt-rental-consult,
        .yt-contact-links a, .yt-portal-overview, [data-yt-feature-step="1"]):hover
        :is(.fa-arrow-right, .fa-chevron-right, span[aria-hidden="true"]) { translate: 3px 0; }
    body :is(.yt-hero-case-jump, .yt-rental-intro a[href^="#"], .yt-contact-primary):hover
        :is(span[aria-hidden="true"], .fa-arrow-down) { translate: 0 2px; }
    body [data-yt-feature-step="-1"]:hover i { translate: -2px 0; }
}
body :is(.yt-refined-button, .yt-explore-action, .yt-application-link, .yt-campus-action,
    .yt-contact-links a, .yt-solution-select-controls button, [data-yt-copy], .yt-feature-arrows button):active {
    translate: 0 1px;
    scale: .98;
    box-shadow: inset 0 0 0 2px currentColor;
}
body :is(.yt-pick-controls, .yt-feature-topics, .yt-application-choices, .yt-contact-topics) button:active {
    box-shadow: inset 0 0 0 2px currentColor;
}
@media (prefers-reduced-motion: no-preference) {
    .yt-home-lineup > .yt-pick-controls button[aria-pressed="true"]::after,
    .yt-solution-exhibit > .yt-pick-controls button[aria-pressed="true"]::after {
        animation: yt-selection-line .2s ease-out;
    }
    @keyframes yt-selection-line { from {transform: scaleX(.25);} to {transform: scaleX(1);} }
}
@media (max-width: 767px) {
    body.homepage .yt-feature-arrows button { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    body :is(.yt-refined-button, .yt-explore-action, .yt-application-link, .yt-campus-action, .yt-campus-paths a,
        .yt-contact-links a, .yt-solution-select-controls button, [data-yt-copy], .yt-feature-arrows button,
        .yt-service-links a, .yt-hero-case-jump, .yt-home-all-solutions, .yt-rental-consult, .yt-portal-overview),
    body :is(.yt-hero-actions, .yt-offer, .yt-solution-stage, .yt-feature-arrows, .yt-application,
        .yt-contact-links, .yt-service-links, .yt-campus, .yt-home-all-solutions, .yt-rental-consult, .yt-portal-overview)
        :is(i, span[aria-hidden="true"]) {
        transition: none !important;
        translate: none !important;
        scale: none !important;
    }
}
