/* === Events calendar === */
.events-loop { display: none !important; }
.gcal { margin: 0 0 40px; }

.gcal-head { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.gcal-title { flex: 1; text-align: center; font-family: EuclidCircularB-SemiBold; font-size: 22px; line-height: 28px; }
.gcal-today { padding: 4px 16px; border: 2px solid #001965; border-radius: 20px; background: none; font-family: EuclidCircularB-SemiBold; font-size: 13px; line-height: 18px; color: #001965; cursor: pointer; transition: all .3s ease; }
.gcal-today:hover { background: #001965; color: #fff; }
.gcal-today[hidden] { display: none; }
.gcal-nav { position: relative; flex: 0 0 36px; height: 36px; border: 2px solid #001965; border-radius: 50%; background: none; cursor: pointer; transition: background .3s ease; }
.gcal-nav:hover { background: #001965; }
.gcal-nav::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border: solid #001965; border-width: 2px 2px 0 0; transition: border-color .3s ease; }
.gcal-nav:hover::before { border-color: #fff; }
.gcal-prev::before { transform: translate(-40%, -50%) rotate(-135deg); }
.gcal-next::before { transform: translate(-60%, -50%) rotate(45deg); }
.gcal-nav[disabled] { opacity: .25; cursor: default; }
.gcal-nav[disabled]:hover { background: none; }
.gcal-nav[disabled]:hover::before { border-color: #001965; }

.gcal-months { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.gcal-month { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gcal-month-name { position: relative; display: flex; align-items: baseline; gap: 6px; width: 100%; min-height: 22px; padding-bottom: 8px; border-bottom: 1px solid #2878FF; font-family: EuclidCircularB-Medium; font-size: 14px; line-height: 18px; text-transform: uppercase; letter-spacing: .04em; }
.gcal-month-label { display: inline; }
.gcal-month-year { display: inline; font-family: EuclidCircularB-Regular; color: inherit; opacity: 1; text-transform: none; letter-spacing: 0; }
.gcal-month.is-past .gcal-month-name { opacity: .45; }
.gcal-month.is-now .gcal-month-name { border-bottom-color: #2878FF; color: #2878FF; }
.gcal-now-tag { display: inline-flex; align-items: center; justify-content: center; margin-top: 0px; padding: 3px 8px; border-radius: 12px; background: #2878FF; font-family: EuclidCircularB-Medium; font-size: 10px; line-height: 14px; color: #fff; letter-spacing: .04em; text-transform: uppercase; }

.gcal-chip { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid #fff; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .3s ease, box-shadow .3s ease; }
.gcal-chip:hover, .gcal-chip:focus-visible { box-shadow: 0 2px 10px rgba(0, 25, 101, .3); }
.gcal-cat { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 12px; font-family: EuclidCircularB-Medium; font-size: 11px; line-height: 15px; color: #fff; }
.gcal-chip-date { display: block; margin-bottom: 4px; font-family: EuclidCircularB-Medium; font-size: 12px; line-height: 16px; color: #2878FF; }
.gcal-chip-title { display: block; font-family: EuclidCircularB-SemiBold; font-size: 14px; line-height: 18px; color: var(--g-navy); }
.gcal-chip-loc { display: block; margin-top: 4px; font-family: EuclidCircularB-Regular; font-size: 12px; line-height: 16px; color: var(--g-navy-a75); }

.gcal-none { padding: 12px 0; font-size: 13px; line-height: 18px; opacity: .35; }

.gcal-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 25px; background: rgba(0, 25, 101, .55); }
.gcal-modal-box { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 720px; max-height: 84vh; background: #fff; overflow: hidden; }
.gcal-modal-img { flex: 0 0 auto; height: 200px; background-size: cover; background-position: center; }
.gcal-modal-body { flex: 1 1 auto; overflow-y: auto; padding: 30px 40px 35px; }
.gcal-modal-body h3 { margin: 0 0 8px; padding-right: 20px; }
.gcal-modal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #9FC2D6; }
.gcal-modal-dates { font-family: EuclidCircularB-Medium; font-size: 15px; line-height: 20px; color: #2878FF; }
.gcal-modal-loc { font-size: 15px; line-height: 20px; opacity: .7; }
.gcal-modal-body p { margin-bottom: 12px; }
.gcal-modal-body a { text-decoration: underline; }
.gcal-modal-body a:hover { color: #2878FF; }
.gcal-modal-people { margin: 20px 0; padding-top: 18px; border-top: 1px solid #9FC2D6; }
.gcal-modal-people-title { margin: 0 0 8px; font-family: EuclidCircularB-SemiBold; font-weight: normal; font-size: 16px; line-height: 22px; }
.gcal-modal-people-list { margin: 0; padding: 0; list-style: none; }
.gcal-modal-people-list li { margin: 0 0 4px; }
.gcal-modal-people-group { font-family: var(--g-font-semibold); }
.gcal-go { display: inline-block; margin-top: 12px; }
.gcal-modal-close { position: absolute; top: 12px; right: 16px; z-index: 2; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 24px; line-height: 32px; color: #001965; cursor: pointer; transition: background .3s ease; }
.gcal-modal-close:hover { background: #DFEBFF; }

@media only screen and (max-width: 900px) {
    .gcal-months { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .gcal-month { flex: 0 0 240px; scroll-snap-align: start; }
    .gcal-title { font-size: 16px; line-height: 22px; }
    .gcal-modal { padding: 0; }
    .gcal-modal-box { max-width: none; max-height: 100%; height: 100%; }
    .gcal-modal-img { height: 150px; }
    .gcal-modal-body { padding: 25px 25px 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .gcal-nav, .gcal-nav::before, .gcal-chip, .gcal-today, .gcal-modal-close { transition: none; }
}
/* === End events calendar === */

/* === BU event cards === */
.bu-events.bu-events--enhanced { display: none !important; }
.bu-events-display {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 40px;
}
.bu-event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    min-width: 0;
    color: #001965;
}
.bu-event-visual { position: relative; min-width: 0; aspect-ratio: 1; background: #DFEBFF; }
.bu-event-image-trigger {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.bu-event-image-trigger:focus-visible { outline: 2px solid #2878FF; outline-offset: 3px; }
.bu-event-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.bu-event-image--empty { background: #DFEBFF; }
.bu-event-visual .bu-event-day {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px;
    background-color: rgba(0, 25, 101, .5) !important;
    color: #fff;
    box-sizing: border-box;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}
.bu-event-visual .bu-event-day span { font-family: EuclidCircularB-SemiBold; font-size: 14px; line-height: 18px; text-transform: uppercase; }
.bu-event-visual .bu-event-day strong { font-family: EuclidCircularB-SemiBold; font-size: 32px; line-height: 36px; }
.bu-event-visual .bu-event-day .bu-event-year { font-size: 16px; line-height: 20px; }
.bu-event-content { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bu-event-categories { display: flex; align-items: center; }
.bu-event-categories .gcal-cat { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.bu-event-categories--stack {
    position: relative;
    display: block;
    margin-bottom: 8px;
}
.bu-event-categories--stack .gcal-cat {
    position: absolute;
    margin: 0;
}
/* Secondary categories: a pill the full height of the main tag, showing the right 34px of the tag. */
.bu-event-categories--stack .gcal-cat:not(:first-child) {
    clip-path: inset(0 0 0 calc(100% - 34px) round 12px);
    color: transparent;
    transition: clip-path .2s ease, color .2s ease;
}
.bu-event-categories--stack .gcal-cat:not(:first-child):hover,
.bu-event-categories--stack .gcal-cat:not(:first-child):focus-visible {
    clip-path: inset(0 0 0 0 round 12px);
    color: #fff;
}
.bu-event-categories--row {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.bu-event-dates { display: block; margin-bottom: 4px; font-family: EuclidCircularB-Medium; font-size: 12px; line-height: 16px; color: #2878FF; }
.bu-event-title { margin: 0 0 6px; font-family: EuclidCircularB-SemiBold; font-size: 15px; line-height: 20px; color: var(--g-navy); }
.bu-event-location { font-family: EuclidCircularB-Regular; font-size: 14px; line-height: 19px; color: var(--g-navy-a75); }
.bu-event-more {
    margin-top: auto;
    padding: 4px 18px;
    border: 2px solid #001965;
    border-radius: 20px;
    background: #fff;
    font-family: EuclidCircularB-SemiBold;
    font-size: 14px;
    line-height: 20px;
    color: #001965;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
}
.bu-event-more:hover, .bu-event-more:focus-visible { background: #001965; color: #fff; }

@media only screen and (max-width: 1100px) {
    .bu-events-display { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bu-event-card { gap: 16px; }
}
@media only screen and (max-width: 640px) {
    .bu-events-display {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .bu-event-card { flex: 0 0 85%; scroll-snap-align: start; }
    .bu-event-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .bu-event-more, .bu-event-categories--stack .gcal-cat { transition: none; }
}
/* === End BU event cards === */