MediaWiki:Gadget-bhc-accessibility.css: Difference between revisions

No edit summary
No edit summary
Line 7: Line 7:
   ========================================================= */
   ========================================================= */


/* =========================================================
/* ---------------------------------------------------------
   Variables
   Variables
   ========================================================= */
   --------------------------------------------------------- */
:root{
:root{
   --a11y-bg: #111827;
   --a11y-bg: #111827;
Line 15: Line 15:
   --a11y-fg: #ffffff;
   --a11y-fg: #ffffff;
   --a11y-focus: #FFBF47;
   --a11y-focus: #FFBF47;
   --a11y-link-underline: #36C;
   --a11y-link-underline: #36C; /* MediaWiki link blue */
   --a11y-menu-width: 340px;
   --a11y-menu-width: 340px;
}
}


/* =========================================================
/* Timeless: stop skin CSS shrinking the accessibility icon */
   Skip links
body.skin-timeless .a11y-toggle{
   ========================================================= */
  font-size: 16px !important;
  line-height: 1 !important;
}
body.skin-timeless .a11y-toggle svg{
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: none !important;
  max-height: none !important;
 
  /* If the glyph still looks small, keep this: */
  transform: scale(1.15) !important;
  transform-origin: 50% 50% !important;
}
/* Make sure fill isn’t being altered by skin rules */
body.skin-timeless .a11y-toggle svg path{
  fill: currentColor !important;
}
 
/* ---------------------------------------------------------
   Skip links (appear when focused)
   --------------------------------------------------------- */
.skip-link{
.skip-link{
   position:absolute;
   position: absolute;
   left:12px;
   left: 12px;
   top:12px;
   top: 12px;
   z-index:11000;
   z-index: 11000;
   padding:10px 14px;
 
   border-radius:8px;
   padding: 10px 14px;
   background:#111827;
   border-radius: 8px;
   color:#fff;
 
   text-decoration:none;
   background: #111827;
   transform:translateY(-150%);
   color: #fff;
   transition:transform .15s ease;
   text-decoration: none;
   border:2px solid var(--a11y-focus);
 
   transform: translateY(-150%);
   transition: transform 0.15s ease;
   border: 2px solid var(--a11y-focus);
}
.skip-link:focus,
.skip-link:focus-visible{
  transform: translateY(0);
  outline: none;
}
}
.skip-link:focus-visible{ transform:translateY(0); }
body.a11y-contrast .skip-link{
body.a11y-contrast .skip-link{
   background:#000!important;
   background: #000 !important;
   color:#FFD400!important;
   color: #FFD400 !important;
   border-color:#FFD400!important;
   border-color: #FFD400 !important;
}
}


/* =========================================================
/* ---------------------------------------------------------
   Floating accessibility toggle
   Floating accessibility toggle
   ========================================================= */
   --------------------------------------------------------- */
