.td-author-archive {
  --td-author-avatar-size: clamp(112px, 14vw, 176px);
}

/*
 * Author profiles keep their own visual identity, but their vertical rhythm
 * follows the denser V2 archive shell used by migrated category pages.
 */
.td-author-archive .td-category-archive__shell {
  padding-block: 10px clamp(36px, 4vw, 56px);
}

.td-author-archive .td-category-breadcrumbs,
.td-author-archive .td-category-breadcrumbs-wrap {
  margin: 0 0 14px;
  color: var(--td-archive-muted);
  font-size: 0.96rem;
}

.td-author-archive .td-category-breadcrumbs-wrap .rank-math-breadcrumb p {
  margin: 0;
}

.td-author-archive .td-category-breadcrumbs-wrap .rank-math-breadcrumb a,
.td-author-archive .td-category-breadcrumbs a {
  color: #5aaee6;
  text-decoration: none;
}

.td-author-archive .td-category-breadcrumbs-wrap .rank-math-breadcrumb a:hover,
.td-author-archive .td-category-breadcrumbs-wrap .rank-math-breadcrumb a:focus-visible,
.td-author-archive .td-category-breadcrumbs a:hover,
.td-author-archive .td-category-breadcrumbs a:focus-visible {
  color: var(--td-archive-accent);
  text-decoration: underline;
}

.td-author-hero {
  display: grid;
  grid-template-columns: var(--td-author-avatar-size) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: 960px;
  margin-bottom: clamp(20px, 2.5vw, 30px);
}

.td-author-hero h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.td-author-hero__portrait {
  width: var(--td-author-avatar-size);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--td-archive-border);
  border-radius: 50%;
  background: var(--td-archive-soft);
  box-shadow: 0 18px 48px rgba(10, 26, 60, 0.12);
}

.td-author-hero__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-author-hero__content {
  min-width: 0;
}

.td-author-hero__content .td-category-hero__description {
  max-width: 700px;
  margin-top: 12px;
  line-height: 1.55;
}

.td-author-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.td-author-hero__meta > span,
.td-author-hero__meta > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--td-archive-border);
  border-radius: 999px;
  background: var(--td-archive-surface);
  color: var(--td-archive-muted);
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none;
}

.td-author-hero__meta strong {
  color: var(--td-archive-text);
}

.td-author-hero__meta > a:hover,
.td-author-hero__meta > a:focus-visible {
  border-color: rgba(10, 26, 60, 0.42);
  color: var(--td-archive-accent);
  text-decoration: underline;
}

.td-author-results {
  scroll-margin-top: 32px;
}

.td-author-card .td-category-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

@media (max-width: 700px) {
  .td-author-archive .td-category-archive__shell {
    padding-block: 10px 28px;
  }

  .td-author-archive .td-category-breadcrumbs,
  .td-author-archive .td-category-breadcrumbs-wrap {
    margin-bottom: 12px;
  }

  .td-author-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .td-author-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .td-author-hero__portrait {
    width: min(124px, 36vw);
  }

  .td-author-hero__meta {
    align-items: stretch;
    flex-direction: column;
    margin-top: 12px;
  }

  .td-author-hero__meta > span,
  .td-author-hero__meta > a {
    width: fit-content;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-author-archive *,
  .td-author-archive *::before,
  .td-author-archive *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
