/*
 * lpbucks.org theme on top of MDB UI Kit (Material Design for Bootstrap).
 * Colours follow lp.org / lppa.org: Liberty gold, charcoal and warm greys.
 */

:root {
    --blp-gold: #fed000;
    --blp-gold-rgb: 254, 208, 0;
    --blp-gold-hover: #f0c400;
    --blp-gold-active: #e2b800;
    --blp-gold-soft: #fff7cc;
    --blp-charcoal: #303033;
    --blp-charcoal-rgb: 48, 48, 51;
    --blp-ink: #232325;
    --blp-gray: #56565a;
    --blp-gray-light: #f3f3f4;
    --blp-border: #d9d9dc;
    --blp-link: #1d6fa5;
    --blp-link-hover: #155682;
    --blp-heading-font: "Roboto Slab", Georgia, serif;
    --blp-radius: 0.75rem;
    --blp-shadow: 0 2px 15px -3px rgba(var(--blp-charcoal-rgb), 0.07), 0 10px 20px -2px rgba(var(--blp-charcoal-rgb), 0.04);
    --blp-shadow-hover: 0 10px 30px -5px rgba(var(--blp-charcoal-rgb), 0.18), 0 6px 12px -4px rgba(var(--blp-charcoal-rgb), 0.08);

    --mdb-primary: var(--blp-gold);
    --mdb-primary-rgb: var(--blp-gold-rgb);
    --mdb-dark: var(--blp-charcoal);
    --mdb-dark-rgb: var(--blp-charcoal-rgb);
    --mdb-body-color: var(--blp-charcoal);
    --mdb-body-color-rgb: var(--blp-charcoal-rgb);
    --mdb-body-font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    --mdb-link-color: var(--blp-link);
    --mdb-link-color-rgb: 29, 111, 165;
    --mdb-link-hover-color: var(--blp-link-hover);
    --mdb-link-hover-color-rgb: 21, 86, 130;
    --mdb-heading-color: var(--blp-charcoal);
    --mdb-border-color: var(--blp-border);
}

body {
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-5, .display-6 {
    font-family: var(--blp-heading-font);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h5, .h5 {
    font-weight: 700;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--blp-radius) var(--blp-radius);
    background: var(--blp-gold);
    color: var(--blp-charcoal);
    font-weight: 700;
    transition: top 0.15s ease-in-out;
}

.skip-link:focus {
    top: 0;
}

.text-pre-line {
    white-space: pre-line;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blp-gray);
}

/* ---------- Buttons ---------- */

.btn {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.btn-primary {
    --mdb-btn-bg: var(--blp-gold);
    --mdb-btn-color: var(--blp-charcoal);
    --mdb-btn-border-color: var(--blp-gold);
    --mdb-btn-hover-bg: var(--blp-gold-hover);
    --mdb-btn-hover-color: var(--blp-charcoal);
    --mdb-btn-hover-border-color: var(--blp-gold-hover);
    --mdb-btn-focus-bg: var(--blp-gold-hover);
    --mdb-btn-focus-color: var(--blp-charcoal);
    --mdb-btn-active-bg: var(--blp-gold-active);
    --mdb-btn-active-color: var(--blp-charcoal);
    --mdb-btn-active-border-color: var(--blp-gold-active);
    --mdb-btn-disabled-bg: var(--blp-gold);
    --mdb-btn-disabled-color: var(--blp-charcoal);
    --mdb-btn-box-shadow: 0 4px 9px -4px rgba(var(--blp-gold-rgb), 0.85);
    --mdb-btn-box-shadow-state: 0 8px 9px -4px rgba(var(--blp-gold-rgb), 0.35), 0 4px 18px 0 rgba(var(--blp-gold-rgb), 0.25);
    --mdb-btn-focus-shadow-rgb: var(--blp-gold-rgb);
}

.btn-dark {
    --mdb-btn-bg: var(--blp-charcoal);
    --mdb-btn-color: #fff;
    --mdb-btn-hover-bg: var(--blp-ink);
    --mdb-btn-hover-color: #fff;
    --mdb-btn-focus-bg: var(--blp-ink);
    --mdb-btn-focus-color: #fff;
    --mdb-btn-active-bg: #18181a;
    --mdb-btn-active-color: #fff;
    --mdb-btn-box-shadow: 0 4px 9px -4px rgba(var(--blp-charcoal-rgb), 0.6);
}

.btn-outline-dark {
    --mdb-btn-color: var(--blp-charcoal);
    --mdb-btn-border-color: var(--blp-charcoal);
    --mdb-btn-hover-color: var(--blp-charcoal);
    --mdb-btn-hover-bg: rgba(var(--blp-charcoal-rgb), 0.06);
    --mdb-btn-focus-color: var(--blp-charcoal);
    --mdb-btn-active-color: var(--blp-charcoal);
}

.section-more-link,
.feature-card-link {
    font-weight: 700;
    text-decoration: none;
}

.section-more-link:hover,
.feature-card-link:hover {
    text-decoration: underline;
}

/* ---------- Header ---------- */

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--blp-charcoal);
    border-bottom: 3px solid var(--blp-gold);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    box-shadow: none;
    transition: box-shadow 0.2s ease-in-out;
}

