/* =========================================================
   MDB ACCESSIBILITY OVERRIDES
   WCAG 2.1 AA SAFE COLORS
   ========================================================= */

:root {
    --brand-gold: #615a38;
    --brand-gold-hover: #7A703F;
    --brand-gold-dark: #454027;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar,
.navbar.top-nav-collapse {
    background-color: var(--brand-gold) !important;
}


/* Dropdown menu */

.navbar .dropdown-menu,
.navbar .dropdown-menu.dropdown-menu-right,
.navbar .dropdown-menu.show {
    background-color: var(--brand-gold) !important;
    border: none;
}

.navbar .dropdown-menu .dropdown-item {
    background: transparent !important;
    color: #ffffff !important;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: var(--brand-gold-hover) !important;
    color: #ffffff !important;
}

.navbar .dropdown-menu .dropdown-item.active {
    background-color: var(--brand-gold-dark) !important;
}


/* =========================================================
   TEXT COLORS
   ========================================================= */

.grey-text {
    color: #4f4f4f !important;
}

.green-text {
    color: #1b5e20 !important;
}

.light-green-text {
    color: #33691e !important;
}

.blue-text,
.text-info {
    color: #0d47a1 !important;
}

.red-text {
    color: #b71c1c !important;
}

.text-default {
    color: #00695c !important;
}

.text-warning {
    color: #8a6d1d !important;
}


/* =========================================================
   BUTTON COLORS
   ========================================================= */

.btn-dark-green {
    background: #1b5e20 !important;
    color: #ffffff !important;
}

.btn-light-green {
    background: #33691e !important;
    color: #ffffff !important;
}

.btn-default {
    background: #00695c !important;
    color: #ffffff !important;
}

.btn-primary,
.btn-info {
    background: #0d47a1 !important;
    color: #ffffff !important;
}

.btn-danger {
    background: #b71c1c !important;
    color: #ffffff !important;
}

.btn-blue-grey {
    background: #37474f !important;
    color: #ffffff !important;
}


/* Icons inherit button color */

.btn i,
.btn-primary i,
.btn-danger i,
.btn-info i,
.btn-blue-grey i,
i {
    color: inherit !important;
}


/* =========================================================
   ALERT / NOTE STYLES
   ========================================================= */

.note-info {
    background: #e3f2fd !important;
    color: #0d47a1 !important;
}

.note-warning {
    background: #fff3cd !important;
    color: #454027 !important;
}

.note-info a,
.note-warning a {
    color: #0d47a1 !important;
    text-decoration: underline;
}


/* =========================================================
   LINKS
   ========================================================= */

main a {
    color: #0d47a1;
    text-decoration: underline;
}

main a:hover,
main a:focus {
    color: #06336f;
}


/* =========================================================
   BREADCRUMBS
   ========================================================= */

.breadcrumb {
    background: #f1f1f1;
}

.breadcrumb-item a {
    color: #0d47a1;
    text-decoration: underline;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    color: #06336f;
}

.breadcrumb-item.active {
    color: var(--brand-gold-dark);
}


/* =========================================================
   GOLD BACKGROUND UTIL
   ========================================================= */

.gold.text-white {
    background-color: var(--brand-gold) !important;
}


/* =========================================================
   VISITED LINKS (WCAG REQUIRED)
   ========================================================= */

a:visited {
    color: #5a2d82; /* Accessible purple, 7+:1 on white */
    text-decoration: underline;
}


/* =========================================================
   GLOBAL LINK VISIBILITY
   ========================================================= */

a[href] {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.card a,
.note a,
.alert a {
    color: #0d47a1 !important;
    text-decoration: underline;
}

.card a:hover,
.note a:hover,
.alert a:hover,
.card a:focus,
.note a:focus,
.alert a:focus {
    color: #06336f !important;
}


/* Ensure visited state applies everywhere */

.card a:visited,
.note a:visited,
.alert a:visited,
main a:visited {
    color: #5a2d82 !important;
}

.breadcrumb-item a:visited {
    color: #0d47a1;
}

.breadcrumb-item a:focus {
    outline: 2px solid #0d47a1;
    outline-offset: 2px;
}


/* Keyboard focus for links (WCAG 2.4.7) */

a:focus,
a:focus-visible {
    outline: 3px solid #0d47a1;
    outline-offset: 2px;
}


/* Prevent icons from being read as link text */

a i {
    pointer-events: none;
}


/* =========================================================
   FIX ANCHOR-BUTTON ADA FAILURES
   ========================================================= */

/* Buttons should NOT look like text links */

.btn,
.btn:visited {
    text-decoration: none !important;
}


/* Explicit focus indicator for anchor-buttons */

.btn:focus,
.btn:focus-visible {
    outline: 3px solid #ffffff !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px #0d47a1 !important;
}


/* Reinforce btn-info as a true button (not link) */

a.btn-info {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
}


/* =========================================================
   BREADCRUMBS — BOOTSTRAP OVERRIDES (ADA SAFE)
   ========================================================= */

nav[aria-label="breadcrumb"] .breadcrumb {
    background-color: #f1f1f1 !important;
    padding: 0.75rem 1rem;
}

nav[aria-label="breadcrumb"] .breadcrumb-item a {
    color: #0d47a1 !important;
    text-decoration: underline;
}

nav[aria-label="breadcrumb"] .breadcrumb-item a:visited {
    color: #5a2d82 !important;
}

nav[aria-label="breadcrumb"] .breadcrumb-item a:hover,
nav[aria-label="breadcrumb"] .breadcrumb-item a:focus {
    color: #06336f !important;
    text-decoration: underline;
}

nav[aria-label="breadcrumb"] .breadcrumb-item.active {
    color: var(--brand-gold-dark) !important;
    font-weight: 600;
}

nav[aria-label="breadcrumb"]
.breadcrumb-item + .breadcrumb-item::before {
    color: #454027 !important;
}


/* =========================================================
   FORCE LINK COLORS (OVERRIDE THEME.CSS)
   ========================================================= */

a:link,
a {
    color: #0d47a1 !important;
    text-decoration: underline;
}

a:visited {
    color: #5a2d82 !important;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #06336f !important;
    text-decoration: underline;
}

a:active {
    color: #06336f !important;
}