/* Event single (GatherPress): header, two-column body, sidebar cards.
   Layout follows the "Event Single" design. Fonts come from global.css. */

.wpn-event {
	--wpn-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
	--wpn-ink: #1d2327;
	--wpn-mute: #3c434a;
	--wpn-line: #dcdfe3;
	--wpn-blue: #1e5f99;
	color: var(--wpn-ink);
}

/* ---- header: breadcrumb, pills, title, date line ---- */
.wpn-event .wpn-back { margin: 0 0 24px; font-size: 0.95rem; font-weight: 500; }
.wpn-event .wpn-back a { text-decoration: none; color: var(--wpn-blue); }
.wpn-event .wpn-event-head > * + * { margin-top: 14px; }
.wpn-event .wpn-pill-row { gap: 8px; }
.wpn-event .wpn-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.wpn-event .wpn-pills a,
.wpn-event .wpn-tags a,
.wpn-ev-online .wpn-event .wpn-pill-row::after,
.wpn-ev-venue .wpn-event .wpn-pill-row::after {
	display: inline-block; padding: 3px 12px; border-radius: 999px;
	font-size: 0.8rem; font-weight: 700; line-height: 1.5; text-decoration: none;
}
/* Neutral fallback colours, kept at zero specificity so the wpn-cat-color-* rules
   (event-taxonomy.css) and the pseudo-pill rules below win. */
:where(.wpn-event .wpn-pills a, .wpn-event .wpn-tags a) { background: #f0f0f1; color: #1d2327; }
.wpn-ev-online .wpn-event .wpn-pill-row::after,
.wpn-ev-venue .wpn-event .wpn-pill-row::after { background: #eaf2fa; color: #143f66; }
/* "In person + online" style pill, from the venue and online-event terms. */
.wpn-ev-venue .wpn-event .wpn-pill-row::after { content: 'In person'; }
.wpn-ev-online .wpn-event .wpn-pill-row::after { content: 'Online'; }
.wpn-ev-venue.wpn-ev-online .wpn-event .wpn-pill-row::after { content: 'In person + online'; }
.wpn-event .wpn-event-title { margin: 0; font-family: var(--wpn-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.wpn-event .wpn-date-row { gap: 6px 20px; align-items: baseline; font-size: 1.15rem; color: var(--wpn-mute); }
.wpn-event .wpn-date-row p { margin: 0; }
.wpn-event .wpn-hosted { gap: 0.3em; }
.wpn-event .wpn-hosted .wp-block-post-author-name { margin: 0; }
.wpn-event .wpn-event-cols { margin-top: 32px; }

/* ---- left column ---- */
.wpn-event .wpn-event-main > * + * { margin-top: 32px; }
.wpn-event .wpn-event-image { margin: 0; }
.wpn-event .wpn-event-image img { display: block; width: 100%; height: auto; border-radius: 16px; }
.wpn-event .wpn-h2,
.wpn-event .wp-block-gatherpress-rsvp-response::before {
	margin: 0 0 14px; font-family: var(--wpn-display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--wpn-ink);
}
.wpn-event .wp-block-post-content { font-size: 1.05rem; line-height: 1.65; color: var(--wpn-mute); }
.wpn-event .wp-block-post-content > * + * { margin-top: 14px; }
.wpn-event .wpn-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Attendees: heading plus a card grid */
.wpn-event .wp-block-gatherpress-rsvp-response::before { content: 'Attendees'; display: block; }
.wpn-event .wp-block-gatherpress-rsvp-response .gatherpress--rsvp-responses {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 14px; justify-content: stretch;
}
.wpn-event .gatherpress--rsvp-responses > div > .wp-block-group {
	align-items: center; padding: 16px 10px; background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; text-align: center;
}
.wpn-event .gatherpress--rsvp-responses .wp-block-avatar img { width: 64px; height: 64px; border-radius: 50%; }
.wpn-event .gatherpress--rsvp-responses .wp-block-comment-author-name,
.wpn-event .gatherpress--rsvp-responses .wp-block-comment-author-name a { font-size: 0.95rem; font-weight: 600; color: var(--wpn-ink); text-decoration: none; }
.wpn-event .wp-block-gatherpress-rsvp-response .wp-block-gatherpress-dropdown__trigger { font-weight: 600; }

/* Organizer card */
.wpn-event .wpn-organizer-card { display: flex; align-items: center; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--wpn-line); border-radius: 14px; }
.wpn-event .wpn-organizer-card .wp-block-post-author__avatar { margin: 0; }
.wpn-event .wpn-organizer-card .wp-block-post-author__avatar img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.wpn-event .wpn-organizer-card .wp-block-post-author__content { margin: 0; }
.wpn-event .wpn-organizer-card .wp-block-post-author__byline { margin: 0; font-size: 0.95rem; color: #50575e; }
.wpn-event .wpn-organizer-card .wp-block-post-author__name { margin: 0; font-size: 1.1rem; font-weight: 700; }

/* ---- sidebar cards ---- */
.wpn-event .wpn-event-side { display: flex; flex-direction: column; gap: 20px; }
.wpn-event .wpn-card { padding: 24px; background: #fff; border: 1px solid var(--wpn-line); border-radius: 16px; }
.wpn-event .wpn-card:not(:has(*)) { display: none; }
.wpn-event .wpn-card > * + * { margin-top: 16px; }
.wpn-event .wpn-rsvp-card .wp-block-gatherpress-event-date { font-size: 1.05rem; font-weight: 700; color: var(--wpn-ink); }
.wpn-event .wpn-rsvp-card .wp-block-gatherpress-add-to-calendar:not(:empty) { padding-bottom: 16px; border-bottom: 1px solid #e3e6ea; }
.wpn-event .wpn-count { font-size: 1.05rem; font-weight: 700; }
.wpn-event .wpn-rsvp-card .wp-block-gatherpress-rsvp .wp-block-button__link { min-height: 52px; font-weight: 700; font-size: 1.05rem; border-radius: 8px; }
.wpn-event .wpn-online-card .wp-block-gatherpress-online-event { font-weight: 600; }
.wpn-event .wpn-venue-card .wp-block-post-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.wpn-event .wpn-venue-card address { font-style: normal; color: var(--wpn-mute); }
.wpn-event .wpn-venue-card .wp-block-gatherpress-venue-map { margin-top: 14px; border-radius: 12px; overflow: hidden; }

/* The sidebar draws the date, calendar link, RSVP, online link and venue, so hide the
   copies that older events still carry inside their post content. */
.wpn-event .wp-block-post-content > :is(.wp-block-gatherpress-event-date, .wp-block-gatherpress-add-to-calendar, .wp-block-gatherpress-venue, .wp-block-gatherpress-online-event, .wp-block-gatherpress-rsvp) { display: none; }

/* Office Hours: guests are RSVP'd automatically when they request a slot, so no RSVP button. */
.wpn-office-hours .wpn-event .wpn-rsvp-card .wp-block-gatherpress-rsvp { display: none; }

@media (max-width: 781px) {
	.wpn-event .wpn-event-cols { margin-top: 24px; }
}

/* Space between the featured image and the About heading */
.wpn-event .wpn-event-main > .wpn-event-image { margin-bottom: 40px; }
.wpn-event .wpn-event-main > .wpn-h2 { margin-top: 0; }
