/* ============================================================
   speakers.css — EMS Speaker Directory page styles
   Used by: speakers-ems.html (and future speakers-fire.html etc.)
   Requires: base.css
   ============================================================ */

/* ── COMPACT HERO ─────────────────────────────────────────── */
.spk-hero {
  background: var(--nvy);
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.spk-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.spk-hero-eyb {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--pur);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spk-hero-eyb::before { content: ''; width: 16px; height: 1px; background: var(--pur); }
.spk-hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: .5px;
}
.spk-hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin: 0;
  max-width: 500px;
}
.spk-hero-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.spk-stat-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--amb);
  line-height: 1;
}
.spk-stat-l {
  font-size: 10px;
  color: rgba(255,255,255,0.40);
  letter-spacing: .3px;
}
.spk-join-btn {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--rs);
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.spk-join-btn:hover { background: var(--rdk); }

/* ── FEATURED STRIP ───────────────────────────────────────── */
.spk-featured-strip {
  background: #fff;
  border-bottom: 1px solid var(--br);
  padding: 18px 0;
}
.spk-featured-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.spk-featured-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tf);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.spk-featured-label::after { content: ''; flex: 1; height: 1px; background: var(--br); }

.spk-feat-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.spk-feat-scroll::-webkit-scrollbar { display: none; }

.spk-feat-card {
  flex-shrink: 0;
  width: 152px;
  background: #fff;
  border: 1.5px solid var(--br);
  border-radius: var(--ra);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.spk-feat-card:hover {
  border-color: var(--nm);
  box-shadow: 0 4px 16px rgba(24,95,165,0.10);
}
.spk-feat-card.kn { border-color: #EF9F27; border-width: 2px; }

.spk-feat-av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 8px;
  display: block;
  border: 2.5px solid var(--br);
}
.spk-feat-av.kn { border-color: #EF9F27; }
.spk-feat-av-init {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 8px;
  font-family: 'Bebas Neue', sans-serif;
}
.spk-feat-name { font-size: 11px; font-weight: 800; color: var(--tx); line-height: 1.3; margin-bottom: 2px; }
.spk-feat-cred { font-size: 9px; color: var(--tf); margin-bottom: 4px; }
.spk-feat-tpc  { font-size: 9px; color: var(--tm); margin-top: 3px; line-height: 1.3; }

/* ── FILTER BAR (sticky) ──────────────────────────────────── */
.spk-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--br);
  position: sticky;
  top: 60px;
  z-index: 90;
}
.spk-filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.spk-search-wrap {
  display: flex;
  border: 2px solid var(--red);
  border-radius: var(--rs);
  overflow: hidden;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 0 3px rgba(216,90,48,0.08);
}
.spk-search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
  font-family: 'Karla', sans-serif;
  color: var(--tx);
}
.spk-search-wrap button {
  background: none;
  border: none;
  padding: 0 10px;
  color: var(--tm);
  cursor: pointer;
}
/* CTA card in featured strip */
.spk-feat-cta {
  border: 2px dashed var(--red) !important;
  background: #fff8f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.spk-feat-cta:hover {
  background: #fff0eb;
  border-color: var(--rdk) !important;
  box-shadow: 0 4px 16px rgba(216,90,48,0.12);
}
.chiprow {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}
.chiprow::-webkit-scrollbar { display: none; }

/* ── BODY + GRID ──────────────────────────────────────────── */
.spk-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  flex: 1;
}
.spk-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.spk-count-txt  { font-size: 12px; color: var(--tm); font-weight: 500; }
.spk-count-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spk-count-cta  { font-size: 11px; color: var(--tf); }
.spk-count-cta a { color: var(--nm); font-weight: 600; }
.spk-count-actions .ssel { margin-left: 0; flex: 0 0 auto; }

.spkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  /* Equal-height cards: every card in a row matches the tallest in that row,
     and each card's footer pins to its own bottom via .sftr{margin-top:auto}
     (claimed) / .sclaim{margin-top:auto} (unclaimed). Content variance is
     bounded by clamping the bio (.sbio) so rows stay tidy. */
}

