.nrba-calendar-wrap {
    width: 100%;
    margin: 1.5em 0;
}

.nrba-calendar-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.nrba-calendar-heading {
    text-align: center;
}

.nrba-calendar-heading h2 {
    margin: 0;
}

.nrba-calendar-today {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9em;
}

.nrba-calendar-nav {
    text-decoration: none;
    font-weight: 600;
}

.nrba-calendar-next {
    text-align: right;
}

.nrba-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid rgba(0,0,0,.14);
    border-left: 1px solid rgba(0,0,0,.14);
    background: #fff;
}

.nrba-calendar-weekday {
    padding: 10px 8px;
    text-align: center;
    font-weight: 700;
    border-right: 1px solid rgba(0,0,0,.14);
    border-bottom: 1px solid rgba(0,0,0,.14);
    background: rgba(0,0,0,.04);
}

.nrba-calendar-day {
    min-height: 135px;
    padding: 8px;
    border-right: 1px solid rgba(0,0,0,.14);
    border-bottom: 1px solid rgba(0,0,0,.14);
    background: #fff;
    overflow: hidden;
}

.nrba-calendar-empty {
    background: rgba(0,0,0,.018);
}

.nrba-calendar-date {
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1;
}

.nrba-calendar-is-today {
    box-shadow: inset 0 0 0 2px currentColor;
}

.nrba-calendar-event-card {
    margin: 0 0 7px;
    padding: 5px 6px;
    border-radius: 3px;
    background: rgba(0,0,0,.055);
    font-size: 0.88em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.nrba-calendar-event-title {
    display: block;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.nrba-calendar-event-title:hover,
.nrba-calendar-event-title:focus {
    text-decoration: underline;
}

.nrba-calendar-event-time,
.nrba-calendar-event-location {
    margin-top: 3px;
    font-size: .9em;
    line-height: 1.2;
}

.nrba-calendar-event-location {
    opacity: .82;
}

.nrba-event-details-box {
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,.13);
    border-radius: 4px;
    background: rgba(0,0,0,.025);
}

.nrba-event-detail-row + .nrba-event-detail-row {
    margin-top: 6px;
}

.nrba-event-detail-actions {
    margin-top: 16px;
}

.nrba-event-list-item {
    margin-bottom: 22px;
}

.nrba-event-list-item h3 {
    margin-bottom: 4px;
}

@media (max-width: 800px) {
    .nrba-calendar-header {
        grid-template-columns: 1fr 1fr;
    }

    .nrba-calendar-heading {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .nrba-calendar-prev {
        grid-column: 1;
        grid-row: 2;
    }

    .nrba-calendar-next {
        grid-column: 2;
        grid-row: 2;
    }

    .nrba-calendar-weekday {
        padding: 8px 2px;
        font-size: .8em;
    }

    .nrba-calendar-day {
        min-height: 92px;
        padding: 5px;
    }

    .nrba-calendar-event-card {
        padding: 4px;
        font-size: .74em;
    }

    .nrba-calendar-event-time,
    .nrba-calendar-event-location {
        font-size: .88em;
    }
}

@media (max-width: 560px) {
    .nrba-calendar-day {
        min-height: 78px;
    }

    .nrba-calendar-date {
        font-size: .82em;
    }

    .nrba-calendar-event-card {
        font-size: .68em;
        line-height: 1.2;
    }
}

.nrba-event-login-required {
    margin: 1.5em 0;
    padding: 16px 18px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 4px;
    background: rgba(0,0,0,.025);
}

.nrba-calendar-private-teaser {
    background: rgba(0,0,0,.035);
}

.nrba-calendar-members-only,
.nrba-event-list-members-only {
    margin-top: 4px;
    font-size: .78em;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    opacity: .72;
}

.nrba-calendar-public-abstract {
    margin-top: 4px;
    font-size: .88em;
    line-height: 1.25;
    opacity: .9;
}

.nrba-event-list-public-abstract {
    margin-top: 8px;
}

.nrba-event-list-public-abstract > :first-child {
    margin-top: 0;
}

.nrba-event-list-public-abstract > :last-child {
    margin-bottom: 0;
}

/* Members-only teaser popup */
body.nrba-event-modal-open {
    overflow: hidden;
}

.nrba-event-modal[hidden] {
    display: none !important;
}

.nrba-event-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.nrba-event-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
}

.nrba-event-modal-panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px 30px 30px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.nrba-event-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.nrba-event-modal-eyebrow {
    margin-bottom: 6px;
    font-size: .78em;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .68;
}

.nrba-event-modal-title {
    margin: 0 42px 12px 0;
}

.nrba-event-modal-message {
    margin: 0 0 14px;
}

.nrba-event-modal-abstract {
    margin: 16px 0 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.nrba-event-modal-abstract > :first-child,
.nrba-event-public-abstract-full > :first-child {
    margin-top: 0;
}

.nrba-event-modal-abstract > :last-child,
.nrba-event-public-abstract-full > :last-child {
    margin-bottom: 0;
}

.nrba-event-public-teaser-page {
    margin: 0 0 28px;
    padding: 22px 24px;
    border: 1px solid rgba(0, 0, 0, .13);
    border-radius: 4px;
    background: rgba(0, 0, 0, .025);
}

.nrba-event-public-date {
    margin: 10px 0;
    font-weight: 600;
}

.nrba-event-public-abstract-full {
    margin: 14px 0 20px;
}

@media (max-width: 600px) {
    .nrba-event-modal {
        padding: 14px;
    }

    .nrba-event-modal-panel {
        padding: 24px 20px 22px;
    }
}
