/* Events list (/events) and event pages (/events/<slug>). Builds on styles.css. */

/* ---------- Events list ---------- */
.ev-intro .t-statement { margin-top: .75rem; max-width: 16ch; }
.ev-intro .lede { margin-top: 1rem; max-width: 38rem; }
.ev-intro-grid { display: grid; gap: 2.5rem; align-items: center; }
.ev-intro-photo { display: none; width: 100%; height: auto; aspect-ratio: 1672 / 941; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ev-section { padding-top: 0; }
.ev-section-title { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); font-weight: 600; margin-bottom: 1.25rem; }
.ev-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.ev-head h2 { font-family: var(--display); font-weight: 340; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.01em; }
.ev-count { padding: .125rem .625rem; border-radius: 999px; background: var(--soft-blue); color: var(--deep); font-weight: 600; font-size: .875rem; }

/* Banner frame: the whole banner is always visible (never cropped). A soft blurred copy fills any space around it. */
.ev-media, .ev-banner { position: relative; overflow: hidden; background: var(--soft-blue); isolation: isolate; }
.ev-media-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(28px) saturate(1.1); opacity: .55; z-index: -1; }
.ev-media-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ev-media { aspect-ratio: 16 / 9; }
.ev-media--plain { display: grid; place-items: center; background: linear-gradient(135deg, var(--soft-blue), var(--warm)); }
.ev-media--plain .ev-date { width: 5.5rem; height: 5.5rem; font-size: 2rem; }

