@import url("https://use.typekit.net/dfj4eiq.css");
@import url("https://fonts.googleapis.com/css2?family=Niramit:wght@400;500;600;700;800&display=swap");

:root {
  /* Fonts */
  --font-body: "sofia-pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Niramit", "sofia-pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --font-weight-regular: 400;
  --font-weight-bold: 700;

  /* Amplify Utah Brand Colors */
  --amplify-teal: #0092A0;
  --amplify-teal-dark: #007682;
  --amplify-teal-deep: #075D68;
  --amplify-teal-soft: #CDE8EB;

  --amplify-orange: #FF9B00;
  --amplify-orange-dark: #E88C00;
  --amplify-orange-soft: #FFF1D8;

  --amplify-purple: #B44B9B;
  --amplify-purple-dark: #963B80;
  --amplify-purple-soft: #F5E3F1;

  --amplify-blue: #46657C;
  --amplify-blue-dark: #334B5E;
  --amplify-blue-soft: #E5EDF2;

  --amplify-gray: #70838C;
  --amplify-text: rgb(88, 92, 95);
  --amplify-navy: #172433;
  --amplify-cream: #FFF8F3;
  --amplify-white: #FFFFFF;
  --amplify-black: #111111;

  /* Page Theme */
  --page-bg: var(--amplify-cream);
  --page-bg-secondary: #FFF3EA;

  --text-main: var(--amplify-navy);
  --text-body: var(--amplify-text);
  --text-muted: rgba(88, 92, 95, 0.72);
  --text-soft: rgba(88, 92, 95, 0.52);
  --text-inverse: #FFFFFF;

  /* Type Scale */
  --body-font-size: 18px;
  --body-line-height: 27px;
  --body-font-weight: 400;

  --button-font-size: 20px;
  --button-line-height: 30px;
  --button-font-weight: 700;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 44px;
  --text-5xl: 58px;

  --line-tight: 1.1;
  --line-sm: 1.25;
  --line-md: 1.5;
  --line-lg: 1.65;

  /* Surfaces */
  --surface-white: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --surface-glass-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 248, 243, 0.82);
  --surface-teal: var(--amplify-teal-soft);
  --surface-blue: var(--amplify-blue-soft);
  --surface-orange: var(--amplify-orange-soft);
  --surface-purple: var(--amplify-purple-soft);

  /* Cards */
  --card-bg: var(--surface-glass);
  --card-bg-strong: var(--surface-glass-strong);
  --card-border: rgba(70, 101, 124, 0.18);

  /* Borders */
  --border-light: rgba(70, 101, 124, 0.14);
  --border-medium: rgba(70, 101, 124, 0.22);
  --border-strong: rgba(70, 101, 124, 0.34);
  --border-white: rgba(255, 255, 255, 0.42);

  /* Inputs */
  --input-bg: rgba(255, 255, 255, 0.78);
  --input-bg-hover: rgba(255, 255, 255, 0.92);
  --input-bg-focus: #FFFFFF;
  --input-border: rgba(70, 101, 124, 0.18);
  --input-border-hover: rgba(0, 146, 160, 0.42);
  --input-placeholder: rgba(88, 92, 95, 0.5);
  --focus-ring: rgba(0, 146, 160, 0.18);

  /* Buttons */
  --button-bg: var(--amplify-blue);
  --button-bg-hover: var(--amplify-teal);
  --button-text: #FFFFFF;
  --button-radius: 14px;

  /* Status Colors */
  --success: #1F9D66;
  --success-bg: rgba(31, 157, 102, 0.1);
  --success-border: rgba(31, 157, 102, 0.24);

  --warning: #FF9B00;
  --warning-bg: rgba(255, 155, 0, 0.12);
  --warning-border: rgba(255, 155, 0, 0.28);

  --error: #B7352F;
  --error-bg: rgba(255, 69, 58, 0.09);
  --error-border: rgba(255, 69, 58, 0.24);

  --info: #0092A0;
  --info-bg: rgba(0, 146, 160, 0.1);
  --info-border: rgba(0, 146, 160, 0.24);

  /* Shadows */
  --shadow-xs: 0 2px 6px rgba(23, 36, 51, 0.06);
  --shadow-sm: 0 8px 22px rgba(23, 36, 51, 0.08);
  --shadow-md: 0 16px 38px rgba(23, 36, 51, 0.12);
  --shadow-lg: 0 28px 70px rgba(23, 36, 51, 0.14);
  --shadow-xl: 0 34px 90px rgba(23, 36, 51, 0.18);

  --shadow-teal: 0 18px 34px rgba(0, 146, 160, 0.26);
  --shadow-orange: 0 18px 34px rgba(255, 155, 0, 0.3);
  --shadow-blue: 0 14px 28px rgba(70, 101, 124, 0.28);

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Motion */
  --transition-fast: 0.16s ease;
  --transition-normal: 0.22s ease;
  --transition-slow: 0.35s ease;
}

