/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}


/* =========================================================
   EVENTS CALENDAR — BASE / SHARED TEXT
========================================================= */

/* Shared Events Calendar text */
.tribe-events-pg-template,
.tribe-events-schedule,
.tribe-block,
.tec-block__archive-events,
.tec-block__single-event,
.tribe-events-schedule__datetime,
.tribe-events-single-section,
.tribe-events-event-meta,
.tribe-events-single-section-title {
    color: #fcf4e1 !important;
}

/* Archive content defaults to cream */
body.post-type-archive-tribe_events .tribe-events-calendar-list,
body.post-type-archive-tribe_events .tribe-events-calendar-list *,
body.post-type-archive-tribe_events .tribe-events-calendar-day,
body.post-type-archive-tribe_events .tribe-events-calendar-day * {
    color: #fcf4e1 !important;
}


/* =========================================================
   EVENTS CALENDAR — LIST VIEW
========================================================= */

/* Main list-view wrapper */
.tribe-events-view--list {
    color: #fcf4e1 !important;
}

/* Event title */
.tribe-events-calendar-list__event-title,
.tribe-events-calendar-list__event-title-link {
    color: #fcf4e1 !important;
}

/* Event date / time */
.tribe-events-calendar-list__event-datetime,
.tribe-events-calendar-list__event-date-tag,
.tribe-events-calendar-list__event-date-tag-weekday,
.tribe-events-calendar-list__event-date-tag-daynum {
    color: #fcf4e1 !important;
}

/* Venue / location */
.tribe-events-calendar-list__event-venue,
.tribe-events-calendar-list__event-venue-title,
.tribe-events-calendar-list__event-venue-address {
    color: #fcf4e1 !important;
}

/* Event description / excerpt */
.tribe-events-calendar-list__event-description,
.tribe-events-calendar-list__event-description p {
    color: #fcf4e1 !important;
}


/* =========================================================
   EVENTS CALENDAR — MONTH VIEW
========================================================= */

/* Month-view day numbers */
body .tribe-events .tribe-events-calendar-month__day-date,
body .tribe-events .tribe-events-calendar-month__day-date *,
body .tribe-events .tribe-events-calendar-month__day-date-link,
body .tribe-events .tribe-events-calendar-month__day-date-link *,
body .tribe-events .tribe-events-calendar-month__day-date-daynum,
body .tribe-events .tribe-events-calendar-month__day-date-daynum *,
body .tribe-events time.tribe-events-calendar-month__day-date-daynum,
.tribe-events-calendar-month__day-cell--selected
    .tribe-events-calendar-month__day-date,
.tribe-events-calendar-month__day-cell--selected
    .tribe-events-calendar-month__day-date-link,
.tribe-events-calendar-month__day--current
    .tribe-events-calendar-month__day-date,
.tribe-events-calendar-month__day--current
    .tribe-events-calendar-month__day-date-link {
    color: #0b2c3f !important;
}

/* Month-view event title and time */
body .tribe-events-calendar-month__calendar-event *,
body .tribe-events-calendar-month__calendar-event a,
.tribe-events-calendar-month__calendar-event-title,
.tribe-events-calendar-month__calendar-event-title a,
.tribe-events-calendar-month__calendar-event-title-link,
.tribe-events-calendar-month__calendar-event-title-link.tribe-common-anchor-thin,
.tribe-events-calendar-month__calendar-event-title-link.tribe-common-anchor-thin.tooltipstered,
.tribe-events-calendar-month__calendar-event-datetime,
.tribe-events-calendar-month__calendar-event-datetime *,
.tribe-events-calendar-month__calendar-event-datetime time {
    color: #0b2c3f !important;
}

/*
 * TEC variables used by month-view event links / dates.
 * These are intentionally retained because TEC uses CSS variables
 * internally in addition to normal selectors.
 */
.tribe-events {
    --tec-color-link-accent: #0b2c3f !important;
    --tec-color-link-primary: #0b2c3f !important;
    --tec-color-text-event-date: #0b2c3f !important;
    --tec-color-text-primary: #0b2c3f !important;
}


/* =========================================================
   EVENTS CALENDAR — SINGLE EVENT
========================================================= */

