:root {
    --spma-author-green: #004e2a;
    --spma-author-green-bright: #087b43;
    --spma-author-green-soft: #eaf5ef;
    --spma-author-gold: #d5be52;
    --spma-author-gold-soft: #f7f1d6;
    --spma-author-ink: #17221c;
    --spma-author-muted: #66736c;
    --spma-author-line: #dde5e0;
    --spma-author-paper: #ffffff;
    --spma-author-canvas: #f4f7f5;
    --spma-author-radius: 22px;
    --spma-author-shadow: 0 18px 55px rgba(20, 47, 31, .10);
}

body.spma-native-author-active,
body.spma-native-author-active #page-container,
.spma-author-template-main {
    background: var(--spma-author-canvas);
}

.spma-author-template-main {
    min-height: 60vh;
    overflow: clip;
}

.spma-author-page,
.spma-author-page * {
    box-sizing: border-box;
}

.spma-author-page {
    width: 100%;
    margin: 0;
    color: var(--spma-author-ink);
    font-family: inherit;
}

.spma-author-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.spma-author-hero {
    position: relative;
    isolation: isolate;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(213, 190, 82, .24), transparent 28%),
        linear-gradient(135deg, #0e2016 0%, #173d29 56%, #005331 100%);
    color: #fff;
}

.spma-author-hero--has-cover {
    background-image: var(--spma-author-cover);
    background-size: cover;
    background-position: center;
}

.spma-author-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9, 20, 14, .91) 0%, rgba(9, 20, 14, .72) 46%, rgba(9, 20, 14, .34) 100%),
        linear-gradient(0deg, rgba(8, 20, 13, .58), rgba(8, 20, 13, .08));
}

.spma-author-hero:not(.spma-author-hero--has-cover)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .26;
    background-image:
        linear-gradient(30deg, rgba(255,255,255,.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.06) 87.5%),
        linear-gradient(150deg, rgba(255,255,255,.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.06) 87.5%);
    background-size: 48px 84px;
}

.spma-author-hero__inner {
    padding: 72px 0 58px;
}

.spma-author-hero__eyebrow {
    margin: 0 0 9px;
    color: var(--spma-author-gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.spma-author-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 900;
}

.spma-author-hero__headline {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.55;
    font-weight: 650;
}

.spma-author-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding-top: 42px;
    padding-bottom: 72px;
}

.spma-author-sidebar {
    position: relative;
}

.spma-author-profile {
    position: sticky;
    top: 108px;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--spma-author-line);
    border-radius: var(--spma-author-radius);
    background: var(--spma-author-paper);
    box-shadow: var(--spma-author-shadow);
}

.spma-author-profile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--spma-author-green), var(--spma-author-gold));
}

.spma-author-profile__avatar-wrap {
    display: flex;
    justify-content: center;
    margin: 2px 0 18px;
}

.spma-author-profile__avatar-wrap a {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--spma-author-gold), var(--spma-author-green));
    box-shadow: 0 12px 28px rgba(0, 78, 42, .18);
}

.spma-author-profile__avatar {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #edf1ee;
}

.spma-author-profile__identity {
    text-align: center;
}

.spma-author-profile__identity h2 {
    margin: 0;
    color: var(--spma-author-ink);
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 900;
}

.spma-author-profile__headline {
    margin: 7px 0 0;
    color: var(--spma-author-green);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

.spma-author-profile__bio {
    margin-top: 21px;
    padding-top: 20px;
    border-top: 1px solid var(--spma-author-line);
    color: #4c5b53;
    font-size: 14px;
    line-height: 1.75;
}

.spma-author-profile__bio p {
    margin: 0 0 12px;
}

.spma-author-profile__bio p:last-child {
    margin-bottom: 0;
}

.spma-author-profile__stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
    padding: 13px 14px;
    border: 1px solid #dfebe3;
    border-radius: 14px;
    background: var(--spma-author-green-soft);
}

.spma-author-profile__stat span {
    color: var(--spma-author-green);
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

.spma-author-profile__stat small {
    color: #486155;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.spma-author-profile__socials {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.spma-author-profile__socials a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--spma-author-line);
    border-radius: 12px;
    color: var(--spma-author-ink);
    background: #fff;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 850;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.spma-author-profile__socials a:hover,
.spma-author-profile__socials a:focus-visible {
    transform: translateY(-1px);
    border-color: #b7d0c1;
    background: var(--spma-author-green-soft);
    color: var(--spma-author-green);
}

.spma-author-profile__socials i {
    display: grid;
    place-items: center;
    width: 24px;
    color: var(--spma-author-green);
    font-size: 15px;
}

.spma-author-content {
    min-width: 0;
    display: grid;
    gap: 44px;
}

.spma-author-section {
    min-width: 0;
}

.spma-author-section__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.spma-author-section__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--spma-author-green);
    background: var(--spma-author-gold-soft);
    box-shadow: inset 0 0 0 1px rgba(213,190,82,.36);
}

