/* Timetable & Calendar Palette Styles */

:root {
  --color-invited: #DC2626;
  --color-contributed: #2563EB;
  --color-break: #059669;
  --color-dinner: #9333EA;
  --color-meeting: #D97706;
  --color-posters: #7C3AED;
  --color-general: #4B5563;
  --color-chair: #0D9488;
}

/* Legend */
.timetable-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  background-color: var(--md-code-bg-color, #f5f5f5);
  border: 1px solid var(--md-typeset-table-color, #e0e0e0);
  border-radius: 8px;
}

.timetable-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  margin-right: 0.6rem;
}

.legend-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.legend-dot.invited { background-color: var(--color-invited); }
.legend-dot.contributed { background-color: var(--color-contributed); }
.legend-dot.break { background-color: var(--color-break); }
.legend-dot.posters { background-color: var(--color-posters); }
.legend-dot.dinner { background-color: var(--color-dinner); }
.legend-dot.meeting { background-color: var(--color-meeting); }
.legend-dot.chair { background-color: var(--color-chair); }
.legend-dot.general { background-color: var(--color-general); }

/* Badges / Tags */
.session-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
  white-space: nowrap;
}

.tag-invited {
  color: #ffffff !important;
  background-color: var(--color-invited);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.35);
}

.tag-contributed {
  color: #ffffff !important;
  background-color: var(--color-contributed);
}

.tag-break {
  color: #ffffff !important;
  background-color: var(--color-break);
}

.tag-lunch {
  color: #ffffff !important;
  background-color: var(--color-break);
}

.tag-dinner {
  color: #ffffff !important;
  background-color: var(--color-dinner);
  box-shadow: 0 1px 3px rgba(147, 51, 234, 0.35);
}

.tag-meeting {
  color: #ffffff !important;
  background-color: var(--color-meeting);
}

.tag-posters {
  color: #ffffff !important;
  background-color: var(--color-posters);
}

.tag-chair {
  color: #ffffff !important;
  background-color: var(--color-chair);
}

.tag-general {
  color: #ffffff !important;
  background-color: var(--color-general);
}

/* Time column styling */
.time-col {
  white-space: nowrap;
  font-family: var(--md-code-font-family, monospace);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Markdown Table row accent borders */
.timetable-table tr.row-invited td:first-child {
  border-left: 4px solid var(--color-invited);
}
.timetable-table tr.row-invited {
  background-color: rgba(220, 38, 38, 0.07);
}
[data-md-color-scheme="slate"] .timetable-table tr.row-invited {
  background-color: rgba(220, 38, 38, 0.18);
}

.timetable-table tr.row-break td:first-child,
.timetable-table tr.row-lunch td:first-child {
  border-left: 4px solid var(--color-break);
}
.timetable-table tr.row-break,
.timetable-table tr.row-lunch {
  background-color: rgba(5, 150, 105, 0.05);
}
[data-md-color-scheme="slate"] .timetable-table tr.row-break,
[data-md-color-scheme="slate"] .timetable-table tr.row-lunch {
  background-color: rgba(5, 150, 105, 0.14);
}

.timetable-table tr.row-dinner td:first-child {
  border-left: 4px solid var(--color-dinner);
}
.timetable-table tr.row-dinner {
  background-color: rgba(147, 51, 234, 0.07);
}
[data-md-color-scheme="slate"] .timetable-table tr.row-dinner {
  background-color: rgba(147, 51, 234, 0.18);
}

.timetable-table tr.row-posters td:first-child {
  border-left: 4px solid var(--color-posters);
}
.timetable-table tr.row-posters {
  background-color: rgba(124, 58, 237, 0.05);
}
[data-md-color-scheme="slate"] .timetable-table tr.row-posters {
  background-color: rgba(124, 58, 237, 0.15);
}

.timetable-table tr.row-meeting td:first-child {
  border-left: 4px solid var(--color-meeting);
}
.timetable-table tr.row-meeting {
  background-color: rgba(217, 119, 6, 0.06);
}
[data-md-color-scheme="slate"] .timetable-table tr.row-meeting {
  background-color: rgba(217, 119, 6, 0.16);
}

.timetable-table tr.row-chair td:first-child {
  border-left: 4px solid var(--color-chair);
}
.timetable-table tr.row-chair {
  background-color: rgba(13, 148, 136, 0.06);
}
[data-md-color-scheme="slate"] .timetable-table tr.row-chair {
  background-color: rgba(13, 148, 136, 0.16);
}

/* Organising Committee 2x2 Grid */
.md-typeset .committee-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
  margin: 1.5rem 0 2.5rem 0 !important;
  width: 100% !important;
}

@media (max-width: 640px) {
  .md-typeset .committee-grid {
    grid-template-columns: 1fr !important;
  }
}

.md-typeset .committee-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 1.5rem 1rem !important;
  background-color: var(--md-code-bg-color, #f8fafc) !important;
  border: 1px solid var(--md-typeset-table-color, #e2e8f0) !important;
  border-radius: 14px !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.md-typeset .committee-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.09) !important;
  border-color: #2563eb !important;
}

[data-md-color-scheme="slate"] .md-typeset .committee-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

.md-typeset .committee-avatar-link {
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  transition: opacity 0.2s ease !important;
}

.md-typeset .committee-avatar-link:hover {
  opacity: 0.9 !important;
}

.md-typeset .committee-avatar-wrapper {
  width: 140px !important;
  height: 140px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  margin: 0 auto 0.9rem auto !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
  display: block !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.md-typeset .committee-avatar-link:hover .committee-avatar-wrapper {
  transform: scale(1.04) !important;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25) !important;
}

[data-md-color-scheme="slate"] .md-typeset .committee-avatar-wrapper {
  border-color: #334155 !important;
}

.md-typeset .committee-avatar {
  width: 140px !important;
  height: 140px !important;
  min-width: 140px !important;
  min-height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  margin: 0 auto !important;
}

.md-typeset .committee-name {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--md-typeset-color, #0f172a) !important;
  margin: 0.2rem 0 !important;
  line-height: 1.3 !important;
  transition: color 0.2s ease !important;
}

.md-typeset .committee-avatar-link:hover .committee-name {
  color: #2563eb !important;
  text-decoration: underline !important;
}

.md-typeset .committee-affiliation {
  font-size: 0.9rem !important;
  color: var(--md-default-fg-color--light, #64748b) !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

/* Speaker single 5th card layout */
.md-typeset .speaker-single-wrapper {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: -1rem 0 2.5rem 0 !important;
}

.md-typeset .speaker-card-center {
  width: calc(50% - 0.75rem) !important;
  max-width: 100% !important;
}

@media (max-width: 640px) {
  .md-typeset .speaker-single-wrapper {
    margin-top: 0 !important;
  }
  .md-typeset .speaker-card-center {
    width: 100% !important;
  }
}