/* Single-event TEC variables */
.tribe-events-pg-template {
    --tec-color-text-primary: #fcf4e1 !important;
    --tec-color-text-secondary: #fcf4e1 !important;
    --tec-color-text-event-date: #fcf4e1 !important;
    --tec-color-link-primary: #fcf4e1 !important;
    --tec-color-link-accent: #fcf4e1 !important;
}

/* Event title, schedule, cost, and meta headings */
.tribe-events-single-event-title,
.tribe-events-schedule,
.tribe-events-cost,
.tribe-events-single-section-title,
.tribe-events-meta-group-heading,
.tribe-events-meta-group h2,
.tribe-events-meta-group h3 {
    color: #fcf4e1 !important;
}

/* Top event date / time */
.tribe-events-schedule h2,
.tribe-events-schedule span,
.tribe-events-schedule time,
.tribe-event-date-start,
.tribe-event-date-end,
.tribe-event-time,
.tribe-events-start-date,
.tribe-events-start-time,
.tribe-events-end-date,
.tribe-events-end-time {
    color: #fcf4e1 !important;
}

/* Event meta content */
.tribe-events-meta-group,
.tribe-events-meta-group *,
.tribe-events-venue-details,
.tribe-events-organizer,
.tribe-events-organizer *,
.tribe-events-event-meta *,
.tribe-events-single-event-description *,
.tribe-events-meta-group dd,
.tribe-events-meta-group dt {
    color: #fcf4e1 !important;
}

/* Venue address */
.tribe-events-address,
.tribe-events-address *,
.tribe-street-address,
.tribe-locality,
.tribe-region,
.tribe-postal-code,
.tribe-country-name,
.tribe-block__venue__meta,
.tribe-address {
    color: #fcf4e1 !important;
}

/* Single-event meta links */
.tribe-events-event-meta a,
.tribe-events-event-meta a:visited,
.tribe-events-event-meta a:hover,
.tribe-events-organizer a,
.tribe-events-venue-details a,
.tribe-address a,
.tribe-events-gmap,
.tribe-events-gmap:visited,
.tribe-events-gmap:hover {
    color: #fcf4e1 !important;
}


/* =========================================================
   EVENTS CALENDAR — HEADER / TOOLBAR / NAVIGATION
========================================================= */

/* Base header and navigation text */
.tribe-events-header,
.tribe-events-header *,
.tribe-events-c-nav,
.tribe-events-c-nav * {
    color: #fcf4e1 !important;
}

/* Previous / next archive navigation */
.tribe-events-c-nav__prev a,
.tribe-events-c-nav__next a,
.tribe-events-c-nav__prev-label,
.tribe-events-c-nav__next-label {
    color: #fcf4e1 !important;
}

/* Previous / next navigation arrows */
.tribe-events-c-nav__prev svg,
.tribe-events-c-nav__next svg,
.tribe-events-c-nav__prev path,
.tribe-events-c-nav__next path {
    fill: #fcf4e1 !important;
    stroke: #fcf4e1 !important;
}

/* Top-bar previous / next arrows */
.tribe-events-c-top-bar__nav svg,
.tribe-events-c-top-bar__nav path,
.tribe-events-c-top-bar__nav-icon-svg,
.tribe-events-c-top-bar__nav-icon-svg path {
    fill: #fcf4e1 !important;
    stroke: #fcf4e1 !important;
}

/* "This Month" / Today buttons */
.tribe-common-c-btn-border-small,
.tribe-events-c-top-bar__today-button,
.tribe-common-a11y-hidden,
.tribe-events-c-nav__today-button,
.tribe-events-c-nav__today-button:visited,
.tribe-events-c-nav__today-button:hover {
    color: #0b2c3f !important;
}

.tribe-events-c-top-bar__today-button.tribe-common-c-btn-border-small {
    color: #0b2c3f !important;
    border-color: #0b2c3f !important;
}


/* =========================================================
   EVENTS CALENDAR — EVENTS BAR / SEARCH
========================================================= */

.tribe-events-header__events-bar,
.tribe-events-c-events-bar,
.tribe-events-c-events-bar *,
.tribe-events-c-events-bar--border,
.tribe-events-c-search__input-control-icon-svg,
.tribe-common-c-svgicon--search {
    color: #0b2c3f !important;
}


/* =========================================================
   EVENTS CALENDAR — VIEW SELECTOR
========================================================= */

