.bs-shell {
    /* CPD Consortium brand inside an LMS shell (not the public website) */
    --bs-ink: #1a222c;
    --bs-muted: #5f6b76;
    --bs-line: #e4e8ec;
    --bs-canvas: #f3f5f6;
    --bs-panel: #ffffff;
    --bs-brand: #023835;
    --bs-brand-deep: #012b29;
    --bs-gold: #B28552;
    --bs-gold-soft: #f6efe6;
    --bs-success: #2f6b3a;
    --bs-success-soft: #eef6ef;
    --bs-radius: 1rem;
    --bs-shadow: 0 8px 20px rgba(2, 56, 53, 0.06);
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    background:
        radial-gradient(ellipse 48rem 28rem at 100% -8%, rgba(178, 133, 82, 0.06), transparent 58%),
        radial-gradient(ellipse 42rem 26rem at -6% 18%, rgba(2, 56, 53, 0.06), transparent 55%),
        linear-gradient(180deg, #f5f7f8 0%, var(--bs-canvas) 40%, #eef1f3 100%);
    color: var(--bs-ink);
    font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
    /* Do not use overflow-x: clip. It forces overflow-y to clip/scroll and cuts calendar day cells. */
    overflow-x: hidden;
    overflow-y: visible;
}

.bs-skip {
    position: absolute;
    left: -9999px;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--bs-brand);
    color: #fff;
    font-weight: 700;
}

.bs-skip:focus {
    left: 1rem;
    top: 1rem;
}

.bs-top {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.15rem;
    padding: 0.7rem 1.25rem;
    background: var(--bs-brand);
    border-bottom: 0;
    box-shadow: none;
}

.bs-top__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

article.ep-dashboard__hero-stat,
article.ep-my-events__hero-stat {
    display: inline-flex !important;
}

