/* ── Canvas ── */
body.civicrm-event-info #crm-container {
    background-color: #F5F0E6; /* color-bg */
    background-image:
        linear-gradient(rgba(26, 26, 26, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 26, 0.06) 1px, transparent 1px);
    background-size: 20px 20px; /* grid-overlay */
    color: #1A1A1A; /* color-text */
    font-family: var(--e-global-typography-text-font-family, "Barlow"), sans-serif;
}

body.civicrm-event-info #crm-main-content-wrapper {
    max-width: 940px;
    margin-inline: auto;
    padding: 64px 32px; /* space-xl / space-l */
}

body.civicrm-event-info #crm-container a {
    color: #1A1A1A;
    text-decoration-color: #C9952A; /* color-primary */
    text-underline-offset: 3px;
}

/* ── Layout: grid + visual reorder ── */
body.civicrm-event-info #crm-container .event-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; /* space-m */
}

body.civicrm-event-info #crm-container .event-info > * {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
}

body.civicrm-event-info #crm-container .event-info .clear,
body.civicrm-event-info #crm-container .crm-actionlinks-top {
    display: none;
}

/* ── Description (WYSIWYG) base ── */
body.civicrm-event-info #crm-container .event_description-section img {
    max-width: 100%;
    height: auto !important; /* CKEditor writes inline width/height */
}

/* ── Summary → lede ── */
body.civicrm-event-info #crm-container .event_summary-section {
    max-width: 700px;
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem); /* size-lg */
    line-height: 1.5em;
}

/* ── Meta cards: When / Location / Contact (software-card surface) ── */
body.civicrm-event-info #crm-container .event-info > .crm-section:is(.event_date_time-section, .event_address-section, .event_contact-section) {
    grid-column: auto;
    padding: 16px 20px;
    background-color: rgba(201, 149, 42, 0.3); /* bg-brass-30 */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(26, 26, 26, 0.06) 0,
        rgba(26, 26, 26, 0.06) 1px,
        transparent 1px,
        transparent 8px
    ); /* diagonal-hatch */
}

body.civicrm-event-info #crm-container .crm-section .label {
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    text-align: left;
    font-family: "JetBrains Mono", monospace; /* font-mono */
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1A1A1A;
}

body.civicrm-event-info #crm-container .crm-section .content {
    margin: 0;
    padding: 0;
    font-size: clamp(1.0625rem, 1rem + 0.3125vw, 1.1875rem); /* size-base */
    line-height: 1.65em;
    color: #1A1A1A;
}

body.civicrm-event-info #crm-container .crm-actionlinks-bottom {
    margin-top: 16px;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    body.civicrm-event-info #crm-main-content-wrapper {
        padding: 32px 16px;
    }

    body.civicrm-event-info #crm-container .event-info {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ══════════════════════════════════════════════════════════════
   Shared form chrome — Event Registration + Contribution/Membership
   Classic QuickForm pages (NO #bootstrap-theme).
   /members/event/register/     → body.civicrm-event-register
   /members/contribute/transact/ → body.civicrm-contribute
   All steps (main / confirm / thank-you) share each body class.
   Page-specific differences follow in their own sections.
   ══════════════════════════════════════════════════════════════ */

/* ── Canvas ── */
:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container {
    background-color: #F5F0E6; /* color-bg */
    background-image:
        linear-gradient(rgba(26, 26, 26, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 26, 0.06) 1px, transparent 1px);
    background-size: 20px 20px; /* grid-overlay */
    color: #1A1A1A; /* color-text */
}

:is(body.civicrm-event-register, body.civicrm-contribute) #crm-main-content-wrapper {
    margin-inline: auto;
    padding: 64px 32px; /* space-xl / space-l */
    
    /* Connor updated to use CSS grid for full-bleed */
    display: grid;
    grid-template-columns: 1fr min(42rem, 100%) 1fr;
    > * {
        grid-column: 2;
    }
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout, body.civicrm-event-view_cart) #crm-container a {
    color: #1A1A1A;
    text-decoration-color: #C9952A;
    text-underline-offset: 3px;
}

