/* Black-and-white dropdowns (Nov 17 2026): tool list, example list, every filter.
   Closed control + open list = black background, white text. Hover / selected = neutral gray.
   No blue, green, teal or lime anywhere in a dropdown or its focus ring. */
:root{color-scheme:dark;--bw-bg:#000;--bw-fg:#fff;--bw-line:#6b6b6b;--bw-hover:#555;--bw-sel:#363636}
select,select.big,#secMenu,#exMenu,.example-menu-controls select,.exmenu select,.tabpick select,.pick select,.matchrow select,.topicpick select,.meta select,.pr-tools select,.fp-ex select,.stview select,.stmini select,select.pr-in,#termsTopic{
  color-scheme:dark;background-color:#000!important;color:#fff!important;-webkit-text-fill-color:#fff}
select:not(.cat-sel.dm):not(.cat-sel.dl),.example-menu-controls select{border-color:var(--bw-line)!important}
select.none,.fp .pick select.none{background-color:#000!important;color:#fff!important;border:2px solid #9a9a9a!important;animation:none!important}
select option,select optgroup{
  background-color:#000!important;color:#fff!important}
select optgroup,.exmenu select optgroup,.tabpick select optgroup,.pick select optgroup{color:#d4d4d4!important;font-weight:800;font-style:normal}
/* selected row stays gray (not blue) even in the classic native list */
select option:checked,select option:hover,select option:focus{background:linear-gradient(var(--bw-sel),var(--bw-sel))!important;background-color:var(--bw-sel)!important;color:#fff!important;-webkit-text-fill-color:#fff}
/* gray / white focus ring, never colored */
select:focus,select:focus-visible,.example-menu-controls input:focus-visible,.example-menu-controls select:focus-visible,.example-menu-controls button:focus-visible,#siteSearch:focus,#siteSearch:focus-visible{outline:2px solid #fff!important;outline-offset:2px;box-shadow:none!important;border-color:#fff!important}
select::selection,option::selection{background:#555;color:#fff}
/* modern Chrome: fully styleable open list, so hover is gray instead of the system blue */
@supports (appearance:base-select){
  select:not([multiple]):not([size]){appearance:base-select}
  select:not([multiple]):not([size])::picker(select){appearance:base-select;background:#000;color:#fff;border:2px solid var(--bw-line);border-radius:10px;padding:4px;box-shadow:0 8px 24px rgba(0,0,0,.7);max-height:min(60vh,420px);color-scheme:dark}
  select:not([multiple]):not([size])::picker-icon{color:#fff}
  select:not([multiple]):not([size]) option{display:flex;align-items:center;padding:8px 10px;border-radius:6px;background:#000!important;color:#fff!important;cursor:pointer}
  select:not([multiple]):not([size]) option::checkmark{display:none}
  select:not([multiple]):not([size]) option:hover,select:not([multiple]):not([size]) option:focus,select:not([multiple]):not([size]) option:focus-visible,select:not([multiple]):not([size]) option:active{background:var(--bw-hover)!important;color:#fff!important;outline:none}
  select:not([multiple]):not([size]) option:checked{background:var(--bw-sel)!important;color:#fff!important}
  select:not([multiple]):not([size]) option:checked:hover{background:var(--bw-hover)!important}
  select:not([multiple]):not([size]) optgroup{background:#000!important;color:#d4d4d4!important;padding:6px 10px 2px}
  select:not([multiple]):not([size]) optgroup option{padding-inline-start:18px}
}
/* custom menus: site search results + Clear menu */
.srchres,#searchRes,.co-menu{background:#000!important;border-color:var(--bw-line)!important;color:#fff}
.srchres li button,#searchRes li button{background:#000!important;color:#fff!important}
.srchres li button:hover,.srchres li button:focus,.srchres li button:focus-visible,#searchRes li button:hover,#searchRes li button:focus,#searchRes li button:focus-visible{background:var(--bw-hover)!important;outline:none}
.example-menu-controls{background:#000;border-color:var(--bw-line)}
.example-menu-controls input{background:#000;color:#fff;border-color:var(--bw-line)}
input[type=checkbox],input[type=radio]{accent-color:#d4d4d4}
select[style],select.cat-sel{background-color:#000!important}

/* ===== Custom-drawn black list (replaces the native option list everywhere) =====
   Closed control stays a <select>. The OPEN list is drawn in .bwm so Windows
   cannot show its light-blue system highlight. Hover / selected / keyboard
   active row = gray #333, white text, black background. */
.bwm{position:fixed;z-index:2147483000;box-sizing:border-box;overflow:auto;background:#000;color:#fff;border:2px solid #fff;border-radius:12px;padding:4px;
  box-shadow:0 12px 32px rgba(0,0,0,.85);font:inherit;font-size:15px;line-height:1.3;color-scheme:dark;overscroll-behavior:contain}
.bwm[hidden]{display:none}
.bwm-opt{display:block;padding:9px 12px 9px 28px;border-radius:8px;background:#000;color:#fff;font-weight:700;cursor:pointer;white-space:normal;overflow-wrap:anywhere;position:relative}
.bwm-opt.in{padding-left:34px}
.bwm-opt.sel::before{content:"✓";position:absolute;left:9px;color:#fff}
.bwm-opt.act,.bwm-opt:hover{background:#333;color:#fff}
.bwm-opt.dis{color:#8b8b8b;cursor:default}
.bwm-opt.dis:hover{background:#000}
.bwm-grp{padding:8px 10px 4px;color:#fff;font-weight:900;background:#000;cursor:default;overflow-wrap:anywhere}
select.bwm-open{border-color:#fff!important}
