/* 08.11.2026: авторство й експертна перевірка — підпис під H1, блоки автора, експерти блогу, сторінка автора. */

/* Підпис під заголовком статті */
.am-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 0;
    margin: -8px 0 18px;
    color: #A0A0A0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}
.am-byline__item + .am-byline__item::before { content: '·'; margin: 0 8px; }
.am-byline .am-blog-author { color: inherit; font-size: inherit; }
.am-byline time,
.am-blog-article__header .am-byline time { display: inline; margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.am-byline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.am-byline a:hover { color: #3f5b2f; }
.am-byline--page { margin: 26px 0 0; }

/* Рубрика в картці блогу */
.am-blog-metaline .am-blog-card__cat {
    color: #A0A0A0;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
}
.am-blog-metaline .am-blog-card__cat::before { content: '·'; margin-right: 10px; }
.am-blog-metaline .am-blog-card__cat:hover { color: #3f5b2f; text-decoration: underline; }

/* Картка автора (після статті, експерт рубрики, автори блогу) */
.am-author-boxes { display: grid; gap: 16px; margin: 32px 0 8px; }
.am-author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid #E4E6E0;
    border-radius: 8px;
    padding: 20px 22px;
    background: #F7F8F5;
}
.am-author-card__photo { flex: 0 0 auto; display: block; }
.am-author-card__img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
}
.am-author-card__body { min-width: 0; flex: 1 1 auto; }
.am-author-card__label {
    margin: 0 0 4px;
    color: #777;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.am-author-card__name { margin: 0; color: #3E5338; font-size: 20px; font-weight: 600; line-height: 1.3; }
.am-author-card__name a { color: inherit; text-decoration: none; }
.am-author-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.am-author-card__meta { margin: 4px 0 0; color: #555; font-size: 14px; line-height: 1.4; }
.am-author-card__bio { margin: 10px 0 0; color: #282828; font-size: 15px; line-height: 1.5; }
.am-author-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #3E5338;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.am-author-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.am-author-card__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.am-author-card--team,
.am-author-card--expert { padding: 16px 18px; gap: 16px; align-items: center; }
.am-author-card--team .am-author-card__img,
.am-author-card--expert .am-author-card__img { width: 72px; height: 72px; }
.am-author-card--team .am-author-card__name,
.am-author-card--expert .am-author-card__name { font-size: 18px; }
.am-author-card--team .am-author-card__more,
.am-author-card--expert .am-author-card__more { margin-top: 6px; font-size: 14px; }

/* Блог: «Наші експерти та автори» */
.am-author-team { margin: 0 0 32px; }
.am-author-team__title { margin: 0 0 12px; color: #3E5338; font-size: 20px; font-weight: 600; line-height: 1.3; }
.am-author-team__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: stretch; }
.am-author-team__list .am-author-card { height: 100%; }

/* Рубрика блогу: експерт розділу */
.am-cat-expert { max-width: 760px; margin: 0 auto 28px; }
.am-cat-expert--bottom { margin: 32px auto 0; }

/* Сторінка автора: перший екран */
.am-author-hero {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 0 0 32px;
    border: 1px solid #E4E6E0;
    border-radius: 8px;
    padding: 28px;
    background: #F7F8F5;
}
.am-author-hero__photo { flex: 0 0 260px; }
.am-author-hero__img { display: block; width: 100%; height: auto; border-radius: 6px; }
.am-author-hero__body { min-width: 0; flex: 1 1 auto; }
.am-blog-single__content .am-author-hero p { margin: 0; }
.am-author-hero__label { color: #777; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.am-blog-single__content .am-author-hero .am-author-hero__name { margin-top: 6px; color: #3E5338; font-size: 28px; font-weight: 600; line-height: 1.25; }
.am-blog-single__content .am-author-hero .am-author-hero__job { margin-top: 6px; color: #282828; font-size: 17px; font-weight: 500; line-height: 1.4; }
.am-blog-single__content .am-author-hero .am-author-hero__creds { margin-top: 10px; color: #3E5338; font-size: 15px; font-weight: 500; line-height: 1.4; }
.am-blog-single__content .am-author-hero .am-author-hero__bio { margin-top: 16px; font-size: 16px; line-height: 1.55; }
.am-author-page__text { display: flow-root; }

/* Сторінка автора: розділи */
.am-author-sec { margin: 36px 0 0; }
.am-author-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.am-blog-single__content .am-author-tags li { margin: 0; padding: 0; }
.am-blog-single__content .am-author-tags li::before { display: none; }
.am-author-tags a,
.am-author-tags span {
    display: inline-block;
    border: 1px solid #CFD3CC;
    border-radius: 999px;
    padding: 7px 16px;
    color: #3E5338;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
}
.am-author-tags a:hover { background: #3E5338; border-color: #3E5338; color: #fff; }
.am-author-links { margin: 0; padding-left: 20px; }
.am-author-consult .am-button { margin-top: 6px; }

/* Сторінка автора: статті */
.am-author-posts { margin: 40px 0 0; }
.am-author-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.am-author-post { display: flex; flex-direction: column; min-width: 0; }
.am-author-post__img { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 620 / 420; background: #F1F3EF; }
.am-author-post__img img,
.am-author-post__img .am-blog-card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.am-author-post__date { margin-top: 10px; color: #A0A0A0; font-size: 14px; }
.am-blog-single__content .am-author-post__title { margin: 6px 0 0; font-size: 18px; line-height: 1.35; }
.am-author-post__title a { color: #3E5338; text-decoration: none; }
.am-author-post__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.am-blog-single__content .am-author-post__text { margin: 8px 0 0; color: #555; font-size: 15px; line-height: 1.5; }
.am-author-post__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: #3E5338; font-weight: 500; text-decoration: none; }
.am-author-post__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-author-posts__all { margin: 24px 0 0; text-align: center; }
.am-author-posts__pages { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 24px; }
.am-author-posts__pages a,
.am-author-posts__pages span { min-width: 36px; padding: 6px 10px; border: 1px solid #CFD3CC; border-radius: 4px; text-align: center; text-decoration: none; color: #3E5338; }
.am-author-posts__pages span[aria-current] { background: #3E5338; color: #fff; border-color: #3E5338; }
.am-author-posts__pages .am-author-posts__back { border: 0; text-decoration: underline; }

@media (max-width: 1023px) {
    .am-author-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .am-byline { margin: -4px 0 14px; font-size: 12px; }
    .am-blog-metaline .am-blog-card__cat { font-size: 11px; }
    .am-author-card { gap: 14px; padding: 16px; }
    .am-author-card__img { width: 64px; height: 64px; }
    .am-author-card__name { font-size: 17px; }
    .am-author-card__bio { font-size: 14px; }
    .am-author-card--team .am-author-card__img,
    .am-author-card--expert .am-author-card__img { width: 56px; height: 56px; }
    .am-author-team__title { font-size: 18px; }
    .am-author-hero { flex-direction: column; align-items: center; gap: 18px; padding: 18px 16px; text-align: center; }
    .am-author-hero__photo { flex: 0 0 auto; width: 180px; }
    .am-author-hero__body { text-align: left; }
    .am-blog-single__content .am-author-hero .am-author-hero__name { font-size: 22px; }
    .am-blog-single__content .am-author-hero .am-author-hero__job { font-size: 15px; }
    .am-author-posts__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Категорії товарів і бренди: «Автор тексту» перед експертною перевіркою */
.am-shop-expert .am-shop-expert__author + .am-blog-author::before,
.am-shop-expert time + .am-shop-expert__author::before { content: '·'; margin: 0 8px; }
.am-shop-expert .am-shop-expert__author a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Стилі тексту сторінки (.am-blog-single__content ul/a) не чіпають блоки авторства */
.am-blog-single__content .am-author-tags { margin: 0; padding: 0; }
.am-blog-single__content .am-author-tags a,
.am-blog-single__content .am-author-tags span { font-weight: 400; text-decoration: none; }
.am-blog-single__content .am-author-post__title a,
.am-blog-single__content .am-author-post__more,
.am-blog-single__content .am-author-card__name a,
.am-blog-single__content .am-author-card__more { text-decoration: none; }
.am-blog-single__content .am-author-post__title a:hover,
.am-blog-single__content .am-author-post__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.am-blog-single__content .am-author-consult { margin-bottom: 48px; }
.am-blog-single__content .am-author-consult .am-button { color: #fff; text-decoration: none; }

@media (max-width: 767px) {
    .am-byline { display: block; }
    .am-byline__item { display: block; }
    .am-byline__item + .am-byline__item { margin-top: 2px; }
    .am-byline__item + .am-byline__item::before { content: none; }
    .am-author-card--box { flex-direction: column; gap: 12px; }
}
