/* Shared author details for Your Prep Hero's guides and calculators. */
.resource-byline {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  text-align: left;
}
.resource-byline__portrait {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.resource-byline__details { min-width: 0; }
.resource-byline .resource-byline__name {
  margin: 0;
  color: #143e38;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.resource-byline__name a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.resource-byline .resource-byline__role {
  margin: 2px 0 0;
  color: #4d6961;
  font-size: 13px;
  line-height: 1.5;
}
.resource-credibility {
  margin: 18px 0 0;
  max-width: 660px;
  color: #4d6961;
  font-size: 16px;
  line-height: 1.5;
}
.hero .resource-credibility { margin-top: 16px; font-size: 15px; line-height: 1.5; }

.resource-author-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 24px;
  background: #eaf4ef;
}
.resource-author-feature__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: var(--author-photo-position, 50% 50%);
}
.resource-author-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}
.resource-author-feature .resource-author-feature__heading {
  margin: 0;
  color: #143e38;
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.18;
  text-wrap: balance;
}
.resource-author-feature .resource-author-feature__story {
  margin: 15px 0 0;
  color: #4d6961;
  font-size: 16px;
  line-height: 1.55;
}
.resource-author-feature--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.resource-author-feature--reverse .resource-author-feature__image { order: 2; }
.resource-author-feature--warm { background: #fff0e2; }

.resource-author-bio {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: stretch;
  max-width: 760px;
  margin: 48px auto;
  overflow: hidden;
  border-radius: 24px;
  background: #eaf4ef;
  scroll-margin-top: 28px;
}
.resource-author-bio__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  object-position: var(--author-photo-position, 50% 50%);
}
.resource-author-bio__copy { padding: 30px; }
.resource-author-bio .resource-author-bio__label {
  margin: 0 0 8px;
  color: #4d6961;
  font-size: 13px;
  line-height: 1.4;
}
.resource-author-bio .resource-author-bio__name {
  margin: 0;
  color: #143e38;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.resource-author-bio .resource-author-bio__role {
  margin: 8px 0 0;
  color: #236e5f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.resource-author-bio .resource-author-bio__story {
  margin: 16px 0 0;
  color: #4d6961;
  font-size: 16px;
  line-height: 1.6;
}
.resource-author-bio__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 14px;
}
.resource-author-bio__links a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  color: #143e38;
  font-size: 14px;
  font-weight: 500;
}
.resource-author-bio--compact {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  border-block: 1px solid #c5d9cf;
  border-radius: 0;
  background: transparent;
}
.resource-author-bio--compact .resource-author-bio__image {
  width: 88px;
  height: 88px;
  min-height: 0;
  border-radius: 50%;
}
.resource-author-bio--compact .resource-author-bio__copy { padding: 0; }
.resource-author-bio--compact .resource-author-bio__name { font-size: 25px; }
.resource-author-bio--with-index { margin-left: auto; margin-right: 0; }

.guide-list .resource-guide-link {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-block: 22px;
}
.resource-guide-link__photo {
  width: 104px;
  height: 104px;
  border-radius: 16px;
  object-fit: cover;
  object-position: var(--author-photo-position, 50% 50%);
}
.resource-guide-link__title { display: block; }
.resource-guide-link__byline {
  display: block;
  margin-top: 8px;
  color: #4d6961;
  font-size: 13px;
  line-height: 1.4;
}
.resource-byline a:focus-visible,
.resource-author-bio a:focus-visible {
  outline: none;
  box-shadow: none;
  background: #d9eee4;
  color: #143e38;
}
.resource-author-bio a:active { transform: translateY(1px); }

@media (max-width: 600px) {
  .resource-author-feature { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: 20px; }
  .resource-author-feature--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .resource-author-feature__copy { padding: 22px 20px; }
  .resource-author-feature__image { min-height: 250px; }
  .resource-author-feature .resource-author-feature__heading { font-size: 23px; }
  .resource-author-feature .resource-author-feature__story { font-size: 15px; }
  .resource-author-bio { grid-template-columns: minmax(0, 1fr); border-radius: 20px; margin-block: 40px; }
  .resource-author-bio__image { height: 280px; min-height: 0; }
  .resource-author-bio__copy { padding: 25px; }
  .resource-author-bio--compact { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; border-radius: 0; }
  .resource-author-bio--compact .resource-author-bio__image { width: 64px; height: 64px; }
  .resource-author-bio--compact .resource-author-bio__story { font-size: 15px; }
  .guide-list .resource-guide-link { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
  .resource-guide-link__photo { width: 84px; height: 100px; border-radius: 12px; }
}
@media (max-width: 440px) {
  .resource-byline { gap: 11px; margin-top: 22px; }
  .resource-byline__portrait { flex-basis: 44px; width: 44px; height: 44px; }
  .resource-byline .resource-byline__role { font-size: 12px; }
  .resource-author-feature { grid-template-columns: minmax(0, 1fr); }
  .resource-author-feature__image { height: 235px; min-height: 0; }
  .resource-author-feature--reverse .resource-author-feature__image { order: 0; }
  .resource-author-feature__copy { padding: 24px; }
  .resource-author-feature .resource-author-feature__heading { max-width: 280px; font-size: 25px; }
  .resource-author-feature .resource-author-feature__story { margin-top: 12px; font-size: 16px; }
  .resource-author-bio--compact { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .resource-author-bio a:active { transform: none; }
}

/* The same real wordmark used by the homepage, without the icon/text fallback. */
.resource-brand::before { content: none; }
.resource-brand img.resource-brand__wordmark {
  display: block;
  flex: none;
  width: 144px;
  height: 34px;
  object-fit: contain;
}
.resource-author-bio__links .resource-social-icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
@media (max-width: 650px) {
  .resource-brand img.resource-brand__wordmark { width: 124px; height: 30px; }
}
