/* ==========================================================================
   WorkReadyMN: "North Star" palette layer (wrmn-theme)
   Loaded AFTER ncg-a11y.css + the parent ncg-theme style.css, so these win.

   Aligned to the State of Minnesota brand (Minnesota State Brand Style Guide
   2024, mn.gov/brand): Minnesota Blue #003865 and Minnesota Green #78BE21 as
   the primary pair, Accent Gold #FFC845 as trim, lining and overlay, the
   state's neutral grays, and its safety red for errors. The state's
   conformance level is WCAG AA; every pair used was checked (table in
   README.md). Palette and look only: no State of Minnesota logo, seal or
   wordmark is used or imitated anywhere in this theme.

   THE SYSTEM: A WHITE PAGE WITH NAVY BANDS, COLOR AS OVERLAY
   - The page ground is white. The masthead, hero, feature bands and footer
     are navy bands laid over it (#00264A, Minnesota Blue deepened), lined
     in gold. Content between the bands (cards, forms, tables) sits on white.
   - State is shown by an OVERLAY behind the words, never by recoloring text
     alone. The same three states run everywhere; only the idle text and
     current overlay flip with the ground:
                          on a navy band                on the white page
       idle (passive)     white text          15.3:1    Minnesota Blue text  12.0:1
       hover              gold overlay, navy   9.9:1    gold overlay, blue    7.8:1
       current / active   white overlay, navy 15.3:1    navy overlay, white  15.3:1
     The band tokens are scoped to .wrmn-masthead, .wrmn-hero, .wrmn-band and
     .wrmn-footer, so the same rules read the right values in either place.
   - Gold is 1.5:1 on white and green 2.3:1, so on the white page neither is
     ever text or a control edge: gold is an overlay under blue text or a
     rule; green is a rule or fill. Green as text on white uses the state's
     Accent Green #0D5257 (8.3:1). On navy, gold may be text (9.9:1).
   - Focus: a 3px ring 2px outside the element plus a halo beyond it. On
     white: blue ring, gold halo. On navy: gold ring, navy halo.

   MODES
   default          html (no data-ncg-theme)
   dark             html[data-ncg-theme="dark"]           a11y toolbar. The page goes
                    dark; bands stay navy, lined in gold, so they still read as bands.
   high contrast    html[data-ncg-theme="high-contrast"]  a11y toolbar; ncg-a11y.css
                    forces links cyan, headings yellow, container borders white.
                    Bands go black; overlays are yellow or white with black text.
   forced colors    @media (forced-colors: active)        Windows contrast themes:
                    overlays are dropped by the system, so current is also a border.
   more contrast    @media (prefers-contrast: more)       OS setting, default mode only
   reduced motion   @media (prefers-reduced-motion)       OS setting, every mode
   The toolbar's font choices (sans, dyslexia-friendly) are more specific and
   !important in ncg-a11y.css, so they still win over the faces set here.
   ========================================================================== */

/* ---- State brand constants (mode-stable) ------------------------------- */
:root {
    --wrmn-blue:    #003865; /* Minnesota Blue, PMS 2955 C: text, rules, rings on white */
    --wrmn-navy:    #00264A; /* Minnesota Blue deepened toward navy: band and overlay grounds */
    --wrmn-navy-deep: #001B36; /* the footer, a step deeper */
    --wrmn-green:   #78BE21; /* Minnesota Green, PMS 368 C */
    --wrmn-gold:    #FFC845; /* Extended Accent Gold, PMS 1225 C */
    --wrmn-cream:   #F5E1A4; /* Extended Accent Cream, PMS 7401 C */
    --wrmn-sky:     #9BCBEB; /* Extended Accent Sky Blue, PMS 291 C */
    --wrmn-teal-dk: #0D5257; /* Accent Green */
    --wrmn-red:     #A6192E; /* Safety Red, PMS 187 C */
    --wrmn-gray-dk: #53565A; /* Dark Gray, Cool Gray 11 C */
    --wrmn-gray-lt: #D9D9D6; /* Light Gray, Cool Gray 1 C */
}

/* ---- Base / light: the white page ------------------------------------- */
:root {
    --ncg-color-primary:    #003865; /* 12.0:1 on white */
    --ncg-color-secondary:  #0D5257; /* Accent Green: the text-safe second voice */
    --ncg-color-accent:     #FFC845;
    --ncg-on-accent:        #00264A; /* navy ON gold, 9.9:1 */
    --ncg-accent-text:      #0D5257; /* an accent as TEXT on white, 8.3:1 */
    --ncg-focus:            #003865;
    --wrmn-focus-halo:      #FFC845;
    --ncg-color-heading:    #003865;
    --ncg-color-body:       #1B1D1F; /* 16.9:1 */
    --ncg-color-muted:      #53565A; /* Dark Gray, 7.4:1 */
    --ncg-color-bg-paper:   #FFFFFF;
    --ncg-color-bg-surface: #FFFFFF;
    --wrmn-bg-soft:         #F7F7F5; /* an alternate white-page section */
    --ncg-color-border:     #6D7074; /* 5.0:1; the state Medium Gray is 2.9:1 and fails */
    --ncg-link:             #003865;
    --wrmn-callout:         #FDF3D6; /* a wash of Cream */
    --wrmn-rule:            #FFC845; /* the gold lining */
    --wrmn-rule-strong:     #003865;
    --wrmn-rule-soft:       #D9D9D6;
    --wrmn-error:           #A6192E; /* 7.5:1 */

    /* the three states on the white page */
    --wrmn-idle-text:       #003865;
    --wrmn-hover-bg:        #FFC845;
    --wrmn-hover-text:      #003865;
    --wrmn-current-bg:      #00264A;
    --wrmn-current-text:    #FFFFFF;

    /* the bands. ncg-core templates read these names for heroes and bands. */
    --ncg-hero-1:        #00264A;
    --ncg-hero-2:        #003865;
    --ncg-hero-3:        #001B36;
    --ncg-chrome:        #00264A;
    --ncg-chrome-deep:   #001B36;
    --ncg-on-chrome:     #FFFFFF;
    --ncg-chrome-accent: #FFC845;
    --wrmn-on-chrome-muted: #D9D9D6; /* 10.8:1 on navy */
    --ncg-accent-2:      #78BE21;
}

