/* AGWA brand override — applied to legacy LMS pages via head-extra injection */

/* Override the legacy :root CSS variables */
:root {
    --blue: #3c5f54 !important;
    --blue-d1: #2d483f !important;
    --blue-d2: #1a2824 !important;
    --primary: #3c5f54 !important;
    --link-color: #3c5f54 !important;
    --general-color-accent: #3c5f54 !important;
    --action-primary-active-bg: #3c5f54 !important;
    --submitted: #3c5f54 !important;
    --btn-brand-focus-background: #2d483f !important;
}

/* Generic legacy link color — affects most page text links */
a:not(.btn) {
    color: #3c5f54 !important;
}
a:not(.btn):visited {
    color: #3c5f54 !important;
}
a:not(.btn):hover,
a:not(.btn):focus {
    color: #2d483f !important;
}

/* xmodule content blocks (HtmlBlock, AboutBlock, etc.)
   Only target links that DON'T have a background style set
   (links with backgrounds are buttons authored in course content). */
.xmodule_display.xmodule_AboutBlock a:not([style*="background"]),
.xmodule_display.xmodule_CourseInfoBlock a:not([style*="background"]),
.xmodule_display.xmodule_HtmlBlock a:not([style*="background"]),
.xmodule_display.xmodule_StaticTabBlock a:not([style*="background"]) {
    color: #3c5f54 !important;
}
.xmodule_display.xmodule_AboutBlock a:not([style*="background"]):hover,
.xmodule_display.xmodule_HtmlBlock a:not([style*="background"]):hover {
    color: #2d483f !important;
}

/* Course-content button-style links: keep author's color (usually white-on-bg) */
.xmodule_display a[style*="background"] {
    color: inherit !important;
}

/* Course-content table headers: make <th> use the <tr>'s background */
.xmodule_display thead tr th {
    background-color: inherit !important;
}
