/* ============================================================
   SWS Events Overview styles — v1.0.1
   Scoped under .sws-event-page.sws-overview
   ============================================================ */

.sws-event-page.sws-overview {
  --sws-navy:      #004e9b;
  --sws-navy-deep: #003a73;
  --sws-red:       #d4202c;
  --sws-bg:        #ffffff;
  --sws-bg-alt:    #f5f7fa;
  --sws-ink:       #2a2c2f;
  --sws-ink-soft:  #6b7280;
  --sws-line:      #e2e6ec;
  --thumb-w:       80px;

  font-size: 17px !important;
  line-height: 1.6 !important;
  color: var(--sws-ink);
  background: var(--sws-bg);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  padding: 0 1.25rem;
}
.sws-event-page.sws-overview *,
.sws-event-page.sws-overview *::before,
.sws-event-page.sws-overview *::after { box-sizing: border-box; }
.sws-event-page.sws-overview img { max-width: 100%; display: block; }
.sws-event-page.sws-overview a { color: var(--sws-navy); text-decoration: none; }
.sws-event-page.sws-overview a:hover { color: var(--sws-red); }
.sws-event-page.sws-overview button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* i18n */
.sws-event-page.sws-overview [data-i18n] { display: none; }
.sws-event-page.sws-overview[data-lang="de"] [data-i18n="de"],
.sws-event-page.sws-overview[data-lang="fr"] [data-i18n="fr"],
.sws-event-page.sws-overview[data-lang="en"] [data-i18n="en"] { display: inline; }

/* Shared button */
.sws-event-page.sws-overview .sws-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-weight: 700 !important;
  font-size: 16px !important;
  border-radius: 3px;
  transition: all 0.15s;
  text-decoration: none;
}
.sws-event-page.sws-overview .sws-btn--primary {
  background: var(--sws-red);
  color: white !important;
}
.sws-event-page.sws-overview .sws-btn--primary:hover {
  background: #b51823;
  color: white !important;
  transform: translateY(-1px);
}

@keyframes sws-ov-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}
@keyframes sws-ov-slide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LIST
============================================================ */
.sws-ov__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--sws-line);
}

/* ============================================================
   ITEM
============================================================ */
.sws-ov__item {
  border-bottom: 1px solid var(--sws-line);
}
.sws-ov__item--cancelled { opacity: 0.55; }

/* ============================================================
   HEAD — no margin/padding shift on hover so chevron stays put
============================================================ */
.sws-ov__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0.5rem;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 3px;
}
.sws-ov__head:hover { background: var(--sws-bg-alt); }

/* ============================================================
   THUMBNAIL
============================================================ */
.sws-ov__thumb {
  width: var(--thumb-w);
  height: var(--thumb-w);
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--sws-bg-alt);
}
.sws-ov__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 500px) {
  .sws-ov__thumb { width: 56px; height: 56px; }
  .sws-event-page.sws-overview { --thumb-w: 56px; }
}

/* ============================================================
   META
============================================================ */
.sws-ov__meta { flex: 1; min-width: 0; }
.sws-ov__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.sws-ov__name {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--sws-ink) !important;
  line-height: 1.2;
}
.sws-ov__name--cancelled {
  text-decoration: line-through;
  color: var(--sws-ink-soft) !important;
}
.sws-ov__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.6rem;
}
.sws-ov__dates {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--sws-ink-soft) !important;
}
.sws-ov__dates--tbc { font-style: italic; opacity: 0.6; }
.sws-ov__sep { color: var(--sws-line) !important; font-size: 14px !important; }
.sws-ov__location { font-size: 14px !important; color: var(--sws-ink-soft) !important; }
.sws-ov__tour {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sws-navy) !important;
  background: rgba(0,78,155,0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}

/* ============================================================
   STATUS BADGE
============================================================ */
.sws-ov__status {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}
.sws-ov__status--upcoming  { background: var(--sws-navy); color: white !important; }
.sws-ov__status--live      { background: var(--sws-red);  color: white !important; }
.sws-ov__status--pulse     { animation: sws-ov-pulse 2s ease-in-out infinite; }
.sws-ov__status--past,
.sws-ov__status--tbc,
.sws-ov__status--soon      { background: var(--sws-bg-alt); color: var(--sws-ink-soft) !important; border: 1px solid var(--sws-line); }
.sws-ov__status--tbc       { font-style: italic; }
.sws-ov__status--cancelled { background: #fff0f0; color: var(--sws-red) !important; border: 1px solid #fcc; }

/* ============================================================
   CHEVRON — fixed, no jump
============================================================ */
.sws-ov__chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--sws-ink-soft);
  font-size: 11px;
  transition: transform 0.25s;
}
.sws-ov__item--open .sws-ov__chev { transform: rotate(180deg); }

/* ============================================================
   BODY — left edge aligned with text column
   thumb(80px) + gap(1.25rem) + head-padding(0.5rem)
============================================================ */
.sws-ov__body { overflow: hidden; }
.sws-ov__body[hidden] { display: none; }
.sws-ov__body-inner {
  padding: 0.25rem 0.5rem 1.5rem calc(var(--thumb-w) + 1.25rem + 0.5rem);
  animation: sws-ov-slide 0.2s ease-out;
}
.sws-ov__cancelled-note {
  font-size: 15px !important;
  color: var(--sws-red) !important;
  font-weight: 600 !important;
  margin: 0;
}
.sws-ov__desc {
  font-size: 15px !important;
  color: var(--sws-ink-soft) !important;
  margin: 0 0 0.85rem !important;
  line-height: 1.5;
}
.sws-ov__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============================================================
   NOT SWISS TOUR + iQFOIL badges
============================================================ */
.sws-ov__not-tour {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--sws-ink-soft) !important;
  background: var(--sws-bg-alt);
  border: 1px solid var(--sws-line);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}
.sws-ov__iqfoil {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0063dc !important;
  background: rgba(0,99,220,0.07);
  border: 1px solid rgba(0,99,220,0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}
