/* ======================================================================
   Sales Source - Accessibility widget
   A floating control that lets visitors adjust the site to their needs.
   The UI uses the brand palette; the body-state classes live on <html>.
   ====================================================================== */

/* ---- Floating launcher ---------------------------------------------- */
.a11y-fab{
  position:fixed; left:22px; bottom:22px; z-index:1400;
  width:56px; height:56px; border:0; border-radius:50%; cursor:pointer;
  background:linear-gradient(135deg,#23905E 0%,#0F2E40 100%);
  color:#fff; display:grid; place-items:center;
  box-shadow:0 16px 34px -12px rgba(8,39,57,.6), inset 0 1px 0 rgba(255,255,255,.18);
  transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
}
.a11y-fab:hover{ transform:translateY(-2px) scale(1.05); box-shadow:0 22px 44px -14px rgba(8,39,57,.7); }
.a11y-fab svg{ width:32px; height:32px; }
.a11y-dismiss{ position:fixed; left:60px; bottom:62px; z-index:1401; width:22px; height:22px; border:0; border-radius:50%; cursor:pointer; background:#fff; color:#444; box-shadow:0 4px 12px -2px rgba(8,39,57,.45); display:grid; place-items:center; opacity:0; transform:scale(.6); pointer-events:none; transition:opacity .18s, transform .18s; }
.a11y-fab:hover ~ .a11y-dismiss, .a11y-dismiss:hover, .a11y-dismiss:focus-visible{ opacity:1; transform:scale(1); pointer-events:auto; }
.a11y-dismiss svg{ width:13px; height:13px; }
.a11y-restore{ position:fixed; left:0; bottom:84px; z-index:1400; width:26px; height:42px; border:0; border-top-right-radius:13px; border-bottom-right-radius:13px; cursor:pointer; background:linear-gradient(150deg,#1E8F5C,#15786E); color:#fff; display:grid; place-items:center; box-shadow:0 8px 20px -6px rgba(8,39,57,.5); opacity:.5; transition:opacity .2s, width .2s; }
.a11y-restore[hidden]{ display:none; }
.a11y-restore:hover, .a11y-restore:focus-visible{ opacity:1; width:33px; }
.a11y-restore svg{ width:18px; height:18px; }
@media (max-width:560px){ .a11y-dismiss{ left:52px; bottom:54px; } }
.a11y-fab::after{ /* subtle outer ring */
  content:""; position:absolute; inset:-4px; border-radius:50%;
  border:1.5px solid rgba(255,255,255,.35); opacity:0; transition:opacity .22s;
}
.a11y-fab:hover::after{ opacity:1; }

/* ---- Panel ----------------------------------------------------------- */
.a11y-panel{
  position:fixed; left:22px; bottom:90px; z-index:1401;
  width:360px; max-width:calc(100vw - 44px);
  background:#fff; border:1px solid var(--line);
  border-radius:22px; overflow:hidden;
  box-shadow:0 36px 80px -28px rgba(8,39,57,.55), 0 2px 8px rgba(8,39,57,.08);
  transform-origin:bottom left;
}
.a11y-panel[hidden]{ display:none; }
@media (prefers-reduced-motion: no-preference){
  .a11y-panel:not([hidden]){ animation:a11yPop .26s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes a11yPop{ from{ opacity:0; transform:translateY(10px) scale(.97); } to{ opacity:1; transform:none; } }

.a11y-head{
  position:relative; padding:18px 20px;
  background:linear-gradient(135deg,#16344A 0%,#0C2530 100%); color:#fff;
  display:flex; align-items:center; gap:12px;
}
.a11y-head-ic{ flex:none; width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); }
.a11y-head-ic svg{ width:22px; height:22px; }
.a11y-head h2{ font-family:'Space Grotesk',sans-serif; font-size:1.12rem; font-weight:700; margin:0; line-height:1.1; color:#fff; }
.a11y-head p{ margin:2px 0 0; font-size:.78rem; color:rgba(255,255,255,.72); }
.a11y-close{
  margin-left:auto; flex:none; width:34px; height:34px; border-radius:10px; cursor:pointer;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); color:#fff;
  display:grid; place-items:center; transition:background .2s;
}
.a11y-close:hover{ background:rgba(255,255,255,.24); }
.a11y-close svg{ width:18px; height:18px; }

.a11y-body{ padding:16px; max-height:min(64vh,520px); overflow-y:auto; }

/* Read-aloud block */
.a11y-read{ margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.a11y-read-controls{ display:flex; gap:8px; }
.a11y-read-play{ flex:1; display:flex; align-items:center; justify-content:center; gap:9px; padding:12px 14px; border:0; border-radius:13px; cursor:pointer;
  font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:.92rem; color:#fff;
  background:linear-gradient(135deg,#23905E 0%,#0F2E40 100%); box-shadow:0 12px 26px -12px rgba(8,39,57,.55); transition:transform .12s; }
.a11y-read-play:hover{ transform:translateY(-1px); }
.a11y-read-play svg{ width:18px; height:18px; }
.a11y-read-stop{ flex:none; width:48px; min-height:44px; border:1px solid var(--line); background:var(--bg-soft); border-radius:13px; cursor:pointer; color:var(--ink-soft); display:grid; place-items:center; transition:background .18s; }
.a11y-read-stop:hover:not(:disabled){ background:#EDF4EF; }
.a11y-read-stop:disabled{ opacity:.4; cursor:default; }
.a11y-read-stop svg{ width:16px; height:16px; }
.a11y-read-status{ margin:9px 0 0; font-size:.78rem; color:var(--ink-faint); min-height:1em; }

/* The element currently being read aloud */
.a11y-reading{ background:rgba(52,163,86,.16) !important; box-shadow:0 0 0 3px rgba(52,163,86,.5); border-radius:5px; scroll-margin-top:110px; }

/* Text-size segmented control */
.a11y-text-row{ margin-bottom:14px; }
.a11y-row-label{ display:flex; align-items:center; gap:9px; font-weight:700; font-size:.92rem; color:var(--ink); margin-bottom:9px; }
.a11y-row-label svg{ width:18px; height:18px; color:var(--green-deep); flex:none; }
.a11y-seg{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; background:var(--bg-soft); border:1px solid var(--line); border-radius:13px; padding:5px; }
.a11y-seg button{
  border:0; background:transparent; cursor:pointer; border-radius:9px; padding:9px 4px;
  font-family:'Space Grotesk',sans-serif; font-weight:700; color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center; gap:2px; transition:background .18s, color .18s, box-shadow .18s;
}
.a11y-seg button .cap{ font-size:.7rem; font-weight:600; }
.a11y-seg button[aria-pressed="true"]{ background:#fff; color:var(--green-deep); box-shadow:0 2px 8px -2px rgba(8,39,57,.2); }

/* Toggle options */
.a11y-opts{ display:flex; flex-direction:column; gap:8px; }
.a11y-opt{
  display:flex; align-items:center; gap:12px; width:100%;
  padding:13px 14px; border-radius:14px; cursor:pointer; text-align:left;
  background:var(--bg-soft); border:1px solid var(--line); color:var(--ink);
  transition:border-color .18s, background .18s, transform .12s;
}
.a11y-opt:hover{ border-color:#CFE6D7; }
.a11y-opt:active{ transform:scale(.99); }
.a11y-opt-ic{ flex:none; width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  background:#fff; border:1px solid var(--line); color:var(--green-deep); }
.a11y-opt-ic svg{ width:20px; height:20px; }
.a11y-opt-tx{ flex:1; min-width:0; }
.a11y-opt-tx strong{ display:block; font-size:.95rem; font-weight:700; }
.a11y-opt-tx span{ display:block; font-size:.78rem; color:var(--ink-faint); margin-top:1px; }
/* Switch */
.a11y-switch{ flex:none; width:44px; height:26px; border-radius:999px; background:#CBD8D2; position:relative; transition:background .2s; }
.a11y-switch::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .2s; }
.a11y-opt[aria-pressed="true"]{ background:rgba(52,163,86,.08); border-color:#BFE2CC; }
.a11y-opt[aria-pressed="true"] .a11y-switch{ background:var(--green); }
.a11y-opt[aria-pressed="true"] .a11y-switch::after{ transform:translateX(18px); }
.a11y-opt[aria-pressed="true"] .a11y-opt-ic{ background:var(--green); color:#fff; border-color:var(--green); }

.a11y-foot{ padding:12px 16px 16px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.a11y-reset{ background:none; border:0; cursor:pointer; font-family:inherit; font-weight:700; font-size:.88rem; color:var(--green-deep); display:inline-flex; align-items:center; gap:7px; padding:6px 4px; border-radius:8px; }
.a11y-reset svg{ width:15px; height:15px; }
.a11y-reset:hover{ text-decoration:underline; }
.a11y-foot small{ color:var(--ink-faint); font-size:.72rem; }

/* ---- Mobile: bottom sheet ------------------------------------------- */
@media (max-width:560px){
  .a11y-fab{ left:16px; bottom:16px; width:52px; height:52px; }
  .a11y-panel{ left:0; right:0; bottom:0; width:100%; max-width:none; border-radius:22px 22px 0 0; }
  .a11y-body{ max-height:64vh; }
  @media (prefers-reduced-motion: no-preference){
    .a11y-panel:not([hidden]){ animation:a11ySheet .28s cubic-bezier(.2,.8,.2,1) both; }
  }
  @keyframes a11ySheet{ from{ transform:translateY(100%); } to{ transform:none; } }
}

/* ======================================================================
   BODY-STATE STYLES - applied to <html> by the widget
   ====================================================================== */

/* Bigger text (scales rem-based type + spacing) */
html.a11y-text-1{ font-size:108.5%; }
html.a11y-text-2{ font-size:120%; }

/* High contrast - darken secondary text, underline content links */
html.a11y-contrast{ --ink:#05131A; --ink-soft:#13303A; --ink-faint:#22404A; }
html.a11y-contrast a:not(.btn):not(.logo):not(.a11y-reset){ text-decoration:underline; text-underline-offset:2px; }
html.a11y-contrast .lead,
html.a11y-contrast p{ color:var(--ink-soft); }

/* Highlight links - make every content link unmissable */
html.a11y-links a:not(.btn):not(.logo):not(.a11y-reset){
  text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:2px;
  box-shadow:inset 0 -2px 0 rgba(52,163,86,.45);
}

/* Readable font - high-legibility stack + generous spacing */
html.a11y-readable body,
html.a11y-readable body *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-fab):not(.a11y-fab *){
  font-family:Verdana,'Segoe UI',Tahoma,system-ui,sans-serif !important;
  letter-spacing:.012em !important;
}
html.a11y-readable body p,
html.a11y-readable body li,
html.a11y-readable body .lead{ line-height:1.75 !important; }
/* keep the widget on the brand font */
html.a11y-readable .a11y-panel, html.a11y-readable .a11y-panel *,
html.a11y-readable .a11y-fab{ font-family:'Plus Jakarta Sans',sans-serif !important; }

/* Reduce motion - freeze animations & transitions */
html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after{
  animation-duration:.001ms !important; animation-iteration-count:1 !important;
  transition-duration:.001ms !important; scroll-behavior:auto !important;
}

/* Big cursor */
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 40 40'%3E%3Cpath d='M6 3l24 14-9.5 1.8 6 11-4.2 2.3-6-11L6 30z' fill='%23000' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, auto !important;
}
html.a11y-cursor a, html.a11y-cursor button, html.a11y-cursor [role="button"], html.a11y-cursor summary, html.a11y-cursor label, html.a11y-cursor select{
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23000' stroke='%23fff' stroke-width='1.6'%3E%3Cpath d='M14 18V8.5a2.5 2.5 0 0 1 5 0V17h1.6a2.4 2.4 0 0 1 2.4 2.4 2.4 2.4 0 0 1 2.4 2.4 2.3 2.3 0 0 1 2.2 2.4c0 4-2.2 8-7 8h-3c-3 0-4.5-1.5-6.4-4.2l-3.2-4.6c-1.1-1.7 1-3.8 2.8-2.6z'/%3E%3C/g%3E%3C/svg%3E") 8 4, pointer !important;
}

/* ======================================================================
   WCAG 2.2 helpers (site-wide)
   ====================================================================== */
/* 2.4.11 Focus Not Obscured - keep focused/anchored targets clear of the sticky nav */
html{ scroll-padding-top:calc(var(--nav-h, 76px) + 16px); }
/* 2.5.8 Target Size (Minimum, 24px) - guarantee icon-only controls are large enough */
.burger{ min-width:44px; min-height:44px; }
.footer-legal a{ display:inline-block; padding:4px 2px; }
/* 2.4.7 / 2.4.13 - ensure the read-aloud highlight and skip target clear the nav */
:target{ scroll-margin-top:calc(var(--nav-h, 76px) + 16px); }
