/* Author detail — E-SwissMar brand surface */
.author-detail-page {
    background: #fcf9f8;
    color: #1c1b1b;
}

.author-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 3rem;
}

.author-detail-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(252, 249, 248, 0.92) 0%, rgba(246, 243, 242, 0.88) 45%, rgba(240, 232, 231, 0.9) 100%),
        url('../images/Authors/banner-authors.png') center / cover no-repeat;
    pointer-events: none;
}

.author-detail-hero .container {
    position: relative;
    z-index: 1;
}

.author-detail-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #5b4040;
}

.author-detail-crumb a {
    color: #5b4040;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.author-detail-crumb a:hover {
    color: #b9172f;
}

.author-detail-crumb .material-symbols-outlined {
    font-size: 14px;
}

.author-detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 2.5rem 3rem;
    align-items: center;
}

.author-portrait {
    margin: 0;
    position: relative;
}

.author-portrait::before {
    content: '';
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1px solid rgba(185, 23, 47, 0.18);
    border-radius: 18px;
    z-index: 0;
}

.author-portrait-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background: #f6f3f2;
    box-shadow: 0 18px 40px rgba(28, 27, 27, 0.08);
}

.author-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.author-detail-identity .author-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b9172f;
}

.author-detail-identity .author-eyebrow .material-symbols-outlined {
    font-size: 16px;
}

.author-detail-identity h1 {
    font-family: 'Montserrat-Bold', 'Inter', sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1c1b1b;
    margin: 0 0 0.5rem;
}

.author-detail-career {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #5b4040;
    margin: 0 0 1.25rem;
}

.author-detail-lead {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #5a5a62;
    max-width: 36rem;
    margin: 0 0 1.5rem;
}

.author-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.author-social-links {
    display: flex;
    gap: 10px;
}

.author-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e3bebd;
    background: #fff;
    color: #5b4040;
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-social-links a:hover {
    background: #b9172f;
    border-color: #b9172f;
    color: #fff;
}

.author-social-links a i {
    font-size: 15px;
}

.author-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #b9172f;
    text-decoration: none;
}

.author-back-link:hover {
    color: #9c1327;
}

.author-back-link .material-symbols-outlined {
    font-size: 18px;
}

/* Body / tabs */
.author-detail-body {
    padding: 0 0 4.5rem;
}

.author-tabs-nav {
    display: flex;
    gap: 8px;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e5e2e1;
}

.author-tab-btn {
    background: none;
    border: none;
    padding: 0.85rem 1.1rem;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #767d85;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

.author-tab-btn:hover {
    color: #1c1b1b;
}

.author-tab-btn.active {
    color: #b9172f;
}

.author-tab-btn.active::after {
    content: '';
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: -1px;
    height: 2px;
    background: #b9172f;
}

.author-bio-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #3a3a42;
    margin: 0 0 2rem;
    padding-left: 1.15rem;
    border-left: 3px solid #b9172f;
}

.author-qa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.author-qa-item {
    padding: 1.25rem 1.35rem;
    border-top: 1px solid #e5e2e1;
}

.author-qa-item:nth-child(1),
.author-qa-item:nth-child(2) {
    border-top: none;
    padding-top: 0;
}

.author-qa-question {
    font-family: 'Montserrat-Bold', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c1b1b;
    margin: 0 0 0.55rem;
    line-height: 1.45;
}

.author-qa-question span {
    color: #b9172f;
    margin-right: 0.25rem;
}

.author-qa-answer {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #5a5a62;
    margin: 0;
}

.author-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.author-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.author-gallery-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #f6f3f2;
    border: 1px solid #e5e2e1;
}

.author-gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.author-gallery-media:hover img {
    transform: scale(1.04);
}

.author-gallery-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b4040;
    margin: 0;
    text-align: center;
}

@media (max-width: 991px) {
    .author-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .author-portrait {
        max-width: 320px;
        margin: 0 auto;
    }

    .author-detail-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .author-detail-actions {
        justify-content: center;
    }

    .author-tabs-nav {
        justify-content: center;
    }

    .author-bio-intro {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .author-detail-hero {
        padding: 1.75rem 0 2.25rem;
    }

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

    .author-qa-item:nth-child(2) {
        border-top: 1px solid #e5e2e1;
        padding-top: 1.25rem;
    }

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

@media (max-width: 480px) {
    .author-gallery-grid {
        grid-template-columns: 1fr;
    }
}