/* ── Section rhythm + stacked label/field ── */
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container .crm-section {
    margin: 0 0 28px;
    padding: 0;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container .crm-section .label {
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    text-align: left;
    font-family: "Barlow Condensed", sans-serif; /* font-heading */
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem); /* size-sm */
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1A1A1A;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container .crm-section .label label {
    font: inherit;
    color: inherit;
}

:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container .crm-section .content {
    margin: 0;
    padding: 0;
    font-size: clamp(1.0625rem, 1rem + 0.3125vw, 1.1875rem); /* size-base */
    line-height: 1.65em;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container .crm-marker {
    color: #C9952A;
}

:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container .description {
    margin-top: 8px;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    line-height: 1.5em;
    color: #6E655B; /* color-text-muted */
}

/* ── Inputs: underline style (matches AfForm fields) ── */
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container input.crm-form-text,
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container input.crm-form-email,
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 40rem;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #1A1A1A;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    color: #1A1A1A;
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem); /* size-lg */
    font-weight: 400;
}

:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container input.crm-form-text:focus,
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container input.crm-form-email:focus,
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container textarea:focus {
    outline: none;
    border-bottom: 2px solid #C9952A;
    margin-bottom: -1px;
}

/* ── Fieldsets + legends → type-h3 with brass rule ── */
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container fieldset legend {
    float: none;
    width: 100%;
    margin: 16px 0 24px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 2px solid #C9952A; /* brass accent rule */
    background: none;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.625rem, 1rem + 1.5vw, 2rem); /* size-xl → type-h3 */
    line-height: 1.15em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1A1A1A;
}

/* ── Brass band: status messages, register thank-you, contribute renewal notices, cart welcome ── */
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container .messages:not(.help),
body.civicrm-event-register #crm-container .crm-event-thankyou-form-block > div.help,
body.civicrm-contribute #crm-container div.help:not(fieldset div.help),
body.civicrm-contribute #crm-container #membership fieldset > div.help,
body.civicrm-event-cart_checkout #crm-container .messages.status {
    margin: 0 0 32px;
    padding: 16px 20px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #1A1A1A;
    background-color: rgba(201, 149, 42, 0.3); /* bg-brass-30 */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(26, 26, 26, 0.06) 0,
        rgba(26, 26, 26, 0.06) 1px,
        transparent 1px,
        transparent 8px
    ); /* diagonal-hatch */
    font-size: clamp(1.0625rem, 1rem + 0.3125vw, 1.1875rem);
    line-height: 1.5em;
}

/* ── Intro / footer text ── */
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container .intro_text-section {
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem); /* size-lg → lede */
    line-height: 1.5em;
}

:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container :is(.event_footer_text-section, .footer_text-section, .contribution_footer_text-section) {
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    line-height: 1.5em;
    color: #6E655B;
}

/* ── Confirm / thank-you group headers (civicrm.css gray bars) ── */
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container .crm-group {
    margin: 0 0 32px;
}

:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container .header-dark {
    margin: 0 0 16px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 2px solid #C9952A;
    border-radius: 0;
    background: none;
    color: #1A1A1A;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.625rem, 1rem + 1.5vw, 2rem);
    line-height: 1.15em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Buttons → btn-primary / btn-outline ── */
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container .crm-submit-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
    padding: 0;
    border: 0;
    background: none;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container .crm-submit-buttons .crm-button {
    display: inline-flex;
    flex-direction: row-reverse; /* icon trails the label */
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 32px;
    border: 0;
    border-radius: 0;
    background: #C9952A; /* color-primary */
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    color: #F5F0E6;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    line-height: 1.2em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container .crm-submit-buttons .crm-button:hover,
:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container .crm-submit-buttons .crm-button:focus-visible {
    background: #A87A1F; /* btn-nav hover */
    color: #1A1A1A;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container .crm-submit-buttons .crm-button:focus-visible {
    outline: 2px solid #1A1A1A;
    outline-offset: 3px;
}

/* Back / cancel → btn-outline */
:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container .crm-submit-buttons .crm-button:is(.crm-button-type-back, .crm-button-type-cancel) {
    flex-direction: row;
    padding: 12px 30px;
    border: 2px solid #1A1A1A;
    background: transparent;
    color: #1A1A1A;
}

:is(body.civicrm-event-register, body.civicrm-contribute, body.civicrm-event-cart_checkout) #crm-container .crm-submit-buttons .crm-button:is(.crm-button-type-back, .crm-button-type-cancel):hover {
    background: #1A1A1A;
    color: #F5F0E6;
}

/* Admin-only "Configure" link + price-set wrench: quiet */
:is(body.civicrm-event-register, body.civicrm-contribute) #crm-container form > a.button,
body.civicrm-contribute #crm-container #priceset .float-right .crm-hover-button {
    float: right;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #6E655B;
    font-size: 0.8125rem;
}

