/* Accessibility styles: skip link, focus outlines, toolbar, launcher, and helpers */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 9999;
}
.skip-to-content:focus { top: 10px; }

/* Prefer `:focus-visible` for keyboard focus indicators; avoid a global blue ring
  that appears on container elements like the accessibility panel. Use `:focus`
  reset to prevent unexpected outlines on non-interactive containers. */
:focus { outline: none; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* Keep the accessibility panel and launcher visually consistent when focused
  (use subtle box-shadow/ring instead of the page-wide blue outline). */
.a11y-panel:focus, .a11y-panel *:focus { outline: none !important; box-shadow: none !important; }
.a11y-panel[aria-hidden="false"], .a11y-panel{ outline: none !important; }
.a11y-launcher:focus { outline: none; box-shadow: 0 6px 18px rgba(11,94,215,0.16); }

/* Accessibility toolbar */
.accessibility-toolbar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px;
  border-radius: 6px;
  z-index: 9999;
  display: flex;
  gap: 6px;
}
.accessibility-toolbar .a11y-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* Floating launcher */
.a11y-launcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #113e63;
  color: #fff;
  border: none;
  z-index: 20000 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: 0 1px 5px 10px rgba(0,0,0,0.04);
}
.a11y-launcher:focus { outline: none; }
.a11y-launcher-icon{ font-size:20px; line-height:1; display:inline-block; will-change:transform; transform-origin:50% 50%; animation: a11y-rotate 3s ease-in-out infinite; }

/* launcher image (gif) when using custom icon */
.a11y-launcher-img{ width:40px; height:40px; object-fit:contain; display:inline-block; filter: brightness(0) invert(1); }
.payments-launcher-img{ width:40px; height:40px; object-fit:contain; display:inline-block; filter: brightness(0) invert(1); }

@keyframes a11y-rotate{
  0% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
  100% { transform: rotate(-6deg); }
}

@media (prefers-reduced-motion: reduce){
  .a11y-launcher-icon{ animation: none !important; }
}
.visually-hidden{ position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;border:0;padding:0;margin:-1px }

/* Panel */
.a11y-panel{
  position: fixed;
  left: 18px;
  bottom: 86px;
  /* allow panel to size with content but stay within viewport */
  width: auto;
  min-width: 280px;
  max-width: 420px;
  background: #fff;
  color: #111;
  border-radius: 10px;
  border: 1px solid rgba(11,94,215,0.06);
  box-shadow: 0 12px 40px rgba(2,6,23,0.18);
  z-index: 10000;
  transform-origin: bottom right;
  transition: transform .18s ease, opacity .18s ease;
  opacity: 0; transform: scale(.97) translateY(6px); pointer-events: none;
}
.a11y-panel[aria-hidden="false"]{ opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.a11y-panel-inner{ padding:14px; }
.a11y-panel h2{ margin:0 0 10px 0; font-size:16px }

/* Make the panel title use the same typographic treatment as the menu controls */
#a11y-panel-title, .a11y-panel h2 {
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  color: #0f1724;
}
.a11y-controls{ display:grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap:10px }
/* Controls: replicate screenshot style but using project colors
   - dark control background, white border and text
   - uppercase bold labels, icon on the left
   - active state uses primary blue (#0b5ed7) */
