/* EOS Event Access — restricted card v2.1.67 */
.eos-eac {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 40px);
  background: linear-gradient(180deg, var(--egw-surface, #fff) 0%, var(--egw-surface-2, #f4f5f7) 100%);
  border: 1px solid var(--egw-border-soft, rgba(0,0,0,.06));
  border-radius: var(--radius-xl, 20px);
  color: var(--egw-text, #15171A);
}
.eos-eac[data-context="watch"] { aspect-ratio: 16 / 9; }
.eos-eac-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 480px; gap: 14px;
}
.eos-eac-icon {
  width: 88px; height: 88px; border-radius: 9999px;
  background: var(--egw-brand-soft, rgba(245,163,18,.14));
  color: var(--egw-brand, #F5A312);
  display: grid; place-items: center;
}
.eos-eac-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.eos-eac-pill {
  display: inline-block; padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.eos-eac-h {
  font-size: clamp(22px, 3vw, 28px); font-weight: 800;
  margin: 4px 0 0; letter-spacing: -.005em;
  color: var(--egw-text, #15171A);
}
.eos-eac-p  { font-size: 14px; line-height: 1.55; color: var(--egw-text-muted, #5F6368); margin: 0; max-width: 42ch; }
.eos-eac-event {
  font-size: 13px; font-weight: 600;
  color: var(--egw-text, #15171A);
  background: var(--egw-surface-2, #f4f5f7);
  padding: 6px 12px; border-radius: 9999px; margin: 4px 0 0;
}
.eos-eac-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.eos-eac-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 9999px;
  font: inherit; font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
  min-height: 44px;
}
.eos-eac-btn-primary { background: var(--egw-accent, #15171A); color: var(--egw-accent-text, #FAFAF9); }
.eos-eac-btn-primary:hover { transform: translateY(-1px); }
.eos-eac-btn-ghost   { background: var(--egw-surface-2, #f4f5f7); color: var(--egw-text, #15171A); border: 1px solid var(--egw-border, rgba(0,0,0,.12)); }
.eos-eac-btn-ghost:hover { background: var(--egw-surface-3, #ebebe8); }

/* Listing-row lock badge — used by page-events.php */
.eos-ev-locked { position: relative; pointer-events: none; }
.eos-ev-locked::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  border-radius: inherit;
  pointer-events: auto;
}
.eos-ev-lock-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.78); color: #fff;
  padding: 6px 12px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

/* v2.1.68 — Audience badge styles for Events listing cards. */
.eos-ev-card-audience { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.eos-ev-audpill {
  display:inline-flex; align-items:center;
  padding:3px 8px; border-radius:999px;
  font-size:11px; font-weight:700; line-height:1;
  letter-spacing:.02em;
}
.eos-ev-restricted {
  position:absolute; top:10px; right:10px; z-index:2;
  background: var(--color-danger, #B91C1C);
  color: var(--color-bg, #fff);
  padding:4px 9px; border-radius:999px;
  font-size:10px; font-weight:800; letter-spacing:.05em;
  text-transform: uppercase;
}
.eos-ev-card-img { position:relative; display:block; }

/* v2.1.69 — Clearer "who can access" badge model.
   Public events get NO badge — they're the default and visible to everyone.
   Restricted events (member / affiliate / both) get a single-line "Open to: …"
   strip on every card. */
.eos-ev-card-audience {
  background: color-mix(in srgb, var(--color-accent, #F5A312) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent, #F5A312) 32%, transparent);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--color-text-strong, #1a1a2e);
}
.eos-ev-card-audience::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
  flex-shrink: 0;
}

/* v2.1.72 — Watch page off-air audience banner.
   Sits over the dark "stage" background so colors must stay light-on-dark
   regardless of the active page theme. Uses brand accent (yellow) for the
   identity rather than a one-off blue. */
.eos-watch-audience-banner {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent, #F5A312) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent, #F5A312) 60%, transparent);
  color: var(--color-accent, #F5A312);
  font-size: 13px; font-weight: 800;
  letter-spacing: .01em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.eos-watch-audience-banner::before {
  content: "";
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5A312' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

/* v2.1.71 — Card now clearly names WHO can access the event. */
.eos-eac-access-label {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--color-text-muted, #5F6368);
  margin: 4px 0 6px;
  text-align: center;
}
.eos-eac-pills {
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.eos-eac-pill {
  display: inline-flex !important;
  align-items: center;
  padding: 6px 14px !important;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  opacity: 1;
}
.eos-eac-h {
  margin-top: 6px !important;
}

/* ============================================================
 * v2.2.4 — Monochrome Glass redesign of the standalone access gate.
 * Neutralises the amber lock + per-tier coloured pills (inline styles,
 * hence !important) and adds a full dark-mode pass.
 * ============================================================ */
.eos-eac { --eac-fg:#141416; --eac-fg2:rgba(20,20,22,.6); --eac-hair:rgba(20,20,22,.12); --eac-surf:rgba(20,20,22,.05); --eac-ink:#141416; --eac-inkFg:#fff; }
html[data-theme="dark"] .eos-eac { --eac-fg:#E3E3E3; --eac-fg2:#9AA0A6; --eac-hair:rgba(255,255,255,.12); --eac-surf:rgba(255,255,255,.06); --eac-ink:#E8EAED; --eac-inkFg:#202124; }

.eos-eac-icon {
  background: var(--eac-surf) !important;
  color: var(--eac-fg) !important;
  border: 1px solid var(--eac-hair) !important;
}
.eos-eac-eyebrow,
.eos-eac-access-label { color: var(--eac-fg2) !important; }
.eos-eac-event-title,
.eos-eac-h { color: var(--eac-fg) !important; }
.eos-eac-event-when,
.eos-eac-p { color: var(--eac-fg2) !important; }
/* Tier pills → neutral ink outline (overrides the inline per-tier colour) */
.eos-eac-pill {
  background: transparent !important;
  color: var(--eac-fg) !important;
  border: 1px solid var(--eac-fg2) !important;
}
/* Buttons */
.eos-eac-btn-primary { background: var(--eac-ink) !important; color: var(--eac-inkFg) !important; border: 0 !important; }
.eos-eac-btn-ghost { background: transparent !important; color: var(--eac-fg) !important; border: 1px solid var(--eac-hair) !important; }
html[data-theme="dark"] .eos-eac-btn-ghost:hover { background: var(--eac-surf) !important; }
/* Card surface in dark mode */
html[data-theme="dark"] .eos-eac,
html[data-theme="dark"] .eos-eac-inner { background: transparent !important; color: var(--eac-fg) !important; }

/* v2.1.71b — Event title prominent at the top of the access card so users
   immediately see WHICH event they're being denied access to. */
.eos-eac-eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--color-text-muted, #5F6368);
  margin: 14px 0 4px;
  text-align: center;
}
.eos-eac-event-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--color-text, #111);
  padding: 0 12px;
}
.eos-eac-event-when {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--color-text-muted, #5F6368);
  font-weight: 500;
}
.eos-eac-event-when span {
  display: inline-flex; align-items: center;
}
.eos-eac-event-when span + span::before {
  content: "•"; margin-right: 12px; opacity: .55;
}
