/*
    The Events Calendar — brand overrides
    Loaded only on Events Calendar views (see functions.php).

    The plugin (Views V2) is themed through its own CSS custom properties, so we
    rebrand it by overriding those variables rather than fighting individual
    selectors. Its default accent is #334aff (blue); we map it to the site's
    red (#ab3032) with blue (#0072c6) as the hover/active accent.
*/

.tribe-common {
    --tec-color-accent-primary: #ab3032;
    --tec-color-accent-primary-hover: #0072c6;
    --tec-color-accent-primary-active: #0072c6;
    --tec-color-accent-primary-multiday: #ab303233;
    --tec-color-accent-primary-multiday-hover: #ab303259;
    --tec-color-accent-primary-background: rgba(171, 48, 50, 0.08);
    --tec-color-background-primary-hover: rgba(171, 48, 50, 0.08);
    --tec-color-link-accent: #0072c6;
    --tec-color-link-accent-hover: #ab3032;
    --tec-color-day-marker-current-month-active: #ab3032;
}

/*
    Neutralise the theme's global button rule inside the calendar.
    content.css styles every `body button` with a solid red background and a
    pill radius. The plugin leaves its text/icon buttons (date picker, view
    nav, subscribe, prev/next) transparent, so that rule was filling them all
    in as red pills. Reset them here, then re-brand only the real action button.
*/
.tribe-events button {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
}

/* Intentional brand fill for the search submit button */
.tribe-events .tribe-events-c-search__button {
    background-color: #ab3032;
    color: #fff;
    border-radius: 9999px;
}

.tribe-events .tribe-events-c-search__button:hover,
.tribe-events .tribe-events-c-search__button:focus {
    background-color: #0072c6;
    color: #fff;
}

/* Match the site's heading font */
.tribe-events .tribe-events-calendar-latest-past__event-title,
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-header__title,
.tribe-events h2,
.tribe-events h3 {
    font-family: Montserrat, "Lato", Arial, sans-serif;
}
