/* Public pages only. Visitors choose which optional adjustments to apply. */
/* The homepage's #nexa-referral reset would otherwise override the launcher. */
:is(body,#nexa-referral) .nexa-a11y-launcher{
  position:fixed; z-index:80;
  left:max(12px,env(safe-area-inset-left));
  inset-block-end:max(12px,env(safe-area-inset-bottom));
  box-sizing:border-box;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-block-size:52px; max-inline-size:calc(100vw - 32px);
  padding:10px 16px; border:2px solid #142a40; border-radius:10px;
  background:#ffd447; color:#142a40; box-shadow:0 0 0 2px #fff,0 4px 14px #132d4066;
  font:750 1rem/1.35 system-ui,sans-serif; text-decoration:none;
  text-align:center; cursor:pointer; overflow-wrap:anywhere;
}
:is(body,#nexa-referral) .nexa-a11y-launcher:hover{background:#ffe174;color:#142a40;text-decoration:underline}
.nexa-a11y-icon{inline-size:22px;block-size:22px;flex:none}
:is(body,#nexa-referral) .nexa-a11y-launcher:focus-visible,
body .nexa-a11y-dialog :focus-visible{
  outline:3px solid #064f86;outline-offset:3px;box-shadow:0 0 0 3px #fff;
}
.nexa-a11y-dialog{
  box-sizing:border-box; inline-size:min(30rem,calc(100% - 24px));
  max-inline-size:100%; max-block-size:calc(100% - 24px);
  max-block-size:calc(100dvh - 24px); padding:clamp(16px,4vw,28px);
  overflow:auto; overscroll-behavior:contain;
  background:#fff;color:#132d40;border:2px solid #c0d6e1;border-radius:16px;
  box-shadow:0 18px 54px #132d4054;
  font:400 1rem/1.5 system-ui,sans-serif;overflow-wrap:anywhere;
}
.nexa-a11y-dialog::backdrop{background:#132d4066}
.nexa-a11y-dialog h2{font:700 1.5rem/1.2 system-ui,sans-serif;margin:0 0 18px}
.nexa-a11y-control{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin-block-end:12px}
.nexa-a11y-control label{font-weight:650}
.nexa-a11y-dialog :is(select,button){
  box-sizing:border-box;min-block-size:44px;max-inline-size:100%;padding:8px 12px;
  color:#132d40;background:#fff;border:1px solid #597486;border-radius:8px;font:inherit;
}
.nexa-a11y-dialog button{font-weight:650;cursor:pointer}
.nexa-a11y-dialog button.nexa-a11y-primary{background:#075587;color:#fff;border-color:#075587}
.nexa-a11y-options{display:grid;gap:4px}
.nexa-a11y-check{
  display:flex;align-items:center;gap:12px;min-block-size:44px;
  padding:6px 9px;background:#f1f7fb;border-radius:7px;cursor:pointer;
}
.nexa-a11y-check input{inline-size:20px;block-size:20px;margin:0;flex:none;accent-color:#075587}
.nexa-a11y-help{color:#075587;text-decoration:underline;display:inline-flex;min-block-size:44px;align-items:center;margin-block:7px}
.nexa-a11y-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.nexa-a11y-page{padding-block:26px 82px}
.nexa-a11y-page h1{line-height:1.18}
/* Retain NEXA blue with enough contrast for white guide-button labels. */
body.nexa-public:not(:has(#nexa-referral)) a.button:not(.secondary){background-color:#076eaf}
body.nexa-public:not(:has(#nexa-referral)) a.button:not(.secondary):hover{background-color:#075587}

/* These keyboard improvements work whether or not preferences are enabled. */
body :is(main,[data-nexa-sticky-header],.site-footer,.hero,.nexa-why-prompt,.nexa-video-intro,.agent-language-bar)
  :is(a,button,input,select,textarea,summary):focus-visible{
  outline:3px solid #075587!important;
  outline-offset:3px;
  box-shadow:0 0 0 3px #fff;
}
html:has([data-nexa-a11y-ui]){scroll-padding-bottom:74px}
body :is(a.skip,a.skip-link):focus{
  color:#132d40;background:#fff;z-index:100;
}

html[data-nexa-a11y-large] body :is(main,.site-header,.site-footer,.hero,.nexa-video-intro){
  overflow-wrap:anywhere;
}
html[data-nexa-a11y-large] body :is(main,.site-footer,.hero) :is(input:not([type="checkbox"],[type="radio"]),textarea,select){
  box-sizing:border-box; max-inline-size:100%; min-inline-size:0;
}
html[data-nexa-a11y-large] body :is(.desktop-nav,.site-header .nav){flex-wrap:wrap}
html[data-nexa-a11y-large] body #nexa-referral .desktop-nav a{white-space:normal}
@media(max-width:760px){
  html[data-nexa-a11y-large] body.nexa-public #nexa-referral .header-account-actions{
    flex-wrap:wrap;justify-content:flex-end;
  }
  html[data-nexa-a11y-large] body.nexa-public #nexa-referral .header-account-actions :is(.header-cta,.portal-login){
    white-space:normal;
  }
  html[data-nexa-a11y-large] body.nexa-public #nexa-referral .header-inner{
    grid-template-columns:minmax(70px,1fr) minmax(0,auto) auto;
  }
}
html[data-nexa-a11y-links] body :is(main,.site-header,.site-footer,.hero,.nexa-why-prompt,.nexa-video-intro) a{
  text-decoration-line:underline!important; text-underline-offset:.18em;
}
html[data-nexa-a11y-spacing] body :is(main,.site-header,.site-footer,.hero,.nexa-video-intro) :is(p,li,a,summary,label,legend,h1,h2,h3,h4,h5,h6,figcaption){
  line-height:1.65!important;letter-spacing:.065em!important;word-spacing:.15em!important;overflow-wrap:anywhere;
}
html[data-nexa-a11y-spacing] body p{margin-block-end:max(1em,12px)}

html[data-nexa-a11y-contrast] body{
  color:#fff;background:#101923;color-scheme:dark;
}
html[data-nexa-a11y-contrast] body :is(
  header,footer,main,nav,section,article,aside,
  .hero,.top-strip,.image-caption,.intro-strip,.strip-inner,.agent-card,.contact-card,.nexa-why-prompt,
  .proof-strip,.callout,.sidebox,.nexa-why-story__purpose,.nexa-story__card,.calculator,
  .fee-detail,.fee-panels>*,.nexa-home-guides,.nexa-quick-question,.home-inquiry-choice,
  .application-purpose-choice,.application-purpose-panel,.form-error,.form-success,.agent-contact-notice,
  .nexa-a11y-dialog,.nexa-a11y-check,details,summary,table,th,td
){
  background-color:#101923!important;background-image:none!important;color:#fff!important;
  border-color:#98acbe!important;
}
html[data-nexa-a11y-contrast] body :is(p,li,dt,dd,h1,h2,h3,h4,h5,h6,label,legend,small,span,em,strong,figcaption,output){
  color:#fff!important;text-shadow:none!important;
}
html[data-nexa-a11y-contrast] body a:not(.nexa-a11y-launcher){
  color:#ffdf75!important;text-decoration:underline!important;text-underline-offset:.18em;
}
html[data-nexa-a11y-contrast] body :is(button,a.button,a.nexa-video-cta,input,textarea,select):not(.nexa-a11y-launcher){
  color:#fff!important;background:#1b2d41!important;border-color:#b5ccde!important;
}
html[data-nexa-a11y-contrast] body :is(input,textarea)::placeholder{color:#d0e0ed!important;opacity:1}
html[data-nexa-a11y-contrast] body :is(input[type="checkbox"],input[type="radio"]){accent-color:#ffdf75}
html[data-nexa-a11y-contrast] body :is(.brand,.footer-logo,.agent-avatar){background-color:#fff;border-radius:5px}
html[data-nexa-a11y-contrast] body :is(a,button,input,select,textarea,summary):focus-visible{
  outline:3px solid #ffdf75!important;outline-offset:3px;box-shadow:0 0 0 3px #101923!important;
}
html[data-nexa-a11y-motion],html[data-nexa-a11y-motion] *,html[data-nexa-a11y-motion] *::before,html[data-nexa-a11y-motion] *::after{
  scroll-behavior:auto!important;animation:none!important;transition:none!important;
}
@media(prefers-reduced-motion:reduce){
  html:has([data-nexa-a11y-ui]),body #nexa-referral,body[data-agent-profile]{
    scroll-behavior:auto!important;
  }
}
@media(forced-colors:active){
  :is(body,#nexa-referral) .nexa-a11y-launcher,.nexa-a11y-dialog,.nexa-a11y-dialog button{border:2px solid ButtonText}
  .nexa-a11y-dialog :focus-visible,:is(body,#nexa-referral) .nexa-a11y-launcher:focus-visible{outline-color:Highlight}
}
@media print{.nexa-a11y-launcher,.nexa-a11y-dialog{display:none!important}}
