/* directory.css — Speakers + Sponsors sections for the Handbook.
   Handbook-only (not loaded by the Stage). Reuses the stage.css design tokens
   (--brand-purple, --radius, etc.) which the Handbook already loads. */

/* ---------- Speakers grid ---------- */
.dir-track { margin-top: 18px; }
.dir-track > h3 {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: 1.05rem; color: var(--brand-purple); margin: 22px 0 12px;
}
.sp-grid {
  display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 560px) { .sp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .sp-grid { grid-template-columns: repeat(4, 1fr); } }

.sp-card {
  background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 16px 14px; text-align: center;
  cursor: pointer; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
  display: flex; flex-direction: column; align-items: center; min-height: 100%;
}
.sp-card:hover, .sp-card:focus-visible {
  box-shadow: 0 8px 22px rgba(75,55,98,0.12); transform: translateY(-2px);
  border-color: var(--brand-lavender); outline: none;
}
.sp-photo {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--brand-lavender-soft); margin-bottom: 10px; position: relative;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.sp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-ini { font-family: var(--font-heading); font-weight: 600; color: var(--brand-purple); font-size: 1.4rem; }
.sp-name { font-weight: 600; color: var(--text-dark); font-size: 0.92rem; line-height: 1.25; }
.sp-cred { font-size: 0.74rem; color: var(--text-muted); margin-top: 3px; line-height: 1.3; }
.sp-session { font-size: 0.74rem; color: var(--brand-purple-light); font-style: italic; margin-top: 7px; line-height: 1.3; }
.sp-badge {
  margin-top: 8px; font-size: 0.64rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-purple); background: var(--brand-lavender-soft);
  border-radius: 999px; padding: 3px 9px;
}
.sp-cue { margin-top: auto; padding-top: 9px; font-size: 0.74rem; font-weight: 600; color: var(--brand-purple); }

/* ---------- Sponsors grid ---------- */
.spon-tier-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin: 22px 0 10px;
}
.spon-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .spon-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .spon-grid.gold { grid-template-columns: repeat(2, 1fr); } }

.spon-card {
  background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  padding: 20px 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  min-height: 96px; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.spon-card:hover, .spon-card:focus-visible {
  box-shadow: 0 8px 22px rgba(75,55,98,0.10); border-color: var(--brand-lavender);
  transform: translateY(-2px); outline: none;
}
.spon-card.gold { min-height: 120px; border-color: #e6d9b0; background: linear-gradient(180deg, #fffdf6, #fff); }
.spon-card img { max-width: 100%; max-height: 56px; object-fit: contain; display: block; }
.spon-card.gold img { max-height: 72px; }

/* ---------- Shared modal (speaker + sponsor) ---------- */
.dir-modal {
  border: none; border-radius: var(--radius); padding: 0; max-width: 560px; width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(6,6,46,0.28); background: var(--white); color: var(--text-dark);
}
.dir-modal::backdrop { background: rgba(6,6,46,0.55); backdrop-filter: blur(2px); }
.dm-inner { padding: 26px 26px 30px; position: relative; }
.dm-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-color); background: var(--white); cursor: pointer; font-size: 1.1rem;
  line-height: 1; color: var(--text-muted); display: flex; align-items: center; justify-content: center;
}
.dm-close:hover { background: var(--brand-lavender-soft); color: var(--brand-purple); }
.dm-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-color); background: var(--white); cursor: pointer; color: var(--brand-purple);
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.dm-nav:hover { background: var(--brand-lavender-soft); }
.dm-prev { left: -18px; } .dm-next { right: -18px; }
@media (max-width: 620px) { .dm-prev { left: 6px; } .dm-next { right: 6px; } }
.dm-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding-right: 28px; }
.dm-photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none; background: var(--brand-lavender-soft); display: flex; align-items: center; justify-content: center; }
.dm-photo img { width: 100%; height: 100%; object-fit: cover; }
.dm-photo .sp-ini { font-size: 1.5rem; }
.dm-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-purple-light); }
.dm-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; color: var(--brand-purple); line-height: 1.15; margin-top: 2px; }
.dm-cred { font-size: 0.82rem; color: var(--text-muted); margin-top: 3px; }
.dm-session {
  background: var(--brand-lavender-soft); border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 0.84rem; color: var(--text-dark); margin: 4px 0 14px;
}
.dm-session strong { color: var(--brand-purple); }
.dm-bio { font-size: 0.9rem; line-height: 1.55; color: var(--text-dark); max-height: 42vh; overflow-y: auto; }
.dm-bio p { margin-bottom: 10px; }
.dm-meta { margin-top: 14px; font-size: 0.82rem; color: var(--text-muted); }
.dm-meta strong { color: var(--text-dark); }
.dm-web {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; min-height: 44px; padding: 0 20px;
  background: var(--brand-purple); color: #fff; border-radius: 999px; font-weight: 600; font-size: 0.86rem;
  text-decoration: none;
}
.dm-web:hover { background: var(--brand-purple-light); }
.dm-counter { position: absolute; bottom: 14px; right: 20px; font-size: 0.72rem; color: var(--text-muted); }

/* ---------- Per-day add-to-calendar button (program section) ---------- */
.day-cal-btn { margin: 2px 0 16px; display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Session-detail preview toggle (program rows) ---------- */
.sd-toggle {
  margin-top: 8px; background: none; border: none; padding: 4px 0; cursor: pointer;
  font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--brand-purple);
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px;
}
.sd-toggle:hover { text-decoration: underline; text-underline-offset: 2px; }
.sd-body {
  margin-top: 8px; padding: 12px 14px; background: var(--brand-lavender-soft);
  border-radius: var(--radius-sm); font-size: 0.84rem; line-height: 1.55; color: var(--text-dark);
}
.sd-body p { margin: 0 0 8px; }
.sd-body p:last-child { margin-bottom: 0; }
.sd-body .sd-sub { font-weight: 600; color: var(--brand-purple); }
.sd-body ul { margin: 4px 0 8px; padding-left: 18px; }
.sd-body li { margin-bottom: 4px; }
