.expert-profile {
  color: #46464a;
}

.expert-profile__hero {
  background: linear-gradient(135deg, #f5fbf0 0%, #edfafa 100%);
  padding: clamp(40px, 7vw, 88px) 0;
}

.expert-profile__hero-inner {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
}

.expert-profile__photo {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(39, 105, 94, 0.14);
  aspect-ratio: 4 / 5;
}

.expert-profile__photo picture,
.expert-profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.expert-profile__photo img {
  object-fit: cover;
}

.expert-profile__eyebrow {
  margin-bottom: 16px;
  color: #00a8a8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.expert-profile__rank {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #707070;
  font-size: 0.9rem;
  font-weight: 700;
}

.expert-profile__rank img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.expert-profile__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  color: #3f4442;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.expert-profile__role {
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.expert-profile__tagline {
  margin-top: 16px;
  color: #5e6562;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.expert-profile__facts {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid rgba(61, 118, 109, 0.2);
}

.expert-profile__facts > div {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(61, 118, 109, 0.2);
}

.expert-profile__facts dt {
  color: #348f82;
  font-size: 0.875rem;
  font-weight: 700;
}

.expert-profile__facts dd {
  line-height: 1.7;
}

.expert-profile__body {
  max-width: 880px;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(56px, 9vw, 112px);
}

.expert-profile__sections {
  display: grid;
  gap: clamp(40px, 7vw, 72px);
}

.expert-profile__section h2 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 4px solid #e5f989;
  color: #4f5552;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
}

.expert-profile__section-text {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.04em;
}

.expert-profile__section-text.c-entry > * + * {
  margin-top: 1.5rem;
}

.expert-profile__section-text ul,
.expert-profile__section-text ol {
  padding-left: 1.5em;
}

.expert-profile__section-text ul {
  list-style: disc;
}

.expert-profile__section-text ol {
  list-style: decimal;
}

.expert-profile__contact {
  margin-top: clamp(48px, 7vw, 72px);
  border-radius: 20px;
  background: #f5fbf0;
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
}

.expert-profile__contact p {
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.7;
}

.expert-profile__contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  background: #45aa42;
  min-width: min(100%, 320px);
  padding: 16px 28px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(69, 170, 66, 0.2);
}

.expert-profile__contact a:hover,
.expert-profile__contact a:focus-visible {
  background: #358d33;
  transform: translateY(-2px);
}

.expert-profile__back {
  margin-top: 48px;
  text-align: center;
}

.expert-profile__back a {
  color: #348f82;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .expert-profile__hero-inner {
    grid-template-columns: 1fr;
  }

  .expert-profile__photo {
    width: min(100%, 400px);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .expert-profile__photo {
    border-radius: 16px;
  }

  .expert-profile__facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
