/* Speaker page overrides shared base styles from styles.css */

body {
  background: var(--blue);
  min-height: 100vh;
}

/* ─── NAV (speaker layout: back link + title) ─── */
nav .nav-back a {
  font-size: 18px;
  color: var(--black);
  text-decoration: none;
  transition: opacity 0.2s;
}
nav .nav-back a:hover {
  opacity: 0.6;
}

nav .nav-title {
  font-size: 18px;
  color: var(--black);
}

#speaker-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding: 60px 60px 0px 60px;
}

/* ─── SPEAKER HERO ─── */
.speaker-hero {
  background: var(--blue);
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-top: 0;
  position: relative;
}

.speaker-hero .section-label {
  color: var(--white);
}
.speaker-hero .section-label::after {
  background-color: var(--white);
}
.speaker-photo,
.speaker-photo-placeholder {
  grid-column: 1;
  width: 100%;
}

.speaker-hero-text {
  grid-column: 2 / -1;
  display: flex;
  flex-direction: column;
}

.speaker-hero-name {
  font-size: clamp(48px, 4vw, 83px);
  color: var(--white);
}

.speaker-hero-company {
  font-size: clamp(26px, calc(2.903vw - 9.74px), 46px);
  color: var(--white);
}

/* ─── BIO ─── */
.speaker-bio-section {
  display: grid;
  grid-template-columns: subgrid;
  background: var(--blue);
  grid-column: 1 / -1;
}

.speaker-bio-text {
  grid-column: 2 / -1;
  font-size: clamp(26px, calc(2.903vw - 9.74px), 46px);
  color: var(--white);
  text-wrap: pretty;
}
.speaker-bio-text p {
  margin-bottom: 1.2em;
}
.speaker-bio-text p:last-child {
  margin-bottom: 0;
}

/* ─── LINKS ─── */
.speaker-links-section {
  padding: 1.2em 0px 60px;
  background: var(--blue);
  grid-column: 2 / span 2;
}

.speaker-links-label {
  font-size: clamp(26px, calc(2.903vw - 9.74px), 46px);
  color: var(--white);
}

.speaker-links a {
  display: block;
  font-size: clamp(26px, calc(2.903vw - 9.74px), 46px);
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.2s;
}
.speaker-links a:hover {
  color: var(--black);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav .nav-title {
    display: none;
  }

  #speaker-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 28px 0px 28px;
  }

  .speaker-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .speaker-bio-section{
    gap: 1.2em;
  }

  .speaker-hero-text {
    grid-column: 1;
  }

  .speaker-hero-content img,
  .speaker-photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: block;
    min-height: 280px;
    position: static;
    max-width: 200px;
    margin-left: auto;
    object-fit: cover;
  }

  .speaker-hero-content {
    gap: 30px;
  }
  .speaker-links-section {
    padding: 1.2em 0px 60px;
  }
}
