/* HUNT light palette (flag light_contrast). Loaded right after hunt-dark.css by _LayoutHead and _AuthLayout. Every
   rule needs BOTH data-hunt-light=on (rendered on <html> while the flag is on; Models/View/HuntTheme.cs) and
   data-bs-theme=light, so the dark theme, and System when it resolves to dark, never match anything here. Flag off
   (data-hunt-light=off) is Metronic's stock light theme, exactly as before.

   Why: Metronic's stock light palette is airy but unreadable in places. Muted text (#99A1B7) is 2.6:1 on white, the
   link and button blue (#1B84FF) 3.6:1, green text 2.3:1, amber text 1.7:1, input borders 1.3:1, and white cards sit
   on a white page with a 1.1:1 border. This file holds light mode to WCAG 2.2 AA:
   - every text color is 4.5:1 or more on the page (#F4F5F7), on cards (#FFFFFF) and on its own "-light" tint, and
     menu link colors also on a hovered row (#EEF0F3);
   - fills keep 4.5:1 with their ink: white on primary, success, danger and info; dark ink on the amber warning fill;
   - input borders are 3:1 (WCAG 1.4.11), focus is a solid 2px ring;
   - surfaces: a light gray page with white cards and a visible border, so sections separate;
   - the two smallest type sizes (fs-8 11px, fs-9 9.75px on a 13px base) rise to 11.7px and 11px.
   New CSS keeps using the theme variables (var(--bs-primary), --bs-gray-*, --bs-*-light, text-muted ...) so it picks
   this palette up; never hard-code a light hex. */

[data-hunt-light=on][data-bs-theme=light] {
	/* Surfaces */
	--bs-page-bg: #F4F5F7;
	--bs-app-blank-bg: #F4F5F7;
	--bs-body-bg: #FFFFFF;
	--bs-header-bg-color: #FFFFFF;
	--bs-header-border-color: #DDE1E8;
	--bs-root-card-border-color: #DDE1E8;
	--bs-root-card-box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.06);
	--bs-border-color: #E3E6EC;
	--bs-border-dashed-color: #C3C9D5;
	--bs-menu-link-bg-color-hover: #EEF0F3;
	--bs-menu-link-bg-color-show: #EEF0F3;
	--bs-menu-link-bg-color-here: #EEF0F3;
	--bs-menu-link-bg-color-active: #EEF0F3;
	--hunt-input-border: #848DA3;

	/* Grays: 100-300 are fills and dividers, 500-900 are text (500 = muted, 900 = body) */
	--bs-gray-100: #F4F5F7;
	--bs-gray-100-rgb: 244, 245, 247;
	--bs-gray-500: #606A84;
	--bs-gray-500-rgb: 96, 106, 132;
	--bs-gray-600: #58627E;
	--bs-gray-600-rgb: 88, 98, 126;
	--bs-text-muted: #606A84;
	--bs-text-gray-500: #606A84;
	--bs-text-gray-600: #58627E;
	--bs-menu-heading-color: #606A84;
	--bs-input-solid-placeholder-color: #606A84;

	/* Primary: one fill blue (white text 5.1:1) and a deeper text blue for links and menus (5.2:1 on a hover) */
	--bs-primary: #0B6BDB;
	--bs-primary-rgb: 11, 107, 219;
	--bs-primary-active: #0957B8;
	--bs-primary-light: #E8F1FD;
	--bs-primary-inverse: #FFFFFF;
	--bs-text-primary: #0A5FCC;
	--bs-link-color: #0A5FCC;
	--bs-link-color-rgb: 10, 95, 204;
	--bs-link-hover-color: #084A9E;
	--bs-link-hover-color-rgb: 8, 74, 158;
	--bs-menu-link-color-hover: #0A5FCC;
	--bs-menu-link-color-show: #0A5FCC;
	--bs-menu-link-color-here: #0A5FCC;
	--bs-menu-link-color-active: #0A5FCC;
	--bs-scrolltop-bg-color: #0B6BDB;
	/* Active pagination, list-group and dropdown items: the fill blue under their white text (Metronic's #1B84FF is 3.6:1) */
	--bs-component-active-bg: #0B6BDB;
	--bs-component-hover-color: #0A5FCC;

	/* Success, danger, info: one darker color each, for text and for fills with white ink */
	--bs-success: #117A3C;
	--bs-success-rgb: 17, 122, 60;
	--bs-success-active: #0E6A33;
	--bs-success-inverse: #FFFFFF;
	--bs-success-light: #DFFFEA;
	--bs-text-success: #117A3C;
	--bs-danger: #C8102E;
	--bs-danger-rgb: 200, 16, 46;
	--bs-danger-active: #A50D26;
	--bs-danger-inverse: #FFFFFF;
	--bs-danger-light: #FFEEF3;
	--bs-text-danger: #C8102E;
	--bs-info: #6531D6;
	--bs-info-rgb: 101, 49, 214;
	--bs-info-active: #5225B4;
	--bs-info-inverse: #FFFFFF;
	--bs-info-light: #F8F5FF;
	--bs-text-info: #6531D6;

	/* Warning: the amber FILL stays (#F6C000) with dark ink; amber TEXT is a dark gold */
	--bs-warning: #F6C000;
	--bs-warning-active: #DEAD00;
	--bs-warning-light: #FFF8DD;
	--bs-warning-inverse: #071437;
	--bs-text-warning: #8A5A00;

	/* Form validation */
	--bs-form-invalid-color: #C8102E;
	--bs-form-invalid-border-color: #C8102E;
	--bs-form-valid-color: #117A3C;
	--bs-form-valid-border-color: #117A3C;
}

