.ap-mentoring {
  --mentor-ink: #162942;
  --mentor-muted: #43546b;
  --mentor-rule: #c7d3df;
  --mentor-tint: #f1f5f9;
  color: var(--mentor-ink);
  background: #fff;
  font-family: "Assistant", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.ap-mentoring .mentor-wrap {
  width: min(1100px, calc(100% - 3rem));
  margin-inline: auto;
}

.ap-mentoring :is(h1, h2, h3, p, figure) { margin: 0; }
.ap-mentoring :is(h1, h2, h3) { color: var(--mentor-ink); line-height: 1.12; }
.ap-mentoring h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
.ap-mentoring h3 { font-size: 1.28rem; }
.ap-mentoring p { color: var(--mentor-muted); }
.ap-mentoring a { color: #174773; text-underline-offset: .2em; }
.ap-mentoring :focus-visible { outline: 3px solid #176b8a; outline-offset: 3px; }

.ap-mentoring .mentor-opening {
  background: linear-gradient(125deg, #eef4f7, #f9f5eb);
  border-block-end: 1px solid var(--mentor-rule);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.ap-mentoring .mentor-opening-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.ap-mentoring .mentor-kicker {
  margin-block-end: .6rem;
  color: #6a481b;
  font-size: .95rem;
  font-weight: 800;
}

.ap-mentoring h1 { font-size: clamp(2.5rem, 5.8vw, 4.7rem); letter-spacing: -.035em; }
.ap-mentoring .mentor-intro { margin-block: 1.15rem 1.5rem; max-width: 38ch; font-size: clamp(1.1rem, 2.1vw, 1.35rem); }

.ap-mentoring .mentor-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.ap-mentoring .mentor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .55rem 1.05rem;
  border: 1px solid #937137;
  border-radius: .65rem;
  background: #dfbd72;
  color: #13243b;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.ap-mentoring .mentor-secondary { background: #fff; border-color: #8da0b6; }
.ap-mentoring .mentor-secondary:hover { background: #e8eff7; }

.ap-mentoring .mentor-visual {
  overflow: hidden;
  background: #182e4a;
  border-radius: 1.2rem;
  box-shadow: 0 1rem 2.5rem #19365326;
}

.ap-mentoring .mentor-visual img { display: block; width: 100%; height: auto; }
.ap-mentoring .mentor-visual figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  justify-content: space-between;
  padding: .75rem 1rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}

.ap-mentoring .mentor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .65rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--mentor-rule);
}
.ap-mentoring .mentor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .75rem;
  border-radius: .6rem;
  background: var(--mentor-tint);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.ap-mentoring .mentor-nav a:hover { text-decoration: underline; }

.ap-mentoring .mentor-section {
  padding-block: clamp(2.2rem, 5vw, 4rem);
  scroll-margin-top: 8rem;
}
.ap-mentoring .mentor-lede { margin-block: .65rem 1.2rem; }

.ap-mentoring .mentor-stages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: .75rem;
}
.ap-mentoring details, .ap-mentoring .mentor-cards article {
  border: 1px solid var(--mentor-rule);
  border-radius: .85rem;
  background: #fff;
}
.ap-mentoring details[open] { border-color: #9f7d43; background: #fffbf2; }
.ap-mentoring summary {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 55px;
  padding: .75rem 1rem;
  cursor: pointer;
  font-weight: 800;
}
.ap-mentoring summary::-webkit-details-marker { display: none; }
.ap-mentoring summary::after {
  content: "";
  inline-size: .55rem;
  block-size: .55rem;
  flex: 0 0 auto;
  margin-inline-start: auto;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.ap-mentoring details[open] > summary::after { transform: rotate(135deg); }
.ap-mentoring .mentor-number {
  flex: 0 0 auto;
  border-radius: .45rem;
  padding: .1rem .45rem;
  background: #efe0bc;
  color: #53380f;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.ap-mentoring .mentor-detail { padding: 0 1rem 1rem; }
.ap-mentoring .mentor-detail a { display: inline-block; margin-block-start: .55rem; font-weight: 700; }

.ap-mentoring .mentor-cards, .ap-mentoring .mentor-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-block: 1.2rem;
}
.ap-mentoring .mentor-cards article { padding: 1.15rem; }
.ap-mentoring .mentor-cards p, .ap-mentoring .mentor-steps p { margin-block-start: .45rem; }
.ap-mentoring .mentor-extra { margin: 0; padding: 0 2.2rem 1rem 1rem; }

.ap-mentoring .mentor-steps { padding-inline-start: 1.55rem; column-gap: 2rem; }
.ap-mentoring .mentor-steps li::marker { color: #6a481b; font-weight: 800; }
.ap-mentoring .mentor-team { max-width: 72ch; }

.ap-mentoring :is(.mentor-prep, .mentor-contact) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.5rem 2rem;
  border: 1px solid var(--mentor-rule);
  border-radius: 1.05rem;
  background: var(--mentor-tint);
  padding: clamp(1.15rem, 4vw, 2.6rem);
}
.ap-mentoring :is(.mentor-prep, .mentor-contact) h2 + p { margin-block-start: .6rem; }
.ap-mentoring .mentor-prep-count { margin-block-start: .6rem; color: #174773; font-weight: 800; }
.ap-mentoring .mentor-prep fieldset { min-inline-size: 0; border: 0; padding: 0; margin: 0; }
.ap-mentoring .mentor-prep legend { font-weight: 800; margin-block-end: .35rem; }
.ap-mentoring .mentor-prep label {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding-inline: .65rem;
  margin-block-start: .35rem;
  border-radius: .5rem;
  background: #fff;
  cursor: pointer;
}
.ap-mentoring .mentor-prep input { width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: #174773; }
.ap-mentoring .mentor-faq { margin-block-start: 1.15rem; }
.ap-mentoring .mentor-contact { margin-block-end: 2rem; background: #fcf6e8; }

@media (max-width: 800px) {
  .ap-mentoring .mentor-opening-grid { grid-template-columns: 1fr; }
  .ap-mentoring .mentor-visual img { max-height: 330px; object-fit: cover; }
  .ap-mentoring :is(.mentor-cards, .mentor-steps) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .ap-mentoring .mentor-wrap { width: calc(100% - 2rem); }
  .ap-mentoring :is(.mentor-stages, .mentor-cards, .mentor-steps, .mentor-prep, .mentor-contact) { grid-template-columns: 1fr; }
  .ap-mentoring .mentor-steps { row-gap: 1.1rem; }
  .ap-mentoring .mentor-section { scroll-margin-top: 5.5rem; }
  .ap-mentoring .mentor-visual figcaption { font-size: .85rem; }
}