.a11y-toggle{
.a11y-toggle{
   position:fixed;
   position: fixed;
   right:16px;
   right: 16px;
   bottom:16px;
   bottom: 16px;
   width:56px;
  z-index: 10001;
   height:56px;
 
   border-radius:50%;
   width: 56px;
   background:#005FCC;
   height: 56px;
   border:2px solid #fff;
   border-radius: 50%;
   color:#fff;
 
   display:inline-flex;
   background: #005FCC;
   align-items:center;
   border: 2px solid #ffffff;
   justify-content:center;
   color: #ffffff;
   box-shadow:0 10px 24px rgba(0,0,0,.25);
 
   cursor:pointer;
   display: inline-flex;
  z-index:10001;
   align-items: center;
   justify-content: center;
 
   box-shadow: 0 10px 24px rgba(0,0,0,0.25);
   cursor: pointer;
}
}
.a11y-toggle:hover{ background:#0047A6; }
.a11y-toggle:focus-visible{
.a11y-toggle:focus-visible{
   outline:3px solid var(--a11y-focus);
   outline: 3px solid var(--a11y-focus);
   outline-offset:3px;
   outline-offset: 3px;
}
}
.a11y-toggle svg{
.a11y-toggle svg{
   width:44px;
   width: 44px;
   height:44px;
   height: 44px;
   fill:currentColor;
   fill: currentColor;
}
}


/* =========================================================
/* ---------------------------------------------------------
   Accessibility panel
   Panel
   ========================================================= */
   --------------------------------------------------------- */
.a11y-panel{
.a11y-panel{
   position:fixed;
   position: fixed;
   right:14px;
   right: 14px;
   bottom:76px;
   bottom: 76px;
   width:var(--a11y-menu-width);
  z-index: 10000;
   max-width:calc(100vw - 28px);
 
   background:var(--a11y-bg);
   width: var(--a11y-menu-width);
   color:var(--a11y-fg);
   max-width: calc(100vw - 28px);
   border:1px solid var(--a11y-border);
 
   border-radius:16px;
   background: var(--a11y-bg);
   padding:12px;
   border: 1px solid var(--a11y-border);
   box-shadow:0 14px 40px rgba(0,0,0,.28);
   color: var(--a11y-fg);
   z-index:10000;
   border-radius: 16px;
   padding: 12px;
 
   box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}
.a11y-panel[hidden]{ display:none !important; }
 
/* Header */
.a11y-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.a11y-head h2{
  font-size: 16px;
  margin: 0;
}
.a11y-help{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-weight: 900;
  text-decoration: none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.a11y-help:focus-visible{
  outline: 3px solid var(--a11y-focus);
   outline-offset: 2px;
}
 
/* Buttons */
.a11y-row{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.a11y-btn{
  border: 1px solid #D1D5DB;
  background:#fff;
  color:#111827;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.a11y-btn[aria-pressed="true"]{
  background:#111827;
  color:#fff;
}
.a11y-btn:focus-visible{
  outline: 3px solid var(--a11y-focus);
  outline-offset: 2px;
}
 
.a11y-hint{
  font-size: 13px;
  color: var(--a11y-fg);
  line-height: 1.4;
}
 
/* Screen reader only */
.a11y-sr{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
}
.a11y-panel[hidden]{ display:none!important; }


/* =========================================================
/* =========================================================
   High contrast base
   Feature classes
   ========================================================= */
   ========================================================= */
/* ------------------------------
  High contrast (black/yellow/blue)
  ------------------------------ */
body.a11y-contrast{
body.a11y-contrast{
   background:#000!important;
   background:#000 !important;
   color:#FFD400!important;
   color:#FFD400 !important;
   --a11y-bg:#000;
 
   --a11y-border:rgba(255,212,0,.7);
   --a11y-bg: #000;
   --a11y-fg:#FFD400;
   --a11y-border: rgba(255,212,0,.7);
   --a11y-focus:#FFD400;
   --a11y-fg: #FFD400;
   --a11y-focus: #FFD400;
  --a11y-link-underline: #36C;
}
}


/* Links */
body.a11y-contrast a,
body.a11y-contrast a,
body.a11y-contrast a:visited{
body.a11y-contrast a:visited{
   color:#FFD400!important;
  color:#FFD400 !important;
}
 
/* Headings */
body.a11y-contrast h1,
body.a11y-contrast h2,
body.a11y-contrast h3,
body.a11y-contrast h4,
body.a11y-contrast h5,
body.a11y-contrast h6{
  color:#FFD400 !important;
  border-color:#FFD400 !important;
}
 
/* Main containers (Timeless needs explicit coverage) */
body.a11y-contrast #mw-wrapper,
body.a11y-contrast #mw-content-container,
body.a11y-contrast #mw-content,
body.a11y-contrast .mw-body,
body.a11y-contrast .mw-parser-output{
  background:#000 !important;
  color:#FFD400 !important;
}
 
/* Sidebars / tools */
body.a11y-contrast #site-navigation,
body.a11y-contrast #site-tools,
body.a11y-contrast #page-tools,
body.a11y-contrast .mw-portlet,
body.a11y-contrast .mw-portlet-body{
  background:#000 !important;
  color:#FFD400 !important;
  border-color: rgba(255,212,0,.7) !important;
}
 
/* FIX: ensure descendants don’t stay black on black */
body.a11y-contrast .mw-portlet-body *{
  color:#FFD400 !important;
}
 
/* Ensure links inside toolboxes */
body.a11y-contrast #site-navigation a,
body.a11y-contrast #site-tools a,
body.a11y-contrast #page-tools a{
  color:#FFD400 !important;
}
 
/* A11y UI in contrast */
body.a11y-contrast .a11y-panel,
body.a11y-contrast .a11y-toggle{
  background:#000 !important;
}
body.a11y-contrast .a11y-btn{
  background:#000 !important;
  color:#FFD400 !important;
  border:2px solid rgba(255,212,0,.85) !important;
}
 
/* FIX: “?” help button in contrast */
body.a11y-contrast .a11y-help{
  background:#000 !important;
  color:#FFD400 !important;
  border:2px solid rgba(255,212,0,.85) !important;
}
 
/* ------------------------------
  Underline links
  ------------------------------ */
body.a11y-underline-links a{
  text-decoration: none !important;
  border-bottom: 2px solid var(--a11y-link-underline);
  padding-bottom: 0.05em;
}
body.a11y-underline-links.a11y-contrast a{
  border-bottom-color: #36C !important;
}
 
/* ------------------------------
  Text spacing
  ------------------------------ */
body.a11y-spacing-plus{
  line-height: 1.8 !important;
  letter-spacing: 0.06em !important;
  word-spacing: 0.16em !important;
}
body.a11y-spacing-minus{
  line-height: 1.45 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.02em !important;
}
 
/* ------------------------------
  Large cursors (wiki-hosted)
  ------------------------------ */
body.a11y-cursor-white,
body.a11y-cursor-white *{
  cursor: url("/index.php/Special:FilePath/large-arrow-white-64.png") 8 8, auto !important;
}
body.a11y-cursor-yellow,
body.a11y-cursor-yellow *{
  cursor: url("/index.php/Special:FilePath/large-arrow-yellow-64.png") 8 8, auto !important;
}
 
/* ------------------------------
  Reading ruler
  ------------------------------ */
#a11y-ruler{
  position: fixed;
  left: 0;
  top: 0;
  height: 22px;
  width: 100vw;
  z-index: 9999;
  pointer-events: none;
 
  background: linear-gradient(
    to bottom,
    #FFD400 0%,
    #FFD400 40%,
    #000000 40%,
    #000000 60%,
    #FFD400 60%,
    #FFD400 100%
  );
}
#a11y-ruler[hidden]{ display:none !important; }
 
/* =========================================================
  MediaWiki: extra HIGH CONTRAST coverage (Timeless + Vector)
  Add at END of Gadget CSS so it wins.
  ========================================================= */
 
/* TOC */
body.a11y-contrast #toc,
body.a11y-contrast .toc,
body.a11y-contrast #toc * ,
body.a11y-contrast .toc *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}
 
/* Category links area */
body.a11y-contrast .mw-normal-catlinks,
body.a11y-contrast .mw-normal-catlinks *,
body.a11y-contrast .catlinks,
body.a11y-contrast .catlinks *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}
 
/* Wikitables */
body.a11y-contrast table,
body.a11y-contrast table *,
body.a11y-contrast .wikitable,
body.a11y-contrast .wikitable *,
body.a11y-contrast .mw-datatable,
body.a11y-contrast .mw-datatable *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}
body.a11y-contrast .wikitable th,
body.a11y-contrast table th{
  background: #000 !important;
  color: #FFD400 !important;
}
 
/* Figures/captions */
body.a11y-contrast figure,
body.a11y-contrast figure *,
body.a11y-contrast .mw-halign-center,
body.a11y-contrast .mw-halign-centre,
body.a11y-contrast .mw-halign-center *,
body.a11y-contrast .mw-halign-centre *{
  background: #000 !important;
  color: #FFD400 !important;
}
 
