/* Страница автора (author.php) + ссылка на автора в подписи статьи.
   Источник значений — макет aramis/mockups/ej-author-page-2026-08-06.html, одобрен Еленой 06.08.2026.
   Подключается только на архиве автора и на записи блога — inc/author-page.php. */

.author-page {
  --ap-navy: #14235c;
  --ap-panel: #f5f8fb;
  --ap-line: #dfe5f0;
  /* шапка сайта position:fixed (высота 78 / 149 / 171 px) — иначе она ложится на профиль */
  padding-top: 96px;
  padding-bottom: 40px;
}

.author-page .breadcrumbs { font-size: 12.5px; color: #8a93a8; padding: 18px 0 0; }
.author-page .breadcrumbs a { color: #8a93a8; text-decoration: none; }
.author-page .breadcrumbs a:hover { text-decoration: underline; }

/* ---------- карточка профиля ---------- */
.author-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  padding: 24px 20px;
  margin-top: 16px;
}
.author-profile__photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(20, 35, 92, .14);
}
.author-profile h1.author-profile__name {
  font-size: 30px; line-height: 1.15;
  margin: 2px 0 10px;
  color: var(--ap-navy);
  letter-spacing: -.6px;
}
.author-profile__role { font-size: 17px; color: #3d465e; font-weight: 650; margin: 0 0 4px; }
.author-profile__credential { font-size: 14.5px; color: #5a6480; margin: 0 0 16px; }
.author-profile__bio { font-size: 16.5px; line-height: 1.75; color: #2b3242; margin: 0 0 18px; max-width: 820px; }
.author-profile__topics { font-size: 14.5px; line-height: 1.9; margin: 0 0 18px; }
.author-profile__chip {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  padding: 5px 13px;
  margin-right: 7px;
  font-size: 13.5px;
  color: var(--ap-navy);
}
.author-profile__links { display: flex; gap: 10px; flex-wrap: wrap; }
.author-profile__link {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0a66c2; border: 1px solid #0a66c2; border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px; font-weight: 650; color: #fff; text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 102, 194, .28);
}
.author-profile__link:hover { background: #095196; border-color: #095196; color: #fff; }
.author-profile__link i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 3px;
  background: #fff; color: #0a66c2;
  font-weight: 800; font-size: 12px; font-style: normal;
  font-family: Georgia, serif; letter-spacing: -.5px;
}

/* ---------- список публикаций ---------- */
.author-page h2.author-articles__title {
  font-size: 24px; color: var(--ap-navy);
  margin: 36px 0 18px; letter-spacing: -.3px;
}
.author-articles { display: grid; grid-template-columns: 1fr; gap: 16px; }
.author-article {
  border: 1px solid var(--ap-line); border-radius: 10px;
  padding: 14px 16px; background: #fff;
  display: flex; gap: 14px; align-items: flex-start;
}
.author-article__thumb {
  flex: 0 0 112px; width: 112px; height: 63px;
  border-radius: 6px; object-fit: cover;
  background: #eef1f6; display: block;
}
.author-article__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.author-article__text { min-width: 0; }
.author-article__title { font-size: 15.5px; font-weight: 650; line-height: 1.38; margin: 0 0 6px; }
.author-article__title a { color: var(--ap-navy); text-decoration: none; }
.author-article__title a:hover { text-decoration: underline; }
.author-article__meta { font-size: 12.5px; color: #8a93a8; margin: 0; }
.author-article__meta b { color: #5a6480; font-weight: 650; }

/* ---------- планшет и десктоп ---------- */
@media (min-width: 768px) {
  .author-page { padding-top: 168px; }
  .author-profile { grid-template-columns: 190px 1fr; gap: 34px; padding: 32px 34px; }
  .author-profile__photo { width: 190px; height: 190px; }
  .author-profile h1.author-profile__name { font-size: 38px; }
  .author-articles { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1200px) {
  .author-page { padding-top: 192px; }
}

/* ---------- ссылка на автора в подписи статьи (single.php) ---------- */
.post-author__wrapper .post-author .post-author__text > p > a.post-author__link {
  color: inherit;
  text-decoration: none;
}
.post-author__wrapper .post-author .post-author__text > p > a.post-author__link:hover {
  text-decoration: underline;
}

/* ---------- пагинация ----------
   Разметка та же, что в template-parts/blog.php, но стили в main.min.css прибиты
   к `.blog .container .pagination`. Файл блога трогать нельзя (запрет 1),
   поэтому повторяем правила своим селектором. */
.author-page .container .pagination {
  display: flex; justify-content: center; align-items: center;
  column-gap: .5rem; flex-wrap: wrap; row-gap: .5rem;
  margin-top: 2rem;
}
.author-page .container .pagination a,
.author-page .container .pagination span.current {
  display: flex; justify-content: center; align-items: center;
  flex: auto; max-width: 3.125rem; width: 100%;
  padding: clamp(6px, calc(.8333333333vw), 12px);
  color: #fff; font-size: 1rem; font-weight: 600; line-height: 120%;
  text-decoration: none;
  border-radius: .5rem; border: 1px solid rgba(215, 218, 253, .1);
}
.author-page .container .pagination a { background: #d7dafd; }
.author-page .container .pagination span.current { background: #3647f6; }
.author-page .container .pagination a:hover { background: #151b63; color: #fff; }
.author-page .container .pagination a.prev,
.author-page .container .pagination a.next { max-width: 6.0625rem; background: #3647f6; column-gap: .75rem; }
.author-page .container .pagination a.prev svg,
.author-page .container .pagination a.next svg { display: none; }
.author-page .container .pagination span.dots {
  color: #3647f6; font-size: 1rem; font-weight: 400; line-height: 120%;
}

/* Тёмное меню на светлом фоне переехало отсюда в assets/css/header-contrast.css:
   правило нужно не только на архиве автора, а на любой странице без секции .hero,
   а этот файл подключается только на архиве автора и на записи блога. */
