/* ========================================
   Interview Detail Page Styles
======================================== */

/* ----------------------------------------
   Interview Detail Main
---------------------------------------- */
.interview-detail {
  padding-top: calc(var(--header-height, 63px) + 48px);
  padding-bottom: 100px;
  --max-width: calc(820px + 2 * var(--content-padding));
  position: relative;

  /* Audience-dependent type scale (kids = default; adults overrides below) */
  --interview-qa-size: 20px;

  @media screen and (min-width: 768px) {
    padding-top: calc(var(--header-height, 63px) + 96px);
    padding-bottom: 160px;
    --interview-qa-size: 24px;
  }
}

.interview-detail--adults {
  --interview-qa-size: 16px;

  @media screen and (min-width: 768px) {
    --interview-qa-size: 18px;
  }
}

/* ----------------------------------------
   Hero Section
---------------------------------------- */
.interview-detail__label {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);

  @media screen and (min-width: 768px) {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

.interview-detail__title {
  font-size: 24px;
  font-weight: var(--font-weight-medium);
  line-height: 1.55;

  @media screen and (min-width: 768px) {
    font-size: 48px;
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
  }
}

.interview-detail__hero-image {
  margin-top: 30px;

  @media screen and (min-width: 768px) {
    margin-top: 48px;
  }

  img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
}

/* ----------------------------------------
   Q&A Section
---------------------------------------- */
.interview-detail__qa {
  margin-top: 35px;

  @media screen and (min-width: 768px) {
    margin-top: 64px;
  }
}

.interview-detail__qa-item + .interview-detail__qa-item {
  border-top: 1px solid var(--color-text-inactive);
  margin-top: 30px;
  padding-top: 30px;

  @media screen and (min-width: 768px) {
    margin-top: 50px;
    padding-top: 50px;
  }
}

/* Adults version separates Q&A blocks with whitespace only */
.interview-detail--adults .interview-detail__qa-item + .interview-detail__qa-item {
  border-top: none;
  margin-top: 48px;
  padding-top: 0;
}

.interview-detail__qa-question {
  font-size: var(--interview-qa-size);
  font-weight: var(--font-weight-bold);
  line-height: 1.75;
  margin-bottom: var(--spacing-sm);
}

.interview-detail__qa-answer {
  font-size: var(--interview-qa-size);
  line-height: 1.75;

  p {
    margin-bottom: var(--spacing-sm);
  }

  p:last-child {
    margin-bottom: 0;
  }

  figure,
  .wp-caption {
    max-width: fit-content;
    height: auto;
  }

  img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-block: var(--spacing-xs);
  }
}

/* ----------------------------------------
   Interviewer & Navigation
---------------------------------------- */
.interview-detail__outro {
  margin-top: 70px;

  @media screen and (min-width: 768px) {
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding-block: 48px;
  }
}

.interview-detail__interviewer {
  @media screen and (min-width: 768px) {
    width: 335px;
  }
}

.interview-detail__interviewer-label {
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);

  @media screen and (min-width: 768px) {
    font-size: 18px;
    margin-bottom: 9px;
  }
}

.interview-detail__interviewer-body {
  border-top: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-block: 30px;

  @media screen and (min-width: 768px) {
    border-top: none;
    border-bottom: none;
    padding-block: 0;
  }
}

.interview-detail__interviewer-name {
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  line-height: 1.75;
  margin-bottom: 14px;

  @media screen and (min-width: 768px) {
    font-size: 24px;
    margin-bottom: 9px;
  }
}

.interview-detail__interviewer-role {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 0;

  @media screen and (min-width: 768px) {
    font-size: 18px;
  }
}

.interview-detail__nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;

  @media screen and (min-width: 768px) {
    margin-top: 0;
    width: 311px;
    gap: 38px;
  }
}

.interview-detail__nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  color: inherit;
  text-decoration: none;

  span {
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;

    @media screen and (min-width: 768px) {
      font-size: 22px;
    }
  }

  @media (hover: hover) {
    &:hover {
      opacity: 0.7;
    }
  }
}

.interview-detail__nav-arrow {
  width: 55px;
  height: 45px;
  flex-shrink: 0;
}
