/* BlogStudio: "Our bloggers" and the profile on an author's page (same colours as the articles). */
.bsb {
    --bsb-navy: #1b2848;
    --bsb-red: #e8424f;
    --bsb-text: #2a2d33;
    --bsb-muted: #666;
    --bsb-light: #f4f5f8;
    --bsb-border: #e3e3e3;
    color: var(--bsb-text);
    font-size: 16px;
    line-height: 1.65;
}
.bsb p { margin: 0 0 12px; }
.bsb a { color: var(--bsb-navy); }
.bsb a:hover { color: var(--bsb-red); }
.bsb a:focus-visible { outline: 2px solid var(--bsb-red); outline-offset: 2px; }
.bsb-kicker { color: var(--bsb-red); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px !important; }
.bsb-initial {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: var(--bsb-navy); color: #fff; font-size: 40px; font-weight: 700;
}
.bsb-count { color: var(--bsb-muted); font-size: 14px; }

/* Overview */
.bsb .bsb-page-title { color: var(--bsb-navy); font-size: clamp(32px, 3.4vw, 44px); font-weight: 700 !important; line-height: 1.1; margin: 0 0 14px; }
.bsb-lead { font-size: 18px; max-width: 760px; margin-bottom: 28px !important; }
/* Three columns: the women's row above the men's, so the subjects line up. */
.bsb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
@media (max-width: 1100px) { .bsb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bsb-grid { grid-template-columns: 1fr; } }
.bsb-card {
    display: flex; flex-direction: column; align-items: flex-start;
    background: #fff; border: 1px solid var(--bsb-border); padding: 24px;
}
.bsb-card-photo {
    display: block; width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
    background: var(--bsb-light); margin-bottom: 16px; flex: none;
}
.bsb-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; }
.bsb .bsb-card-name { font-size: 22px; font-weight: 700 !important; line-height: 1.2; margin: 0 0 4px; }
.bsb .bsb-card-name a { color: var(--bsb-navy); font-weight: 700 !important; text-decoration: none; }
.bsb-job { color: var(--bsb-red); font-weight: 700; font-size: 14px; margin-bottom: 10px !important; }
.bsb-card-intro { font-size: 15px; }
.bsb-newest { font-size: 14px; }
.bsb-newest span { color: var(--bsb-muted); margin-right: 4px; }
.bsb .bsb-button {
    margin-top: auto; display: inline-block; background: var(--bsb-navy); color: #fff; font-weight: 700;
    font-size: 14px; padding: 10px 18px; text-decoration: none;
}
.bsb .bsb-button:hover { background: var(--bsb-red); color: #fff; }
.bsb-note { background: var(--bsb-light); padding: 20px 24px; max-width: 760px; }
.bsb-note p:last-child { margin-bottom: 0; }

/* Profile on an author's page */
.bsb-profile { background: var(--bsb-light); padding: 28px; margin-bottom: 28px; }
.bsb-profile-head { display: flex; gap: 28px; align-items: flex-start; }
.bsb-profile-photo { width: 144px; height: 144px; border-radius: 50%; overflow: hidden; flex: none; background: #fff; }
.bsb-profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; }
.bsb .bsb-profile-name { color: var(--bsb-navy); font-size: clamp(32px, 3.4vw, 44px); font-weight: 700 !important; line-height: 1.1; margin: 0 0 8px; }
.bsb .bsb-profile-job { color: #3c4a70; font-size: 18px; font-weight: 700 !important; line-height: 1.25; }
.bsb-profile-intro { font-size: 17px; }
.bsb-profile-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin: 4px 0 0 !important; }
.bsb-profile-meta a { font-weight: 700; }
.bsb-note-line { color: var(--bsb-muted); font-size: 13px; border-top: 1px solid var(--bsb-border); padding-top: 14px; margin: 20px 0 0 !important; }
.bsb-empty { font-weight: 700; margin: 16px 0 0 !important; }
.bsb.bsb-list-title { color: #1b2848; font-size: 22px; font-weight: 700 !important; margin: 0 0 16px; }

/* The author's articles (Amasty's list) as a grid of cards, like the bloggers overview. */
.amblog-index-author .amblog-container-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px;
}
.amblog-index-author .amblog-container-list > :not(.amblog-post-container) { grid-column: 1 / -1; }
.amblog-index-author .amblog-container-list > .amblog-post-container {
    display: flex; flex-direction: column; width: auto !important; margin: 0 !important; padding: 0 !important;
    background: #fff !important; border: 1px solid #e3e3e3 !important; float: none !important; box-shadow: none !important;
}
.amblog-index-author .amblog-post-container .post-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f4f5f8; }
.amblog-index-author .amblog-post-container .post-image picture { display: block; width: 100%; height: 100%; }
.amblog-index-author .amblog-post-container .post-image img {
    display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
    margin: 0 !important; object-fit: cover; transition: transform .3s;
}
.amblog-index-author .amblog-post-container:hover .post-image img { transform: scale(1.03); }
.amblog-index-author .amblog-post-container .custom_content_lister_blog {
    display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; margin: 0 !important;
}
.amblog-index-author .amblog-post-container .amblog-content { padding: 0 !important; margin: 0 !important; }
.amblog-index-author .amblog-post-container .amblog-post-title { font-size: 17px !important; line-height: 1.3 !important; margin: 0 0 14px !important; font-weight: 700 !important; }
.amblog-index-author .amblog-post-container .amblog-post-title a { color: #1b2848 !important; text-decoration: none; }
.amblog-index-author .amblog-post-container .amblog-post-title a:hover { color: #e8424f !important; }
.amblog-index-author .amblog-post-container .amblog-footer { margin-top: auto; padding: 0 !important; border: 0 !important; }
.amblog-index-author .amblog-post-container .amblog-read {
    display: inline-block; background: #1b2848 !important; color: #fff !important; font-size: 13px !important; font-weight: 700;
    padding: 8px 14px !important; border: 0 !important; border-radius: 0 !important; text-decoration: none; margin: 0 !important;
}
.amblog-index-author .amblog-post-container .amblog-read:hover { background: #e8424f !important; }
@media (max-width: 1100px) { .amblog-index-author .amblog-container-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .amblog-index-author .amblog-container-list { grid-template-columns: 1fr; } }

/* No blog search on these pages: it has nothing to do with the bloggers, and on an author's page
   the articles follow the profile directly. */
.blogstudio-bloggers-index .amblog-search,
.amblog-index-author .amblog-search { display: none; }

/* Breadcrumbs on one line, aligned with the page (the theme only does this for the blog home,
   posts and tags). */
body.amblog-index-author > .breadcrumbs,
body.blogstudio-bloggers-index > .breadcrumbs {
    position: static; max-width: 1700px !important; width: auto !important; margin: 0 auto; padding: 12px 0 0;
}
body.amblog-index-author > .breadcrumbs .items,
body.blogstudio-bloggers-index > .breadcrumbs .items {
    display: flex; flex-wrap: wrap; align-items: center; max-width: none; margin: 0; padding: 0 !important;
}
/* Without a page title above the columns, the profile needs room under the breadcrumbs. */
body.amblog-index-author > .breadcrumbs,
body.blogstudio-bloggers-index > .breadcrumbs { margin-bottom: 28px; }
body.amblog-index-author > .breadcrumbs .items > .item,
body.blogstudio-bloggers-index > .breadcrumbs .items > .item { width: auto !important; flex: none; }

/* The general blog banner and promotions do not belong above a person's profile, and the author
   is not repeated in the sidebar (Amasty adds that block through its own generated layout). */
.amblog-index-author #amblog_sidebar_author,
.amblog-index-author .tag-header,
.amblog-index-author .featured,
.amblog-index-author .advertising { display: none; }

@media (max-width: 768px) {
    body.amblog-index-author > .breadcrumbs,
    body.blogstudio-bloggers-index > .breadcrumbs { padding: 12px 15px 0; }
}
@media (max-width: 640px) {
    .bsb-profile { padding: 20px 16px; }
    .bsb-profile-head { flex-direction: column; gap: 16px; }
    .bsb-profile-photo { width: 112px; height: 112px; }
    .bsb-card { padding: 20px 16px; }
}
