/* Closed cards stay identical to static HTML; only clickable ones get pointer. */

.schedule-card {
  position: relative;
  cursor: default;
}

.schedule-card.is-clickable {
  cursor: pointer;
}

.schedule-card.is-clickable:hover {
  border-color: #007ea9;
  box-shadow: 0 10px 28px rgba(0, 126, 169, 0.12);
}

.schedule-card__body {
  position: relative;
  padding-right: 44px; /* room for fav star */
}

.schedule-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 2;
}

.fav-btn {
  border: 0;
  background: transparent;
  color: #c5cdd8;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.1rem;
  cursor: pointer;
}

.fav-btn.is-active,
.schedule-card.is-favourite .fav-btn {
  color: #e6a800;
}

/* Talk list (used in modal) */
.talk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.talk-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #d8e2e9;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.talk-item__time {
  flex-shrink: 0;
  width: 3.1rem;
  margin-top: 0.1rem;
  color: #0b4c83;
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.talk-item__body {
  flex: 1;
  min-width: 0;
}

.schedule-card__meta .schedule-card__abstracts,
.schedule-card__abstracts {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  color: #fff;
  background: #16856b;
  font-size: 12px;
  font-weight: 800;
}

.schedule-card__meta .schedule-card__programme,
.schedule-card__programme {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  color: #fff;
  background: #0b4c83;
  font-size: 12px;
  font-weight: 800;
}

.schedule-card__meta .schedule-card__programme svg,
.schedule-card__programme svg {
  color: #fff;
  stroke: #fff;
}

.session-programme {
  margin: 0 0 0.85rem;
}

.session-programme__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: #0b4c83;
  background: #e8f2f8;
  border: 1px solid #c5dae8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.session-programme__link:hover {
  background: #d9ebf5;
}

.schedule-card__meta .schedule-card__abstracts svg,
.schedule-card__abstracts svg {
  color: #fff;
  stroke: #fff;
}

.talk-item.is-hit {
  border-color: #007ea9;
  box-shadow: 0 0 0 2px rgba(0, 126, 169, 0.15);
}

.talk-item__title {
  font-weight: 700;
  color: #0f2a4b;
  font-size: 0.95rem;
  line-height: 1.35;
}

.talk-item__speaker {
  margin-top: 0.2rem;
  color: #61708a;
  font-size: 0.88rem;
  font-weight: 600;
}

.talk-item__presenter {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #0f2a4b;
  font-weight: 700;
}

.poster-catalog {
  display: grid;
  gap: 1.15rem;
}

.poster-catalog__group {
  display: grid;
  gap: 0.45rem;
}

.poster-catalog__topic {
  margin: 0;
  color: #0b4c83;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

.poster-catalog__chairs {
  margin: 0 0 0.2rem;
  color: #4a5d73;
  font-size: 0.88rem;
  font-weight: 600;
}

.talk-list--poster {
  gap: 0.5rem;
}

.talk-item--poster .talk-item__time {
  width: 2.6rem;
}

.talk-abstract {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  color: #0b4c83;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.talk-abstract:hover {
  text-decoration: underline;
}

.talk-abstract--soon {
  opacity: 0.55;
  font-weight: 600;
}

/* Auditorium emphasis */
.schedule-card--auditorium {
  border-color: #0b4c83;
  box-shadow: 0 10px 24px rgba(11, 76, 131, 0.14);
}

.schedule-card--auditorium .schedule-card__time {
  background: #0b4c83;
}

.schedule-card__meta .schedule-card__room--auditorium {
  background: #0b4c83;
  color: #fff;
  font-weight: 800;
}

.quick-type-filter .quick-faculty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  color: #0b4c83;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.quick-type-filter .quick-faculty-link:hover,
.quick-type-filter .quick-faculty-link:focus {
  color: #fff;
  background: #0b4c83;
  outline: 0;
}

@media (max-width: 900px) {
  .quick-type-filter .quick-faculty-link {
    min-height: 38px;
    padding: 7px 6px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    box-shadow: 0 8px 18px rgba(15, 42, 75, 0.06);
  }
}

/* Session detail modal */
body.sif-modal-open {
  overflow: hidden;
}

.sif-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sif-modal[hidden] {
  display: none !important;
}

.sif-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 75, 0.55);
}

.sif-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(12, 39, 66, 0.28);
  padding: 1.25rem 1.25rem 1.4rem;
}

.sif-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: #61708a;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.sif-modal__close:hover {
  color: #0f2a4b;
}

.sif-modal__header {
  padding-right: 2rem;
  margin-bottom: 1rem;
}

.sif-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.55rem;
}

.sif-modal__meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  color: #0b4c83;
  background: #e6f6f4;
  font-size: 12px;
  font-weight: 800;
}

.sif-modal__title {
  margin: 0;
  color: #0f2a4b;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
}

.sif-modal__moderators {
  margin: 0.5rem 0 0;
  color: #61708a;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.sif-modal__moderators strong,
.sif-modal__people strong {
  color: #0f2a4b;
  font-weight: 800;
}

.sif-modal__people {
  margin: 0.35rem 0 0;
  color: #61708a;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.sif-modal__sponsor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8e2e9;
  border-radius: 10px;
  background: #f7fbfb;
}

.sif-modal__sponsor--grant {
  background: #f3f7fb;
  border-color: #c9d9e8;
}

.sif-modal__meta .schedule-card__type--unrestricted,
.sif-modal__meta span.schedule-card__type--unrestricted {
  background: #1f4d7a;
  color: #fff;
}

.sif-modal__sponsor-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b4c83;
}

.sif-modal__sponsor-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 155px;
  padding: 4px 0;
  box-sizing: content-box;
  object-fit: contain;
  object-position: left center;
  image-rendering: auto;
}

/* Wide / heavy lockups: keep visual weight closer to wordmarks */
.sif-modal__sponsor-logo[src*="novo"],
.sif-modal__sponsor-logo[src*="gilead"],
.sif-modal__sponsor-logo[src*="lundbeck"] {
  height: 28px;
  max-width: 140px;
}

.sif-modal__sponsor-logo[src*="sanofi"] {
  height: 30px;
  max-width: 145px;
  padding: 6px 0;
}

.sif-modal__sponsor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2a4b;
}

.sif-modal__body {
  border-top: 1px solid #d8e2e9;
  padding-top: 1rem;
}

.sif-modal__body:empty {
  display: none;
}

@media (max-width: 640px) {
  .schedule-card__body {
    padding-right: 40px;
  }

  .talk-item {
    flex-direction: column;
  }

  .sif-modal__dialog {
    max-height: 92vh;
    padding: 1rem;
  }
}

/* Faculty page list */
.faculty-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
}

.faculty-list li {
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e6eef4;
  color: #0f2a4b;
  font-size: 0.95rem;
}

.faculty-name {
  font-weight: 700;
}

.faculty-city {
  color: #61708a;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .faculty-list {
    columns: 1;
  }
}
