/* Private events page. Shared look in site.css, fields and buttons in forms.css; the enquiry
   form's behaviour is in enquiry.js.
   Layout "Form first" (picked 2026-10-28): the form is on the first screen, with the title and the
   two spaces beside it (their "Ask about" buttons pick the space in the form right there). Below:
   the set menus on a printed card, and good to know. */

.events { padding-bottom: clamp(4rem, 7vw, 7rem); }
.ev-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(28rem, 36rem); gap: clamp(2.5rem, 5vw, 6rem); align-items: start; padding: clamp(2rem, 6vh, 4rem) var(--sc-gutter) 0; }
.ev-rooms { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); margin-top: clamp(3rem, 6vw, 5rem); container-type: inline-size; }
.ev-more { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; padding: clamp(5rem, 9vw, 8rem) var(--sc-gutter) 0; }
.events h1 { margin: 0; font-size: clamp(4.5rem, 9vw, 10rem); }
.ev-intro { margin: 1.25rem 0 0; max-width: 34ch; font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink-soft); }
.ev-label { margin: 0; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 600; color: var(--sc-ink-soft); }

/* A space: photo, name, the facts, one line, and a button that picks it in the form */
.room__photo { margin: 0; }
.room__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.room h2 { margin: 1.5rem 0 0; font-size: clamp(2.6rem, 4vw, 4.2rem); }
.room__facts { margin: 0.9rem 0 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--sc-accent); }
.room__text { margin: 0.9rem 0 0; max-width: 40ch; font-size: var(--sc-t-lg); line-height: 1.55; color: var(--sc-ink-soft); }
.room .btn { margin-top: 1.5rem; }
/* The compact version: a smaller photo beside the words */
.room--row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 2.5vw, 2.5rem); align-items: start; }
.room--row h2 { margin-top: 0; font-size: clamp(2.2rem, 3vw, 3.2rem); }
.room--row .room__text { font-size: 1.05rem; }
/* The column of spaces sits beside the form, so its width depends on the form, not the screen: at
   1100px it was 22rem wide and the compact space's words were squeezed into 11rem. So it asks its
   column (a container query): under 30rem, the photo goes above the words. */
@container (max-width: 30rem) {
  .room--row { grid-template-columns: minmax(0, 1fr); }
  .room--row .room__photo { margin-bottom: 1.25rem; }
  .room--row .room__photo img { aspect-ratio: 16 / 10; }
}

/* Set menus: a printed card, two menus side by side */
.set-menus { padding: clamp(2.5rem, 4vw, 4rem); background: var(--paper); color: var(--paper-ink); }
.set-menus h2 { margin: 0; font-size: clamp(2.6rem, 4vw, 4.2rem); }
.set-menus__two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); margin-top: 2rem; }
.set-menu h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; padding-bottom: 0.8rem; box-shadow: 0 1px 0 color-mix(in oklab, var(--paper-ink) 30%, transparent); font-size: 1.45rem; font-weight: 700; }
.set-menu h3 span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.set-menu h3 small { font-size: 0.9rem; font-weight: 400; color: var(--paper-soft); }
.set-menu ul { display: grid; gap: 0.45rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: 1.1rem; }
.set-menus__note { margin: 2rem 0 0; color: var(--paper-soft); }

/* Good to know: short facts from the brief, the vouchers and the phone */
.ev-good ul { display: grid; gap: 0.9rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.ev-good li { color: var(--sc-ink-soft); line-height: 1.55; }
.ev-good li b { color: var(--sc-ink); font-weight: 600; }
.ev-good a { color: var(--sc-ink); font-weight: 600; }

/* The enquiry panel */
.ev-panel { padding: clamp(2rem, 3.5vw, 3.5rem); background: var(--sc-surface); box-shadow: var(--sc-edge); scroll-margin-top: 1.5rem; }
.ev-panel h2 { margin: 0; font-size: clamp(2.6rem, 4vw, 4.2rem); }
#event-form { margin-top: 2rem; }
#event-form > .field + .details { margin-top: 1.75rem; }

/* ---- Tablet (1099px and narrower): the form goes below the spaces (beside them, it squeezed
   their text into a thin strip at 900px); the set menus and good to know stack too. ---- */
@media (max-width: 1099px) {
  .ev-top { grid-template-columns: minmax(0, 1fr); }
  .ev-panel { max-width: 44rem; }
  .ev-more { grid-template-columns: minmax(0, 1fr); }
  .ev-good { max-width: 40rem; }
}

/* ---- Phone (640px and narrower) ---- */
@media (max-width: 640px) {
  .events h1 { font-size: clamp(3rem, 18.5vw, 4.5rem); }   /* 72px from 390px up, as before; smaller on a folded phone (280px) so "everyone." fits */
  .room--row { grid-template-columns: 1fr; }
  .room--row .room__photo { margin-bottom: 1.25rem; }
  .room--row .room__photo img { aspect-ratio: 16 / 10; }
  .room .btn { width: 100%; }
  .ev-panel { padding: 1.75rem 1.25rem; margin-inline: calc(var(--sc-gutter) * -1 + 0.5rem); }
  .ev-panel h2 { font-size: clamp(2.4rem, 11vw, 3rem); }
  .set-menus { padding: 2rem 1.5rem; margin-inline: calc(var(--sc-gutter) * -1 + 0.5rem); }
  .set-menus__two { grid-template-columns: 1fr; gap: 2rem; }
}