/* Thumb frames / image captions */
body.a11y-contrast .thumb,
body.a11y-contrast .thumb *,
body.a11y-contrast .thumbinner,
body.a11y-contrast .thumbinner *,
body.a11y-contrast .thumbcaption,
body.a11y-contrast .thumbcaption *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}
 
/* Code-like blocks */
body.a11y-contrast pre,
body.a11y-contrast pre *,
body.a11y-contrast code,
body.a11y-contrast code *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}
 
/* Safety: ensure visited links don’t revert */
body.a11y-contrast a:visited,
body.a11y-contrast .mw-parser-output a:visited{
   color: #FFD400 !important;
}
}


/* =========================================================
/* =========================================================
   Timeless: core containers
   HIGH CONTRAST: Footer (Vector + Timeless)
   ========================================================= */
   ========================================================= */
body.a11y-contrast.skin-timeless #mw-header-container,
body.a11y-contrast #mw-footer,
body.a11y-contrast.skin-timeless #mw-content-container,
body.a11y-contrast #mw-footer-container{
body.a11y-contrast.skin-timeless #mw-wrapper,
  background: #000 !important;
body.a11y-contrast.skin-timeless #mw-content,
  color: #FFD400 !important;
body.a11y-contrast.skin-timeless .mw-body,
  background-image: none !important;
body.a11y-contrast.skin-timeless .mw-parser-output{
  border-top: 10px solid #FFD400 !important;
   background:#000!important;
}
   background-image:none!important;
body.a11y-contrast #footer-list,
   color:#FFD400!important;
body.a11y-contrast #footer-list *,
body.a11y-contrast #footer-icons,
body.a11y-contrast #footer-icons *{
  background: #000 !important;
  color: #FFD400 !important;
}
body.a11y-contrast #mw-footer a,
body.a11y-contrast #mw-footer a:visited{
  color: #FFD400 !important;
  text-decoration-color: #FFD400 !important;
}
body.a11y-contrast #mw-footer .mw-portlet,
body.a11y-contrast #mw-footer .mw-portlet-body{
   background: #000 !important;
   color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}
body.a11y-contrast #mw-footer hr{
   border-color: #FFD400 !important;
}
}


/* mw-content border */
/* =========================================================
body.a11y-contrast #mw-content{
  Underline links: ensure TOC wins
   border-color:#FFD400!important;
  ========================================================= */
body.a11y-underline-links #toc a,
body.a11y-underline-links .toc a{
  border-bottom-color: var(--a11y-link-underline) !important;
}
body.a11y-underline-links.a11y-contrast #toc a,
body.a11y-underline-links.a11y-contrast .toc a{
   border-bottom-color: #36C !important;
}
}


/* =========================================================
/* =========================================================
   Timeless: search input
   HIGH CONTRAST: Header + search + user tools
   ========================================================= */
   ========================================================= */
/* Base header + content containers */
body.a11y-contrast #mw-header-container,
body.a11y-contrast #mw-content-container{
  background: #000 !important;
  background-image: none !important;
}
/* Timeless header containers */
body.a11y-contrast #mw-header,
body.a11y-contrast #mw-header-container .ts-inner,
body.a11y-contrast #mw-header-container .mw-body,
body.a11y-contrast #mw-header-container .mw-portlet,
body.a11y-contrast #mw-header-container .mw-portlet-body{
  background: #000 !important;
  color: #FFD400 !important;
  background-image: none !important;
  border-color: #FFD400 !important;
}
/* Title */
body.a11y-contrast.skin-timeless #p-logo-text #p-banner,
body.a11y-contrast.skin-timeless #p-banner.mw-wiki-title,
body.a11y-contrast.skin-timeless #p-logo-text .mw-wiki-title{
  color: #FFD400 !important;
}
/* Strapline */
body.a11y-contrast #bhc-strapline,
body.a11y-contrast .bhc-strapline{
  color: #FFD400 !important;
}
/* Search box wrappers */
body.a11y-contrast #p-search,
body.a11y-contrast #simpleSearch{
  background: #000 !important;
  color: #FFD400 !important;
}
/* Search input (generic) */
body.a11y-contrast #searchInput,
body.a11y-contrast #p-search #searchInput,
body.a11y-contrast #p-search input[type="search"],
body.a11y-contrast #simpleSearch input[type="search"]{
  background: #000 !important;
  color: #FFD400 !important;
  caret-color: #FFD400 !important;
  border: 2px solid #FFD400 !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #FFD400 !important; /* Safari/WebKit */
}
body.a11y-contrast #searchInput::placeholder,
body.a11y-contrast #simpleSearch input[type="search"]::placeholder{
  color: rgba(255,212,0,0.75) !important;
}
/* Timeless-specific: beat background:#fff !important */
body.a11y-contrast.skin-timeless #p-search input[type="search"],
body.a11y-contrast.skin-timeless #p-search input[type="search"],
body.a11y-contrast.skin-timeless #p-search #searchInput{
body.a11y-contrast.skin-timeless #p-search #searchInput{
   background:#000!important;
   background: #000 !important;
   color:#FFD400!important;
   color: #FFD400 !important;
   caret-color:#FFD400!important;
   caret-color: #FFD400 !important;
   border:2px solid #FFD400!important;
   border: 2px solid #FFD400 !important;
   -webkit-text-fill-color:#FFD400!important;
   -webkit-text-fill-color: #FFD400 !important;
}
 
/* Search submit button */
body.a11y-contrast input#mw-searchButton,
body.a11y-contrast input#searchButton,
body.a11y-contrast #mw-searchButton{
  background-color: #000 !important;
  border: 2px solid rgba(255,212,0,.85) !important;
  filter: none !important;
}
 
/* Suggestions dropdown */
body.a11y-contrast .suggestions,
body.a11y-contrast .suggestions-results,
body.a11y-contrast .suggestions-special,
body.a11y-contrast .suggestions a,
body.a11y-contrast .suggestions-result,
body.a11y-contrast .mw-searchSuggest,
body.a11y-contrast .mw-searchSuggest *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255,212,0,.85) !important;
}
body.a11y-contrast .suggestions a:visited{
  color: #FFD400 !important;
}
body.a11y-contrast .suggestions-result-current,
body.a11y-contrast .suggestions a:hover{
  background: #111 !important;
}
 
