/* ==========================================================================
   Conference Program Styles
   Generated by xlsx_to_hugo_program.py
   ========================================================================== */

/* --- Table layout --- */
table.program {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

table.program th,
table.program td {
  padding: 6px 10px;
  vertical-align: middle;
  border: 1px solid #ccc;
}

/* --- Column header row --- */
table.program thead th {
  background: #e0e0e0;
  font-weight: bold;
  text-align: center;
}

/* --- Cell types --- */
.program-time {
  text-align: center;
  white-space: nowrap;
  width: 12%;
}

.program-title {
  text-align: center;
  width: 30%;
}

.program-authors {
  text-align: center;
  font-size: 0.9em;
  width: 14%;
}

/* --- Session headers (invited talks, paper sessions) --- */
tr.program-session-header th {
  background: #b0d4f1;
  text-align: center;
  font-weight: bold;
}

/* --- Break rows (coffee, lunch) --- */
tr.program-break td {
  background: #ffffcc;
  text-align: center;
  font-style: italic;
}

/* --- Registration rows --- */
tr.program-registration td {
  background: #e0e0e0;
  text-align: center;
}

/* --- Social events (reception, PC dinner, social event) --- */
tr.program-social td {
  text-align: center;
}

/* --- Business meeting --- */
tr.program-business td {
  text-align: center;
}


/* --- Invited talks --- */
tr.program-invited th {
  background: #b0d4f1;
}

/* --- Tutorials --- */
tr.program-tutorial th {
  background: #b0d4f1;
  text-align: center;
}

/* --- Student forum --- */
tr.program-student_forum th {
  background: #b0d4f1;
  text-align: center;
}

/* --- Opening / closing --- */
tr.program-opening th,
tr.program-closing th {
  background: #f8cecc;
  text-align: center;
}

tr.program-special th {
  background: #b0d4f1;
  text-align: center;
}

/* --- Track labels in two-track sessions --- */
.program-track-label {
  display: inline-block;
  vertical-align: middle;
}

.program-track-separator {
  display: inline-block;
  width: 2em;
  min-width: 2em;
}

/* --- Day heading --- */
.program-day-heading {
  text-align: center;
  margin: 1.5em 0 0.5em;
}

/* --- Responsive: allow horizontal scroll on small screens --- */
@media (max-width: 768px) {
  .program-wrapper {
    overflow-x: auto;
  }

  table.program th,
  table.program td {
    padding: 4px 6px;
    font-size: 0.85em;
  }

  .program-time {
    width: 15%;
  }

  .program-title {
    width: 28%;
  }

  .program-authors {
    width: 12%;
  }
}

/* ==========================================================================
   Program tabs & modern accent styling
   Originally an inline <style> block in content/program.md; extracted here
   so it can be shared verbatim by other pages (e.g. VSTTE). Kept AFTER the
   block above and in the same relative order it had when it lived later in
   the document (inline, in the body) so the cascade -- and which rules win
   on shared selectors like .program-time/.program-title/table.program --
   resolves exactly as it did before.
   ========================================================================== */

.program-tabs { max-width: 1100px; margin: 0 auto; }

.program-tab-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.program-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  justify-content: center;
  margin: 0 0 1.2em;
  border-bottom: 2px solid #e2e2e2;
  padding-bottom: 0.6em;
}

.program-tab-label {
  cursor: pointer;
  padding: 0.5em 1.1em;
  border-radius: 4px;
  background: #f2f2f2;
  color: #444;
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
  text-align: center;
}
.program-tab-label:hover { background: #e6e6e6; }

/* Active tab styling, driven purely by the :checked sibling relationship */
#tab-mon:checked ~ .program-tab-nav label[for="tab-mon"],
#tab-tue:checked ~ .program-tab-nav label[for="tab-tue"],
#tab-wed:checked ~ .program-tab-nav label[for="tab-wed"],
#tab-thu:checked ~ .program-tab-nav label[for="tab-thu"],
#tab-fri:checked ~ .program-tab-nav label[for="tab-fri"] {
  background: #193380;
  color: #fff;
}

/* Keyboard focus ring on the active input, shown on its label */
#tab-mon:focus-visible ~ .program-tab-nav label[for="tab-mon"],
#tab-tue:focus-visible ~ .program-tab-nav label[for="tab-tue"],
#tab-wed:focus-visible ~ .program-tab-nav label[for="tab-wed"],
#tab-thu:focus-visible ~ .program-tab-nav label[for="tab-thu"],
#tab-fri:focus-visible ~ .program-tab-nav label[for="tab-fri"] {
  outline: 2px solid #193380;
  outline-offset: 2px;
}

