/* Full-bleed section that is centered to the viewport (works inside Cayman .main-content) */
/* .schedule-breakout {
  position: relative;
  --width: min(120%, 90vw);
  width: var(--width);
  margin-left: calc(50% - var(--width)/2);
  margin-right: calc(50% - var(--width)/2);
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
}

.schedule-breakout-inner {
  display: inline-block;
  width: min(1200px, 100%);
  margin: 0;
}

.schedule-breakout .schedule-grid {
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  text-align: left;
} */


/* =========================================
   Schedule tables – layout & typography
   ========================================= */

.schedule-grid {
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  text-align: left;
}

/* 1 row = 10 minutes (your slots.yml granularity) */
.schedule-grid {
  --row-h: 26px;            /* adjust: 24–32px */
}

/* Force equal-height rows */
.schedule-grid tbody tr {
  height: var(--row-h);
}

.schedule-grid tbody th,
.schedule-grid tbody td {
  height: var(--row-h);     /* important: tables honor cell height better than tr */
}

.schedule-grid th,
.schedule-grid td {
  border: 1px solid #d5d5d5;
  padding: 0.25rem 0.35rem;
}

.schedule-grid thead th {
  background-color: #f2f4f5;
  text-align: center;
  font-weight: 600;
}

.schedule-grid .time-col {
  width: 4.5rem;
  white-space: nowrap;
  background-color: #f7f9fa;
  text-align: center;
  font-weight: 600;
}

.schedule-grid .day-col {
  text-align: center;
}

.schedule-grid .slot {
  vertical-align: top;
  min-width: 8rem;
}

.schedule-grid .slot.empty {
  background-color: #ffffff;
}

.schedule-grid .slot-inner {
  padding: 0.15rem 0.25rem;
  /* line-height: 1.28; */
}

.schedule-grid .slot-title {
  font-weight: 600;
}

.schedule-grid .slot-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.25);
}

.schedule-grid .slot-title a:hover {
  text-decoration: none;
  border-bottom-style: solid;
}

.schedule-grid .slot-time,
.schedule-grid .slot-speaker,
.schedule-grid .slot-affiliation {
  font-size: 0.75rem;
  color: #444444;
}

.schedule-grid .slot-speaker a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.25);
}

.schedule-grid .slot-speaker a:hover {
  text-decoration: none;
  border-bottom-style: solid;
}

/* =========================================
   Base event styles + hover
   ========================================= */

.schedule-grid .event,
.schedule-grid [class^="event-type-"],
.schedule-grid [class*=" event-type-"] {
  background-color: #f7fbff;
  border-left: 3px solid #9ea5b3;
  position: relative;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

/* =========================================
   Type-specific color palette
   ========================================= */

/* Registration / admin */
.schedule-grid .event-type-registration {
  background-color: #e4f3e47a;
  border-left-color: #2e7d327a;
}

/* Plenary / opening / closing / remarks */
.schedule-grid .event-type-plenary {
  background-color: #e4f3e4;
  border-left-color: #2e7d32;
}

/* Invited talks */
.schedule-grid .event-type-invited,
.schedule-grid .event-type-invited-talk {
  background-color: #f9e3b3;
  border-left-color: #d88a00;
}

/* Contributed talks */
.schedule-grid .event-type-contributed,
.schedule-grid .event-type-contributed-talk {
  background-color: #ebe6ff;
  /* periwinkle */
  border-left-color: #5c6bc0;
  /* indigo */
}

/* Coffee / short breaks */
.schedule-grid .event-type-break,
.schedule-grid .event-type-coffee {
  background-color: #fcfcfc;
  border-left-color: #757575;
}

/* Meals (lunch / dinner) */
.schedule-grid .event-type-meal {
  background-color: #fdf6f6;
  /* very light warm tint */
  border-left-color: #c62828;
}

/* Open problem session */
.schedule-grid .event-type-problem {
  background-color: #e0f4f6;
  border-left-color: #00838f;
}

/* Excursion / social events */
.schedule-grid .event-type-excursion {
  background-color: #f3f1f7;
  /* softer lavender */
  border-left-color: #7e57c2;
}

/* Special sessions */
.schedule-grid .event-type-special,
.schedule-grid .event-type-special-session {
  background-color: #d3e5f7;
  /* clearer blue */
  border-left-color: #4d8ec0;
}

/* Fallback */
.schedule-grid .event-type-default {
  background-color: #f5fbff;
  border-left-color: #90a4ae;
}


.schedule-legend {
  max-width: 1350px;   /* match your breakout-inner if you want */
  margin: 0.5rem auto 0;
  font-size: 0.9rem;
  color: #1f2328;
}

.legend-item {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 0 6px 0 10px;
  border: 1px solid rgba(0,0,0,0.15);
  font-weight: 700;
}

.legend-it { background: #f9e3b3; color: #6b4a00; }
.legend-ct { background: #ebe6ff; color: #232a6d; }
.legend-ss { background: #d3e5f7; color: #0f3e5a; }
.legend-op { background: #e0f4f6; color: #0f3e5a; } /* optional */



/* =========================================
   Responsive tweaks
   ========================================= */

@media (max-width: 700px) {

  .schedule-grid th,
  .schedule-grid td {
    padding: 0.2rem 0.25rem;
    font-size: 0.75rem;
  }

  .schedule-grid .slot-time,
  .schedule-grid .slot-speaker,
  .schedule-grid .slot-affiliation {
    font-size: 0.7rem;
  }

  .schedule-grid .time-col {
    width: 3.2rem;
  }
}
