/*
Welcome to Custom CSS!
To learn how this works, see https://wp.me/PEmnE-Bt
*/
#actionbar {
    display: none;
}

/* hover color for buttons 42462055-hc DF*/
.comment-list .comment-awaiting-moderation, .comment-navigation .nav-next a:active, .comment-navigation .nav-next a::after, .comment-navigation .nav-next a:focus, .comment-navigation .nav-next a:hover, .comment-navigation .nav-previous a:active, .comment-navigation .nav-previous a::before, .comment-navigation .nav-previous a:focus, .comment-navigation .nav-previous a:hover, .entry-meta .first-category a:active, .entry-meta .first-category a:focus, .entry-meta .first-category a:hover, .entry-title a:active, .entry-title a:focus, .entry-title a:hover, .image-navigation .nav-next a:active, .image-navigation .nav-next a::after, .image-navigation .nav-next a:focus, .image-navigation .nav-next a:hover, .image-navigation .nav-previous a:active, .image-navigation .nav-previous a::before, .image-navigation .nav-previous a:focus, .image-navigation .nav-previous a:hover, .page-title a:active, .page-title a:focus, .page-title a:hover, .search-curtain-wrapper .search-curtain-close:hover, .site-primary-menu-responsive .primary-menu-responsive-close:hover, .toggle-menu-wrapper a:active, .toggle-menu-wrapper a:focus, .toggle-menu-wrapper a:hover, .widget_categories .category-toggle.toggle-on::after, .widget_categories .category-toggle:focus::after, .widget_nav_menu .custom-menu-toggle.toggle-on::after, .widget_nav_menu .custom-menu-toggle:focus::after, .widget_pages .page-toggle.toggle-on::after, .widget_pages .page-toggle:focus::after, a:active, a:focus, a:hover {
    color: gray;
}

/* Hide Header, Footer, and Page Title on Landing Page */
body.page-id-18583 .site-bar, 
body.page-id-18583 #masthead, 
body.page-id-18583 #site-navigation, 
body.page-id-18583 #colophon,
body.page-id-18583 .entry-header-wrapper {
    display: none !important;
}

/* Center ad label "advertisement" on home page and maybe everywhere, who knows */
.valle-adlabel { 
    text-align: center; 
}

/* Hide Tags box on Community Events submission form */
#tribe-community-events .tribe-section-taxonomy + .tribe-section-taxonomy,
#event_tag_control,
.tribe-community-events-tags,
.tribe-events-community-details.tags,
tr.tribe-community-events-tags {
    display: none !important;
}

/* Force Age Range AND the manual custom headings to be perfectly identical in events */
.single-tribe_events .tribe-block__additional-field h3,
h3.custom-tec-label {
    font-family: "Raleway", sans-serif !important;
    font-size: 1.5rem !important; 
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.4 !important;
    color: #020202 !important;
}

/* Defeat Gutenberg's block gap to keep ONLY the Cost amount snug against the Cost label in events */
.single-tribe_events .tribe-block__event-price {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

/* Make Cost amount match Age Range formatting in events */
.single-tribe_events .tribe-block__event-price__cost {
    font-family: inherit !important;
    font-size: 1.1rem !important; 
    font-weight: 400 !important;
    color: #3d3d3d !important;
}

/* Pull Venue block snug against Venue heading */
.single-tribe_events .tribe-block__venue {
    margin-top: 0 !important;
}

/* 1. Main /events/ archive — drop the theme's fixed width on the content
   wrapper so the calendar gets the room TEC needs for its native vertical
   sidebar. The cap is a `width`, not a max-width, so override width directly. */
body.post-type-archive-tribe_events #content.site-content {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
body.post-type-archive-tribe_events #content.site-content .tribe-events-view {
    width: auto !important;
    max-width: 100% !important;
}

/* 2. Stop the stacked filter bar overlapping events on phones/narrow screens,
   where the calendar is still under TEC's breakpoint. (Unchanged.) */
@media screen and (max-width: 959px) {
    .tribe-filter-bar {
        position: relative !important;
        display: block !important;
        z-index: 50 !important;
    }
    .tribe-events-l-container {
        clear: both !important;
        padding-top: 1.5rem !important;
    }
}

/* 3. Stop the Horizontal Filter Bar from overlapping on Mobile & Tablet
   (unchanged — this is your working fix) */
@media screen and (max-width: 959px) {

    /* Force the filter dropdown into the document flow */
    .tribe-filter-bar {
        position: relative !important;
        display: block !important;
        z-index: 50 !important;
    }
    /* Force the calendar grid to clear the space below the filters */
    .tribe-events-l-container {
        clear: both !important;
        padding-top: 1.5rem !important;
    }
}

/* === Restore native TEC Community button colors on /submit-an-event/ === */
/* Custom page is a Gutenberg page, so .entry-content / wp-block context */
/* brings in a button-color rule from a bundled stylesheet that doesn't */
/* match on the native /events/community-base/add/ route. Scoped to the */
/* page id so nothing else on the site is affected.                     */

/* Primary action — Submit Event — uses the TEC Customizer tokens */
body.page-id-19903 #tribe-community-events input#post.tribe-button.submit {
    background-color: var(--tec-color-button-primary, #bf030e) !important;
    color: #fff !important;
    border-color: var(--tec-color-button-primary, #bf030e);
}
body.page-id-19903 #tribe-community-events input#post.tribe-button.submit:hover {
    background-color: var(--tec-color-button-primary-hover, rgba(191, 3, 14, .8)) !important;
}
body.page-id-19903 #tribe-community-events input#post.tribe-button.submit:active,
body.page-id-19903 #tribe-community-events input#post.tribe-button.submit:focus {
    background-color: var(--tec-color-button-primary-active, rgba(191, 3, 14, .9)) !important;
}

/* All secondary buttons — TEC's secondary token, falls back to the actual painted value */
body.page-id-19903 #tribe-community-events .tribe-button.tribe-button-secondary,
body.page-id-19903 #tribe-community-events button.tribe-configure-virtual-button,
body.page-id-19903 #tribe-community-events #tribe-add-recurrence,
body.page-id-19903 #tribe-community-events #tribe-add-exclusion,
body.page-id-19903 #tribe-community-events label.choose-file,
body.page-id-19903 #tribe-community-events a.tribe-add-post,
body.page-id-19903 #tribe-community-events .tribe-events-virtual-video-source-autodetect__button {
    background-color: var(--tec-color-button-secondary, #141827) !important;
    color: #fff !important;
    border-color: var(--tec-color-button-secondary, #141827);
}
body.page-id-19903 #tribe-community-events .tribe-button.tribe-button-secondary:hover,
body.page-id-19903 #tribe-community-events button.tribe-configure-virtual-button:hover,
body.page-id-19903 #tribe-community-events #tribe-add-recurrence:hover,
body.page-id-19903 #tribe-community-events #tribe-add-exclusion:hover,
body.page-id-19903 #tribe-community-events label.choose-file:hover,
body.page-id-19903 #tribe-community-events a.tribe-add-post:hover {
    background-color: rgba(20, 24, 39, .85) !important;
    color: #fff !important;
}