/* View selector: List / Month / Day */
body .tribe-events .tribe-events-c-view-selector *,
body .tribe-events .tribe-events-c-view-selector a,
body .tribe-events .tribe-events-c-view-selector button,
.tribe-events-c-view-selector-button,
.tribe-events-c-view-selector-button-text,
.tribe-events-c-view-selector-list-item-text,
.tribe-events-c-view-selector-list-item a {
    color: #0b2c3f !important;
}


/* =========================================================
   EVENTS CALENDAR — UPCOMING / DATEPICKER TRIGGER
========================================================= */

/* "Upcoming" text */
.tribe-events-c-top-bar__datepicker-button,
.tribe-events-c-top-bar__datepicker-button *,
.tribe-events-c-top-bar__datepicker-button-text,
.tribe-events-c-top-bar__datepicker-time,
.tribe-events-c-top-bar__datepicker-time span {
    color: #fcf4e1 !important;
}

/* "Upcoming" SVG / caret */
.tribe-events-c-top-bar__datepicker-button svg,
.tribe-events-c-top-bar__datepicker-button svg *,
.tribe-events-c-top-bar__datepicker-button path,
.tribe-events-c-top-bar__datepicker-button-icon-svg,
.tribe-events-c-top-bar__datepicker-button-icon-svg path {
    fill: #fcf4e1 !important;
    stroke: #fcf4e1 !important;
    color: #fcf4e1 !important;
}


/* =========================================================
   EVENTS CALENDAR — DATEPICKER DROPDOWN
========================================================= */

/* Datepicker text */
.datepicker,
.datepicker *,
.datepicker-dropdown,
.datepicker-dropdown *,
.datepicker.dropdown-menu,
.datepicker.dropdown-menu *,
.datepicker-days,
.datepicker-days *,
.datepicker table tr td,
.datepicker table tr th,
.datepicker-switch,
.datepicker .prev,
.datepicker .next {
    color: #0b2c3f !important;
}

/* Datepicker SVGs / icons */
.datepicker svg,
.datepicker svg *,
.datepicker path {
    fill: #0b2c3f !important;
    stroke: #0b2c3f !important;
}


/* =========================================================
   EVENTS CALENDAR — CATEGORY FILTER
========================================================= */

/* Dropdown text */
.tec-events-category-color-filter__dropdown,
.tec-events-category-color-filter__dropdown *,
.tec-events-category-color-filter__dropdown--visible,
.tec-events-category-color-filter__dropdown--visible *,
.tec-events-category-color-filter__dropdown a,
.tec-events-category-color-filter__dropdown button,
.tec-events-category-color-filter__dropdown label,
.tec-events-category-color-filter__dropdown input + span {
    color: #0b2c3f !important;
}

/* Dropdown icon */
.tec-events-category-color-filter__dropdown-icon,
.tec-events-category-color-filter__dropdown-icon svg,
.tec-events-category-color-filter__dropdown-icon svg *,
.tec-events-category-color-filter__dropdown-icon path {
    color: #fcf4e1 !important;
    fill: #fcf4e1 !important;
    stroke: #fcf4e1 !important;
}


/* =========================================================
   EVENTS CALENDAR — TOOLTIPS / MONTH HOVER CARDS
========================================================= */

/* Tooltip text */
body .tooltipster-base,
body .tooltipster-base *,
body .tooltipster-content,
body .tooltipster-content *,
body .tribe-events-tooltip-theme,
body .tribe-events-tooltip-theme *,
.tribe-events-calendar-month__calendar-event-tooltip,
.tribe-events-calendar-month__calendar-event-tooltip * {
    color: #0b2c3f !important;
}

/* Tooltip title */
body .tooltipster-base
    .tribe-events-calendar-month__calendar-event-tooltip-title,
body .tooltipster-base
    .tribe-events-calendar-month__calendar-event-tooltip-title *,
body .tooltipster-base
    .tribe-events-calendar-month__calendar-event-tooltip-title-link,
body .tooltipster-base
    .tribe-events-calendar-month__calendar-event-tooltip-title-link * {
    color: #0b2c3f !important;
}

/* Tooltip date / time */
body .tooltipster-base
    .tribe-events-calendar-month__calendar-event-tooltip-datetime,
body .tooltipster-base
    .tribe-events-calendar-month__calendar-event-tooltip-datetime *,
body .tooltipster-base
    .tribe-events-calendar-month__calendar-event-tooltip-datetime time,
