/* ================================================================
   themes/contrast/light.css — high contrast, light side

   Loaded last, only when high contrast applies on a light page: the
   visitor chose it in the footer, or the device asks for more
   contrast and the visitor hasn't said otherwise. This is the
   conforming alternate version for WCAG 1.4.3 (technique G174); the
   standard look is left as it is.

   The shared block folds every quiet text tone into the theme's own
   secondary ink and darkens borders to it. Each theme then deepens
   its brand and accent within the same hue.
   ================================================================ */

:root {
    --text-subtle:          var(--text-secondary);
    --text-muted:           var(--text-secondary);
    --text-faint:           var(--text-secondary);
    --text-neutral:         var(--text-secondary);
    --text-neutral-faint:   var(--text-secondary);
    --band-text-muted:      var(--text-secondary);
    --field-placeholder:    var(--text-secondary);
    --field-disabled-text:  var(--text-secondary);
    --action-disabled-text: var(--text-secondary);

    --editorial-text-mid:   var(--editorial-text-soft);
    --editorial-text-muted: var(--editorial-text-soft);
    --editorial-text-faint: var(--editorial-text-soft);
    --editorial-text-dim:   var(--editorial-text-soft);

    --border-strong:     var(--text-secondary);
    --border-default:    var(--text-secondary);
    --field-border:      var(--text-secondary);
    --bs-field-border:   var(--text-secondary);
    --toggle-track-off:  var(--text-secondary);
    --card-border:       var(--text-secondary);
    --card-fill-border:  var(--text-secondary);

    --footer-tagline:    rgba(var(--on-inverse-rgb), 0.8);
    --bs-code:           #B0306B;

    --link-hover: var(--brand-primary-active);

    /* Status keeps its hue and loses only lightness. */
    --status-success-fg:  #2A6340;
    --status-warning-fg:  #5E4A14;
    --status-info-fg:     #1F4E86;
    --status-caution-fg:  #7A4A0E;
    --status-danger-fg:   #A93226;
    --status-neutral-fg:  var(--text-secondary);
    --severity-low-fg:    #2F5E2F;
    --severity-high-fg:   #A2391C;
    --severity-high-rgb:  162, 57, 28;
    --flag-proposed-fg:   #5B2FA6;
    --flag-off-fg:        #7A2E10;

    --action-danger-rgb:   183, 28, 28;
    --action-danger-hover: #8E1515;
    --status-danger-solid: #A93226;
    --status-danger-hover: #8C2A20;
}

[data-theme="default"] {
    --text-secondary:        #2C4458;
    --brand-primary:         #8B2D50;
    --brand-primary-rgb:     139, 45, 80;
    --brand-primary-hover:   #9B3056;
    --brand-primary-active:  #6E2140;
    --brand-primary-deep:    #6E2140;
    --brand-primary-shade:   #6E2140;
    --label-on-inverse:      var(--palette-berry-bright);
    --footer-brand-hover:    var(--palette-berry-bright);
    --brand-secondary:       #2F6B45;
    --brand-secondary-rgb:   47, 107, 69;
    --brand-tertiary:        #5B47D6;
    --accent-primary:        #6B5418;
    --accent-primary-rgb:    107, 84, 24;
    --accent-primary-hover:  #5E4A14;
    --text-on-accent:        var(--palette-white);
    --accent-tertiary:       #1F4E86;
    --accent-tertiary-rgb:   31, 78, 134;
    --bs-link:               #0A4FB5;
    --bs-link-hover:         #083F91;
    --bs-primary-bg:         #0A58CA;
    --bs-primary-border:     #0A58CA;
    --bs-primary-hover:      #084BAD;
    --bs-primary-active:     #083F91;
}

[data-theme="thanksgiving"] {
    --text-secondary:        #5A3D3A;
    --accent-primary:        var(--palette-cajun-deep);
    --accent-primary-rgb:    148, 55, 30;
    --accent-primary-hover:  #7A2D18;
    --accent-harvest:        #9A3A10;
    --accent-harvest-rgb:    154, 58, 16;
    --accent-gold:           #6E5010;
    --accent-gold-rgb:       110, 80, 16;
    --accent-tertiary:       #5C4660;
    --accent-tertiary-rgb:   92, 70, 96;
    --brand-secondary:       var(--palette-garden-deeper);
    --brand-secondary-rgb:   63, 107, 59;
}

[data-theme="halloween"] {
    --brand-primary:         var(--palette-ember-deep);
    --brand-primary-rgb:     143, 48, 15;
    --brand-primary-hover:   var(--palette-ember-dark);
    --brand-primary-active:  #6A260F;
    --brand-primary-deep:    #6A260F;
    --brand-primary-shade:   #6A260F;
    --brand-secondary:       #116632;
    --brand-secondary-rgb:   17, 102, 50;
    --brand-tertiary:        #5B21B6;
    --accent-primary:        #8A4B04;
    --accent-primary-rgb:    138, 75, 4;
    --accent-primary-hover:  #733E03;
    --text-on-accent:        var(--palette-white);
    --accent-tertiary:       #5B21B6;
    --accent-tertiary-rgb:   91, 33, 182;
    --bs-primary-focus-rgb:  143, 48, 15;
    --bs-field-focus-rgb:    143, 48, 15;
}

[data-theme="christmas"] {
    --brand-primary:         var(--palette-pine-deep);
    --brand-primary-rgb:     23, 74, 48;
    --brand-primary-hover:   var(--palette-pine);
    --brand-primary-active:  var(--palette-pine-darker);
    --brand-primary-deep:    var(--palette-pine-darker);
    --brand-primary-shade:   var(--palette-pine-darker);
    --brand-secondary:       var(--palette-pine);
    --brand-secondary-rgb:   31, 92, 61;
    --accent-primary:        var(--palette-cranberry-deep);
    --accent-primary-rgb:    134, 26, 48;
    --accent-primary-hover:  #6E1527;
    --accent-harvest:        var(--palette-cranberry-deep);
    --accent-harvest-rgb:    134, 26, 48;
    --accent-gold:           var(--palette-gold-dark);
    --accent-gold-rgb:       122, 87, 16;
    --accent-tertiary:       var(--palette-pine);
    --accent-tertiary-rgb:   31, 92, 61;
    --bs-link:               var(--palette-pine-deep);
    --bs-link-hover:         var(--palette-pine-darker);
    --bs-primary-bg:         var(--palette-pine-deep);
    --bs-primary-border:     var(--palette-pine-deep);
    --bs-primary-hover:      var(--palette-pine);
    --bs-primary-active:     var(--palette-pine-darker);
}