/* Vector search tabs area */
body.a11y-contrast #mw-search-profile-tabs,
body.a11y-contrast #mw-search-profile-tabs *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255,212,0,.85) !important;
}
}


/* =========================================================
/* =========================================================
   Timeless: personal tools
   HIGH CONTRAST: Personal tools (reduce border clutter)
   ========================================================= */
   ========================================================= */
/* Force yellow text to beat Timeless dark text */
body.a11y-contrast.skin-timeless #personal,
body.a11y-contrast.skin-timeless #personal,
body.a11y-contrast.skin-timeless #personal *{
body.a11y-contrast.skin-timeless #personal a,
   background:#000!important;
body.a11y-contrast.skin-timeless #personal h2,
   color:#FFD400!important;
body.a11y-contrast.skin-timeless #personal h3,
body.a11y-contrast.skin-timeless #personal .mw-portlet,
body.a11y-contrast.skin-timeless #personal .mw-portlet *,
body.a11y-contrast.skin-timeless .mw-portlet-body,
body.a11y-contrast.skin-timeless .mw-portlet-body *{
  color: #FFD400 !important;
}
 
/* Force black background to beat Timeless white dropdown */
body.a11y-contrast.skin-timeless #personal .dropdown,
body.a11y-contrast.skin-timeless #personal .mw-portlet-body,
body.a11y-contrast.skin-timeless #personal-inner,
body.a11y-contrast.skin-timeless #personal-inner *{
  background: #000 !important;
  background-image: none !important;
}
 
/* Keep ONE border only (container), remove nested borders */
body.a11y-contrast #personal .dropdown,
body.a11y-contrast #personal-inner.dropdown,
body.a11y-contrast #personal .mw-portlet-body{
   background: #000 !important;
   color: #FFD400 !important;
  border: 2px solid rgba(255,212,0,.85) !important;
}
body.a11y-contrast #personal .mw-portlet-body *,
body.a11y-contrast #personal-inner.dropdown *{
  background: transparent !important;
  color: #FFD400 !important;
  border: 0 !important;
  outline-color: #FFD400 !important;
}
/* Leave links to global link rules */
body.a11y-contrast #personal a,
body.a11y-contrast #personal a:visited{
  background: transparent !important;
  border-color: transparent !important;
}
}


/* =========================================================
/* =========================================================
   Sidebar chunk ≥1340px
   HIGH CONTRAST: Timeless containers that fight back
   ========================================================= */
   ========================================================= */
@media screen and (min-width:1340px){
 
/* Timeless forces grey content container */
body.a11y-contrast.skin-timeless #mw-content-container{
  background: #000 !important;
  background-image: none !important;
}
 
/* Timeless header container sometimes white at breakpoints */
body.a11y-contrast.skin-timeless #mw-header-container{
  background: #000 !important;
  background-image: none !important;
}
 
/* Timeless related-navigation sidebar chunk at ≥1340px */
@media screen and (min-width: 1340px){
   body.a11y-contrast.skin-timeless
   body.a11y-contrast.skin-timeless
   #mw-related-navigation .sidebar-chunk{
   #mw-related-navigation .sidebar-chunk{
     background:#000!important;
     background: #000 !important;
     border-color:rgba(255,212,0,.85)!important;
    background-image: none !important;
     box-shadow:none!important;
     border-color: rgba(255,212,0,.85) !important;
     box-shadow: none !important;
   }
   }
}
/* mw-content border colour in high-contrast mode */
body.a11y-contrast #mw-content{
  border-color: #FFD400 !important;
}
}


/* =========================================================
/* =========================================================
   Edit textarea
   EDIT MODE: textarea and editOptions
   ========================================================= */
   ========================================================= */
/* Edit textarea */
body.a11y-contrast #wpTextbox1,
body.a11y-contrast #wpTextbox1,
body.a11y-contrast textarea.mw-editfont-monospace{
body.a11y-contrast textarea.mw-editfont-monospace{
   background:#000!important;
   background: #000 !important;
   color:#FFD400!important;
   color: #FFD400 !important;
   caret-color:#FFD400!important;
   caret-color: #FFD400 !important;
   border:2px solid #FFD400!important;
   border: 2px solid #FFD400 !important;
   -webkit-text-fill-color:#FFD400!important;
  box-shadow: none !important;
   -webkit-text-fill-color: #FFD400 !important;
}
body.a11y-contrast #wpTextbox1::placeholder{
  color: rgba(255,212,0,0.75) !important;
}
}


/* =========================================================
/* editOptions bar */
  EditOptions bar
body.a11y-contrast .editOptions,
  ========================================================= */
body.a11y-contrast .editOptions *{
body.a11y-contrast .editOptions{
   background: #000 !important;
   background:#000!important;
   color: #FFD400 !important;
   color:#FFD400!important;
   border-color: rgba(255,212,0,.85) !important;
   border-color:rgba(255,212,0,.85)!important;
  box-shadow: none !important;
}
 
/* Don’t override links here — let your global contrast link styling apply */
body.a11y-contrast .editOptions a,
body.a11y-contrast .editOptions a:visited{
  background: transparent !important;
  border-color: transparent !important;
}
}
/* Buttons + inputs inside editOptions */
body.a11y-contrast .editOptions button,
body.a11y-contrast .editOptions button,
body.a11y-contrast .editOptions input,
body.a11y-contrast .editOptions input,
body.a11y-contrast .editOptions select{
body.a11y-contrast .editOptions select,
   background:#000!important;
body.a11y-contrast .editOptions textarea,
   color:#FFD400!important;
body.a11y-contrast .editOptions .mw-ui-button,
   border:2px solid rgba(255,212,0,.85)!important;
body.a11y-contrast .editOptions .oo-ui-buttonElement-button{
   background: #000 !important;
   color: #FFD400 !important;
   border: 2px solid rgba(255,212,0,.85) !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #FFD400 !important;
}
}


