/*---------------------------------------
  PAST EDITION PAGES (YYYY.htm, keynote-speakers.htm)
  Builds on templatemo-nomad-force.css
-----------------------------------------*/

.navbar-logo {
  height: 40px;
  width: auto;
}

.edition-header {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.edition-header h1 {
  color: var(--white-color) !important;
  margin-bottom: 0.25rem;
}

.edition-header .lead {
  color: var(--text-secondary-white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
  margin-bottom: 0;
}


.edition-pager a {
  color: var(--text-secondary-white-color);
}

.edition-pager a:hover {
  color: var(--primary-color);
}

.edition-pager {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
}

.edition-section {
  padding-top: 3.5rem;
}

.edition-section:last-of-type {
  padding-bottom: 4rem;
}

/* Location / Date / Organisation / Contact */
.fact {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  height: 100%;
}

.fact-label {
  color: var(--dark-color);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.fact ul {
  font-size: 18px;
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.fact p {
  font-size: 18px;
  margin-bottom: 0;
}

/* Details: programme, pictures, videos */
.detail-links .btn {
  margin: 0 0.5rem 0.5rem 0;
  text-decoration: none;
}

.detail-links .btn small {
  font-weight: var(--font-weight-light);
  opacity: 0.85;
}

.detail-links .btn.disabled {
  color: var(--p-color);
  border-color: #ccc;
}

/* 25th edition feature box (2025) */
.feature-box {
  padding: 2rem;
}

.feature-box h2,
.feature-box p {
  color: var(--white-color);
}

.feature-box img {
  border-radius: 8px;
}

/* Sponsors */
.sponsor-logos img {
  max-height: 90px;
  max-width: 220px;
  object-fit: contain;
}

/* Tables */
.keynotes-table tbody a,
.keynotes-table tbody a:hover {
  color: var(--white-color);
}

.sessions-table {
  font-size: 15px;
}

.sessions-table th {
  color: var(--dark-color);
}

.sessions-table td a {
  white-space: nowrap;
}

.table-count {
  font-size: 16px;
  color: #555;
}

/* Keynote speaker bios */
.bio {
  overflow: hidden;
  padding-top: 1.5rem;
}

.bio img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}

.bio p {
  font-size: 18px;
}

/* Keynote speakers A-Z */
.letter-index a {
  display: inline-block;
  min-width: 2.2rem;
  margin: 0 0.25rem 0.5rem 0;
  text-align: center;
  text-decoration: none;
}

.speaker-list li {
  font-size: 18px;
  margin-bottom: 0.5rem;
}

.speaker-list .year {
  font-weight: var(--font-weight-bold);
}

@media screen and (max-width: 575px) {
  .bio img {
    float: none !important;
    display: block;
    margin: 0 0 1rem 0 !important;
  }
}

.table td.text-end a {
  white-space: nowrap;
}

.bio h3 {
  font-size: 24px;
}

.speaker-letter {
  padding-top: 2rem;
}

/* Small screens: each table row becomes a stacked card */
@media screen and (max-width: 767px) {
  .stack-table thead {
    display: none;
  }

  .stack-table,
  .stack-table tbody,
  .stack-table tr,
  .stack-table td {
    display: block;
    width: 100%;
  }

  .stack-table tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }

  .keynotes-table.stack-table tr {
    border-bottom-color: rgba(255, 255, 255, 0.3);
  }

  .stack-table td {
    border: 0;
    padding: 0.15rem 0.75rem;
    text-align: left !important;
  }

  .stack-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
  }

  .sponsor-logos img {
    max-width: 40vw;
    max-height: 70px;
  }
}
