/* Accessibility menu (assets/js/a11y.js) and the display modes it switches on <html>. */

/* ---------- floating button + panel ---------- */
.a11y-btn { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 900; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: #0f2d96; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(8, 23, 79, .35); cursor: pointer; }
.a11y-btn svg { width: 28px; height: 28px; }
.a11y-btn:hover { background: #0a1f6b; }
.a11y-panel { position: fixed; bottom: 82px; inset-inline-start: 18px; z-index: 901; width: min(320px, calc(100vw - 36px)); max-height: calc(100vh - 110px); overflow: auto; background: #fff; color: #111a36; border-radius: 18px; box-shadow: 0 2px 6px rgba(10,31,107,.1), 0 24px 60px rgba(10,31,107,.25); padding: 14px; font-family: "Heebo", system-ui, sans-serif; font-size: 16px; line-height: 1.4; text-align: start; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; font-size: 1.1rem; }
.a11y-x { border: 0; background: #f4f6fb; color: #111a36; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: .95rem; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f4f6fb; margin-bottom: 6px; }
.a11y-size__btns { display: flex; gap: 6px; }
.a11y-size__btns button { min-width: 44px; height: 40px; border-radius: 10px; border: 2px solid #0f2d96; background: #fff; color: #0f2d96; font-weight: 800; cursor: pointer; font-size: 1rem; }
.a11y-size__btns button:disabled { border-color: #c4cbe0; color: #8a93b0; cursor: default; }
.a11y-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; color: #111a36; font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.a11y-row:hover { background: #f4f6fb; }
.a11y-switch { flex: none; position: relative; width: 44px; height: 26px; border-radius: 99px; background: #c4cbe0; transition: background .15s; }
.a11y-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: inset-inline-start .15s; }
.a11y-row[aria-pressed="true"] .a11y-switch { background: #0d7a52; }
.a11y-row[aria-pressed="true"] .a11y-switch::after { inset-inline-start: 21px; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e2e6f0; margin-top: 8px; padding: 12px 4px 2px; }
.a11y-reset { border: 0; background: none; color: #c2491f; font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0; }
.a11y-foot a { color: #0f2d96; font-weight: 700; }

/* Button beside the moving logo strip (WCAG 2.2.2). */
.motion-toggle { position: absolute; bottom: 8px; inset-inline-end: 16px; z-index: 3; border: 1px solid rgba(255,255,255,.4); background: rgba(8,23,79,.55); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.motion-toggle:hover { background: rgba(8,23,79,.8); }

/* ---------- modes ---------- */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }

/* Stop animations: cancel (not freeze) so content that fades in is shown. The loading screen keeps its own timing. */
html.a11y-no-motion *:not(.splash), html.a11y-no-motion *::before, html.a11y-no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-no-motion { scroll-behavior: auto !important; }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.a11y-links button:not(.a11y-row):not(.a11y-x), html.a11y-links .btn, html.a11y-links .opt, html.a11y-links .track, html.a11y-links .ccard { outline: 2px dashed currentColor; outline-offset: 2px; }

html.a11y-spacing body * { letter-spacing: .06em !important; word-spacing: .14em !important; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing span, html.a11y-spacing label { line-height: 1.8 !important; }

html.a11y-contrast { --muted: #263052; --line: #8a93b0; --sky: #1f6aa5; --sky-text: #0e4a7d; --tint: #eef1f8; --ink: #050a1f; }
html.a11y-contrast .hero, html.a11y-contrast .footer { background: #050d33 !important; }
html.a11y-contrast .hero__glow, html.a11y-contrast .splash__glow { display: none; }
html.a11y-contrast .hero__accent { background: none; color: #fff; -webkit-text-fill-color: #fff; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; }
html.a11y-contrast .hero__lead, html.a11y-contrast .hero__facts, html.a11y-contrast .eyebrow, html.a11y-contrast .footer, html.a11y-contrast .footer a { color: #fff; }
html.a11y-contrast .opt, html.a11y-contrast .track, html.a11y-contrast .ccard, html.a11y-contrast .mcard, html.a11y-contrast .rrow, html.a11y-contrast .stat, html.a11y-contrast .filters input, html.a11y-contrast .filters select, html.a11y-contrast .degree__search input { border: 2px solid #263052; }
html.a11y-contrast .muted, html.a11y-contrast .ccard__desc, html.a11y-contrast .founder__body p, html.a11y-contrast .steps p, html.a11y-contrast .reasons li { color: #111a36; }
html.a11y-contrast .btn--ghost { box-shadow: inset 0 0 0 2px #fff; }
html.a11y-contrast .chip { background: #dfe9f5; color: #050a1f; }

@media (max-width: 720px) {
  .a11y-btn { width: 46px; height: 46px; bottom: 14px; inset-inline-start: 14px; }
  .a11y-btn svg { width: 24px; height: 24px; }
  .a11y-panel { bottom: 70px; inset-inline-start: 14px; }
}
@media print { .a11y-btn, .a11y-panel, .motion-toggle { display: none !important; } }