/* =========================================================
/* Focus visibility */
  WikiEditor — SAFE styling (no icon breakage)
body.a11y-contrast .editOptions button:focus-visible,
  ========================================================= */
body.a11y-contrast .editOptions input:focus-visible,
body.a11y-contrast .wikiEditor-ui,
body.a11y-contrast .editOptions select:focus-visible,
body.a11y-contrast .wikiEditor-ui-toolbar,
body.a11y-contrast .editOptions .mw-ui-button:focus-visible,
body.a11y-contrast .wikiEditor-ui-toolbar .group,
body.a11y-contrast .editOptions .oo-ui-buttonElement-button:focus-visible{
body.a11y-contrast .wikiEditor-ui-toolbar .section{
   outline: 3px solid #FFD400 !important;
  background-color:#000!important;
  outline-offset: 2px !important;
  color:#FFD400!important;
  border-color:rgba(255,212,0,.85)!important;
}
 
/* DO NOT touch background-image on icons */
body.a11y-contrast .wikiEditor-ui .oo-ui-iconElement-icon{
   background-color:transparent!important;
}
}


/* =========================================================
/* =========================================================
   Codex (CDX) messages
   EDIT MODE: Codex (CDX) message banners (e.g. interface warning)
   ========================================================= */
   ========================================================= */
body.a11y-contrast .cdx-message,
body.a11y-contrast .cdx-message,
body.a11y-contrast .cdx-message--block,
body.a11y-contrast .cdx-message--block,
body.a11y-contrast .cdx-message--error{
body.a11y-contrast .cdx-message--error{
   background:#000!important;
   background: #000 !important;
   color:#FFD400!important;
   color: #FFD400 !important;
   border:2px solid rgba(255,212,0,.85)!important;
   border: 2px solid rgba(255,212,0,.85) !important;
  box-shadow: none !important;
}
}
/* Inner content */
body.a11y-contrast .cdx-message__content,
body.a11y-contrast .cdx-message__content,
body.a11y-contrast .cdx-message__content *{
body.a11y-contrast .cdx-message__content *{
   background:transparent!important;
   background: transparent !important;
   color:#FFD400!important;
   color: #FFD400 !important;
}
}
/* Icon */
body.a11y-contrast .cdx-message__icon,
body.a11y-contrast .cdx-message__icon,
body.a11y-contrast .cdx-message__icon *{
body.a11y-contrast .cdx-message__icon *{
   fill:#FFD400!important;
  color: #FFD400 !important;
   fill: #FFD400 !important;
}
/* Emphasis */
body.a11y-contrast .cdx-message strong{
  color: #FFD400 !important;
}
}


/* =========================================================
/* =========================================================
   EMERGENCY: ensure accessibility toggle always visible
   EMERGENCY: ensure the accessibility toggle is visible
   KEEP AT VERY END
   (keep at VERY END)
   ========================================================= */
   ========================================================= */
#a11y-toggle.a11y-toggle{
#a11y-toggle.a11y-toggle{
   position:fixed!important;
   position: fixed !important;
   right:16px!important;
   right: 16px !important;
   bottom:16px!important;
   bottom: 16px !important;
   display:inline-flex!important;
 
   visibility:visible!important;
   display: inline-flex !important;
   opacity:1!important;
   visibility: visible !important;
   z-index:2147483647!important;
   opacity: 1 !important;
   pointer-events:auto!important;
 
   transform:none!important;
   z-index: 2147483647 !important;
   pointer-events: auto !important;
 
   transform: none !important;
}
}
#a11y-toggle.a11y-toggle svg{
#a11y-toggle.a11y-toggle svg{
   display:block!important;
   display: block !important;
   visibility:visible!important;
   visibility: visible !important;
   opacity:1!important;
   opacity: 1 !important;
}
}

Revision as of 19:47, 27 January 2026

/*
⚠️ Do not reorder rules below this line — contrast overrides depend on cascade order.
*/

/* =========================================================
   BHC Accessibility Gadget – MediaWiki / Timeless
   ========================================================= */

/* ---------------------------------------------------------
   Variables
   --------------------------------------------------------- */
:root{
  --a11y-bg: #111827;
  --a11y-border: #374151;
  --a11y-fg: #ffffff;
  --a11y-focus: #FFBF47;
  --a11y-link-underline: #36C; /* MediaWiki link blue */
  --a11y-menu-width: 340px;
}

/* Timeless: stop skin CSS shrinking the accessibility icon */
body.skin-timeless .a11y-toggle{
  font-size: 16px !important;
  line-height: 1 !important;
}
body.skin-timeless .a11y-toggle svg{
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: none !important;
  max-height: none !important;

  /* If the glyph still looks small, keep this: */
  transform: scale(1.15) !important;
  transform-origin: 50% 50% !important;
}
/* Make sure fill isn’t being altered by skin rules */
body.skin-timeless .a11y-toggle svg path{
  fill: currentColor !important;
}

/* ---------------------------------------------------------
   Skip links (appear when focused)
   --------------------------------------------------------- */
.skip-link{
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 11000;

  padding: 10px 14px;
  border-radius: 8px;

  background: #111827;
  color: #fff;
  text-decoration: none;

  transform: translateY(-150%);
  transition: transform 0.15s ease;
  border: 2px solid var(--a11y-focus);
}
.skip-link:focus,
.skip-link:focus-visible{
  transform: translateY(0);
  outline: none;
}
body.a11y-contrast .skip-link{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: #FFD400 !important;
}

/* ---------------------------------------------------------
   Floating accessibility toggle
   --------------------------------------------------------- */