.site-navbar.is-scrolled {
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45);
}

.site-logo {
    height: 64px;
    width: auto;
}

@media (max-width: 575.98px) {
    .site-logo {
        height: 52px;
    }
}

.site-navbar .navbar-toggler {
    color: #fff;
    font-size: 1.35rem;
}

.site-navbar .nav-link {
    position: relative;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    padding: 0.75rem 0.85rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
    color: #fff;
}

@media (min-width: 1200px) {
    .site-navbar .nav-link.active::after {
        content: "";
        position: absolute;
        left: 0.85rem;
        right: 0.85rem;
        bottom: 0.35rem;
        height: 3px;
        border-radius: 3px;
        background: var(--blp-gold);
    }
}

.site-navbar .dropdown-menu {
    border-radius: var(--blp-radius);
    box-shadow: var(--blp-shadow-hover);
}

.site-navbar .dropdown-item.active,
.site-navbar .dropdown-item:active {
    background-color: var(--blp-gold-soft);
    color: var(--blp-charcoal);
}

@media (max-width: 1199.98px) {
    .site-navbar .navbar-collapse {
        padding-top: 0.5rem;
    }

    .site-navbar .nav-link.active {
        color: var(--blp-gold);
    }
}

/* ---------- Page header ---------- */

.page-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 2.5rem 0 3.25rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(var(--blp-gold-rgb), 0.18), transparent 45%),
        linear-gradient(135deg, #3a3a3e 0%, var(--blp-charcoal) 45%, #1f1f21 100%);
}

.page-header::after {
    content: "";
    position: absolute;
    right: -2rem;
    bottom: -3rem;
    width: 16rem;
    height: 22rem;
    background: url("/images/brand/logo-mark.svg") no-repeat center / contain;
    opacity: 0.08;
    pointer-events: none;
}

.page-header .page-title {
    color: #fff;
    font-size: calc(1.8rem + 1.6vw);
    margin-bottom: 0.75rem;
}

@media (min-width: 1200px) {
    .page-header .page-title {
        font-size: 3.25rem;
    }
}

.page-header .page-intro {
    color: rgba(255, 255, 255, 0.82);
}

.page-header .eyebrow {
    color: var(--blp-gold);
}

.site-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    --mdb-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
    --mdb-breadcrumb-item-active-color: rgba(255, 255, 255, 0.7);
}

.site-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-breadcrumb a:hover {
    color: var(--blp-gold);
}

.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Sections ---------- */

/* Keep anchored sections (e.g. /get-involved/#join) clear of the sticky header. */
section[id] {
    scroll-margin-top: 6rem;
}

