/**
 * Forum 2024 session organization page — tables, participant photos, TOC.
 * Used with daab-forum-content.css + daab-activities-layout.css.
 */
html[data-daab-page-id="forum-sessions-organization"] .sessions-intro-card .card-body > :first-child {
  margin-top: 0;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-detail-card {
  scroll-margin-top: calc(var(--daab-nav-height, 68px) + 28px);
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-intro-card .sessions-subsection-title {
  margin: 20px 0 10px;
  color: var(--blue-700);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-intro-card .sessions-topic-title {
  margin: 18px 0 8px;
  color: var(--blue-400, #1f4e79);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-intro-card .content-list .content-list {
  margin-top: 6px;
}

html[data-daab-page-id="forum-sessions-organization"] .page-hero .panel-title {
  margin-bottom: 4px !important;
}

html[data-daab-page-id="forum-sessions-organization"] .page-hero .panel-copy-lead {
  line-height: 1.32 !important;
}

html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li {
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 1.25;
  min-height: 0;
}

html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list a {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 6px;
  line-height: 1.25;
  min-height: 28px;
  font-size: 14px;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-tables-card .program-table th,
html[data-daab-page-id="forum-sessions-organization"] .sessions-tables-card .program-table td {
  padding: 6px 10px;
  line-height: 1.35;
}

html[data-daab-page-id="forum-sessions-organization"] .program-table--with-photos th.sessions-photo-col,
html[data-daab-page-id="forum-sessions-organization"] .program-table--with-photos td.sessions-photo-cell {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  padding: 4px 6px !important;
  text-align: center;
  vertical-align: middle;
}

html[data-daab-page-id="forum-sessions-organization"] .program-table--with-photos td:first-child {
  width: 1%;
  white-space: nowrap;
}

html[data-daab-page-id="forum-sessions-organization"] .program-table--moderators th:first-child,
html[data-daab-page-id="forum-sessions-organization"] .program-table--moderators td:first-child {
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  color: var(--blue-700);
}

html[data-daab-page-id="forum-sessions-organization"] .program-table--moderators td.sessions-photo-cell {
  vertical-align: middle;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-photo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0, 105, 180, 0.16);
  background: #edf6fc;
  box-sizing: border-box;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-participant-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-photo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-photo-frame--empty {
  background: linear-gradient(145deg, #edf6fc, #dceef9);
  border-color: rgba(0, 105, 180, 0.12);
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-figure {
  margin: 18px 0 0;
  text-align: center;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-figure img {
  display: block;
  width: min(100%, 520px);
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 364 / 237;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-masa-block {
  scroll-margin-top: calc(var(--daab-nav-height, 68px) + 28px);
  margin-top: 28px;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-masa-block:first-of-type {
  margin-top: 22px;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-field-title {
  margin: 32px 0 8px;
  padding-top: 8px;
  border-top: 2px solid var(--gold-soft, #d4af37);
  color: var(--blue-700);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.3;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-masa-title {
  margin: 0 0 12px;
  color: var(--blue-400, #1f4e79);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-daab-page-id="forum-sessions-organization"] .sessions-tables-card .program-table-wrap {
  margin-top: 0;
}

html[data-daab-page-id="forum-sessions-organization"] .timeline-list .toc-section-label {
  display: flex;
  align-items: center;
  margin-top: 6px;
  padding: 6px 10px;
  min-height: 28px;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
}

html[data-daab-page-id="forum-sessions-organization"] .timeline-list .toc-section-label span {
  display: block;
}

html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-qarisiq-sub,
html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-sub {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  border-bottom: none;
  min-height: 0;
}

html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-qarisiq-sub + li.toc-qarisiq-sub,
html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-sub + li.toc-sub {
  margin-top: -4px;
}

html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-qarisiq-sub:has(+ li.toc-section-label),
html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-sub:has(+ li.toc-ixtisas-group),
html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-sub:has(+ li.toc-section-label),
html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-sub:last-child {
  border-bottom: 1px solid rgba(0, 45, 82, 0.08);
}

html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-qarisiq-sub a {
  display: flex;
  align-items: center;
  padding: 2px 6px 2px calc(6px + 3ch);
  margin: 0;
  font-size: calc(14px * 0.8);
  font-weight: 500;
  line-height: 1.25;
  min-height: 24px;
  color: var(--muted);
}

html[data-daab-page-id="forum-sessions-organization"] .timeline-list li.toc-ixtisas-group a {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  min-height: 26px;
  font-size: calc(14px * 0.8);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--blue-700);
}

html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-sub a {
  display: flex;
  align-items: center;
  padding: 2px 6px 2px 18px;
  margin: 0;
  font-size: calc(14px * 0.8);
  font-weight: 500;
  line-height: 1.25;
  min-height: 24px;
  color: var(--muted);
}

@media (max-width: 1060px) {
  html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-qarisiq-sub + li.toc-qarisiq-sub,
  html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-sub + li.toc-sub {
    margin-top: 0;
  }

  html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list a {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }

  html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-qarisiq-sub a {
    padding-left: calc(12px + 3ch) !important;
    padding-right: 12px !important;
  }

  html[data-daab-page-id="forum-sessions-organization"] .sidebar-widget .timeline-list li.toc-sub a {
    padding-left: 18px !important;
    padding-right: 12px !important;
  }

  html[data-daab-page-id="forum-sessions-organization"] .timeline-list .toc-section-label {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 760px) {
  html[data-daab-page-id="forum-sessions-organization"] .sessions-figure img {
    width: 100%;
  }

  html[data-daab-page-id="forum-sessions-organization"] .program-table--with-photos th.sessions-photo-col,
  html[data-daab-page-id="forum-sessions-organization"] .program-table--with-photos td.sessions-photo-cell {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    padding: 3px 4px !important;
  }

  html[data-daab-page-id="forum-sessions-organization"] .sessions-photo-frame {
    width: 40px;
    height: 40px;
  }
}