/* Cards */
.ev-grid { display: grid; gap: 1.25rem; }
.ev-grid--2 { margin-top: 1.25rem; }
.ev-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ev-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgb(39 50 59 / .05), 0 24px 48px -24px rgb(39 50 59 / .3); }
.ev-card:focus-within { outline: 2px solid var(--deep); outline-offset: 3px; }
.ev-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.375rem 1.5rem 1.5rem; }
.ev-meta { font-size: .9375rem; line-height: 1.5; color: #4a4a4a; font-weight: 500; }
.ev-meta b { color: var(--ink); font-weight: 600; }
.ev-title { margin-top: .5rem; font-family: var(--display); font-weight: 360; font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.15; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.ev-title a::after { content: ""; position: absolute; inset: 0; }   /* whole card is the link */
.ev-title a:focus-visible { outline: none; }
.ev-summary { margin-top: .5rem; font-size: 1.0625rem; line-height: 1.55; color: #3a3a3a; text-wrap: pretty; max-width: 38rem; }
.ev-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .875rem; }
.ev-tag { padding: .3125rem .8125rem; border-radius: 999px; font-size: .875rem; font-weight: 600; }
.ev-tag--blush { background: #f4e4db; color: #7a3f2c; }
.ev-tag--mist { background: #e1eaf1; color: #34536b; }
.ev-tag--sand { background: #f2e8d4; color: #6b4f1f; }
.ev-tag--sage { background: #e2ebe3; color: #3f5f48; }
.ev-tag--ink { background: #e4e6e8; color: #27323b; }
.ev-tag--plain { background: var(--soft-blue); color: var(--deep); }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; margin-top: auto; padding-top: 1.25rem; }
.ev-foot .btn, .ev-more-link { position: relative; z-index: 1; }   /* above the whole-card link */
.ev-price { font-family: var(--display); font-size: 1.375rem; color: var(--ink); }
.ev-price small { margin-left: .3rem; font-family: var(--sans); font-size: .8125rem; color: #5f5f5f; }
.ev-past-label { font-size: .875rem; color: var(--ink-soft); }
.ev-more-link { font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
.ev-more { display: flex; justify-content: center; margin-top: 2rem; }
.js .ev-card[data-more] { display: none; }

/* Status labels */
.ev-status { display: inline-block; margin-bottom: .75rem; padding: .3125rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.ev-status--almost { background: #fff4dc; color: #7a5410; }
.ev-status--full { background: var(--deep); color: #fff; }
.ev-status--open { background: #e3efe5; color: #2f5b3a; }
.ev-status--now { background: var(--warm); color: var(--deep); }

.ev-empty { padding: clamp(1.75rem, 3.5vw, 3rem); border-radius: var(--r-lg); background: var(--soft-blue); }
.ev-empty .panel-empty { margin: 0; padding: 0; }
.ev-empty .soft { margin-top: .75rem; max-width: 34rem; color: #4d4d4d; }
.ev-empty a { color: var(--deep); text-decoration: underline; text-underline-offset: .25em; }

@media (min-width: 48rem) {
  .ev-grid--2, .ev-grid--past { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-card.is-featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .ev-card.is-featured .ev-media { aspect-ratio: auto; min-height: 100%; }
  .ev-card.is-featured .ev-body { padding: 2rem; justify-content: center; }
  .ev-card.is-featured .ev-title { font-size: clamp(1.75rem, 2.6vw, 2.125rem); }
}
@media (min-width: 64rem) {
  .ev-intro-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; }
  .ev-intro-photo { display: block; }
  .ev-grid--past { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Phones: past events become compact rows (small banner, date, title). */
@media (max-width: 39.99rem) {
  .ev-grid--past { gap: .75rem; }
  .ev-grid--past .ev-card { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; border-radius: var(--r-md); }
  .ev-grid--past .ev-media { height: 100%; aspect-ratio: auto; min-height: 4.75rem; }
  .ev-grid--past .ev-body { padding: .75rem 1rem; }
  .ev-grid--past .ev-meta { font-size: .8125rem; }
  .ev-grid--past .ev-title { margin-top: .25rem; font-size: 1.125rem; }
  .ev-grid--past .ev-summary, .ev-grid--past .ev-tags, .ev-grid--past .ev-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-card, .ev-card:hover { transition: none; transform: none; }
}

/* Event page */
.ev-back { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); }
.ev-back:hover { color: var(--ink); }
.ev-back svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 1rem; align-items: start; }
.ev-banner { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ev-banner .ev-media-img { height: auto; max-height: 78vh; }
.ev-banner.ev-media--plain { aspect-ratio: 16 / 9; }
.ev-tags--top { margin-top: 0; }
.ev-h1 { margin-top: 1rem; font-family: var(--display); font-weight: 330; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.022em; text-wrap: balance; }
.ev-info .svc-lead { margin-top: .875rem; }
.ev-facts { display: grid; gap: .875rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.ev-facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; }
.ev-facts dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-top: .2rem; }
.ev-facts dd { margin: 0; color: var(--ink); }
.ev-facts dd .soft { font-size: .9375rem; }
.ev-localtime { display: block; margin-top: .125rem; font-size: .875rem; color: var(--steel); }
.ev-info .ev-status { display: inline-block; margin: 1.25rem 0 0; }
.ev-cta { margin-top: 1.5rem; }
.ev-cta .btn:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.ev-closed { font-family: var(--display); font-style: italic; font-size: 1.25rem; }

.ev-detail-grid { display: grid; gap: 2rem; align-items: start; }
.ev-desc { max-width: 40rem; }
.ev-desc p, .ev-desc ul { margin-top: 1rem; color: #3f3f3f; font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.ev-desc .ev-section-title + p { margin-top: 0; }
.ev-desc ul { padding-left: 1.25rem; list-style: disc; }
.ev-desc li + li { margin-top: .375rem; }
.ev-register { scroll-margin-top: calc(var(--header-h) + 1rem); }
.ev-form-title { font-family: var(--display); font-weight: 340; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; }
.ev-form-lede { margin: .625rem 0 1.5rem; }
.ev-register .link { margin-top: 1rem; }
.contact-form input[type="tel"] { width: 100%; box-sizing: border-box; height: 3.25rem; padding: 0 1rem; border-radius: .875rem; border: 1.5px solid var(--muted-blue); background: var(--surface); font: inherit; color: var(--ink); transition: border-color .2s var(--ease); }
.contact-form .field.has-error input[type="tel"] { border: 2px solid #a23b2a; }

@media (min-width: 64rem) {
  .ev-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .ev-detail-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
  .ev-detail-grid.is-single { grid-template-columns: minmax(0, 1fr); }
}
/* Event page layout: left = banner + description, right = details + form.
   On phones the columns dissolve so the order is banner, details, description, form. */
.ev-layout { display: flex; flex-direction: column; gap: clamp(1.5rem, 4vw, 2.5rem); margin-top: 1rem; }
.ev-col { display: contents; }
.ev-col--main .ev-banner { order: 1; }
.ev-info { order: 2; }
.ev-col--main .ev-desc { order: 3; }
.ev-hosts { order: 4; }
.ev-register { order: 5; }
@media (min-width: 64rem) {
  .ev-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: start; }
  .ev-col { display: flex; flex-direction: column; gap: 2.5rem; }
  .ev-cta--jump { display: none; }   /* the form sits right below on wide screens */
}

/* Hosts on the event page: a quiet list after the description */
.ev-hosts { display: grid; gap: 1.125rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.ev-host { display: grid; grid-template-columns: 7.5rem auto 1fr; align-items: center; gap: .875rem; }
.ev-host-role { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.ev-host-photo { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; background: var(--soft-blue); }
.ev-host-photo--initials { display: grid; place-items: center; color: var(--deep); font-weight: 600; font-size: .875rem; }
.ev-host-text { display: flex; flex-direction: column; min-width: 0; }
.ev-host-name { font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.ev-host-title { font-size: .9375rem; color: var(--ink-soft); }
@media (max-width: 39.99rem) { .ev-host { grid-template-columns: auto 1fr; } .ev-host-role { grid-column: 1 / -1; margin-bottom: -.5rem; } }

/* Share: a quiet text link next to Register, never bigger than it */
.ev-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; }
.ev-actions .ev-cta { margin-top: 0; }
.ev-share { display: flex; align-items: center; gap: .5rem; }
.ev-share-btn { display: inline-flex; align-items: center; gap: .4375rem; min-height: 2.75rem; padding: 0 .25rem; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; text-underline-offset: .3em; }
.ev-share-btn:hover { color: var(--ink); text-decoration: underline; }
.ev-share-btn:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; border-radius: .375rem; }
.ev-share-btn svg { width: 1.0625rem; height: 1.0625rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ev-share-status { font-size: .875rem; color: var(--steel); }

/* Date line with icons (cards, Services next session) */
.ev-meta { display: grid; gap: .3125rem; margin: 0; padding: 0; list-style: none; }
.ev-meta li { display: flex; align-items: center; gap: .5rem; }
.ev-meta-ico { display: inline-flex; gap: .25rem; flex: none; color: var(--steel); }
.ev-ico { width: 1.0625rem; height: 1.0625rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Date and format sit under the title (Oct 2026) */
.ev-card .ev-title + .ev-meta { margin-top: .625rem; }
.ev-grid--past .ev-title + .ev-meta { margin-top: .4375rem; }
