/* ============================================================
   Dark sections — colour remap  ·  GENERATED FILE, DO NOT EDIT
   ============================================================
   Auto-generated by scripts/build-dark-sections.mjs from the Bricks
   Color Palette export. It re-declares every dark-mode colour onto the
   dark-section classes, so a dark island on a light page looks exactly
   like page Dark Mode.

   DON'T edit this file. To change a dark colour: edit it in the Bricks
   Color Manager, re-export the palette, then run:
       npm run build:dark-sections

   Page-level Dark Mode itself is still generated by Bricks — this file
   only extends those same values to the section classes.

   Source : canon/design-system/bricks-color-palette.json
   Tokens : 35 colours that change in dark mode
   ============================================================ */

.section--dark,
.section--dark-neutral {
    --text-heading:             var(--white);
    --text-base:                var(--white);
    --text-strong:              var(--white);
    --text-secondary:           var(--white-t-7);
    --text-inverse:             var(--black);
    --text-highlight-accent:    var(--red-100);
    --list-marker-accent:       var(--red-300);
    --text-highlight-primary:   var(--grey-300);
    --list-marker-primary:      var(--red-300);
    --text-link:                var(--white);
    --text-link-hover:          var(--red-100);
    --text-error:               var(--signal-red-300);
    --text-success:             var(--green-400);
    --surface-base:             var(--grey-800);
    --surface-subtle:           var(--grey-900);
    --surface-soft:             var(--grey-800);
    --border-subtle:            var(--grey-200-t-4);
    --border-default:           var(--white-t-7);
    --action-primary:           var(--white);
    --action-primary-hover:     var(--grey-200);
    --action-primary-text:      var(--black);
    --action-accent:            var(--red-400);
    --action-accent-hover:      var(--red-500);
    --text-placeholder:         var(--white-t-7);
    --text-inverse-neutral:     var(--grey-900);
    --surface-inverse-primary:  var(--white);
    --text-inverse-primary:     var(--black);
    --border-strong:            var(--white);
    --border-highlight-primary: var(--grey-300);
    --border-highlight-accent:  var(--red-400);
    --action-neutral:           var(--white);
    --action-neutral-hover:     var(--grey-100);
    --action-neutral-text:      var(--grey-900);
    --accent-decorative:        var(--red-300);
    --surface-inverse-neutral:  var(--grey-200);
}

/* Page Dark Mode: a hero on a LIGHT photo turns into a dark state
   (Katrine's rule, 2026-09-03 — light overlays become dark, never the
   reverse). The scrim itself flips in components/hero.css; the text tokens flip
   here, generated from the same palette values as the dark sections.
   The html prefix outranks .section--on-light's own light remap. */
html[data-brx-theme="dark"] .section--on-light {
    --text-heading:             var(--white);
    --text-base:                var(--white);
    --text-strong:              var(--white);
    --text-secondary:           var(--white-t-7);
    --text-inverse:             var(--black);
    --text-highlight-accent:    var(--red-100);
    --list-marker-accent:       var(--red-300);
    --text-highlight-primary:   var(--grey-300);
    --list-marker-primary:      var(--red-300);
    --text-link:                var(--white);
    --text-link-hover:          var(--red-100);
    --text-error:               var(--signal-red-300);
    --text-success:             var(--green-400);
    --surface-base:             var(--grey-800);
    --surface-subtle:           var(--grey-900);
    --surface-soft:             var(--grey-800);
    --border-subtle:            var(--grey-200-t-4);
    --border-default:           var(--white-t-7);
    --action-primary:           var(--white);
    --action-primary-hover:     var(--grey-200);
    --action-primary-text:      var(--black);
    --action-accent:            var(--red-400);
    --action-accent-hover:      var(--red-500);
    --text-placeholder:         var(--white-t-7);
    --text-inverse-neutral:     var(--grey-900);
    --surface-inverse-primary:  var(--white);
    --text-inverse-primary:     var(--black);
    --border-strong:            var(--white);
    --border-highlight-primary: var(--grey-300);
    --border-highlight-accent:  var(--red-400);
    --action-neutral:           var(--white);
    --action-neutral-hover:     var(--grey-100);
    --action-neutral-text:      var(--grey-900);
    --accent-decorative:        var(--red-300);
    --surface-inverse-neutral:  var(--grey-200);
}

