   /* =========================================================
   SECTION: Theme Setup
   ========================================================= */
:root {
  --sos-accent: #0F6728;
  --sos-accent-2: #154869;
}

body.theme-dark {
  --sos-bg: #000;
  --sos-surface: #0a0a0a;
  --sos-border: #1a1a1a;
  --sos-text: #f1f1f1;
  --sos-muted: #9b9b9b;
  --sos-ring: rgba(39, 160, 74, 0.45);
  --sos-shadow: rgba(0, 0, 0, 0);
  --sos-elevate: #0d0d0d;
  --sos-card: #101010;
  --sos-input: #141414;
}

body.theme-light {
  --sos-bg: #fff;
  --sos-surface: #f8f8f8;
  --sos-border: #d9d9d9;
  --sos-text: #111;
  --sos-muted: #555;
  --sos-ring: rgba(39, 160, 74, 0.25);
  --sos-shadow: rgba(0, 0, 0, 0.);
  --sos-elevate: #f1f1f1;
  --sos-card: #fff;
  --sos-input: #fafafa;
}


/* =========================================================
   SECTION: Core Widget UI
   ========================================================= */

.sos-a11y-fab {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0;
  color: var(--sos-accent);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px var(--sos-shadow);
  display: grid; place-items: center;
  cursor: pointer; z-index: 99999;
  transition: transform .2s ease, box-shadow .2s ease;
}

.sos-a11y-fab:hover { transform: scale(1.05); box-shadow: 0 12px 36px var(--sos-ring); }
.sos-a11y-fab:focus { outline: 3px solid var(--sos-accent); outline-offset: 2px; }
body.theme-dark #sos-a11y-shortcuts-inline h3 { color: #ffffff !important; }

@keyframes sos-pulse {
  0% { box-shadow: 0 0 0 0 var(--sos-ring); }
  70% { box-shadow: 0 0 0 12px rgba(39,160,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(39,160,74,0); }
}
.sos-a11y-fab-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--sos-ring);
  animation: sos-pulse 2.4s infinite;
}


/* =========================================================
   SECTION: Drawer + Backdrop
   ========================================================= */
.sos-a11y-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99998;
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s ease;
}
.sos-a11y-backdrop[aria-hidden="false"] { opacity: 1; }

.sos-a11y-drawer {
  position: fixed; right: 0; top: 0;
  width: 420px; height: 100vh;
  background: var(--sos-surface);
  color: var(--sos-text);
  border-left: 1px solid var(--sos-border);
  box-shadow: -20px 0 40px var(--sos-shadow);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 999999;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
.sos-a11y-drawer.is-open { transform: translateX(0); }


/* =========================================================
   SECTION: Header + Tabs + Panels
   ========================================================= */
.sos-a11y-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--sos-border);
  background:var(--sos-elevate);
}
.sos-a11y-title { font-weight:700; display:flex; align-items:center; gap:10px; margin-left:20px; }
.sos-a11y-dot { width:10px; height:10px; border-radius:50%; background:var(--sos-accent); }

.sos-a11y-tabs {
  display:flex; gap:6px; padding:10px;
  border-bottom:1px solid var(--sos-border);
}
.sos-a11y-tab {
  background:var(--sos-elevate);
  color:var(--sos-muted);
  border:1px solid var(--sos-border);
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer; flex:1;
  text-align:center;
  transition: all 0.2s ease;
}
.sos-a11y-tab.is-active {
  color:var(--sos-text);
  border-color:var(--sos-accent);
  box-shadow:0 0 0 2px rgba(39,160,74,.15) inset;
}

.sos-a11y-panel { padding:14px; overflow:auto; }
.sos-a11y-panel.is-hidden { display:none; }


/* =========================================================
   SECTION: Cards + Grid
   ========================================================= */
.sos-a11y-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:start;
}

.sos-a11y-card {
  background:var(--sos-card);
  border:1px solid var(--sos-border);
  border-radius:14px;
  padding:14px;
  display:flex; flex-direction:column; gap:8px;
  box-shadow:0 6px 18px rgba(0,0,0,.1);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease;
  position:relative; min-height:130px;
}
.sos-a11y-card h3 { margin:0; font-size:1rem; color:var(--sos-text); }
.sos-a11y-card p { margin:0; color:var(--sos-muted); font-size:.9rem; }