/* Night theme controlled by your JS */
html.theme-night {
  --page-bg: #111C28;
  --page-bg-secondary: #173345;

  --text-main: #FFFFFF;
  --text-body: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.58);
  --text-soft: rgba(255, 255, 255, 0.42);
  --text-inverse: #111111;

  --surface-glass: rgba(18, 30, 42, 0.82);
  --surface-glass-strong: rgba(22, 38, 52, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.08);

  --card-bg: var(--surface-glass);
  --card-bg-strong: var(--surface-glass-strong);
  --card-border: rgba(205, 232, 235, 0.16);

  --border-light: rgba(255, 255, 255, 0.12);
  --border-medium: rgba(205, 232, 235, 0.18);
  --border-strong: rgba(205, 232, 235, 0.3);

  --input-bg: rgba(255, 255, 255, 0.1);
  --input-bg-hover: rgba(255, 255, 255, 0.14);
  --input-bg-focus: rgba(255, 255, 255, 0.17);
  --input-border: rgba(255, 255, 255, 0.14);
  --input-border-hover: rgba(205, 232, 235, 0.38);
  --input-placeholder: rgba(255, 255, 255, 0.48);
  --focus-ring: rgba(0, 146, 160, 0.3);

  --shadow-xs: 0 2px 6px rgba(0, 0, 0, 0.16);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.38);
  --shadow-xl: 0 38px 100px rgba(0, 0, 0, 0.48);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  font-weight: var(--body-font-weight);
  color: var(--text-body);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--amplify-blue);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--amplify-teal);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.035em;
}

p {
  margin: 0;
}

.text-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
  color: var(--text-body);
}

.text-muted {
  color: var(--text-muted);
}

.text-soft {
  color: var(--text-soft);
}

.text-button {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Buttons */
.btn,
.button,
.login-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--button-radius);
  font-family: var(--font-body);
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  font-weight: var(--button-font-weight);
  color: var(--button-text);
  background: var(--button-bg);
  box-shadow: var(--shadow-blue);
  cursor: pointer;
  transition:
    transform var(--transition-normal),
    background var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal);
}

.btn:hover,
.button:hover,
.login-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  color: var(--button-text);
  background: var(--button-bg-hover);
  box-shadow: var(--shadow-teal);
}

.btn:active,
.button:active,
.login-button:active,
.primary-button:active {
  transform: translateY(0) scale(0.985);
}

.btn-orange {
  color: #111111;
  background: var(--amplify-orange);
  box-shadow: var(--shadow-orange);
}

.btn-orange:hover {
  color: #111111;
  background: var(--amplify-orange-dark);
  box-shadow: var(--shadow-orange);
}

.btn-teal {
  color: #FFFFFF;
  background: var(--amplify-teal);
  box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
  color: #FFFFFF;
  background: var(--amplify-teal-dark);
}

.btn-purple {
  color: #FFFFFF;
  background: var(--amplify-purple);
}

.btn-purple:hover {
  color: #FFFFFF;
  background: var(--amplify-purple-dark);
}

.btn-ghost {
  color: var(--amplify-blue);
  background: transparent;
  border: 1px solid var(--border-medium);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--amplify-teal);
  background: var(--surface-soft);
  box-shadow: none;
}

.btn-small {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
}

.btn-full {
  width: 100%;
}

/* Inputs */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  color: var(--text-main);
  background: var(--input-bg);
  box-shadow: var(--shadow-xs);
  outline: none;
  transition:
    border-color var(--transition-normal),
    background var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
select {
  height: 50px;
  padding: 0 15px;
}

textarea {
  min-height: 120px;
  padding: 14px 15px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
  font-weight: 400;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--input-border-hover);
  background: var(--input-bg-hover);
}