/* Header on top of a DARK hero in Light Mode (navigation.css §1): the
   see-through bar takes the dark-section tokens while it is at the top
   or rolling away, so logo, menu and toggle read on the dark photo. The
   see-through condition is the one defined in navigation.css §1 — keep
   the three copies identical. The three other mode/hero pairings already
   match the page mode. */
html:not([data-brx-theme="dark"]) body:has(.section--dark-neutral > .header-over-hero) #brx-header:is(:not(.scrolling), .slide-up:not(:has(:focus-visible))) {
    --text-heading:             var(--white);
    --text-base:                var(--white);
    --text-strong:              var(--white);
    --text-secondary:           var(--white-t-7);
    --text-inverse:             var(--black);
    --text-highlight-accent:    var(--red-100);
    --list-marker-accent:       var(--red-300);
    --text-highlight-primary:   var(--grey-300);
    --list-marker-primary:      var(--red-300);
    --text-link:                var(--white);
    --text-link-hover:          var(--red-100);
    --text-error:               var(--signal-red-300);
    --text-success:             var(--green-400);
    --surface-base:             var(--grey-800);
    --surface-subtle:           var(--grey-900);
    --surface-soft:             var(--grey-800);
    --border-subtle:            var(--grey-200-t-4);
    --border-default:           var(--white-t-7);
    --action-primary:           var(--white);
    --action-primary-hover:     var(--grey-200);
    --action-primary-text:      var(--black);
    --action-accent:            var(--red-400);
    --action-accent-hover:      var(--red-500);
    --text-placeholder:         var(--white-t-7);
    --text-inverse-neutral:     var(--grey-900);
    --surface-inverse-primary:  var(--white);
    --text-inverse-primary:     var(--black);
    --border-strong:            var(--white);
    --border-highlight-primary: var(--grey-300);
    --border-highlight-accent:  var(--red-400);
    --action-neutral:           var(--white);
    --action-neutral-hover:     var(--grey-100);
    --action-neutral-text:      var(--grey-900);
    --accent-decorative:        var(--red-300);
    --surface-inverse-neutral:  var(--grey-200);
}

/* …except on a stacked hero whose image stands ABOVE the text (hero.css
   §8b, Katrine 09-10-2026): the bar is solid again, so every token goes
   back to the page's own value. Same @media and reason as navigation.css
   §1: the bar sits outside the hero, and the hero spans the viewport. */
@media (width < 56rem) {
    html:not([data-brx-theme="dark"]) body:has(.section--dark-neutral.hero-image-position--above > .header-over-hero) #brx-header:is(:not(.scrolling), .slide-up:not(:has(:focus-visible))) {
        --text-heading:             revert-layer;
        --text-base:                revert-layer;
        --text-strong:              revert-layer;
        --text-secondary:           revert-layer;
        --text-inverse:             revert-layer;
        --text-highlight-accent:    revert-layer;
        --list-marker-accent:       revert-layer;
        --text-highlight-primary:   revert-layer;
        --list-marker-primary:      revert-layer;
        --text-link:                revert-layer;
        --text-link-hover:          revert-layer;
        --text-error:               revert-layer;
        --text-success:             revert-layer;
        --surface-base:             revert-layer;
        --surface-subtle:           revert-layer;
        --surface-soft:             revert-layer;
        --border-subtle:            revert-layer;
        --border-default:           revert-layer;
        --action-primary:           revert-layer;
        --action-primary-hover:     revert-layer;
        --action-primary-text:      revert-layer;
        --action-accent:            revert-layer;
        --action-accent-hover:      revert-layer;
        --text-placeholder:         revert-layer;
        --text-inverse-neutral:     revert-layer;
        --surface-inverse-primary:  revert-layer;
        --text-inverse-primary:     revert-layer;
        --border-strong:            revert-layer;
        --border-highlight-primary: revert-layer;
        --border-highlight-accent:  revert-layer;
        --action-neutral:           revert-layer;
        --action-neutral-hover:     revert-layer;
        --action-neutral-text:      revert-layer;
        --accent-decorative:        revert-layer;
        --surface-inverse-neutral:  revert-layer;
    }
}
