/* styles.css — small overrides layered on top of theme.scss */

::selection {
  background: rgba(140, 21, 21, 0.15);
}

img {
  max-width: 100%;
  height: auto;
}

/* Inline year in publication entries */
.pub-year-inline {
  color: #6f6f68;
}

/* Give the home "Selected Publications" DOI chip a little top spacing */
.pub-item .pub-links {
  display: inline;
}

/* ---------------------------------------------------------------------------
   Speaking & Advising page
   --------------------------------------------------------------------------- */
.speaker-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0.5rem 0 1.75rem;
}
.speaker-hero-intro { flex: 1 1 340px; }
.speaker-hero-intro .lede { margin-bottom: 1.1rem; }
.speaker-photo {
  flex: 0 0 260px;
  width: 260px;
  border-radius: 6px;
  border: 1px solid #e4e1d9;
  background: #fff;
}

/* Featured talks — responsive 16:9 embeds */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin: 1.2rem 0 0.5rem;
}
.video-item p { margin: 0.5rem 0 0; }
.video-caption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  color: #6f6f68;
  line-height: 1.4;
}
.video-caption strong { color: #1a1a1a; font-weight: 600; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e4e1d9;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Client logo wall — unified grayscale, colorizes on hover */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin: 1.3rem 0 1.6rem;
}
.logo-wall .logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #eceae3;
  border-radius: 6px;
  background: #fff;
}
.logo-wall img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-wall .logo-cell:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Session catalog */
.session-theme {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #8c1515;
  margin: 1.8rem 0 0.4rem;
}
.session-list ul { list-style: none; padding-left: 0; margin: 0.3rem 0 0; }
.session-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e4e1d9;
}
.session-list .s-title { font-weight: 600; color: #1a1a1a; }
.session-list .s-desc { color: #4a4a46; font-size: 0.98rem; }

/* Client industry groupings */
.client-industry ul { list-style: none; padding-left: 0; margin: 0; }
.client-industry li { padding: 0.5rem 0; border-bottom: 1px solid #e4e1d9; }
.client-industry .ci-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #6f6f68;
  display: block;
}

/* Booking callout */
.booking {
  margin: 2rem 0 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid #e4e1d9;
  border-left: 3px solid #8c1515;
  border-radius: 4px;
  background: rgba(140, 21, 21, 0.03);
}
.booking p { margin: 0; }

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
  .speaker-photo { flex-basis: 200px; width: 200px; }
}

/* Fix: Quarto wraps ::: {.stack-list} as div>ul>li, so the theme's
   `.stack-list > li` never matched. Target the list items directly. */
.stack-list ul { list-style: none; padding-left: 0; margin: 0; }
.stack-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #e4e1d9;
}

/* Print: hide chrome, keep content legible */
@media print {
  .navbar,
  .nav-footer,
  .pub-filter,
  .btn-doc {
    display: none !important;
  }
  a {
    border-bottom: none;
    color: #000;
  }
  body {
    background: #fff;
    color: #000;
  }
}