input:focus,
textarea:focus,
select:focus {
  background: var(--input-bg-focus);
  border-color: rgba(0, 146, 160, 0.55);
  box-shadow: 0 0 0 4px var(--focus-ring), var(--shadow-xs);
}

input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

/* Labels */
.input-label,
label {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--amplify-blue);
}

html.theme-night .input-label,
html.theme-night label {
  color: rgba(255, 255, 255, 0.76);
}

/* Cards */
.card,
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(170%) blur(24px);
  -webkit-backdrop-filter: saturate(170%) blur(24px);
}

.card-strong {
  background: var(--card-bg-strong);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.card-flat {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

/* Alerts */
.alert,
.error-message,
.success-message,
.warning-message,
.info-message {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
}

.error-message {
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  color: var(--error);
}

.success-message {
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  color: var(--success);
}

.warning-message {
  border: 1px solid var(--warning-border);
  background: var(--warning-bg);
  color: #9B5B00;
}

.info-message {
  border: 1px solid var(--info-border);
  background: var(--info-bg);
  color: var(--info);
}

/* Pills / Badges */
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.badge-teal {
  color: var(--amplify-teal-dark);
  background: var(--amplify-teal-soft);
}

.badge-orange {
  color: #8A5100;
  background: var(--amplify-orange-soft);
}

.badge-purple {
  color: var(--amplify-purple);
  background: var(--amplify-purple-soft);
}

.badge-blue {
  color: var(--amplify-blue);
  background: var(--amplify-blue-soft);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--amplify-blue);
}

td {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--text-body);
}

tr:last-child td {
  border-bottom: none;
}

