/*
 * Single event page — Dates & Times list and Add to Calendar.
 * The theme styles every <button> and underlines links after this file loads,
 * so the rules that matter use two classes and !important.
 */

.vgcsc-event-extras {
    margin: 20px 0 28px;
    font-family: "Mulish", sans-serif;
    color: #1C2C4C;
}

.vgcsc-event-extras[hidden],
.vgcsc-event-extras [hidden] {
    display: none !important;
}

/* ── Dates & Times ── */

.vgcsc-event-when {
    margin-bottom: 18px;
}

.vgcsc-event-extras .vgcsc-event-when__title {
    margin: 0 0 10px;
    font-family: "Suranna", serif;
    font-size: 28px;
    font-weight: 400;
    color: #1C2C4C;
}

.vgcsc-event-when__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e3e7ee;
}

.vgcsc-event-when__item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e3e7ee;
}

.vgcsc-event-when__date {
    font-weight: 700;
}

.vgcsc-event-when__time {
    color: #3b4a66;
    white-space: nowrap;
}

.vgcsc-event-extras .vgcsc-atc__mini {
    padding: 4px 10px !important;
    border: 1px solid #1C2C4C !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #1C2C4C !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    cursor: pointer;
}

.vgcsc-event-extras .vgcsc-atc__mini:hover,
.vgcsc-event-extras .vgcsc-atc__mini:focus-visible,
.vgcsc-event-extras .vgcsc-atc__mini[aria-expanded="true"] {
    background: #1C2C4C !important;
    color: #fff !important;
}

@media (max-width: 560px) {
    .vgcsc-event-when__item {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .vgcsc-event-when__time {
        grid-column: 1;
        grid-row: 2;
    }
    .vgcsc-event-extras .vgcsc-atc__mini {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

/* ── Add to Calendar ── */

.vgcsc-atc {
    position: relative;
    display: inline-block;
}

.vgcsc-event-extras .vgcsc-atc__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 20px !important;
    border: 1px solid #d5dbe5 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #1C2C4C !important;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 8px rgba(28, 44, 76, .08);
    cursor: pointer;
}

.vgcsc-event-extras .vgcsc-atc__btn:hover,
.vgcsc-event-extras .vgcsc-atc__btn:focus-visible,
.vgcsc-event-extras .vgcsc-atc__btn[aria-expanded="true"] {
    border-color: #1C2C4C !important;
    background: #f6f8fb !important;
}

.vgcsc-atc__menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    padding: 6px 0;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 26, 46, .16);
}

.vgcsc-event-when__item > .vgcsc-atc__menu {
    left: auto;
    right: 0;
}

.vgcsc-atc__for {
    margin: 0;
    padding: 6px 16px 8px;
    border-bottom: 1px solid #eef0f4;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.vgcsc-event-extras .vgcsc-atc__item {
    display: block;
    padding: 9px 16px;
    color: #1C2C4C !important;
    font-size: 15px;
    text-decoration: none !important;
}

.vgcsc-event-extras .vgcsc-atc__item em {
    color: #8a93a3;
    font-size: 13px;
}

.vgcsc-event-extras .vgcsc-atc__item:hover,
.vgcsc-event-extras .vgcsc-atc__item:focus-visible {
    background: #eefcfb;
    outline: none;
}

.vgcsc-event-extras .vgcsc-atc__item--all {
    border-top: 1px solid #eef0f4;
    margin-top: 4px;
}

/* Second button in the top panel, under the address */
.vgcsc-event-extras.vgcsc-atc-hero {
    margin: 4px 0 10px;
    text-align: center;
}

.vgcsc-atc-hero .vgcsc-atc__menu {
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
}

.vgcsc-event-extras.vgcsc-atc-hero .vgcsc-atc__btn {
    padding: 10px 18px !important;
    font-size: 15px !important;
}
