/* ============================================================
   /competitions SEO surface — component styles.
   Loaded after landing.css. Owns only the classes the generated
   pages need; doesn't redefine anything from landing.css.
   ============================================================ */

/* ---------- Event hero — video bg matches the home page ---------- */

.event-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 32px;
  background: var(--bg);
}

.event-hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.event-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--cream, #FAF7F2);
  opacity: 0.88;
  z-index: 1;
  pointer-events: none;
}

.event-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .event-hero .hero-video { display: none; }
}

/* ---------- Event page body (facts, map) — sits below hero,
   small top padding so the facts card breathes off the hero. ---------- */

.event-page {
  background: var(--bg);
  padding: 32px 24px 16px;
}

.event-page-inner {
  max-width: 880px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.breadcrumbs a:hover {
  border-bottom-color: var(--text-muted);
}

.breadcrumbs .sep {
  margin: 0 8px;
  color: #bdb6ad;
}

.event-header {
  margin-bottom: 32px;
}

.event-header .eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.event-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
  color: #2D6B5A;
}

.event-header .lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  text-wrap: pretty;
  margin: 0;
}

/* ---------- Facts card — redesigned 2026-06-30 ---------- */

.event-facts-card {
  padding: 28px 32px;
  margin: 0 0 32px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee5d6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Big primary rows — date and location lead. Icons sit left,
   text reads at hero-adjacent weight. */
.event-facts-primary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-facts-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.event-facts-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ebe0;
  color: #2D6B5A;
  border-radius: 10px;
}

.event-facts-icon svg {
  width: 20px;
  height: 20px;
}

.event-facts-text {
  flex: 1 1 auto;
  min-width: 0;
}

.event-facts-primary-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.event-facts-primary-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.event-facts-primary-sub {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* Tag pills for level and status. */
.event-facts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f5efe2;
}

.event-facts-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f0ebe0;
  color: var(--text);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.event-facts-tag.status-upcoming { background: #e3f0eb; color: #1d4f3f; }
.event-facts-tag.status-in-progress { background: #fdecc8; color: #6b4514; }
.event-facts-tag.status-completed { background: #eee5d6; color: var(--text-muted); }

.event-facts-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Secondary-button row for the source / registration link. */
.event-facts-action {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f5efe2;
}

.event-facts-action .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-facts-action-note {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Map link — small external link inside the Where row.
   Replaced the embedded iframe entirely (Carsten 2026-06-30) — the
   iframe rendered as a blank white panel during load and added
   unjustified vertical space. ---------- */

.event-facts-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #2D6B5A;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 107, 90, 0.25);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.event-facts-map-link:hover {
  border-bottom-color: #2D6B5A;
}

/* ---------- Equibot spotlight — in-phone chat treatment.
   Wraps the existing .equibot-bubble copy inside a .phone-frame
   so the section reads as "here's the actual app screen." ---------- */

.equibot-phone-stage {
  display: flex;
  justify-content: center;
  padding: 24px 16px 8px;
}

.equibot-phone-stage .phone-frame {
  width: 340px;
  max-width: 100%;
}

.equibot-app {
  display: flex;
  flex-direction: column;
  background: #FAF7F2;
  min-height: 540px;
}

.equibot-app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #eee5d6;
}

.equibot-app-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D6B5A, #1B4438);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.equibot-app-id {
  flex: 1 1 auto;
  min-width: 0;
}

.equibot-app-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.equibot-app-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.equibot-app-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2D6B5A;
}

.equibot-app-menu {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.equibot-app-messages {
  flex: 1 1 auto;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.equibot-app-msg {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  border-radius: 16px;
  word-wrap: break-word;
}

.equibot-app-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2D6B5A, #245A4B);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.equibot-app-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--text);
  border: 1px solid #eee5d6;
  border-bottom-left-radius: 4px;
}

.equibot-app-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 14px;
  background: #fff;
  border-top: 1px solid #eee5d6;
}

.equibot-app-input-pill {
  flex: 1 1 auto;
  padding: 9px 14px;
  border-radius: 100px;
  background: #FAF7F2;
  color: var(--text-muted);
  font-size: 0.82rem;
  border: 1px solid #eee5d6;
}

.equibot-app-input-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2D6B5A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.equibot-app-input-send svg {
  width: 14px;
  height: 14px;
}

/* ---------- Related-event blocks ---------- */

.related-block {
  margin: 48px 0;
}

.related-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: capitalize;
}

.event-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.event-card {
  margin: 0;
}

.event-card-link {
  display: block;
  padding: 16px;
  background: #fff;
  border: 1px solid #eee5d6;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.event-card-link:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.event-card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.event-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
  color: var(--text);
}

.event-card-where {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Index pages — month grouping + narrow chips ---------- */

.index-remainder {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: #fbf6e9;
  border-radius: 8px;
  border: 1px solid #f0e6cf;
  font-size: 0.88rem;
  color: var(--text);
}

.index-month {
  margin: 0 0 36px;
}

.index-month-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee5d6;
}

.narrow-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.narrow-block-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.narrow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.narrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #eee5d6;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.narrow-chip:hover {
  border-color: #2D6B5A;
  background: #f5f0e2;
}

.narrow-chip-count {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state p {
  margin: 0 0 12px;
}

/* ---------- Disclaimer ---------- */

.event-disclaimer {
  margin-top: 48px;
  padding: 20px;
  background: #fbf6e9;
  border-radius: 10px;
  border: 1px solid #f0e6cf;
}

.event-disclaimer p {
  margin: 0;
}

.event-disclaimer p + p {
  margin-top: 10px;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .event-hero {
    padding: 90px 16px 24px;
  }

  .event-page {
    padding: 24px 16px 16px;
  }

  .event-facts-card {
    padding: 20px;
  }

  .event-facts-primary-value {
    font-size: 1.05rem;
  }

  .event-facts-icon {
    width: 32px;
    height: 32px;
  }

  .event-facts-icon svg {
    width: 18px;
    height: 18px;
  }

  .event-facts {
    padding: 16px;
  }

  .event-facts strong {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
  }

  .event-facts li {
    padding: 12px 0;
  }

  .event-card-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Index page (T5) — minimal stubs so the page isn't
   completely unstyled before T5 lands ---------- */

.competitions-index {
  background: var(--bg);
  padding: 96px 24px 64px;
  min-height: 100vh;
}

.competitions-index-inner {
  max-width: 1100px;
  margin: 0 auto;
}
