/* TEA Talks */

.tea-sessions {
  margin-top: 2em;
}

.tea-session {
  padding: 1.35em 1.5em;
  margin-bottom: 1.25em;
  border: 1px solid rgba(127, 127, 127, 0.25);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.05);
  scroll-margin-top: 80px;
}

.tea-session-head {
  display: flex;
  gap: 1.1em;
  align-items: flex-start;
}

.tea-head-text {
  flex: 1;
  min-width: 0;
}

.tea-datebox {
  flex-shrink: 0;
  width: 68px;
  padding: 0.5em 0 0.45em;
  border: 1px solid rgba(127, 127, 127, 0.25);
  border-radius: 10px;
  text-align: center;
  line-height: 1.1;
}

.tea-datebox span {
  display: block;
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bs-secondary-color, #6c757d);
}

.tea-datebox span:first-child {
  color: #FF2400;
  font-weight: 700;
}

.tea-datebox b {
  display: block;
  font-size: 1.8em;
  font-weight: 500;
  margin: 0.05em 0;
}

.tea-number {
  font-size: 0.75em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bs-secondary-color, #6c757d);
  text-decoration: none;
}

.tea-number:hover {
  color: #FF2400;
}

.tea-status {
  margin-left: 0.6em;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  background: rgba(255, 36, 0, 0.1);
  color: #FF2400;
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.tea-topic {
  font-size: 1.45em;
  font-weight: 500;
  line-height: 1.25;
  margin: 0.1em 0 0.25em;
}

.tea-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 1.2em;
  font-size: 0.88em;
  color: var(--bs-secondary-color, #6c757d);
}

.tea-poster {
  display: block;
  max-width: 100%;
  max-height: 480px;
  margin: 1em auto 0;
  border-radius: 8px;
}

.tea-description {
  margin: 1em 0 0;
}

.tea-speakers {
  display: grid;
  margin-top: 1em;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.tea-speaker {
  padding: 1em 0;
}

.tea-speaker + .tea-speaker {
  border-top: 1px solid rgba(127, 127, 127, 0.2);
}

@media (min-width: 768px) {
  .tea-speakers {
    grid-template-columns: 1fr 1fr;
  }

  .tea-speaker:first-child {
    padding-right: 1.5em;
  }

  .tea-speaker + .tea-speaker {
    border-top: none;
    border-left: 1px solid rgba(127, 127, 127, 0.2);
    padding-left: 1.5em;
  }
}

.tea-kind {
  display: inline-block;
  font-size: 0.68em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15em 0.55em;
  border-radius: 999px;
}

.tea-academic {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.tea-industry {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
}

.tea-speaker-name {
  font-weight: 600;
  margin-top: 0.25em;
}

.tea-affiliation {
  font-size: 0.88em;
  line-height: 1.5;
  color: var(--bs-secondary-color, #6c757d);
}

/* Reserve two lines so the talk titles line up across the two speaker columns */
@media (min-width: 768px) {
  .tea-affiliation {
    min-height: 3em;
  }
}

.tea-speaker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em;
}

.tea-profile {
  display: inline-block;
  margin-top: 0.15em;
  font-size: 0.85em;
  color: var(--bs-secondary-color, #6c757d);
  text-decoration: none;
}

.tea-profile:hover {
  color: #FF2400;
}

.tea-talk {
  font-style: italic;
  margin-top: 0.9em;
  line-height: 1.4;
}

.tea-talk-label {
  display: block;
  margin-bottom: 0.2em;
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--bs-secondary-color, #6c757d);
}

.tea-actions {
  flex-shrink: 0;
}

.tea-register-note {
  margin: 0.5em 0 0;
  font-size: 0.72em;
  opacity: 0.35;
}

.tea-actions .btn {
  margin-top: 0;
}

.tea-actions:empty {
  display: none;
}

.tea-tba {
  font-style: italic;
  color: var(--bs-secondary-color, #6c757d);
}

.btn.tea-btn-soon {
  padding: 0.35em 1.1em;
  border-radius: 999px;
  border: 1px dashed rgba(127, 127, 127, 0.5);
  background: transparent;
  color: var(--bs-secondary-color, #6c757d);
  cursor: default;
}

.btn.tea-btn-primary {
  padding: 0.35em 1.1em;
  border-radius: 999px;
  background-color: #FF2400;
  border-color: #FF2400;
  color: #fff;
}

.btn.tea-btn-primary:hover {
  background-color: #d81e00;
  border-color: #d81e00;
  color: #fff;
}

/* Past sessions are more compact and show recordings instead of registration */

.tea-session.tea-past {
  box-shadow: none;
}

.tea-past .tea-datebox span:first-child {
  color: var(--bs-secondary-color, #6c757d);
}

.tea-past .tea-status {
  background: rgba(127, 127, 127, 0.15);
  color: var(--bs-secondary-color, #6c757d);
}

.tea-past .tea-topic {
  font-size: 1.25em;
}

.tea-past .tea-description,
.tea-past .tea-poster,
.tea-session:not(.tea-past) .tea-past-only,
.tea-past .tea-upcoming-only {
  display: none;
}

@media (max-width: 600px) {
  .tea-session {
    padding: 1.1em;
  }

  .tea-session-head {
    flex-wrap: wrap;
  }

  .tea-actions {
    width: 100%;
  }

  .tea-datebox {
    width: 58px;
  }
}
