:root {
    --mbl-red: #a7190f;
    --mbl-red-bright: #f15b4f;
    --mbl-gold: #9a651f;
    --mbl-ink: #252525;
    --mbl-text: #555555;
    --mbl-muted: #6b6b6b;
    --mbl-border: #dddddd;
    --mbl-surface: #f7f4f1;
    --mbl-sidebar-text: #f3eee8;
    --mbl-sidebar-muted: #c8bfb6;
    --mbl-sidebar-accent: #e4bf4d;
}

html {
    scroll-behavior: smooth;
}

body,
input,
select,
textarea {
    color: var(--mbl-text);
}

a {
    color: var(--mbl-red);
}

a:hover,
a:focus-visible {
    color: #731109 !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.skip-link {
    background: #ffffff;
    color: #111111;
    left: 1rem;
    padding: 0.65rem 1rem;
    position: fixed;
    top: -5rem;
    z-index: 20000;
}

.skip-link:focus {
    top: 1rem;
}

#header {
    color: var(--mbl-sidebar-text);
}

#header a,
#header > footer .icons li a {
    color: var(--mbl-sidebar-text);
}

#header > header {
    padding-bottom: 2rem;
}

#header > header .avatar {
    margin-bottom: 1.5rem;
    width: 11rem;
}

#header > header .avatar,
#header > header .avatar img {
    border-radius: 0;
    overflow: visible;
}

.header-site-name {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

#header .header-tagline {
    color: var(--mbl-sidebar-accent);
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin: 0;
}

#header > nav ul li {
    border-top-color: rgba(255, 255, 255, 0.16);
}

#header > nav ul li a.active {
    color: #72130d !important;
}

.header-address {
    color: var(--mbl-sidebar-muted);
    font-style: normal;
    line-height: 1.55;
    margin: 1.25rem 0 0;
}

.header-address a {
    color: var(--mbl-sidebar-accent);
    display: inline-block;
    font-weight: 600;
    padding: 0.35rem 0 0;
}

.image.main img {
    object-position: center;
}

.welcome-section {
    background: var(--mbl-surface);
}

.welcome-section .container {
    padding-bottom: 3.75rem !important;
    padding-top: 3.75rem !important;
}

