/* Trainee profile pages */
.trainee-profile-page {
  background:
    radial-gradient(circle at 75% 8%, rgba(215, 173, 88, 0.16), transparent 26rem),
    radial-gradient(circle at 18% 92%, rgba(215, 173, 88, 0.1), transparent 24rem),
    linear-gradient(180deg, #070d22 0%, #0b1430 44%, #070d22 100%);
}

.trainee-profile-main {
  display: grid;
  grid-template-columns: minmax(300px, 39%) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 18px clamp(28px, 3.8vw, 48px);
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 34px;
}

.trainee-profile-hero {
  display: contents;
}

.trainee-profile-main .breadcrumb {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.trainee-profile-art {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: start;
  margin: 0;
}

.trainee-profile-art img {
  display: block;
  width: 100%;
  height: min(calc(100vh - 160px), 640px);
  object-fit: contain;
  border: 1px solid rgba(215, 173, 88, 0.48);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #0f1730;
}

.trainee-profile-title {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: #fff4ce;
}

.trainee-profile-title .character-number {
  margin-bottom: 12px;
}

.trainee-profile-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.2vw, 5.65rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.trainee-profile-title .trainee-reading {
  display: inline-block;
  margin: 10px 0 0;
  color: #d7ad58;
  font-size: clamp(0.98rem, 1.55vw, 1.12rem);
  letter-spacing: 0.08em;
}

.trainee-catchphrase {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-top: 1px solid rgba(215, 173, 88, 0.42);
  border-right: 0;
  border-bottom: 1px solid rgba(215, 173, 88, 0.26);
  border-left: 3px solid #d7ad58;
  color: #fff7dc;
  background: rgba(255, 244, 206, 0.035);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.55;
}

.trainee-profile-body {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px 18px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 250, 232, 0.9);
}

.trainee-profile-section {
  padding: 18px 20px;
  border: 1px solid rgba(215, 173, 88, 0.42);
  border-radius: 8px;
  background: rgba(4, 12, 31, 0.54);
}

.trainee-profile-section:first-child {
  grid-column: 1 / -1;
}

.trainee-profile-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 11px;
  color: #d7ad58;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.trainee-profile-section h2::after {
  flex: 1;
  height: 1px;
  background: rgba(215, 173, 88, 0.42);
  content: "";
}

.trainee-profile-section p {
  margin: 0 0 0.68em;
  font-size: clamp(0.82rem, 0.85vw, 0.94rem);
  line-height: 1.78;
}

.trainee-profile-section p:last-child {
  margin-bottom: 0;
}

.trainee-profile-nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
}

.trainee-profile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(215, 173, 88, 0.46);
  border-radius: 999px;
  color: #fff4ce;
  background: rgba(255, 244, 206, 0.05);
  font-size: 0.86rem;
  text-decoration: none;
}

.trainee-profile-nav a:first-child {
  justify-self: start;
}

.trainee-profile-nav a:last-child {
  justify-self: end;
}

.trainee-profile-nav a:hover,
.trainee-profile-nav a:focus-visible {
  color: #070d22;
  background: #d7ad58;
}

@media (max-width: 760px) {
  .trainee-profile-main {
    display: block;
    width: min(100% - 24px, 620px);
    padding-top: 96px;
  }

  .trainee-profile-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trainee-profile-art {
    order: 2;
    width: min(100%, 430px);
    margin: 0 auto;
  }

  .trainee-profile-art img {
    height: auto;
  }

  .trainee-profile-title {
    order: 1;
    margin-top: 0;
    text-align: center;
  }

  .trainee-profile-title h1 {
    font-size: clamp(3rem, 18vw, 5.2rem);
  }

  .trainee-catchphrase {
    text-align: left;
  }

  .trainee-profile-body {
    display: block;
    margin-top: 28px;
    padding: 20px;
  }

  .trainee-profile-section {
    padding: 20px;
    margin-bottom: 16px;
  }

  .trainee-profile-section p {
    line-height: 1.9;
  }

  .trainee-profile-nav {
    grid-template-columns: 1fr;
  }

  .trainee-profile-nav a,
  .trainee-profile-nav a:first-child,
  .trainee-profile-nav a:last-child {
    justify-self: stretch;
  }
}
