/* Custom mobile fix tailored specifically for the Article of the Week module */
@media (max-width: 767px) {
    .mobile-fix-week,
    .mobile-fix-week .module-ct {
        clear: both !important;
        overflow: hidden !important;
        height: auto !important;
        display: block !important;
    }

    .mobile-fix-week h1, 
    .mobile-fix-week h2, 
    .mobile-fix-week h3,
    .mobile-fix-week .page-header h2,
    .mobile-fix-week .mod-articles-category-title {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }

    .mobile-fix-week img {
        display: block !important;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 15px !important;
    }
}


/* Force JA Tabs active content panel to render dynamic module content */
.ja-tab-content.ja-tab-content-active,
.ja-tab-content-active .mod-articles-category,
.ja-tab-content-active ul {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
}

/* ==========================================
   ACCESSIBILITY CONTRAST FIXES
   ========================================== */

/* Cookie Bar - Accept Button */
.jb-accept.btn.btn-primary {
    background-color: #005a9c !important;
    border-color: #005a9c !important;
    color: #ffffff !important;
}

/* Cookie Bar - Cookie Policy Link */
.jb-policy {
    color: #004080 !important;
    text-decoration: underline !important;
}

/* Cookie Bar - Body Text */
.modal-content {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* RSS Text */
span.rss,
a.rss,
.module-title span {
    color: #000000 !important;
}

/* Breaking News Heading */
h3.module-title,
.module-title {
    color: #ffffff !important;
    background-color: #0056b3 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 5px 10px !important;
}

/* Breaking News Span */
h3.module-title span,
.module-title span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Sponsored Ad Text */
.t3-wrapper div[style] {
    color: #000000 !important;
}

/* Fix RSS Touch Target Size */
a.mod-syndicate.syndicate-module {
    display: inline-block;
    min-width: 48px;
    min-height: 48px;
    padding: 12px; /* Expands the clickable hit-box area */
    box-sizing: border-box;
}

/* Fix Search Button Touch Target Size */
.btn.btn-search {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px; /* Forces safety separation spacing from the input field */
}