/* Phase 4 accessibility and narrow viewport hardening. Existing brand stays intact. */
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #087f83;outline-offset:3px}
html[data-theme="dark"] :where(a,button,input,select,textarea,[tabindex]):focus-visible{outline-color:#8ce9de}
main[tabindex="-1"]:focus{outline:none}
img{max-width:100%}
.ex-page .btn,.ex-mobile-sticky,.nav-call{white-space:normal;overflow-wrap:anywhere}
.ex-page .ex-actions>*{min-width:0}
.fip-proof-table,.ex-example{max-width:100%;min-width:0}
.ex-page :where(p,h1,h2,h3,li,figcaption){overflow-wrap:break-word}
@media(max-width:740px){
 html{scroll-padding-bottom:calc(83px + env(safe-area-inset-bottom,0px))}
 .ex-page [id]{scroll-margin-bottom:85px}
 .mobile-toggle{min-width:44px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}
@media print{.ex-mobile-sticky,.topbar,.theme-actions,.fip-skip-link{display:none!important}}
/* Slightly deeper teal improves small-text contrast against pale hero backgrounds. */
html:not([data-theme="dark"]){--ex-teal:#086e72}
html:not([data-theme="dark"]) .nav-links a[aria-current="page"]{color:#086e72!important}
html:not([data-theme="dark"]) .theme-toggle,html:not([data-theme="dark"]) .theme-auto{color:#086c88}
