/**
 * Site-wide contrast and component refinements.
 */

/* Enfold header search popover. */
#top .avia-search-tooltip,
#top .avia-search-tooltip #s,
#top .avia-search-tooltip .ajax_search_response,
#top .avia-search-tooltip .av_ajax_search_entry,
#top .avia-search-tooltip .av_ajax_search_title,
#top .avia-search-tooltip .ajax_search_excerpt,
#top .avia-search-tooltip h4,
#top .avia-search-tooltip a,
#top .avia-search-tooltip a:hover,
#top .avia-search-tooltip a:focus {
    color: #2b2b2b;
}

#top .avia-search-tooltip #s::placeholder {
    color: #2b2b2b;
    opacity: 1;
}

/* WooCommerce cart icon, count, dropdown copy, and actions. */
#top #wrap_all #header .cart_dropdown,
#top #wrap_all #header .cart_dropdown a,
#top #wrap_all #header .cart_dropdown .amount,
#top #wrap_all #header .cart_dropdown .dropdown_widget,
#top #wrap_all #header .cart_dropdown .dropdown_widget .button,
#top #wrap_all #header .cart_dropdown_first .cart_dropdown_link,
#top #wrap_all #header .cart_dropdown_first .av-cart-container,
#top #wrap_all #header .cart_dropdown_first .av-cart-counter {
    color: #2b2b2b;
}

#top #wrap_all #header .cart_dropdown_first .cart_dropdown_link.avia-svg-icon svg:first-child,
#top #wrap_all #header .cart_dropdown_first .cart_dropdown_link.avia-svg-icon svg:first-child path {
    fill: #2b2b2b;
    stroke: #2b2b2b;
}

/* Keep the count legible against Enfold's dark cart-counter badge. */
#top #wrap_all #header .cart_dropdown_first .av-cart-counter {
    color: #ffffff;
}

/* Match transparent-header secondary dropdown borders to their dark surface. */
#top #wrap_all #header.av_header_transparency nav.sub_menu li ul,
#top #wrap_all #header.av_header_transparency nav.sub_menu li li > a {
    border-color: #414141;
}

/* Use one consistent, accessible hover treatment for every header submenu. */
#top #wrap_all #header .av-main-nav ul > li.menu-item > a:hover,
#top #wrap_all #header .av-main-nav ul > li.menu-item > a:focus,
#top #wrap_all #header nav.sub_menu li li > a:hover,
#top #wrap_all #header nav.sub_menu li li > a:focus {
    background-color: #d28c2a;
    color: #ffffff;
}

#top #wrap_all #header .av-main-nav ul > li.menu-item > a:hover .avia-menu-text,
#top #wrap_all #header .av-main-nav ul > li.menu-item > a:focus .avia-menu-text,
#top #wrap_all #header nav.sub_menu li li > a:hover .avia-menu-text,
#top #wrap_all #header nav.sub_menu li li > a:focus .avia-menu-text {
    color: #ffffff;
}

/*
 * Replace Enfold's hard #a0a0a0 table stripe and border with the softer
 * neutral requested for content and WooCommerce tables.
 */
#top .main_color table,
#top .main_color table th,
#top .main_color table td,
#top .alternate_color table,
#top .alternate_color table th,
#top .alternate_color table td {
    border-color: #cacaca;
}

#top .main_color table tr:nth-child(odd),
#top .alternate_color table tr:nth-child(odd),
#top .main_color .avia-data-table .avia-highlight-col,
#top .alternate_color .avia-data-table .avia-highlight-col {
    background-color: #cacaca;
}

#top .main_color table caption,
#top .alternate_color table caption {
    border-color: #cacaca;
}

/* Keep the builder-based footer compact and subordinate to page content. */
#top #footer-page #footer {
    font-size: 14px;
    line-height: 1.55;
}

#top #footer-page #footer .content {
    padding-top: 32px;
    padding-bottom: 28px;
}

#top #footer-page #footer .widget {
    margin: 0 0 1.25rem;
    padding: 0;
}

#top #footer-page #footer h3,
#top #footer-page #footer h3.widgettitle {
    margin: 0 0 .7rem;
    font-size: 16px !important;
    line-height: 1.3;
}

#top #footer-page #footer .widget_nav_menu li {
    font-size: 14px !important;
    line-height: 1.45;
}

#top #footer-page #footer .widget_nav_menu a {
    padding: .25rem 0;
}

#top #footer-page #footer .av_one_full {
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem !important;
    border-bottom: 1px solid rgba(43, 43, 43, .2);
}

