/*
 * TEG Reclamation Services colours, from the letterhead: charcoal (#1e2327) for marks and type, gold (#ad8346) for
 * accents, warm neutral grounds. Loaded after the app's own CSS for companies whose brand is "teg"
 * (App\Support\Brand), so it only restates the ladder's tokens (resources/css/tegops-ladder.css, section 1) and a few
 * brand touches. Filament's primary palette is charcoal in light mode and gold in dark.
 */
:root {
    --tl-blue: #1e2327;
    --tl-blue-hover: #31383e;
    --tl-ink: #6b4f21;
    --tl-tint-1: #f9f7f3;
    --tl-tint-2: #f4efe6;
    --tl-tint-3: #ede4d4;
    --tl-tint-4: #dfd0b5;

    --tg-bg: #f4f3f0;
    --tg-sidebar: #f4f3f0;
    --tg-surface: #ffffff;
    --tg-surface-2: #f8f7f4;
    --tg-surface-3: #efede9;
    --tg-hover: rgb(30 35 39 / 0.045);
    --tg-pressed: rgb(30 35 39 / 0.085);

    --tg-border: #e6e3dd;
    --tg-border-subtle: #efede8;
    --tg-border-strong: #d3cfc7;

    --tg-heading: #14181b;
    --tg-text: #1e2327;
    --tg-text-2: #43494f;
    --tg-muted: #5d6369;
    --tg-faint: #666c72;

    --tg-focus-ring: 0 0 0 3px rgb(173 131 70 / 0.32);
    --tg-neutral-soft: #f0eeea;
    --tg-neutral-border: #e3e0da;
    --tg-chart-1: #ad8346;
    --tg-chart-grid: #efede8;

    --tg-gold: #ad8346;
    --tg-gold-soft: #f4efe6;

    --primary-50: #f4f5f6;
    --primary-100: #e7e9eb;
    --primary-200: #cfd3d7;
    --primary-300: #a9b0b6;
    --primary-400: #78828a;
    --primary-500: #4f5961;
    --primary-600: #1e2327;
    --primary-700: #181c1f;
    --primary-800: #121518;
    --primary-900: #0d0f11;
    --primary-950: #08090a;
}

.dark {
    --tl-blue: #c9a467;
    --tl-blue-hover: #d8b77f;
    --tl-ink: #ecdcbf;
    --tl-tint-1: #101315;
    --tl-tint-2: rgb(201 164 103 / 0.13);
    --tl-tint-3: rgb(201 164 103 / 0.21);
    --tl-tint-4: rgb(201 164 103 / 0.32);
    --tg-bg: #0e1113;
    --tg-sidebar: #0e1113;
    --tg-surface: #161a1d;
    --tg-surface-2: #1a1f22;
    --tg-surface-3: #20262a;
    --tg-border: #2a3034;
    --tg-border-subtle: #22282c;
    --tg-border-strong: #3a4146;
    --tg-on-accent: #121417;
    --tg-chart-1: #c9a467;
    --tg-chart-grid: #22282c;
    --tg-gold: #c9a467;
    --tg-gold-soft: rgb(201 164 103 / 0.13);

    --primary-400: #d8b77f;
    --primary-500: #c9a467;
    --primary-600: #ad8346;
}

/* The brand in the sidebar: the seal, then TEG over RECLAMATION SERVICES; only the seal when it is folded away. */
.tg-brand-teg { display: inline-flex; align-items: center; gap: 0.625rem; height: 2.5rem; }
.tg-brand-teg .tg-brand-seal { width: 2.5rem; height: 2.5rem; flex: none; }
.tg-brand-teg .tg-brand-words { height: 1.5rem; width: auto; }
.tg-brand-teg .tg-brand-words-dark, .dark .tg-brand-teg .tg-brand-words-light { display: none; }
.dark .tg-brand-teg .tg-brand-words-dark { display: block; }
.fi-sidebar:not(.fi-sidebar-open) .tg-brand-teg .tg-brand-words { display: none !important; }

/* The open page in the menu carries a short gold mark, as the letterhead carries its gold rule. */
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { position: relative; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before {
    content: ""; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 3px; background: var(--tg-gold);
}

/* Sign-in: charcoal like the letterhead's bands, the logo in white and gold, the seal faint in the corner. */
.tg-login-aside.is-branded { background: #1e2327; color: #c9cdd1; }
.tg-login-aside.is-branded::after {
    content: ""; position: absolute; right: -9rem; bottom: -9rem; width: 30rem; height: 30rem; z-index: 0;
    background: url("seal.svg") center / contain no-repeat; opacity: 0.06; filter: grayscale(1) brightness(2.4);
}
.tg-login-aside.is-branded::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 1;
    background: linear-gradient(90deg, #121518 0 38%, #ad8346 38% 100%);
}
.tg-login-lockup { display: block; height: 5.25rem; width: auto; max-width: 100%; }
.tg-login-aside.is-branded .tg-login-eyebrow { color: #c9a467; }
.tg-login-aside.is-branded .tg-login-lede, .tg-login-aside.is-branded .tg-login-point-text { color: #a9afb5; }
.tg-login-aside.is-branded .tg-login-point-icon { color: #c9a467; background: rgb(201 164 103 / 0.1); box-shadow: inset 0 0 0 1px rgb(201 164 103 / 0.22); }
.tg-login-aside.is-branded .tg-login-trust { color: #8b9298; }
.tg-login-aside.is-branded .tg-login-trust .tg-dot { background: #c9a467; }
.dark .tg-login-aside.is-branded { background: #121518; }
@media (max-width: 47.99rem) { .tg-login-lockup { height: 3.25rem; } }

/* Customer portal: the letterhead's charcoal strip with the logo and TEG's phone and website. */
.cp-letterhead {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    padding: 1.25rem 1.5rem 1.5rem; border-radius: var(--tg-radius-xl); background: #1e2327; overflow: hidden;
}
.cp-letterhead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #121518 0 34%, #ad8346 34% 100%); }
.cp-letterhead-logo { height: 3.75rem; width: auto; max-width: 100%; }
.cp-letterhead-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 0.125rem; font-size: var(--tg-fs-sm); }
.cp-letterhead-contact a { color: #e8eaec; text-decoration: none; font-weight: 600; }
.cp-letterhead-contact a + a { color: #c9a467; font-weight: 500; }
@media (max-width: 40rem) { .cp-letterhead-logo { height: 2.75rem; } .cp-letterhead-contact { align-items: flex-start; } }