/* Layout Helpers */
.page-shell {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.page-section {
  padding: var(--space-12) 0;
}

.stack {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wrap {
  flex-wrap: wrap;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-5 {
  gap: var(--space-5);
}

.gap-6 {
  gap: var(--space-6);
}

.hidden {
  display: none !important;
}

.full-width {
  width: 100%;
}

.rounded {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.no-scroll {
  overflow: hidden;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Brand Background Utility */
.amplify-brand-bg {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 155, 0, 0.9) 0 8%, transparent 20%),
    radial-gradient(circle at 74% 58%, rgba(205, 232, 235, 1) 0 30%, transparent 58%),
    radial-gradient(circle at 15% 78%, rgba(0, 146, 160, 0.2) 0 20%, transparent 42%),
    radial-gradient(circle at 78% 86%, rgba(180, 75, 155, 0.22) 0 14%, transparent 34%),
    linear-gradient(135deg, #FFF8F3 0%, #FFF3EA 40%, #EAF7F8 72%, #CDE8EB 100%);
}

html.theme-night .amplify-brand-bg {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 155, 0, 0.72) 0 8%, transparent 22%),
    radial-gradient(circle at 72% 60%, rgba(0, 146, 160, 0.38) 0 30%, transparent 60%),
    radial-gradient(circle at 18% 76%, rgba(180, 75, 155, 0.3) 0 18%, transparent 42%),
    linear-gradient(135deg, #111C28 0%, #173345 46%, #075D68 100%);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(12px, -14px, 0);
  }
}

@keyframes softPulse {
  from {
    opacity: 0.72;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.animate-fade-up {
  animation: fadeUp 0.45s ease both;
}

.animate-float {
  animation: softFloat 16s ease-in-out infinite alternate;
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --body-font-size: 16px;
    --body-line-height: 24px;
    --button-font-size: 18px;
    --button-line-height: 27px;
  }

  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .page-section {
    padding: var(--space-8) 0;
  }

  .btn,
  .button,
  .login-button,
  .primary-button {
    min-height: 52px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="date"],
  input[type="time"],
  select {
    height: 50px;
    font-size: 16px;
    line-height: 24px;
  }

  textarea {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Logo day/night swap (used by the navbar include) */
.logo-night {
  display: none;
}

html.theme-night .logo-day {
  display: none;
}

html.theme-night .logo-night {
  display: inline-block;
}

/* =====================================================================
   AMPLIFY UTAH — PUBLIC EVENT PAGE
   /assets/styles/event-styles.css   (served via styles.php?page=event)

   Built on theme.css tokens. Raw values limited to #FFFFFF / #111111 on
   coloured surfaces and rgba() washes from brand RGB triplets. Hovers
   use --info-bg (never --surface-teal, which breaks night mode).
   ===================================================================== */

/* ---------------------------------------------------------------
   Shared public primitives
   --------------------------------------------------------------- */
.pub-body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text-body);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.pub-main,
.pub-footer { position: relative; z-index: 1; }

.pub-blob {
    position: fixed;
    z-index: 0;
    border-radius: var(--radius-pill);
    filter: blur(90px);
    pointer-events: none;
}

.pub-blob-1 { top: -190px; left: -150px;     width: 540px; height: 540px; background: rgba(0, 146, 160, 0.16); }
.pub-blob-2 { bottom: -230px; right: -170px; width: 560px; height: 560px; background: rgba(255, 155, 0, 0.11); }

html.theme-night .pub-blob-1 { background: rgba(0, 146, 160, 0.12); }
html.theme-night .pub-blob-2 { background: rgba(255, 155, 0, 0.08); }

.pub-protected,
.pub-protected img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.pub-shield { position: absolute; inset: 0; z-index: 2; background: transparent; }

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 54px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--button-radius);
    font-family: var(--font-body);
    font-size: var(--button-font-size);
    line-height: var(--button-line-height);
    font-weight: var(--button-font-weight);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-normal), background var(--transition-normal),
                box-shadow var(--transition-normal), border-color var(--transition-normal),
                color var(--transition-normal);
}

.pub-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.pub-btn i { font-size: 0.8em; }
.pub-btn-small { min-height: 44px; padding: 8px 18px; font-size: var(--text-md); line-height: 24px; }

.pub-btn-teal { color: #FFFFFF !important; background: var(--amplify-teal); box-shadow: var(--shadow-teal); }
.pub-btn-teal:hover { transform: translateY(-2px); background: var(--amplify-teal-dark); }

.pub-btn-orange { color: #111111 !important; background: var(--amplify-orange); box-shadow: var(--shadow-orange); }
.pub-btn-orange:hover { transform: translateY(-2px); background: var(--amplify-orange-dark); }

.pub-btn-quiet { color: var(--amplify-blue); background: transparent; border: 1px solid var(--border-medium); }
.pub-btn-quiet:hover { color: var(--amplify-teal); background: var(--info-bg); border-color: var(--info-border); transform: translateY(-2px); }
html.theme-night .pub-btn-quiet { color: var(--text-body); }
html.theme-night .pub-btn-quiet:hover { color: var(--amplify-teal-soft); }

/* Ghost button: outlined in daylight, translucent white at night */
.pub-btn-ghost {
    color: var(--amplify-blue) !important;
    background: transparent;
    border: 1px solid var(--border-medium);
}

.pub-btn-ghost:hover {
    color: var(--amplify-teal) !important;
    background: var(--info-bg);
    border-color: var(--info-border);
    transform: translateY(-2px);
}

html.theme-night .pub-btn-ghost {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.26);
}

html.theme-night .pub-btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.ev-head {
    padding: calc(76px + clamp(28px, 4vw, 48px)) clamp(16px, 4vw, 40px) clamp(20px, 3vw, 32px);
}

.ev-head-inner { max-width: 1240px; margin: 0 auto; }

.ev-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-muted);
}

.ev-crumbs a { color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.ev-crumbs a:hover { color: var(--amplify-teal); }
.ev-crumbs i { font-size: 9px; color: var(--text-soft); }
.ev-crumbs span { color: var(--text-main); }

.ev-date-flag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--amplify-teal-dark);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

html.theme-night .ev-date-flag { color: var(--amplify-teal-soft); }
.ev-date-flag i { font-size: 11px; }

.ev-h1 {
    margin: 0 0 var(--space-3);
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: var(--line-tight);
    color: var(--text-main);
}

.ev-place {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-5);
    font-size: var(--text-lg);
    color: var(--text-muted);
}

.ev-place i { color: var(--amplify-teal); font-size: 15px; }

/* ---- Key stats ---- */
.ev-keystats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin: 0 0 var(--space-6);
    padding: 0 0 var(--space-5);
    border-bottom: 1px solid var(--border-light);
}

.ev-keystat { display: flex; flex-direction: column; }

.ev-keystat dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--amplify-teal-dark);
    font-variant-numeric: tabular-nums;
}

html.theme-night .ev-keystat dd { color: var(--amplify-teal-soft); }