.section-white { background-color: #fff; }

.section-light { background-color: var(--blp-gray-light); }

.section-gold {
    background-color: var(--blp-gold);
    --mdb-link-color: var(--blp-charcoal);
    --mdb-link-hover-color: var(--blp-ink);
}

.section-dark {
    background-color: var(--blp-charcoal);
    color: rgba(255, 255, 255, 0.85);
    --mdb-heading-color: #fff;
    --mdb-link-color: var(--blp-gold);
    --mdb-link-hover-color: #ffe466;
}

.section-dark h2,
.section-dark h3,
.section-dark .section-title {
    color: #fff;
}

.section-dark .section-more-link,
.section-dark .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section-space-normal { padding: 4.5rem 0; }
.section-space-compact { padding: 2.5rem 0; }
.section-space-spacious { padding: 7rem 0; }
.section-space-none { padding: 0; }

@media (max-width: 767.98px) {
    .section-space-normal { padding: 3rem 0; }
    .section-space-spacious { padding: 4.5rem 0; }
}

.section-title {
    font-size: calc(1.45rem + 0.9vw);
    margin-bottom: 1rem;
}

@media (min-width: 1200px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-intro {
    max-width: 46rem;
    margin-bottom: 3rem;
}

.content-narrow { max-width: 50rem; }
.content-wide { max-width: 64rem; }

.area-item + .area-item {
    margin-top: 2.5rem;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: 5rem 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(var(--blp-gold-rgb), 0.28), transparent 42%),
        linear-gradient(135deg, #3a3a3e 0%, var(--blp-charcoal) 45%, #1d1d1f 100%);
}

.hero-large { min-height: min(78vh, 46rem); }
.hero-medium { min-height: min(56vh, 34rem); }
.hero-small { min-height: 0; padding: 4rem 0; }

.hero::after {
    content: "";
    position: absolute;
    right: 4%;
    top: 50%;
    width: min(34vw, 26rem);
    height: min(70vw, 52rem);
    transform: translateY(-50%);
    background: url("/images/brand/logo-mark.svg") no-repeat center / contain;
    opacity: 0.1;
    pointer-events: none;
}

.hero-has-image {
    background: var(--hero-image) center / cover no-repeat;
}

.hero-has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29, 29, 31, 0.92) 0%, rgba(29, 29, 31, 0.7) 55%, rgba(29, 29, 31, 0.35) 100%);
}

.hero-has-image::after {
    display: none;
}

.hero-eyebrow {
    color: var(--blp-gold);
    margin-bottom: 1rem;
}

.hero-title {
    color: #fff;
    font-family: var(--blp-heading-font);
    font-weight: 800;
    font-size: calc(2.2rem + 2.6vw);
    line-height: 1.08;
    margin-bottom: 1.25rem;
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.25rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 991.98px) {
    .hero::after {
        opacity: 0.06;
        right: -10%;
    }
}

/* ---------- Cards ---------- */

.feature-card,
.news-card,
.event-card {
    border: 0;
    border-radius: var(--blp-radius);
    box-shadow: var(--blp-shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-card:hover,
.news-card:hover,
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blp-shadow-hover);
}

.feature-card .card-title,
.news-card .card-title,
.event-card .card-title {
    color: var(--blp-charcoal);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(var(--blp-gold-rgb), 0.22);
    color: var(--blp-charcoal);
    font-size: 1.4rem;
}

.section-gold .feature-icon {
    background: var(--blp-charcoal);
    color: var(--blp-gold);
}

.news-card .card-title a,
.event-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.news-card:hover .card-title a,
.event-card:hover .card-title a {
    text-decoration: underline;
    text-decoration-color: var(--blp-gold);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.news-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--blp-radius) var(--blp-radius) 0 0;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    background:
        url("/images/brand/logo-mark.svg") no-repeat center / auto 70%,
        linear-gradient(135deg, #3a3a3e 0%, var(--blp-charcoal) 55%, #1f1f21 100%);
}