.program-tab-panel { display: none; }
#tab-mon:checked ~ #panel-mon,
#tab-tue:checked ~ #panel-tue,
#tab-wed:checked ~ #panel-wed,
#tab-thu:checked ~ #panel-thu,
#tab-fri:checked ~ #panel-fri {
  display: block;
  animation: program-fade 0.15s ease;
}
@keyframes program-fade { from { opacity: 0; } to { opacity: 1; } }

.program-day-heading { text-align: center; margin-top: 0; }

.program-scroll { -webkit-overflow-scrolling: touch; }

/* ---------- Table look & feel ---------- */
table.program {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  margin-bottom: 1em;
}
table.program th,
table.program td {
  padding: 0.5em 0.7em;
  vertical-align: top;
  border-bottom: 1px solid #e5e5e5;
}
table.program thead th {
  background: #193380;
  color: #fff;
  font-weight: 600;
  text-align: left;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 2;
}
.program-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #193380;
}
.program-authors {
  color: #6b7280;
  font-size: 0.85em;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
}
.program-talk-time {
  display: inline-block;
  font-size: 0.8em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #193380;
  margin-bottom: 0.2em;
}
.program-location {
  display: inline-block;
  font-size: 0.85em;
  font-weight: 600;
  color: #193380;
  border-radius: 1px;
  padding: 0.05em 0.5em;
  margin-left: 0.4em;
}
.program-chair {
  display: block;
  font-size: 0.85em;
  font-weight: 400;
  font-style: italic;
  color: #5a5a5a;
  border-radius: 1px;
  padding: 0.05em 0.5em;
  margin-left: 0;
}

/* Row-type accents: a colored left rule + icon + tinted background,
   driven entirely by the classes already present in the markup. */
table.program tbody tr.program-break td,
table.program tbody tr.program-social td,
table.program tbody tr.program-tutorial th,
table.program tbody tr.program-special th,
table.program tbody tr.program-session-header th {
  border-bottom: 1px solid #e5e5e5;
}

tr.program-break > td:nth-child(1) { border-left: 4px solid #d4a017; padding-left: 0.6em; background: #fdf8ec; }
tr.program-social > td:nth-child(1) { border-left: 4px solid #8e5fbf; padding-left: 0.6em; background: #f6f1fb; }
tr.program-tutorial > th { border-left: 4px solid #2f8f7c; padding-left: 0.6em; background: #eef8f6; }
/* extend the marker onto the time row that immediately follows (not the whole column) */
tr.program-tutorial + tr > td.program-time { border-left: 4px solid #2f8f7c; padding-left: 0.6em; }
tr.program-special > th { border-left: 4px solid #c1440e; padding-left: 0.6em; background: #fcefe9; }
tr.program-special + tr > td.program-time { border-left: 4px solid #c1440e; padding-left: 0.6em; }
tr.program-session-header > th {
  background: #f3f7f9;
  font-weight: 700;
}
tr.program-session-header > th:first-child {
  border-left: 4px solid #193380;
  padding-left: 0.6em;
}
/* extend the marker onto the time row that immediately follows, but only for
   single-column headers (invited talks) -- track headers already carry their
   own time cell and must not bleed the border onto the talk rows below */
tr.program-session-header:not(.program-track-header) + tr > td.program-time {
  border-left: 4px solid #193380;
  padding-left: 0.6em;
}

/* Track-header pills (Track 1 / Track 2 side-by-side labels) */
.program-track-label {
  display: inline-block;
  font-weight: 700;
  color: #193380;
}
.program-track-separator { display: inline-block; width: 1.5em; }

/* Tint the two parallel tracks on multi-track days so the eye can
   follow one column without a ruler. Only applies to plain, unclassed
   paper rows -- break/registration/social/tutorial rows are untouched. */
table.program tbody tr:not([class]) > td:nth-child(2) {
  background: #f7fafc;
}
table.program tbody tr:not([class]) > td:nth-child(3) {
  background: #fdf9f4;
  border-left: 1px solid #eee;
}
table.program tbody tr:not([class]):hover > td {
  background: #eef2f5;
}

@media (max-width: 640px) {
  .program-tab-label { padding: 0.45em 0.8em; font-size: 0.85em; }
  table.program { font-size: 0.82em; }
  table.program th, table.program td { padding: 0.4em 0.5em; }
}
</content>