.a11y-control{
  background: #f7f8fa;
  border: 1px solid #e7eaee;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:100%;
  min-height:52px;
  height:auto;
  box-sizing:border-box;
  color: #111;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.a11y-control:hover{ transform: translateY(-2px); box-shadow: 0 12px 30px rgba(2,6,23,0.28); }
.a11y-control:focus-visible{ outline: 2px solid rgba(11,94,215,0.18); outline-offset: 3px; }
.a11y-control[aria-pressed="true"]{ background: #0b5ed7; color:#fff; border-color: transparent }
/* icon + label inside control */
.a11y-control .a11y-icon{ display:block; width:20px; height:20px; line-height:0; flex:0 0 20px }
.a11y-control .a11y-icon svg{ width:20px; height:20px; display:block; }
.a11y-control .a11y-label{ display:block; font-size:10px; line-height:1.2; color:inherit; word-break:break-word; overflow-wrap:break-word }
.a11y-close{ background:transparent; border:0; color:#666; cursor:pointer }

/* footer with reset + close buttons */
.a11y-footer{ display:flex; gap:8px; justify-content:flex-end; margin-top:12px }
.a11y-footer .a11y-control{ margin:0; width:auto; height:auto; padding:8px 12px; display:inline-flex; align-items:center; }

/* Make reset visually match the close button while keeping semantic order */
.a11y-footer .a11y-close{ padding:8px 12px; border-radius:8px; color:#374151 }

@media (max-width: 520px){
  .a11y-panel{ width: calc(100% - 36px); }
  /* keep two columns on small screens but allow narrower columns */
  .a11y-controls{ grid-template-columns: repeat(2, minmax(80px, 1fr)); gap:6px; }
  .a11y-control{ padding:8px 10px; }
}


/* helpers */
.grayscale-content{ filter: grayscale(1); }

.a11y-sepia-root,
.a11y-sepia-root *,
.a11y-sepia-aux,
.a11y-sepia-aux * {
  filter: sepia(0.18) saturate(0.96) !important;
  -webkit-filter: sepia(0.18) saturate(0.96) !important;
}
.a11y-sepia-root img,
.a11y-sepia-root picture,
.a11y-sepia-root video,
.a11y-sepia-root svg,
.a11y-sepia-root iframe,
.a11y-sepia-root source,
.a11y-sepia-aux img,
.a11y-sepia-aux picture,
.a11y-sepia-aux video,
.a11y-sepia-aux svg,
.a11y-sepia-aux iframe,
.a11y-sepia-aux source {
  filter: none !important;
  -webkit-filter: none !important;
}

body.large-cursor,
/* large-cursor feature removed — keep default cursors */
/* inputs keep the text cursor by default */
input, textarea, select { cursor: auto; }
.underline-links a, .underline-links a * { text-decoration: underline !important; }
.pointer-read-highlight{
  outline: 3px solid #0b5ed7 !important;
  outline-offset: 4px !important;
  border-radius: 4px;
  box-shadow: none !important;
}
.reduced-motion *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important }
.dyslexic-font p,
.dyslexic-font span,
.dyslexic-font a,
.dyslexic-font li,
.dyslexic-font h1,
.dyslexic-font h2,
.dyslexic-font h3,
.dyslexic-font h4,
.dyslexic-font h5,
.dyslexic-font h6,
.dyslexic-font label,
.dyslexic-font td,
.dyslexic-font th,
.dyslexic-font blockquote {
  font-family: 'OpenDyslexic', Arial, sans-serif !important;
  line-height: 1.6 !important;
  letter-spacing: 0.01em !important;
}

/* Avoid applying to typical icon elements */
.dyslexic-font i,
.dyslexic-font svg,
.dyslexic-font .fa,
.dyslexic-font [class*="fa-"],
.dyslexic-font .material-icons {
  /* Restore common icon font families so glyphs remain intact when switching
     the page font for dyslexic-friendly mode. Include pseudo-elements used
     by icon font libraries. */
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5 Brands", "Material Icons", inherit !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

/* Pseudo-elements used by many icon fonts (FontAwesome uses ::before) */
.dyslexic-font .fa::before,
.dyslexic-font [class*="fa-"]::before,
.dyslexic-font i::before,
.dyslexic-font .material-icons::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5 Brands", "Material Icons", inherit !important;
  font-style: normal !important;
  font-weight: 400 !important;
}
.increased-spacing p, .increased-spacing li{ letter-spacing: .02em; line-height:1.9 }

/* Ensure accessibility UI is not desaturated */
#a11y-launcher, .a11y-panel, #a11y-panel { filter: none !important; }

/* Payments floating button placed above accessibility launcher */
.payments-launcher {
  position: fixed;
  left: 18px;
  bottom: 88px; /* sits above the accessibility launcher */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #b71c1c; /* red tone for payments */
  color: #fff;
  border: none;
  z-index: 20010 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 5px 10px rgba(0,0,0,0.04);
}

.payments-launcher i{ font-size:20px }

@media (max-width: 420px){
  .payments-launcher{ left: 12px; bottom: 86px; width:52px; height:52px }
  .a11y-launcher{ left: 12px; bottom: 18px }
}

/* Remove hover visual effects for accessibility and payments launchers */
.payments-launcher:hover,
.payments-launcher:active,
.a11y-launcher:hover,
.a11y-launcher:active {
  transform: none !important;
  opacity: 1 !important;
}

/* Prevent the accessibility icon animation from changing on hover */
.a11y-launcher:hover .a11y-launcher-icon,
.a11y-launcher:focus .a11y-launcher-icon {
  animation: a11y-rotate 3s ease-in-out infinite; /* keep animation consistent; no hover transform */
  transform: none !important;
}

/* Label for the payments button (visible, acts as placeholder) */
/* Labels for floating buttons - only show on hover */
.launcher-label{
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.payments-launcher:hover .launcher-label,
.a11y-launcher:hover .launcher-label {
  opacity: 1;
}

.payments-launcher .payments-label{ 
  left: 70px;
  font-size: 12px;
}
.a11y-launcher .a11y-label{ 
  left: 70px;
  font-size: 12px;
}

/* When the accessibility panel is open, hide the payments launcher */
.a11y-panel-open .payments-launcher{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.payments-launcher:hover i, .payments-launcher:active i, .payments-launcher:focus i {
  color: #fff !important;
  filter: none !important;
}

/* hidden until scrolled past banner on mobile (home only) */
@media (max-width: 767px) {
  .floating-hidden-mobile {
    display: none !important;
  }

  body:has(.a11y-launcher.floating-hidden-mobile) .progress-wrap.active-progress {
    display: none !important;
  }
}

