:root {
    --fbb-teal: #2f7d7d;
    --fbb-teal-dark: #17656b;
    --fbb-pink: #c93468;
    --fbb-ink: #2f3b3d;
    --fbb-paper: #fffdf8;
    --fbb-line: rgba(23, 101, 107, .20);
}

.fbb-event-passed-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 28px auto;
}
.fbb-event-passed-notice {
    padding: 16px 20px;
    border-left: 5px solid var(--fbb-pink);
    background: #fff;
    color: var(--fbb-ink);
    box-shadow: 0 3px 16px rgba(0, 0, 0, .07);
    font-weight: 700;
}

.fbb-events-archive-page {
    background: var(--fbb-paper);
}
.fbb-events-archive-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 44px auto 64px;
}
.fbb-events-archive-header {
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--fbb-teal);
}
.fbb-events-archive-title {
    margin: 0;
    color: var(--fbb-pink);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.fbb-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
.fbb-event-card {
    display: grid;
    grid-template-columns: minmax(260px, 36%) 1fr;
    overflow: hidden;
    border: 1px solid var(--fbb-line);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .07);
}
.fbb-event-card-image {
    display: block;
    min-height: 250px;
    overflow: hidden;
    background: #eef5f5;
}
.fbb-event-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}
.fbb-event-card-body {
    padding: 28px 32px 30px;
}
.fbb-event-card-date {
    margin: 0 0 8px;
    color: var(--fbb-teal-dark);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.35;
    text-transform: uppercase;
}
.fbb-event-card-title {
    margin: 0 0 14px;
    color: var(--fbb-pink);
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    line-height: 1.15;
}
.fbb-event-card-title a {
    color: inherit;
    text-decoration: none;
}
.fbb-event-card-title a:hover,
.fbb-event-card-title a:focus {
    color: var(--fbb-teal-dark);
    text-decoration: underline;
}
.fbb-event-card-meta {
    margin-bottom: 16px;
    color: var(--fbb-ink);
    line-height: 1.65;
}
.fbb-event-card-meta strong {
    color: var(--fbb-teal-dark);
}
.fbb-event-card-excerpt {
    color: var(--fbb-ink);
    line-height: 1.65;
}
.fbb-event-card-excerpt > :last-child {
    margin-bottom: 0;
}
.fbb-event-card-link,
.fbb-event-button,
button.fbb-event-button,
input.fbb-event-button[type="submit"] {
    display: inline-block;
    width: auto;
    min-width: 220px;
    margin-top: 18px;
    padding: 13px 22px;
    border: 2px solid var(--fbb-teal) !important;
    border-radius: 2px;
    background: var(--fbb-teal) !important;
    background-color: var(--fbb-teal) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: .01em;
    text-align: center;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    transition: background-color .18s ease, border-color .18s ease;
}
.fbb-event-card-link:hover,
.fbb-event-card-link:focus,
.fbb-event-button:hover,
.fbb-event-button:focus,
button.fbb-event-button:hover,
button.fbb-event-button:focus,
input.fbb-event-button[type="submit"]:hover,
input.fbb-event-button[type="submit"]:focus {
    border-color: var(--fbb-pink) !important;
    background: var(--fbb-pink) !important;
    background-color: var(--fbb-pink) !important;
    color: #fff !important;
}

.fbb-event-content-box,
.fbb-event-details-box,
.fbb-registration-box {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid var(--fbb-line);
    border-top: 5px solid var(--fbb-teal);
    background: #fff;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .06);
}
.fbb-event-content-box > :first-child {
    margin-top: 0;
}
.fbb-event-content-box > :last-child {
    margin-bottom: 0;
}
.fbb-registration-box h2 {
    margin-top: 0;
    color: var(--fbb-pink);
}
.fbb-event-details-box p {
    margin: 0 0 10px;
}
.fbb-event-details-box p:last-child {
    margin-bottom: 0;
}
.fbb-registration-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.fbb-registration-form p {
    margin: 0;
}
.fbb-registration-form .wide {
    grid-column: 1 / -1;
}
.fbb-registration-form label {
    display: block;
    color: var(--fbb-ink);
    font-weight: 700;
}
.fbb-registration-form input,
.fbb-registration-form textarea {
    box-sizing: border-box;
    width: 100%;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid rgba(47, 59, 61, .35);
    border-radius: 2px;
    background: #fff;
    font: inherit;
}
.fbb-registration-form input:focus,
.fbb-registration-form textarea:focus {
    border-color: var(--fbb-teal);
    outline: 2px solid rgba(47, 125, 125, .18);
}
.fbb-registration-message {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 5px solid currentColor;
    font-weight: 700;
}
.fbb-registration-message.success {
    background: rgba(0, 128, 0, .08);
}
.fbb-registration-message.error {
    background: rgba(180, 0, 0, .08);
}
.fbb-hp {
    position: absolute !important;
    left: -9999px !important;
}

@media (max-width: 800px) {
    .fbb-event-card {
        grid-template-columns: 1fr;
    }
    .fbb-event-card-image,
    .fbb-event-card-image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .fbb-event-card-body {
        padding: 22px;
    }
}
@media (max-width: 680px) {
    .fbb-events-archive-inner,
    .fbb-event-passed-wrap {
        width: min(100% - 28px, 1180px);
    }
    .fbb-registration-form {
        grid-template-columns: 1fr;
    }
    .fbb-registration-form .wide {
        grid-column: auto;
    }
}
@media print {
    .fbb-report-filter,
    .wrap .button {
        display: none !important;
    }
}
