/* Deepavali · four days before the festival through the festival day. Loaded after the personal palettes. */
html[data-festival="deepavali"][data-bs-theme] {
    color-scheme: dark;
    --bs-primary: #edc66c;
    --bs-primary-active: #f6dca0;
    --bs-primary-light: #49332f;
    --bs-primary-inverse: #24132a;
    --bs-primary-rgb: 237, 198, 108;
    --bs-text-primary: #edc66c;
    --bs-link-color: #f6dca0;
    --bs-link-hover-color: #fff0c7;
    --bs-link-color-rgb: 246, 220, 160;
    --bs-link-hover-color-rgb: 255, 240, 199;
    --portal-page-bg: #211126;
    --portal-card-bg: #301d34;
    --portal-header-bg: #28162d;
    --portal-sidebar-bg: #190c1e;
    --portal-sidebar-text: #fff1fa;
    --portal-sidebar-muted: #c9b2c8;
    --portal-border: #604566;
    --portal-table-stripe: rgba(237, 198, 108, .035);
    --portal-shadow-color: rgba(0, 0, 0, .16);
    --bs-body-bg: #211126;
    --bs-body-color: #f3e5ee;
    --bs-body-color-rgb: 243, 229, 238;
    --bs-heading-color: #fff1fa;
    --bs-text-dark: #fff1fa;
    --bs-text-muted: #c9b2c8;
    --bs-gray-100: #3b263e;
    --bs-gray-200: #604566;
    --bs-gray-300: #806485;
    --bs-gray-400: #b69cb8;
    --bs-gray-500: #c9b2c8;
    --bs-gray-600: #d5bfd4;
    --bs-gray-700: #e6d2e3;
    --bs-gray-800: #f3e5ee;
    --bs-gray-900: #fff1fa;
    --bs-gray-100-rgb: 59, 38, 62;
    --bs-gray-200-rgb: 96, 69, 102;
    --bs-gray-300-rgb: 128, 100, 133;
    --bs-gray-400-rgb: 182, 156, 184;
    --bs-gray-500-rgb: 201, 178, 200;
    --bs-gray-600-rgb: 213, 191, 212;
    --bs-gray-700-rgb: 230, 210, 227;
    --bs-gray-800-rgb: 243, 229, 238;
    --bs-gray-900-rgb: 255, 241, 250;
    --bs-text-gray-100: var(--bs-gray-100);
    --bs-text-gray-200: var(--bs-gray-200);
    --bs-text-gray-300: var(--bs-gray-300);
    --bs-text-gray-400: var(--bs-gray-400);
    --bs-text-gray-500: var(--bs-gray-500);
    --bs-text-gray-600: var(--bs-gray-600);
    --bs-text-gray-700: var(--bs-gray-700);
    --bs-text-gray-800: var(--bs-gray-800);
    --bs-text-gray-900: var(--bs-gray-900);
    --bs-border-color: #604566;
    --bs-card-bg: #301d34;
    --bs-menu-dropdown-bg-color: #301d34;
    --bs-component-active-bg: #edc66c;
    --bs-component-hover-bg: #49332f;
}
html[data-festival="deepavali"] body {
    background: radial-gradient(ellipse at 100% 0, rgba(237, 198, 108, .08), transparent 48%), #211126;
}
html[data-festival="deepavali"] body.auth-bg {
    background:
        radial-gradient(ellipse at 16% 76%, rgba(237, 198, 108, .18), transparent 45%),
        radial-gradient(ellipse at 55% 10%, rgba(192, 105, 193, .14), transparent 40%),
        #190c1e !important;
}
html[data-festival="deepavali"] .auth-bg .bg-body {
    background: #301d34 !important;
    border: 1px solid #73506f;
    box-shadow: 0 28px 90px #0006;
}
html[data-festival="deepavali"] .card { border-top: 2px solid #987644; }
html[data-festival="deepavali"] .header { border-bottom: 1px solid #604566; }
html[data-festival="deepavali"] .form-control,
html[data-festival="deepavali"] .form-select,
html[data-festival="deepavali"] .select2-selection {
    background-color: #26152c;
    border-color: #78577a;
    color: #f3e5ee;
}
html[data-festival="deepavali"] .form-control::placeholder { color: #c9b2c8; opacity: 1; }
html[data-festival="deepavali"] .form-control:focus,
html[data-festival="deepavali"] .form-select:focus {
    border-color: #edc66c;
    box-shadow: 0 0 0 3px #edc66c26;
}
html[data-festival="deepavali"] .btn-primary {
    color: #24132a !important;
    background-color: #edc66c !important;
    border-color: #edc66c !important;
}
html[data-festival="deepavali"] .btn-primary:hover,
html[data-festival="deepavali"] .btn-primary:focus-visible {
    background-color: #f6dca0 !important;
    border-color: #f6dca0 !important;
}
html[data-festival="deepavali"] .btn-primary i { color: inherit !important; }
html[data-festival="deepavali"] .btn-light-primary,
html[data-festival="deepavali"] .badge-light-primary {
    color: #f6dca0 !important;
    background-color: #49332f !important;
}
html[data-festival="deepavali"] .bg-light-primary { background-color: #3c283d !important; }
html[data-festival="deepavali"] .form-check-input:checked {
    background-color: #edc66c;
    border-color: #edc66c;
}
html[data-festival="deepavali"] [data-kt-menu-trigger]:has(+ [data-portal-palette-menu]),
html[data-festival="deepavali"] [data-portal-palette-menu] { display: none !important; }
.deepavali-season {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #f6dca0;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
}

html[data-festival="deepavali"] .btn-secondary {
    color: #f3e5ee !important;
    background-color: #432949 !important;
    border-color: #78577a !important;
}
html[data-festival="deepavali"] .btn-secondary:hover {
    background-color: #49332f !important;
}

/* Light mode: ivory surfaces, saffron gold and a deep plum sidebar. */
html[data-festival="deepavali"][data-bs-theme="light"] {
    color-scheme: light;
    --bs-primary: #8c5814;
    --bs-primary-active: #70420c;
    --bs-primary-light: #faedcf;
    --bs-primary-inverse: #ffffff;
    --bs-primary-rgb: 140, 88, 20;
    --bs-text-primary: #8c5814;
    --bs-link-color: #8c5814;
    --bs-link-hover-color: #70420c;
    --bs-link-color-rgb: 140, 88, 20;
    --bs-link-hover-color-rgb: 112, 66, 12;
    --portal-page-bg: #faf5ed;
    --portal-card-bg: #fffdfa;
    --portal-header-bg: #fffcf6;
    --portal-sidebar-bg: #321a3c;
    --portal-sidebar-text: #fff1fa;
    --portal-sidebar-muted: #d7bfd8;
    --portal-border: #e4d6c8;
    --portal-table-stripe: rgba(140, 88, 20, .035);
    --portal-shadow-color: rgba(71, 37, 52, .06);
    --bs-body-bg: #faf5ed;
    --bs-body-color: #3d3042;
    --bs-body-color-rgb: 61, 48, 66;
    --bs-heading-color: #301b36;
    --bs-text-dark: #301b36;
    --bs-text-muted: #786b7a;
    --bs-gray-100: #f8f1e8;
    --bs-gray-200: #eee3d8;
    --bs-gray-300: #e4d6c8;
    --bs-gray-400: #b4a5b2;
    --bs-gray-500: #8c7b8b;
    --bs-gray-600: #786b7a;
    --bs-gray-700: #5b4a60;
    --bs-gray-800: #3d3042;
    --bs-gray-900: #301b36;
    --bs-gray-100-rgb: 248, 241, 232;
    --bs-gray-200-rgb: 238, 227, 216;
    --bs-gray-300-rgb: 228, 214, 200;
    --bs-gray-400-rgb: 180, 165, 178;
    --bs-gray-500-rgb: 140, 123, 139;
    --bs-gray-600-rgb: 120, 107, 122;
    --bs-gray-700-rgb: 91, 74, 96;
    --bs-gray-800-rgb: 61, 48, 66;
    --bs-gray-900-rgb: 48, 27, 54;
    --bs-border-color: #e4d6c8;
    --bs-card-bg: #fffdfa;
    --bs-menu-dropdown-bg-color: #fffdfa;
    --bs-component-active-bg: #8c5814;
    --bs-component-hover-bg: #faedcf;
}
html[data-festival="deepavali"][data-bs-theme="light"] body {
    background: radial-gradient(ellipse at 100% 0, #edc66c1f, transparent 48%), #faf5ed;
}
html[data-festival="deepavali"][data-bs-theme="light"] body.auth-bg {
    background: radial-gradient(ellipse at 16% 76%, #edc66c38, transparent 45%), radial-gradient(ellipse at 80% 10%, #a766a51a, transparent 40%), #faf5ed !important;
}
html[data-festival="deepavali"][data-bs-theme="light"] .auth-bg .bg-body {
    background: #fffdfa !important;
    border-color: #e4d6c8;
    box-shadow: 0 28px 90px #47253414;
}
html[data-festival="deepavali"][data-bs-theme="light"] .auth-bg img[src$="tsa-logo-hor-white.svg"] { filter: brightness(.16); }
html[data-festival="deepavali"][data-bs-theme="light"] #login-headline { color: #301b36 !important; }
html[data-festival="deepavali"][data-bs-theme="light"] .deepavali-season { color: #8c5814; }
html[data-festival="deepavali"][data-bs-theme="light"] .card { border-top-color: #d6a543; }
html[data-festival="deepavali"][data-bs-theme="light"] .header { border-bottom-color: #e4d6c8; }
html[data-festival="deepavali"][data-bs-theme="light"] .form-control,
html[data-festival="deepavali"][data-bs-theme="light"] .form-select,
html[data-festival="deepavali"][data-bs-theme="light"] .select2-selection { background-color: #fffdfa; border-color: #cdb9c9; color: #3d3042; }
html[data-festival="deepavali"][data-bs-theme="light"] .form-control::placeholder { color: #786b7a; }
html[data-festival="deepavali"][data-bs-theme="light"] .btn-primary { color: #fff !important; background-color: #8c5814 !important; border-color: #8c5814 !important; }
html[data-festival="deepavali"][data-bs-theme="light"] .btn-primary:hover,
html[data-festival="deepavali"][data-bs-theme="light"] .btn-primary:focus-visible { background-color: #70420c !important; border-color: #70420c !important; }
html[data-festival="deepavali"][data-bs-theme="light"] .btn-light-primary,
html[data-festival="deepavali"][data-bs-theme="light"] .badge-light-primary { color: #8c5814 !important; background-color: #faedcf !important; }
html[data-festival="deepavali"][data-bs-theme="light"] .bg-light-primary { background-color: #faedcf !important; }
html[data-festival="deepavali"][data-bs-theme="light"] .form-check-input:checked { background-color: #8c5814; border-color: #8c5814; }
html[data-festival="deepavali"][data-bs-theme="light"] .btn-secondary { color: #5b4a60 !important; background-color: #f2e9ed !important; border-color: #cdb9c9 !important; }
html[data-festival="deepavali"][data-bs-theme="light"] .btn-secondary:hover { background-color: #eadde5 !important; }
html[data-festival="deepavali"][data-bs-theme="light"] .festival-motion-toggle { color: #8c5814; background: #fffdfa; }
