/* CIHO accessibility tools: button, panel and the page modes it switches on */
.a11y-toggle { position: fixed; left: 1.2rem; bottom: 1.2rem; width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff; background: var(--navy, #002866); color: #fff; font-size: 1.6rem; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 1050; transition: transform .2s; }
.a11y-toggle:hover, .a11y-toggle:focus-visible { transform: scale(1.08); outline: 3px solid var(--yellow, #FFEE00); outline-offset: 2px; }
.a11y-toggle.active::after { content: ''; position: absolute; top: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow, #FFEE00); border: 2px solid #fff; }
.a11y-panel { position: fixed; left: 1.2rem; bottom: 80px; width: 320px; max-width: calc(100vw - 40px); max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; color: #1f2937; border-radius: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); z-index: 1060; font-size: 16px; line-height: 1.4; }
.a11y-head { background: var(--navy, #002866); color: #fff; padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center; border-radius: 1rem 1rem 0 0; border-bottom: 3px solid var(--yellow, #FFEE00); }
.a11y-head h2 { color: #fff; font-family: system-ui, sans-serif; font-size: 1.05rem; margin: 0; }
.a11y-body { padding: 1rem; }
.a11y-size { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; font-weight: 700; }
.a11y-size .btn { background: #eef2fb; color: var(--navy, #002866); font-weight: 800; border-radius: .5rem !important; padding: .25rem .7rem; }
.a11y-size output { min-width: 56px; text-align: center; align-self: center; font-weight: 700; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-grid button { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem .4rem; border: 2px solid #e5e7eb; background: #f9fafb; border-radius: .7rem; font-size: .82rem; font-weight: 700; color: #1f2937; }
.a11y-grid button i { font-size: 1.35rem; color: var(--navy, #002866); }
.a11y-grid button:hover { border-color: var(--navy-300, #4D6995); }
.a11y-grid button[aria-pressed="true"] { border-color: var(--navy, #002866); background: var(--navy, #002866); color: #fff; }
.a11y-grid button[aria-pressed="true"] i { color: var(--yellow, #FFEE00); }
.a11y-toggle, .a11y-panel, .a11y-panel * { letter-spacing: normal !important; word-spacing: normal !important; }

html[data-a11y-size="1"] { font-size: 112.5%; }
html[data-a11y-size="2"] { font-size: 125%; }
html[data-a11y-size="3"] { font-size: 137.5%; }
html[data-a11y-size="4"] { font-size: 150%; }

html.a11y-contrast body, html.a11y-contrast main *, html.a11y-contrast .site-footer *, html.a11y-contrast .main-nav *, html.a11y-contrast .topbar *, html.a11y-contrast section, html.a11y-contrast .main-nav, html.a11y-contrast .topbar, html.a11y-contrast .site-footer { background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
html.a11y-contrast a, html.a11y-contrast a * { color: #ffeb3b !important; }
html.a11y-contrast .btn { border: 2px solid #ffeb3b !important; }
html.a11y-contrast .hero-overlay { background: rgba(0,0,0,.75) !important; }
html.a11y-contrast .navbar-brand img, html.a11y-contrast .footer-logo img { background: #fff !important; }
html.a11y-font body, html.a11y-font body *:not(.bi):not([class^="bi-"]) { font-family: Verdana, Tahoma, Arial, sans-serif !important; }
html.a11y-spacing main *, html.a11y-spacing .site-footer * { line-height: 1.9 !important; letter-spacing: .06em !important; word-spacing: .14em !important; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed #c9a227; outline-offset: 2px; background-color: rgba(255,235,59,.25); }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-gray main, html.a11y-gray .main-nav, html.a11y-gray .topbar, html.a11y-gray .site-footer, html.a11y-gray .newsletter-band { filter: grayscale(1); }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2-3 7z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }

@media (max-width: 575.98px) {
  .a11y-toggle { left: .8rem; bottom: .8rem; width: 46px; height: 46px; font-size: 1.45rem; }
  .a11y-panel { bottom: 66px; left: 8px; right: 8px; width: auto; max-width: none; }
}
@media print { .a11y-toggle, .a11y-panel { display: none !important; } }