#top #footer-page #footer .av_one_full p {
    margin: 0 0 .45rem;
    font-size: 12.5px;
    line-height: 1.55;
}

/* Give archive sidebars a clear, compact navigation hierarchy. */
#top.archive .sidebar .inner_sidebar {
    margin-top: 0;
}

#top.archive .sidebar .widget {
    margin: 0 0 1.25rem;
    padding: 1.1rem;
    border-left: 4px solid #d28c2a;
    background: #f7edde;
}

#top.archive .sidebar .widgettitle {
    margin: 0 0 .7rem;
    color: #2b2b2b;
    font-size: 16px !important;
    line-height: 1.3;
}

#top.archive .sidebar .widget ul {
    float: none;
    width: 100%;
    margin: 0;
}

#top.archive .sidebar .widget li {
    margin: 0;
    padding: 0;
    border-top: 1px solid #e9c691;
    font-size: 14px !important;
    line-height: 1.4;
}

#top.archive .sidebar .widget li:first-child {
    border-top: 0;
}

#top.archive .sidebar .widget li a {
    display: block;
    padding: .55rem .6rem;
    color: #2b2b2b;
    text-decoration: none;
}

#top.archive .sidebar .widget li a:hover,
#top.archive .sidebar .widget li a:focus,
#top.archive .sidebar .widget_nav_menu .current-menu-item > a,
#top.archive .sidebar .widget_nav_menu .current-menu-ancestor > a {
    background: #d28c2a;
    color: #ffffff;
}

#top.archive .sidebar .widget_nav_menu .sub-menu {
    box-sizing: border-box;
    margin: .2rem 0 .35rem .55rem;
    width: calc(100% - .55rem);
    border-left: 2px solid #cacaca;
}

#top.archive .sidebar .widget_nav_menu .sub-menu li a {
    padding-left: .75rem;
}

#top.archive .sidebar .seperator {
    display: none;
}

/* The global "Everywhere" user menu duplicates the archive navigation. */
#top.archive.woocommerce .sidebar #nav_menu-8 {
    display: none;
}

/* Modernize Enfold's product archive sort controls without changing behavior. */
#top.archive.woocommerce .product-sorting {
    display: flex;
    z-index: 20;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: .65rem;
    float: none;
    margin: 0 0 1.5rem;
    padding: .85rem;
    border-left: 4px solid #d28c2a;
    background: #f7edde;
}

#top.archive.woocommerce .product-sorting .sort-param {
    float: none;
    margin: 0;
    font-size: 13px;
}

#top.archive.woocommerce .product-sorting .sort-param > li > span {
    min-width: 11rem;
    border-color: #cacaca;
    background-color: #ffffff;
    color: #2b2b2b;
    line-height: 36px;
}

#top.archive.woocommerce .product-sorting .sort-param ul {
    top: 39px;
    border-color: #cacaca;
    background: #ffffff;
}

#top.archive.woocommerce .product-sorting .sort-param ul a {
    color: #2b2b2b;
    line-height: 1.45;
}

#top.archive.woocommerce .product-sorting .sort-param ul a:hover,
#top.archive.woocommerce .product-sorting .sort-param ul a:focus {
    color: #d28c2a;
}

@media only screen and (max-width: 767px) {
    #top.archive.woocommerce .product-sorting .sort-param,
    #top.archive.woocommerce .product-sorting .sort-param > li,
    #top.archive.woocommerce .product-sorting .sort-param > li > span {
        box-sizing: border-box;
        width: 100%;
    }
}

/* Restore readable contrast on the legacy Student Home dashboard. */
#top.page-id-90 #wrap_all .post-entry-90 .iconbox_content_title,
#top.page-id-90 #wrap_all .post-entry-90 .iconbox_content_title a,
#top.page-id-90 #wrap_all .post-entry-90 .avia_textblock.av_inherit_color {
    color: #2b2b2b !important;
}

#top.page-id-90 #wrap_all .post-entry-90 .iconbox .iconbox_icon {
    color: #2b2b2b !important;
}

#top.page-id-90 #wrap_all .post-entry-90 .iconbox:first-child .iconbox_icon {
    color: #ffffff !important;
}

#top.page-id-90 #wrap_all .post-entry-90 .avia_textblock.av_inherit_color a {
    color: #d28c2a !important;
    font-weight: 700;
}

#top.page-id-90 #wrap_all .post-entry-90 .avia_textblock.av_inherit_color a:hover,
#top.page-id-90 #wrap_all .post-entry-90 .avia_textblock.av_inherit_color a:focus {
    color: #2b2b2b !important;
}
