/* Authors module — index + profile */

:root {
    --authors-ink: #0b1f47;
    --authors-ink-soft: #142a5c;
    --authors-accent: #009dff;
    --authors-text: #1a1a1a;
    --authors-muted: #5a6472;
    --authors-card-shadow: 0 4px 20px rgba(15, 35, 80, 0.08);
    --authors-cream: #f7f4ef;
}

.authors-page {
    padding-bottom: 64px;
    font-family: inherit;
}

.authors-page h1,
.authors-page h2,
.authors-page h3,
.authors-page p {
    font-family: inherit;
}

/* —— Index hero banner —— */
.authors-hero {
    position: relative;
    background: linear-gradient(180deg, var(--authors-ink) 0%, var(--authors-ink-soft) 100%);
    color: #ffffff;
    overflow: hidden;
    padding: 72px 0 80px;
    text-align: center;
}

.authors-hero__strokes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 40% 80% at 0% 50%, rgba(120, 180, 255, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 80% at 100% 50%, rgba(100, 170, 255, 0.3) 0%, transparent 70%);
    opacity: 0.9;
}

.authors-hero__strokes::before,
.authors-hero__strokes::after {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    width: 28%;
    background: repeating-linear-gradient(
        -18deg,
        transparent,
        transparent 18px,
        rgba(150, 200, 255, 0.12) 18px,
        rgba(150, 200, 255, 0.12) 36px
    );
    border-radius: 40% 60%;
    filter: blur(0.5px);
}

.authors-hero__strokes::before { left: -6%; transform: rotate(-8deg); }
.authors-hero__strokes::after { right: -6%; transform: rotate(8deg); }

.authors-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.authors-hero__title {
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    color: #ffffff !important;
}

.authors-hero__subtitle {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 560px;
    color: #ffffff !important;
    opacity: 0.95;
}

.authors-body {
    padding-top: 48px;
}

.authors-section-head {
    margin-bottom: 28px;
}

.authors-section-title {
    font-family: inherit;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--authors-ink);
    margin: 0 0 12px;
    font-weight: 700;
}

.authors-section-rule {
    border: 0;
    border-top: 1px solid #d9dee7;
    margin: 0;
}

/* —— Author cards grid —— */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    padding-top: 28px;
}

.author-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(15, 35, 80, 0.1);
    padding: 28px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
}

.author-card__avatar {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    margin-top: -46px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8eef8;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 35, 80, 0.12);
    display: block;
    text-decoration: none;
}

.author-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-card__avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 700;
    color: var(--authors-ink);
    font-size: 1.5rem;
    font-family: inherit;
}

.author-card__identity {
    width: 100%;
    min-width: 0;
}

.author-card__name {
    font-family: inherit;
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--authors-ink);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.author-card__name a {
    color: inherit;
    text-decoration: none;
}

.author-card__name a:hover {
    color: var(--authors-accent);
}

.author-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--authors-accent) !important;
    flex-shrink: 0;
    text-decoration: none !important;
}

.author-card__arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.author-card__role {
    margin: 0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--authors-muted);
    line-height: 1.35;
}

.author-card__divider {
    border: 0;
    border-top: 1px solid #e5e8ef;
    margin: 20px 0;
    width: 100%;
}

.author-card__bio {
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
    flex: 1;
}

.author-card__more {
    color: var(--authors-accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.author-card__more:hover {
    text-decoration: underline;
}

.author-card__socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
}

.author-card .author-social {
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 0;
    flex-shrink: 0;
}

.author-card .author-social svg {
    width: 18px;
    height: 18px;
    display: block;
}

.author-card .author-social:hover {
    color: var(--authors-accent);
}

.author-social {
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 0;
    flex-shrink: 0;
}

.author-social svg {
    width: 18px;
    height: 18px;
    display: block;
}

.author-social:hover {
    color: var(--authors-accent);
}

.author-social--email svg {
    width: 21px;
    height: 21px;
}

.author-card .author-social--email svg {
    width: 21px;
    height: 21px;
}

.author-social--light {
    color: rgba(255, 255, 255, 0.9);
}

.author-social--light:hover {
    color: #fff;
}

.authors-empty {
    color: var(--authors-muted);
    padding: 24px 0;
}

/* —— Profile hero —— */
.author-profile-hero {
    background: var(--authors-ink);
    color: #fff;
    padding: 36px 0 48px;
}

.author-profile-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 24px;
    color: #ffffff !important;
    background: transparent !important;
}

.author-profile-breadcrumb a,
.author-profile-breadcrumb span {
    color: #ffffff !important;
    background: transparent !important;
    text-decoration: none;
}

.author-profile-breadcrumb a:hover {
    text-decoration: underline;
    color: #ffffff !important;
}

.author-profile-hero__row {
    display: flex;
    gap: 28px;
    align-items: center;
}

.author-profile-hero__photo {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.85);
    background: #1a3a6e;
}

.author-profile-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    font-weight: 700;
}

.author-profile-hero__name {
    font-family: inherit;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff !important;
}

.author-profile-hero__role {
    font-family: inherit;
    margin: 0 0 16px;
    font-size: 1rem;
    color: #ffffff !important;
    opacity: 0.95;
}

.author-profile-hero__socials {
    display: flex;
    gap: 14px;
}

.author-profile-body {
    padding-top: 40px;
}

.author-about-title {
    font-size: 1.25rem;
    color: #4a5568;
    font-weight: 600;
    margin: 0 0 16px;
}

.author-about-copy {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3748;
}

.author-about-copy p {
    margin-bottom: 1rem;
}

.author-sidebar-card {
    background: var(--authors-cream);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.author-sidebar-stat {
    margin-bottom: 20px;
}

.author-sidebar-stat__num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--authors-ink);
    line-height: 1;
}

.author-sidebar-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--authors-muted);
    font-weight: 700;
}

.author-sidebar-expertise__title {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--authors-ink);
    font-weight: 700;
    margin: 0 0 10px;
}

.author-sidebar-expertise ul {
    margin: 0;
    padding-left: 1.1rem;
}

.author-sidebar-expertise li {
    margin-bottom: 6px;
    color: #333;
}

.author-latest {
    margin-top: 48px;
    padding-top: 8px;
}

.author-latest__title {
    font-family: inherit;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--authors-ink);
    margin: 0 0 12px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .authors-grid {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .authors-hero {
        padding: 48px 0 56px;
    }

    .author-card__avatar {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
        margin-top: -32px;
    }

    .author-profile-hero__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-profile-hero__photo {
        flex-basis: 110px;
        width: 110px;
        height: 110px;
    }
}
