/* Page-specific styles for track-highlights.html (from the original page embeds, in source order) */

.th-root, .th-root * { box-sizing: border-box; }
  .th-root {
    --navy-deep: #150b3d;
    --navy-mid: #241257;
    --purple: #6d28d9;
    --purple-bright: #7c3aed;
    --purple-line: #4c2a8f;
    --ink: #1e1533;
    --muted: #6b6480;
    --bg-page: #ffffff;
    --card-bg: #ffffff;
    --row-alt: #faf9fd;
    font-family: 'Rotissemiserifstd';
    background: var(--bg-page);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }

  /* ---------------- CONTENT WRAP ---------------- */
  .th-content { margin: 0 auto; padding: 56px 0px 70px; }

  /* ---------------- DAY BLOCK ---------------- */
  .th-day { display: flex; gap: 20px; margin-bottom: 40px; align-items: flex-start; }
  .th-day-badge {
    flex-shrink: 0;
    width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .th-day-badge-box {
    width: 64px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .th-day-cal-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 14px rgba(109,40,217,0.45));
  }
  .th-day-badge-line {
    width: 2px;
    flex: 1;
    background: repeating-linear-gradient(to bottom, var(--purple-line) 0 4px, transparent 4px 9px);
    margin-top: 10px;
    min-height: 40px;
  }

  .th-day-body { flex: 1; min-width: 0; }
  .th-day-title {
    font-size: 22px;
    font-weight: 800;
    margin: 6px 0 8px;
    color: var(--ink);
  }
  .th-day-rule {
    width: 34px; height: 3px;
    background: var(--purple-bright);
    border-radius: 2px;
    margin-bottom: 18px;
  }

  /* ---------------- TABLE ---------------- */
  .th-table-wrap {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px -12px rgba(30,21,51,0.18);
  }
  table.th-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .th-table thead th,
  .th-table tbody td { width: 9%; }
  .th-table thead th:nth-child(1),
  .th-table tbody td:nth-child(1) { width: 15%; }
  .th-table thead th:nth-child(2),
  .th-table tbody td:nth-child(2) { width: 15%; }
  .th-table thead th:nth-child(4),
  .th-table tbody td:nth-child(4) { width: 15%; }
  .th-table thead th:nth-child(5),
  .th-table tbody td:nth-child(5) { width: 20%; }
  .th-table thead th {
    background: var(--navy-mid);
    color: #fff;
    text-align: left;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 14px 20px;
  }
  .th-table thead th:first-child { border-top-left-radius: 0; }
  .th-table tbody td {
    padding: 15px 10px;
    font-size: 16px;
    border-bottom: 1px solid #eee9fa;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .th-table tbody tr:last-child td { border-bottom: none; }
  .th-table tbody tr:nth-child(even) { background: var(--row-alt); }
  .th-time-cell { color: var(--ink); white-space: nowrap; font-weight: 500; }
  .th-time-continuation { visibility: hidden; }
  .th-time-cell-inner { display: inline-flex; align-items: center; gap: 8px; }
  .th-time-cell svg { flex-shrink: 0; color: var(--purple); }
  .th-track-pill {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.35;
    color: var(--purple-bright);
    border-radius: 6px;
    max-width: 100%;
  }
  .th-hall-cell { color: var(--muted); font-weight: 500; }
  .th-session-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
  }
  .th-session-tag--keynote { color: #e3398e; }
  .th-session-tag--invited { color: #e3398e; }
  .th-session-tag--panel { color: #e3398e; }
  .th-session-cell { color: var(--ink); font-weight: 500; }
  .th-session-content { display: inline; }
  .th-speaker-list { display: flex; flex-direction: column; gap: 2px; }
  .th-speaker-item { display: block; }
  .th-speaker-name { display: block; font-weight: 700; color: var(--ink); font-size: 16px; }
  .th-speaker-role { display: block; font-weight: 500; color: var(--purple-bright); font-size: 15px; margin-top: 2px; line-height: 1.35; }

  /* ---------------- FEATURE STRIP ---------------- */
  .th-features {
    margin-top: 20px;
    background: linear-gradient(120deg, var(--navy-deep), #341270);
    border-radius: 16px;
    padding: 34px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
  .th-feature { display: flex; gap: 14px; align-items: flex-start; }
  .th-feature-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #c4b5fd;
  }
  .separator {
    display: block;
    height: 8px;
    width: 180px;
    border-top: 1px solid #c7c2c2;
}
  .th-feature h4 { color: #fff; font-size: 15px; margin: 0 0 4px; font-weight: 700; }
  .th-feature p { color: rgba(255,255,255,0.62); font-size: 13.5px; margin: 0; line-height: 1.4; }

  /* ---------------- RESPONSIVE ---------------- */

  /* Tablet: keep the table, just relax fixed sizing & tighten padding so
     content doesn't get squeezed into unreadable 20%-wide columns */
  @media (max-width: 900px) {
    .th-content { padding: 40px 16px 56px; }
    .th-table { table-layout: auto; }
    .th-table thead th,
    .th-table tbody td,
    .th-table thead th:nth-child(1),
    .th-table tbody td:nth-child(1),
    .th-table thead th:nth-child(2),
    .th-table tbody td:nth-child(2),
    .th-table thead th:nth-child(4),
    .th-table tbody td:nth-child(4),
    .th-table thead th:nth-child(5),
    .th-table tbody td:nth-child(5) { width: auto; }
    .th-table thead th { padding: 12px 10px; font-size: 12.5px; }
    .th-table tbody td { padding: 12px 8px; font-size: 14.5px; }
    .th-track-pill { font-size: 13px; }
    .th-features { grid-template-columns: repeat(2, 1fr); padding: 28px 24px; gap: 20px; }
  }

  /* Mobile: switch to a stacked, labeled card layout per row instead of a table */
  @media (max-width: 620px) {
    .th-content { padding: 32px 12px 48px; }
    .th-day { gap: 12px; margin-bottom: 28px; }
    .th-day-badge { width: 46px; }
    .th-day-badge-box { width: 44px; height: 54px; }
    .th-day-title { font-size: 18px; }

    .th-table-wrap { border-radius: 12px; }
    .th-table thead { display: none; }
    .th-table, .th-table tbody, .th-table tr, .th-table td {
      display: block; width: 100%;
    }
    .th-table tbody tr {
      padding: 14px 16px 16px;
      border-bottom: 8px solid #f2effa;
    }
    .th-table tbody tr:last-child { border-bottom: none; }
    .th-table tbody td,
    .th-table tbody td:nth-child(1),
    .th-table tbody td:nth-child(2),
    .th-table tbody td:nth-child(4),
    .th-table tbody td:nth-child(5) {
      width: 100%;
      padding: 6px 0;
      border-bottom: none;
      font-size: 14.5px;
      display: flex;
      gap: 4px;
      align-items: flex-start;
    }
    .th-table tbody td:empty { display: none; }
    /* Label each field so a stacked row is still readable without headers */
    .th-table tbody td::before {
      content: attr(data-label);
      flex-shrink: 0;
      width: 78px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      padding-top: 2px;
    }
    .th-time-cell-inner { flex-wrap: wrap; }
    .th-time-continuation { visibility: visible; }
    .th-track-pill { margin: 0; }
    .th-session-content { flex: 1; min-width: 0; }
    .th-speaker-list { flex: 1; min-width: 0; gap: 8px; }
    .th-speaker-name { font-size: 14px; }
    .th-speaker-role { font-size: 12px; }

    .th-features { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; }
  }

  @media (max-width: 380px) {
    .th-table tbody td::before { width: 62px; font-size: 10px; }
  }