/* Items from outside feeds show who published them instead of the party's logo. */
.news-card-placeholder-source {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #3a3a3e 0%, var(--blp-charcoal) 55%, #1f1f21 100%);
    color: var(--blp-gold);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.news-card-date {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blp-gray);
}

.news-card-note {
    padding-top: 0.75rem;
    color: var(--blp-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.news-card-note i {
    margin-right: 0.5rem;
}

.event-date {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.75rem;
    border-radius: 0.6rem;
    background: var(--blp-gold);
    color: var(--blp-charcoal);
    line-height: 1;
}

.event-date-month {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-date-day {
    font-family: var(--blp-heading-font);
    font-size: 1.9rem;
    font-weight: 800;
    margin-top: 0.2rem;
}

.event-meta {
    color: var(--blp-gray);
    font-size: 0.95rem;
}

.event-meta i,
.contact-list i,
.footer-contact i,
.event-detail-list i {
    width: 1.25rem;
    margin-right: 0.5rem;
    text-align: center;
}

.event-meta-meetup {
    color: #c7233b; /* Meetup red, darkened for contrast */
    font-weight: 500;
}

.event-details {
    border: 0;
    border-radius: var(--blp-radius);
    border-top: 4px solid var(--blp-gold);
}

@media (min-width: 992px) {
    .event-details {
        position: sticky;
        top: 7rem;
    }
}

.event-detail-list li,
.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.event-detail-list i,
.contact-list i {
    margin-top: 0.25rem;
    color: var(--blp-gray);
}

.empty-state {
    border: 2px dashed var(--blp-border);
    border-radius: var(--blp-radius);
    box-shadow: none;
    color: var(--blp-gray);
    background: transparent;
}

.contact-card {
    border: 0;
    border-radius: var(--blp-radius);
    border-top: 4px solid var(--blp-gold);
}

.past-events {
    border-radius: var(--blp-radius);
    background: #fff;
}

/* Chevrons on "show more" toggles (past events, former profiles) flip while open. */
[data-mdb-collapse-init] .fa-chevron-down {
    transition: transform 0.2s ease-in-out;
}

[data-mdb-collapse-init][aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* ---------- Profiles ---------- */

.profile-group + .profile-group {
    margin-top: 3.5rem;
}

.profile-card {
    border: 0;
    border-radius: var(--blp-radius);
    box-shadow: var(--blp-shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blp-shadow-hover);
}

.profile-card .card-title a {
    color: var(--blp-charcoal);
    text-decoration: none;
}

.profile-card:hover .card-title a {
    text-decoration: underline;
    text-decoration-color: var(--blp-gold);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.profile-role {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blp-gray);
}

.profile-term {
    font-size: 0.9rem;
    color: var(--blp-gray);
}

.profile-header .profile-term {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--avatar-size, 128px);
    height: var(--avatar-size, 128px);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--blp-gold);
}

.profile-avatar-initials {
    background: linear-gradient(135deg, var(--blp-gold) 0%, var(--blp-gold-active) 100%);
    color: var(--blp-charcoal);
    font-family: var(--blp-heading-font);
    font-size: calc(var(--avatar-size, 128px) * 0.36);
    font-weight: 800;
    letter-spacing: 0.02em;
    user-select: none;
}

.profile-header .profile-avatar {
    margin: 0.5rem; /* keeps the ring inside the container's gutter */
    box-shadow: 0 0 0 4px var(--blp-charcoal), 0 0 0 7px var(--blp-gold);
}

.profile-header .page-title {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .profile-header .profile-avatar {
        width: 112px;
        height: 112px;
        font-size: 2.5rem;
    }
}

/* ---------- Call to action ---------- */

.cta {
    max-width: 46rem;
}

.cta .lead {
    font-size: 1.2rem;
}

/* ---------- Quote ---------- */

.quote-block {
    max-width: 50rem;
}

.quote-block blockquote p {
    font-family: var(--blp-heading-font);
    font-size: calc(1.3rem + 0.6vw);
    font-weight: 600;
    line-height: 1.4;
}

.quote-mark {
    display: block;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    color: var(--blp-gold);
}

.quote-attribution {
    margin-top: 1.25rem;
    font-weight: 700;
}

.quote-attribution cite {
    display: block;
    font-style: normal;
    font-weight: 400;
    opacity: 0.75;
}

.quote-block-card {
    height: 100%;
    padding: 2.5rem;
    border-radius: var(--blp-radius);
    background: var(--blp-charcoal);
    color: rgba(255, 255, 255, 0.88);
}

.quote-block-card blockquote p {
    color: #fff;
    font-size: 1.35rem;
}

/* ---------- FAQ ---------- */

.faq-accordion {
    --mdb-accordion-border-radius: var(--blp-radius);
    --mdb-accordion-inner-border-radius: var(--blp-radius);
    --mdb-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(var(--blp-gold-rgb), 0.5);
    --mdb-accordion-active-color: var(--blp-charcoal);
    --mdb-accordion-active-bg: var(--blp-gold-soft);
    box-shadow: var(--blp-shadow);
    border-radius: var(--blp-radius);
    background: #fff;
}

.faq-accordion .accordion-button {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

/* ---------- Rich text ---------- */

.rte {
    font-size: 1.075rem;
    line-height: 1.75;
}

.rte > :last-child {
    margin-bottom: 0;
}

.rte h2, .rte h3, .rte h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.rte img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.rte figure {
    margin: 2rem 0;
}

.rte figure p {
    margin-bottom: 0;
}

.rte figcaption {
    margin-top: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--blp-gold);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--blp-gray);
}

.rte blockquote {
    margin: 1.75rem 0;
    padding: 0.5rem 0 0.5rem 1.25rem;
    border-left: 4px solid var(--blp-gold);
    font-size: 1.15rem;
    font-style: italic;
}

.rte table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.rte th,
.rte td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--blp-border);
}