.a11y-toggle{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10001;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: #005FCC;
  border: 2px solid #ffffff;
  color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  cursor: pointer;
}
.a11y-toggle:hover{ background:#0047A6; }
.a11y-toggle:focus-visible{
  outline: 3px solid var(--a11y-focus);
  outline-offset: 3px;
}
.a11y-toggle svg{
  width: 44px;
  height: 44px;
  fill: currentColor;
}

/* ---------------------------------------------------------
   Panel
   --------------------------------------------------------- */
.a11y-panel{
  position: fixed;
  right: 14px;
  bottom: 76px;
  z-index: 10000;

  width: var(--a11y-menu-width);
  max-width: calc(100vw - 28px);

  background: var(--a11y-bg);
  border: 1px solid var(--a11y-border);
  color: var(--a11y-fg);
  border-radius: 16px;
  padding: 12px;

  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}
.a11y-panel[hidden]{ display:none !important; }

/* Header */
.a11y-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.a11y-head h2{
  font-size: 16px;
  margin: 0;
}
.a11y-help{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-weight: 900;
  text-decoration: none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.a11y-help:focus-visible{
  outline: 3px solid var(--a11y-focus);
  outline-offset: 2px;
}

/* Buttons */
.a11y-row{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.a11y-btn{
  border: 1px solid #D1D5DB;
  background:#fff;
  color:#111827;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.a11y-btn[aria-pressed="true"]{
  background:#111827;
  color:#fff;
}
.a11y-btn:focus-visible{
  outline: 3px solid var(--a11y-focus);
  outline-offset: 2px;
}

.a11y-hint{
  font-size: 13px;
  color: var(--a11y-fg);
  line-height: 1.4;
}

/* Screen reader only */
.a11y-sr{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

/* =========================================================
   Feature classes
   ========================================================= */

/* ------------------------------
   High contrast (black/yellow/blue)
   ------------------------------ */
body.a11y-contrast{
  background:#000 !important;
  color:#FFD400 !important;

  --a11y-bg: #000;
  --a11y-border: rgba(255,212,0,.7);
  --a11y-fg: #FFD400;
  --a11y-focus: #FFD400;
  --a11y-link-underline: #36C;
}

body.a11y-contrast a,
body.a11y-contrast a:visited{
  color:#FFD400 !important;
}

/* Headings */
body.a11y-contrast h1,
body.a11y-contrast h2,
body.a11y-contrast h3,
body.a11y-contrast h4,
body.a11y-contrast h5,
body.a11y-contrast h6{
  color:#FFD400 !important;
  border-color:#FFD400 !important;
}

/* Main containers (Timeless needs explicit coverage) */
body.a11y-contrast #mw-wrapper,
body.a11y-contrast #mw-content-container,
body.a11y-contrast #mw-content,
body.a11y-contrast .mw-body,
body.a11y-contrast .mw-parser-output{
  background:#000 !important;
  color:#FFD400 !important;
}

/* Sidebars / tools */
body.a11y-contrast #site-navigation,
body.a11y-contrast #site-tools,
body.a11y-contrast #page-tools,
body.a11y-contrast .mw-portlet,
body.a11y-contrast .mw-portlet-body{
  background:#000 !important;
  color:#FFD400 !important;
  border-color: rgba(255,212,0,.7) !important;
}

/* FIX: ensure descendants don’t stay black on black */
body.a11y-contrast .mw-portlet-body *{
  color:#FFD400 !important;
}

/* Ensure links inside toolboxes */
body.a11y-contrast #site-navigation a,
body.a11y-contrast #site-tools a,
body.a11y-contrast #page-tools a{
  color:#FFD400 !important;
}

/* A11y UI in contrast */
body.a11y-contrast .a11y-panel,
body.a11y-contrast .a11y-toggle{
  background:#000 !important;
}
body.a11y-contrast .a11y-btn{
  background:#000 !important;
  color:#FFD400 !important;
  border:2px solid rgba(255,212,0,.85) !important;
}

/* FIX: “?” help button in contrast */
body.a11y-contrast .a11y-help{
  background:#000 !important;
  color:#FFD400 !important;
  border:2px solid rgba(255,212,0,.85) !important;
}

/* ------------------------------
   Underline links
   ------------------------------ */
body.a11y-underline-links a{
  text-decoration: none !important;
  border-bottom: 2px solid var(--a11y-link-underline);
  padding-bottom: 0.05em;
}
body.a11y-underline-links.a11y-contrast a{
  border-bottom-color: #36C !important;
}

/* ------------------------------
   Text spacing
   ------------------------------ */
body.a11y-spacing-plus{
  line-height: 1.8 !important;
  letter-spacing: 0.06em !important;
  word-spacing: 0.16em !important;
}
body.a11y-spacing-minus{
  line-height: 1.45 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.02em !important;
}

/* ------------------------------
   Large cursors (wiki-hosted)
   ------------------------------ */
body.a11y-cursor-white,
body.a11y-cursor-white *{
  cursor: url("/index.php/Special:FilePath/large-arrow-white-64.png") 8 8, auto !important;
}
body.a11y-cursor-yellow,
body.a11y-cursor-yellow *{
  cursor: url("/index.php/Special:FilePath/large-arrow-yellow-64.png") 8 8, auto !important;
}

/* ------------------------------
   Reading ruler
   ------------------------------ */
#a11y-ruler{
  position: fixed;
  left: 0;
  top: 0;
  height: 22px;
  width: 100vw;
  z-index: 9999;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    #FFD400 0%,
    #FFD400 40%,
    #000000 40%,
    #000000 60%,
    #FFD400 60%,
    #FFD400 100%
  );
}
#a11y-ruler[hidden]{ display:none !important; }

/* =========================================================
   MediaWiki: extra HIGH CONTRAST coverage (Timeless + Vector)
   Add at END of Gadget CSS so it wins.
   ========================================================= */

/* TOC */
body.a11y-contrast #toc,
body.a11y-contrast .toc,
body.a11y-contrast #toc * ,
body.a11y-contrast .toc *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}

/* Category links area */
body.a11y-contrast .mw-normal-catlinks,
body.a11y-contrast .mw-normal-catlinks *,
body.a11y-contrast .catlinks,
body.a11y-contrast .catlinks *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}