.sos-a11y-card.is-active {
  border-color:var(--sos-accent);
  box-shadow:0 0 0 2px rgba(39,160,74,.35), 0 6px 18px rgba(0,0,0,.3);
  transform:translateY(-1px);
}
.sos-a11y-card.is-active::after {
  content:"✓";
  position:absolute; top:10px; right:14px;
  font-weight:bold; color:var(--sos-accent);
  font-size:1.2em; line-height:1; pointer-events:none;
}
.sos-a11y-card:hover { transform:translateY(-2px); box-shadow:0 4px 20px rgba(39,160,74,.25); }
.sos-a11y-card:active { transform:scale(0.98); box-shadow:0 2px 10px rgba(39,160,74,.15); }


/* =========================================================
   SECTION: Controls + Buttons + Inputs
   ========================================================= */
.sos-a11y-group {
  border:1px solid var(--sos-border);
  border-radius:12px;
  padding:12px;
  background:var(--sos-card);
  margin-bottom:12px;
}
.sos-a11y-label { font-weight:600; margin-bottom:8px; color:var(--sos-text); display:block; }
.sos-a11y-rows { display:flex; gap:8px; flex-wrap:wrap; justify-content: flex-start !important; }

.sos-a11y-chip,
.sos-a11y-toggle,
.sos-a11y-select {
  background:var(--sos-input);
  color:var(--sos-text);
  border:1px solid var(--sos-border);
  border-radius:10px;
  cursor:pointer;
  transition: all 0.2s ease;
}
.sos-a11y-chip { padding:6px 10px; border-radius:999px; }
.sos-a11y-select { width:100%; padding:8px; }
.sos-a11y-toggle { padding:8px 12px; }

.sos-a11y-toggle.is-on,
.sos-a11y-chip.is-on {
  border-color: var(--sos-accent);
  background: rgba(39,160,74,0.1);
  box-shadow: 0 0 0 2px rgba(39,160,74,0.25) inset;
  color: var(--sos-accent);
  font-weight: 600;
}

/* =========================================================
   SECTION: Scale Controls Display
   ========================================================= */
.sos-a11y-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 4px;
}

.sos-scale-val {
  font-weight: 700;
  font-size: 0.9rem;
  color: #154869;        /* your palette */
  background: #e8f3ee;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.sos-a11y-group .sos-a11y-chip {
  font-weight: 600;
}

#sos-a11y-drawer .sos-a11y-panel .sos-a11y-group .sos-a11y-rows {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: left !important;
}

/* optional: ensure label text aligns left too */
#sos-a11y-drawer .sos-a11y-group,
#sos-a11y-drawer .sos-a11y-label {
  text-align: left !important;
}

/* =========================================================
   SECTION: Footer Buttons
   ========================================================= */
.sos-a11y-footer {
  display:flex; gap:8px; padding:12px;
  border-top:1px solid var(--sos-border);
  background:var(--sos-elevate);
}
.sos-a11y-btn-primary {
  flex:1; background:#0F6728 !important; color:#fff;
  border:0; border-radius:10px; padding:10px; cursor:pointer;
  transition: background 0.2s ease;
}
.sos-a11y-btn-primary:hover { background:var(--sos-accent-2); }
.sos-a11y-btn-secondary {
  flex:1; background:var(--sos-input); color:var(--sos-text);
  border:1px solid var(--sos-border);
  border-radius:10px; padding:10px; cursor:pointer;
}


/* =========================================================
   SECTION: Responsive
   ========================================================= */
@media (max-width:480px){
  .sos-a11y-drawer{ width:100vw; }
  .sos-a11y-grid{ grid-template-columns:1fr; }
}


/* =========================================================
   SECTION: Feature Profiles
   ========================================================= */
body.sos-a11y-readability :where(p,li){ font-size:1.125em!important; line-height:1.8!important; }
body.sos-a11y-readability :where(h1,h2,h3){ letter-spacing:.02em!important; }
body.sos-a11y-readability :where(a){ font-weight:600!important; }

body.sos-a11y-reduce-motion *{ transition:none!important; animation:none!important; }
body.sos-a11y-dim-img img, body.sos-a11y-dim-img video{
  filter:brightness(80%) saturate(50%) contrast(85%)!important;
}

#sos-a11y-spotlight{
  position:fixed; inset:0; pointer-events:none; z-index:999999;
  background:radial-gradient(circle 160px at var(--x,50%) var(--y,50%), transparent 0%, transparent 98%, rgba(0,0,0,.76) 100%);
}

