/*
 * The public Events pages.
 *
 * Written in the same design language as the public survey pages
 * (web/assets/css/survey.css): a soft background, generous white cards with a
 * large radius and a soft blue shadow. The first version of these pages used
 * thin-bordered boxes that looked nothing like the rest of the site.
 *
 * The variables are redeclared rather than imported, because survey.css is only
 * loaded on survey pages and an Events page must not depend on it.
 */

:root {
  --ev-primary: #0d6efd;
  --ev-accent: #1c9fd9;
  --ev-bg-soft: #f4fbff;
  --ev-text: #333;
  --ev-muted: #6b7280;
  --ev-radius: 28px;
  --ev-radius-sm: 16px;
  --ev-shadow: 0 18px 40px rgba(13, 110, 253, 0.06);
  --ev-shadow-lift: 0 22px 48px rgba(13, 110, 253, 0.12);
}

.ev-page {
  background: var(--ev-bg-soft);
  padding: 40px 16px 72px;
}

.ev-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.ev-wrapper--wide { max-width: 1120px; }

/* Cards ------------------------------------------------------------------ */

.ev-card {
  background: #fff;
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow);
  padding: 36px 44px 40px;
  margin-bottom: 28px;
}

.ev-card--tight { padding: 26px 30px; border-radius: var(--ev-radius-sm); }

/* The listing --------------------------------------------------------- */

.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.ev-tile {
  background: #fff;
  border-radius: var(--ev-radius-sm);
  box-shadow: var(--ev-shadow);
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ev-tile:hover { transform: translateY(-3px); box-shadow: var(--ev-shadow-lift); }
.ev-tile h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.ev-tile h3 a { color: inherit; text-decoration: none; }
.ev-tile h3 a:hover { color: var(--ev-primary); }
.ev-tile p { color: var(--ev-muted); margin-bottom: 14px; }
.ev-tile .ev-more { margin-top: auto; font-weight: 600; color: var(--ev-primary); text-decoration: none; }

/* Type ------------------------------------------------------------------- */

.ev-kicker {
  color: var(--ev-accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ev-title { margin: 0 0 12px; line-height: 1.15; }
.ev-lead { font-size: 19px; color: #4a4a4a; margin-bottom: 0; }
.ev-muted { color: var(--ev-muted); }

/* The facts panel -------------------------------------------------------- */

.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.ev-fact-label {
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--ev-muted); margin-bottom: 4px;
}
.ev-fact-value { font-size: 16px; }

/* Programme -------------------------------------------------------------- */

.ev-programme { width: 100%; border-collapse: collapse; }
.ev-programme td { padding: 14px 0; border-bottom: 1px solid #eef4f8; vertical-align: top; }
.ev-programme tr:last-child td { border-bottom: 0; }
.ev-programme .ev-time { width: 150px; white-space: nowrap; color: var(--ev-accent); font-weight: 600; }

/* The pass --------------------------------------------------------------- */

.ev-ticket {
  background: #fff;
  border: 2px solid var(--ev-accent);
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow);
  padding: 34px 30px 30px;
  margin-bottom: 28px;
  text-align: center;
}

.ev-ticket svg { max-width: 100%; height: auto; }
.ev-qr { margin: 20px auto 14px; max-width: 280px; }

/* Forms ------------------------------------------------------------------ */

.ev-field { margin-bottom: 18px; }
.ev-label { display: block; font-weight: 600; margin-bottom: 6px; }
.ev-honeypot { position: absolute; left: -9999px; }

.ev-btn {
  display: inline-block;
  background: var(--ev-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
}
.ev-btn:hover { background: #0b5ed7; color: #fff; }
.ev-btn--quiet { background: #fff; color: var(--ev-primary); border: 1px solid #cfe2ff; }
.ev-btn--quiet:hover { background: #f2f8ff; color: var(--ev-primary); }

/* Small screens ---------------------------------------------------------- */

@media (max-width: 700px) {
  .ev-card { padding: 26px 22px 28px; border-radius: var(--ev-radius-sm); }
  .ev-programme .ev-time { width: 100px; font-size: 14px; }
}

/* The pass is the one thing a guest may want on paper. */
@media print {
  header, footer, nav, .ev-no-print, .chat-widget { display: none !important; }
  .ev-page { background: #fff; padding: 0; }
  .ev-ticket { border: 2px solid #000; box-shadow: none; page-break-inside: avoid; }
}