.embed-block iframe {
    max-width: 100%;
}

/* ---------- Section heading ---------- */

/* A heading introduces the section after it, so the space below it comes from that section. */
.block-section[data-block="sectionHeadingBlock"] {
    padding-bottom: 0;
}

.section-heading {
    max-width: 46rem;
}

/* ---------- Stats ---------- */

.stat-number {
    font-family: var(--blp-heading-font);
    font-size: calc(2rem + 1.5vw);
    font-weight: 800;
    line-height: 1.1;
    color: var(--blp-charcoal);
}

@media (min-width: 1200px) {
    .stat-number {
        font-size: 3.25rem;
    }
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blp-gray);
}

.section-dark .stat-number { color: var(--blp-gold); }
.section-dark .stat-label { color: rgba(255, 255, 255, 0.75); }

.section-dark .stat .feature-icon {
    background: rgba(var(--blp-gold-rgb), 0.18);
    color: var(--blp-gold);
}

/* ---------- Endorsements ---------- */

.endorsement-card {
    border: 0;
    border-radius: var(--blp-radius);
    box-shadow: var(--blp-shadow);
}

.endorsement-card .quote-mark {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.endorsement-card blockquote p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.endorsement-card .profile-avatar {
    flex: 0 0 auto;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blp-gold);
}

.endorsement-role {
    font-size: 0.9rem;
    color: var(--blp-gray);
}

/* ---------- Logo cloud ---------- */

.logo-cloud {
    gap: 2rem 3rem;
}

