.wcag-skip-link {
  position: fixed;
  z-index: 10002;
  top: -100px;
  left: 12px;
  padding: 12px 16px;
  background: #fff;
  color: #000;
  border: 3px solid #600201;
  font: 700 16px/1.3 Arial, sans-serif;
}
.wcag-skip-link:focus { top: 12px; }
.wcag-widget, .wcag-widget * { box-sizing: border-box; }
.wcag-widget { position: fixed; z-index: 10001; right: 20px; bottom: 20px; color: #202020; font: 16px/1.4 Arial, sans-serif; }
.wcag-toggle { position: relative; display: block; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.wcag-toggle-icon { display: block; width: 48px; height: 48px; }
.wcag-active-dot { display: none; position: absolute; top: 0; right: 0; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: #16833d; }
.wcag-widget.wcag-active .wcag-active-dot { display: block; }
.wcag-panel { position: absolute; right: 0; bottom: 58px; width: 350px; max-width: calc(100vw - 24px); max-height: min(78vh, 720px); overflow: auto; border: 2px solid #600201; border-radius: 8px; background: #fff; color: #202020; box-shadow: 0 4px 22px rgba(0,0,0,.28); font: 16px/1.4 Arial, sans-serif; }
.wcag-panel[hidden] { display: none; }
.wcag-panel-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 8px 12px; background: #600201; color: #fff; }
.wcag-panel-header h2 { margin: 0; color: #fff; font: 700 18px/1.3 Arial, sans-serif; }
.wcag-panel button { min-width: 44px; min-height: 44px; padding: 7px; border: 1px solid #777; border-radius: 4px; background: #fff; color: #202020; font: 14px/1.2 Arial, sans-serif; cursor: pointer; }
.wcag-panel button[aria-pressed="true"] { border: 2px solid #600201; background: #f4e7e7; font-weight: 700; }
.wcag-panel .wcag-close { min-width: 44px; font-size: 28px; }
.wcag-panel-body { padding: 10px 12px 14px; }
.wcag-panel-body h3 { margin: 10px 0 6px; font: 700 15px/1.3 Arial, sans-serif; }
.wcag-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.wcag-controls + .wcag-controls { margin-top: 6px; }
.wcag-stack { flex-direction: column; }
.wcag-stack button { text-align: left; }
.wcag-size-controls { align-items: center; }
.wcag-scale { min-width: 48px; text-align: center; font-weight: 700; }
.wcag-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 7px 0; font-size: 14px; }
.wcag-setting-row .wcag-controls { flex-wrap: nowrap; }
.wcag-setting-row button { min-width: 44px; }
.wcag-reset-all { width: 100%; margin-top: 12px; border-color: #600201 !important; color: #600201 !important; font-weight: 700 !important; }
.wcag-panel :focus, .wcag-toggle:focus { outline: 3px solid #005fcc; outline-offset: 2px; }

html.wcag-focus :focus { outline: 4px solid #005fcc !important; outline-offset: 3px !important; }
html.wcag-contrast-high #wcag-main, html.wcag-contrast-high #wcag-navigation, html.wcag-contrast-high #wcag-footer { background-color: #000 !important; color: #ff0 !important; }
html.wcag-contrast-high #wcag-main *, html.wcag-contrast-high #wcag-navigation *, html.wcag-contrast-high #wcag-footer * { color: #ff0 !important; border-color: #ff0 !important; background-color: #000 !important; }
html.wcag-contrast-high #wcag-main a, html.wcag-contrast-high #wcag-navigation a, html.wcag-contrast-high #wcag-footer a { color: #0ff !important; text-decoration: underline !important; }
html.wcag-contrast-highest #wcag-main, html.wcag-contrast-highest #wcag-navigation, html.wcag-contrast-highest #wcag-footer { background-color: #000 !important; color: #fff !important; }
html.wcag-contrast-highest #wcag-main *, html.wcag-contrast-highest #wcag-navigation *, html.wcag-contrast-highest #wcag-footer * { color: #fff !important; border-color: #fff !important; background-color: #000 !important; box-shadow: none !important; }
html.wcag-contrast-highest #wcag-main a, html.wcag-contrast-highest #wcag-navigation a, html.wcag-contrast-highest #wcag-footer a { color: #ff0 !important; text-decoration: underline !important; }
html.wcag-grayscale #wcag-main, html.wcag-grayscale #wcag-navigation, html.wcag-grayscale #wcag-footer { filter: grayscale(1); }
html.wcag-inverted #wcag-main, html.wcag-inverted #wcag-navigation, html.wcag-inverted #wcag-footer { filter: invert(1) hue-rotate(180deg); }
html.wcag-grayscale.wcag-inverted #wcag-main, html.wcag-grayscale.wcag-inverted #wcag-navigation, html.wcag-grayscale.wcag-inverted #wcag-footer { filter: grayscale(1) invert(1) hue-rotate(180deg); }
html.wcag-font-dyslexic #wcag-main, html.wcag-font-dyslexic #wcag-navigation, html.wcag-font-dyslexic #wcag-footer { font-family: OpenDyslexic, "Comic Sans MS", sans-serif !important; }
html.wcag-font-serif #wcag-main, html.wcag-font-serif #wcag-navigation, html.wcag-font-serif #wcag-footer { font-family: Georgia, "Times New Roman", serif !important; }
html.wcag-font-sans #wcag-main, html.wcag-font-sans #wcag-navigation, html.wcag-font-sans #wcag-footer { font-family: Arial, Helvetica, sans-serif !important; }
html.wcag-letter-1 #wcag-main *, html.wcag-letter-1 #wcag-navigation *, html.wcag-letter-1 #wcag-footer * { letter-spacing: .05em !important; }
html.wcag-letter-2 #wcag-main *, html.wcag-letter-2 #wcag-navigation *, html.wcag-letter-2 #wcag-footer * { letter-spacing: .1em !important; }
html.wcag-letter-3 #wcag-main *, html.wcag-letter-3 #wcag-navigation *, html.wcag-letter-3 #wcag-footer * { letter-spacing: .15em !important; }
html.wcag-word-1 #wcag-main *, html.wcag-word-1 #wcag-navigation *, html.wcag-word-1 #wcag-footer * { word-spacing: .12em !important; }
html.wcag-word-2 #wcag-main *, html.wcag-word-2 #wcag-navigation *, html.wcag-word-2 #wcag-footer * { word-spacing: .24em !important; }
html.wcag-word-3 #wcag-main *, html.wcag-word-3 #wcag-navigation *, html.wcag-word-3 #wcag-footer * { word-spacing: .36em !important; }
html.wcag-line-1 #wcag-main *, html.wcag-line-1 #wcag-navigation *, html.wcag-line-1 #wcag-footer * { line-height: 1.6 !important; }
html.wcag-line-2 #wcag-main *, html.wcag-line-2 #wcag-navigation *, html.wcag-line-2 #wcag-footer * { line-height: 1.8 !important; }
html.wcag-line-3 #wcag-main *, html.wcag-line-3 #wcag-navigation *, html.wcag-line-3 #wcag-footer * { line-height: 2 !important; }
html.wcag-reduced-motion *, html.wcag-reduced-motion *:before, html.wcag-reduced-motion *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
/* Temporarily applied by wcag.js while text sizes are measured, so transitions cannot skew computed values. */
html.wcag-measuring, html.wcag-measuring *, html.wcag-measuring *:before, html.wcag-measuring *:after { transition: none !important; }
/* Larger text no longer fits the desktop menu in one row: let it wrap instead of shrinking the logo and clipping links. */
@media (min-width: 992px) {
  html.wcag-text-scaled .main-navbar .navbar-wpr { flex-wrap: wrap; row-gap: 8px; }
  html.wcag-text-scaled .main-navbar .logo { flex-shrink: 0; }
  html.wcag-text-scaled .main-navbar .menu { overflow: visible; max-width: 100%; }
  html.wcag-text-scaled .main-navbar .navbar-collapse .nav { flex-wrap: wrap; }
}
@media (max-width: 480px) { .wcag-widget { right: 10px; bottom: 10px; } .wcag-panel { width: 340px; max-height: 78vh; } }
@media print { .wcag-widget, .wcag-skip-link { display: none !important; } }
