/* ==========================================
   Author archive
========================================== */
.author-archive {
  position: relative;
  padding: 32px 0 72px;
}

.author-shell {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.author-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 32px;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92));
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.author-hero__media {
  display: flex;
  justify-content: center;
}

.author-hero__image {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius-circle);
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.author-hero__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #6b7890;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-hero__title {
  margin: 0 0 8px;
  color: #1e205a;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.author-hero__role {
  margin: 0 0 14px;
  color: #4c6288;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
}

.author-hero__bio {
  max-width: 72ch;
  margin-bottom: 16px;
  color: #556072;
  font-size: var(--text-base);
  line-height: 1.8;
}

.author-hero__bio p {
  margin: 0;
}

.author-hero__count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(31, 84, 137, 0.08);
  color: #1f5489;
  font-size: 0.92rem;
  font-weight: 700;
}

.author-posts__header {
  margin-bottom: 20px;
}

.author-posts__title {
  margin: 0;
  color: #1e205a;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.author-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.author-post-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.author-post-card:hover,
.author-post-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.16);
  color: inherit;
  text-decoration: none;
}

.author-post-card .page-card__img {
  aspect-ratio: 16 / 10;
  background: #dfe6ef;
}

.author-post-card .page-card__img--placeholder {
  color: #1f5489;
  font-size: 2rem;
  background: linear-gradient(180deg, #edf3f8 0%, #dfe8f1 100%);
}

.author-post-card .page-card__body {
  gap: 10px;
  flex: 1 1 auto;
  padding: 20px 22px 22px;
}

.author-post-card .page-card__date {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(31, 84, 137, 0.08);
  color: #1f5489;
  font-size: 0.80rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.author-post-card .page-card__title {
  margin: 0;
  color: #1e205a;
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.author-post-card .page-card__desc {
  margin: 0;
  color: #516176;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Pagination visual styles inherit from assets/css/components/pagination.css. */

.author-empty {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.author-empty__title {
  margin: 0 0 8px;
  color: #1e205a;
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.author-empty__desc {
  margin: 0;
  color: #556072;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .author-shell {
    width: min(100% - 32px, 100%);
  }

  .author-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .author-shell {
    width: min(100% - 24px, 100%);
  }

  .author-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
  }

  .author-hero__image {
    width: 96px;
    height: 96px;
  }

  .author-posts__grid {
    grid-template-columns: 1fr;
  }

  .author-post-card .page-card__body {
    padding: 16px 16px 18px;
  }
}

/* Pagination visual styles inherit from assets/css/components/pagination.css. */