.logo-cloud-image {
    width: auto;
    height: auto;
    max-width: 11rem;
    max-height: 4.5rem;
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.logo-cloud a:hover .logo-cloud-image,
.logo-cloud a:focus-visible .logo-cloud-image {
    filter: none;
    opacity: 1;
}

/* ---------- Announcement ---------- */

.announcement {
    border-radius: var(--blp-radius);
    font-size: 1.05rem;
}

.announcement-info {
    background-color: var(--blp-gold-soft);
    color: var(--blp-charcoal);
    border-left: 4px solid var(--blp-gold);
    --mdb-alert-link-color: var(--blp-charcoal);
}

.announcement-icon {
    font-size: 1.35rem;
    margin-top: 0.15rem;
}

/* ---------- Icon list ---------- */

.icon-list li + li {
    margin-top: 1rem;
}

.icon-list-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(var(--blp-gold-rgb), 0.22);
    color: var(--blp-charcoal);
}

.section-dark .icon-list-icon {
    background: var(--blp-gold);
}

.icon-list-text {
    padding-top: 0.35rem;
}

/* ---------- Documents ---------- */

.document-list {
    --mdb-list-group-border-radius: var(--blp-radius);
    --mdb-list-group-border-color: var(--blp-border);
    overflow: hidden;
    box-shadow: var(--blp-shadow);
}

.document-link {
    color: var(--blp-charcoal);
    text-decoration: none;
}

.document-link:hover,
.document-link:focus-visible {
    background: var(--blp-gold-soft);
    color: var(--blp-charcoal);
}

.document-icon {
    width: 2rem;
    font-size: 1.6rem;
    text-align: center;
    color: var(--blp-gray);
}

.document-details {
    font-size: 0.85rem;
    color: var(--blp-gray);
}

.document-download {
    color: var(--blp-gray);
}

/* ---------- Membership levels ---------- */

.membership-card {
    border: 0;
    border-radius: var(--blp-radius);
    box-shadow: var(--blp-shadow);
}

.membership-card-featured {
    box-shadow: 0 0 0 3px var(--blp-gold), var(--blp-shadow-hover);
}

.membership-amount {
    margin-bottom: 1.25rem;
    font-family: var(--blp-heading-font);
    font-size: 2rem;
    font-weight: 800;
    color: var(--blp-charcoal);
}

