﻿/* ========================================================================
   File: Jquery_Override.css
   Purpose: High Specificity WCAG 2.1 AA Layout Corrections for Mobile Theme
   Load Order: Place AFTER jquery.mobile-1.3.2.min.css and styles.css
   ======================================================================== */

/* =============== NUCLEAR CONTAINMENT RULES =============== */
/* Forced color control over hardcoded view layouts to defeat strict framework cascading */
html body #main .main .ui-body.ui-body-c div[lang="en"] a.ui-link:visited,
html body #main .main .ui-body.ui-body-c div[lang="en"] a.ui-link,
html body #main .main .ui-body.ui-body-c div[lang="en"] a:visited,
html body #main .main .ui-body.ui-body-c div[lang="en"] a,
#main .main .ui-body.ui-body-c div[lang="en"] a.ui-link:visited,
#main .main .ui-body.ui-body-c div[lang="en"] a.ui-link,
#main .main .ui-body.ui-body-c div[lang="en"] a:visited,
#main .main .ui-body.ui-body-c div[lang="en"] a {
    color: #05439A !important;
    text-decoration: none !important;
}

    /* Accessible Hover/Focus Feedback states for contained paths */
    html body #main .main .ui-body.ui-body-c div[lang="en"] a.ui-link:hover,
    html body #main .main .ui-body.ui-body-c div[lang="en"] a.ui-link:focus,
    html body #main .main .ui-body.ui-body-c div[lang="en"] a:hover,
    html body #main .main .ui-body.ui-body-c div[lang="en"] a:focus {
        color: #003366 !important;
        text-decoration: underline !important;
    }

/* =============== JQUERY MOBILE THEME OVERRIDES =============== */
.ui-body-c a.ui-link:visited,
.ui-bar-e a.ui-link,
.ui-bar-e a.ui-link:visited,
.ui-bar-e a.ui-link:hover,
.ui-bar-e a.ui-link:active,
.ui-body-e .ui-link,
.ui-body-e .ui-link:visited,
.ui-body-e .ui-link:hover,
.ui-body-e .ui-link:active,
.ui-body-c .ui-link,
.ui-body-c .ui-link:visited,
.ui-body-c .ui-link:hover,
.ui-body-c .ui-link:active {
    color: #05439A !important;
}

/* =============== SITE TARGETED SECTORS =============== */

/* --- Senator-Specific Links --- */
a.senatorLink,
a.senatorLink:visited,
a.senatorLink:hover,
a.senatorLink:active {
    color: #05439A !important;
    font-weight: normal;
}

/* --- Google Analytics Tracked Links --- */
a.GATrackList,
a.GATrackList:visited,
a.GATrackList:hover,
a.GATrackList:active,
a.GAFullSite,
a.GAFullSite:visited,
a.GAFullSite:hover,
a.GAFullSite:active,
a.GAPrivacy,
a.GAPrivacy:visited,
a.GAPrivacy:hover,
a.GAPrivacy:active,
a.GAFullSenator,
a.GAFullSenator:visited,
a.GAFullSenator:hover,
a.GAFullSenator:active {
    color: #05439A !important;
}

/* =============== BILL SPONSORS - IMPROVED CONTRAST =============== */
.ui-body-c h1 + p span,
.ui-body-c h1 + p span a:link,
.ui-body-c h1 + p span a:visited {
    color: #05439A !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

    .ui-body-c h1 + p span a:hover,
    .ui-body-c h1 + p span a:focus {
        color: #003366 !important;
        text-decoration: underline !important;
    }

    .ui-body-c h1 + p span a:active {
        color: #cc0000 !important;
    }

/* =============== BACK BUTTON - CONSISTENT BRANDING =============== */
#BackButton,
#BackButton:link,
#BackButton:visited {
    color: #05439A !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

    #BackButton:hover,
    #BackButton:focus {
        color: #003366 !important;
        text-decoration: underline !important;
    }

    #BackButton:active {
        color: #cc0000 !important;
    }

/* =============== SESSION ANNOUNCEMENT & CALENDAR LINKS =============== */
.senateAnnouncement,
.senateAnnouncement a:link,
.senateAnnouncement a:visited,
.senateAnnouncement + ul li a,
.senateAnnouncement + ul li a:link,
.senateAnnouncement + ul li a:visited {
    color: #05439A !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

    .senateAnnouncement a:hover,
    .senateAnnouncement a:focus,
    .senateAnnouncement + ul li a:hover,
    .senateAnnouncement + ul li a:focus {
        color: #003366 !important;
        text-decoration: none !important;
    }

    .senateAnnouncement a:active,
    .senateAnnouncement + ul li a:active {
        color: #cc0000 !important;
    }

/* =============== BRAND ISOLATION STATE PROTECTIONS =============== */

/* Menu Panel: Retain White items */
#menuPanel a,
#menuPanel a.ui-link,
#menuPanel a:visited,
#menuPanel a:hover,
#menuPanel a:active {
    color: #ffffff !important;
}

/* Top Blue Bar Theme A Header Protection */
.ui-bar-a a.ui-link,
.ui-bar-a a.ui-link:visited,
.ui-bar-a a.ui-link:hover,
.ui-bar-a a.ui-link:active {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Localized fallback containment */
.ui-body-c div[lang="en"] a:visited,
.ui-body-c div[lang="en"] a {
    color: #05439A !important;
}

/* =============== FILE TYPE BADGES - WCAG CONTRAST =============== */
span.filetype {
    color: #757575 !important;
}

span.calendarfiletype {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 80%;
    color: #2E2E2E !important;
}

/* =============== EXCEPTION: frmDisplayResults - BLACK TEXT =============== */
/* Override global link color for .frmDisplayResults to use black text */
/* Higher specificity than .ui-body-c .ui-link rules */

.ui-body-c .frmDisplayResults,
.ui-body-c .frmDisplayResults p,
.ui-body-c .frmDisplayResults span,
.ui-body-c div.frmDisplayResults,
.ui-body-c div.frmDisplayResults p,
.ui-body-c div.frmDisplayResults span,
#main .ui-body-c .frmDisplayResults,
#main .ui-body-c .frmDisplayResults p,
#main .ui-body-c .frmDisplayResults span {
    color: #000000 !important; /* Black text for parameter descriptions */
}

