/* regn accessibility bar + site-wide dark mode (2026-11-18). Loaded by lib/a11y_bar.php.
   The generic dark rules use :where() (no specificity), so pages with their own dark styles (home, index) keep them. */
.regn-skip{position:absolute;left:8px;top:-80px;z-index:1000000;background:#0e1b2c;color:#fff!important;padding:9px 14px;border-radius:6px;font-weight:600;text-decoration:none}
.regn-skip:focus{top:8px;outline:3px solid #fdba74}
.regn-gov{background:#0e1b2c;color:#e7e9ee;font-size:12.5px;line-height:1.3;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Devanagari",sans-serif;position:relative;z-index:50}
.regn-gov-in{max-width:1400px;margin:0 auto;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:3px 14px;min-height:34px}
.regn-gov-org{color:#d6dbe3}
.regn-tools{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.regn-tl{display:inline-flex;align-items:center;gap:5px;color:#e7e9ee!important;text-decoration:none!important;padding:4px 6px;border-radius:4px}
.regn-tl:hover{text-decoration:underline!important;color:#fff!important}
.regn-tools svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.regn-size{display:inline-flex;border:1px solid rgba(255,255,255,.4);border-radius:5px;overflow:hidden}
.regn-btn{font:inherit;font-weight:600;background:transparent;color:#fff;border:0;padding:3px 9px;min-height:26px;cursor:pointer}
.regn-size .regn-btn+.regn-btn{border-left:1px solid rgba(255,255,255,.4)}
.regn-size .regn-btn[aria-pressed="true"],.regn-btn:hover:not(:disabled){background:rgba(255,255,255,.16)}
.regn-btn:disabled{opacity:.4;cursor:default}
.regn-theme{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.4);border-radius:5px}
.regn-lang{display:inline-flex;align-items:center;gap:5px;color:#e7e9ee;margin:0}
.regn-lang-sel{font:inherit;font-size:12.5px;background:#1d293d;color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:5px;padding:2px 4px;min-height:26px;cursor:pointer}
.regn-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.regn-gov a:focus-visible,.regn-gov button:focus-visible,.regn-gov select:focus-visible{outline:2px solid #fdba74;outline-offset:1px}
html:not(.regn-a11y-on) .regn-js{display:none}
@media (max-width:1000px){.regn-gov-org{display:none}.regn-tools{margin:0 auto}}
@media (max-width:600px){
  .regn-gov-in{padding:3px 8px;gap:6px}.regn-tools{gap:6px;justify-content:center}
  .regn-tl span,.regn-theme span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .regn-tl,.regn-theme{padding:4px 7px;min-height:28px}
}
/* the language menu drives Google Translate: hide Google's own widget, banner and tooltip */
html.regn-a11y-on #google_translate_element{position:absolute!important;left:-9999px!important;top:auto!important;width:1px;height:1px;overflow:hidden}
.goog-te-banner-frame,.skiptranslate>iframe,#goog-gt-tt,.goog-te-balloon-frame{display:none!important}
body{top:0!important}
.goog-text-highlight{background:none!important;box-shadow:none!important}
/* the bar replaces the floating Dark button of the home page */
html.regn-a11y-on #themeToggle{display:none!important}
#regn-main{scroll-margin-top:8px}

/* ---------- dark mode for pages without their own dark styles (zero specificity) ---------- */
html[data-theme="dark"]{color-scheme:dark}
:where(html[data-theme="dark"]) body{background:#14161b;color:#e7e9ee}
:where(html[data-theme="dark"]) :where(.w3-white,.w3-card,.w3-card-2,.w3-card-4,.w3-container.w3-white,.au-card,.card,.panel,.box){background-color:#1b1e25!important;color:#e7e9ee}
:where(html[data-theme="dark"]) :where(.w3-light-grey,.w3-light-gray,.w3-sand,.w3-pale-blue,.w3-pale-green,.w3-pale-yellow,.w3-pale-red){background-color:#262a33!important;color:#e7e9ee!important}
:where(html[data-theme="dark"]) :where(table,.w3-table,.w3-table-all){color:#e7e9ee;background:transparent}
:where(html[data-theme="dark"]) :where(.w3-table-all tr:nth-child(odd),.w3-striped tbody tr:nth-child(even)){background:#20232b!important}
:where(html[data-theme="dark"]) :where(.w3-table-all tr:nth-child(even)){background:#1b1e25!important}
:where(html[data-theme="dark"]) :where(th,td,.w3-border,.w3-bordered tr,.w3-table-all){border-color:#363a45!important}
:where(html[data-theme="dark"]) :where(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea,.w3-input,.w3-select){background:#11141a!important;color:#e7e9ee!important;border-color:#424754!important}
:where(html[data-theme="dark"]) :where(a){color:#9cc4ff}
:where(html[data-theme="dark"]) :where(.w3-text-black,.w3-text-dark-grey,.w3-text-grey){color:#c3cad5!important}
:where(html[data-theme="dark"]) :where(h1,h2,h3,h4,h5,h6,label,p,li,dt,dd){color:inherit}
:where(html[data-theme="dark"]) :where(.w3-sidebar,#rightMenu){background:#1b1e25!important;color:#e7e9ee}
:where(html[data-theme="dark"]) :where(img:not([src*="logo" i]):not([src*="emblem" i])){filter:brightness(.92)}
:where(html[data-theme="dark"]) :where(.w3-hover-light-grey:hover,.w3-hover-white:hover,.w3-bar-block .w3-button:hover){background:#2a2e37!important;color:#fff!important}
@media print{.regn-gov,.regn-skip{display:none!important}}