/* ── SPEAKER CARDS ────────────────────────────────────────── */
.spkcard {
  background: #fff;
  border: 1px solid var(--br);
  border-radius: var(--rl);
  padding: 16px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Achievement seal — subtle accent, top-right corner of the card */
/* Both seals cluster in the top-right, clear of the top-left profile photo. */
.spk-card-seals { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 6px; align-items: flex-start; }
.spk-card-badge, .spk-card-mentor { line-height: 0; cursor: pointer; }
.spk-card-badge .spk-badge-img, .spk-card-mentor .mentor-badge-img { width: 38px; height: 38px; display: block; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.18)); transition: transform .15s; }
.spk-card-badge:hover .spk-badge-img, .spk-card-mentor:hover .mentor-badge-img { transform: scale(1.1); }
/* Shared badge explainer modal (directory) */
.bdg-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.bdg-modal.open { display: flex; }
.bdg-box { background: #fff; border-radius: 16px; max-width: 360px; width: 100%; padding: 28px 24px 24px; text-align: center; position: relative; }
.bdg-x { position: absolute; top: 8px; right: 14px; background: none; border: none; font-size: 26px; color: #aaa; cursor: pointer; line-height: 1; }
.bdg-img { width: 120px; height: 120px; filter: drop-shadow(0 3px 12px rgba(0,0,0,0.2)); }
.bdg-title { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--nvy, #042C53); margin-top: 12px; letter-spacing: .5px; }
.bdg-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--nm, #042C53); margin-top: 3px; }
.bdg-desc { font-size: 14px; color: var(--tm, #555); line-height: 1.6; margin-top: 14px; }
.bdg-desc a { color: var(--nm, #042C53); font-weight: 700; }
.spkcard:hover {
  border-color: var(--n2);
  box-shadow: 0 2px 12px rgba(4,44,83,0.06);
}
.spkcard.feat { border-color: #85B7EB; border-left: 3px solid var(--nm); }

/* Avatar initials */
.av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 9px;
  font-family: 'Bebas Neue', sans-serif;
}
.av.c1 { background: #042C53; }
.av.c2 { background: #185FA5; }
.av.c3 { background: #1D9E75; }
.av.c4 { background: #D85A30; }
.av.c5 { background: #7B5EA7; }
.av.c6 { background: #2E7D8C; }

.svfy {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--nm);
  background: var(--nl);
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 5px;
}
.snm    { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.scrd   { font-size: 11px; color: var(--tm); font-weight: 500; margin-bottom: 3px; }
.scat   { font-size: 11px; color: var(--tm); font-style: italic; margin-bottom: 7px; line-height: 1.4; }
.srecent {
  font-size: 11px;
  color: var(--tlk);
  background: var(--tll);
  border-radius: var(--rs);
  padding: 5px 8px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.stpcs  { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.stpc   { font-size: 10px; padding: 2px 7px; border-radius: 20px; background: var(--nl); color: #0C447C; font-weight: 500; }

/* Card bio — clamped to 3 lines so cards stay uniform; full bio lives on the
   profile page. (Replaces the old inline 8-line clamp that drove the height
   variance.) */
.sbio {
  font-size: 11.5px;
  color: var(--tm);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bio-substitute blocks — shown when a claimed speaker has no bio yet, so a
   rich-but-bio-less profile (tagline, employer, speaking stats) still fills the
   card instead of reading as empty once the grid stretches it to row height. */
.stagline {
  font-size: 11.5px;
  color: var(--tm);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.srole {
  font-size: 11px;
  color: var(--tx);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 7px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.srole i { color: var(--tf); font-size: 10px; margin-top: 2px; flex-shrink: 0; }
.sstats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 8px;
}
.sstats span { font-size: 10.5px; color: var(--tm); display: inline-flex; align-items: center; gap: 4px; }
.sstats i { color: var(--nm); font-size: 10px; }
.sview-cue { font-size: 11px; font-weight: 600; color: var(--nm); margin-bottom: 8px; }
.sunclaimed-note {
  font-size: 11px;
  color: var(--tm);
  line-height: 1.5;
  margin: 8px 0;
}
.sclaim {
  padding: 10px 8px 4px;
  text-align: center;
  margin-top: auto;
  border-top: 0.5px solid var(--br);
}

.sftr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--br);
  margin-top: auto;
}
.sfm { font-size: 10px; color: var(--tf); }
.folbtn {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--bm);
  background: #fff;
  color: var(--nm);
  transition: all .12s;
}
.folbtn:hover, .folbtn.fol { background: var(--nvy); border-color: var(--nvy); color: #fff; }

/* ── BOTTOM RECRUIT BANNER ────────────────────────────────── */
.spk-recruit-bar {
  background: #fff;
  border: 1px solid var(--br);
  border-radius: var(--rl);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
}
.spk-recruit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--nvy);
  color: var(--amb);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 8px;
}
.spk-recruit-h {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--tx);
  line-height: 1.1;
  margin-bottom: 5px;
}
.spk-recruit-s  { font-size: 12px; color: var(--tm); line-height: 1.55; max-width: 500px; }
.spk-recruit-btn {
  background: var(--nvy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: var(--rs);
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Karla', sans-serif;
}
.spk-recruit-btn:hover { background: var(--nm); }


/* ── HERO SEARCH (the planner's front door) ───────────────── */
.spk-hero-search {
  flex: 1 1 100%;
  display: flex;
  max-width: 600px;
  background: #fff;
  border-radius: var(--rs);
  overflow: hidden;
  border: 2px solid var(--amb);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  margin-top: 14px;
}
.spk-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 13px 16px;
  font-family: 'Karla', sans-serif;
  color: var(--tx);
}
.spk-hero-search button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 800;
  font-family: 'Karla', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spk-hero-search button:hover { background: var(--rdk); }
.spk-clear-x {
  display: none;
  align-items: center;
  padding: 0 10px;
  color: var(--tf);
  cursor: pointer;
  font-size: 13px;
}
.spk-clear-x.on { display: flex; }
.spk-clear-x:hover { color: var(--tx); }
.spkgrid.searching { opacity: .55; transition: opacity .15s; }

/* Loading skeletons (perceived performance — replaces the grid spinner) */
.spk-skel { position: relative; overflow: hidden; pointer-events: none; }
.spk-skel .sk-av { width: 52px; height: 52px; border-radius: 50%; background: var(--g50); margin: 0 auto 12px; }
.spk-skel .sk-l { height: 10px; border-radius: 5px; background: var(--g50); margin: 8px auto; width: 70%; }
.spk-skel .sk-l.short { width: 45%; }
.spk-skel::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: spk-shimmer 1.3s infinite;
}
@keyframes spk-shimmer { 100% { transform: translateX(100%); } }

/* Empty state */
.spk-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--tm);
}
.spk-empty-h { font-size: 16px; font-weight: 800; color: var(--tx); margin-bottom: 6px; }
.spk-empty-s { font-size: 13px; margin-bottom: 18px; }
.spk-empty-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.spk-empty-btn {
  font-size: 12px; font-weight: 700; padding: 9px 18px; border-radius: var(--rs);
  border: 1px solid var(--bm); background: #fff; color: var(--nm); cursor: pointer;
  font-family: 'Karla', sans-serif;
}
.spk-empty-btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.spk-empty-btn:hover { border-color: var(--nm); }
.spk-empty-btn.primary:hover { background: var(--rdk); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .spkgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 680px) {
  .spk-hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .spk-hero-search { margin-top: 4px; }
  .spk-hero-search input { font-size: 16px; }
  .spk-hero-right { flex-wrap: wrap; gap: 10px; }
  .spk-search-wrap input { font-size: 16px; }
  .chiprow { -webkit-overflow-scrolling: touch; }
  .spk-near { gap: 8px; }
  .spk-near-controls { flex: 1 1 100%; }
  .spk-near input { font-size: 16px; }
  .spk-recruit-bar { flex-direction: column; }
  .spkgrid { grid-template-columns: 1fr; }
}

/* ── Near-me radius search ─────────────────────────────────── */
/* Grouped location-search container (Row 3 of the filter bar) */
.spk-near {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  background: var(--nl);
  border: 1px solid var(--n2);
  border-radius: var(--rs);
  padding: 8px 12px;
}
.spk-near-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--nvy); white-space: nowrap; }
.spk-near-label i { color: var(--nm); }
.spk-near-controls { display: flex; gap: 6px; align-items: center; flex: 1 1 280px; flex-wrap: wrap; }
.spk-near input { font-family: 'Karla', sans-serif; font-size: 13px; border: 1px solid var(--bm); border-radius: var(--rs); padding: 8px 10px; outline: none; flex: 1 1 140px; min-width: 0; }
.spk-near select { font-family: 'Karla', sans-serif; font-size: 13px; border: 1px solid var(--bm); border-radius: var(--rs); padding: 8px 6px; background: #fff; flex: 0 0 auto; }
.spk-near button { font-family: 'Karla', sans-serif; font-size: 13px; font-weight: 700; border: 1px solid var(--nvy); background: var(--nvy); color: #fff; border-radius: var(--rs); padding: 8px 12px; cursor: pointer; flex: 0 0 auto; }
.spk-near .spk-near-geo { background: #fff; color: var(--nvy); padding: 8px 11px; }
.spk-near-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--nvy); background: var(--nl); border: 1px solid var(--n2); border-radius: var(--rs); padding: 10px 14px; margin-bottom: 6px; }
.spk-near-clear { background: none; border: none; color: var(--nm); font-weight: 700; cursor: pointer; font-family: 'Karla', sans-serif; font-size: 12px; }
.spkcard[data-dist]::before { content: "📍 " attr(data-dist) " mi"; position: absolute; top: 8px; left: 8px; background: var(--nvy); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; z-index: 1; }
