/* 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: the cover on the left with the description under it,
   and on the right the facts and straight away the card. With no image the square
   holds the drawn cover (DRW-1, docs/575 §2 reading 2), so there is no one-column
   page any more. */

.ev-layout { display: grid; gap: 2rem; margin-top: 2rem; }
.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; }
/* The drawn cover (DRW-1): its wrapper and its SVG fill the square edge to edge, on
   the square's own rounded corners; the utilities on the wrapper size it (the series
   page, which does not link this sheet, uses the same). */
.ev-cover > [data-drawn-cover] { align-self: stretch; }

@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; }
}
