/* Shared Upper Peninsula palette. Keep event and validation colors semantic. */
:root {
    --up-pine: #244535;
    --up-pine-dark: #193526;
    --up-lake: #315d73;
    --up-cream: #f2efe6;
    --up-card: #fffefa;
    --up-copper: #974b28;
    --up-text: #29312b;
    --up-muted: #59675e;
    --up-border: #d8d9ce;
}
body.nrgc-site {
    --nrgc-navy: var(--up-pine);
    --nrgc-blue: var(--up-pine);
    --nrgc-blue-dark: var(--up-pine-dark);
    --nrgc-sky: #e8ede3;
    --nrgc-border: var(--up-border);
    --nrgc-text: var(--up-text);
    color: var(--up-text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    accent-color: var(--up-pine);
}
@media screen {
    body.nrgc-site { background: var(--up-cream) !important; }
}
.nrgc-site .nrgc-header,
.nrgc-site .nrgc-nav__submenu { background: var(--up-card); box-shadow: 0 8px 30px rgba(36, 69, 53, .11); }
.nrgc-site .nrgc-brand__mark { background: linear-gradient(145deg, #365c45, #244535); box-shadow: 0 5px 12px rgba(36, 69, 53, .22); }
.nrgc-site .nrgc-brand__location,
.nrgc-site .nrgc-user__text small { color: var(--up-muted); }
.nrgc-site .nrgc-nav__login { box-shadow: 0 4px 10px rgba(36, 69, 53, .18); }
.nrgc-site .nrgc-nav-toggle { border-color: var(--up-border); }
.nrgc-site .simple-footer { color: #f3eee5; background: var(--up-pine); border-top-color: #a6b29b; }
.nrgc-site .simple-footer__links a { color: #f3eee5; }
.nrgc-site .simple-footer__links a:hover { color: #fff; }
.nrgc-site .simple-footer__links > span { color: #a6b29b; }
.nrgc-site .simple-footer__legal { color: #d9dfcb; border-top-color: #526b58; }
.nrgc-site a:focus-visible,
.nrgc-site button:focus-visible,
.nrgc-site input:focus-visible,
.nrgc-site select:focus-visible,
.nrgc-site textarea:focus-visible { outline: 3px solid var(--up-copper); outline-offset: 3px; }

/* Older Bootstrap forms, classified pages and standalone reports. */
.nrgc-legacy h1, .nrgc-legacy h2, .nrgc-legacy h3,
.nrgc-legacy h4, .nrgc-legacy h5, .nrgc-legacy h6 { color: var(--up-pine); }
/* :where() skips the shared header/footer (they set their own colors) without raising specificity. */
.nrgc-legacy a:where(:not(.nrgc-header *, .simple-footer *)) { color: var(--up-lake); }
.nrgc-legacy a:where(:not(.nrgc-header *, .simple-footer *)):hover { color: var(--up-pine-dark); }
.nrgc-site .bg-primary,
.nrgc-site .btn-primary,
.nrgc-site .menu-background,
.nrgc-site .logo-background { background: var(--up-pine) !important; border-color: var(--up-pine); color: #fff; }
.nrgc-site .btn-primary:hover { background: var(--up-pine-dark) !important; border-color: var(--up-pine-dark); color: #fff; }
.nrgc-site .navbar-dark .nav-link,
.nrgc-site .navbar-dark a { color: #fff; }
.nrgc-site .buttonOTD1,
.nrgc-site .buttonOTD2,
.nrgc-site .buttonsNRGC { background: var(--up-pine); border-color: var(--up-pine); color: #fff; }
.nrgc-legacy .card,
.nrgc-legacy .wrapper,
.nrgc-legacy .whiteBackground,
.nrgc-legacy .bgDataEntry,
.nrgc-legacy .bgCCinfo,
.nrgc-legacy .bgLightBlue { background: var(--up-card); color: var(--up-text); }
.nrgc-legacy .form-control { background-color: var(--up-card); color: var(--up-text); border-color: var(--up-border); }
.nrgc-legacy .form-control:focus { border-color: var(--up-pine); box-shadow: 0 0 0 .2rem rgba(36, 69, 53, .16); }
.nrgc-site .ui-jqgrid .ui-widget-header,
.nrgc-site .ui-jqgrid .ui-state-default { background: #e8ede3; border-color: var(--up-border); color: var(--up-pine); }
.nrgc-site .ui-jqgrid .ui-widget-content { background: var(--up-card); color: var(--up-text); border-color: var(--up-border); }
.nrgc-site .ui-jqgrid .ui-state-highlight { background: #dce6d8; color: var(--up-pine); }
.nrgc-site .fc { --fc-border-color: #d8d9ce; --fc-page-bg-color: #fffefa; --fc-neutral-bg-color: #e8ede3; --fc-today-bg-color: #eef1e6; --fc-button-bg-color: #244535; --fc-button-border-color: #244535; --fc-button-hover-bg-color: #193526; --fc-button-active-bg-color: #193526; }
@media (max-width: 1100px) {
    .nrgc-site .nrgc-nav { background: var(--up-cream); }
    .nrgc-site .nrgc-nav__submenu { box-shadow: none; }
}
@media print {
    body.nrgc-site { background: #fff; color: #000; }
    .nrgc-site #monthPrintSheet { background: #fff; }
}
