/* TEAM's public event page (civicrm/event/info), with css/teamEventDisplay.css. TEAM's blocks come first
   (teamevents.registration.php, _teamevents_event_page_run); CiviCRM's own copies of the same things are
   hidden here. Kept from CiviCRM: registration closed/full notices, fees, map, contact, sharing, staff tools. */
:is(#bootstrap-theme, body) .team-ev-page { max-width: 40rem; margin: 0 auto; font-size: var(--wp--preset--font-size--medium, 1rem); line-height: 1.55; }
:is(#bootstrap-theme, body) .team-ev-page :is(.team-ev-about, .team-ev-instructions, .team-ev-register, .team-ev-addcal) { margin: 0 0 1.5rem; }
:is(#bootstrap-theme, body) .team-ev-page h2 {
  font-family: var(--wp--preset--font-family--francois-one), sans-serif; font-weight: 400; color: #a72123;
  font-size: 1.3rem; line-height: 1.2; margin: 0 0 0.5rem;
}

/* CiviCRM's duplicates of TEAM's blocks. */
:is(#bootstrap-theme, body) .crm-event-info-form-block :is(
  .crm-actionlinks-top, .crm-actionlinks-bottom, .event_summary-section, .event_description-section,
  .event_date_time-section, .event_address-section, .iCal_links-section
) { display: none; }

/* What's left of CiviCRM's page sits in the same column. */
:is(#bootstrap-theme, body) .crm-container .crm-event-info-form-block { max-width: 40rem; margin: 0 auto; }
:is(#bootstrap-theme, body) .crm-container .crm-event-info-form-block .crm-section .label {
  float: none; display: block; width: auto; text-align: left; font-weight: 600; padding: 0 0 0.25rem;
}
:is(#bootstrap-theme, body) .crm-container .crm-event-info-form-block .crm-section .content { margin-left: 0; }
:is(#bootstrap-theme, body) .crm-container > .messages,
:is(#bootstrap-theme, body) .crm-container .crm-event-info-form-block ~ .messages { max-width: 40rem; margin-left: auto; margin-right: auto; }
