/* ============================================================
   Events — Custom Styles
   Replaces The Events Calendar full CSS (skeleton-only mode).
   All typography inherits the theme font stack.
   ============================================================ */

/* ----------------------------------------------------------
   1. Hide UI chrome
   ---------------------------------------------------------- */

.tribe-events .tribe-events-header,
#tribe-events-header,
.tribe-events-back,
.single-tribe_events .tribe-events-c-subscribe-dropdown__container,
.tribe-events .tribe-events-c-subscribe-dropdown__container {
    display: none;
}

/* ----------------------------------------------------------
   2. Page containers
   ---------------------------------------------------------- */

#tribe-events-pg-template {
    max-width: none;
    padding: 50px 0 0;
}

.tribe-common--breakpoint-medium.tribe-common .tribe-common-l-container {
    padding-left: 0;
    padding-right: 0;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
    padding-top: 50px;
    padding-bottom: 0;
}

/* ----------------------------------------------------------
   3. Archive: month separator
   ---------------------------------------------------------- */

.tribe-events-calendar-list__month-separator {
    display: flex;
    align-items: center;
    margin: 0 0 24px;
}

.tribe-events-calendar-list__month-separator-title {
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: inherit;
    white-space: nowrap;
    margin: 0;
    padding-right: 0;
}

.tribe-events-calendar-list__month-separator:after {
    content: '';
    display: block;
    flex: auto;
    height: 1px;
    background-color: var(--ast-global-color-0);
    margin-left: 20px;
}

/* ----------------------------------------------------------
   4. Archive: event row wrapper
   ---------------------------------------------------------- */

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-row {
    background-color: #f6f6f6;
    margin: 0 0 30px;
    padding: 50px 20px;
}

@media (max-width: 767px) {
    .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-row {
        padding: 24px 16px;
    }
}

.tribe-common .tribe-common-g-row--gutters {
    margin-left: 0;
    margin-right: 0;
}

/* ----------------------------------------------------------
   5. Archive: event card (image + details flex row)
   ---------------------------------------------------------- */

.tribe-events-calendar-list__event {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
    margin: 0;
}

/* Featured image column */
.tribe-events-calendar-list__event-featured-image-wrapper {
    flex: 0 0 37.5%;
    max-width: 37.5%;
    padding-right: 32px;
    box-sizing: border-box;
}

.tribe-events-calendar-list__event-featured-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Details column */
.tribe-events-calendar-list__event-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    .tribe-events-calendar-list__event {
        flex-direction: column;
    }

    .tribe-events-calendar-list__event-featured-image-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 16px;
    }
}

/* ----------------------------------------------------------
   6. Archive: event card typography
   ---------------------------------------------------------- */

/* Date tag */
.tribe-events-calendar-list__event-date-tag-weekday {
    font-size: 20px;
    line-height: 28px;
    font-weight: bold;
    text-transform: uppercase;
}

.tribe-events-calendar-list__event-date-tag-daynum {
    font-size: 40px;
    font-weight: bold;
    line-height: 40px;
    color: var(--ast-global-color-0);
}

/* Title */
.tribe-events-calendar-list__event-title {
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.tribe-events-calendar-list__event-title-link {
    color: var(--ast-global-color-2);
    text-decoration: none;
    background: none;
}

.tribe-events-calendar-list__event-title-link:hover,
.tribe-events-calendar-list__event-title-link:focus {
    color: var(--ast-global-color-1);
    background: none;
}

/* Date / time */
.tribe-events-calendar-list__event-datetime-wrapper {
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--ast-global-color-3);
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Venue */
.tribe-events-calendar-list__event-venue {
    font-family: inherit;
    font-size: 0.875rem;
    font-style: normal;
    color: #5d5d5d;
    line-height: 1.5;
}

.tribe-events-calendar-list__event-venue-title {
    font-weight: 700;
    display: block;
}

.tribe-events-calendar-list__event-venue-address {
    display: block;
}

/* Read more link */
.tribe-events-calendar-list__event-read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ast-global-color-0);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tribe-events-calendar-list__event-read-more:hover {
    color: var(--ast-global-color-1);
}

/* ----------------------------------------------------------
   7. Archive: list navigation (prev / next month)
   ---------------------------------------------------------- */

.tribe-events-calendar-list-nav {
    border-top: 1px solid #e4e4e4;
    padding-top: 24px;
    margin-top: 8px;
}

.tribe-events-c-nav__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tribe-events-c-nav__list-item {
    list-style: none;
    margin: 0;
}

