/**
 * 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: var(--enfold-header-color-color);
}

#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: var(--enfold-header-color-color);
    stroke: var(--enfold-header-color-color);
}

/* Keep the count legible against Enfold's dark cart-counter badge. */
#top #wrap_all #header .cart_dropdown_first .av-cart-counter {
    color: var(--enfold-header-color-constant-font);
}

/* Navigation feedback: remove the main-menu rules and distinguish utility links. */
#top #header #header_main_alternate {
    border-top: 0;
    border-bottom: 0;
}

/* The second fine rule belongs to the content section immediately below the menu. */
#top #main > .container_wrap:first-child,
#top.jpa-home-header-ready #main > .jpa-home-header-space + .container_wrap {
    border-top: 0;
}

#top #av-burger-menu-ul > li > a,
#top #av-burger-menu-ul > li > a .avia-menu-text {
    font-weight: 700;
}

#top #wrap_all #header #avia2-menu > li > a {
    font-weight: 400;
}

#top #wrap_all #header #avia2-menu > li > a:hover,
#top #wrap_all #header #avia2-menu > li > a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#top.page-id-22084 .jpa-donate-artwork {
    max-width: 28rem;
    margin: 1.5rem auto 2rem;
}

#top.page-id-22084 .jpa-donate-artwork figure { margin: 0; }

#top.page-id-22084 .jpa-donate-artwork img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

#top.page-id-22084 .jpa-donate-artwork figcaption {
    margin-top: .75rem;
    color: #666;
    font-size: .875rem;
    line-height: 1.5;
}

/*
 * 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;
}

#top #footer-page #footer .jpa-footer-social {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(43, 43, 43, .2);
}

#top #footer-page #footer .jpa-footer-social h3 {
    margin-bottom: .6rem;
}

#top #footer-page #footer .jpa-footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

#top #footer-page #footer .jpa-footer-social-links br {
    display: none;
}

#top #footer-page #footer .jpa-footer-social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: .35rem .75rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
}

#top #footer-page #footer .jpa-footer-social-icon::before {
    display: inline-block;
    margin-right: .45rem;
    font-family: 'entypo-fontello-enfold';
    font-size: 1.15rem;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    vertical-align: -.05em;
}

#top #footer-page #footer .jpa-footer-social-icon-facebook::before {
    content: '\e8f3';
}

#top #footer-page #footer .jpa-footer-social-icon-instagram::before {
    content: '\e909';
}

#top #footer-page #footer .jpa-footer-social-links a:hover,
#top #footer-page #footer .jpa-footer-social-links a:focus-visible {
    background: #d28c2a;
    border-color: #d28c2a;
    color: #fff;
}

/* 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;
}
