/* Author pages — same visual language as the Web Development service page */
.author-page {
    --au-blue: #0066ff;
    --au-blue-dark: #0052cc;
    --au-cyan: #00b9d8;
    --au-ink: #1a1a1a;
    --au-body: #555f6b;
    --au-rule: #dce2e9;
    overflow: clip;
    color: var(--au-ink);
}

body:has(.author-page) footer [data-aos] {
    transform: none !important;
}

.author-page h1,
.author-page h2,
.author-page h3,
.author-page p {
    margin-top: 0;
}

.author-page h1,
.author-page h2,
.author-page h3 {
    color: var(--au-ink);
    letter-spacing: -.035em;
    line-height: 1.18;
}

.author-page p {
    color: var(--au-body);
    line-height: 1.75;
}

/* Breadcrumb */
.au-breadcrumb {
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.au-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #78818d;
    font-size: .82rem;
}

.au-breadcrumb li + li::before {
    content: "/";
    margin-right: .55rem;
    color: #a4acb5;
}

.au-breadcrumb a {
    color: #445164;
    text-underline-offset: .2em;
}

.au-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem !important;
    color: var(--au-blue) !important;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.5 !important;
    text-transform: uppercase;
}

.au-eyebrow span {
    color: #727c89;
    font-weight: 600;
    letter-spacing: .04em;
}

/* Profile hero */
.au-hero {
    padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(2.8rem, 5vw, 4rem);
    background: radial-gradient(ellipse at 82% 25%, #edf5ff 0, transparent 38%), #fff;
}

.au-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.au-avatar {
    display: grid;
    place-items: center;
    width: clamp(110px, 14vw, 160px);
    aspect-ratio: 1;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--au-blue), var(--au-cyan));
    box-shadow: 0 10px 30px rgba(24, 64, 120, .15);
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    overflow: hidden;
}

.au-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.au-profile h1 {
    margin-bottom: .4rem;
    font-size: clamp(2.1rem, 3.6vw, 3.1rem);
    font-weight: 750;
}

.au-role {
    margin-bottom: 1.1rem !important;
    color: #344356 !important;
    font-size: 1.05rem;
    font-weight: 600;
}

.au-bio {
    max-width: 720px;
    margin-bottom: 0;
    font-size: 1.02rem;
}

.au-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.6rem;
}

.au-stat {
    min-width: 140px;
    padding: .9rem 1.1rem;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff, #f8fbff);
}

.au-stat strong {
    display: block;
    color: var(--au-blue);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.au-stat span {
    color: var(--au-body);
    font-size: .8rem;
    font-weight: 600;
}

.au-social {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.2rem;
}

.au-social a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border: 1px solid #cbd9ed;
    border-radius: 6px;
    color: #174b91;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.au-social a:hover {
    border-color: #9ab9e8;
    background: #f7faff;
}

/* Expertise */
.au-expertise {
    padding: clamp(2.6rem, 5vw, 3.8rem) 0;
    border-top: 1px solid #edf1f6;
    background: #fff;
}

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

.au-panel {
    padding: 1.4rem;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff, #f8fbff);
    box-shadow: 0 8px 24px rgba(24, 42, 64, .045);
}

.au-panel h2 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 750;
}

.au-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.au-chips li {
    padding: .4rem .75rem;
    border-radius: 999px;
    background: #eaf2ff;
    color: #174b91;
    font-size: .82rem;
    font-weight: 700;
}

.au-chips.is-muted li {
    border: 1px solid #e0e7f0;
    background: #fff;
    color: #344356;
}

/* Articles */
.au-articles {
    padding: clamp(2.8rem, 5vw, 4.2rem) 0;
    background: #f7f9fc;
}

.au-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.au-section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 750;
}

.au-count {
    color: var(--au-body);
    font-size: .9rem;
    font-weight: 600;
}

.au-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.au-post {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.au-post:hover {
    transform: translateY(-3px);
    border-color: #bdd2ef;
    box-shadow: 0 14px 32px rgba(24, 64, 120, .09);
    color: inherit;
}

.au-post img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eef2f7;
    object-fit: cover;
}

.au-post-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .5rem;
    padding: 1.15rem 1.2rem 1.3rem;
}

.au-post-body small {
    color: var(--au-blue);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.au-post-body h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1.4;
}

.au-post-body p {
    flex: 1;
    margin: 0;
    font-size: .86rem;
    line-height: 1.6;
}

.au-post-body time {
    color: #78818d;
    font-size: .78rem;
    font-weight: 600;
}

.au-empty {
    padding: 1.5rem;
    border: 1px dashed #cbd9ed;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

/* Authors index */
.au-team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.au-team-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.5rem;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff, #f8fbff);
    box-shadow: 0 8px 24px rgba(24, 42, 64, .045);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.au-team-card:hover {
    transform: translateY(-3px);
    border-color: #bdd2ef;
    box-shadow: 0 14px 32px rgba(24, 64, 120, .09);
    color: inherit;
}

.au-team-card .au-avatar {
    width: 84px;
    font-size: 1.8rem;
}

.au-team-card h2 {
    margin-bottom: .2rem;
    font-size: 1.3rem;
    font-weight: 750;
}

.au-team-card p {
    margin-bottom: .7rem;
    font-size: .9rem;
    line-height: 1.6;
}

.au-link {
    color: var(--au-blue);
    font-size: .85rem;
    font-weight: 700;
}

.au-post:focus-visible,
.au-team-card:focus-visible,
.au-social a:focus-visible {
    outline: 3px solid rgba(0, 102, 255, .3);
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .au-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .au-team {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .au-profile {
        grid-template-columns: 1fr;
    }

    .au-expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .au-posts {
        grid-template-columns: 1fr;
    }

    .au-stat {
        flex: 1 1 120px;
        min-width: 0;
    }

    .au-team-card {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .au-post,
    .au-team-card {
        transition: none;
    }

    .au-post:hover,
    .au-team-card:hover {
        transform: none;
    }
}