.ev-keystat dt {
    margin-top: 5px;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.ev-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.ev-share {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 54px;
    padding: 12px 20px;
    border: 1px solid var(--border-medium);
    border-radius: var(--button-radius);
    background: var(--card-bg);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast),
                border-color var(--transition-fast);
}

.ev-share:hover { color: var(--amplify-teal); background: var(--info-bg); border-color: var(--info-border); }
.ev-share:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.ev-share.is-done { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }

/* ---------------------------------------------------------------
   Shell
   --------------------------------------------------------------- */
.ev-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px);
}

/* ---- Details + map ---- */
.ev-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(16px, 2.5vw, 28px);
    margin-bottom: clamp(40px, 6vw, 72px);
}

.ev-facts-card,
.ev-map-card {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg-strong);
    backdrop-filter: saturate(170%) blur(24px);
    -webkit-backdrop-filter: saturate(170%) blur(24px);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ev-facts-card { padding: var(--space-6); }

.ev-section-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.ev-section-label i { color: var(--amplify-teal); font-size: 12px; }

.ev-facts { margin: 0; display: grid; gap: var(--space-3); }

.ev-fact {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: baseline;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light);
}

.ev-fact:last-child { border-bottom: none; padding-bottom: 0; }

.ev-fact dt {
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.ev-fact dd {
    margin: 0;
    font-size: var(--text-md);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-sm);
    color: var(--text-main);
    word-break: break-word;
}

.ev-fact dd a { color: var(--amplify-teal-dark); text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color var(--transition-fast); }
html.theme-night .ev-fact dd a { color: var(--amplify-teal-soft); }
.ev-fact dd a:hover { border-bottom-color: currentColor; }

.ev-coords { font-variant-numeric: tabular-nums; font-size: var(--text-sm) !important; color: var(--text-muted) !important; }

/* ---- Topics ---- */
.ev-topics { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border-light); }

.ev-topics-label {
    margin: 0 0 var(--space-3);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.ev-topic-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.ev-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 5px 13px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    background: var(--card-bg);
    color: var(--text-body);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-decoration: none;
    transition: color var(--transition-fast), background var(--transition-fast),
                border-color var(--transition-fast);
}

.ev-chip:hover { color: var(--amplify-teal); background: var(--info-bg); border-color: var(--info-border); }
.ev-chip:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.ev-chip-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 3px 6px;
    border-radius: var(--radius-pill);
    background: var(--info-bg);
    color: var(--amplify-teal-dark);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

html.theme-night .ev-chip-n { color: var(--amplify-teal-soft); }

/* ---- Map card ---- */
.ev-map-card { display: flex; flex-direction: column; min-height: 340px; }

.ev-map { flex: 1; min-height: 300px; background: var(--surface-soft); }
.ev-map .leaflet-container { font-family: var(--font-body); background: var(--surface-soft); }

.ev-map .leaflet-control-attribution {
    margin: 0 6px 6px 0 !important;
    padding: 2px 9px !important;
    border-radius: var(--radius-pill);
    background: var(--card-bg-strong) !important;
    color: var(--text-soft) !important;
    font-family: var(--font-body) !important;
    font-size: 9.5px !important;
    font-weight: var(--font-weight-bold);
}

.ev-map .leaflet-control-attribution a { color: var(--text-muted) !important; text-decoration: none !important; }

.ev-map .leaflet-bar,
.ev-map .leaflet-control-zoom {
    border: 1px solid var(--card-border) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm) !important;
    background: var(--card-bg-strong);
}

.ev-map .leaflet-control-zoom a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    line-height: 1 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: var(--card-bg-strong) !important;
    color: var(--text-body) !important;
    font-family: var(--font-body) !important;
    font-size: 17px !important;
    font-weight: var(--font-weight-bold);
    text-indent: 0 !important;
    text-decoration: none !important;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.ev-map .leaflet-control-zoom a + a { border-top: 1px solid var(--border-light) !important; }

.ev-map .leaflet-control-zoom a:hover {
    color: var(--amplify-teal) !important;
    background: var(--info-bg) !important;
}

.ev-map .leaflet-control-zoom a.leaflet-disabled {
    color: var(--text-soft) !important;
    background: var(--surface-soft) !important;
    opacity: 0.6;
}

.ev-map .leaflet-control-zoom a:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
}

.ev-map-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border-light);
    background: var(--surface-soft);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-muted);
}

.ev-map-foot i { color: var(--amplify-teal); font-size: 11px; }