.eyebrow {
    color: var(--mbl-red);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.quick-actions li {
    padding: 0;
}

.quick-actions .button {
    margin: 0;
}

.button.primary,
input[type="submit"].primary {
    background-color: var(--mbl-red);
}

.button.primary:hover,
.button.primary:focus,
input[type="submit"].primary:hover,
input[type="submit"].primary:focus {
    background-color: #7f120a;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2,
.section-heading h3 {
    color: var(--mbl-ink);
    margin-bottom: 0.45rem;
}

.section-heading p {
    margin-bottom: 0;
    max-width: 45rem;
}

.page-back-link {
    align-items: center;
    background: var(--mbl-red);
    border-radius: 999px;
    box-shadow: 0 0.2rem 0.6rem rgba(35, 24, 18, 0.16);
    color: #fff !important;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 1.15rem;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.page-back-link span {
    font-size: 1.05rem;
    margin-right: 0.45rem;
}

.page-back-link:hover,
.page-back-link:focus {
    background: #7f120a;
    transform: translateX(-2px);
}

.form-status {
    background: #f6f3ed;
    border-left: 4px solid var(--mbl-gold);
    border-radius: 4px;
    color: var(--mbl-ink);
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
}

.form-status--success {
    background: #edf7ed;
    border-left-color: #2f7d32;
    color: #245c26;
}

.form-status--error {
    background: #fff1ef;
    border-left-color: var(--mbl-red);
    color: #6b1710;
}

.status-notice {
    background: #fff8e6;
    border-left: 4px solid #9a651f;
    color: #5f441d;
    margin-bottom: 2rem;
    padding: 1rem 1.2rem;
}

.status-notice p:last-child {
    margin-bottom: 0;
}

.event-feed-note {
    color: var(--mbl-muted);
    font-size: 0.82rem;
    margin: -1.15rem 0 1.5rem;
}

.event-feed-note--demo {
    background: #fff6cf;
    border-left: 0.25rem solid #b32317;
    color: #352e16;
    margin-top: 0;
    padding: 0.55rem 0.75rem;
}

.event-card {
    align-items: flex-start;
    border-bottom: 1px solid var(--mbl-border);
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.event-card:last-of-type {
    border-bottom: 0;
}

.event-card--supporting {
    background: var(--mbl-surface);
    border-left: 3px solid var(--mbl-gold);
    border-radius: 5px;
    padding: 1rem;
}

.event-card--supporting .event-poster {
    flex-basis: 150px;
    max-width: 150px;
}

.event-kind {
    color: var(--mbl-red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.event-kind .icon {
    margin-right: 0.35rem;
}

.event-poster {
    flex: 0 0 190px;
    max-width: 190px;
}

.event-poster img {
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
    display: block;
    height: auto;
    width: 100%;
}

.event-poster a {
    border: 0;
    display: block;
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-details h3,
.event-details h4 {
    color: var(--mbl-ink);
    margin: 0 0 0.35rem;
}

.event-meta {
    color: var(--mbl-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.event-meta .icon {
    color: var(--mbl-red);
    margin-right: 0.45rem;
}

.event-desc {
    line-height: 1.65;
    white-space: pre-line;
}

.event-desc--listing {
    line-height: 1.5;
    white-space: normal;
}

.event-actions {
    margin: 1rem 0 0;
}

.event-support {
    background: var(--mbl-surface);
    border-left: 3px solid var(--mbl-gold);
    border-radius: 0 4px 4px 0;
    color: var(--mbl-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
}

.event-support strong {
    color: var(--mbl-ink);
    display: block;
}

.event-support .icon {
    color: var(--mbl-red);
    margin-right: 0.45rem;
}

.event-support--detail {
    margin: 0 0 1.5rem;
    max-width: 40rem;
}

.event-support-item {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.event-support-thumb {
    border: 0;
    flex: 0 0 64px;
}

.event-support-thumb img {
    border-radius: 4px;
    display: block;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.event-support-copy a {
    color: var(--mbl-ink);
    font-weight: 700;
}

.event-support-copy span {
    display: block;
    font-size: 0.88rem;
}

.event-support--detail .event-support-thumb,
.event-support--detail .event-support-thumb img {
    height: 84px;
    width: 84px;
}

.event-support--detail .event-support-thumb {
    flex-basis: 84px;
}

.supporting-events {
    border-top: 1px solid var(--mbl-border);
    margin: 0.5rem 0 2rem;
    padding-top: 1.5rem;
}

.supporting-events > h3 {
    color: var(--mbl-ink);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.supporting-events-list {
    display: grid;
    gap: 0.65rem;
}

.supporting-event {
    align-items: center;
    background: var(--mbl-surface);
    border: 1px solid var(--mbl-border);
    border-radius: 5px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding: 0.8rem 1rem;
}

.supporting-event h4,
.supporting-event p {
    margin: 0;
}

.supporting-event h4 {
    color: var(--mbl-ink);
    font-size: 1rem;
}

.supporting-event p {
    color: var(--mbl-muted);
    font-size: 0.86rem;
}

.empty-state {
    background: var(--mbl-surface);
    border: 1px solid var(--mbl-border);
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
}

.empty-state h3,
.empty-state h4 {
    color: var(--mbl-ink);
}

.social-feed-shell {
    max-height: 1120px;
    overflow: auto;
    position: relative;
}

.social-more {
    margin-top: 1.25rem;
    position: relative;
    text-align: center;
    z-index: 1;
}

.visit-grid {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
}

.visit-details {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 2.5rem;
}

.booking-callout {
    align-items: center;
    background: var(--mbl-surface);
    border-left: 4px solid var(--mbl-red);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding: 1.25rem 1.4rem;
}

.booking-callout p,
.booking-callout .button {
    margin: 0;
}

.booking-callout .button {
    flex: 0 0 auto;
}

.booking-page .major p {
    max-width: 48rem;
}

.booking-form-shell {
    max-width: 52rem;
}

.booking-note {
    background: #fff8e6;
    border-left: 4px solid var(--mbl-gold);
    color: #5f441d;
    margin-bottom: 2rem;
    padding: 1rem 1.2rem;
}

.booking-field-grid {
    display: grid;
    gap: 0 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-field-grid .full-width {
    grid-column: 1 / -1;
}

.booking-form input,
.booking-form textarea {
    background: #ffffff;
}

.booking-form .optional,
.booking-form .form-note {
    color: var(--mbl-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.booking-form .cf-turnstile {
    margin: 0 0 1.25rem;
    max-width: 100%;
}

.booking-form .form-note {
    margin-top: -0.5rem;
}

.booking-form .field-hint {
    color: var(--mbl-muted);
    font-size: 0.85rem;
    margin: -1.5rem 0 1.5rem;
}

.visit-card {
    background: var(--mbl-surface);
    border: 1px solid var(--mbl-border);
    border-radius: 6px;
    padding: 1.2rem;
}

.visit-card h4 {
    color: var(--mbl-ink);
    margin-bottom: 0.35rem;
}

.visit-card p,
.visit-card address {
    font-style: normal;
    margin: 0;
}

.contact-form h4,
.map-wrap h4 {
    color: var(--mbl-ink);
}

.contact-form input,
.contact-form textarea {
    background: #ffffff;
}

.contact-form .form-note {
    color: var(--mbl-muted);
    font-size: 0.85rem;
    margin-top: -0.5rem;
}

.contact-form .cf-turnstile {
    margin: 0 0 1.25rem;
    max-width: 100%;
}

.honeypot {
    display: none !important;
}

.location-map-panel {
    background: var(--mbl-surface);
    border: 1px solid var(--mbl-border);
    border-radius: 6px;
    overflow: hidden;
}

.location-map {
    border: 0;
    display: block;
    height: 320px;
    width: 100%;
}

.location-map-details {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem;
}

.location-map-details p {
    margin: 0;
}

.location-map-details .button {
    flex: 0 0 auto;
    margin: 0;
}

@media screen and (max-width: 480px) {
    input[type="submit"],
    input[type="reset"],
    input[type="button"],
    .button {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    .location-map {
        height: 280px;
    }

    .location-map-details {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .location-map-details .button {
        width: 100%;
    }
}

#footer {
    color: #666666;
}

#footer .copyright li a {
    color: #555555;
}

#titleBar .toggle:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -5px;
}

@media screen and (max-width: 736px) {
    .welcome-section .container {
        padding-bottom: 2.5rem !important;
        padding-top: 2.5rem !important;
    }

    .quick-actions,
    .quick-actions li,
    .quick-actions .button {
        width: 100%;
    }

    .event-card {
        flex-direction: column;
    }

    .event-details {
        order: -1;
        width: 100%;
    }

    .event-poster {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .event-poster img {
        max-width: 24rem;
    }

    .supporting-event {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-feed-shell {
        max-height: 760px;
    }

    .visit-grid,
    .visit-details {
        grid-template-columns: 1fr;
    }

    .visit-grid {
        gap: 2rem;
    }

    .booking-callout {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-field-grid {
        grid-template-columns: 1fr;
    }

    .booking-field-grid .full-width {
        grid-column: auto;
    }
}

/* Event pages keep artwork uncropped and long links readable. */
.event-details h3 a { color: inherit; }
.event-desc, .event-page h2, .event-schedule { overflow-wrap: anywhere; }
.event-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.event-detail-copy { min-width: 0; }
.event-detail-poster { margin: 0; }
.event-detail-poster a { display: block; border: 0; }
.event-detail-poster img { display: block; width: 100%; height: auto; border-radius: 6px; }
.event-detail-poster figcaption { font-size: 0.85rem; margin-top: 0.65rem; }
@media screen and (max-width: 736px) {
    .event-detail-layout { grid-template-columns: 1fr; }
}

.event-page h2 { color: var(--mbl-ink); }