/* ---- Dark ------------------------------------------------------------- */
html[data-ncg-theme="dark"] {
    --ncg-color-primary:    #9BCBEB; /* Sky Blue, 10.4:1 on paper */
    --ncg-color-secondary:  #78BE21; /* 6.7:1 */
    --ncg-color-accent:     #FFC845;
    --ncg-on-accent:        #00264A;
    --ncg-accent-text:      #FFC845; /* 10.0:1 on surface */
    --ncg-focus:            #FFC845;
    --wrmn-focus-halo:      #00264A;
    --ncg-color-heading:    #F5E1A4; /* Cream, 13.9:1 */
    --ncg-color-body:       #EDEDEA; /* 13.1:1 on surface */
    --ncg-color-muted:      #B9BCBF; /* 8.1:1 on surface */
    --ncg-color-bg-paper:   #0A1824;
    --ncg-color-bg-surface: #12263A;
    --wrmn-bg-soft:         #0F2233;
    --ncg-color-border:     #7A8794; /* 4.2:1 on surface */
    --ncg-link:             #9BCBEB;
    --wrmn-callout:         #2A2410;
    --wrmn-rule:            #FFC845;
    --wrmn-rule-strong:     #9BCBEB;
    --wrmn-rule-soft:       #2C3E50;
    --wrmn-error:           #FF9C9C; /* 7.7:1 on surface */
    --wrmn-idle-text:       #9BCBEB;
    --wrmn-hover-bg:        #FFC845;
    --wrmn-hover-text:      #00264A;
    --wrmn-current-bg:      #FFFFFF;
    --wrmn-current-text:    #00264A;
    --ncg-hero-1:        #00264A;
    --ncg-hero-2:        #003865;
    --ncg-hero-3:        #001B36;
    --ncg-chrome:        #00264A;
    --ncg-chrome-deep:   #001B36;
    --ncg-on-chrome:     #FFFFFF;
    --ncg-chrome-accent: #FFC845;
    --wrmn-on-chrome-muted: #D9D9D6;
    --ncg-accent-2:      #78BE21;
}

/* ---- HIGH CONTRAST: black / white / yellow ---------------------------- */
html[data-ncg-theme="high-contrast"] {
    --ncg-color-primary:    #FFFFFF;
    --ncg-color-secondary:  #FFFFFF;
    --ncg-color-accent:     #FFFF00;
    --ncg-on-accent:        #000000;
    --ncg-accent-text:      #FFFF00;
    --ncg-focus:            #FFFF00;
    --wrmn-focus-halo:      #000000;
    --ncg-color-heading:    #FFFF00;
    --ncg-color-body:       #FFFFFF;
    --ncg-color-muted:      #FFFFFF;
    --ncg-color-bg-paper:   #000000;
    --ncg-color-bg-surface: #000000;
    --wrmn-bg-soft:         #000000;
    --ncg-color-border:     #FFFFFF;
    --ncg-link:             #00FFFF;
    --wrmn-callout:         #000000;
    --wrmn-rule:            #FFFF00; /* on div/section/header ncg-a11y.css forces borders white, equally visible */
    --wrmn-rule-strong:     #FFFFFF;
    --wrmn-rule-soft:       #FFFFFF;
    --wrmn-error:           #FF6B6B;
    --wrmn-idle-text:       #FFFFFF;
    --wrmn-hover-bg:        #FFFFFF;
    --wrmn-hover-text:      #000000;
    --wrmn-current-bg:      #FFFF00;
    --wrmn-current-text:    #000000;
    --ncg-hero-1:        #000000;
    --ncg-hero-2:        #000000;
    --ncg-hero-3:        #000000;
    --ncg-chrome:        #000000;
    --ncg-chrome-deep:   #000000;
    --ncg-on-chrome:     #FFFFFF;
    --ncg-chrome-accent: #FFFF00;
    --wrmn-on-chrome-muted: #FFFFFF;
    --ncg-accent-2:      #FFFF00;
}

/* ---- Inside a navy band: the band's own states and focus --------------- */
:is(.wrmn-masthead, .wrmn-hero, .wrmn-band, .wrmn-footer, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero) {
    --wrmn-idle-text:    var(--ncg-on-chrome);
    --wrmn-hover-bg:     #FFC845;
    --wrmn-hover-text:   #00264A;
    --wrmn-current-bg:   #FFFFFF;
    --wrmn-current-text: #00264A;
    --ncg-focus:         var(--ncg-chrome-accent);
    --wrmn-focus-halo:   var(--ncg-chrome);
    --ncg-link:          var(--ncg-on-chrome);
    --ncg-color-heading: var(--ncg-on-chrome);
    --ncg-color-body:    var(--ncg-on-chrome);
    --ncg-color-muted:   var(--wrmn-on-chrome-muted);
}
html[data-ncg-theme="high-contrast"] :is(.wrmn-masthead, .wrmn-hero, .wrmn-band, .wrmn-footer, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero) {
    --wrmn-hover-bg: #FFFFFF; --wrmn-hover-text: #000000;
    --wrmn-current-bg: #FFFF00; --wrmn-current-text: #000000;
    --ncg-focus: #FFFF00; --wrmn-focus-halo: #000000;
    --ncg-color-heading: #FFFF00;
}

/* ==========================================================================
   TYPE: the state's faces are Brandon Grotesque (display) and Brandon Text
   (reading). Both are licensed, so they apply only where a licensed kit is
   loaded (README); otherwise Inter, which the parent already loads, sets
   everything. The parent's Playfair serif headings are replaced.
   ========================================================================== */
