/*
 * The Events Calendar: S.T.A.H.N. presentation layer.
 * All archive rules are scoped beneath .tribe-events.
 */

.tribe-events {
    --stahn-event-ink: #151515;
    --stahn-event-copy: #625d56;
    --stahn-event-cream: #fbf5e9;
    --stahn-event-card: #fffdf9;
    --stahn-event-line: #ded4c5;
    --stahn-event-gold: #d8a315;
    --stahn-event-red: #c9003d;
}

body.post-type-archive-tribe_events .tribe-events {
    background: var(--stahn-event-cream);
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__container,
.single-tribe_events .tribe-events-c-subscribe-dropdown {
    background: transparent !important;
}

.tribe-events .tribe-events-l-container {
    width: min(100% - 40px, 1220px);
    max-width: none;
    padding-top: 84px !important;
    padding-bottom: 100px !important;
}

/* Search and view controls. */
.tribe-events .tribe-events-c-events-bar {
    overflow: hidden;
    border: 1px solid var(--stahn-event-line) !important;
    border-radius: 14px;
    background: var(--stahn-event-card) !important;
    box-shadow: 0 5px 16px rgba(35, 25, 13, .06);
}

.tribe-events .tribe-events-c-search__input-control-icon-svg path,
.tribe-events .tribe-events-c-view-selector__button-icon path {
    fill: var(--stahn-event-ink);
}

.tribe-events .tribe-events-c-search__input,
.tribe-events .tribe-events-c-view-selector__list-item-text,
.tribe-events .tribe-events-c-top-bar__datepicker-button,
.tribe-events .tribe-events-c-top-bar__today-button {
    color: var(--stahn-event-ink) !important;
    font-family: "DM Sans", sans-serif !important;
}

.tribe-events .tribe-common-c-btn,
.tribe-events .tribe-events-c-search__button {
    min-height: 54px;
    border: 0;
    border-radius: 999px !important;
    padding-inline: 30px !important;
    color: #151515 !important;
    background: var(--stahn-event-gold) !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tribe-events .tribe-common-c-btn:hover,
.tribe-events .tribe-common-c-btn:focus,
.tribe-events .tribe-events-c-search__button:hover,
.tribe-events .tribe-events-c-search__button:focus {
    color: #fff !important;
    background: var(--stahn-event-red) !important;
}

.tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link::after {
    background-color: var(--stahn-event-red) !important;
}

.tribe-events .tribe-events-c-view-selector__button:focus,
.tribe-events .tribe-events-c-view-selector__list-item-link:focus,
.tribe-events .tribe-events-c-view-selector__list-item-link:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.tribe-events .tribe-events-c-view-selector__list-item-link:focus .tribe-events-c-view-selector__list-item-text,
.tribe-events .tribe-events-c-view-selector__list-item-link:focus-visible .tribe-events-c-view-selector__list-item-text {
    color: var(--stahn-event-red) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Calendar navigation. */
.tribe-events .tribe-events-c-top-bar {
    margin-top: 42px;
}

.tribe-events .tribe-events-c-top-bar__datepicker-button {
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: clamp(34px, 3vw, 46px) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

.tribe-events .tribe-events-c-top-bar__datepicker-button:focus,
.tribe-events .tribe-events-c-top-bar__datepicker-button:focus-visible,
.tribe-events .tribe-events-c-events-bar__search-button:focus,
.tribe-events .tribe-events-c-events-bar__search-button:focus-visible,
.tribe-events .tribe-events-c-view-selector__button:focus,
.tribe-events .tribe-events-c-view-selector__button:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.tribe-events .tribe-events-c-top-bar__datepicker-button:focus,
.tribe-events .tribe-events-c-top-bar__datepicker-button:focus-visible {
    color: var(--stahn-event-red) !important;
}

.tribe-events .tribe-events-c-events-bar:focus,
.tribe-events .tribe-events-c-events-bar:focus-within {
    outline: 0 !important;
    box-shadow: none !important;
}

.tribe-events .tribe-events-c-events-bar__search-button:focus svg path,
.tribe-events .tribe-events-c-events-bar__search-button:focus-visible svg path,
.tribe-events .tribe-events-c-view-selector__button:focus svg path,
.tribe-events .tribe-events-c-view-selector__button:focus-visible svg path {
    fill: var(--stahn-event-red) !important;
    stroke: var(--stahn-event-red) !important;
}

.tribe-events .tribe-events-c-top-bar__nav-link-icon-svg path {
    fill: var(--stahn-event-ink);
}

/* Month separators. */
.tribe-events .tribe-events-calendar-list__month-separator {
    margin: 48px 0 24px !important;
}

.tribe-events .tribe-events-calendar-list__month-separator::after {
    background-color: var(--stahn-event-line) !important;
}

.tribe-events .tribe-events-calendar-list__month-separator-text {
    color: var(--stahn-event-gold) !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* Individual archive event cards. */
.tribe-events .tribe-events-calendar-list__event-row {
    margin: 0 0 24px !important;
}

.tribe-events .tribe-events-calendar-list__event {
    padding: 32px 34px 34px !important;
    border: 1px solid var(--stahn-event-line);
    border-left: 7px solid var(--stahn-event-red);
    border-radius: 14px;
    background: var(--stahn-event-card);
    box-shadow: 0 4px 12px rgba(35, 25, 13, .07);
}

.tribe-events .tribe-events-calendar-list__event-date-tag {
    padding-top: 26px !important;
}

.tribe-events .tribe-events-calendar-list__event-date-tag-datetime {
    display: flex;
    width: 72px;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    padding: 10px 8px;
    color: #fff;
    background: var(--stahn-event-ink);
}

.tribe-events .tribe-events-calendar-list__event-date-tag-weekday {
    color: var(--stahn-event-gold) !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tribe-events .tribe-events-calendar-list__event-date-tag-daynum {
    color: #fff !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-events .tribe-events-calendar-list__event-venue,
.tribe-events .tribe-events-calendar-list__event-description {
    color: var(--stahn-event-copy) !important;
    font-family: "DM Sans", sans-serif !important;
}

.tribe-events .tribe-events-calendar-list__event-title {
    margin: 10px 0 14px !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: clamp(30px, 3vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

.tribe-events .tribe-events-calendar-list__event-title-link {
    color: var(--stahn-event-ink) !important;
    border: 0 !important;
}

.tribe-events .tribe-events-calendar-list__event-title-link:hover,
.tribe-events .tribe-events-calendar-list__event-title-link:focus {
    color: var(--stahn-event-red) !important;
}

.tribe-events .tribe-events-calendar-list__event-title-link:focus,
.tribe-events .tribe-events-calendar-list__event-title-link:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    text-decoration: underline !important;
    text-decoration-color: var(--stahn-event-red) !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 5px;
}

.tribe-events .tribe-events-calendar-list__event-description p {
    font-size: 17px !important;
    line-height: 1.65 !important;
}

/* Bottom navigation and subscription. */
.tribe-events .tribe-events-c-nav__next,
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-subscribe-dropdown__button-text {
    color: var(--stahn-event-ink) !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button {
    border-color: var(--stahn-event-ink) !important;
    border-radius: 999px !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button:hover,
.tribe-events .tribe-events-c-subscribe-dropdown__button:focus-within {
    color: #fff !important;
    background: var(--stahn-event-ink) !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button:hover .tribe-events-c-subscribe-dropdown__button-text,
.tribe-events .tribe-events-c-subscribe-dropdown__button:focus-within .tribe-events-c-subscribe-dropdown__button-text {
    color: #fff !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button:hover .tribe-events-c-subscribe-dropdown__button-icon path,
.tribe-events .tribe-events-c-subscribe-dropdown__button:focus-within .tribe-events-c-subscribe-dropdown__button-icon path {
    fill: #fff !important;
    stroke: #fff !important;
}

@media (max-width: 767px) {
    .tribe-events .tribe-events-l-container {
        width: min(100% - 28px, 1220px);
        padding-top: 58px !important;
        padding-bottom: 72px !important;
    }

    .tribe-events .tribe-events-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 16px;
        margin-bottom: 44px !important;
    }

    .tribe-events .tribe-events-c-top-bar {
        grid-column: 1;
        grid-row: 1;
        margin: 0 !important;
    }

    .tribe-events .tribe-events-c-events-bar {
        grid-column: 2;
        grid-row: 1;
        width: auto !important;
        min-width: 82px;
        min-height: 50px;
        margin: 0 !important;
        border: 2px solid var(--stahn-event-ink) !important;
        border-radius: 999px;
        box-shadow: none;
    }

    .tribe-events .tribe-events-c-events-bar__search-button,
    .tribe-events .tribe-events-c-view-selector__button {
        display: inline-flex;
        min-width: 38px;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        border: 0 !important;
        padding: 8px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .tribe-events .tribe-events-c-top-bar__datepicker {
        margin: 0 !important;
    }

    .tribe-events .tribe-events-c-top-bar__datepicker-button {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin: 0 !important;
        padding: 0 !important;
        font-size: clamp(37px, 11vw, 46px) !important;
        line-height: 1 !important;
    }

    .tribe-events .tribe-events-c-top-bar__datepicker-button-icon-svg {
        width: 12px !important;
        height: 8px !important;
    }

    .tribe-events .tribe-events-header__events-bar,
    .tribe-events .tribe-events-c-top-bar__nav,
    .tribe-events .tribe-events-c-top-bar__today-button {
        margin: 0 !important;
    }

    .tribe-events .tribe-events-calendar-list__event-row {
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: start;
        gap: 18px;
        margin: 0 0 24px !important;
        border: 1px solid var(--stahn-event-line);
        border-left: 7px solid var(--stahn-event-red);
        border-radius: 14px;
        padding: 24px 20px !important;
        background: var(--stahn-event-card);
        box-shadow: 0 4px 12px rgba(35, 25, 13, .07);
    }

    .tribe-events .tribe-events-calendar-list__event-date-tag {
        width: 64px !important;
        padding: 0 !important;
    }

    .tribe-events .tribe-events-calendar-list__event-wrapper {
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
    }

    .tribe-events .tribe-events-calendar-list__event {
        display: block !important;
        margin: 0 !important;
        border: 0;
        border-radius: 0;
        padding: 0 !important;
        background: transparent;
        box-shadow: none;
    }

    .tribe-events .tribe-events-calendar-list__event-details {
        width: 100% !important;
        padding: 0 !important;
    }

    .tribe-events .tribe-events-calendar-list__event-date-tag-datetime {
        width: 64px;
        min-height: 82px;
    }

    .tribe-events .tribe-events-calendar-list__event-title {
        overflow-wrap: anywhere;
        font-size: clamp(27px, 8vw, 34px) !important;
    }

    .tribe-events .tribe-events-calendar-list__event-description {
        display: none !important;
    }
}

@media (max-width: 390px) {
    .tribe-events .tribe-events-header {
        gap: 10px;
    }

    .tribe-events .tribe-events-c-events-bar {
        min-width: 74px;
    }

    .tribe-events .tribe-events-c-top-bar__datepicker-button {
        font-size: 34px !important;
    }
}

/* ---------------------------------------------------------
 * Single event page
 * --------------------------------------------------------- */
.single-tribe_events .tribe-events-single {
    --stahn-event-ink: #151515;
    --stahn-event-copy: #625d56;
    --stahn-event-cream: #fbf5e9;
    --stahn-event-card: #fffdf9;
    --stahn-event-line: #ded4c5;
    --stahn-event-gold: #d8a315;
    --stahn-event-red: #c9003d;
    width: min(100% - 40px, 1180px);
    max-width: none;
    margin: 0 auto;
    padding: 82px 0 96px;
}

.single-tribe_events main,
.single-tribe_events #primary,
.single-tribe_events .site-content {
    background: var(--stahn-event-cream, #fbf5e9);
}

.single-tribe_events .tribe-events-back {
    margin: 0 0 42px;
}

.single-tribe_events .tribe-events-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--stahn-event-red) !important;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.single-tribe_events .tribe-events-back a:hover,
.single-tribe_events .tribe-events-back a:focus-visible {
    color: var(--stahn-event-ink) !important;
}

.single-tribe_events .tribe-events-single-event-title {
    max-width: 950px;
    margin: 0;
    color: var(--stahn-event-ink);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(55px, 7vw, 82px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: .95;
    text-transform: uppercase;
}

.single-tribe_events .tribe-events-schedule {
    margin: 28px 0 0;
}

.single-tribe_events .tribe-events-schedule h2 {
    margin: 0;
    color: var(--stahn-event-gold);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.single-tribe_events .tribe-events-event-image {
    overflow: hidden;
    margin: 44px 0 0;
    border-radius: 16px;
}

.single-tribe_events .tribe-events-event-image img {
    display: block;
    width: 100%;
    max-height: 580px;
    object-fit: cover;
}

.single-tribe_events .tribe-events-single-event-description {
    max-width: 920px;
    margin: 42px 0 0;
    color: var(--stahn-event-copy);
    font-family: "DM Sans", sans-serif;
    font-size: 19px;
    line-height: 1.75;
}

.single-tribe_events .tribe-events-single-event-description p {
    margin: 0 0 1.35em;
    color: inherit;
    font: inherit;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__container,
.single-tribe_events .tribe-events-cal-links {
    margin-top: 34px;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__button,
.single-tribe_events .tribe-events-cal-links a {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--stahn-event-gold) !important;
    border-radius: 999px !important;
    padding: 12px 30px !important;
    color: var(--stahn-event-ink) !important;
    background: var(--stahn-event-gold) !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .11em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within,
.single-tribe_events .tribe-events-cal-links a:hover,
.single-tribe_events .tribe-events-cal-links a:focus-visible {
    border-color: var(--stahn-event-red) !important;
    color: #fff !important;
    background: var(--stahn-event-red) !important;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover .tribe-events-c-subscribe-dropdown__button-text,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within .tribe-events-c-subscribe-dropdown__button-text {
    color: #fff !important;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover svg path,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within svg path {
    fill: #fff !important;
    stroke: #fff !important;
}

/* Details, venue and organizer information. */
.single-tribe_events .tribe-events-single-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    margin: 48px 0 0 !important;
    border: 1px solid var(--stahn-event-line) !important;
    border-left: 7px solid var(--stahn-event-red) !important;
    border-radius: 15px;
    padding: 34px 38px !important;
    background: var(--stahn-event-card) !important;
    box-shadow: 0 5px 14px rgba(35, 25, 13, .07);
}

.single-tribe_events .tribe-events-single-section > div {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-tribe_events .tribe-events-single-section-title {
    margin: 0 0 18px !important;
    color: var(--stahn-event-ink);
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    letter-spacing: .03em;
    line-height: 1;
    text-transform: uppercase;
}

.single-tribe_events .tribe-events-event-meta,
.single-tribe_events .tribe-events-event-meta dt,
.single-tribe_events .tribe-events-event-meta dd,
.single-tribe_events .tribe-events-event-meta a {
    color: var(--stahn-event-copy);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.single-tribe_events .tribe-events-event-meta dt {
    color: var(--stahn-event-ink);
    font-weight: 700;
}

.single-tribe_events .tribe-events-event-meta a {
    color: var(--stahn-event-red) !important;
}

.single-tribe_events .tribe-events-meta-group dl {
    margin: 0;
}

/* Previous and next event navigation. */
.single-tribe_events #tribe-events-footer {
    margin: 48px 0 0;
    border-top: 1px solid var(--stahn-event-line);
    padding-top: 30px;
}

.single-tribe_events .tribe-events-sub-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.single-tribe_events .tribe-events-sub-nav li {
    margin: 0 !important;
}

.single-tribe_events .tribe-events-sub-nav a {
    color: var(--stahn-event-ink) !important;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.single-tribe_events .tribe-events-sub-nav a:hover,
.single-tribe_events .tribe-events-sub-nav a:focus-visible {
    color: var(--stahn-event-red) !important;
}

@media (max-width: 767px) {
    .single-tribe_events .tribe-events-single {
        width: min(100% - 28px, 1180px);
        padding: 60px 0 72px;
    }

    .single-tribe_events .tribe-events-back {
        margin-bottom: 32px;
    }

    .single-tribe_events .tribe-events-single-event-title {
        overflow-wrap: anywhere;
        font-size: clamp(48px, 15vw, 65px);
    }

    .single-tribe_events .tribe-events-schedule h2 {
        font-size: 19px;
    }

    .single-tribe_events .tribe-events-single-event-description {
        margin-top: 32px;
        font-size: 17px;
    }

    .single-tribe_events .tribe-events-c-subscribe-dropdown__button,
    .single-tribe_events .tribe-events-cal-links a {
        width: 100%;
    }

    .single-tribe_events .tribe-events-single-section {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 38px !important;
        padding: 29px 24px !important;
    }

    .single-tribe_events .tribe-events-sub-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .single-tribe_events .tribe-events-nav-previous,
    .single-tribe_events .tribe-events-nav-next {
        width: 100%;
        text-align: left !important;
    }
}
