/* ============================================================
   MEETING NAV -- meeting-group header, round 8 (PROPOSAL, mockups only
   for now). Replaces the round-5 chip rail (meeting-rail.css) once
   approved: back to ONE row, the active meeting is the protagonist.

     [flag]  World Indoor Tour 2027
             Belgrade  (‹ 1/8 ›)
             25 Jan 2027

   - City name: tap opens the ms-* sheet (all meetings of the group, to
     jump straight to any of them).
   - Stepper to the RIGHT of the city: prev / "n/N" / next. Moves between
     meetings only -- never to the tour total (that lives in Standings).
   - No weights, no Tour entry anywhere in the header.
   Data source in Phase B: meeting_rail (full group from FAT_COMPETITION,
   clones excluded), NOT the retired meeting_siblings.
   Restored/adapted from the FEAT-0010 header CSS (commit 23476b6).
   ============================================================ */

.header__comp-city-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.header__comp-city--clickable {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.12s;
}
.header__comp-city--clickable:hover { border-bottom-color: #cbd5e1; }

/* Stepper: one pill holding ‹ n/N › */
.header__mstep {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 1px 2px;
  flex-shrink: 0;
}

.header__comp-nav {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.12s, color 0.12s;
}
.header__comp-nav:hover { background: #fff; color: #d4562a; }
.header__comp-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.header__meeting-badge {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  padding: 0 3px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

/* ----- Meeting sheet: every meeting of the group (prefix ms-) ----- */
.ms-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.ms-overlay--open { display: flex; }

.ms-sheet {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 420px;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  animation: msSlideUp 0.3s ease-out;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}
@keyframes msSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.ms-handle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 6px;
  flex-shrink: 0;
}
.ms-handle__bar { width: 36px; height: 4px; border-radius: 2px; background: #cbd5e1; margin: 0 auto; }
.ms-handle__close {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f1f5f9; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #64748b; font-size: 13px;
}
.ms-handle__close:hover { background: #e2e8f0; color: #1e293b; }

.ms-title { padding: 0 16px 10px; font-size: 13px; font-weight: 700; color: #1e293b; flex-shrink: 0; }
.ms-title span { color: #64748b; font-weight: 500; }

.ms-list { flex: 1; overflow-y: auto; padding: 0 12px 16px; -webkit-overflow-scrolling: touch; }

.ms-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  margin-bottom: 6px;
  transition: border-color 0.12s, background 0.12s;
}
.ms-row:hover { border-color: #d4562a; background: #fff7ed; }
.ms-row--active { border-color: #d4562a; background: #fff7ed; }
.ms-row__flag { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.ms-row__body { flex: 1; min-width: 0; }
.ms-row__city { font-size: 13px; font-weight: 700; color: #1e293b; }
.ms-row--active .ms-row__city { color: #d4562a; }
.ms-row__date { font-size: 11px; color: #94a3b8; }
.ms-row__status { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.ms-row__status--finished { color: #94a3b8; background: #f1f5f9; }
.ms-row__status--upcoming { color: #22c55e; background: rgba(34,197,94,0.1); }
.ms-row__status--live { color: #eab308; background: rgba(234,179,8,0.1); display: inline-flex; align-items: center; gap: 4px; }
/* pulse-dot keyframes already live in header.css */
.ms-row__dot { width: 6px; height: 6px; border-radius: 50%; background: #eab308; animation: pulse-dot 1.5s ease-in-out infinite; display: inline-block; flex-shrink: 0; }

@media (min-width: 768px) {
  .ms-handle__bar { display: none; }
  .ms-handle { justify-content: flex-end; }
}
@media (max-width: 767px) {
  .ms-handle__close { display: none; }
}
@media (max-width: 450px) {
  .ms-sheet { max-height: 78vh; }
  .ms-handle { padding: 10px 12px 5px; }
  .ms-title { padding: 0 12px 8px; }
  .ms-list { padding: 0 10px 12px; }
  .header__meeting-badge { font-size: 9.5px; }
  .header__comp-nav { width: 24px; height: 24px; }
}