.spma-author-section__head p {
    margin: 0 0 3px;
    color: var(--spma-author-green);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.spma-author-section__head h2 {
    margin: 0;
    color: var(--spma-author-ink);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -.035em;
    font-weight: 950;
}

.spma-author-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.spma-author-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--spma-author-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(26, 52, 37, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.spma-author-card:hover {
    transform: translateY(-3px);
    border-color: #c7d8cd;
    box-shadow: 0 18px 44px rgba(26, 52, 37, .12);
}

.spma-author-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e9f0eb, #dce7e0);
    text-decoration: none !important;
}

.spma-author-card__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform .35s ease;
}

.spma-author-card:hover .spma-author-card__image {
    transform: scale(1.035);
}

.spma-author-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(0,78,42,.42);
    font-size: 42px;
}

.spma-author-card__type {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(13,34,22,.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.spma-author-card__body {
    padding: 19px 20px 21px;
}

.spma-author-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    align-items: center;
    min-height: 18px;
    margin-bottom: 9px;
    color: var(--spma-author-muted);
    font-size: 10px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.spma-author-card__meta span {
    color: var(--spma-author-green);
}

.spma-author-card__meta span::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-left: 12px;
    border-radius: 50%;
    vertical-align: middle;
    background: var(--spma-author-gold);
}

.spma-author-card__body h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.025em;
    font-weight: 900;
}

.spma-author-card__body h3 a {
    color: var(--spma-author-ink);
    text-decoration: none !important;
}

.spma-author-card__body h3 a:hover,
.spma-author-card__body h3 a:focus-visible {
    color: var(--spma-author-green);
}

.spma-author-card__body p {
    margin: 10px 0 15px;
    color: var(--spma-author-muted);
    font-size: 13px;
    line-height: 1.65;
}

.spma-author-card__read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--spma-author-green);
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 900;
}

.spma-author-card__read i {
    font-size: 10px;
    transition: transform .18s ease;
}

.spma-author-card__read:hover i,
.spma-author-card__read:focus-visible i {
    transform: translateX(3px);
}

.spma-author-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-top: 24px;
}

.spma-author-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--spma-author-line);
    border-radius: 11px;
    color: var(--spma-author-ink);
    background: #fff;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 850;
}

.spma-author-pagination .current,
.spma-author-pagination a:hover,
.spma-author-pagination a:focus-visible {
    border-color: var(--spma-author-green);
    color: #fff;
    background: var(--spma-author-green);
}

.spma-author-empty,
.spma-author-notice {
    padding: 44px 30px;
    border: 1px solid var(--spma-author-line);
    border-radius: var(--spma-author-radius);
    background: #fff;
    text-align: center;
}

.spma-author-empty i {
    margin-bottom: 14px;
    color: var(--spma-author-gold);
    font-size: 35px;
}

.spma-author-empty h2 {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 900;
}

.spma-author-empty p {
    margin: 0;
    color: var(--spma-author-muted);
}

@media (max-width: 980px) {
    .spma-author-shell {
        width: min(100% - 36px, 1240px);
    }

    .spma-author-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 30px;
    }

    .spma-author-profile {
        position: relative;
        top: auto;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0 22px;
        align-items: center;
    }

    .spma-author-profile__avatar-wrap {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .spma-author-profile__avatar-wrap a {
        width: 126px;
        height: 126px;
    }

    .spma-author-profile__identity {
        text-align: left;
    }

    .spma-author-profile__bio,
    .spma-author-profile__stat,
    .spma-author-profile__socials {
        grid-column: 1 / -1;
    }

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

@media (max-width: 680px) {
    .spma-author-shell {
        width: min(100% - 28px, 1240px);
    }

    .spma-author-hero {
        min-height: 245px;
    }

    .spma-author-hero__inner {
        padding: 54px 0 38px;
    }

    .spma-author-hero h1 {
        font-size: clamp(38px, 12vw, 56px);
    }

    .spma-author-layout {
        gap: 32px;
        padding-top: 20px;
        padding-bottom: 48px;
    }

    .spma-author-profile {
        display: block;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .spma-author-profile__avatar-wrap {
        margin: 0 0 16px;
    }

    .spma-author-profile__avatar-wrap a {
        width: 118px;
        height: 118px;
    }

    .spma-author-profile__identity {
        text-align: center;
    }

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

    .spma-author-section__head {
        margin-bottom: 14px;
    }

    .spma-author-section__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .spma-author-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .spma-author-card {
        border-radius: 16px;
    }

    .spma-author-card__body {
        padding: 16px 17px 18px;
    }

    .spma-author-card__body h3 {
        font-size: 19px;
    }
}

@media (max-width: 420px) {
    .spma-author-profile__socials {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spma-author-card,
    .spma-author-card__image,
    .spma-author-card__read i,
    .spma-author-profile__socials a {
        transition: none !important;
    }
}
