/* The event page led by its cover — EV-2 (docs/486, docs/538 §2 *The page*).

   Linked inside the platform's `events/detail.html` and `events/occurrence_detail.html`
   `content` block, so it loads after `event-detail.css` and after every tenant sheet,
   and never reaches a composed page (which replaces that block). Every rule hangs on a
   name of its own (`ev-…`): nothing here is declared on the five outer names a tenant's
   stylesheet may hook on (`.event-page`, `.event-registration`, `#inscricao`,
   `#inscricao-titulo`, `.event-registration-facts`), and `event-detail.css` stays byte
   for byte, because the live customers' copies link it.

   A phone: the cover, the title and facts, the tickets card, the description — the
   order of the page. A desktop with an image: the cover on the left with the
   description under it, and on the right the facts and straight away the card. With no
   image: one column, no wider than a series date's was (48rem). */

.ev-layout { display: grid; gap: 2rem; margin-top: 2rem; }
/* No image: the breadcrumb, the layout, the enquiry section and the trial footer all
   held to the one column (the article's own children; `.event-page` is not touched). */
.ev-page--single > * { max-width: 48rem; margin-inline: auto; }
.ev-side { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.ev-about { min-width: 0; }
.ev-head .event-title { margin: 1rem 0 .75rem; }
.ev-head .event-host { margin-bottom: 1.5rem; }
.ev-guest { font-size: 1.125rem; opacity: .8; margin-bottom: .5rem; }
.ev-card { min-width: 0; }
/* A day's two hours, or a night's, never broken between them (round 2, R2-12). */
.ev-hours { white-space: nowrap; }
/* «Price» is a `dt`: set like the «When» and «Where» headings (`.event-facts h2`). */
.ev-head-price dt { font-size: .65rem; letter-spacing: .13em; }
.ev-card > [data-event-external-booking], .ev-card > .alert { margin-top: 0; }

/* The cover whole inside a square (docs/539 question 1, *framed*): the flyer at its own
   shape, centred, on the theme's dark `neutral` bands; nothing cut, and no focal point,
   which under `contain` would only make the bands unequal. */
.ev-cover { margin: 0; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--color-neutral); border-radius: var(--radius-box, 1rem); }
.ev-cover-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }

@media (min-width: 900px) {
  .ev-layout--cover {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "cover side" "about side";
    column-gap: clamp(2rem, 5vw, 5rem);
    row-gap: 3rem;
    align-items: start;
  }
  .ev-layout--cover > .ev-cover { grid-area: cover; }
  .ev-layout--cover > .ev-side { grid-area: side; }
  .ev-layout--cover > .ev-about { grid-area: about; }
}