.ev-map-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--amplify-teal-dark);
    text-decoration: none;
}

html.theme-night .ev-map-foot a { color: var(--amplify-teal-soft); }
.ev-map-foot a i { transition: transform var(--transition-fast); }
.ev-map-foot a:hover i { transform: translateX(3px); }

.ev-map-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 100%;
    min-height: 300px;
    padding: var(--space-6);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--line-md);
}

.ev-map-none > i { font-size: 30px; color: var(--amplify-teal); opacity: 0.55; margin-bottom: var(--space-2); }
.ev-map-none strong { color: var(--text-main); }

.ev-map-none-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: var(--space-2);
    color: var(--amplify-teal-dark);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

html.theme-night .ev-map-none-link { color: var(--amplify-teal-soft); }
.ev-map-none-link:hover { text-decoration: underline; }

/* ---- Map pin (matches the site pin) ---- */
.ev-pin { position: relative; width: 46px; height: 56px; filter: drop-shadow(0 6px 12px rgba(23, 36, 51, 0.4)); }

.ev-pin-tail {
    position: absolute;
    left: 50%;
    top: 37px;
    z-index: 0;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2.5px;
    background: var(--amplify-white);
}

.ev-pin-circle {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 2.5px solid var(--amplify-white);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--amplify-teal), var(--amplify-teal-deep));
    color: #FFFFFF;
    font-size: 15px;
}

.ev-pin-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 2px solid var(--amplify-white);
    border-radius: var(--radius-pill);
    background: var(--amplify-orange);
    color: #111111;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* ---------------------------------------------------------------
   Blocks
   --------------------------------------------------------------- */
.ev-block { margin-bottom: clamp(40px, 6vw, 72px); }

.ev-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light);
}

.ev-block-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 2.6vw, var(--text-3xl));
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-main);
}

.ev-block-sub { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }

.ev-block-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--amplify-teal-dark);
    text-decoration: none;
    white-space: nowrap;
}

html.theme-night .ev-block-link { color: var(--amplify-teal-soft); }
.ev-block-link i { font-size: 11px; transition: transform var(--transition-fast); }
.ev-block-link:hover i { transform: translateX(3px); }

/* ---- Contributors ---- */
.ev-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-3);
}

.ev-person {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg-strong);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal),
                border-color var(--transition-fast);
}

.ev-person:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--info-border); }
.ev-person:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.ev-person-avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--amplify-teal), var(--amplify-teal-deep));
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.ev-person-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }

.ev-person-name {
    font-size: var(--text-md);
    font-weight: var(--font-weight-bold);
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-person-n {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.ev-person > i { flex-shrink: 0; color: var(--text-soft); font-size: 12px; transition: transform var(--transition-fast), color var(--transition-fast); }
.ev-person:hover > i { color: var(--amplify-teal); transform: translateX(3px); }

/* ---- Photo wall ---- */
.ev-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-3);
}

.ev-tile { position: relative; min-width: 0; }

.ev-tile-main { display: block; text-decoration: none; }

.ev-tile-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.ev-tile-main:hover .ev-tile-media { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ev-tile-main:focus-visible .ev-tile-media { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.ev-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.ev-tile-main:hover .ev-tile-media img { transform: scale(1.05); }

.ev-noimg {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 40%, var(--info-bg), transparent 68%),
        var(--surface-soft);
    color: var(--amplify-teal);
    font-size: 20px;
    opacity: 0.7;
}

.ev-tile-star {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-pill);
    background: var(--amplify-teal);
    color: #FFFFFF;
    font-size: 10px;
    box-shadow: var(--shadow-sm);
}

.ev-tile-cap { padding: var(--space-2) 2px 0; display: flex; flex-direction: column; gap: 2px; }

.ev-tile-title {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-sm);
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-tile-by {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.ev-tile-by i { color: var(--amplify-teal); font-size: 9px; }

.ev-more-wrap { display: flex; justify-content: center; margin-top: var(--space-6); }

/* ---- Newsroom CTA ---- */
.ev-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-bottom: clamp(40px, 6vw, 72px);
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--info-border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(130% 170% at 6% 0%, var(--info-bg), transparent 60%),
        var(--card-bg-strong);
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-normal), border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

/* Night: the deep gradient slab */
html.theme-night .ev-cta {
    border-color: transparent;
    background: linear-gradient(135deg, var(--amplify-navy), var(--amplify-teal-deep));
    box-shadow: var(--shadow-lg);
}

