/* Event Studio landing */
html {
  scroll-behavior: smooth;
}

/* Match sticky header look at scroll 0 — no transparent top fade */
body.is-event-portal-page header.navbar {
  background-color: #1e2737 !important;
  transition: none;
}

body.is-event-portal-page header.navbar::before {
  display: none !important;
}

/* Wider hero column so “RunDais Event Studio” stays one line from tablet up */
.page-event-portal .event-portal-hero .event-portal-hero-content.passport-hero-content {
  max-width: 1040px;
}

@media (min-width: 768px) {
  .page-event-portal .event-portal-hero .passport-hero-title {
    white-space: nowrap;
  }
}

.page-event-portal .event-portal-hero .event-portal-hero-sub {
  margin: 0 auto 16px;
  max-width: 720px;
  font-family: "roc-grotesk", sans-serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  color: #c0c4ca;
}

@media (max-width: 767.98px) {
  .page-event-portal .event-portal-hero .event-portal-hero-sub {
    font-size: 1.0625rem;
  }
}

/* Second intro line (after pitch): match spacing before CTA that pitch used to provide */
.page-event-portal .event-portal-hero .event-portal-hero-pitch + .event-portal-hero-sub {
  margin-bottom: 28px;
}

.page-event-portal .event-portal-hero .event-portal-hero-pitch {
  margin: 0 auto 28px;
  max-width: 920px;
  font-family: "roc-grotesk", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .page-event-portal .event-portal-hero .event-portal-hero-pitch {
    font-size: 1.0625rem;
  }
}

.page-event-portal .event-portal-hero .event-portal-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}

.page-event-portal .event-portal-hero .event-portal-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  font-family: "roc-grotesk", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: #04132d;
  background-color: #96ff94;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.page-event-portal .event-portal-hero .event-portal-hero-cta:hover,
.page-event-portal .event-portal-hero .event-portal-hero-cta:focus-visible {
  background-color: #7ae67a;
  color: #04132d;
}

.page-event-portal .event-portal-hero .event-portal-hero-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.page-event-portal .event-portal-hero .event-portal-hero-free-note {
  margin: 0 auto;
  max-width: 560px;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  color: #9ca3af;
}

.event-portal-form-section {
  padding-bottom: 4rem;
  scroll-margin-top: 96px;
}

/* Login prompt moved below the apply form */
.page-event-portal .event-portal-form-section .clubhouse-login-prompt {
  margin-top: 40px;
  margin-bottom: 0;
  padding-top: 0;
}

@media (max-width: 767.98px) {
  .event-portal-form-section {
    scroll-margin-top: 72px;
  }
}

/* Selected event tags — scoped to apply form so clubhouse/global rules never flatten the pill */
#event-portal-form-wrapper .ep-selected-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#event-portal-form-wrapper .ep-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 6px 6px 14px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #04132d;
  background: #e8f8ea;
  border: 1px solid #96ff94;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(4, 19, 45, 0.06);
}

#event-portal-form-wrapper .ep-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 420px);
}

#event-portal-form-wrapper .ep-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  color: #374151;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#event-portal-form-wrapper .ep-chip-x:hover {
  background: rgba(4, 19, 45, 0.08);
  color: #04132d;
}

#event-portal-form-wrapper .ep-chip-x:focus-visible {
  outline: 2px solid #04132d;
  outline-offset: 1px;
}

.ep-dd-item a {
  display: block;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
}

.ep-dd-item a:hover {
  background: #f3f4f6;
}

.ep-new-event-toggle {
  margin-top: 8px;
}

.ep-new-event-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 14px 20px;
  font-family: "roc-grotesk", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #04132d;
  background-color: #ffffff;
  border: 2px solid #04132d;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ep-new-event-toggle-btn:hover {
  background-color: #f3f4f6;
}

.ep-new-event-toggle-btn:focus-visible {
  outline: 2px solid #04132d;
  outline-offset: 3px;
}

.ep-new-event-toggle-btn.is-active {
  color: #ffffff;
  background-color: #04132d;
  border-color: #04132d;
}

.ep-new-event-toggle-btn.is-active:hover {
  background-color: #1e293b;
  border-color: #1e293b;
}

/* Match hero CTA hover (#7ae67a) — scoped so Clubhouse default (#c2ff42) stays elsewhere */
.page-event-portal .event-portal-form-section .clubhouse-submit:hover:not(:disabled),
.page-event-portal .event-portal-form-section .clubhouse-submit:focus-visible:not(:disabled) {
  background-color: #7ae67a;
  color: #04132d;
}

.ep-new-event-name-field {
  margin-top: 4px;
}