.bs-top__logo {
    display: block;
    width: auto;
    height: 2.55rem;
    max-width: 9.5rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.bs-top__logo--green {
    display: none;
}

.bs-top__logo--white {
    display: block;
}

.bs-top__divider {
    width: 1px;
    height: 2.65rem;
    background: rgba(255, 255, 255, 0.28);
    flex: 0 0 auto;
    opacity: 0.85;
}

.bs-top__brand-copy {
    display: grid;
    gap: 0.1rem;
    line-height: 1.12;
    min-width: 0;
}

.bs-top__brand-copy strong,
.bs-top__brand-copy span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bs-top__brand-copy strong {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bs-top__brand-copy span {
    color: var(--bs-gold-soft);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bs-top__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.bs-year-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.bs-year-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(246, 239, 230, 0.18);
    color: #f6efe6;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.bs-year-pill__icon {
    width: 0.85rem;
    height: 0.85rem;
    color: var(--bs-gold-soft);
}

.bs-account {
    position: relative;
}

.bs-account__backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: default;
}

.bs-account__trigger {
    position: relative;
    z-index: 41;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.7rem;
    padding: 0.2rem 0.7rem 0.2rem 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

.bs-account__trigger:hover,
.bs-account__trigger:focus-visible {
    border-color: rgba(246, 239, 230, 0.55);
    background: rgba(255, 255, 255, 0.22);
}

.bs-account__avatar {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.bs-account__text {
    display: grid;
    line-height: 1.15;
    text-align: left;
}

.bs-account__name {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.bs-account__role {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.bs-account__chevron {
    width: 1rem;
    height: 1rem;
    color: #f6efe6;
    flex: 0 0 auto;
}

.bs-account.is-open .bs-account__chevron {
    transform: rotate(180deg);
}

.bs-account__menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 50;
    min-width: 15.5rem;
    padding: 0.4rem;
    border: 1px solid var(--bs-line);
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(26, 34, 44, 0.12);
}

.bs-account__label {
    margin: 0.15rem 0 0.05rem;
    padding: 0.35rem 0.65rem 0.15rem;
    color: var(--bs-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.bs-account__sub {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    color: var(--bs-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.bs-account__sub-icon {
    width: 0.95rem;
    height: 0.95rem;
    color: #c4a15a;
    flex: 0 0 auto;
}

.bs-account__badge {
    margin-left: auto;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    background: #e5f6ea;
    color: #2f8f4e;
    font-size: 0.72rem;
    font-weight: 700;
}

.bs-account__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: var(--bs-ink);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.bs-account__item:hover,
.bs-account__item:focus-visible {
    background: #f4f6f5;
}

.bs-account__item-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.bs-account__separator {
    height: 1px;
    margin: 0.25rem 0.4rem;
    background: var(--bs-line);
}

.bs-account__item--danger {
    color: #b42318;
}

.bs-account__item--danger:hover,
.bs-account__item--danger:focus-visible {
    background: #fdecec;
}


.bs-nav {
    position: relative;
    z-index: 35;
    background: transparent;
    padding: 0.65rem 0 0;
}

/* Same outer column as .bs-main so tabs line up with page cards. */
.bs-nav__inner {
    width: min(1280px, 100% - 1.7rem);
    max-width: 100%;
    margin: 0 auto;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 1.25rem;
    background: var(--bs-canvas);
    box-shadow: 0 10px 28px rgba(2, 56, 53, 0.18);
}

/* Same content width as .ep-* pages (--mp-width). */
.bs-nav__content {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    width: min(72rem, 100%);
    max-width: 100%;
    margin-inline: auto;
    overflow-x: auto;
}

.bs-nav__link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.65rem;
    padding: 0.55rem 0.9rem;
    color: var(--bs-brand);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
    border-radius: 999px;
    border-bottom: 0;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bs-nav__icon {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}

.bs-nav__icon svg,
.bs-nav__icon .blazicon {
    width: 1.15rem;
    height: 1.15rem;
}

.bs-nav__label {
    line-height: 1;
}

.bs-nav__link:hover,
.bs-nav__link:focus-visible {
    color: var(--bs-gold);
    background: rgba(255, 255, 255, 0.1);
}

.bs-nav__link.active {
    color: #FFF;
    font-weight: 800;
    background: var(--bs-gold);
    box-shadow: inset 0 -2px 0 var(--bs-gold);
}

.bs-main {
    position: relative;
    width: min(1280px, 100% - 1.7rem);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 1.5rem 1.15rem 2.75rem;
    overflow-wrap: break-word;
}

.bs-main .su-card,
.bs-main .su-data-table,
.bs-main .tc-data-table,
.bs-main .ep-events__table,
.bs-main .ep-my-events__table {
    max-width: 100%;
    min-width: 0;
}

.bs-main .rz-data-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.bs-main .rz-grid-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.ep-events__card,
.ep-my-events__card,
.ep-events__card-actions,
.ep-my-events__card-actions {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .ep-events__table,
    .ep-my-events__table {
        display: none !important;
    }

    .ep-events__cards,
    .ep-my-events__cards {
        display: grid !important;
        gap: 0.75rem;
    }

    .ep-events__card-actions .rz-button,
    .ep-my-events__card-actions .rz-button {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        height: auto;
        min-height: 1.9rem;
    }
}

.bs-main__aid {
    pointer-events: none;
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 7.5rem;
    height: 7.5rem;
    opacity: 0.055;
    background:
        url("/images/brand/cropped-FavIcon-Correct-Colour-01-1.png") center / contain no-repeat;
    filter: grayscale(0.15);
}

.bs-foot {
    border-top: 1px solid rgba(178, 133, 82, 0.35);
    background: #f4f6f5;
    color: var(--bs-muted);
}

.bs-foot__inner {
    width: min(1280px, 100% - 1.7rem);
    margin: 0 auto;
    padding: 1.15rem 0.85rem 1.35rem;
    text-align: center;
}

.bs-foot__inner p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .bs-shell {
        grid-template-rows: auto 0 1fr auto;
    }

    .bs-top {
        flex-wrap: nowrap;
        gap: 0.45rem;
        padding-inline: 0.7rem;
    }

    .bs-top__logo {
        height: 1.7rem;
        max-width: 5.6rem;
    }

    .bs-top__divider {
        height: 1.35rem;
    }

    .bs-top__brand-copy strong {
        font-size: 0.72rem;
    }

    .bs-top__brand-copy span {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }

    .bs-top__actions {
        flex-wrap: nowrap;
        gap: 0.35rem;
        justify-content: flex-end;
    }

    .bs-year-pill {
        padding: 0.16rem 0.4rem;
        font-size: 0.65rem;
        gap: 0.2rem;
    }

    .bs-year-pill__icon {
        width: 0.7rem;
        height: 0.7rem;
    }

    .bs-account__text {
        display: none;
    }

    .bs-account__trigger {
        min-height: 0;
        padding: 0 5px 0 0;
    }

    .bs-main:has(.ep-split-scroll) {
        width: 100%;
        max-width: none;
        padding: 0 0 calc(5.75rem + env(safe-area-inset-bottom, 0px));
        overflow: visible;
    }

    .bs-main:has(.ep-split-scroll) .bs-main__aid {
        display: none;
    }

    .bs-nav {
        position: fixed;
        left: 50%;
        bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
        z-index: 45;
        width: min(24.5rem, calc(100% - 1.6rem));
        margin: 0;
        padding: 0;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .bs-nav__inner {
        width: 100%;
        margin: 0;
        padding: 0.4rem 0.45rem;
        border-radius: 999px;
        border: 1px solid rgba(120, 120, 128, 0.22);
        background: rgba(236, 236, 240, 0.72);
        box-shadow:
            0 12px 32px rgba(26, 34, 44, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(18px) saturate(0.7) grayscale(0.35);
        -webkit-backdrop-filter: blur(18px) saturate(0.7) grayscale(0.35);
        pointer-events: auto;
    }

    .bs-nav__content {
        width: 100%;
        justify-content: space-around;
        gap: 0.15rem;
        overflow: visible;
    }

    .bs-nav__link {
        flex: 1 1 0;
        justify-content: center;
        min-height: 2.85rem;
        padding: 0.35rem 0.4rem;
        border-radius: 999px;
        color: #6b7280;
        background: transparent;
        box-shadow: none;
    }

    .bs-nav__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .bs-nav__icon {
        width: 2.15rem;
        height: 2.15rem;
        border-radius: 999px;
    }

    .bs-nav__icon svg,
    .bs-nav__icon .blazicon {
        width: 1.2rem;
        height: 1.2rem;
    }

    .bs-nav__link:hover,
    .bs-nav__link:focus-visible {
        color: var(--bs-brand);
        background: rgba(255, 255, 255, 0.45);
    }

    .bs-nav__link.active {
        color: #fff;
        background: transparent;
        box-shadow: none;
        font-weight: 800;
    }

    .bs-nav__link.active .bs-nav__icon {
        background: var(--bs-brand);
        color: #f6efe6;
        box-shadow: 0 4px 12px rgba(2, 56, 53, 0.28);
    }

    .bs-main:not(:has(.ep-split-scroll)) {
        width: 100%;
        padding-inline: 0.85rem;
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }

    .bs-shell:has(.ep-split-scroll) .bs-foot {
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }

    .bs-foot {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    .bs-foot__inner p {
        font-size: 0.75rem;
    }
}

@media (min-width: 761px) {
    .bs-top {
        padding-inline: 1.75rem;
    }

    .bs-nav {
        padding: 0.75rem 0 0;
    }

    .bs-nav__inner {
        padding: 0.4rem 0.65rem;
    }

    .bs-main {
        padding: 1.75rem 0.85rem 3rem;
    }

    .bs-main__aid {
        width: 9.5rem;
        height: 9.5rem;
        top: 0.5rem;
        right: 0.75rem;
    }

    .bs-foot__inner {
        padding: 1.25rem 1.75rem 1.5rem;
    }
}

@media (max-width: 760px) {

    .bs-shell .su-page-header__title {
        font-size: 1.15rem;
    }

    .bs-shell .su-page-header__subtitle,
    .bs-shell .su-card__subtitle,
    .bs-shell .su-table-search-panel__subtitle,
    .bs-shell .tc-table-search-panel__subtitle {
        font-size: 0.75rem;
    }

    .bs-shell .su-card__title,
    .bs-shell .su-popup__title {
        font-size: 0.9rem;
    }

    .bs-shell .su-table-search-panel__title,
    .bs-shell .tc-table-search-panel__title,
    .bs-shell .su-form-field__label,
    .bs-shell .su-field-label {
        font-size: 0.65rem;
    }

    .bs-shell .su-search-input__field,
    .bs-shell .ep-register__input,
    .bs-shell input,
    .bs-shell textarea,
    .bs-shell select {
        font-size: 0.875rem;
    }

    .bs-shell .su-segmented__option,
    .bs-shell .su-alert__message,
    .bs-shell p,
    .bs-shell li,
    .bs-shell dd,
    .bs-shell label,
    .bs-shell legend {
        font-size: 0.8125rem;
    }

    .bs-shell .rz-button,
    .bs-shell .su-btn.rz-button {
        min-height: 1.9rem !important;
        height: auto !important;
        padding: 0.28rem 0.6rem !important;
        font-size: 0.75rem !important;
        gap: 0.3rem;
        line-height: 1.15;
    }

    .bs-shell .su-btn__icon,
    .bs-shell .rz-button svg {
        width: 0.8rem !important;
        height: 0.8rem !important;
    }

    .bs-shell .tc-cal__month-title {
        font-size: 0.9rem;
    }

    .bs-shell .tc-cal__select,
    .bs-shell .tc-cal {
        font-size: 0.75rem;
    }
}
