/* Dedicated Oima Events UI; no global website or POS selectors. */
.oev-root{--oev-primary:var(--club-oima-primary,var(--o-color-1,var(--bs-primary,#de6528)));--oev-dark:#242827;--oev-muted:#6b746f;--oev-line:#e9e9e5;--oev-paper:#f8f8f6;background:var(--oev-paper)!important;color:var(--oev-dark);font:400 14px/1.6 Montserrat,Arial,sans-serif;min-height:75vh}
.oev-root,.oev-root *{box-sizing:border-box}
.oev-root h1,.oev-root h2,.oev-root h3,.oev-root p{color:inherit}
.oev-root a{text-decoration:none}
.oev-root button,.oev-root input{font:inherit}
.oev-root a:focus-visible,.oev-root button:focus-visible,.oev-root input:focus-visible{outline:3px solid var(--oev-primary);outline-offset:3px}
/* Match the public Oima header's desktop content edges (same shared left/right guides). */
.oev-root .oev-container{max-width:1320px;width:100%;padding:0 18px;margin:0 auto}
.oev-hero{padding:58px 0 64px;background:linear-gradient(125deg,color-mix(in srgb,var(--oev-primary) 89%,#191919),var(--oev-primary));color:white}
.oev-hero .oev-container{display:flex;flex-direction:column;align-items:flex-start}
.oev-hero h1{font:800 clamp(34px,5vw,59px)/1.12 Montserrat,Arial,sans-serif;margin:13px 0 18px;color:#fff}
.oev-hero p{color:#fff;opacity:.92;max-width:730px;font-size:15px;margin:0}
.oev-eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800;text-transform:uppercase;color:var(--oev-primary);display:block}
.oev-hero .oev-eyebrow{color:#fff;opacity:.8}
.oev-main{padding-top:38px;padding-bottom:75px;background:var(--oev-paper)!important}
.oev-root .oev-main{background:var(--oev-paper)!important}
.oev-calendar-layout{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);gap:20px;align-items:start}
.oev-card{min-width:0;background:#fff;border:1px solid var(--oev-line);padding:27px;border-radius:16px;box-shadow:0 8px 28px #22222208}
.oev-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}
.oev-card h2{font:800 clamp(18px,2vw,25px)/1.25 Montserrat,Arial,sans-serif;margin:7px 0 0;color:var(--oev-dark)}
.oev-month-controls{display:flex;align-items:center;gap:7px}
.oev-month-controls button{background:#fff;border:1px solid var(--oev-line);border-radius:9px;min-width:37px;height:37px;padding:0 9px;font-weight:800;color:var(--oev-primary);cursor:pointer}
.oev-month-controls button:hover{background:var(--oev-paper)}
.oev-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.oev-day-head{font-size:10px;color:var(--oev-muted);text-align:center;font-weight:800;padding:7px 0}
.oev-day{position:relative;border:1px solid transparent;background:#f5f6f4;color:#6b746f;border-radius:9px;min-height:57px;padding:7px;text-align:left;font-size:12px}
.oev-day[disabled]{opacity:.45;cursor:default}
.oev-day.has-event{background:color-mix(in srgb,var(--oev-primary) 10%,white);color:var(--oev-dark);border-color:color-mix(in srgb,var(--oev-primary) 24%,white);font-weight:800;cursor:pointer}
.oev-day.has-event:after{content:"";background:var(--oev-primary);width:6px;height:6px;border-radius:50%;position:absolute;bottom:7px;left:9px}
.oev-day.has-event:hover,.oev-day.is-selected{background:color-mix(in srgb,var(--oev-primary) 18%,white);border-color:var(--oev-primary)}
.oev-day.is-today{box-shadow:inset 0 0 0 1px var(--oev-primary)}
.oev-helper{font-size:11px;color:var(--oev-muted)!important;margin:19px 0 0}
.oev-event-list{display:grid;gap:10px;max-height:650px;overflow:auto;scrollbar-width:thin}
.oev-event{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid var(--oev-line);border-radius:11px;color:var(--oev-dark)!important;min-width:0}
.oev-event:hover{border-color:var(--oev-primary);background:var(--oev-paper)}
.oev-dateblock{flex:0 0 51px;min-height:52px;border-radius:9px;background:color-mix(in srgb,var(--oev-primary) 10%,white);color:var(--oev-primary);display:flex;flex-direction:column;justify-content:center;align-items:center}
.oev-dateblock strong{font-size:22px;font-weight:800;line-height:1.1}
.oev-dateblock small{font-size:10px}
.oev-event-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.oev-small-tag{color:var(--oev-primary);font-size:9px;font-weight:800;letter-spacing:1px}
.oev-event-title{font-size:13px;line-height:1.5;margin:4px 0;overflow-wrap:anywhere}
.oev-event-meta{color:var(--oev-muted);font-size:11px}
.oev-event-action,.oev-link{font-size:11px;color:var(--oev-primary);font-weight:800;margin-top:9px}
.oev-link-button{border:0;background:transparent;color:var(--oev-primary);font-weight:800;font-size:11px;cursor:pointer;white-space:nowrap}
.oev-empty{border:1px dashed #d4d8d4;border-radius:11px;color:var(--oev-muted);font-size:12px;padding:25px;background:#fafbfa}
.oev-detail-hero{padding-top:38px}
.oev-back{display:block;color:#fff!important;margin-bottom:32px;font-size:12px;font-weight:700}
.oev-detail-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px;align-items:start}
.oev-detail-content{display:grid;gap:20px;min-width:0}
.oev-prose h2{margin-bottom:19px}
.oev-rich{overflow-wrap:anywhere;line-height:1.7}
.oev-rich img,.oev-rich iframe,.oev-rich video{max-width:100%;height:auto}
.oev-rich a{color:var(--oev-primary)!important;text-decoration:underline}
.oev-muted{color:var(--oev-muted)!important;font-size:12px;line-height:1.7}
.oev-info{display:flex;gap:15px;padding:19px 0;border-bottom:1px solid var(--oev-line)}
.oev-info:last-child{border-bottom:0;padding-bottom:0}
.oev-info-icon{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;background:color-mix(in srgb,var(--oev-primary) 11%,white);font-size:19px}
.oev-info strong{display:block;font-size:13px}
.oev-info p{margin:4px 0;color:var(--oev-dark)}
.oev-info small{color:var(--oev-muted)}
.oev-rsvp{position:sticky;top:24px}
.oev-rsvp h2{margin:7px 0 12px}
.oev-form{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.oev-form label{font-size:12px;font-weight:700;margin-top:8px}
.oev-form input:not([type=hidden]){border:1px solid #d8dcd8;background:#fff;border-radius:9px;color:var(--oev-dark);width:100%;min-height:46px;padding:10px 13px}
.oev-button{display:flex;justify-content:center;align-items:center;text-align:center;width:100%;min-height:47px;border:1px solid var(--oev-primary);border-radius:10px;color:#fff!important;background:var(--oev-primary);padding:12px 16px;font-weight:800;font-size:12px;cursor:pointer;margin-top:18px}
.oev-button:hover{filter:brightness(.92)}
.oev-button-outline{background:#fff;color:var(--oev-primary)!important}
.oev-ticket-note{margin-top:22px}
.oev-error{padding:12px;border:1px solid #e7b1a9;border-radius:9px;background:#fff3f1;color:#922d1c!important;font-size:12px}
.oev-trap{position:absolute;left:-9999px;height:1px;width:1px;overflow:hidden}
.oev-success{width:50px;height:50px;display:grid;place-items:center;border-radius:50%;background:#e5f6e9;color:#1b8435;font-size:25px;font-weight:800;margin-bottom:16px}
@media(max-width:900px){.oev-calendar-layout,.oev-detail-layout{grid-template-columns:1fr}.oev-rsvp{position:static}.oev-event-list{max-height:none}}
@media(max-width:540px){.oev-root .oev-container{padding:0 17px}.oev-hero{padding:41px 0 46px}.oev-main{padding-top:21px;padding-bottom:48px}.oev-card{padding:19px;border-radius:13px}.oev-card-head{align-items:flex-start;flex-wrap:wrap}.oev-month-controls{width:100%;justify-content:flex-end}.oev-days{gap:4px}.oev-day{min-height:45px;padding:6px}.oev-event{padding:12px}}

/* Reuse Odoo's proven native ticket and questionnaire widgets as modals,
   not its event page. Only these targeted modal ids are restyled. */
#modal_ticket_registration .modal-content,#modal_attendees_registration .modal-content{border:1px solid #e9e9e5;border-radius:15px;overflow:hidden;font-family:Montserrat,Arial,sans-serif}
#modal_ticket_registration .modal-header,#modal_attendees_registration .modal-header{padding:20px 23px}
#modal_ticket_registration .modal-title,#modal_attendees_registration .modal-title{font-weight:800}
#modal_ticket_registration .btn-primary,#modal_attendees_registration .btn-primary{background:var(--club-oima-primary,var(--o-color-1,#de6528));border-color:var(--club-oima-primary,var(--o-color-1,#de6528));border-radius:9px;font-weight:800}
#modal_ticket_registration .form-select,#modal_attendees_registration .form-control{border-radius:9px}

/* /events and /events/<id> only: replace Odoo's global chrome with the same
   two-tier Oima restaurant header and public-home footer. Other routes stay intact. */
body:has(.oev-root) header#top,
body:has(.oev-root) footer#bottom,
body:has(.oev-root) .oima-panel-website{display:none!important}

/* Explicit vertical space after the hero. Never let the width-only
   .oev-container padding shorthand collapse the section spacing. */
.oev-root .oev-main{padding-top:42px!important;padding-bottom:80px!important}
.oev-root .oev-home-top,
.oev-root .oev-home-subbar,
.oev-root .oev-home-footer{width:100%;box-sizing:border-box}
.oev-root .oev-home-top{background:var(--oev-primary)!important}
.oev-root .oev-home-top-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:93px}
.oev-root .oev-home-brand{display:inline-flex;gap:15px;align-items:center;min-width:0;color:#fff!important;text-decoration:none}
.oev-root .oev-home-brand img{width:118px;max-width:118px;height:45px;object-fit:contain;filter:brightness(0) invert(1)}
.oev-root .oev-brand-divider{display:block;width:1px;height:23px;background:#ffffff80;flex-shrink:0}
.oev-root .oev-brand-tag{font-size:13px;line-height:1.4;font-weight:800;color:#fff;white-space:nowrap}
.oev-root .oev-home-cta{background:#fff;border:1px solid #fff;border-radius:12px;padding:14px 23px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:13px;color:#b84317!important;font-size:13px;font-weight:800;white-space:nowrap}
.oev-root .oev-home-cta:hover{background:#fff9f5}
.oev-root .oev-home-subbar{background:#fff!important;border-bottom:1px solid #eee1d7}
.oev-root .oev-home-subbar-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:51px}
.oev-root .oev-home-links{display:flex;align-items:center;gap:38px;min-width:0;flex-wrap:wrap}
.oev-root .oev-home-links a,
.oev-root .oev-home-event-link{display:inline-flex;align-items:center;min-height:48px;color:#50433b!important;text-decoration:none;font-size:13px;font-weight:750;white-space:nowrap}
.oev-root .oev-home-links a:hover,
.oev-root .oev-home-event-link:hover{color:var(--oev-primary)!important}
.oev-root .oev-home-event-link{margin-left:auto;color:var(--oev-primary)!important;font-weight:800}
.oev-root .oev-home-mobile-nav{display:none}
.oev-root .oev-home-footer{background:#fff!important;border-top:1px solid #ebe5df;margin-top:0}
.oev-root .oev-home-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:91px;padding-top:24px;padding-bottom:24px}
.oev-root .oev-home-footer p{font-size:12px;line-height:1.6;color:#756960!important;margin:0}
.oev-root .oev-home-footer nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:27px}
.oev-root .oev-home-footer a{font-size:12px;line-height:1.6;font-weight:750;color:#554841!important;text-decoration:none}
.oev-root .oev-home-footer a:hover{color:var(--oev-primary)!important}
@media(max-width:1040px){
 .oev-root .oev-home-links{gap:17px}
 .oev-root .oev-home-links a,.oev-root .oev-home-event-link{font-size:12px}
}
@media(max-width:760px){
 .oev-root .oev-home-top-inner{min-height:76px;gap:13px}
 .oev-root .oev-home-brand{gap:9px}
 .oev-root .oev-home-brand img{width:98px;height:40px}
 .oev-root .oev-brand-tag{font-size:11px}
 .oev-root .oev-home-cta{min-height:40px;padding:10px 12px;font-size:11px}
 .oev-root .oev-home-subbar-inner{min-height:47px}
 .oev-root .oev-home-links,.oev-root .oev-home-event-link{display:none}
 .oev-root .oev-home-mobile-nav{display:block;position:relative;width:100%}
 .oev-root .oev-home-mobile-nav summary{display:flex;align-items:center;justify-content:space-between;min-height:47px;cursor:pointer;list-style:none;color:#50433b;font-size:12px;font-weight:800}
 .oev-root .oev-home-mobile-nav summary::-webkit-details-marker{display:none}
 .oev-root .oev-home-mobile-nav nav{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0 0 13px}
 .oev-root .oev-home-mobile-nav nav a{padding:11px 0;border-top:1px solid #f2ebe4;font-size:12px;color:#50433b!important;font-weight:700}
 .oev-root .oev-home-mobile-nav nav a.oev-mobile-current{color:var(--oev-primary)!important}
 .oev-root .oev-home-footer-inner{flex-direction:column;align-items:flex-start;padding-top:26px;padding-bottom:26px;gap:14px}
 .oev-root .oev-home-footer nav{justify-content:flex-start;gap:13px 22px}
}
@media(max-width:540px){
 .oev-root .oev-main{padding-top:25px!important;padding-bottom:57px!important}
 .oev-root .oev-home-top-inner{min-height:70px}
 .oev-root .oev-home-brand img{width:89px;height:36px}
 .oev-root .oev-brand-divider{height:18px}
 .oev-root .oev-brand-tag{font-size:10px}
 .oev-root .oev-home-cta{border-radius:9px;padding:9px;font-size:10px}
}
@media(max-width:380px){
 .oev-root .oev-brand-tag,.oev-root .oev-brand-divider{display:none}
}

/* Single source of truth: original homepage header/footer cloned from /.
   Never change its typography, heights, container dimensions or colors here. */
body:has(.oev-root) header#top.oev-original-home-header,
body:has(.oev-root) .oev-original-home-header header#top,
body:has(.oev-root) footer#bottom.oev-original-home-footer,
body:has(.oev-root) .oev-original-home-footer footer#bottom {
    display: block !important;
}
.oev-root .oev-original-home-header,
.oev-root .oev-original-home-footer {width:100%;}

/* Insert Eventos as one more item in the homepage's *existing* lower
   navigation. On all breakpoints that row scrolls sideways instead of hiding
   the last links or wrapping them across multiple lines. */
.oev-root .oev-live-home-nav-scroll {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}
.oev-root .oev-live-home-nav-scroll > * {
    flex: 0 0 auto !important;
    white-space: nowrap;
}
.oev-root .oev-live-home-events-link {
    color: var(--oev-primary) !important;
}
/* In case the homepage is briefly unavailable, the prior navbar remains
   usable and now has the requested horizontal scroll (including Eventos). */
.oev-root .oev-home-subbar-inner {min-width:0;overflow:hidden}
.oev-root .oev-home-links {
    display: flex !important;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: flex-start;
}
.oev-root .oev-home-links > a {flex:0 0 auto;}
.oev-root .oev-home-links > .oev-home-event-link {margin-left:0;}
@media(max-width:760px){
    .oev-root .oev-home-links {display:flex!important;gap:22px;}
    .oev-root .oev-home-links > .oev-home-event-link {display:inline-flex!important;}
    .oev-root .oev-home-mobile-nav {display:none!important;}
}

/* Retain original homepage CSS ancestor classes without inheriting a full-page height. */
.oev-root .oev-home-source-context {width:100%;min-height:0!important;}

/* Width contract: same centered guides as the homepage logo + CTA.
   Apply to Events hero and cards, not to the full-bleed color sections.
   Specificity and !important protect against late-loaded homepage CSS. */
body #wrap.oev-root .oev-hero > .oev-container,
body #wrap.oev-root .oev-main.oev-container,
body #wrap.oev-root .oev-home-top > .oev-container,
body #wrap.oev-root .oev-home-subbar > .oev-container,
body #wrap.oev-root .oev-home-footer > .oev-container {
    box-sizing: border-box !important;
    width: min(var(--oev-home-inner-width, 1320px), calc(100% - 36px)) !important;
    max-width: var(--oev-home-inner-width, 1320px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}
/* The horizontal scroll lives INSIDE the same guides, rather than
   stretching the list itself to the left edge of the viewport. */
body #wrap.oev-root .oev-original-home-header .oev-live-home-nav-scroll,
body #wrap.oev-root .oev-home-source-context .oev-live-home-nav-scroll,
body #wrap.oev-root .oev-home-header .oev-home-links {
    box-sizing: border-box !important;
    width: min(var(--oev-home-inner-width, 1320px), calc(100vw - 36px)) !important;
    max-width: var(--oev-home-inner-width, 1320px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}
body #wrap.oev-root .oev-main.oev-container {
    padding-top: 42px !important;
    padding-bottom: 80px !important;
}
@media(max-width:540px) {
    body #wrap.oev-root .oev-hero > .oev-container,
    body #wrap.oev-root .oev-main.oev-container,
    body #wrap.oev-root .oev-home-top > .oev-container,
    body #wrap.oev-root .oev-home-subbar > .oev-container,
    body #wrap.oev-root .oev-home-footer > .oev-container {
        width: calc(100% - 34px) !important;
    }
    body #wrap.oev-root .oev-main.oev-container {
        padding-top: 25px !important;
        padding-bottom: 57px !important;
    }
    body #wrap.oev-root .oev-original-home-header .oev-live-home-nav-scroll,
    body #wrap.oev-root .oev-home-source-context .oev-live-home-nav-scroll {
        width: calc(100vw - 34px) !important;
    }
}

/* Event cover uses Odoo website.record_cover (cover_properties), not an image
   duplicated inside the template. Clicking its background in Website Edit
   modifies the underlying event image, as in native website_event. */
.oev-root .oev-detail-hero{padding:0!important}
.oev-root .oev-detail-cover{position:relative;min-height:290px;display:flex;flex-direction:column;justify-content:center;background-color:var(--oev-primary)!important}
.oev-root .oev-detail-cover .oev-detail-cover-content{position:relative;z-index:1;padding-top:48px!important;padding-bottom:48px!important}
.oev-root .oev-detail-cover h1,.oev-root .oev-detail-cover .oev-event-subtitle{color:#fff!important}
.oev-root .oev-preview-note{display:inline-block;max-width:100%;padding:7px 13px;margin-top:17px!important;border-radius:8px;background:#fff3e8;color:#95400f!important;font-size:12px;font-weight:700}
@media(max-width:540px){.oev-root .oev-detail-cover{min-height:240px}.oev-root .oev-detail-cover .oev-detail-cover-content{padding-top:32px!important;padding-bottom:32px!important}}

/* Ticket picker belongs to the viewport (like Bootstrap's real modal),
   not the event content/footer. These rules target this route only. */
body:has(#wrap.oev-root) #modal_ticket_registration,
body:has(#wrap.oev-root) #modal_attendees_registration {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 16px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 1060 !important;
    background: transparent !important;
}
body:has(#wrap.oev-root) #modal_ticket_registration.show,
body:has(#wrap.oev-root) #modal_attendees_registration.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
body:has(#wrap.oev-root) #modal_ticket_registration .modal-dialog,
body:has(#wrap.oev-root) #modal_attendees_registration .modal-dialog {
    display: flex !important;
    align-items: center !important;
    width: min(540px, 100%) !important;
    max-width: 540px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 32px);
    margin: auto !important;
    transform: none !important;
}
body:has(#wrap.oev-root) #modal_ticket_registration .modal-content,
body:has(#wrap.oev-root) #modal_attendees_registration .modal-content {
    width: 100% !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: white !important;
    border: 1px solid #e9e9e5 !important;
    border-radius: 16px !important;
    box-shadow: 0 22px 75px #0b0b0b40 !important;
    font: 400 14px/1.6 Montserrat,Arial,sans-serif !important;
}
body:has(#wrap.oev-root) .modal-backdrop.show {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1055 !important;
    opacity: .55 !important;
}
body:has(#wrap.oev-root) #modal_ticket_registration .btn-primary,
body:has(#wrap.oev-root) #modal_attendees_registration .btn-primary {
    background: var(--club-oima-primary,var(--o-color-1,#de6528)) !important;
    border-color: var(--club-oima-primary,var(--o-color-1,#de6528)) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
}
@media (max-width: 540px) {
    body:has(#wrap.oev-root) #modal_ticket_registration,
    body:has(#wrap.oev-root) #modal_attendees_registration {
        padding: 12px !important;
    }
    body:has(#wrap.oev-root) #modal_ticket_registration .modal-dialog,
    body:has(#wrap.oev-root) #modal_attendees_registration .modal-dialog {
        width: 100% !important;
        max-height: calc(100dvh - 24px);
    }
}
/* Keep the Workforce RSVP page proportions and card rhythm in Oima colors. */
.oev-root .oev-detail-layout {
    grid-template-columns: minmax(0,1.65fr) minmax(300px,1fr);
    gap: 28px;
}
.oev-root .oev-detail-layout .oev-detail-content {gap: 22px;}
.oev-root .oev-detail-layout .oev-card {border-radius: 18px;padding: 32px;}
.oev-root .oev-detail-layout .oev-card h2 {margin: 0 0 18px;line-height: 1.2;}
.oev-root .oev-detail-layout .oev-rsvp {top: 24px;}
.oev-root .oev-detail-layout .oev-form {margin-top: 24px;}
.oev-root .oev-detail-layout .oev-form label {font-weight: 800;}
.oev-root .oev-detail-layout .oev-button {min-height: 49px;border-radius: 11px;}
@media(max-width:900px) {
    .oev-root .oev-detail-layout {grid-template-columns: 1fr;gap: 20px;}
    .oev-root .oev-detail-layout .oev-rsvp {position: static;}
}
@media(max-width:540px) {
    .oev-root .oev-detail-layout .oev-card {padding: 24px 20px;border-radius: 15px;}
}

/* Event detail cover is rendered by website.record_cover, which inserts
   .o_record_cover_container between the hero and our content. The generic
   .oev-hero > .oev-container width rule therefore does NOT apply to it.
   Use exactly the same measured homepage guides as the event cards/header. */
body #wrap.oev-root .oev-detail-hero
.o_record_cover_container.oev-detail-cover > .oev-container.oev-detail-cover-content {
    box-sizing: border-box !important;
    width: min(var(--oev-home-inner-width, 1320px), calc(100% - 36px)) !important;
    max-width: var(--oev-home-inner-width, 1320px) !important;
    min-width: 0 !important;
    padding-inline: 0 !important;
    margin-inline: auto !important;
    text-align: left !important;
    align-items: flex-start !important;
}
body #wrap.oev-root .oev-detail-hero .oev-detail-cover h1 {
    max-width: 100%;
    font-size: clamp(34px, 3.8vw, 60px) !important;
    line-height: 1.15 !important;
    overflow-wrap: break-word;
    word-break: normal;
}
body #wrap.oev-root .oev-detail-hero .oev-detail-cover .oev-back,
body #wrap.oev-root .oev-detail-hero .oev-detail-cover .oev-eyebrow,
body #wrap.oev-root .oev-detail-hero .oev-detail-cover .oev-event-subtitle {
    max-width: 100%;
}
@media (max-width: 540px) {
    body #wrap.oev-root .oev-detail-hero
    .o_record_cover_container.oev-detail-cover > .oev-container.oev-detail-cover-content {
        width: calc(100% - 34px) !important;
    }
    body #wrap.oev-root .oev-detail-hero .oev-detail-cover h1 {
        font-size: clamp(30px, 8vw, 40px) !important;
    }
}
