/* ── FILTER BAR ─────────────────────────────── */
  .filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  }
  .filter-bar .lbl {
    font-size: 11px; font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-right: 6px;
  }
  .chip {
    font-family: var(--sans);
    font-size: 12.5px; font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--white);
    color: var(--muted);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .chip:hover { color: var(--navy); border-color: rgba(27,45,79,0.4); }
  .chip.on { background: var(--navy); color: var(--gold); border-color: var(--navy); }

  /* ── MAIN ───────────────────────────────────── */

  .speaker-count {
    font-size: 13px; color: var(--muted);
    margin: 46px 0 38px;
  }
  .speaker-count b { color: var(--navy); font-weight: 700; }

  /* ── SPEAKER GRID ───────────────────────────── */
  .speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 60px;
  }

  .speaker-card {
    position: relative;
    background: var(--cream-card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 0 var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: flex; flex-direction: column;
  }
  .speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(27,45,79,0.16);
  }

  /* The flag backdrop sits in the top portion of the card */
  .sc-flag {
    position: relative;
    min-height: 10.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* gentle desaturation so the flag doesn't fight the photo */
    filter: saturate(0.9);
  }
  /* Navy gradient fades the bottom of the flag into the card body */
  .sc-flag::after {
    content: '';
    position: absolute; inset: 0;
    background:
      linear-gradient(180deg,
        rgba(27,45,79,0.10) 0%,
        rgba(27,45,79,0.35) 55%,
        var(--cream-card) 100%);
  }
  /* Country label sits on the flag (top-left), gold pill */
  .sc-country-pill {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 3;
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(13,20,38,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 5px 11px 5px 6px;
    font-size: 11px; font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
  }
  .sc-country-pill img {
    width: 18px; height: 13px;
    border-radius: 2px;
    display: block;
    object-fit: cover;
  }
  /* Role tag sits top-right on the flag */
  .sc-role {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 3;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--navy);
    background: var(--gold);
    padding: 5px 11px;
    border-radius: 999px;
  }

  /* Portrait sits on the boundary between flag and body */
  .sc-portrait {
    position: relative;
    width: 9rem; height: 9rem;
    margin: -72px auto 0;
    z-index: 4;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--cream-card);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
    background: #1b2d4f;
  }
  .sc-portrait img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }

  .sc-body {
    padding: 16px 24px 26px;
    text-align: center;
  }
  .sc-name {
    font-size: 17px; font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    line-height: 1.3;
  }
  .sc-degree {
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
  }
  .sc-divider {
    width: 32px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
    margin: 0 auto 12px;
    opacity: 0.6;
  }
  .sc-affiliation {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 14px;
    min-height: 38px;
  }
  .sc-cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 600;
    color: var(--navy);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    width: 100%;
    justify-content: center;
    transition: color 0.2s;
  }
  .speaker-card:hover .sc-cta { color: var(--gold); }
  .sc-cta::after { content: '→'; font-size: 13px; transition: transform 0.2s; }
  .speaker-card:hover .sc-cta::after { transform: translateX(3px); }

  /* ── MODAL ──────────────────────────────────── */
  .sp-modal {
    position: fixed; inset: 0;
    z-index: 1000;
    background: rgba(13,20,38,0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
  }
  .sp-modal.open { display: flex; }
  .sp-dialog {
    background: var(--white);
    border-radius: 16px;
    max-width: 56rem; width: 100%;
    max-height: 90vh; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 28px 60px rgba(0,0,0,0.4);
    padding-bottom: 0.75rem;
    position: relative;
  }
  .sp-dialog::after {
    content: '';
    /* position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 100%);
    border-radius: 0 0 16px 16px;
    pointer-events: none; */

    width: 100%;
    height: 20px;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background-color: rgb(251 251 251 / .4);
    background-image: linear-gradient(to bottom, #fff0, #fbfbfb);
    background-repeat: repeat-x;
  }
  .sp-head {
    position: relative;
    min-height: 320px;
    background-size: cover; background-position: center;
	  object-fit: cover;
    flex-shrink: 0;
  }
  .sp-head::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(27,45,79,0.2) 0%, rgba(27,45,79,0.55) 100%);
  }
  .sp-close {
    position: absolute; top: 16px; right: 16px;
    z-index: 3;
    width: 34px; height: 34px;
    border: none; cursor: pointer;
    background: rgba(13,20,38,0.6);
    color: #fff; border-radius: 50%;
    font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .sp-close:hover { background: rgba(13,20,38,0.9); }
  .sp-body {
    padding: 0 36px 36px;
    overflow-y: auto;
    text-align: center;
  }
  .sp-portrait {
    width: 180px; height: 180px;
    margin: -90px auto 18px;
    border-radius: 50%;
    overflow: clip;
    border: 5px solid #fff;
    box-shadow: 0 12px 26px rgba(0,0,0,0.25);
    background: var(--navy);
    position: relative; z-index: 999;
  }
  .sp-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .sp-country {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600;
    color: var(--muted);
    margin-bottom: 14px;
  }
  .sp-country img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
  .sp-country .sp-role-tag {
    margin-left: 8px;
    background: var(--gold); color: var(--navy);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
  }
  .sp-name {
    font-size: 26px; font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
  }
  .sp-degree {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
  }
  .sp-affiliation {
    font-size: 14px; color: var(--text);
    margin-bottom: 22px;
    line-height: 1.6;
  }
  .sp-positions {
    margin-bottom: 18px;
  }
  .sp-positions ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
  }
  .sp-positions ul li {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
  }
  .sp-positions ul li::before {
    content: '·';
    position: absolute;
    left: 4px;
    color: var(--gold);
    font-weight: 700;
  }
  .sp-bio {
    text-align: justify;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.78;
    border-top: 1px solid var(--border);
    padding-top: 22px;
  }
  .sp-bio p + p { margin-top: 12px; }
  .sp-topic {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .sp-topic-item {
    padding: 12px 16px;
    background: var(--gold-pale, #fdf8ec);
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0;
    font-size: 13.5px;
    color: var(--navy);
    line-height: 1.55;
    text-align: left;
  }
  .sp-topic-label {
    font-weight: 700;
    font-family: var(--font-head);
    letter-spacing: .03em;
    margin-right: 4px;
  }
  .sp-topic-item--clickable {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sp-topic-item--clickable:hover {
    background: #ffffff;
    border-left-color: var(--navy);
    box-shadow: 0 6px 18px rgba(10, 31, 68, 0.1);
    transform: translateX(4px);
  }
  .sp-topic-head {
    margin-bottom: 6px;
    font-size: 13.5px;
    color: var(--navy);
  }
  .sp-topic-text {
    font-weight: 500;
  }
  .sp-topic-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 11px;
  }
  .sp-topic-pill {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
  }
  .sp-topic-pill--day {
    background: rgba(10, 31, 68, 0.08);
    color: var(--navy);
  }
  .sp-topic-pill--time {
    background: rgba(201, 161, 74, 0.18);
    color: #8c6b1f;
  }
  .sp-topic-pill--room {
    background: #eef2f6;
    color: var(--muted);
  }
  .sp-topic-action {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .sp-topic-item--clickable:hover .sp-topic-action {
    color: var(--gold);
    transform: translateX(3px);
  }

  /* Back to session button inside speaker modal */
  .sp-back-btn {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 10;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(10, 31, 68, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .sp-back-btn:hover {
    background: var(--navy);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateX(-2px);
  }