/* --------------------------------------------------------
   Winnipeg Horror Con 2026 — Schedule Page Styles
   --------------------------------------------------------
   Loaded only by schedule.html. Uses design tokens from
   css/style.css (:root custom properties).
   -------------------------------------------------------- */

/* ---- Venue accent colours ---- */
:root {
  --venue-upstairs:   #d4922a;          /* 3rd Floor  — amber       */
  --venue-downstairs: #7b4daa;          /* Downstairs — purple      */
  --venue-outside:    #2f9e6e;          /* Outside    — green       */
  --venue-main-floor: #2980b9;          /* Main Floor — steel blue  */
}

/* =============================================
   HAPPENING NOW
   ============================================= */

/* Convention-wide phase banner (VIP access / General Admission /
   Convention Closed) — sits above the per-venue now-grid since it
   applies to the whole event, not a single venue. */
.convention-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, rgba(211, 47, 47, 0.12), transparent);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text);
}
.convention-status i {
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.convention-status strong {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.now-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.now-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.now-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 28px var(--red-glow);
}
.now-card[data-venue="upstairs"]    { border-left: 3px solid var(--venue-upstairs); }
.now-card[data-venue="downstairs"]  { border-left: 3px solid var(--venue-downstairs); }
.now-card[data-venue="outside"]     { border-left: 3px solid var(--venue-outside); }
.now-card[data-venue="main-floor"]  { border-left: 3px solid var(--venue-main-floor); }

.now-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.now-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.now-venue {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.now-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.now-live-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.now-live-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.now-live-item {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: rgba(240, 237, 237, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.now-live-item:hover,
.now-live-item:focus-visible {
  border-color: var(--red);
  background: rgba(192, 57, 43, 0.04);
}
.now-live-item-name {
  flex: 1;
  font-weight: 500;
  line-height: 1.3;
}
.now-live-item-time {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}
.now-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.now-empty {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* Single full-width message shown instead of per-venue cards when
   nothing is live anywhere right now (or outside event hours). */
.now-card-message {
  text-align: center;
  padding: 2rem 1.5rem;
}
.now-card-message .now-empty {
  font-size: 0.95rem;
}

.now-up-next {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color var(--ease);
}
.now-up-next:hover {
  color: var(--text);
}
.now-up-next-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}
.now-up-next-time {
  color: var(--red);
  font-weight: 500;
}

/* =============================================
   VENUE FILTER PILLS
   ============================================= */
.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.filter-btn .fa-arrow-up    { color: var(--venue-upstairs); }
.filter-btn .fa-arrow-down  { color: var(--venue-downstairs); }
.filter-btn .fa-tree        { color: var(--venue-outside); }
.filter-btn .fa-building    { color: var(--venue-main-floor); }
.filter-btn.active i        { color: var(--white); }

/* =============================================
   SCHEDULE GRID — Desktop (Time × Venues)
   ============================================= */
.schedule-grid {
  display: grid;
  /* col 1 = time labels, cols 2-5 = 3rd Floor / Downstairs / Outside / Main Floor */
  grid-template-columns: 72px repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Time column labels */
.schedule-time {
  grid-column: 1;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: right;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-right: 1px solid var(--border);
  position: sticky;
  left: 0;
  background: var(--bg);
  z-index: 2;
}

/* Column headers */
.schedule-col-header {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.75rem 0.75rem;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  background: var(--bg);
  z-index: 10;
}
.schedule-col-header:first-of-type {
  grid-column: 1;
  text-align: right;
  padding-right: 0.75rem;
  border-right: 1px solid var(--border);
}

/* "All Day" amenity strip — row 2 of the grid, pinned above the
   hour-by-hour slots. Long-running items (Beer Garden, Vendors, VR,
   etc.) get a small chip here instead of a full-height card, so they
   don't compete for lane space with one-time events. */
.schedule-allday-label {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.schedule-allday-strip {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--border);
  background: rgba(240, 237, 237, 0.02);
}
.schedule-allday-chip {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.schedule-allday-chip:hover,
.schedule-allday-chip:focus-visible {
  background: rgba(240, 237, 237, 0.08);
  outline: none;
}
.schedule-allday-chip[data-venue="upstairs"]    { border-color: var(--venue-upstairs); }
.schedule-allday-chip[data-venue="downstairs"]  { border-color: var(--venue-downstairs); }
.schedule-allday-chip[data-venue="outside"]     { border-color: var(--venue-outside); }
.schedule-allday-chip[data-venue="main-floor"]  { border-color: var(--venue-main-floor); }

/* Grid lines — faint horizontal rule per time slot */
.schedule-row-line {
  grid-column: 1 / -1;
  border-bottom: 1px solid rgba(36, 36, 36, 0.5);
  pointer-events: none;
}

/* Convention-wide milestone divider (VIP access / General Admission /
   Convention Closed) — spans every venue column in the grid, or the
   full width of a row in the mobile list, instead of living inside
   one venue's schedule slot. */
.schedule-milestone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(211, 47, 47, 0.08);
  border: 1px dashed var(--red);
  border-radius: var(--radius);
  margin: 2px 4px;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text);
  cursor: pointer;
  z-index: 3;
  text-align: center;
}
.schedule-milestone:hover,
.schedule-milestone:focus-visible {
  border-color: var(--red);
  background: rgba(211, 47, 47, 0.16);
  outline: none;
}
.schedule-milestone i {
  color: var(--red);
}
.schedule-milestone-time {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* List view: full-width, left-aligned, no dashed pill look needed */
.schedule-list .schedule-milestone {
  justify-content: flex-start;
  margin: 0;
}

/* =============================================
   EVENT CARDS (inside the grid)
   ============================================= */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  margin: 2px 4px;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.event-card:hover {
  border-color: var(--red);
  box-shadow: 0 6px 20px var(--red-glow);
  transform: translateY(-2px);
  z-index: 5;
}
.event-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Venue accent stripe */
.event-card[data-venue="upstairs"]    { border-left: 3px solid var(--venue-upstairs); }
.event-card[data-venue="downstairs"]  { border-left: 3px solid var(--venue-downstairs); }
.event-card[data-venue="outside"]     { border-left: 3px solid var(--venue-outside); }
.event-card[data-venue="main-floor"]  { border-left: 3px solid var(--venue-main-floor); }

/* Concurrent events sharing a venue+time slot render in side-by-side
   lanes (see computeOverlapLanes() in schedule.js) instead of
   overlapping unreadably. Lane width/offset are set inline per-card. */
.event-card.is-lane {
  min-width: 0;
}
.event-card.is-lane .event-card-title,
.event-card.is-lane .event-card-time {
  overflow-wrap: break-word;
}

.event-card-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.event-card-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* =============================================
   VENUE MAP
   ============================================= */
.venue-map-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.map-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.map-tab {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.map-tab:hover {
  border-color: var(--red);
  color: var(--red);
}
.map-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.map-tab[data-venue="upstairs"]    i { color: var(--venue-upstairs); }
.map-tab[data-venue="downstairs"]  i { color: var(--venue-downstairs); }
.map-tab[data-venue="outside"]     i { color: var(--venue-outside); }
.map-tab[data-venue="main-floor"]  i { color: var(--venue-main-floor); }
.map-tab.active i { color: var(--white); }

.map-panel {
  max-width: 640px;
  margin: 0 auto;
}

.map-subtabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.map-subtab {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}
.map-subtab:hover { color: var(--text); }
.map-subtab.active {
  border-color: var(--red);
  color: var(--red);
}

.map-image-wrap {
  position: relative;
  display: block;
  cursor: zoom-in;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.map-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.map-image-wrap:hover,
.map-image-wrap:focus-visible {
  border-color: var(--red);
}
.map-image-wrap:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.map-image-hint {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  background: rgba(9, 9, 9, 0.75);
  color: var(--text);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  pointer-events: none;
}
.map-image-hint i { margin-right: 0.3rem; }

.map-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}
.map-note i { color: var(--red); margin-top: 0.2rem; flex-shrink: 0; }

.map-vendor-directory { margin-top: 1.5rem; }
.map-vendor-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.map-vendor-heading h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.map-vendor-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.map-vendor-search-wrap {
  position: relative;
  margin-bottom: 0.85rem;
}
.map-vendor-search-wrap i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.map-vendor-search-wrap input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.6rem 0.9rem 0.6rem 2.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
}
.map-vendor-search-wrap input:focus {
  outline: none;
  border-color: var(--red);
}
.map-vendor-search-wrap input::placeholder { color: var(--text-muted); }

.map-vendor-list {
  list-style: none;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.map-vendor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.map-vendor-item:last-child { border-bottom: none; }
.map-vendor-item:nth-child(odd) { background: var(--bg-card); }
.map-vendor-num {
  flex-shrink: 0;
  min-width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
}
.map-vendor-name { color: var(--text); }
.map-vendor-floor {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.map-vendor-floor[data-venue="upstairs"]    { border-color: var(--venue-upstairs);    color: var(--venue-upstairs); }
.map-vendor-floor[data-venue="downstairs"]  { border-color: var(--venue-downstairs);  color: var(--venue-downstairs); }
.map-vendor-floor[data-venue="outside"]     { border-color: var(--venue-outside);     color: var(--venue-outside); }
.map-vendor-floor[data-venue="main-floor"]  { border-color: var(--venue-main-floor);  color: var(--venue-main-floor); }
.map-vendor-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Vendor Directory section (all floors combined) ---- */
.vendor-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.vendor-filter-tab {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.vendor-filter-tab:hover {
  border-color: var(--red);
  color: var(--red);
}
.vendor-filter-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.vendor-filter-tab[data-venue="upstairs"]    i { color: var(--venue-upstairs); }
.vendor-filter-tab[data-venue="downstairs"]  i { color: var(--venue-downstairs); }
.vendor-filter-tab[data-venue="outside"]     i { color: var(--venue-outside); }
.vendor-filter-tab[data-venue="main-floor"]  i { color: var(--venue-main-floor); }
.vendor-filter-tab.active i { color: var(--white); }

#vendor-directory .map-vendor-directory {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   VENUE MAP LIGHTBOX
   ============================================= */
.map-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 3, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.map-lightbox.open { display: flex; }
.map-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.map-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.map-lightbox-close:hover { color: var(--red); border-color: var(--red); }
body.map-lightbox-locked { overflow: hidden; }

@media (max-width: 600px) {
  .map-vendor-list { max-height: 340px; }
}

/* =============================================
   EVENT DETAIL MODAL
   ============================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, 0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-backdrop.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--ease);
}
.modal-close:hover { color: var(--text); }

.modal-venue-badge {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.modal-venue-badge[data-venue="upstairs"] {
  background: rgba(212, 146, 42, 0.15);
  color: var(--venue-upstairs);
}
.modal-venue-badge[data-venue="downstairs"] {
  background: rgba(123, 77, 170, 0.15);
  color: var(--venue-downstairs);
}
.modal-venue-badge[data-venue="outside"] {
  background: rgba(47, 158, 110, 0.15);
  color: var(--venue-outside);
}
.modal-venue-badge[data-venue="main-floor"] {
  background: rgba(41, 128, 185, 0.15);
  color: var(--venue-main-floor);
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.modal-time {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.modal-time i {
  color: var(--red);
  margin-right: 0.4rem;
}
.modal-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.modal-hosts {
  margin-bottom: 1.25rem;
}
.modal-hosts-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.modal-hosts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.modal-host-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.12);
  color: var(--red);
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

/* =============================================
   SCHEDULE LIST VIEW — Mobile fallback
   ============================================= */
.schedule-list {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}
.schedule-list .event-card {
  margin: 0;
}
.schedule-list .event-card-venue {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.schedule-list .event-card-venue[data-venue="upstairs"]    { color: var(--venue-upstairs); }
.schedule-list .event-card-venue[data-venue="downstairs"]  { color: var(--venue-downstairs); }
.schedule-list .event-card-venue[data-venue="outside"]     { color: var(--venue-outside); }
.schedule-list .event-card-venue[data-venue="main-floor"]  { color: var(--venue-main-floor); }

/* Time group headers in list view */
.schedule-list-time {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
  padding: 0.75rem 0 0.35rem;
  border-bottom: 1px solid var(--border);
  margin-top: 0.5rem;
  position: sticky;
  top: var(--nav-h);
  background: var(--bg);
  z-index: 4;
}

/* =============================================
   CELEBRITY AUTOGRAPH & BREAK SCHEDULE
   ============================================= */
.autograph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.autograph-legend-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.autograph-legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.autograph-legend-swatch.signing { background: var(--red); }
.autograph-legend-swatch.break   { background: #444; }
.autograph-legend-swatch.qa      { background: var(--venue-downstairs); }

.autograph-ruler {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.autograph-ruler-track {
  position: relative;
  height: 20px;
}
.autograph-ruler-mark {
  position: absolute;
  top: 0;
  padding-top: 7px;
  font-family: var(--font-body);
  font-size: 0.64rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.autograph-ruler-mark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 5px;
  background: var(--border);
}

.autograph-schedule {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.autograph-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 1rem;
}
.autograph-row-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text);
}
.autograph-row-timeline {
  position: relative;
  height: 38px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.autograph-row-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}
.autograph-block {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  border-right: 1px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 2px;
  transition: opacity var(--ease);
}
.autograph-block.is-compact {
  padding: 0;
}
.autograph-block.signing { background: var(--red); }
.autograph-block.break   { background: #444; color: var(--text-muted); }
.autograph-block.qa      {
  background: var(--venue-downstairs);
  cursor: pointer;
}
.autograph-block.qa:hover,
.autograph-block.qa:focus-visible {
  opacity: 0.85;
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

@media (max-width: 600px) {
  .autograph-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .autograph-block {
    font-size: 0;
  }
  .autograph-ruler {
    grid-template-columns: 1fr;
  }
  .autograph-ruler-spacer {
    display: none;
  }
  .autograph-ruler-mark {
    font-size: 0.58rem;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  /* Hide grid, show list */
  .schedule-grid { display: none !important; }
  .schedule-list { display: flex !important; }

  .modal-content {
    padding: 1.5rem;
    max-height: 90vh;
  }
  .modal-title {
    font-size: 1.2rem;
  }
}

/* =============================================
   NO-JAVASCRIPT FALLBACK
   Everything below is only ever rendered inside a <noscript> tag, so
   it's invisible to (and never downloaded/executed by) visitors with
   JavaScript enabled — see schedule.html for where each block lives.
   ============================================= */
.nojs-schedule-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1rem;
}
.nojs-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.nojs-schedule-table caption {
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.nojs-schedule-table th,
.nojs-schedule-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.nojs-schedule-table td:last-child {
  white-space: normal;
}
.nojs-schedule-table thead th {
  background: var(--bg-card);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.nojs-schedule-table tbody tr:last-child td {
  border-bottom: none;
}
.nojs-schedule-table tr.nojs-milestone-row td {
  background: rgba(211, 47, 47, 0.08);
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
