/* Shared interaction states, informed by Radix Themes and shadcn button patterns.
   Keep existing book pull-outs, navigation wipes and social rotations intact. */
:root{--interaction-time:180ms;--interaction-ease:cubic-bezier(.2,.8,.2,1)}
a[href],button:not(:disabled),[role=combobox],select,input[type=checkbox]{cursor:pointer}
a[href],button,[role=combobox],.ts-control{transition:color var(--interaction-time) var(--interaction-ease),background-color var(--interaction-time) var(--interaction-ease),border-color var(--interaction-time) var(--interaction-ease),box-shadow var(--interaction-time) var(--interaction-ease)}
:is(a[href],button,[role=combobox],select):focus-visible{outline:3px solid var(--brand-focus);outline-offset:4px}
.site-header :is(a,button):focus-visible,.navigation-dialog :is(a,button):focus-visible{outline-color:var(--brand-shell,#faf7f0)}
.subject-picker-field .ts-control{cursor:pointer;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.subject-picker-field .ts-control:hover{background:var(--brand-wash);border-color:var(--brand-ink-mid);box-shadow:0 3px 10px #193e6114}
.subject-picker-field .ts-wrapper.focus .ts-control{outline:none;box-shadow:none}
.subject-picker-field .ts-control:focus-visible{outline:2px solid var(--brand-ink-mid);outline-offset:3px}
.subject-picker-dropdown .option{transition:background-color .18s ease,color .18s ease}
.subject-picker-dropdown .option:hover{background:var(--brand-pale);color:var(--brand-ink-heading)}
.form-actions button,.mobile-trial-link,.trial-dialog-close{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,translate .18s ease}
@media(hover:hover) and (pointer:fine){
 .form-actions button:not(:disabled):hover,.mobile-trial-link:hover{translate:0 -2px;box-shadow:0 6px 18px #102b4726}
 .trial-dialog-close:hover{background:#ffffff20;box-shadow:0 2px 10px #102b4726}
 /* Only plain text links change colour on hover. A button or card (any link
    with a class) keeps the text colour its own hover state sets, so its text
    can never end up the same colour as its background. */
 main a[href]:not([class]):hover{color:var(--brand-blue-deep)}
 .site-footer a[href]:hover{color:var(--brand-shell,#faf7f0);text-decoration:underline;text-underline-offset:5px}
 .tutor-card [data-tutor-toggle]:hover,.carousel-ui>button:not(:disabled):hover{box-shadow:0 3px 12px #17334a26}
 .subjects-panel nav a:hover{background:var(--brand-pale);color:var(--brand-ink-heading)}
}
.form-actions button:not(:disabled):active,.mobile-trial-link:active{translate:0 0;box-shadow:0 1px 4px #102b471a}
[data-enquiry-surface] :is(input:not([type="checkbox"]),textarea,select){box-sizing:border-box;border-width:2px;outline:none;box-shadow:none}
[data-enquiry-surface] :is(input:not([type="checkbox"]),textarea,select):is(:focus,:focus-visible){border-color:var(--brand-focus)!important;outline:none!important;box-shadow:none!important}
[data-enquiry-surface] .subject-picker-field .ts-control{box-sizing:border-box;border-width:2px;outline:none;box-shadow:none}
[data-enquiry-surface] .subject-picker-field .ts-wrapper.focus .ts-control,
[data-enquiry-surface] .subject-picker-field .ts-control:focus-visible{border-color:var(--brand-focus)!important;outline:none!important;box-shadow:none!important}
body .social-links .social-icon{width:62px;height:62px;transition:transform .22s ease}
body .social-links .social-icon svg{width:40px;height:40px}
body .social-links .social-icon:is(:hover,:focus-visible){transform:rotate(-7deg) scale(1.07)}
@media(prefers-reduced-motion:reduce){a[href],button,[role=combobox],.ts-control,.subject-picker-dropdown .option{transition:none!important}.form-actions button:hover,.mobile-trial-link:hover{translate:none}body .social-links .social-icon{transition:none}}
