/* Sister Sister v1 — Event detail page (mobile-first).
   NOTE FOR INTEGRATOR: base.html must link this file:
   <link rel="stylesheet" href="{{ url_for('static', filename='css/event.css') }}">
   Scoped to .ev-* so it never leaks onto other pages. */

.ev {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* 1. top bar ----------------------------------------------------------- */
.ev-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  min-height: 44px;
}

.ev-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.ev-back:focus-visible {
  outline: 2px solid #FF87E2;
  outline-offset: 2px;
  border-radius: 4px;
}

.ev-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 2. title -------------------------------------------------------------- */
.ev-title {
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.ev-lede {
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  color: #333;
}

/* 3/4. logistics + status ----------------------------------------------- */
.ev-logistics {
  margin: 0 0 1rem;
}

.ev-facts {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.ev-fact {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.ev-fact dt {
  font-weight: 600;
  color: #555;
}

.ev-fact dd {
  margin: 0;
}

/* Status is text first, never color alone (DESIGN §10.4 / §19.1). */
.ev-status {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.ev-status--action {
  margin: 0 0 0.5rem;
}

/* 5. primary external action -------------------------------------------- */
.ev-action {
  margin: 0 0 1.25rem;
}

.ev-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  min-height: 48px;
  line-height: 48px;
  padding: 0 1rem;
  border-radius: 12px;
  background: #FF87E2;
  color: #111;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.ev-cta:focus-visible {
  outline: 3px solid #111;
  outline-offset: 2px;
}

/* 6. hero ---------------------------------------------------------------- */
.ev-hero {
  margin: 0 0 1.5rem;
}

.ev-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 7/8. hosts + about ------------------------------------------------------ */
.ev-h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.ev-host-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.ev-host-list a {
  font-weight: 600;
  color: inherit;
}

.ev-prose {
  line-height: 1.6;
  white-space: pre-line;
}

/* 9. keep exploring -------------------------------------------------------- */
.ev-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ev-related-list a {
  font-weight: 600;
  color: inherit;
}

.ev-related-meta {
  display: block;
  font-size: 0.9rem;
  color: #555;
}

/* 10. sticky action region --------------------------------------------------
   position: sticky (not fixed) so it can never cover content; it lives in
   normal flow at the end of the article and pins to the viewport bottom
   while the page scrolls beneath it. Integrator: coordinate z-index and any
   bottom-nav offset with the global mobile nav. */
.ev-sticky {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem -1rem -2rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

.ev-sticky-facts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ev-sticky-price {
  font-weight: 700;
  font-size: 1rem;
}

.ev-sticky-status {
  font-size: 0.85rem;
  font-weight: 600;
}

.ev-cta--sticky {
  width: auto;
  flex: 0 0 auto;
  max-width: 60%;
  min-height: 48px;
  line-height: 48px;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop: calm centered column, sticky bar spans content width. */
@media (min-width: 48rem) {
  .ev-title {
    font-size: 2.25rem;
  }

  .ev-sticky {
    margin-left: 0;
    margin-right: 0;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
  }
}