/* Prev / Next buttons */
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ast-global-color-5);
    background: var(--ast-global-color-1);
    border: none;
    border-radius: 30px;
    padding: 15px 25px;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tribe-events .tribe-events-c-nav__prev:hover,
.tribe-events .tribe-events-c-nav__next:hover {
    color: var(--ast-global-color-5);
    background: var(--ast-global-color-4);
}

.tribe-events .tribe-events-c-nav__prev:disabled,
.tribe-events .tribe-events-c-nav__next:disabled {
    display: none;
}

/* SVG icons */
.tribe-events-c-nav__prev-icon-svg,
.tribe-events-c-nav__next-icon-svg {
    width: 10px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Today link */
.tribe-events .tribe-events-c-nav__today {
    display: inline-block;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ast-global-color-5);
    background: var(--ast-global-color-1);
    border-radius: 30px;
    padding: 15px 25px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tribe-events .tribe-events-c-nav__today:hover {
    color: var(--ast-global-color-5);
    background: var(--ast-global-color-4);
}

@media (max-width: 767px) {
    .tribe-events .tribe-events-c-nav__today {
        display: none;
    }
}

/* ----------------------------------------------------------
   8. Single event: title & schedule
   ---------------------------------------------------------- */

.tribe-events-single-event-title {
    text-align: center;
    font-family: inherit;
}

.tribe-events-schedule {
    display: flex;
    justify-content: center;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ast-global-color-3);
    margin-bottom: 0px;
    margin-top: 0px;
}

/* ----------------------------------------------------------
   9. Single event: featured image
   ---------------------------------------------------------- */

.tribe-events-event-image {
    margin-bottom: 24px;
}

.tribe-events-event-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* ----------------------------------------------------------
   10. Single event: meta box (Details / Venue / Map)
   ---------------------------------------------------------- */

.single-tribe_events .tribe-events-event-meta {
    border-top: 3px solid var(--ast-global-color-0);
    margin: 30px 0 0 0;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
}

/* Meta section headings: "Details", "Venue" */
.tribe-events-meta-group .tribe-events-single-section-title {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: inherit;
    margin: 20px 0 10px;
}

/* Meta list reset */
.single-tribe_events .tribe-events-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-tribe_events .tribe-events-meta-item {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

/* Labels & values */
.single-tribe_events .tribe-events-meta-label {
    clear: left;
    display: block;
    font-weight: 700;
    line-height: 1;
}

.single-tribe_events .tribe-events-meta-value {
    display: block;
    line-height: 1.5;
}

/* Address */
.tribe-events-event-meta .tribe-events-address {
    font-style: normal;
    font-family: inherit;
    font-size: inherit;
}

/* Google Map link */
.tribe-events-gmap {
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--ast-global-color-1);
}

/* ----------------------------------------------------------
   11. Single event: meta layout
       Details 50% | Venue 50% on desktop, Map full-width below
   ---------------------------------------------------------- */

@media (min-width: 768px) {
    .tribe-events-meta-group.tribe-events-meta-group-gmap {
        flex-basis: 100%;
        width: 100%;
        padding-top: 24px;
        margin-top: 8px;
        border-top: 1px solid #d5d5d5;
    }

    .tribe-events-venue-map {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   12. Single event: prev/next navigation
   ---------------------------------------------------------- */

#tribe-events-footer .tribe-events-sub-nav {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 24px 0 0;
    border-top: 1px solid #e4e4e4;
}

#tribe-events-footer .tribe-events-sub-nav li {
    list-style: none;
    margin: 0;
}

#tribe-events-footer .tribe-events-sub-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ast-global-color-5);
    background: var(--ast-global-color-1);
    border-radius: 30px;
    padding: 15px 25px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#tribe-events-footer .tribe-events-sub-nav a:hover {
    color: var(--ast-global-color-5);
    background: var(--ast-global-color-4);
}

/* Restore the arrow spans hidden by the skeleton */
#tribe-events-footer .tribe-events-sub-nav a span {
    display: inline;
    font-size: 1.1em;
}


/* ----------------------------------------------------------
   13. Astra compatibility
   ---------------------------------------------------------- */

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* ----------------------------------------------------------
   14. Event notices ("This event has passed." etc.)
   ---------------------------------------------------------- */

.tribe-events-notices {
    background-color: #f6f6f6;
    border-left: 4px solid var(--ast-global-color-0);
    border-radius: 2px;
    margin: 0 0 24px;
    padding: 14px 18px;
}

.tribe-events-notices ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tribe-events-notices ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ast-global-color-3);
}