
/* EDGE&TA dark mode (Josh, 2026-12-02). These rules print inline
   in the page head from the top bar snippet - NOT in the main
   stylesheet - so they arrive with the HTML itself and can never
   be stranded in a stale extracted/combined CSS file (the failure
   that made the first cuts look half-applied: text flipped while
   backgrounds and golds lagged a cache layer behind). The
   .edgeta-dark class is set on <html> by the script that follows
   this style block: a saved choice wins, otherwise the visitor's
   system preference. The yellow brand chrome dims to a muted
   gold (#bfa100); the page background is plain black - the
   theme's repeating logo watermark image is removed, or it
   paints over the black. Pairings: #e8e8e8 on #000 ~15:1,
   link pink #f2a9a9 ~10:1, black on the dimmed gold ~8:1. */
html.edgeta-dark { background-color: #000; }
html.edgeta-dark body { background-color: #000000 !important; background-image: none !important; color: #e8e8e8; }
html.edgeta-dark #wrapper, html.edgeta-dark .content-container, html.edgeta-dark #inner-wrap { background-color: transparent !important; }
html.edgeta-dark .site-main, html.edgeta-dark .entry-content { color: #e8e8e8; }
html.edgeta-dark .entry-content h1, html.edgeta-dark .entry-content h2, html.edgeta-dark .entry-content h3,
html.edgeta-dark .entry-content h4, html.edgeta-dark .entry-content h5, html.edgeta-dark .entry-content h6,
html.edgeta-dark .site-main h1, html.edgeta-dark .site-main h2, html.edgeta-dark .site-main h3,
html.edgeta-dark .site-main h4, html.edgeta-dark .site-main h5, html.edgeta-dark .site-main h6 { color: #f5f5f5; }
/* Text links lighten. Buttons keep their gold (dimmed, via the
   palette swap below) and their text stays BLACK in dark mode,
   in sync with the menu's black text on gold (Josh, 2026-12-02 -
   he floated white button text and then reversed it: black, so
   buttons and menu match). The form link list is plain text
   links and is deliberately NOT in the counter-rule - forcing it
   black made it invisible on the black page. */
html.edgeta-dark .entry-content a:not(.kb-button):not(.wp-block-button__link),
html.edgeta-dark .site-main a:not(.kb-button):not(.wp-block-button__link) { color: #f2a9a9; }
html.edgeta-dark .edgeta-home-links a,
html.edgeta-dark a.kb-button, html.edgeta-dark a.wp-block-button__link { color: #000 !important; }
/* Dimmed brand chrome. The maroon menu hover/current color only
   reaches ~4:1 on the dimmed gold, so it goes black in dark mode. */
html.edgeta-dark .edgeta-topbar, html.edgeta-dark .edgeta-panel, html.edgeta-dark .edgeta-toc-float,
html.edgeta-dark body.edgeta-has-toc .wp-block-kadence-tableofcontents { background-color: #bfa100 !important; }
html.edgeta-dark .edgeta-menu li a:hover, html.edgeta-dark .edgeta-menu li a:focus,
html.edgeta-dark .edgeta-menu .current_page_item > a,
html.edgeta-dark .edgeta-panel-brand-link:hover .edgeta-panel-name,
html.edgeta-dark .edgeta-toc-float-list a:hover, html.edgeta-dark .edgeta-toc-float-list a:focus,
html.edgeta-dark .edgeta-toc-float-list li.edgeta-toc-current > a { color: #000; }
/* Every other gold in the theme takes the same swap: the Kadence
   button/accent palette variables (front-page buttons, form and
   facet accents), the branch table's gold column and header, and
   the officer panel's gold stripe. */
html.edgeta-dark { --global-palette-btn-bg: #bfa100; --global-palette1: #bfa100; --kb-token--semantic--color--button-bg: #bfa100; --kb-token--primitive--color--brand--primary: #bfa100; }
html.edgeta-dark table th, html.edgeta-dark table td { border-color: #4d4d4d; }
html.edgeta-dark .edgeta-branch-table thead th, html.edgeta-dark .edgeta-branch-table td:first-child { background-color: #bfa100 !important; color: #000; }
html.edgeta-dark .edgeta-officer-access { border-left-color: #bfa100; }
/* The footer bar dims with the rest of the chrome. */
html.edgeta-dark .site-bottom-footer-wrap { background-color: #bfa100 !important; color: #000; }
html.edgeta-dark .site-bottom-footer-wrap a { color: #000; }
/* The panel search box: in light mode it is a white box on the
   yellow panel. In dark mode Josh wants it to match the
   darkness of the search modal it opens (2026-12-03) - so it
   takes the modal dialog's own #1e1e1e with the modal's border
   grey and light text/icon, and the modal's active-row #2e2e2e
   on hover. The hover carries !important because the
   light-mode hover rule does. */
html.edgeta-dark .edgeta-search-open { background-color: #1e1e1e; border-color: #444444; color: #f0f0f0; }
html.edgeta-dark .edgeta-search-open:hover { background-color: #2e2e2e !important; border-color: #555555; color: #f0f0f0; }
html.edgeta-dark .edgeta-search-open:focus-visible { background-color: #2e2e2e; outline-color: #f0f0f0; }
/* The search modal flips too. */
html.edgeta-dark .edgeta-search-dialog { background-color: #1e1e1e; }
html.edgeta-dark .edgeta-search-form { border-bottom-color: #444444; }
html.edgeta-dark .edgeta-search-form input[type="search"] { color: #f0f0f0; }
html.edgeta-dark .edgeta-search-icon { color: #bdbdbd; }
html.edgeta-dark .edgeta-search-close { color: #f0f0f0; }
html.edgeta-dark .edgeta-search-close:hover { background-color: #333333; }
html.edgeta-dark .edgeta-search-hint { color: #bdbdbd; }
html.edgeta-dark .edgeta-search-result-title { color: #f0f0f0; }
html.edgeta-dark .edgeta-search-result-context { color: #bdbdbd; }
html.edgeta-dark .edgeta-search-results li.is-active .edgeta-search-result { background-color: #2e2e2e; }
html.edgeta-dark .edgeta-search-results li.is-active .edgeta-search-result-context { color: #d6d6d6; }
/* Branch single extras: the officer login panel and hidden tags. */
html.edgeta-dark .edgeta-officer-access { background-color: #1e1e1e; color: #e8e8e8; }
html.edgeta-dark .edgeta-hidden-tag { background-color: #333333; color: #e8e8e8; }
/* Grid cards follow the same dark styling as the rest of the
   site (Josh, 2026-12-03: the WP Grid Builder styling should
   match the Kadence styling). An earlier blanket rule forced
   every element in a card to one flat tone, which made card
   links read as plain text and flattened the event dates' red.
   Now: card body text takes the body tone, headings the heading
   tone, and links the site's dark link pink - the same values
   the Kadence content gets above. WPGB's templates colour their
   blocks near-black, so the blocks themselves are lifted (the
   block selector outranks the template rules); elements with
   deliberate colors re-state theirs after these rules - the
   region pills below, the neon date pill (inline styles), and
   the event dates, whose site red #e60000 only reaches ~4:1 on
   black, so dark mode uses a lighter red of the same family,
   the way the gold is adjusted for dark mode too. */
html.edgeta-dark .wpgb-card, html.edgeta-dark .wpgb-facet { color: #e8e8e8; }
html.edgeta-dark .wpgb-card [class*="wpgb-block-"] { color: #e8e8e8; }
html.edgeta-dark .wpgb-card h1[class*="wpgb-block-"], html.edgeta-dark .wpgb-card h2[class*="wpgb-block-"],
html.edgeta-dark .wpgb-card h3[class*="wpgb-block-"], html.edgeta-dark .wpgb-card h4[class*="wpgb-block-"] { color: #f5f5f5; }
html.edgeta-dark .wpgb-card a { color: #f2a9a9 !important; }
html.edgeta-dark .wp-grid-builder.wpgb-grid-2 .wpgb-block-3, html.edgeta-dark .wp-grid-builder.wpgb-grid-2 .wpgb-block-4,
html.edgeta-dark .wp-grid-builder.wpgb-grid-2 .wpgb-block-5, html.edgeta-dark .edgeta-event-dates { color: #ff6b6b; }
html.edgeta-dark .wpgb-card a[class*="edgeta-region--"] { color: #ffffff !important; }
html.edgeta-dark .edgeta-region--eastern-region { background-color: #bfa100 !important; color: #000 !important; }
html.edgeta-dark a.edgeta-region--eastern-region:hover, html.edgeta-dark a.edgeta-region--eastern-region:focus { background-color: #a88900 !important; color: #000 !important; }
/* Facet and form fields go dark with light text. */
html.edgeta-dark .entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html.edgeta-dark .entry-content textarea, html.edgeta-dark .entry-content select,
html.edgeta-dark .wpgb-facet input, html.edgeta-dark .wpgb-facet select { background-color: #1e1e1e; color: #f0f0f0; border-color: #5a5a5a; }