@media (max-width: 767px) {
    :is(body.civicrm-event-register, body.civicrm-contribute) #crm-main-content-wrapper {
        padding: 32px 16px;
    }
}

/* ══════════════════════════════════════════════════════════════
   Event Registration only — Register / Confirm / Thank-you
   ══════════════════════════════════════════════════════════════ */

body.civicrm-event-register #crm-container {
    font-family: var(--e-global-typography-text-font-family, "Barlow"), sans-serif;
}

body.civicrm-event-register #crm-container .crm-section .label {
    margin: 0 0 6px;
}

body.civicrm-event-register #crm-container .description {
    margin-top: 6px;
}

body.civicrm-event-register #crm-container input.crm-form-text,
body.civicrm-event-register #crm-container input.crm-form-email,
body.civicrm-event-register #crm-container textarea,
body.civicrm-event-register #crm-container select.crm-form-select {
    font-family: var(--e-global-typography-text-font-family, "Barlow"), sans-serif;
}

body.civicrm-event-register #crm-container select.crm-form-select {
    box-sizing: border-box;
    width: auto;
    max-width: 40rem;
    min-width: 8rem;
    margin-inline-end: 8px;
    padding: 8px 28px 8px 0;
    border: 0;
    border-bottom: 1px solid #1A1A1A;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    color: #1A1A1A;
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem); /* size-lg */
    font-weight: 400;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9952A' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
}

body.civicrm-event-register #crm-container select.crm-form-select:focus {
    outline: none;
    border-bottom: 2px solid #C9952A;
    margin-bottom: -1px;
}

/* Profile help text: quiet, no box */
body.civicrm-event-register #crm-container fieldset .messages.help {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    line-height: 1.5em;
    color: #6E655B;
}

body.civicrm-event-register #crm-container fieldset .messages.help p {
    margin: 0 0 4px;
}

body.civicrm-event-register #crm-container .crm-event-thankyou-form-block > div.help p {
    margin: 0 0 4px;
}

body.civicrm-event-register #crm-container .crm-event-thankyou-form-block > div.help p:first-child {
    font-weight: 700;
}

/* ── Thank-you / review: Event Information table (kill zebra rows) ── */
body.civicrm-event-register #crm-container .crm-group .display-block {
    margin: 0;
    padding: 0;
}

body.civicrm-event-register #crm-container table.form-layout {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: none;
}

body.civicrm-event-register #crm-container table.form-layout tr,
body.civicrm-event-register #crm-container table.form-layout td {
    border: 0;
    background: none;
}

body.civicrm-event-register #crm-container table.form-layout td {
    padding: 8px 16px 8px 0;
    vertical-align: top;
    font-size: clamp(1.0625rem, 1rem + 0.3125vw, 1.1875rem);
    line-height: 1.5em;
    color: #1A1A1A;
}

/* Label column → mono REF register */
body.civicrm-event-register #crm-container table.form-layout td:first-child:not([colspan]) {
    width: 7rem;
    padding-top: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Event title row */
body.civicrm-event-register #crm-container table.form-layout td[colspan] a {
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem); /* size-lg */
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ── Thank-you / review: read-only participant profile (compact) ── */
body.civicrm-event-register #crm-container .crm-profile-view-title {
    margin: 24px 0 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6E655B;
}

body.civicrm-event-register #crm-container fieldset.label-left .crm-section {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    margin: 0 0 8px;
}

body.civicrm-event-register #crm-container fieldset.label-left .crm-section .clear {
    display: none;
}

/* ── Thank-you intro / footer text ── */
body.civicrm-event-register #crm-container .event_thankyou_text-section {
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem); /* size-lg → lede */
    line-height: 1.5em;
}

body.civicrm-event-register #crm-container .event_thankyou_footer-section {
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    line-height: 1.5em;
    color: #6E655B;
}

