/*--------------------------------------------------------------
# Schedule Section (moved out of style.css)
# Load AFTER style.css:
# <link rel="stylesheet" href="./assets/css/agenda-schedule.css?v<?= time(); ?>">
#
# Original rules are kept as they were. Small refinements are
# merged in and marked with "refined". Colors still come from the
# variables in style.css.
--------------------------------------------------------------*/

/* refined: page-level polish (agenda page only) */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* fixed header no longer hides anchor jumps */
}

#schedule .row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

#schedule {
  padding: 60px 0 60px 0;
}

#schedule .nav-tabs {
  text-align: center;
  margin: auto;
  display: block;
  border-bottom: 0;
  margin-bottom: 30px;
}

#schedule .nav-tabs li {
  display: inline-block;
  margin-bottom: 0;
}

#schedule .nav-tabs a {
  border: none;
  border-radius: 50px;
  font-weight: 600;
  background-color: var(--default-text);
  color: var(--text-white);
  padding: 10px 100px;
  /* refined */
  box-shadow: 0 4px 14px rgba(172, 109, 255, 0.28);
  transition: box-shadow 0.2s ease;
}

#schedule .nav-tabs a.active {
  background-color: var(--primary);
  color: var(--text-white);
}

#schedule .sub-heading {
  text-align: center;
  font-size: 18px;
  font-style: italic;
  margin: 0 auto 30px auto;
}

#schedule .tab-pane {
  transition: ease-in-out 0.2s;
}

#schedule .schedule-item {
  border-bottom: 1px solid #e7d5ff;
  padding-top: 22px; /* refined: was 15px */
  padding-bottom: 22px; /* refined: was 15px */
  transition: background-color ease-in-out 0.3s;
}

#schedule .schedule-item:hover {
  background-color: #f4eafa;
}
.time-chip {
  background: #f6efff;
  padding: 0.2em 1em;
  color: var(--primary);
  border-radius: 50px;
}

.panel-chip {
  background: var(--accent-light);
  border-radius: 50px;
  padding: 6px 25px;
  line-height: 1em;
  color: var(--accent);
  font-size: 20px;
}
#schedule .schedule-item time {
  padding-bottom: 5px;
  display: inline-block;
  /* refined */
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#schedule .schedule-item .speaker {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 50%;
  float: left;
  margin: 0 10px 10px 0;
}

#schedule .schedule-item .speaker img {
  height: 100%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  margin-left: 50%;
  transition: all ease-in-out 0.3s;
}

#schedule .schedule-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  /* refined */
  line-height: 1.35;
  text-wrap: balance;
}

#schedule .schedule-item h4 span {
  font-size: 16px;
}

#schedule .schedule-item p {
  color: var(--link);
  margin-bottom: 0;
  /* refined */
  line-height: 1.65;
  text-wrap: pretty;
}

/* refined: lists and speaker blocks */
#schedule .schedule-item ul {
  line-height: 1.6;
}
#schedule .schedule-item ul li {
  margin-bottom: 4px;
}
#schedule .schedule-item ul ul {
  margin-top: 4px;
}
#schedule .schedule-item .row p {
  line-height: 1.45;
}
#schedule .schedule-item img {
  max-width: 100%;
  height: auto;
}

/* NEW: role chips for "Moderator:", "Panelists:", "Group leaders:" labels.
   Targets the label heading the JS already renders (.row > .col-12 > h4 > strong),
   so no HTML or JS change is needed. */
#schedule .schedule-item .row > .col-12 > h4 > strong {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--hover);
}

.category-highlight {
  background: var(--primary);
  text-align: center;
  font-size: 20px;
  color: white;
  padding: 15px;
  /* refined */
  border-radius: 6px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(172, 109, 255, 0.25);
}

/* refined: hover shadow on day pills (desktop only) */
@media (hover: hover) {
  #schedule .nav-tabs a:hover {
    box-shadow: 0 6px 18px rgba(172, 109, 255, 0.38);
  }
}

/* refined: keyboard focus */
#schedule a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Responsive (moved from style.css) ---------- */
@media (min-width: 991px) {
  #schedule .sub-heading {
    width: 75%;
  }
}

@media (max-width: 991px) {
  #schedule .nav-tabs a {
    padding: 8px 60px;
  }
}

@media (max-width: 767px) {
  #schedule .nav-tabs a {
    padding: 8px 50px;
  }
}

/* refined: mobile spacing, keeps the chat bubble off the last lines */
@media (max-width: 767.98px) {
  #schedule .schedule-item {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  #schedule .schedule-item time {
    display: block;
    margin-bottom: 2px;
  }
  #schedule {
    padding-bottom: 100px;
  }
}

@media (max-width: 480px) {
  #schedule .nav-tabs a {
    padding: 8px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  #schedule * {
    transition: none !important;
  }
}
