/**
 * Specialists page mobile – Figma frame 746:307 (402px).
 * Flexbox layout; no absolute positioning at this breakpoint.
 */

@media (max-width: 860px) {
  .gamed-specialists {
    overflow-x: clip;
  }

  /* —— Hero —— */
  .gamed-specialists-hero {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .gamed-specialists-hero .gamed-specialists-container {
    height: auto;
    min-height: 0;
    padding-inline: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .gamed-specialists-hero-copy {
    position: static;
    width: 100%;
    max-width: 404px;
    margin: 0;
    padding: 20px 11px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    box-sizing: border-box;
  }

  .gamed-specialists-hero-copy h1 {
    margin: 0;
    width: 100%;
    max-width: 404px;
    font-size: 64px;
    font-weight: 700;
    line-height: normal;
  }

  .gamed-specialists-hero-copy p {
    margin: 0;
    width: 100%;
    max-width: 355px;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
  }

  .gamed-specialists-pill-btn {
    margin: 0;
    width: 187px;
    min-height: 48px;
    flex-shrink: 0;
  }

  .gamed-specialists-hero-image {
    position: static;
    display: block;
    width: 100%;
    max-width: 402px;
    height: auto;
    margin: 0;
    overflow: hidden;
    line-height: 0;
  }

  .gamed-specialists-hero-image img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: cover;
    object-position: top center;
  }

  /* —— Specialist cards (746:325) —— */
  .gamed-specialists-list {
    background: #fff;
  }

  .gamed-specialists-cards {
    width: 100%;
    max-width: 402px;
    min-height: 0;
    margin-inline: auto;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 43px;
    box-sizing: border-box;
  }

  .gamed-specialist-card {
    width: 100%;
    max-width: 376px;
    height: auto;
    min-height: 0;
    padding: 35px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
    box-sizing: border-box;
  }

  .gamed-specialists-cards > .gamed-specialist-card:first-child {
    max-width: 392px;
  }

  .gamed-specialist-card h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: normal;
  }

  .gamed-specialist-role {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
  }

  .gamed-specialist-divider {
    margin: 0;
    flex-shrink: 0;
  }

  .gamed-specialist-card:nth-child(4) .gamed-specialist-divider {
    height: 5px;
    border-radius: 5px;
  }

  .gamed-specialist-bio {
    margin: 0;
    width: 100%;
    font-size: 17px;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  /* —— Phone CTA (746:381 — 273px) —— */
  .gamed-specialists-cta {
    min-height: 273px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gamed-specialists-cta-grid {
    width: 100%;
    max-width: 388px;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
  }

  .gamed-specialists-cta-grid h2 {
    margin: 0;
    width: 100%;
    max-width: 191px;
    font-size: 40px;
    font-weight: 700;
    line-height: normal;
  }

  .gamed-specialists-phone-link {
    margin: 0;
    height: auto;
    min-height: 50px;
    padding: 8px 12px;
    gap: 6px;
    justify-content: center;
    box-sizing: border-box;
  }

  .gamed-specialists-phone-link img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .gamed-specialists-phone-link span {
    font-size: clamp(22px, 5.5vw, 36px);
    font-weight: 700;
    line-height: normal;
  }

  .gamed-specialists-cta-grid p {
    margin: 0;
    width: 100%;
    max-width: 349px;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    white-space: pre-wrap;
  }

}

@media (max-width: 360px) {
  .gamed-specialists-hero-copy h1 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .gamed-specialist-card {
    padding: 28px 16px;
  }

  .gamed-specialists-phone-link span {
    font-size: clamp(20px, 5vw, 32px);
  }
}