body .tooltipster-base .tribe-event-date-start,
body .tooltipster-base .tribe-event-date-end,
body .tooltipster-base .tribe-event-time {
    color: #0b2c3f !important;
}

/* Tooltip description */
.tribe-events-calendar-month__calendar-event-tooltip-description,
.tribe-events-calendar-month__calendar-event-tooltip-description *,
.tribe-events-calendar-month__calendar-event-tooltip-description p {
    color: #0b2c3f !important;
}


/* =========================================================
   EVENTS CALENDAR — SUBSCRIBE / ADD TO CALENDAR
========================================================= */

/*
 * Currently hidden.
 * Styles below are retained in case the control is restored later.
 */
.tribe-events-c-subscribe-dropdown {
    display: none !important;
}

/* Archive Add to Calendar icon / button */
.tribe-events-c-subscribe-dropdown svg,
.tribe-events-c-subscribe-dropdown svg *,
.tribe-events-c-subscribe-dropdown path,
.tribe-events-c-subscribe-dropdown-icon-svg,
.tribe-events-c-subscribe-dropdown-icon-svg path {
    fill: #0b2c3f !important;
    stroke: #0b2c3f !important;
}

.tribe-events-c-subscribe-dropdown .tribe-common-c-btn {
    color: #fcf4e1 !important;
    border-color: #fcf4e1 !important;
}

/* Single-event Add to Calendar icon */
.single-tribe_events .tribe-events-c-subscribe-dropdown svg,
.single-tribe_events .tribe-events-c-subscribe-dropdown svg *,
.single-tribe_events .tribe-events-c-subscribe-dropdown path,
.single-tribe_events .tribe-events-c-subscribe-dropdown button svg,
.single-tribe_events .tribe-events-c-subscribe-dropdown button path {
    fill: #0b2c3f !important;
    stroke: #0b2c3f !important;
}


/* =========================================================
   EVENTS CALENDAR — ICON VARIABLES
========================================================= */

.tribe-events {
    --tec-color-icon-primary: #fcf4e1 !important;
    --tec-color-icon-secondary: #fcf4e1 !important;
}


/* =========================================================
   EVENTS CALENDAR — MOBILE
========================================================= */

@media (max-width: 921px) {

    /* Fix Astra mobile navigation on Events archive */
    body.post-type-archive-tribe_events .main-header-menu a,
    body.post-type-archive-tribe_events .main-header-menu a:visited,
    body.post-type-archive-tribe_events .ast-builder-menu-mobile a,
    body.post-type-archive-tribe_events .ast-builder-menu-mobile a:visited,
    body.post-type-archive-tribe_events .ast-mobile-popup-content a,
    body.post-type-archive-tribe_events .ast-mobile-popup-content a:visited,
    body.post-type-archive-tribe_events .ast-mobile-popup-content span,
    body.post-type-archive-tribe_events .ast-menu-toggle {
        color: #0b2c3f !important;
    }

    /* General TEC mobile SVGs */
    .tribe-events svg,
    .tribe-events svg *,
    .tribe-events path,
    .tribe-events-c-top-bar svg,
    .tribe-events-c-top-bar svg *,
    .tribe-events-c-nav svg,
    .tribe-events-c-nav svg *,
    .tribe-events-c-events-bar svg,
    .tribe-events-c-events-bar svg *,
    .tribe-events-c-subscribe-dropdown svg,
    .tribe-events-c-subscribe-dropdown svg * {
        fill: #fcf4e1 !important;
        stroke: #fcf4e1 !important;
        color: #fcf4e1 !important;
    }

    /* View-selector icons remain blue */
    .tribe-events-c-view-selector__list svg,
    .tribe-events-c-view-selector__list svg *,
    .tribe-events-c-view-selector__list path {
        fill: #0b2c3f !important;
        stroke: #0b2c3f !important;
        color: #0b2c3f !important;
    }

    /* Mobile datepicker remains blue */
    .datepicker,
    .datepicker *,
    .datepicker-dropdown,
    .datepicker-dropdown *,
    .datepicker-days,
    .datepicker-days *,
    .datepicker table tr td,
    .datepicker table tr th,
    .datepicker-switch,
    .datepicker .next,
    .datepicker .prev {
        color: #0b2c3f !important;
    }

    .datepicker svg,
    .datepicker svg *,
    .datepicker path {
        fill: #0b2c3f !important;
        stroke: #0b2c3f !important;
    }
}