:root {
    --wrmn-font-display: 'Brandon Grotesque', 'brandon-grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Calibri, Arial, sans-serif;
    --wrmn-font-text:    'Brandon Text', 'brandon-text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Calibri, Arial, sans-serif;
}
body { font-family: var(--wrmn-font-text); line-height: 1.6; }
h1, h2, h3, h4, h5, h6,
.ncg-svc-title, body .ncg-acc-title { font-family: var(--wrmn-font-display) !important; }
h1, h2, h3, h4, h5, h6 { color: var(--ncg-color-heading); line-height: 1.2; }

/* ==========================================================================
   PAGE SURFACES
   ========================================================================== */
body { background-color: var(--ncg-color-bg-paper); color: var(--ncg-color-body); margin: 0; }
.site-header, .site-footer, .wrmn-footer *, .wrmn-masthead * { box-sizing: border-box; }
.wrmn-soft { background: var(--wrmn-bg-soft); }
::selection { background: var(--wrmn-gold); color: var(--wrmn-navy); }
html[data-ncg-theme="high-contrast"] ::selection { background: #FFFF00; color: #000; }

/* ==========================================================================
   LINKS IN RUNNING TEXT: underlined, because the link blue and the body
   near-black are only 1.4:1 apart (WCAG 1.4.1). Hover lays the overlay
   behind the words.
   ========================================================================== */
a { color: var(--ncg-link); text-underline-offset: 0.18em; }
:is(.entry-content, .wrmn-hero, .wrmn-band) a:where(:not([class*="btn"]):not([class*="button"]):not(.wrmn-card)),
.site-main :is(p, li, td, dd) > a:where(:not([class*="btn"]):not([class*="button"])) {
    text-decoration: underline; text-decoration-thickness: 1px;
}
:is(.entry-content, .wrmn-hero, .wrmn-band) a:where(:not([class*="btn"]):not([class*="button"]):not(.wrmn-card)):hover,
.site-main :is(p, li, td, dd) > a:where(:not([class*="btn"]):not([class*="button"])):hover {
    background: var(--wrmn-hover-bg); color: var(--wrmn-hover-text); text-decoration-thickness: 2px;
    box-shadow: 0 0 0 2px var(--wrmn-hover-bg); border-radius: 1px;
}

/* ==========================================================================
   FOCUS: one rule for every focusable thing (WCAG 2.4.7, 2.4.13). Forced
   colors drops box-shadow, so the outline alone carries it there.
   ========================================================================== */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--ncg-focus) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 9px var(--wrmn-focus-halo) !important; /* 4px of halo beyond the ring */
}
.ncg-skip-link {
    background: var(--wrmn-gold) !important; color: var(--wrmn-navy) !important;
    font-family: var(--wrmn-font-display) !important; font-weight: 700;
    border: 2px solid var(--wrmn-navy) !important;
}
html[data-ncg-theme="high-contrast"] .ncg-skip-link { background: #FFFF00 !important; color: #000 !important; border-color: #fff !important; }

/* ==========================================================================
   MASTHEAD: a full-width navy band over the white page, gold lining beneath.
   The parent caps .site-header at the content width; the band is the wrapper.
   ========================================================================== */
.wrmn-masthead {
    background: var(--ncg-chrome);
    color: var(--ncg-on-chrome);
    border-top: 4px solid var(--ncg-chrome-deep);
    border-bottom: 5px solid var(--wrmn-rule);
}
html[data-ncg-theme="high-contrast"] .wrmn-masthead { background: #000; border-top-color: #000; border-bottom-color: #FFFF00; }
/* The parent paints its own dark and high-contrast header backgrounds; the band owns it. */
.wrmn-masthead .site-header,
html[data-ncg-theme] .wrmn-masthead .site-header { background: transparent; padding-block: 14px; }

.wrmn-masthead .site-title { margin: 0; font-size: 1.6rem; line-height: 1.1; }
.wrmn-masthead .site-title a {
    font-family: var(--wrmn-font-display); font-weight: 800; letter-spacing: 0.02em;
    color: var(--ncg-on-chrome) !important; text-decoration: none; padding: 2px 6px; margin-left: -6px; border-radius: 3px;
}
.wrmn-masthead .site-title a:hover { background: var(--wrmn-hover-bg); color: var(--wrmn-hover-text) !important; }
.wrmn-masthead .site-description { margin: 4px 0 0; font-size: .9rem; color: var(--ncg-color-muted); }

.wrmn-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.wrmn-logo { display: block; height: 72px; width: auto; max-width: 100%; }
@media (max-width: 600px) { .wrmn-logo { height: 56px; } }

/* MENU on the band: idle white; hover gold overlay with navy text; current
   white overlay with navy text and a gold foot. 44px targets (WCAG 2.5.8).
   The current item is also marked aria-current="page" (functions.php). */
.wrmn-masthead .site-navigation ul.menu { gap: 4px; }
.wrmn-masthead .site-navigation ul.menu > li > a {
    color: var(--wrmn-idle-text) !important;
    font-family: var(--wrmn-font-display); font-weight: 700;
    min-height: 44px; display: flex; align-items: center;
    padding: 6px 14px; border-radius: 4px 4px 0 0;
    border-bottom: 3px solid transparent !important;
    text-decoration: none;
}
.wrmn-masthead .site-navigation ul.menu > li > a:hover,
.wrmn-masthead .site-navigation ul.menu > li > a:focus-visible {
    background: var(--wrmn-hover-bg); color: var(--wrmn-hover-text) !important;
}
.wrmn-masthead .site-navigation ul.menu > li:is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a {
    background: var(--wrmn-current-bg); color: var(--wrmn-current-text) !important;
    border-bottom-color: var(--wrmn-rule) !important;
}
/* The parent's dropdown caret is #666, 2.4:1 on the band. */
.wrmn-masthead .site-navigation ul.menu li.menu-item-has-children::after { color: var(--ncg-chrome-accent); }
/* Submenus: a deeper navy panel lined in gold, same three states. */
.wrmn-masthead .site-navigation ul.menu li ul {
    background: var(--ncg-chrome-deep); min-width: 240px; border-top: 4px solid var(--wrmn-rule);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.wrmn-masthead .site-navigation ul.menu li ul li { border-block-end-color: rgba(255, 255, 255, 0.14); }
.wrmn-masthead .site-navigation ul.menu li ul a {
    color: var(--wrmn-idle-text); text-decoration: none; min-height: 44px; display: flex; align-items: center; font-weight: 600;
}
.wrmn-masthead .site-navigation ul.menu li ul a:hover { background: var(--wrmn-hover-bg); color: var(--wrmn-hover-text); }
.wrmn-masthead .site-navigation ul.menu li ul li:is(.current-menu-item, .current_page_item) > a { background: var(--wrmn-current-bg); color: var(--wrmn-current-text); }
html[data-ncg-theme="high-contrast"] .wrmn-masthead .site-navigation ul.menu li ul { background: #000; border: 2px solid #fff; border-top: 4px solid #FFFF00; }
/* ncg-a11y.css forces every link cyan in high contrast; the overlays must keep black text. */
html[data-ncg-theme="high-contrast"] .wrmn-masthead .site-navigation ul.menu a:hover,
html[data-ncg-theme="high-contrast"] .wrmn-masthead .site-navigation ul.menu li:is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a,
html[data-ncg-theme="high-contrast"] .wrmn-masthead .site-title a:hover { color: #000 !important; text-decoration: none !important; }

/* Header button: gold with a navy label (9.9:1); hover goes white. */
.ncg-header-cta {
    background: var(--wrmn-gold); color: var(--wrmn-navy) !important;
    border: 2px solid var(--wrmn-gold); border-radius: 4px;
    min-height: 44px; padding: 8px 20px; font-family: var(--wrmn-font-display); font-weight: 700;
}
.ncg-header-cta:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--wrmn-navy) !important; transform: none; }
html[data-ncg-theme="high-contrast"] .ncg-header-cta { background: #FFFF00 !important; color: #000 !important; border: 2px solid #FFFF00 !important; }
html[data-ncg-theme="high-contrast"] .ncg-header-cta:hover { background: #fff !important; border-color: #fff !important; }

/* Menu toggle (phones): white bars on navy; open state takes the current overlay. */
.wrmn-masthead .ncg-menu-toggle { color: var(--ncg-on-chrome); border: 2px solid rgba(255, 255, 255, 0.6); width: 48px; height: 48px; }
.wrmn-masthead .site-header.nav-open .ncg-menu-toggle { background: var(--wrmn-current-bg); color: var(--wrmn-current-text); border-color: var(--wrmn-current-bg); }
@media (max-width: 900px) {
    .wrmn-masthead .site-header-end .site-navigation ul.menu > li > a { border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important; padding: 12px 10px; }
    .wrmn-masthead .site-header-end .site-navigation ul.menu > li:is(.current-menu-item, .current_page_item) > a { border-left: 6px solid var(--wrmn-rule) !important; }
    .wrmn-masthead .site-header .ncg-header-cta { align-self: stretch; margin: 12px 0 4px; }
}

/* ==========================================================================
   HERO AND BANDS: navy laid over the white page, gold lining.
   ========================================================================== */
:is(.wrmn-hero, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero) {
    background: linear-gradient(135deg, var(--ncg-hero-1) 0%, var(--ncg-hero-1) 55%, var(--ncg-hero-2) 100%);
    color: var(--ncg-on-chrome);
    border-bottom: 5px solid var(--wrmn-rule);
    --ncg-veil-chrome: var(--ncg-hero-1); --ncg-veil-top: var(--ncg-chrome);
}
:is(.wrmn-hero, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero) :is(h1, h2, h3, p, li) { color: var(--ncg-on-chrome); }
html[data-ncg-theme="high-contrast"] :is(.wrmn-hero, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero) { background: #000; border-bottom-color: #FFFF00; }

.wrmn-band {
    background: var(--ncg-chrome); color: var(--ncg-on-chrome);
    border-top: 5px solid var(--wrmn-rule); border-bottom: 5px solid var(--wrmn-rule);
}
.wrmn-band :is(h1, h2, h3, h4, p, li) { color: var(--ncg-on-chrome); }
html[data-ncg-theme="high-contrast"] .wrmn-band { background: #000; border-color: #FFFF00; }

/* No highlight overlays on headings: an <em> in a hero or band heading reads as
   plain heading text (the owner found gold-backed words hard to read). */
:is(.wrmn-highlight, :is(.wrmn-hero, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero, .wrmn-band) :is(h1, h2) em) {
    background: none; color: inherit !important; font-style: normal; padding: 0;
}

/* Eyebrow label: on a band, gold overlay with navy text; on the page, navy overlay with white text. */
.wrmn-eyebrow {
    display: inline-block; background: var(--wrmn-navy); color: #FFFFFF;
    font-family: var(--wrmn-font-display); font-weight: 700; font-size: .8rem;
    letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
    border-left: 5px solid var(--wrmn-green);
}
:is(.wrmn-hero, .wrmn-band, .rec-hero, .ncg-split-header-v2) .wrmn-eyebrow { background: var(--wrmn-gold); color: var(--wrmn-navy); }
html[data-ncg-theme="dark"] .wrmn-eyebrow { background: var(--wrmn-gold); color: var(--wrmn-navy); }
html[data-ncg-theme="high-contrast"] .wrmn-eyebrow { background: #000 !important; color: #FFFF00 !important; border: 2px solid #FFFF00; }

/* ==========================================================================
   ON THE WHITE PAGE: gold lining for section headings, cards, callouts,
   tables and rules. All decoration; nothing is conveyed by it alone.
   ========================================================================== */
.entry-content > h2, .wrmn-section-title { padding-bottom: 12px; position: relative; }
.entry-content > h2::after, .wrmn-section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 72px;
    border-bottom: 4px solid var(--wrmn-rule);
}
.wrmn-section-title.is-centered::after, .has-text-align-center.wrmn-section-title::after { left: 50%; transform: translateX(-50%); }

/* Cards: white, hairline edge, gold top lining. A whole-card link takes the
   hover overlay on its title and a blue edge on the card. */
:is(.wrmn-card, .rec-card, .ncg-card) {
    background: var(--ncg-color-bg-surface); color: var(--ncg-color-body);
    border: 1px solid var(--wrmn-rule-soft); border-top: 5px solid var(--wrmn-rule);
    border-radius: 4px;
}
a.wrmn-card { display: block; text-decoration: none; color: var(--ncg-color-body); }
a.wrmn-card :is(h2, h3, h4) { color: var(--ncg-color-heading); display: inline; padding: 0 2px; line-height: 1.5; }
a.wrmn-card:is(:hover, :focus-visible) { border-color: var(--wrmn-rule-strong); border-top-color: var(--wrmn-rule); }
a.wrmn-card:is(:hover, :focus-visible) :is(h2, h3, h4) { background: var(--wrmn-hover-bg); color: var(--wrmn-hover-text); }
html[data-ncg-theme="dark"] :is(.wrmn-card, .rec-card, .ncg-card) { border-color: var(--ncg-color-border); border-top-color: var(--wrmn-rule); }
html[data-ncg-theme="high-contrast"] :is(.wrmn-card, .rec-card, .ncg-card) { border: 2px solid #fff; border-top: 5px solid #FFFF00; }
html[data-ncg-theme="high-contrast"] a.wrmn-card:is(:hover, :focus-visible) :is(h2, h3, h4) { color: #000 !important; }

/* Callout (deadlines, accommodation notes): a wash of cream, gold lining with
   a blue inner edge (gold against cream alone is 1.3:1). */
.wrmn-callout, .entry-content blockquote {
    background: var(--wrmn-callout); color: var(--ncg-color-body);
    border-left: 6px solid var(--wrmn-rule); box-shadow: inset 2px 0 0 var(--wrmn-rule-strong);
    padding: 16px 20px; margin: 24px 0; border-radius: 0 4px 4px 0;
}
.wrmn-callout :is(h2, h3, h4, strong), .entry-content blockquote cite { color: var(--ncg-color-heading); }
html[data-ncg-theme="high-contrast"] :is(.wrmn-callout, .entry-content blockquote) { border: 2px solid #fff; border-left: 6px solid #FFFF00; box-shadow: none; }

/* Tables: a navy header row (white text, 15.3:1) lined in gold. */
:is(.entry-content table, .wrmn-table) { border-collapse: collapse; width: 100%; background: var(--ncg-color-bg-surface); }
:is(.entry-content table, .wrmn-table) th {
    background: var(--wrmn-navy); color: #FFFFFF; text-align: left;
    font-family: var(--wrmn-font-display); border-bottom: 4px solid var(--wrmn-rule); padding: 10px 12px;
}
:is(.entry-content table, .wrmn-table) td { border-bottom: 1px solid var(--wrmn-rule-soft); padding: 10px 12px; }
:is(.entry-content table, .wrmn-table) tbody tr:hover td { background: var(--wrmn-bg-soft); }
html[data-ncg-theme="high-contrast"] :is(.entry-content table, .wrmn-table) :is(th, td) { border: 1px solid #fff; }
html[data-ncg-theme="high-contrast"] :is(.entry-content table, .wrmn-table) th { background: #000; color: #FFFF00 !important; border-bottom: 3px solid #FFFF00; }

:is(.entry-content hr, .wp-block-separator) { border: 0; border-top: 3px solid var(--wrmn-rule); opacity: 1; }

/* ==========================================================================
   BUTTONS use the same overlays.
     on the white page   primary navy, white label   -> hover gold, navy label
                         secondary white, blue edge  -> hover gold
     on a navy band      primary gold, navy label    -> hover white
                         secondary gold edge, white  -> hover gold
   44px targets. Keep single classes in these :is() lists: :is() takes the
   specificity of its most specific member, and one compound entry once made
   every primary rule outrank .wrmn-btn-secondary.
   ========================================================================== */
:is(.wrmn-btn, .wp-block-button__link, .wp-element-button, .ncg-btn-main, .rec-btn, .ncg-submit-btn),
.entry-content input[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 22px; border-radius: 4px;
    background: var(--wrmn-navy) !important; color: #FFFFFF !important;
    border: 2px solid var(--wrmn-navy) !important;
    font-family: var(--wrmn-font-display); font-size: 1rem; line-height: 1.2; font-weight: 700;
    text-decoration: none !important; cursor: pointer;
}
:is(.wrmn-btn, .wp-block-button__link, .wp-element-button, .ncg-btn-main, .rec-btn, .ncg-submit-btn):hover,
.entry-content input[type="submit"]:hover {
    background: var(--wrmn-gold) !important; color: var(--wrmn-navy) !important; border-color: var(--wrmn-navy) !important;
}
:is(.wrmn-btn-secondary, .is-style-outline .wp-block-button__link) {
    background: #FFFFFF !important; color: var(--wrmn-blue) !important; border: 2px solid var(--wrmn-blue) !important;
}
:is(.wrmn-btn-secondary, .is-style-outline .wp-block-button__link):hover { background: var(--wrmn-gold) !important; color: var(--wrmn-navy) !important; border-color: var(--wrmn-navy) !important; }

/* On a band (and anywhere in dark mode) the primary is gold. */
:is(.wrmn-hero, .wrmn-band, .wrmn-footer, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero) :is(.wrmn-btn, .wp-block-button__link, .rec-btn, .ncg-btn-main),
html[data-ncg-theme="dark"] :is(.wrmn-btn, .wp-block-button__link, .wp-element-button, .ncg-btn-main, .rec-btn, .ncg-submit-btn) {
    background: var(--wrmn-gold) !important; color: var(--wrmn-navy) !important; border-color: var(--wrmn-gold) !important;
}
:is(.wrmn-hero, .wrmn-band, .wrmn-footer, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero) :is(.wrmn-btn, .wp-block-button__link, .rec-btn, .ncg-btn-main):hover,
html[data-ncg-theme="dark"] :is(.wrmn-btn, .wp-block-button__link, .wp-element-button, .ncg-btn-main, .rec-btn, .ncg-submit-btn):hover {
    background: #FFFFFF !important; color: var(--wrmn-navy) !important; border-color: #FFFFFF !important;
}
:is(.wrmn-hero, .wrmn-band, .wrmn-footer, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero) .wrmn-btn.wrmn-btn-secondary,
html[data-ncg-theme="dark"] .wrmn-btn.wrmn-btn-secondary {
    background: transparent !important; color: #FFFFFF !important; border-color: var(--wrmn-gold) !important;
}
:is(.wrmn-hero, .wrmn-band, .wrmn-footer, .ncg-split-header-v2, .ncg-hero-banner, .rec-hero) .wrmn-btn.wrmn-btn-secondary:hover,
html[data-ncg-theme="dark"] .wrmn-btn.wrmn-btn-secondary:hover {
    background: var(--wrmn-gold) !important; color: var(--wrmn-navy) !important;
}
/* High contrast: the plugin makes every <button> yellow on black; an <a>
   button would come out cyan on yellow, so every button family is black on yellow. */
html[data-ncg-theme="high-contrast"] :is(.wrmn-btn, .wp-block-button__link, .wp-element-button, .ncg-btn-main, .rec-btn, .ncg-submit-btn),
html[data-ncg-theme="high-contrast"] .entry-content input[type="submit"] {
    background: #FFFF00 !important; color: #000 !important; border: 2px solid #fff !important;
}
html[data-ncg-theme="high-contrast"] :is(.wrmn-btn, .wp-block-button__link, .wp-element-button, .ncg-btn-main, .rec-btn, .ncg-submit-btn):hover { background: #fff !important; color: #000 !important; }
html[data-ncg-theme="high-contrast"] .wrmn-btn.wrmn-btn-secondary,
html[data-ncg-theme="high-contrast"] .is-style-outline .wp-block-button__link { background: #000 !important; color: #FFFF00 !important; border: 2px solid #FFFF00 !important; }

/* ==========================================================================
   FORMS: registration and accommodation forms will live here, so they get
   the most care. 2px borders at 5.0:1, labels above fields, 44px fields,
   visible required marks, errors in the state's safety red with a thicker
   edge and a text prefix so color is never the only signal (WCAG 1.4.1,
   1.4.11, 3.3.1, 3.3.2).
   ========================================================================== */
:is(.ncg-form-group, .wrmn-form) label {
    color: var(--ncg-color-heading) !important; font-weight: 600; display: block; margin-bottom: 6px;
}
/* :where() keeps this at one class of specificity, so the invalid state below can override it. */
:is(.ncg-form-group, .wrmn-form) :where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select) {
    background-color: var(--ncg-color-bg-surface) !important;
    color: var(--ncg-color-body) !important;
    border: 2px solid var(--ncg-color-border) !important;
    border-radius: 4px; min-height: 44px; padding: 8px 12px; font: inherit; max-width: 100%;
}
:is(.ncg-form-group, .wrmn-form) :is(input, textarea)::placeholder { color: var(--ncg-color-muted) !important; opacity: 1; }
:is(.ncg-form-group, .wrmn-form) :is(input, textarea, select):focus { border-color: var(--ncg-focus) !important; }
:is(.wrmn-form, .entry-content) :is(input[type="checkbox"], input[type="radio"]) { width: 22px; height: 22px; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--wrmn-navy); }
html[data-ncg-theme="dark"] :is(.wrmn-form, .entry-content) :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--wrmn-gold); }
.wrmn-required { color: var(--wrmn-error); font-weight: 700; }
.wrmn-hint { display: block; color: var(--ncg-color-muted); font-size: .95rem; margin-top: 4px; }
.wrmn-field-error { display: block; color: var(--wrmn-error); font-weight: 600; margin-top: 4px; }
.wrmn-field-error::before { content: "Error: "; }
:is(input, textarea, select)[aria-invalid="true"] { border-color: var(--wrmn-error) !important; border-left-width: 6px !important; }
fieldset.wrmn-fieldset { border: 1px solid var(--ncg-color-border); border-top: 4px solid var(--wrmn-rule); padding: 16px 20px; border-radius: 4px; }
fieldset.wrmn-fieldset legend { font-family: var(--wrmn-font-display); font-weight: 700; color: var(--ncg-color-heading); padding: 0 6px; }
html[data-ncg-theme="high-contrast"] :is(.ncg-form-group, .wrmn-form) :is(input, textarea, select) { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html[data-ncg-theme="high-contrast"] :is(.wrmn-required, .wrmn-field-error) { color: #FFFF00; }
html[data-ncg-theme="high-contrast"] :is(input, textarea, select)[aria-invalid="true"] { border-color: #FFFF00 !important; }

/* ==========================================================================
   FOOTER: a deeper navy band, gold lining along the top, gold column heads,
   and the band's link states.
   ========================================================================== */
.wrmn-footer { background: var(--ncg-chrome-deep); color: var(--ncg-on-chrome); padding: 48px 0 0; border-top: 5px solid var(--wrmn-rule); }
#site-footer.wrmn-footer { max-width: none; width: 100%; }
.wrmn-footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.wrmn-footer-head {
    font-family: var(--wrmn-font-display); font-size: .85rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .12em; color: var(--wrmn-gold); margin: 0 0 14px; /* 11.2:1 */
}
.wrmn-footer-col ul { list-style: none; margin: 0; padding: 0; }
.wrmn-footer-col li { margin-bottom: 2px; }
.wrmn-footer-col a, .wrmn-footer-parent a {
    color: var(--wrmn-idle-text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 0.2em; display: inline-flex; align-items: center; min-height: 32px; padding: 0 5px; margin-left: -5px; border-radius: 2px;
}
.wrmn-footer-col a:hover, .wrmn-footer-parent a:hover { background: var(--wrmn-hover-bg); color: var(--wrmn-hover-text); text-decoration-color: currentColor; }
.wrmn-footer-col a[aria-current="page"] { background: var(--wrmn-current-bg); color: var(--wrmn-current-text); text-decoration: none; }
.wrmn-footer-wordmark { font-family: var(--wrmn-font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--ncg-on-chrome); margin: 0 0 10px; }
.wrmn-footer-tagline { color: var(--ncg-color-muted); line-height: 1.6; margin: 0 0 14px; max-width: 38ch; }
.wrmn-footer-parent { color: var(--ncg-color-muted); font-size: .92rem; margin: 0; line-height: 1.6; }
.wrmn-footer .site-footer-legal { max-width: 1200px; margin: 40px auto 0; padding: 18px 40px; border-top: 1px solid rgba(255, 200, 69, 0.45); text-align: center; }
.wrmn-footer .site-footer-legal p { margin: 0 0 4px; font-size: .85rem; color: var(--ncg-color-muted); }
html[data-ncg-theme="high-contrast"] .wrmn-footer { background: #000; border-top-color: #FFFF00; }
html[data-ncg-theme="high-contrast"] :is(.wrmn-footer-tagline, .wrmn-footer-parent, .wrmn-footer .site-footer-legal p, .wrmn-footer-wordmark) { color: #fff; }
html[data-ncg-theme="high-contrast"] .wrmn-footer-head { color: #FFFF00; }
html[data-ncg-theme="high-contrast"] :is(.wrmn-footer-col, .wrmn-footer-parent) a:hover { color: #000 !important; }
@media (max-width: 900px) { .wrmn-footer-inner { grid-template-columns: 1fr 1fr; } .wrmn-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .wrmn-footer-inner { grid-template-columns: 1fr; padding: 0 20px; } .wrmn-footer .site-footer-legal { padding: 18px 20px; } }

/* ==========================================================================
   WINDOWS CONTRAST THEMES (forced-colors). The system replaces every color
   and drops backgrounds and box-shadow, so the overlays vanish: the current
   menu item is ALSO a real border, focus is the outline alone, highlights use
   Mark, and lining is drawn with borders the system keeps.
   ========================================================================== */
@media (forced-colors: active) {
    :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid Highlight !important; }
    .wrmn-masthead { border-bottom: 5px solid CanvasText; }
    :is(.wrmn-hero, .wrmn-band) { border-block: 3px solid CanvasText; }
    .wrmn-footer { border-top: 5px solid CanvasText; }
    .wrmn-masthead .site-navigation ul.menu > li > a:hover { border-bottom-color: LinkText !important; }
    .wrmn-masthead .site-navigation ul.menu > li:is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a { border: 2px solid Highlight !important; border-bottom-width: 4px !important; }
    :is(.wrmn-card, .rec-card, .ncg-card, .wrmn-callout, fieldset.wrmn-fieldset) { border: 2px solid CanvasText; }
    :is(.wrmn-btn, .wrmn-btn-secondary, .wp-block-button__link, .wp-element-button, .ncg-btn-main, .rec-btn, .ncg-submit-btn, .ncg-header-cta, .wrmn-eyebrow) { border: 2px solid ButtonText !important; }
    :is(.entry-content > h2, .wrmn-section-title)::after { border-bottom-color: CanvasText; }
    :is(.entry-content table, .wrmn-table) th { border: 2px solid CanvasText; }
    :is(input, textarea, select)[aria-invalid="true"] { border-left: 6px solid Mark !important; }
}

/* ==========================================================================
   MORE CONTRAST (OS setting, default mode only; a toolbar choice already
   decides). Muted text goes to body color, hairlines go solid, links and
   card edges thicken, the hover overlay gains an edge.
   ========================================================================== */
@media (prefers-contrast: more) {
    html:not([data-ncg-theme]) {
        --ncg-color-muted: #1B1D1F;
        --ncg-color-border: #3E4145;
        --wrmn-rule-soft: #6D7074;
        --wrmn-on-chrome-muted: #FFFFFF;
    }
    html:not([data-ncg-theme]) a { text-decoration-thickness: 2px; }
    html:not([data-ncg-theme]) :is(.wrmn-card, .rec-card, .ncg-card) { border-width: 2px; border-top-width: 5px; }
    html:not([data-ncg-theme]) .wrmn-masthead .site-navigation ul.menu > li > a:hover { box-shadow: inset 0 0 0 2px #FFFFFF; }
    html:not([data-ncg-theme]) .wrmn-callout { border: 2px solid var(--wrmn-blue); border-left: 6px solid var(--wrmn-blue); }
}

/* ==========================================================================
   REDUCED MOTION: no transitions, no lift on hover, no smooth scrolling.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    :is(.ncg-header-cta, a.wrmn-card):hover { transform: none !important; }
}

/* ==========================================================================
   PRINT: event details get printed. Black on white, bands and overlays
   removed, external link targets shown.
   ========================================================================== */
@media print {
    :is(.wrmn-masthead, .wrmn-footer, .wrmn-band, .wrmn-hero) { background: #fff !important; color: #000 !important; border-color: #000 !important; box-shadow: none !important; }
    :is(.wrmn-masthead, .wrmn-footer, .wrmn-band, .wrmn-hero) * { color: #000 !important; background: transparent !important; }
    #ncg-a11y-bar, .ncg-menu-toggle, .site-header-end { display: none !important; }
    .entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* ==========================================================================
   ncg-event: listings, event pages and forms take the white-page / navy-band
   system through the plugin's --ncg-ev-* tokens.
   ========================================================================== */
.ncg-ev {
    --ncg-ev-button-bg: var(--wrmn-navy);
    --ncg-ev-button-text: #FFFFFF;
    --ncg-ev-button-hover-bg: var(--wrmn-gold);
    --ncg-ev-button-hover-text: var(--wrmn-navy);
    --ncg-ev-rule-color: var(--wrmn-rule);
    --ncg-ev-hero-background: var(--wrmn-navy);
    --ncg-ev-hero-color: #FFFFFF;
    --ncg-ev-error-color: var(--wrmn-error);
}
html[data-ncg-theme="dark"] .ncg-ev { --ncg-ev-button-bg: var(--wrmn-gold); --ncg-ev-button-text: var(--wrmn-navy); --ncg-ev-button-hover-bg: #FFFFFF; --ncg-ev-button-hover-text: var(--wrmn-navy); --ncg-ev-soft-bg: rgba(255, 255, 255, 0.05); --ncg-ev-hairline-color: rgba(255, 255, 255, 0.18); }
html[data-ncg-theme="high-contrast"] .ncg-ev { --ncg-ev-button-bg: #FFFF00; --ncg-ev-button-text: #000; --ncg-ev-button-hover-bg: #FFFFFF; --ncg-ev-button-hover-text: #000; --ncg-ev-rule-color: #FFFF00; --ncg-ev-hero-background: #000; --ncg-ev-soft-bg: #000; --ncg-ev-hairline-color: #FFFFFF; }
.ncg-ev-hero .ncg-ev-btn:not(.ncg-ev-btn-secondary) { background: var(--wrmn-gold); color: var(--wrmn-navy) !important; border-color: var(--wrmn-gold); }
.ncg-ev-hero .ncg-ev-btn:not(.ncg-ev-btn-secondary):hover { background: #FFFFFF; border-color: #FFFFFF; }
.ncg-ev-hero .ncg-ev-btn-secondary { border-color: var(--wrmn-gold) !important; }
html[data-ncg-theme="high-contrast"] .ncg-ev-hero .ncg-ev-btn:not(.ncg-ev-btn-secondary) { background: #FFFF00; color: #000 !important; }

/* ==========================================================================
   FOOTER VEIL: the page dissolves into the footer's navy above its gold rule,
   the same edge the banners have under the masthead.
   ========================================================================== */
.wrmn-footer { position: relative; }
.wrmn-footer::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% + 5px); height: min(72px, 12vh);
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--ncg-chrome-deep));
}
html[data-ncg-theme="high-contrast"] .wrmn-footer::before { background: linear-gradient(to bottom, transparent, #000); }
@media (forced-colors: active), print { .wrmn-footer::before { content: none; } }

/* ==========================================================================
   HEADER FIT (desktop): logo, five menu items with carets and the button on
   one row. The parent's caret is 1.5em with 15px padding, which pushed the
   button onto a second row at laptop widths.
   ========================================================================== */
@media (min-width: 901px) {
    .wrmn-masthead .site-header { max-width: 1240px; flex-wrap: nowrap; align-items: center; column-gap: 24px; padding-inline: 24px; box-sizing: border-box; }
    .wrmn-masthead .site-header-end { flex-wrap: nowrap; align-items: center; gap: 12px; }
    .wrmn-masthead .site-navigation ul.menu { flex-wrap: nowrap; gap: 2px; }
    .wrmn-masthead .site-navigation ul.menu > li > a { padding: 6px 10px; white-space: nowrap; }
    .wrmn-masthead .site-navigation ul.menu > li.menu-item-has-children { padding-inline-end: 4px; }
    .wrmn-masthead .site-navigation ul.menu > li.menu-item-has-children::after { font-size: 1em; margin-inline-start: -4px; }
    .wrmn-masthead .ncg-header-cta { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .wrmn-masthead .wrmn-logo { height: 60px; }
    .wrmn-masthead .site-navigation ul.menu > li > a { padding: 6px 8px; font-size: .95rem; }
}

/* ncg-comms newsletter: its topic boxes (insights, media, publications, store)
   belong to other sites. Hidden here; all stay checked, so a subscriber gets
   everything this site sends. */
.ncg-subscribe-box .ncg-sub-categories { display: none; }

/* ==========================================================================
   PHONE MENU: sub-items listed under their parent (no hover on a phone), no
   stray caret line, and an open button that stays visible.
   ========================================================================== */
@media (max-width: 900px) {
    .wrmn-masthead .site-header .ncg-menu-toggle,
    .wrmn-masthead .site-header.nav-open .ncg-menu-toggle { background: transparent !important; color: #FFFFFF !important; border: 2px solid var(--wrmn-gold) !important; }
    .wrmn-masthead .site-header.nav-open .ncg-menu-bars { background: transparent !important; }
    .wrmn-masthead .site-header.nav-open .ncg-menu-bars::before,
    .wrmn-masthead .site-header.nav-open .ncg-menu-bars::after { background: #FFFFFF !important; }
    .wrmn-masthead .site-navigation ul.menu li.menu-item-has-children { padding-inline-end: 0; display: block; }
    .wrmn-masthead .site-navigation ul.menu li.menu-item-has-children::after { content: none; }
    .wrmn-masthead .site-navigation ul.menu li ul {
        display: block; position: static; min-width: 0; background: transparent; border: 0; box-shadow: none;
        padding: 0 0 6px; margin: 0;
    }
    .wrmn-masthead .site-navigation ul.menu li ul li { display: block; border: 0; }
    .wrmn-masthead .site-navigation ul.menu li ul a { padding: 10px 10px 10px 28px; font-weight: 500; border-bottom: 0 !important; }
    html[data-ncg-theme="high-contrast"] .wrmn-masthead .site-navigation ul.menu li ul { border: 0; background: #000; }
    html[data-ncg-theme="high-contrast"] .wrmn-masthead .site-header .ncg-menu-toggle { border-color: #FFFF00 !important; }
}