.membership-perks li {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.membership-perks i {
    margin-top: 0.3rem;
    color: var(--blp-charcoal);
}

/* ---------- Spacer ---------- */

.spacer {
    display: flex;
    align-items: center;
}

.spacer-small { min-height: 1.5rem; }
.spacer-medium { min-height: 3rem; }
.spacer-large { min-height: 6rem; }

/* ---------- Image carousel (Vue widget) ---------- */

.site-carousel .carousel-item.active {
    animation: carousel-fade-in 0.6s ease;
}

@keyframes carousel-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.site-carousel .carousel-item img {
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

/* The site's Font Awesome icons, since MDB's control icons expect an older Font Awesome. */
.site-carousel .carousel-control-icon {
    font-size: 1.75rem;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.site-carousel .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 1.5rem 2.75rem;
    background: linear-gradient(transparent, rgba(29, 29, 31, 0.85));
}

.site-carousel .carousel-caption a,
.site-carousel .carousel-caption p {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
}

.site-carousel .carousel-caption a {
    text-decoration: underline;
    text-decoration-color: var(--blp-gold);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.carousel-pause {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

/* ---------- Photo gallery (Vue widget) ---------- */

.gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0.6rem;
    overflow: hidden;
    background: none;
    box-shadow: var(--blp-shadow);
    cursor: zoom-in;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
    transform: scale(1.05);
}

.gallery-thumb:focus-visible {
    outline: 3px solid var(--blp-gold);
    outline-offset: 3px;
}

.gallery-dialog {
    width: min(72rem, 100vw - 2rem);
    max-width: none;
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
}

.gallery-dialog::backdrop {
    background: rgba(23, 23, 25, 0.92);
}

html:has(.gallery-dialog[open]) {
    overflow: hidden;
}

.gallery-dialog-figure {
    text-align: center;
}

.gallery-dialog-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    border-radius: 0.5rem;
}

.gallery-dialog-caption {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.gallery-dialog-close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1;
    width: 1.5em;
    height: 1.5em;
    opacity: 0.9;
}

.gallery-dialog-nav {
    position: fixed;
    top: 50%;
    width: 3rem;
    height: 3rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
}

.gallery-dialog-nav:hover,
.gallery-dialog-nav:focus-visible {
    background: var(--blp-gold);
    color: var(--blp-charcoal);
}

.gallery-dialog-prev { left: 1rem; }
.gallery-dialog-next { right: 1rem; }

/* ---------- Tabs (Vue widget) ---------- */

.site-tabs .nav-tabs {
    flex-wrap: wrap;
}

/* MDB sets the tab colours on each link, so they are overridden there too. */
.site-tabs .nav-link {
    --mdb-nav-tabs-link-active-color: var(--blp-charcoal);
    --mdb-nav-tabs-link-active-border-color: var(--blp-gold);
    --mdb-nav-tabs-link-font-size: 0.85rem;
    font-weight: 700;
}

.section-dark .site-tabs .nav-link {
    --mdb-nav-tabs-link-color: rgba(255, 255, 255, 0.7);
    --mdb-nav-tabs-link-active-color: #fff;
    --mdb-nav-tabs-link-hover-bgc: rgba(255, 255, 255, 0.08);
}

.site-tabs .tab-pane:focus-visible {
    outline: 3px solid rgba(var(--blp-gold-rgb), 0.6);
    outline-offset: 4px;
    border-radius: 0.25rem;
}

/* ---------- Countdown (Vue widget) ---------- */

.countdown {
    max-width: 46rem;
}

.countdown-label {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blp-gray);
}

.countdown-units {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.countdown-unit {
    min-width: 5.5rem;
    padding: 1rem 0.75rem;
    border-radius: var(--blp-radius);
    background: var(--blp-charcoal);
    color: #fff;
}

.countdown-value {
    display: block;
    font-family: var(--blp-heading-font);
    font-size: 2.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--blp-gold);
}

.countdown-unit-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.countdown-date {
    font-family: var(--blp-heading-font);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blp-charcoal);
}

.section-dark .countdown-label { color: rgba(255, 255, 255, 0.7); }
.section-dark .countdown-date { color: #fff; }
.section-dark .countdown-unit { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 575.98px) {
    .countdown-unit {
        min-width: 4.25rem;
        padding: 0.75rem 0.5rem;
    }

    .countdown-value {
        font-size: 1.75rem;
    }
}

/* ---------- Pagination ---------- */

.pagination {
    --mdb-pagination-active-bg: var(--blp-gold);
    --mdb-pagination-active-color: var(--blp-charcoal);
    --mdb-pagination-color: var(--blp-charcoal);
}

/* ---------- Footer ---------- */

.site-footer {
    background-color: var(--blp-ink);
    color: rgba(255, 255, 255, 0.72);
    border-top: 4px solid var(--blp-gold);
}

.footer-logo {
    height: auto;
    max-width: 230px;
}

.footer-heading {
    font-family: Roboto, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blp-gold);
    margin-bottom: 1.25rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.6rem;
}

.site-footer a:not(.btn) {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.site-footer a:not(.btn):hover {
    color: var(--blp-gold);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-disclaimer {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.35rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .news-card,
    .event-card,
    .profile-card,
    .site-navbar,
    .skip-link,
    [data-mdb-collapse-init] .fa-chevron-down,
    .logo-cloud-image,
    .gallery-thumb img {
        transition: none;
    }

    .site-carousel .carousel-item.active {
        animation: none;
    }

    .gallery-thumb:hover img,
    .gallery-thumb:focus-visible img {
        transform: none;
    }

    .feature-card:hover,
    .news-card:hover,
    .event-card:hover,
    .profile-card:hover {
        transform: none;
    }
}
