/*
 * Author Profile Page — BRK child theme override
 * Replaces parent single-author.css with brand-matched styling.
 *
 * Note: --brand-secondary and --brand-opaque are not defined in this theme's
 * colors.css, so we define fallbacks here using --brand-primary (#B71F26).
 */

:root {
    --brand-secondary: var(--brand-primary); /* #B71F26 red */
    --brand-opaque: #FCE8E9;                 /* light red tint */
}

#primary,
#content {
    overflow: hidden;
}

#content {
    padding: 0 10px;
}

#authorpage .primary-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px 30px 10px;
}

/* Profile header */
.single-profile-header {
    display: flex;
    align-items: center;
    align-content: space-between;
    column-gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-300);
}

.single-profile-picture-div {
    display: flex;
}

.single-profile-picture-div img.single-author-profile {
    display: flex;
    background-color: #fff;
    padding: 2px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #aaa8a8;
    font-size: 12px;
}

.single-author-info {
    display: flex;
    flex-direction: column;
}

#authorpage .single-author-name {
    margin: 0;
    font-size: 22px;
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    font-style: normal;
    font-weight: 900;
    line-height: 29px;
    color: #464646;
}

#authorpage .single-author-title,
#authorpage .single-author-company {
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    font-size: 14px;
    color: #464646;
    font-style: normal;
    font-weight: 500;
    margin: 0;
}

/* Social icons */
.single-social-icons {
    margin-top: 6px;
}

.single-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 4px;
    border-radius: 50%;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.single-social-icons a:hover {
    background-color: var(--brand-opaque);
}

.single-social-icons a.last {
    margin-right: 0;
}

.single-social-icons a img {
    width: 18px;
    height: 18px;
    filter: invert(27%);
}

.single-social-icons a:hover img {
    filter: invert(0%);
}

/* Bio */
.single-author-bio {
    max-width: 700px;
    margin-bottom: 10px;
}

.single-author-bio p {
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    margin-bottom: 10px;
    font-style: normal;
    font-size: 16px;
    color: #464646;
    line-height: 1.6;
}

/* Stats */
.single-author-stats {
    display: flex;
    gap: 120px;
    margin: 30px 0;
}

.single-author-stats .stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: space-between;
    column-gap: 12px;
}

.single-author-stats .stat-number {
    align-content: center;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    background: var(--brand-opaque);
    color: var(--brand-secondary);
    border-radius: 8px;
    width: 44px;
    height: 44px;
}

.single-author-stats .stat-label {
    display: flex;
    align-content: center;
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    height: 30px;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    color: #464646;
}

/* Detail sections (Education, Awards, etc.) */
.detail-div {
    display: flex;
    align-items: stretch;
    margin-bottom: 15px;
    column-gap: 20px;
}

.detail-text-group {
    display: flex;
    flex-direction: column;
    row-gap: 14px;
    font-size: 14px;
    margin-bottom: 14px;
}

.detail-text-header {
    display: flex;
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #464646;
}

.detail-text-header img {
    display: flex;
    align-self: center;
    height: 23px;
    width: 23px;
    filter: invert(27%);
}

.detail-text-header span {
    margin-left: 16px;
    color: #464646;
}

.detail-text-detail {
    display: flex;
    border-left: 3px solid var(--brand-linked);
    padding: 10px 0 10px 27px;
    margin-left: 10px;
    flex-direction: column;
    gap: 8px;
}

.detail-text-detail p {
    margin-bottom: 0;
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    color: #464646;
    font-size: 14px;
}

.detail-text-detail a {
    color: var(--brand-linked);
    text-decoration: none;
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    font-size: 14px;
}

.detail-text-detail a:hover {
    text-decoration: underline;
}

.detail-text-detail a:visited {
    color: var(--brand-linked);
}

/* Disclaimer */
.single-author-disclaimer {
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    color: #777;
    font-style: normal;
    font-weight: 300;
    font-size: 12px;
    line-height: 14px;
    margin: 34px 4px 66px;
}

/* Latest articles section */
.single-author-latest-articles-group {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    margin: 0 -30px -10px;
    padding: 30px;
}

#authorpage .single-author-latest-articles-group h2 {
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    margin-bottom: 24px;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #464646;
}

.single-author-article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    background-color: transparent;
}

.single-author-article {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.single-author-article:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.single-author-article-list .article-thumbnail {
    width: 100%;
}

.single-author-article-list .article-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.single-author-article .article-content {
    padding: 12px 16px 16px;
}

#authorpage .article-content h3 {
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #464646;
    margin-top: 0;
    margin-bottom: 8px;
}

.content-excerpt {
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    font-style: normal;
    font-weight: 350;
    font-size: 13px;
    line-height: 1.5;
    color: #4e5559;
}

.read-more-text {
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 14px;
    color: var(--brand-linked);
    text-decoration: none;
}

.read-more-text:visited {
    color: var(--brand-linked);
}

.read-more-text:hover {
    text-decoration: underline;
}

/* Breadcrumb on author page */
#authorpage .ringier-bread-crumbs-wrap {
    font-family: 'Roboto', 'Fira Sans', sans-serif;
    font-size: 14px;
}

/* Responsive */
@media (min-width: 768px) {
    .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .single-author-stats {
        gap: unset;
        justify-content: space-between;
    }
    #authorpage .primary-content {
        padding: 20px 16px 10px;
    }

    .single-author-latest-articles-group {
        margin: 0 -16px -10px;
        padding: 20px 16px;
    }

    .single-profile-picture-div img.single-author-profile {
        width: 90px;
        height: 90px;
    }
}
