/**
 * Single event page redesign — AI Singapore brand.
 * Hero band #1F1F1F, brand red #AE2514, dark-navy body text.
 * Two-column layout with a sticky registration/details sidebar + register modal.
 */
.oe-single-event {
	--oe-navy: #0b1f3a;
	--oe-red: #ae2514;
	--oe-red-dark: #8f1e10;
	--oe-hero: #1f1f1f;
	--oe-border: #e3e8ef;
	--oe-muted: #5a6a82;
	--oe-bg-soft: #f7f9fc;
	color: var(--oe-navy);
}

/* Full-bleed hero, content constrained to the theme content width. */
.oe-single-event { width: 100%; max-width: 100%; margin: 0; padding: 0; box-sizing: border-box; }
.oe-single-event .oe-event__hero { margin: 0; box-sizing: border-box; }

/* Layout: content + sticky sidebar (constrained + centred) */
.oe-event__layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 2.5rem; align-items: start; max-width: var(--global-content-width, 1140px); margin: 2rem auto; padding: 0 1.25rem; box-sizing: border-box; }
/* The grid ITEM must be the sticky element (with align-self:start so it doesn't
   stretch to the row height) — a sticky child of a shrink-to-fit parent can't move. */
.oe-single-event .oe-event__aside { position: sticky; top: 1.5rem; align-self: start; }
.oe-aside__sticky { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 900px) { .oe-event__layout { grid-template-columns: 1fr; } .oe-single-event .oe-event__aside { position: static; } }

/* Sections + red-underline headings */
.oe-sec { margin-bottom: 2.25rem; }
.oe-sec__title { font-size: 1.6rem; font-weight: 800; margin: 0 0 1rem; display: inline-block; }
.oe-sec__title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--oe-red); border-radius: 3px; margin-top: .4rem; }
.oe-event__body { font-size: 1.02rem; line-height: 1.75; }
.oe-muted { color: var(--oe-muted); }

/* Agenda timeline */
.oe-timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--oe-border); }
.oe-timeline__item { position: relative; padding: 0 0 1.5rem 1.25rem; }
.oe-timeline__item::before { content: ""; position: absolute; left: -1.85rem; top: .2rem; width: 12px; height: 12px; border-radius: 50%; background: var(--oe-red); box-shadow: 0 0 0 3px #fff; }
.oe-timeline__time { display: block; color: var(--oe-red); font-weight: 700; font-size: .85rem; }
.oe-timeline__title { display: block; font-weight: 700; font-size: 1.05rem; margin: .1rem 0; }
.oe-timeline__desc { display: block; color: var(--oe-muted); }

/* Who's coming */
.oe-tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--oe-border); margin-bottom: 1rem; }
/* Reset theme <button> styling (hover blue box / padding) — override with !important. */
.oe-tabs .oe-tab { background: transparent !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; box-shadow: none !important; padding: .5rem 0 !important; margin: 0 0 -1px 0 !important; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--oe-muted); }
.oe-tabs .oe-tab:hover, .oe-tabs .oe-tab:focus, .oe-tabs .oe-tab:active { background: transparent !important; color: var(--oe-red) !important; box-shadow: none !important; outline: none !important; }
.oe-tabs .oe-tab.is-active { color: var(--oe-red) !important; border-bottom-color: var(--oe-red) !important; }
.oe-attendees { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
@media (max-width: 560px) { .oe-attendees { grid-template-columns: 1fr; } }
.oe-attendee { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--oe-border); border-radius: 12px; padding: .6rem .8rem; }
.oe-attendee__name { font-weight: 600; }

