/* Seattle Insight – event hero (tickets in hero). Shared by every redesigned Single Event template.
   Layout containers (backgrounds, padding, card border/shadow) are set in Elementor; this file handles
   typography, detail-row alignment, ticket-card resets and responsive ordering via shared classes. */

/* ---------- Hero columns ---------- */
.elementor .e-con.si-hero-left { min-width: 0; }
.si-hero-left .elementor-widget-theme-post-title .elementor-heading-title { font-size: 44px; line-height: 1.25; }
.elementor .e-con.si-ticket-card { align-self: flex-start; position: sticky; top: 110px; }

/* No tickets on this event (e.g. free / drop-in): hide the empty card, let details use the full width */
.elementor .e-con.si-ticket-card:not(:has(.tribe-tickets__tickets-item, .tribe-tickets__rsvp-wrapper, .tribe-tickets__rsvp)) { display: none !important; }

/* Tickets ended / unavailable: show only the message, not the empty column header or cart notice */
.si-ticket-card form#tribe-tickets__tickets-form:not(:has(.tribe-tickets__tickets-item-quantity)) .tribe-ticket-header-row,
.si-ticket-card form#tribe-tickets__tickets-form:not(:has(.tribe-tickets__tickets-item-quantity)) .tribe-tickets__notice,
.si-ticket-card form#tribe-tickets__tickets-form:not(:has(.tribe-tickets__tickets-item-quantity)) .tribe-tickets__tickets-footer { display: none !important; }

/* ---------- Ticket card ---------- */
.si-ticket-card .si-ticket-title .elementor-heading-title { font-family: PlayfairDisplay, "Playfair Display", serif; font-size: 24px; font-weight: 600; line-height: 1.3; color: #000; margin: 0; }
.si-ticket-card .si-ticket-intro p { margin: 0; color: #343E40; font-size: 15px; line-height: 1.5; }
.si-ticket-card .tribe-tickets__tickets-wrapper,
.si-ticket-card form#tribe-tickets__tickets-form,
.si-ticket-card form#tribe-tickets { margin: 0 !important; padding: 0 !important; border: 0 !important; border-top: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; max-width: none !important; }
.si-ticket-card .si-ticket-note-heading { display: none; }
.si-ticket-card .si-ticket-note { text-align: center; font-size: 14px; color: #667073; }
.si-ticket-card .si-ticket-note p { margin: 0; }

/* ---------- Event detail rows (icon · label · value) ---------- */
.si-detail-row { column-gap: 10px !important; gap: 10px !important; align-items: flex-start !important; flex-wrap: nowrap !important; }
.si-detail-row .si-detail-icon { flex: 0 0 24px !important; width: 24px !important; margin: 0 !important; line-height: 0 !important; }
.si-detail-row .si-detail-label { flex: 0 0 auto !important; white-space: nowrap !important; margin: 0 !important; }
.si-detail-row .si-detail-value { flex: 1 1 auto !important; min-width: 0 !important; margin: 0 !important; }
.si-detail-row .elementor-widget-text-editor p { margin: 0 !important; line-height: 24px !important; }

/* ---------- Teachers in the hero: wider cards, consistent photo crop ---------- */
.si-teachers .uc_post_grid_style_one_wrap { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important; gap: 20px !important; }
.si-teachers .uc_post_grid_style_one_item { width: auto !important; max-width: 280px; }
.si-teachers .uc_post_grid_style_one_image,
.si-teachers .uc_post_image { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; }
.si-teachers .uc_post_image { background-size: cover !important; background-position: center 20% !important; }
.si-teachers .uc_post_image img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center 20% !important; }

/* ---------- Narrow screens: details → tickets → teachers ---------- */
@media (max-width: 1024px) {
	.elementor .e-con.si-ticket-card { position: static; top: auto; order: 2; }
	.elementor .e-con.si-hero-left { display: contents; }
	.elementor .si-hero-left .e-con.si-event-details { order: 1; }
	.elementor .si-hero-left .e-con.si-teachers { order: 3; }
}
@media (max-width: 767px) {
	.si-hero-left .elementor-widget-theme-post-title .elementor-heading-title { font-size: 32px; }
	.si-detail-row { flex-wrap: wrap !important; row-gap: 2px !important; }
	.si-detail-row .si-detail-value { flex: 1 0 calc(100% - 34px) !important; margin-left: 34px !important; }
	.si-teachers .uc_post_grid_style_one_wrap { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
	.si-teachers .uc_post_grid_style_one_item { max-width: none; }
}

/* Long emails / URLs in contact lists never cause sideways scroll */
.elementor-widget-icon-list .elementor-icon-list-text { overflow-wrap: anywhere; }