/* Wikitables */
body.a11y-contrast table,
body.a11y-contrast table *,
body.a11y-contrast .wikitable,
body.a11y-contrast .wikitable *,
body.a11y-contrast .mw-datatable,
body.a11y-contrast .mw-datatable *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}
body.a11y-contrast .wikitable th,
body.a11y-contrast table th{
  background: #000 !important;
  color: #FFD400 !important;
}

/* Figures/captions */
body.a11y-contrast figure,
body.a11y-contrast figure *,
body.a11y-contrast .mw-halign-center,
body.a11y-contrast .mw-halign-centre,
body.a11y-contrast .mw-halign-center *,
body.a11y-contrast .mw-halign-centre *{
  background: #000 !important;
  color: #FFD400 !important;
}

/* Thumb frames / image captions */
body.a11y-contrast .thumb,
body.a11y-contrast .thumb *,
body.a11y-contrast .thumbinner,
body.a11y-contrast .thumbinner *,
body.a11y-contrast .thumbcaption,
body.a11y-contrast .thumbcaption *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}

/* Code-like blocks */
body.a11y-contrast pre,
body.a11y-contrast pre *,
body.a11y-contrast code,
body.a11y-contrast code *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}

/* Safety: ensure visited links don’t revert */
body.a11y-contrast a:visited,
body.a11y-contrast .mw-parser-output a:visited{
  color: #FFD400 !important;
}

/* =========================================================
   HIGH CONTRAST: Footer (Vector + Timeless)
   ========================================================= */
body.a11y-contrast #mw-footer,
body.a11y-contrast #mw-footer-container{
  background: #000 !important;
  color: #FFD400 !important;
  background-image: none !important;
  border-top: 10px solid #FFD400 !important;
}
body.a11y-contrast #footer-list,
body.a11y-contrast #footer-list *,
body.a11y-contrast #footer-icons,
body.a11y-contrast #footer-icons *{
  background: #000 !important;
  color: #FFD400 !important;
}
body.a11y-contrast #mw-footer a,
body.a11y-contrast #mw-footer a:visited{
  color: #FFD400 !important;
  text-decoration-color: #FFD400 !important;
}
body.a11y-contrast #mw-footer .mw-portlet,
body.a11y-contrast #mw-footer .mw-portlet-body{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255, 212, 0, 0.75) !important;
}
body.a11y-contrast #mw-footer hr{
  border-color: #FFD400 !important;
}

/* =========================================================
   Underline links: ensure TOC wins
   ========================================================= */
body.a11y-underline-links #toc a,
body.a11y-underline-links .toc a{
  border-bottom-color: var(--a11y-link-underline) !important;
}
body.a11y-underline-links.a11y-contrast #toc a,
body.a11y-underline-links.a11y-contrast .toc a{
  border-bottom-color: #36C !important;
}

/* =========================================================
   HIGH CONTRAST: Header + search + user tools
   ========================================================= */

/* Base header + content containers */
body.a11y-contrast #mw-header-container,
body.a11y-contrast #mw-content-container{
  background: #000 !important;
  background-image: none !important;
}

/* Timeless header containers */
body.a11y-contrast #mw-header,
body.a11y-contrast #mw-header-container .ts-inner,
body.a11y-contrast #mw-header-container .mw-body,
body.a11y-contrast #mw-header-container .mw-portlet,
body.a11y-contrast #mw-header-container .mw-portlet-body{
  background: #000 !important;
  color: #FFD400 !important;
  background-image: none !important;
  border-color: #FFD400 !important;
}

/* Title */
body.a11y-contrast.skin-timeless #p-logo-text #p-banner,
body.a11y-contrast.skin-timeless #p-banner.mw-wiki-title,
body.a11y-contrast.skin-timeless #p-logo-text .mw-wiki-title{
  color: #FFD400 !important;
}

/* Strapline */
body.a11y-contrast #bhc-strapline,
body.a11y-contrast .bhc-strapline{
  color: #FFD400 !important;
}

/* Search box wrappers */
body.a11y-contrast #p-search,
body.a11y-contrast #simpleSearch{
  background: #000 !important;
  color: #FFD400 !important;
}

/* Search input (generic) */
body.a11y-contrast #searchInput,
body.a11y-contrast #p-search #searchInput,
body.a11y-contrast #p-search input[type="search"],
body.a11y-contrast #simpleSearch input[type="search"]{
  background: #000 !important;
  color: #FFD400 !important;
  caret-color: #FFD400 !important;
  border: 2px solid #FFD400 !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #FFD400 !important; /* Safari/WebKit */
}
body.a11y-contrast #searchInput::placeholder,
body.a11y-contrast #simpleSearch input[type="search"]::placeholder{
  color: rgba(255,212,0,0.75) !important;
}

/* Timeless-specific: beat background:#fff !important */
body.a11y-contrast.skin-timeless #p-search input[type="search"],
body.a11y-contrast.skin-timeless #p-search #searchInput{
  background: #000 !important;
  color: #FFD400 !important;
  caret-color: #FFD400 !important;
  border: 2px solid #FFD400 !important;
  -webkit-text-fill-color: #FFD400 !important;
}

/* Search submit button */
body.a11y-contrast input#mw-searchButton,
body.a11y-contrast input#searchButton,
body.a11y-contrast #mw-searchButton{
  background-color: #000 !important;
  border: 2px solid rgba(255,212,0,.85) !important;
  filter: none !important;
}

/* Suggestions dropdown */
body.a11y-contrast .suggestions,
body.a11y-contrast .suggestions-results,
body.a11y-contrast .suggestions-special,
body.a11y-contrast .suggestions a,
body.a11y-contrast .suggestions-result,
body.a11y-contrast .mw-searchSuggest,
body.a11y-contrast .mw-searchSuggest *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255,212,0,.85) !important;
}
body.a11y-contrast .suggestions a:visited{
  color: #FFD400 !important;
}
body.a11y-contrast .suggestions-result-current,
body.a11y-contrast .suggestions a:hover{
  background: #111 !important;
}