/* Avatars */
.oe-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 700; font-size: .85rem; flex: 0 0 40px; }
.oe-avatar--sm { width: 30px; height: 30px; font-size: .72rem; flex-basis: 30px; border: 2px solid #fff; }
.oe-avatars { display: inline-flex; }
.oe-avatars .oe-avatar--sm + .oe-avatar--sm { margin-left: -10px; }

/* Registration card */
.oe-regcard { background: #fff; border: 1px solid var(--oe-border); border-top: 4px solid var(--oe-red); border-radius: 14px; padding: 1.25rem; box-shadow: 0 6px 20px rgba(11,31,58,.06); }
.oe-regcard__top { display: flex; align-items: center; justify-content: space-between; }
.oe-regcard__price { font-size: 1.5rem; font-weight: 800; }
.oe-regcard__spaces { color: var(--oe-muted); font-size: .9rem; margin: .5rem 0 .4rem; }
.oe-regcard__cta { width: 100%; margin-top: .5rem; text-align: center; }
.oe-going-row { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.oe-going-row__count { color: var(--oe-muted); font-size: .9rem; }
.oe-pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.oe-pill--going, .oe-pill--avail { background: #e9f7ef; color: #1e7e46; }
.oe-pill--pending { background: #fff4e5; color: #b26a00; }
.oe-pill--waitlist { background: #eef1f6; color: #55617a; }
.oe-pill--maybe { background: #f3ecfb; color: #6b3fa0; }
/* Registration status note (pending approval / waitlist / activation / payment) */
.oe-regcard__note { margin: .6rem 0 0; font-size: .88rem; line-height: 1.45; color: var(--oe-muted); }
.oe-regcard__note--pending { background: #fff8ef; border: 1px solid #f4d9ad; color: #8a5200; padding: .6rem .75rem; border-radius: 10px; }

/* Progress bar */
.oe-progress { height: 8px; background: #eef1f6; border-radius: 999px; overflow: hidden; margin: .35rem 0; }
.oe-progress > span { display: block; height: 100%; background: var(--oe-red); }

/* Panels (Details / Hosted by) */
.oe-panel { background: #fff; border: 1px solid var(--oe-border); border-radius: 14px; padding: 1.25rem; }
.oe-panel__title { font-size: 1.2rem; font-weight: 800; margin: 0 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--oe-red); display: inline-block; }
.oe-panel__group { padding: .75rem 0; border-top: 1px solid var(--oe-border); display: flex; flex-direction: column; gap: .15rem; }
.oe-panel__group:first-of-type { border-top: 0; padding-top: 0; }
.oe-panel__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--oe-muted); font-weight: 700; }
.oe-panel__value { font-weight: 600; }
.oe-panel__muted { color: var(--oe-muted); font-size: .88rem; }
.oe-panel__link { color: var(--oe-red); font-weight: 600; text-decoration: none; }
.oe-panel__link:hover { text-decoration: underline; }
.oe-panel__avail { display: flex; align-items: center; gap: .6rem; margin-top: .2rem; }
.oe-hostcard__row { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.oe-share { background: #fff; border: 1px solid var(--oe-border); border-radius: 14px; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.oe-share__links { display: inline-flex; gap: .5rem; }
.oe-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--oe-border); color: var(--oe-navy); text-decoration: none; font-size: .95rem; }
.oe-share__btn:hover { border-color: var(--oe-red); color: var(--oe-red); }

/* Buttons (shared with forms) */
.oe-btn-primary, .oe-btn-secondary { appearance: none; border: 1px solid transparent; border-radius: 10px; padding: .8rem 1.4rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; font-size: .98rem; }
.oe-btn-primary { background: var(--oe-red); color: #fff; }
.oe-btn-primary:hover { background: var(--oe-red-dark, #8f1e10); }
.oe-btn-secondary { background: #fff; color: var(--oe-navy); border-color: var(--oe-border); }

/* Modal */
.oe-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow: auto; }
.oe-modal__backdrop { position: fixed; inset: 0; background: rgba(11,31,58,.55); }
.oe-modal__dialog { position: relative; background: transparent; width: 100%; max-width: 640px; z-index: 1; }
/* Perfect circle + centred glyph, hardened against theme button overrides
   (Kadence's min-width/padding/primary-bg turned this into an orange oval). */
.oe-modal__close {
	position: absolute; top: -2.5rem; right: 0;
	display: flex !important; align-items: center !important; justify-content: center !important;
	box-sizing: border-box !important;
	width: 2.4rem !important; height: 2.4rem !important;
	min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50% !important; aspect-ratio: 1 / 1;
	-webkit-appearance: none; appearance: none;
	background: #fff !important; color: var(--oe-navy) !important;
	font-size: 1.3rem; line-height: 1 !important; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
}
.oe-modal__close:hover { background: #f4f6f9 !important; }
.oe-modal__close:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }

/* Featured image + gallery in the sidebar (above the register card) */
.oe-media-side { background: #fff; border: 1px solid var(--oe-border); border-radius: 14px; overflow: hidden; }
.oe-media-side__cover { display: block; width: 100%; height: auto; }
.oe-media-side__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; padding: .5rem; }
.oe-media-side__gallery a { display: block; line-height: 0; }
.oe-media-side__thumb { display: block; width: 100%; height: 54px; object-fit: cover; border-radius: 6px; }

/* Clean, full-bleed hero band — no background image, no rounded corners. */
.oe-single-event .oe-event__hero { background: var(--oe-hero, #1f1f1f); color: #fff; border-radius: 0; overflow: hidden; }
.oe-single-event .oe-event__hero .oe-event__title,
.oe-single-event .oe-event__hero .oe-event__when,
.oe-single-event .oe-event__hero .oe-event__when time { color: #fff; }
.oe-single-event .oe-event__hero-inner { max-width: var(--global-content-width, 1140px); margin: 0 auto; padding: 2.75rem clamp(1.25rem, 4vw, 2.5rem); position: static; box-sizing: border-box; }

/* Image lightbox */
.oe-media-side__cover-link, .oe-media-side__gallery a { cursor: zoom-in; display: block; }
.oe-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; gap: 1rem; background: rgba(11,31,58,.92); padding: 4vh 4vw; box-sizing: border-box; }
.oe-lb__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; max-width: 100%; max-height: 100%; }
.oe-lb__img { max-width: 90vw; max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; }
.oe-lb__count { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 600; }
/* Perfect circles + centred glyphs, hardened against theme button overrides
   (Kadence adds min-width / padding / its own bg which turned these into ovals). */
.oe-lb__close, .oe-lb__nav {
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	aspect-ratio: 1 / 1;
	background: rgba(255,255,255,.15) !important;
	color: #fff !important;
	line-height: 1 !important;
	text-align: center;
	cursor: pointer;
	box-shadow: none !important;
}
.oe-lb__close:hover, .oe-lb__nav:hover { background: rgba(255,255,255,.32) !important; }
.oe-lb__close { position: fixed; top: 1.2rem; right: 1.4rem; width: 2.6rem !important; height: 2.6rem !important; font-size: 1.5rem; }
.oe-lb__nav { width: 3rem !important; height: 3rem !important; font-size: 1.7rem; }
@media (max-width: 700px) { .oe-lb__nav { position: fixed; top: 50%; transform: translateY(-50%); } .oe-lb__prev { left: .5rem; } .oe-lb__next { right: .5rem; } }

/* Inline RSVP toggle on the event page (for attendees marked Maybe) */
.oe-rsvp-toggle { margin: .5rem 0 0; }
.oe-rsvp-toggle__row { display: flex; border: 1px solid var(--oe-border); border-radius: 999px; overflow: hidden; }
.oe-rsvp-toggle__btn {
	flex: 1 1 0; appearance: none; -webkit-appearance: none; cursor: pointer;
	border: 0; border-right: 1px solid var(--oe-border); background: #fff; color: var(--oe-navy);
	font: inherit; font-weight: 700; font-size: .9rem; padding: .6rem .5rem; line-height: 1.3; min-height: 44px;
}
.oe-rsvp-toggle__btn:last-child { border-right: 0; }
.oe-rsvp-toggle__btn:hover { background: #f4f6f9; }
.oe-rsvp-toggle__btn.is-active { background: var(--oe-navy); color: #fff; }
.oe-rsvp-toggle__btn--danger { color: var(--oe-red); }
.oe-rsvp-toggle__btn--danger:hover { background: #fdecea; }
