*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-header {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: #2563eb;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
}

.affiliation {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #444;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
  color: #222;
}

section {
  margin-bottom: 2rem;
}

section h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}

section p {
  margin: 0 0 1rem;
}

section p:last-child {
  margin-bottom: 0;
}

.page-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.speaker-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.speaker-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.speaker-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.speaker-list a {
  color: #1a1a1a;
  text-decoration: none;
}

.speaker-list a:hover .speaker-name {
  color: #2563eb;
}

.speaker-name {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.speaker-affiliation {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: #444;
}

.speaker-talk-title {
  display: block;
  font-size: 0.9375rem;
  color: #666;
  font-style: italic;
}

.references {
  margin-top: 1rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #555;
}

.references li {
  margin-bottom: 0.5rem;
}

.program-main {
  max-width: 960px;
}

.program-intro {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: #444;
}

.program-intro p {
  margin: 0 0 0.75rem;
}

.program-intro p:last-child {
  margin-bottom: 0;
}

.program-intro a {
  color: #2563eb;
}

.nav-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: #2563eb;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

.day-section {
  margin-bottom: 2.5rem;
}

.day-section:last-child {
  margin-bottom: 0;
}

.day-heading {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.program-table thead th {
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.program-table td {
  padding: 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}

.program-table .col-time {
  width: 11rem;
  font-weight: 600;
  white-space: nowrap;
  color: #333;
}

.program-table tr.event-break td {
  background: #f8f8f8;
  color: #555;
}

.program-table tr.event-plenary td {
  background: #f0f7ff;
}

.program-table tr.event-plenary a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.program-table tr.event-plenary a:hover {
  text-decoration: underline;
}

.session-title {
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.talk-list {
  margin: 0.375rem 0 0;
  padding-left: 1.25rem;
}

.talk-list li {
  margin-bottom: 0.375rem;
}

.program-table .talk-list a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.program-table .talk-list a:hover {
  text-decoration: underline;
}

.talk-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 599px) {
  .program-table thead {
    display: none;
  }

  .program-table tr {
    display: block;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
  }

  .program-table tr.event-break,
  .program-table tr.event-plenary {
    padding: 0.75rem;
    border-radius: 4px;
  }

  .program-table td {
    display: block;
    padding: 0.25rem 0;
    border-bottom: none;
  }

  .program-table td.col-time:empty {
    display: none;
  }

  .program-table td.col-time:not(:empty) {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
  }

  .program-table td.col-session1::before,
  .program-table td.col-session2::before {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
  }

  .program-table td.col-session1::before {
    content: "Session 1";
  }

  .program-table td.col-session2::before {
    content: "Parallel session 2";
  }

  .program-table td.col-full::before {
    display: none;
  }

  .program-table td.col-session2:empty {
    display: none;
  }
}

@media (min-width: 600px) {
  main {
    padding: 2.5rem 1.5rem 4rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .page-title {
    font-size: 1.75rem;
  }
}

.talks-main {
  max-width: 800px;
}

.talks-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.talks-nav .nav-link {
  margin-bottom: 0;
}

.track-section {
  margin-bottom: 2rem;
}

.track-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid #e0e0e0;
}

.talk-list-index {
  list-style: none;
  margin: 0;
  padding: 0;
}

.talk-list-index li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.talk-list-index li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.talk-list-index a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.talk-list-index a:hover .talk-title {
  color: #2563eb;
}

.talk-title {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.talk-speaker {
  display: block;
  font-size: 0.875rem;
  color: #555;
}

.talk-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.5;
}

.talk-meta-label {
  font-weight: 600;
  color: #666;
}