/* Amber as text: Metronic paints these from --bs-warning, the fill color (1.6:1 on its tint) */
:where([data-hunt-light=on][data-bs-theme=light]) :is(.text-warning, .link-warning, .text-hover-warning:hover) {
	color: var(--bs-text-warning) !important;
}

/* Blue text on the pale blue tint: the deeper text blue (5.3:1); the fill blue is 4.45:1 there */
:where([data-hunt-light=on][data-bs-theme=light]) :is(.badge-light-primary, .btn.btn-light-primary:not(:hover):not(.active):not(:active), .symbol-label.bg-light-primary) {
	color: var(--bs-text-primary);
}

/* The same on notices, active light buttons (filter tabs) and primary-titled menus (Admin aside, header menus), which
   Metronic paints from --bs-primary on the tint or on a hovered row (4.45:1) */
:where([data-hunt-light=on][data-bs-theme=light]) .alert-primary,
:where([data-hunt-light=on][data-bs-theme=light]) .btn.btn-active-light-primary:is(.active, .show, :hover, :focus, :active):not(.btn-active),
:where([data-hunt-light=on][data-bs-theme=light]) .btn-check:is(:checked, :active) + .btn.btn-active-light-primary,
:where([data-hunt-light=on][data-bs-theme=light]) .menu-state-title-primary :is(.menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here), .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here), .menu-item.here > .menu-link, .menu-item.show > .menu-link, .menu-item .menu-link.active),
:where([data-hunt-light=on][data-bs-theme=light]) .menu-state-title-primary :is(.menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here), .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here), .menu-item.here > .menu-link, .menu-item.show > .menu-link, .menu-item .menu-link.active) .menu-title {
	color: var(--bs-text-primary);
}

:where([data-hunt-light=on][data-bs-theme=light]) .alert-warning,
:where([data-hunt-light=on][data-bs-theme=light]) .badge-light-warning,
:where([data-hunt-light=on][data-bs-theme=light]) .btn.btn-light-warning {
	color: var(--bs-text-warning);
}

/* Inputs: a 3:1 border, the solid (gray-filled) inputs included; the primary blue on focus */
:where([data-hunt-light=on][data-bs-theme=light]) :is(.form-control, .form-select) {
	border-color: var(--hunt-input-border);
}

:where([data-hunt-light=on][data-bs-theme=light]) :is(.form-control, .form-select).form-control-solid:not(.is-invalid):not(.is-valid),
:where([data-hunt-light=on][data-bs-theme=light]) .form-select.form-select-solid:not(.is-invalid):not(.is-valid) {
	border-color: var(--hunt-input-border);
}

:where([data-hunt-light=on][data-bs-theme=light]) :is(.form-control, .form-select):focus,
:where([data-hunt-light=on][data-bs-theme=light]) :is(.form-control.form-control-solid, .form-select.form-select-solid):focus {
	border-color: var(--bs-primary);
}

:where([data-hunt-light=on][data-bs-theme=light]) .form-check-input {
	border-color: var(--hunt-input-border);
}

/* Keyboard focus: a solid ring instead of the 25% glow */
:where([data-hunt-light=on][data-bs-theme=light]) :is(a, .btn, .form-control, .form-select, .form-check-input, .menu-link, .nav-link, [tabindex]):focus-visible {
	outline: 2px solid var(--bs-primary) !important;
	outline-offset: 2px;
}

/* The two smallest type sizes: 11px -> 11.7px, 9.75px -> 11px on the 13px base */
:where([data-hunt-light=on][data-bs-theme=light]) .fs-8 {
	font-size: 0.9rem !important;
}

:where([data-hunt-light=on][data-bs-theme=light]) .fs-9 {
	font-size: 0.85rem !important;
}
