/* Event body components (components/events/*.html): plain sections inside the event's reading column, under the
   shared title, facts and registration. Loaded with wabo-event.css on event pages. Everything is scoped to the
   event body; nothing here reaches the site header, footer, homepage bands or the registration form. */
.wabo-event .wabo-event__content > :is(.ev-text, .ev-agenda, .ev-image, .ev-notice, .ev-links) { margin: 0 0 clamp(32px, 4.5vw, 44px); }
.wabo-event .wabo-event__content > :is(.ev-text, .ev-agenda, .ev-image, .ev-notice, .ev-links):last-child { margin-bottom: 0; }
.wabo-event .wabo-event__content :is(.ev-text, .ev-agenda, .ev-links) > h2:first-child { margin-top: 0; }
.wabo-event .wabo-event__content :is(.ev-text, .ev-agenda, .ev-image, .ev-notice, .ev-links) > :last-child { margin-bottom: 0; }

/* Text with heading: optionally set off by a rule above */
.wabo-event .wabo-event__content .ev-text.layout-ruled { padding-top: clamp(24px, 3.5vw, 32px); border-top: 1px solid var(--we-line); }

/* Agenda: a full-width schedule; the time column stays on one line. Spacing is a closed choice (Layouts). */
.wabo-event .wabo-event__content .ev-agenda-scroll { margin: 0 0 1em; overflow-x: auto; }
.wabo-event .wabo-event__content .ev-agenda-table { width: 100%; max-width: none; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.wabo-event .wabo-event__content .ev-agenda-table :is(th, td) { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--we-line); text-align: left; vertical-align: top; }
.wabo-event .wabo-event__content .ev-agenda-table thead th {
	padding-block: 8px; border-bottom: 2px solid var(--we-ink); color: var(--we-ink);
	font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.wabo-event .wabo-event__content .ev-agenda-table tbody :is(td, th):first-child { width: 1%; padding-left: 0; color: var(--we-ink); font-weight: 600; white-space: nowrap; }
.wabo-event .wabo-event__content .ev-agenda-table thead th:first-child { padding-left: 0; }
.wabo-event .wabo-event__content .ev-agenda-table td[colspan] { background: var(--we-warm); padding-left: 14px; }
.wabo-event .wabo-event__content .ev-agenda.layout-compact .ev-agenda-table tbody :is(th, td) { padding-block: 5px; }
.wabo-event .wabo-event__content .ev-agenda.layout-roomy .ev-agenda-table tbody :is(th, td) { padding-block: 16px; }
.wabo-event .wabo-event__content .ev-agenda .ev-note { color: var(--we-muted); font-size: 15px; }

/* Image with caption */
.wabo-event .wabo-event__content .ev-figure { margin: 0; }
.wabo-event .wabo-event__content .ev-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.wabo-event .wabo-event__content .ev-figure figcaption { margin-top: 10px; color: var(--we-muted); font-size: 15px; line-height: 1.5; }
.wabo-event .wabo-event__content .ev-image.layout-narrow .ev-figure { max-width: 520px; margin-inline: auto; }

/* Notice: a quiet panel; Important uses WABO red for its edge and heading (text keeps full contrast) */
.wabo-event .wabo-event__content .ev-notice-box { padding: 18px 22px; border-left: 4px solid var(--we-muted); border-radius: 0 4px 4px 0; background: var(--we-warm); }
.wabo-event .wabo-event__content .ev-notice-box > :last-child { margin-bottom: 0; }
.wabo-event .wabo-event__content .ev-notice .ev-notice-title { margin: 0 0 .4em; font-size: 19px; }
.wabo-event .wabo-event__content .ev-notice.layout-important .ev-notice-box { border-left-color: var(--we-maroon); }
.wabo-event .wabo-event__content .ev-notice.layout-important .ev-notice-title { color: var(--we-maroon); }

/* Links and buttons: the same look as the page's Register button, wrapping on narrow screens. A Button added with
   Kindly Edit (<p class="cb-actions">) looks the same: the body's link colour would otherwise paint its words red on red. */
.wabo-event .wabo-event__content .ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.wabo-event .wabo-event__content :is(.ev-actions, .cb-actions) a.btn {
	display: inline-block; padding: 12px 24px; border: 1px solid var(--we-maroon); border-radius: 3px;
	background: var(--we-maroon); color: #fff;
	font-family: var(--we-body); font-size: 16px; font-weight: 600; line-height: 1.25; text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.wabo-event .wabo-event__content :is(.ev-actions, .cb-actions) a.btn:hover { background: var(--we-maroon-dark); border-color: var(--we-maroon-dark); color: #fff; }
.wabo-event .wabo-event__content :is(.ev-actions, .cb-actions) a.btn.btn-second { background: #fff; color: var(--we-maroon); }
.wabo-event .wabo-event__content :is(.ev-actions, .cb-actions) a.btn.btn-second:hover { background: var(--we-warm); color: var(--we-maroon-dark); }
.wabo-event .wabo-event__content :is(.ev-actions, .cb-actions) a.btn:focus-visible { outline: 2px solid var(--we-ink); outline-offset: 3px; }

@media (max-width: 560px) {
	.wabo-event .wabo-event__content .ev-agenda-table { font-size: 15px; }
	.wabo-event .wabo-event__content .ev-agenda-table :is(th, td) { padding-inline: 10px; }
	.wabo-event .wabo-event__content :is(.ev-actions, .cb-actions) a.btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.wabo-event .wabo-event__content :is(.ev-actions, .cb-actions) a.btn { transition: none; }
}
