/* tq-a11y.css (v4.5, 29.11.2026): accessibility fixes shared by every page. */

/* skip link: first stop for keyboard users, visible only when focused */
html body a.tq-skip{position:fixed;top:8px;inset-inline-start:8px;z-index:100000;padding:12px 18px;border-radius:12px;background:#0A1B3D;color:#fff!important;font-weight:700;font-size:16px;text-decoration:none;transform:translateY(-200%);transition:transform .15s ease}
html body a.tq-skip:focus,html body a.tq-skip:focus-visible{transform:none;outline:3px solid #39C6E0;outline-offset:2px}
html body main:focus{outline:none}
.tq-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* panels that are closed are out of the tab order and hidden from screen readers (they used to keep focus while invisible) */
html body #ai-panel:not(.open){visibility:hidden!important;transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s}
html body #ai-panel.open{visibility:visible!important}
html body .cookie-bar:not(.show){visibility:hidden!important;transition:transform .45s cubic-bezier(.22,.7,.2,1),visibility 0s linear .45s}
html body .cookie-bar.show{visibility:visible!important}
html body #tqStickyCta:not(.on){visibility:hidden!important;transition:transform .35s ease,visibility 0s linear .35s}
html body #tqStickyCta.on{visibility:visible!important}
@media(max-width:960px){
  html body header.nav .nav-links{visibility:hidden;transition:transform .28s ease,opacity .28s ease,visibility 0s linear .28s}
  html body header.nav .nav-links.open{visibility:visible;transition:transform .28s ease,opacity .28s ease,visibility 0s}
}

/* chat: close button inside the header on phones and tablets (the floating button is hidden while the keyboard is open) */
#ai-panel .ai-head{position:relative}
#ai-panel .tq-ai-x{display:none}
@media(max-width:960px){
  #ai-panel .tq-ai-x{display:flex;align-items:center;justify-content:center;position:absolute;top:50%;inset-inline-end:8px;translate:0 -50%;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;cursor:pointer;padding:0}
  #ai-panel .tq-ai-x svg{width:20px;height:20px;stroke:currentColor;fill:none}
  #ai-panel .tq-ai-x:focus-visible{outline:3px solid #fff;outline-offset:2px}
  #ai-panel .ai-head{padding-inline-end:62px!important}
}

/* form fields always show keyboard focus */
html body input:focus-visible,html body select:focus-visible,html body textarea:focus-visible{outline:3px solid #1A5FF5!important;outline-offset:2px}
/* scrollable comparison table can be reached and scrolled with the keyboard */
html body .tq-cmp-tblwrap:focus-visible{outline:3px solid #1A5FF5;outline-offset:2px}

/* contrast: small grey text was 2.0 to 2.6 against its light background; these give at least 4.5 */
html:root{--ink-400:#5B6B82;--ink-3:#5B6B82;--text-faint:#5B6B82}
html body header.nav .tq-brand-legal,html body .tq-brand-legal{color:#5B6B82!important}
html body .tq-credit a{color:#4F5F77!important}
html body .privacy-note,html body .lrn-pod-progress .lrn-plabel,html body .lrn-pod-eyebrow .lrn-ep,html body .card-sub,html body .tq-trust-strip p,html body .tq-trust-strip p a,html body .scroll-hint{color:#5B6B82!important}
html body .lrn-pod-eyebrow{color:#1A4FD0!important}
html body .tq-tax-note{color:#0B7D55!important}
html body .tq-tax-card .c-red{color:#CF2343!important}
html body .hv-total-sub,html body .hv-badge,html body .ai-sugg .ai-wa,html body #ai-panel .ai-wa,html body a.ai-wa{color:#06694A!important}
html body .scroll-hint{opacity:1!important}
html body h3>span[style*="opacity:.55"]{opacity:.8!important}
/* white text on the brand blue was 4.49; a slightly deeper blue for the small selected tabs */
html body .tq-svc-tab.on,html body .tc-tabs button.on,html body .calc-toggle button.on,html body .tq-sc-chips button.on{background:#1A5FF5!important;border-color:#1A5FF5!important}

/* notice bar at the top of every page: the company has not started operating yet (request of the company's lawyer, 29.11.2026). Remove this block and the .tq-notice element at launch. */
html{--tq-nt-h:40px}
html body .tq-notice{position:fixed;top:0;left:0;right:0;z-index:101;background:#0A1B3D;color:#fff;font-size:14px;line-height:1.4;font-weight:500;text-align:center;padding:9px 16px;box-sizing:border-box}
html body:has(.tq-notice){padding-top:var(--tq-nt-h)!important}
/* flow pages (buy, balance, withdraw, blog...) use a sticky pill header of their own */
html body:has(.tq-notice) header.topbar{top:calc(var(--tq-nt-h) + 10px)!important}
html body:has(.tq-notice) header.nav{margin-top:var(--tq-nt-h)}
html body:has(.tq-notice) a.tq-skip{top:calc(var(--tq-nt-h) + 8px)}
html body:has(.tq-notice) a.tq-skip:not(:focus){transform:translateY(calc(-100% - var(--tq-nt-h) - 24px))}
@media(min-width:961px){html body:has(.tq-notice) header.nav .mega{top:calc(var(--navh) + var(--tq-nt-h))!important}html body:has(.tq-notice) #megaOverlay{top:calc(var(--navh) + var(--tq-nt-h))!important}}
@media(max-width:600px){html body .tq-notice{font-size:12.5px;padding:8px 12px}}

/* header: when a menu is opened after scrolling, the floating pill keeps no frame of its own (it used to show a thin bordered box inside the white header) */
@media(min-width:961px){html body header.nav.scrolled.mega-open .nav-in{border-color:transparent!important;box-shadow:none!important;border-radius:0!important;background:transparent!important}}

/* header and open menu read as one white surface: no line between them, and the menu's shadow no longer creeps up over the header */
@media(min-width:961px){html body header.nav .mega,html body header.nav.scrolled .mega{border-top:0!important;clip-path:inset(0 -100vw -140px -100vw)}}

/* end of the page on phones and tablets: the room that footer-a11y-mobile.css keeps for the floating buttons used to be an empty white strip
   under the footer (body::after, 170px). On pages with a footer that room now belongs to the footer itself, so the page ends in the footer. */
@media(max-width:960px){html body:has(footer.site-ftr)::after{display:none!important;height:0!important}html body footer.site-ftr{padding-bottom:104px!important}}