.ev-cta-body { min-width: 0; max-width: 56ch; }

.ev-cta h2 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 2.6vw, var(--text-3xl));
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-main);
}

html.theme-night .ev-cta h2 { color: #FFFFFF; }

.ev-cta p {
    margin: 0;
    font-size: var(--text-md);
    line-height: var(--line-lg);
    color: var(--text-body);
}

html.theme-night .ev-cta p { color: rgba(255, 255, 255, 0.76); }

.ev-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- Nearby events ---- */
.ev-nearby {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--space-4);
}

.ev-near {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg-strong);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.ev-near:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ev-near:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.ev-near-media {
    flex-shrink: 0;
    width: 64px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-soft);
    display: block;
}

.ev-near-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-near-media .ev-noimg { font-size: 15px; }

.ev-near-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }

.ev-near-title {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-sm);
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-near-meta { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); }

/* ---------------------------------------------------------------
   Not found
   --------------------------------------------------------------- */
.ev-missing { padding: calc(76px + clamp(48px, 8vw, 96px)) clamp(16px, 5vw, 48px) clamp(56px, 8vw, 96px); }

.ev-missing-card {
    max-width: 540px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    backdrop-filter: saturate(170%) blur(24px);
    -webkit-backdrop-filter: saturate(170%) blur(24px);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.ev-missing-card > i {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--info-bg);
    color: var(--amplify-teal);
    font-size: 26px;
}

.ev-missing-card h1 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 2.8vw, var(--text-3xl));
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-main);
}

.ev-missing-card p {
    max-width: 44ch;
    margin: 0 auto var(--space-6);
    font-size: var(--text-md);
    line-height: var(--line-lg);
    color: var(--text-body);
}

.ev-missing-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* ---------------------------------------------------------------
   Lightbox
   --------------------------------------------------------------- */
.evlb {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.evlb.is-open { opacity: 1; visibility: visible; }
.evlb[hidden] { display: none; }

.evlb-scrim {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 20, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.evlb-stage {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(94vw, 1500px);
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evlb-img {
    max-width: min(94vw, 1500px);
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 80px rgba(10, 15, 20, 0.6);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.evlb-img.is-loaded { opacity: 1; }

.evlb-noimg {
    display: grid;
    place-items: center;
    width: min(70vw, 460px);
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 38px;
}

.evlb-noimg[hidden] { display: none; }

.evlb-spinner {
    position: absolute;
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #FFFFFF;
    border-radius: var(--radius-pill);
    animation: evlb-spin 0.7s linear infinite;
}

.evlb-spinner[hidden] { display: none; }

@keyframes evlb-spin { to { transform: rotate(360deg); } }

.evlb-close,
.evlb-nav {
    position: fixed;
    z-index: 3;
    display: grid;
    place-items: center;
    border: none;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.evlb-close:hover,
.evlb-nav:hover { background: rgba(255, 255, 255, 0.24); }
.evlb-close:focus-visible,
.evlb-nav:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: 2px; }

.evlb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 18px; }

.evlb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 18px; }
.evlb-nav:hover { transform: translateY(-50%) scale(1.06); }
.evlb-prev { left: 18px; }
.evlb-next { right: 18px; }

.evlb-counter {
    position: fixed;
    top: 28px;
    left: 24px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.evlb-cap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    padding: clamp(28px, 6vw, 44px) clamp(16px, 5vw, 40px) clamp(16px, 3vw, 28px);
    background: linear-gradient(180deg, rgba(10, 15, 20, 0) 0%, rgba(10, 15, 20, 0.84) 78%);
    pointer-events: none;
}

.evlb-cap-main { min-width: 0; pointer-events: auto; }

.evlb-title {
    margin: 0 0 var(--space-2);
    font-family: var(--font-display);
    font-size: clamp(var(--text-lg), 2.4vw, var(--text-2xl));
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    line-height: var(--line-sm);
    color: #FFFFFF;
}

.evlb-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: rgba(255, 255, 255, 0.66);
}

.evlb-by {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.evlb-by i { color: var(--amplify-teal-soft); font-size: 11px; }
.evlb-by:hover { color: var(--amplify-orange); }

.evlb-dot { width: 3px; height: 3px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.4); }

.evlb-detail {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    pointer-events: auto;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--amplify-teal);
    color: #FFFFFF !important;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    box-shadow: var(--shadow-teal);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.evlb-detail:hover { background: var(--amplify-teal-dark); transform: translateY(-1px); }
.evlb-detail i { font-size: 11px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.pub-footer {
    background: var(--surface-soft);
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: clamp(48px, 6vw, 72px) clamp(16px, 5vw, 48px) var(--space-8);
    transition: background var(--transition-normal), color var(--transition-normal);
}

/* Night: the original navy slab */
html.theme-night .pub-footer {
    background: var(--amplify-navy);
    color: rgba(255, 255, 255, 0.66);
}

.pub-footer-inner {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
    max-width: 1240px;
    margin: 0 auto var(--space-10);
}

.pub-footer-brand { min-width: 0; }

.pub-footer-logo { display: block; height: 40px; width: auto; margin: 0 0 var(--space-4); }

/* Logo tracks the theme — a white mark would vanish on the light footer */
.pub-footer-logo-night { display: none; }
html.theme-night .pub-footer-logo-day   { display: none; }
html.theme-night .pub-footer-logo-night { display: block; }

.pub-footer-blurb {
    max-width: 40ch;
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--line-lg);
    color: var(--text-muted);
}

html.theme-night .pub-footer-blurb { color: rgba(255, 255, 255, 0.66); }

.pub-footer-col { display: flex; flex-direction: column; gap: var(--space-2); }

.pub-footer-col h4 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--amplify-teal-dark);
}

