/* Elementor public author profile. Shared gallery styles remain in gallery.css. */
.elementor-widget-mps_author_profile .mps-author-profile-widget {
    --mps-author-widget-overlay: rgba(35, 27, 19, .62);
    --mps-author-brand: #9E835C;
    max-width: 100%;
    padding-inline: 0;
}

.elementor-widget-mps_author_profile .mps-author-hero {
    display: flex;
    align-items: stretch;
    margin: 0 0 34px;
    background: linear-gradient(135deg, var(--mps-author-hero-bg1, #5F4E38), var(--mps-author-hero-bg2, #9E835C));
    isolation: isolate;
}

.elementor-widget-mps_author_profile .mps-author-hero::before {
    background-position: var(--mps-author-cover-position, center center);
}

.elementor-widget-mps_author_profile .mps-author-hero::after {
    background: linear-gradient(110deg, var(--mps-author-widget-overlay), rgba(35, 27, 19, .32));
}

.elementor-widget-mps_author_profile .mps-author-hero.no-cover::before {
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .18), transparent 30%),
        radial-gradient(circle at 86% 78%, rgba(255, 255, 255, .10), transparent 32%);
    opacity: 1;
    transform: none;
}

.elementor-widget-mps_author_profile .mps-author-hero__inner {
    width: 100%;
    min-height: inherit;
    padding: clamp(24px, 4vw, 52px);
}

.elementor-widget-mps_author_profile .mps-author-bio p {
    margin: 0;
}

.elementor-widget-mps_author_profile .mps-author-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    min-height: 28px;
    margin-top: 4px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    backdrop-filter: blur(10px);
}

.elementor-widget-mps_author_profile .mps-author-badge i {
    flex: 0 0 auto;
    font-size: 1em;
}

.elementor-widget-mps_author_profile .mps-author-badge span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elementor-widget-mps_author_profile .mps-author-public-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.elementor-widget-mps_author_profile .mps-author-public-link,
.elementor-widget-mps_author_profile .mps-author-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .94);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.elementor-widget-mps_author_profile .mps-author-socials {
    display: inline-flex;
    gap: 6px;
}

.elementor-widget-mps_author_profile .mps-author-social {
    width: 34px;
    padding: 0;
}

.elementor-widget-mps_author_profile a.mps-author-public-link:hover,
.elementor-widget-mps_author_profile .mps-author-social:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .17);
}

.elementor-widget-mps_author_profile .mps-author-edit-btn:focus-visible,
.elementor-widget-mps_author_profile .mps-author-public-link:focus-visible,
.elementor-widget-mps_author_profile .mps-author-social:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .62);
    outline-offset: 3px;
}

.elementor-widget-mps_author_profile .mps-author-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    width: min(100%, 380px);
}

.elementor-widget-mps_author_profile .mps-author-stat {
    min-width: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.elementor-widget-mps_author_profile .mps-author-gallery-block {
    margin-top: 6px;
}

.elementor-widget-mps_author_profile .mps-author-gallery-title {
    margin: 0 auto 18px;
    padding-inline: 10px;
    color: #2B241C;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.3;
}

.elementor-widget-mps_author_profile .mps-author-gallery .mps-gallery-section {
    padding-top: 0;
}

.elementor-widget-mps_author_profile .mps-author-widget-empty {
    padding: 28px;
    border: 1px dashed rgba(158, 131, 92, .5);
    border-radius: 18px;
    background: #fbf8f3;
    color: #6b5a44;
    text-align: center;
}

.elementor-widget-mps_author_profile .mps-gallery-widget .mps-load-more-wrap {
    text-align: center;
}

.elementor-widget-mps_author_profile .mps-gallery-widget .mps-no-results {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    border: 1px dashed rgba(158, 131, 92, .35);
    border-radius: 20px;
    background: #fbf9f6;
    color: #75664f;
    text-align: center;
}

.elementor-widget-mps_author_profile .mps-gallery-widget .mps-no-results i {
    font-size: 34px;
    color: #9E835C;
}

.elementor-widget-mps_author_profile .mps-gallery-widget .mps-no-results p {
    margin: 0;
}

@media (max-width: 1024px) {
    .elementor-widget-mps_author_profile .mps-author-hero__inner {
        align-items: flex-start;
    }

    .elementor-widget-mps_author_profile .mps-author-side {
        width: 100%;
        align-items: stretch;
    }

    .elementor-widget-mps_author_profile .mps-author-stats {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .elementor-widget-mps_author_profile .mps-author-edit-btn {
        width: fit-content;
    }
}

@media (max-width: 767px) {
    .elementor-widget-mps_author_profile .mps-author-profile-widget {
        padding: 0;
    }

    .elementor-widget-mps_author_profile .mps-author-hero {
        border-radius: 18px;
        margin-bottom: 24px;
    }

    .elementor-widget-mps_author_profile .mps-author-hero__inner {
        padding: 22px 18px;
    }

    .elementor-widget-mps_author_profile .mps-author-identity {
        align-items: flex-start;
        gap: 12px;
    }

    .elementor-widget-mps_author_profile .mps-author-avatar {
        width: 72px;
        height: 72px;
    }

    .elementor-widget-mps_author_profile .mps-author-bio {
        max-width: 100%;
    }

    .elementor-widget-mps_author_profile .mps-author-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elementor-widget-mps_author_profile .mps-author-stat {
        min-width: 0;
    }

    .elementor-widget-mps_author_profile .mps-author-public-link span {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .elementor-widget-mps_author_profile .mps-author-identity {
        flex-direction: column;
    }

    .elementor-widget-mps_author_profile .mps-author-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elementor-widget-mps_author_profile .mps-author-stat {
        padding: 9px 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elementor-widget-mps_author_profile * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.elementor-widget-mps_author_profile .mps-author-topics {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    max-width: 720px;
}

.elementor-widget-mps_author_profile .mps-author-topic-group {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--mps-author-hero-muted, rgba(255, 255, 255, .78));
}

.elementor-widget-mps_author_profile .mps-author-topic-group>strong {
    flex: 0 0 auto;
    line-height: 30px;
}

.elementor-widget-mps_author_profile .mps-author-topic-group>span {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.elementor-widget-mps_author_profile .mps-author-topic-group a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--mps-author-hero-text, #fff);
    text-decoration: none;
}

.elementor-widget-mps_author_profile .mps-author-topic-group a:hover,
.elementor-widget-mps_author_profile .mps-author-topic-group a:focus-visible {
    background: rgba(255, 255, 255, .17);
}

.elementor-widget-mps_author_profile .mps-author-topic-group a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .58);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .elementor-widget-mps_author_profile .mps-author-topic-group {
        display: block;
    }

    .elementor-widget-mps_author_profile .mps-author-topic-group>strong {
        display: block;
        margin-bottom: 6px;
    }
}