body.sos-a11y-clarity *{
  animation:none!important; transition:none!important; box-shadow:none!important;
}
body.sos-a11y-clarity :where(p,li,h1,h2,h3,h4,h5,h6,a,button,label,input,select,textarea){
  line-height:1.8!important; letter-spacing:.02em!important; word-spacing:.02em!important;
  font-weight:500!important; color:inherit!important;
}

body.sos-a11y-focus :focus{
  outline:3px solid var(--sos-accent)!important;
  outline-offset:2px;
  box-shadow:0 0 0 4px rgba(39,160,74,.15)!important;
}

body.sos-a11y-hl-links a{
  outline:2px dashed var(--sos-accent)!important;
  text-decoration:underline!important;
}

body.sos-a11y-hide-images img,
body.sos-a11y-hide-images [role="img"]{
  visibility:hidden!important; opacity:0!important;
}


/* =========================================================
   SECTION: Color + Saturation Adjustments
   ========================================================= */
body.sos-a11y-dark-contrast{ background-color:#111!important; }
body.sos-a11y-light-contrast{ background-color:#fff!important; }
html.sos-a11y-sat-low  { filter:saturate(0.5)!important; }
html.sos-a11y-sat-high { filter:saturate(1.5)!important; }
html.sos-a11y-deut     { filter:url(#sos-a11y-colorblind-filter-deut)!important; }
html.sos-a11y-prot     { filter:url(#sos-a11y-colorblind-filter-prot)!important; }
html.sos-a11y-trit     { filter:url(#sos-a11y-colorblind-filter-trit)!important; }

/* =========================================================
   SECTION: Text Scaling
   ========================================================= */
body.sos-a11y-font-scaled{ --sos-font-multiplier:1; }
body.sos-a11y-font-scaled main :where(p,li,span,a,strong,em,label,blockquote,figcaption){
  font-size:calc(var(--sos-font-multiplier)*1em)!important;
}
body.sos-a11y-font-scaled :where(h1,h2,h3,h4,h5,h6){
  transform-origin:left top;
  transform:scale(var(--sos-font-multiplier));
  display:inline-block;
}
body.sos-a11y-font-scaled *{ transition:font-size .25s ease; }


/* =========================================================
   SECTION: Drawer Protection
   ========================================================= */
#sos-a11y-drawer,
#sos-a11y-drawer *{
  letter-spacing:normal!important;
  word-spacing:normal!important;
  line-height:normal!important;
  font-weight:normal!important;
  text-transform:none!important;
}

/* =========================================================
   SECTION: Compliance Notes
   ========================================================= */
.sos-a11y-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sos-a11y-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sos-a11y-modal-content {
  background: var(--sos-surface);
  color: var(--sos-text);
  border-radius: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 40px 32px;
  box-shadow: none;
  border-left: 1px solid var(--sos-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.sos-a11y-modal-content h2 {
  color: var(--sos-accent);
  margin-top: 0;
  font-size: 1.6rem;
}

.sos-a11y-modal-content p,
.sos-a11y-modal-content ul {
  line-height: 1.6;
  font-size: 1rem;
  color: var(--sos-text);
}

.sos-a11y-modal-content ul {
  margin: 1em 0;
  padding-left: 1.25em;
}

.sos-a11y-modal-content button {
  margin-top: auto;
  width: 100%;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
}

.sos-a11y-modal-content {
  background: var(--sos-surface);
  color: var(--sos-text);
  border-radius: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 48px 36px 80px;
  border-left: 1px solid var(--sos-border);
  display: flex;
  flex-direction: column;
}

.sos-a11y-modal-header {
  text-align: left;
  margin-bottom: 24px;
}

.sos-a11y-modal-header h2 {
  color: var(--sos-accent);
  margin: 0;
  font-size: 1.8rem;
}

.sos-a11y-tagline {
  color: var(--sos-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.sos-a11y-modal-body {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

.sos-a11y-modal-body h3 {
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  color: var(--sos-accent-2);
  font-size: 1.1rem;
}

.sos-a11y-modal-body ul {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.sos-a11y-modal-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--sos-border);
  display: flex;
  justify-content: flex-end;
}

.sos-a11y-modal-footer button {
  width: auto;
  padding: 10px 20px;
}

.sos-a11y-bullet-list {
  list-style: disc;
  margin: 0.5em 0 1.2em 1.5em;
}
.sos-a11y-bullet-list li {
  margin-bottom: 0.4em;
  line-height: 1.5;
}

/* =========================================================
   SECTION: Shortcuts Guide
   ========================================================= */
#sos-a11y-shortcuts-inline {
  display: block;
  opacity: 1;
  max-height: 500px;
  margin-top: 10px;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}

#sos-a11y-shortcuts-inline.is-hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

/* ============================================================
   ACCESSIBILITY: OVERLAY CONTRAST MODES (Glass Effect 0.35)
   ============================================================ */

  /* ---- DARK CONTRAST ---- */
  body.sos-a11y-dark-contrast::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* dark film only */
    pointer-events: none;
    z-index: 99998;
    transition: opacity 0.3s ease;
  }

  /* ---- LIGHT CONTRAST ---- */
  body.sos-a11y-light-contrast::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.35); /* light film only */
    pointer-events: none;
    z-index: 99998;
    transition: opacity 0.3s ease;
  }

  body.sos-a11y-dark-contrast::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 1; /* under all content */
  }

  /* LIGHT CONTRAST OVERLAY */
  body.sos-a11y-light-contrast::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 1; /* under all content */
  }

  /* Always remove overlay when neither is active */
  body:not(.sos-a11y-dark-contrast):not(.sos-a11y-light-contrast)::before {
    content: none !important;
  }

  /* ---- Reset Overlay ---- */
  body:not(.sos-a11y-dark-contrast):not(.sos-a11y-light-contrast)::before {
    content: none !important;
  }

  /* ============================================================
   FIX: Overflow + Floating Button Reset During Filters
   ============================================================ */

/* Prevent layout shift or horizontal scroll when using filters */
body.sos-a11y-sat-low,
body.sos-a11y-sat-high,
body.sos-a11y-deut,
body.sos-a11y-prot,
body.sos-a11y-trit {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Ensure no accidental transforms on root affect positioning */
html,
body {
  transform: none !important;
}

/* Keep floating SOS button anchored to viewport even when filtered */
#sos-a11y-toggle {
  position: fixed !important;
  right: 25px !important;
  bottom: 25px !important;
  z-index: 999999 !important;
  will-change: transform; /* ensures stable GPU layer */
}

/* Disable overflow caused by filter edge bleeding on large screens */
html {
  overflow-x: hidden !important;
}

/* Prevent child elements (like modals or drawers) from creating scrollbars */
#sos-a11y-drawer,
#sos-a11y-compliance-modal {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Remove the green dot in header */
.sos-a11y-header .sos-a11y-dot {
  display: none !important;
}

/* Ribbon: left aligned */
.sos-a11y-govcan-ribbon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;      /* <<< LEFT */
  text-align: left;             /* <<< LEFT */
  padding: 6px 0 10px;
  margin-left: 14px;            /* matches drawer padding */
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
}

/* Logo container */
.govcan-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* <<< LEFT */
  height: 22px;
  margin-bottom: 4px;
}

.govcan-logo {
  height: 22px;
  width: auto;
  display: block;
}

/* Default: Dark UI */
.govcan-logo-light { display: none; }

/* Light UI override */
body.sos-color-light .govcan-logo-dark { display: none; }
body.sos-color-light .govcan-logo-light { display: block; }

.govcan-text {
  max-width: 240px;
  line-height: 1.25;
  opacity: 0.75;
}

/* Default: Dark UI */
.govcan-logo-light { display: none; }
.govcan-logo-dark  { display: block; }

/* When Light UI is active — swap logos */
body.sos-color-light .govcan-logo-dark { display: none; }
body.sos-color-light .govcan-logo-light { display: block; }


/* Default: dark UI = show white logo */
.govcan-logo-light { display: none; }
.govcan-logo-dark  { display: block; }

/* Light UI = show black logo */
body.theme-light .govcan-logo-dark { display: none; }
body.theme-light .govcan-logo-light { display: block; }

/* =========================================================
   SOS Accessibility — Large Cursor System (Clean Build)
   ========================================================= */

/* Root variables for reusable cursor data URIs */
:root {
  /* Default arrow cursor (bigger, centered) */
  --sos-cursor-default: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'>\
  <polygon points='6,2 26,30 17,30 22,58 13,60 9,32 0,36' fill='%23ffffff' stroke='%23000' stroke-width='2'/>\
</svg>") 6 2, auto;

  /* Pointer cursor (same shape, slightly larger for click targets) */
  --sos-cursor-pointer: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'>\
  <polygon points='7,3 30,36 20,36 26,68 15,70 10,38 0,42' fill='%23ffffff' stroke='%23000' stroke-width='2.5'/>\
</svg>") 7 3, pointer;

  /* Text cursor (I-beam style) */
  --sos-cursor-text: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'>\
  <path d='M36 8 v56 M24 12 h24 M24 60 h24' stroke='%23000' stroke-width='4'/>\
</svg>") 12 12, text;
}

/* Body-wide cursor activation */
.sos-a11y-large-cursor *:not(#sos-a11y-drawer *):not(#sos-a11y-toggle *):not(.sos-a11y-modal *){
  cursor: var(--sos-cursor-default) !important;
}

/* Pointer variant for clickable elements */
.sos-a11y-large-cursor a[href]:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor button:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor [role="button"]:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor input[type="button"]:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor input[type="submit"]:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor summary:not(#sos-a11y-drawer *) {
  cursor: var(--sos-cursor-pointer) !important;
}

/* Text variant for editable inputs */
.sos-a11y-large-cursor input[type="text"]:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor input[type="email"]:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor input[type="search"]:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor input[type="url"]:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor input[type="tel"]:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor textarea:not(#sos-a11y-drawer *),
.sos-a11y-large-cursor [contenteditable="true"]:not(#sos-a11y-drawer *) {
  cursor: var(--sos-cursor-text) !important;
}

/* Assistant UI stays native */
#sos-a11y-drawer *, #sos-a11y-toggle *, .sos-a11y-modal * {
  cursor: auto !important;
}

/* ======================================================
   Keyboard Navigation Visual Highlight
   ====================================================== */

.keyboard-highlighted {
  outline: 3px solid #F26320 !important;      /* Bright orange border */
  outline-offset: 3px !important;
  background-color: rgba(242, 99, 32, 0.08) !important;
  border-radius: 4px !important;
  scroll-margin: 80px;                        /* keeps focus in view */
  transition: outline 0.15s ease, background-color 0.15s ease;
}

.keyboard-highlighted img,
.keyboard-highlighted [role="img"] {
  outline: 3px solid #F26320 !important;
  border-radius: 6px !important;
}

.keyboard-highlighted a,
.keyboard-highlighted button {
  box-shadow: 0 0 0 3px #F26320 !important;
}

/* =========================================================
   GLOBAL COLOR MODES (Contrast, Saturation, Filters)
   ========================================================= */

/* --- Contrast --- */
body.sos-a11y-dark-contrast::before,
body.sos-a11y-light-contrast::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  transition: opacity 0.3s ease;
}

body.sos-a11y-dark-contrast::before {
  background: rgba(0, 0, 0, 0.35);
}

body.sos-a11y-light-contrast::before {
  background: rgba(255, 255, 255, 0.35);
}

/* --- Saturation --- */
body.sos-a11y-sat-low  { filter: saturate(0.5) !important; }
body.sos-a11y-sat-high { filter: saturate(1.5) !important; }

/* --- Color Blind Filters --- */
html.sos-a11y-deut { filter: url(#sos-a11y-colorblind-filter-deut) !important; }
html.sos-a11y-prot { filter: url(#sos-a11y-colorblind-filter-prot) !important; }
html.sos-a11y-trit { filter: url(#sos-a11y-colorblind-filter-trit) !important; }

/* =========================================================
   SECTION: Highlight Titles
   ========================================================= */
body.sos-a11y-highlight-titles h1,
body.sos-a11y-highlight-titles h2,
body.sos-a11y-highlight-titles h3,
body.sos-a11y-highlight-titles h4,
body.sos-a11y-highlight-titles h5,
body.sos-a11y-highlight-titles h6 {
  background-color: rgba(39, 160, 74, 0.15) !important;
  color: var(--sos-accent) !important;
  outline: 2px solid var(--sos-accent) !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  display: inline-block !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Optional: make links inside headings readable */
body.sos-a11y-highlight-titles h1 a,
body.sos-a11y-highlight-titles h2 a,
body.sos-a11y-highlight-titles h3 a {
  color: inherit !important;
  text-decoration: underline;
}