/* Orange reads on navy but not on cream — teal carries the light footer */
html.theme-night .pub-footer-col h4 { color: var(--amplify-orange); }

.pub-footer-col a {
    width: fit-content;
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.pub-footer-col a:hover { color: var(--amplify-teal); }
html.theme-night .pub-footer-col a { color: rgba(255, 255, 255, 0.66); }
html.theme-night .pub-footer-col a:hover { color: #FFFFFF; }

.pub-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    max-width: 1240px;
    margin: 0 auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
    font-size: var(--text-xs);
    color: var(--text-soft);
}

html.theme-night .pub-footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.66);
}

.pub-footer-bottom p { margin: 0; }
.pub-footer-micro { opacity: 0.85; }

.pub-footer-micro a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
.pub-footer-micro a:hover { color: var(--amplify-teal); }
html.theme-night .pub-footer-micro a:hover { color: #FFFFFF; }

.pub-staff-link {
    margin-left: var(--space-3);
    color: inherit;
    opacity: 0.55;
    text-decoration: none;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.pub-staff-link:hover { opacity: 1; color: var(--amplify-orange); }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 980px) {
    .ev-info { grid-template-columns: 1fr; }
    .ev-map-card { min-height: 300px; }
    .pub-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .ev-head { padding-top: calc(76px + 24px); }
    .ev-keystats { gap: var(--space-5); }
    .ev-actions .pub-btn,
    .ev-actions .ev-share { width: 100%; }
    .ev-facts-card { padding: var(--space-5); }
    .ev-fact { grid-template-columns: 1fr; gap: 2px; }
    .ev-wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-2); }
    .ev-people { grid-template-columns: 1fr; }
    .ev-cta { flex-direction: column; align-items: stretch; }
    .ev-cta-actions .pub-btn { width: 100%; }
    .ev-missing-ctas .pub-btn { width: 100%; }
    .evlb-nav { width: 44px; height: 44px; }
    .evlb-prev { left: 8px; }
    .evlb-next { right: 8px; }
    .evlb-close { top: 12px; right: 12px; width: 42px; height: 42px; }
    .evlb-counter { top: 22px; left: 14px; }
    .evlb-cap { flex-direction: column; align-items: stretch; gap: var(--space-3); }
    .evlb-detail { justify-content: center; }
    .pub-footer-inner { grid-template-columns: 1fr; }
    .pub-footer-bottom { flex-direction: column; align-items: flex-start; }
    .pub-blob { filter: blur(70px); opacity: 0.8; }
}

/* ---------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ev-tile-media, .ev-tile-media img, .ev-person, .ev-near,
    .ev-chip, .pub-btn, .ev-share, .evlb, .evlb-img { transition: none; }
    .ev-tile-main:hover .ev-tile-media { transform: none; }
    .ev-tile-main:hover .ev-tile-media img { transform: none; }
    .evlb-spinner { animation: none; }
}