/* Single event pages: the "photo hero" layout (2026-09-16).
 * Loaded only on single ajde_events pages while cbco_evpage_on() is true; every
 * rule is scoped to body.cbco-evpage so the calendar lightbox elsewhere keeps
 * EventON's styling. Markup for .cbco-evh / .cbco-evd is printed by
 * cbco-events.php (§ Single event page redesign). */

/* --- remove EventON's page chrome --------------------------------------- */
body.cbco-evpage .evo_sin_page .evose_repeat_header,
body.cbco-evpage .evo_sin_page h1.evosin_event_title,
body.cbco-evpage .evo_sin_page .desc_trig_outter,
body.cbco-evpage .evo_sin_page .evo_card_row_end,
body.cbco-evpage .evo_sin_page .evcal_evdata_icons,
body.cbco-evpage .evo_sin_page .event_excerpt,
body.cbco-evpage .evo_sin_page .eventon_full_description .evo_h3,
body.cbco-evpage .evo_sin_page #event_ftimage,
body.cbco-evpage .evo_sin_page #event_addtocal,
body.cbco-evpage .evo_sin_page #event_evosocial,
body.cbco-evpage .evo_sin_page #event_time,
body.cbco-evpage .evo_sin_page #event_location,
body.cbco-evpage .evo_sin_page #event_gmap,
body.cbco-evpage .evo_sin_page #event_getdirection,
body.cbco-evpage .evo_sin_page #event_evoet,
body.cbco-evpage .evo_sin_page #event_learnmore,
body.cbco-evpage .evo_sin_page #event_organizer,
body.cbco-evpage .evo_sin_page .evocard_row:not(:has(#event_eventdetails)) { display: none !important; }

body.cbco-evpage .evo_page_body,
body.cbco-evpage .evo_page_content,
body.cbco-evpage .eventon_main_section,
body.cbco-evpage #evcal_list { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body.cbco-evpage .ajde_evcal_calendar.eventon_single_event { margin: 0 !important; padding: 0 !important; }
body.cbco-evpage .evo_sin_page .evcal_eventcard { display: block !important; padding: 0 !important; margin: 0 !important; background: none !important; }
body.cbco-evpage .evo_sin_page .evocard_row { display: block !important; margin: 0 !important; }
body.cbco-evpage .evo_sin_page .evocard_box { background: none !important; padding: 0 !important; border-radius: 0 !important; margin: 0 !important; }

/* --- hero ---------------------------------------------------------------- */
body.cbco-evpage .cbco-evh { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: #01207f; color: #fff; }
body.cbco-evpage .cbco-evh__bg { position: absolute; inset: 0; }
body.cbco-evpage .cbco-evh__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: blur(10px) brightness(.45) saturate(.9); transform: scale(1.08); }
body.cbco-evpage .cbco-evh__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,32,127,.55) 0%, rgba(1,15,82,.78) 100%); }
body.cbco-evpage .cbco-evh__in { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 60px 20px; display: flex; gap: 56px; align-items: center; }
body.cbco-evpage .cbco-evh__poster { flex: 0 0 260px; margin: 0; }
body.cbco-evpage .cbco-evh__poster img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
body.cbco-evpage .cbco-evh__body { flex: 1 1 auto; min-width: 0; }
body.cbco-evpage .cbco-evh__kicker { margin: 0 0 8px; font: 600 13px/18px 'Oswald', 'Arial Narrow', Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #fa7500; }
body.cbco-evpage h1.cbco-evh__title { margin: 0 0 6px; font: 600 60px/62px 'Oswald', 'Arial Narrow', Arial, sans-serif !important; letter-spacing: -2px; text-transform: uppercase; color: #fff; text-wrap: balance; }
body.cbco-evpage .cbco-evh__sub { margin: 0 0 14px; font: 300 24px/30px 'Oswald', 'Arial Narrow', Arial, sans-serif; letter-spacing: .5px; color: rgba(255,255,255,.85); }
body.cbco-evpage .cbco-evh__when { margin: 0 0 24px; font: 400 20px/26px 'Oswald', 'Arial Narrow', Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
body.cbco-evpage .cbco-evh__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* the site's pill buttons */
body.cbco-evpage .cbco-btn { display: inline-block; padding: 14px 30px; border: 2px solid #fff; border-radius: 200px; font: 600 14px/18px 'Oswald', 'Arial Narrow', Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s; }
body.cbco-evpage .cbco-btn--solid { background: #fa7500; border-color: #fa7500; color: #fff !important; }
body.cbco-evpage .cbco-btn--solid:hover, body.cbco-evpage .cbco-btn--solid:focus-visible { background: #fff; border-color: #fff; color: #01207f !important; }
body.cbco-evpage .cbco-btn--outline { background: transparent; color: #fff !important; }
body.cbco-evpage .cbco-btn--outline:hover, body.cbco-evpage .cbco-btn--outline:focus-visible { background: #fff; color: #01207f !important; }
body.cbco-evpage .cbco-btn:focus-visible { outline: 2px solid #fa7500; outline-offset: 3px; }

/* ended / cancelled notice sits between the hero and the body */
body.cbco-evpage .cbco-event-notice { margin: 32px auto 0; }

/* --- body: description + details sidebar --------------------------------- */
body.cbco-evpage .evo_sin_page #event_eventdetails {
	max-width: 1100px;
	margin: 0 auto !important;
	padding: 48px 20px 8px !important;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	align-items: start;
}
body.cbco-evpage .evo_sin_page .evo_metarow_details { padding: 0 !important; margin: 0 !important; }
body.cbco-evpage .evo_sin_page .evcal_evdata_cell { padding: 0 !important; margin: 0 !important; }
body.cbco-evpage .evo_sin_page .eventon_desc_in p { font: 300 19px/28px 'Oswald', 'Arial Narrow', Arial, sans-serif !important; letter-spacing: .5px; color: #3d3d3d !important; margin: 0 0 16px !important; padding: 0 !important; text-align: left !important; }
body.cbco-evpage .evo_sin_page .eventon_desc_in p:empty { display: none; }
body.cbco-evpage .evo_sin_page .eventon_desc_in p a:not(.wp-block-button__link) { color: #01207f; text-decoration: underline; text-underline-offset: 3px; }
body.cbco-evpage .evo_sin_page .eventon_desc_in p a:not(.wp-block-button__link):hover { color: #fa7500; }

body.cbco-evpage .cbco-evd { border-top: 3px solid #fa7500; padding-top: 6px; }
body.cbco-evpage .cbco-evd__row { padding: 16px 0; border-bottom: 1px solid #d5d5d5; }
body.cbco-evpage .cbco-evd__row:last-child { border-bottom: 0; }
body.cbco-evpage .cbco-evd h3 { margin: 0 0 4px; padding: 0; font: 600 12px/16px 'Oswald', 'Arial Narrow', Arial, sans-serif !important; letter-spacing: 2px; text-transform: uppercase; color: #01207f; }
body.cbco-evpage .cbco-evd p { margin: 0; padding: 0; font: 300 17px/25px 'Oswald', 'Arial Narrow', Arial, sans-serif; letter-spacing: .5px; color: #3d3d3d; }
body.cbco-evpage .cbco-evd p strong { font-weight: 600; color: #202124; }
body.cbco-evpage .cbco-evd a { color: #01207f; text-decoration: underline; text-underline-offset: 3px; }
body.cbco-evpage .cbco-evd a:hover { color: #fa7500; }
body.cbco-evpage .cbco-evd a:focus-visible { outline: 2px solid #fa7500; outline-offset: 3px; }
body.cbco-evpage .cbco-evd__dot { color: #999; }

body.cbco-evpage .cbco-related { margin-top: 56px !important; }

/* --- phone ---------------------------------------------------------------- */
@media (max-width: 900px) {
	body.cbco-evpage .cbco-evh { min-height: 0; }
	body.cbco-evpage .cbco-evh__in { flex-direction: column; align-items: stretch; gap: 24px; padding: 40px 20px; }
	body.cbco-evpage .cbco-evh__poster { flex-basis: auto; width: 100%; max-width: 240px; margin: 0 auto; }
	body.cbco-evpage .cbco-evh__body { text-align: center; }
	body.cbco-evpage .cbco-evh__cta { justify-content: center; }
	body.cbco-evpage h1.cbco-evh__title { font-size: 40px !important; line-height: 42px !important; letter-spacing: -1px; }
	body.cbco-evpage .cbco-evh__sub { font-size: 20px; line-height: 26px; }
	body.cbco-evpage .cbco-evh__when { font-size: 17px; line-height: 23px; }
	body.cbco-evpage .cbco-btn { padding: 13px 22px; }
	body.cbco-evpage .evo_sin_page #event_eventdetails { grid-template-columns: 1fr; gap: 28px; padding-top: 32px !important; }
	body.cbco-evpage .evo_sin_page .eventon_desc_in p { font-size: 18px !important; line-height: 26px !important; }
}
@media (prefers-reduced-motion: reduce) {
	body.cbco-evpage .cbco-btn { transition: none; }
}