/* Vector search tabs area */
body.a11y-contrast #mw-search-profile-tabs,
body.a11y-contrast #mw-search-profile-tabs *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255,212,0,.85) !important;
}

/* =========================================================
   HIGH CONTRAST: Personal tools (reduce border clutter)
   ========================================================= */

/* Force yellow text to beat Timeless dark text */
body.a11y-contrast.skin-timeless #personal,
body.a11y-contrast.skin-timeless #personal a,
body.a11y-contrast.skin-timeless #personal h2,
body.a11y-contrast.skin-timeless #personal h3,
body.a11y-contrast.skin-timeless #personal .mw-portlet,
body.a11y-contrast.skin-timeless #personal .mw-portlet *,
body.a11y-contrast.skin-timeless .mw-portlet-body,
body.a11y-contrast.skin-timeless .mw-portlet-body *{
  color: #FFD400 !important;
}

/* Force black background to beat Timeless white dropdown */
body.a11y-contrast.skin-timeless #personal .dropdown,
body.a11y-contrast.skin-timeless #personal .mw-portlet-body,
body.a11y-contrast.skin-timeless #personal-inner,
body.a11y-contrast.skin-timeless #personal-inner *{
  background: #000 !important;
  background-image: none !important;
}

/* Keep ONE border only (container), remove nested borders */
body.a11y-contrast #personal .dropdown,
body.a11y-contrast #personal-inner.dropdown,
body.a11y-contrast #personal .mw-portlet-body{
  background: #000 !important;
  color: #FFD400 !important;
  border: 2px solid rgba(255,212,0,.85) !important;
}
body.a11y-contrast #personal .mw-portlet-body *,
body.a11y-contrast #personal-inner.dropdown *{
  background: transparent !important;
  color: #FFD400 !important;
  border: 0 !important;
  outline-color: #FFD400 !important;
}
/* Leave links to global link rules */
body.a11y-contrast #personal a,
body.a11y-contrast #personal a:visited{
  background: transparent !important;
  border-color: transparent !important;
}

/* =========================================================
   HIGH CONTRAST: Timeless containers that fight back
   ========================================================= */

/* Timeless forces grey content container */
body.a11y-contrast.skin-timeless #mw-content-container{
  background: #000 !important;
  background-image: none !important;
}

/* Timeless header container sometimes white at breakpoints */
body.a11y-contrast.skin-timeless #mw-header-container{
  background: #000 !important;
  background-image: none !important;
}

/* Timeless related-navigation sidebar chunk at ≥1340px */
@media screen and (min-width: 1340px){
  body.a11y-contrast.skin-timeless
  #mw-related-navigation .sidebar-chunk{
    background: #000 !important;
    background-image: none !important;
    border-color: rgba(255,212,0,.85) !important;
    box-shadow: none !important;
  }
}

/* mw-content border colour in high-contrast mode */
body.a11y-contrast #mw-content{
  border-color: #FFD400 !important;
}

/* =========================================================
   EDIT MODE: textarea and editOptions
   ========================================================= */

/* Edit textarea */
body.a11y-contrast #wpTextbox1,
body.a11y-contrast textarea.mw-editfont-monospace{
  background: #000 !important;
  color: #FFD400 !important;
  caret-color: #FFD400 !important;
  border: 2px solid #FFD400 !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #FFD400 !important;
}
body.a11y-contrast #wpTextbox1::placeholder{
  color: rgba(255,212,0,0.75) !important;
}

/* editOptions bar */
body.a11y-contrast .editOptions,
body.a11y-contrast .editOptions *{
  background: #000 !important;
  color: #FFD400 !important;
  border-color: rgba(255,212,0,.85) !important;
  box-shadow: none !important;
}

/* Don’t override links here — let your global contrast link styling apply */
body.a11y-contrast .editOptions a,
body.a11y-contrast .editOptions a:visited{
  background: transparent !important;
  border-color: transparent !important;
}

/* Buttons + inputs inside editOptions */
body.a11y-contrast .editOptions button,
body.a11y-contrast .editOptions input,
body.a11y-contrast .editOptions select,
body.a11y-contrast .editOptions textarea,
body.a11y-contrast .editOptions .mw-ui-button,
body.a11y-contrast .editOptions .oo-ui-buttonElement-button{
  background: #000 !important;
  color: #FFD400 !important;
  border: 2px solid rgba(255,212,0,.85) !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #FFD400 !important;
}

/* Focus visibility */
body.a11y-contrast .editOptions button:focus-visible,
body.a11y-contrast .editOptions input:focus-visible,
body.a11y-contrast .editOptions select:focus-visible,
body.a11y-contrast .editOptions .mw-ui-button:focus-visible,
body.a11y-contrast .editOptions .oo-ui-buttonElement-button:focus-visible{
  outline: 3px solid #FFD400 !important;
  outline-offset: 2px !important;
}

/* =========================================================
   EDIT MODE: Codex (CDX) message banners (e.g. interface warning)
   ========================================================= */
body.a11y-contrast .cdx-message,
body.a11y-contrast .cdx-message--block,
body.a11y-contrast .cdx-message--error{
  background: #000 !important;
  color: #FFD400 !important;
  border: 2px solid rgba(255,212,0,.85) !important;
  box-shadow: none !important;
}
/* Inner content */
body.a11y-contrast .cdx-message__content,
body.a11y-contrast .cdx-message__content *{
  background: transparent !important;
  color: #FFD400 !important;
}
/* Icon */
body.a11y-contrast .cdx-message__icon,
body.a11y-contrast .cdx-message__icon *{
  color: #FFD400 !important;
  fill: #FFD400 !important;
}
/* Emphasis */
body.a11y-contrast .cdx-message strong{
  color: #FFD400 !important;
}

/* =========================================================
   EMERGENCY: ensure the accessibility toggle is visible
   (keep at VERY END)
   ========================================================= */
#a11y-toggle.a11y-toggle{
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;

  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;

  z-index: 2147483647 !important;
  pointer-events: auto !important;

  transform: none !important;
}
#a11y-toggle.a11y-toggle svg{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}