/* Author profile page — layered on blog.css (which supplies the light surface,
   the --blog-* tokens, the card grid and the pagination). Mobile-first. */

.author-hero {
  padding-top: calc(var(--tl-header-h) + 40px);
}
.author-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: var(--blog-content);
  margin-inline: auto;
  padding-inline: 5px;
}

/* --- Identity --- */
.author-hero__id {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-hero__photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.author-hero__photo--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8f1fd;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
}
.author-hero__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.author-hero__eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.84px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--blog-accent);
}
.author-hero__name {
  margin: 0;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  color: var(--blog-ink);
}
.author-hero__role {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: var(--blog-muted);
}

/* --- Credentials: the page's E-E-A-T payload, so it sits above the bio. --- */
.author-hero__creds {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.author-hero__cred {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: var(--blog-ink);
}
.author-hero__cred-ico {
  flex: none;
  display: inline-flex;
  margin-top: 1px;
  color: #16a34a;
}

/* --- Bio --- */
.author-hero__bio {
  max-width: 720px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--blog-muted);
}
.author-hero__bio p {
  margin: 0 0 12px;
}
.author-hero__bio p:last-child {
  margin-bottom: 0;
}
.author-hero__bio a {
  color: var(--blog-accent);
}

/* --- Expertise chips --- */
.author-hero__topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.author-hero__topics-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blog-muted-2);
}
.author-hero__topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.author-hero__topic {
  padding: 5px 12px;
  border-radius: var(--tl-radius-chip);
  background: var(--blog-badge-bg);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  color: var(--blog-badge-text);
}

/* --- Outbound profiles (schema sameAs) --- */
.author-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.author-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--blog-divider);
  border-radius: var(--tl-radius-sm);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--blog-ink);
  text-decoration: none;
}

/* --- Post list --- */
.author-posts__title {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--blog-ink);
}

@media (hover: hover) {
  .author-hero__link:hover {
    border-color: #cfdaec;
    color: var(--blog-accent);
  }
}

@media (min-width: 1024px) {
  .author-hero {
    padding-top: calc(var(--tl-header-h) + 56px);
  }
  .author-hero__inner {
    gap: 24px;
    padding-inline: var(--tl-gutter);
  }
  .author-hero__photo {
    width: 96px;
    height: 96px;
  }
  .author-hero__photo--initial {
    font-size: 46px;
  }
  .author-hero__name {
    font-size: 40px;
  }
  .author-hero__role {
    font-size: 16px;
  }
  .author-posts__title {
    font-size: 26px;
    margin-bottom: 24px;
  }
}