@media (max-width: 767px) {
    body.civicrm-event-register #crm-container fieldset.label-left .crm-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    body.civicrm-event-register #crm-container table.form-layout td:first-child:not([colspan]) {
        width: 5.5rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   Shared event chrome — info + register/thank-you (body.civicrm-event)
   Share band, iCal/back links, home link, Register button
   ══════════════════════════════════════════════════════════════ */

/* ── Share band ── */
:is(body.civicrm-event,body.civicrm-contribute) #crm-container .crm-socialnetwork {
    margin: 32px 0 0;
    padding: 24px 28px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #1A1A1A;
    background-color: rgba(201, 149, 42, 0.3); /* bg-brass-30 */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(26, 26, 26, 0.06) 0,
        rgba(26, 26, 26, 0.06) 1px,
        transparent 1px,
        transparent 8px
    ); /* diagonal-hatch */
}

:is(body.civicrm-event,body.civicrm-contribute) #crm-container .crm-socialnetwork h2 {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.625rem, 1rem + 1.5vw, 2rem); /* size-xl → type-h3 */
    line-height: 1.15em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1A1A1A;
}

:is(body.civicrm-event,body.civicrm-contribute) #crm-container .crm-socialnetwork p {
    margin: 0 0 16px;
    font-size: clamp(1.0625rem, 1rem + 0.3125vw, 1.1875rem);
    line-height: 1.65em;
    color: #1A1A1A;
}

:is(body.civicrm-event,body.civicrm-contribute) #crm-container .crm-socialnetwork .crm-button {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 8px 0;
    padding: 8px 16px;
    border: 2px solid #1A1A1A;
    border-radius: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    color: #1A1A1A;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

:is(body.civicrm-event,body.civicrm-contribute) #crm-container .crm-socialnetwork .crm-button:hover,
:is(body.civicrm-event,body.civicrm-contribute) #crm-container .crm-socialnetwork .crm-button:focus-visible {
    background: #1A1A1A; /* btn-outline hover */
    color: #F5F0E6;
}

:is(body.civicrm-event,body.civicrm-contribute) #crm-container .crm-socialnetwork p.clear {
    margin: 8px 0 0;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
}

:is(body.civicrm-event,body.civicrm-contribute) #crm-container .crm-socialnetwork p.clear a {
    font-family: "JetBrains Mono", monospace;
    word-break: break-all;
}

/* ── iCal / Google Calendar + back links ── */
body.civicrm-event #crm-container .iCal_links-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 16px 0 0;
    padding: 0;
}

body.civicrm-event #crm-container a.crm-event-feed-link,
body.civicrm-event #crm-container .event_info_link-section a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6E655B; /* color-text-muted */
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem); /* size-sm */
    text-decoration: none;
}

body.civicrm-event #crm-container a.crm-event-feed-link:hover,
body.civicrm-event #crm-container .event_info_link-section a:hover {
    color: #1A1A1A;
}

body.civicrm-event #crm-container a.crm-event-feed-link .fa-stack,
body.civicrm-event #crm-container .event_info_link-section .crm-i {
    font-size: 0.75rem;
    color: #C9952A;
}

body.civicrm-event #crm-container a.crm-event-feed-link .label {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
    background: none;
}

/* ── Home link (injected by Custom Code snippet) ── */
body.civicrm-event #crm-container .tbw-crm-home {
    margin: 32px 0 0;
}

body.civicrm-event #crm-container .tbw-crm-home a {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #1A1A1A;
    color: #1A1A1A;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

body.civicrm-event #crm-container .tbw-crm-home a:hover,
body.civicrm-event #crm-container .tbw-crm-home a:focus-visible {
    background: #1A1A1A; /* btn-outline hover */
    color: #F5F0E6;
}

/* ── Register button → btn-primary (info page + editor-authored buttons) ── */
body.civicrm-event #crm-container a.button.crm-register-button {
    display: inline-block;
    float: none;
    margin: 0;
    padding: 14px 32px;
    border: 0;
    border-radius: 0;
    background: #C9952A; /* color-primary */
    color: #F5F0E6;      /* color-bg */
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem); /* size-sm */
    line-height: 1.2em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    text-shadow: none;
    transition: background-color 0.15s, color 0.15s;
}

body.civicrm-event #crm-container a.button.crm-register-button span {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
}

body.civicrm-event #crm-container a.button.crm-register-button:hover,
body.civicrm-event #crm-container a.button.crm-register-button:focus-visible {
    background: #A87A1F;
    color: #1A1A1A;
}

body.civicrm-event #crm-container a.button.crm-register-button:focus-visible {
    outline: 2px solid #1A1A1A;
    outline-offset: 3px;
}

