.cr-author-profile {
    background:
        radial-gradient(circle at top right, rgba(255, 119, 61, 0.10), transparent 28%),
        linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
    padding: 32px 0 64px;
}

.cr-author-profile__title,
.cr-author-profile__section-title,
.cr-author-profile__article-title,
.cr-author-profile__article-link,
.cr-author-profile__empty h1,
.cr-author-profile__card--empty h3 {
    font-family: var(--cr-title-font-family) !important;
    font-weight: var(--cr-title-font-weight) !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

.cr-author-profile__shell {
    margin: 0 auto;
    max-width: none;
    padding: 0;
    width: min(1280px, calc(100% - 48px));
}

.cr-author-profile__hero,
.cr-author-profile__card,
.cr-author-profile__empty {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 37, 66, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(25, 41, 72, 0.08);
}

.cr-author-profile__hero {
    margin-bottom: 24px;
    padding: 32px;
}

.cr-author-profile__hero-grid,
.cr-author-profile__details {
    display: grid;
    gap: 24px;
}

.cr-author-profile__hero-grid {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.cr-author-profile__identity {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: 196px minmax(0, 1fr);
}

.cr-author-profile__avatar {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(22, 37, 66, 0.08);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    min-height: 112px;
    padding: 16px 18px;
}

.cr-author-profile__avatar .listivo-user-image,
.cr-author-profile__avatar img,
.cr-author-profile__avatar .listivo-user-image-placeholder {
    border-radius: 0;
    height: auto;
    max-height: 54px;
    object-fit: contain;
    width: min(100%, 168px);
}

.cr-author-profile__eyebrow,
.cr-author-profile__section-label {
    color: #ff6a3d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.cr-author-profile__title,
.cr-author-profile__section-title {
    color: var(--cr-light-text-color);
    margin: 0;
}

.cr-author-profile__title {
    font-size: clamp(1.75rem, 2.4vw, 2.65rem);
    line-height: 1;
}

.cr-author-profile__company {
    color: var(--cr-light-text-color);
    font-size: 1.05rem;
    margin: 12px 0 0;
}

.cr-author-profile__lead {
    color: #425b79;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 12px 0 0;
    max-width: 760px;
}

.cr-author-profile__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cr-author-profile__stat {
    background: #f2f6fb;
    border: 1px solid rgba(32, 50, 77, 0.08);
    border-radius: 12px;
    color: #314766;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 14px;
}

.cr-author-profile__stat--accent {
    background: rgba(255, 119, 61, 0.12);
    border-color: rgba(255, 119, 61, 0.18);
    color: #c95027;
}

.cr-author-profile__actions {
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.cr-author-profile__button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(32, 50, 77, 0.10);
    border-radius: 14px;
    color: var(--cr-light-text-color);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    min-width: 210px;
    padding: 0 20px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cr-author-profile__button:hover {
    box-shadow: 0 12px 24px rgba(32, 50, 77, 0.10);
    transform: translateY(-1px);
}

.cr-author-profile__button--primary {
    background: linear-gradient(135deg, #ff875b 0%, #ff6a3d 100%);
    border-color: transparent;
    color: #ffffff;
}

.cr-author-profile__details {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.82fr);
    margin-bottom: 24px;
}

.cr-author-profile__main,
.cr-author-profile__sidebar {
    display: grid;
    gap: 24px;
}

.cr-author-profile__card {
    padding: 28px;
}

.cr-author-profile__copy,
.cr-author-profile__copy p,
.cr-author-profile__meta,
.cr-author-profile__social {
    color: var(--cr-light-text-color);
}

.cr-author-profile__copy p {
    margin: 0 0 16px;
}

.cr-author-profile__copy p:last-child {
    margin-bottom: 0;
}

.cr-author-profile__coverage-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
}

.cr-author-profile__coverage-list li {
    color: var(--cr-light-text-color);
}

.cr-author-profile__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cr-author-profile__social {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid rgba(32, 50, 77, 0.08);
    border-radius: 12px;
    display: inline-flex;
    font-weight: 600;
    gap: 10px;
    padding: 11px 14px;
    text-decoration: none;
}

.cr-author-profile__social i {
    color: #ff6a3d;
    font-size: 1rem;
}

.cr-author-profile__meta {
    display: grid;
    gap: 16px;
    margin: 0;
}

.cr-author-profile__meta-row {
    border-bottom: 1px solid rgba(32, 50, 77, 0.08);
    display: grid;
    gap: 6px;
    padding-bottom: 16px;
}

.cr-author-profile__meta-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cr-author-profile__meta dt {
    color: var(--cr-light-text-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cr-author-profile__meta dd {
    margin: 0;
}

.cr-author-profile__meta a {
    color: #1f5f93;
    text-decoration: none;
}

.cr-author-profile__software-head {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cr-author-profile__software-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cr-author-profile__article-card {
    height: 100%;
}

.cr-author-profile__article-title {
    margin: 0;
}

.cr-author-profile__article-link {
    color: var(--cr-light-text-color);
    text-decoration: none;
}

.cr-author-profile__article-meta,
.cr-author-profile__article-excerpt {
    color: var(--cr-light-text-color);
}

.cr-author-profile__article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.92rem;
    margin-top: 14px;
}

.cr-author-profile__article-excerpt {
    margin-top: 14px;
}

.cr-author-profile__software-card .listivo-listing-card,
.cr-author-profile__software-card .listivo-listing-card__inner {
    height: 100%;
}

.cr-author-profile__pagination {
    margin-top: 28px;
}

.cr-author-profile__pagination .page-numbers {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(32, 50, 77, 0.10);
    border-radius: 12px;
    color: var(--cr-light-text-color);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    margin-right: 10px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 16px;
    text-decoration: none;
}

.cr-author-profile__pagination .current {
    background: #ff6a3d;
    border-color: #ff6a3d;
    color: #ffffff;
}

.cr-author-profile__card--empty,
.cr-author-profile__empty {
    padding: 40px 32px;
}

.cr-author-profile__card--empty h3,
.cr-author-profile__empty h1 {
    color: var(--cr-light-text-color);
    margin: 0 0 10px;
}

.cr-author-profile__card--empty p,
.cr-author-profile__empty p {
    color: var(--cr-light-text-color);
    margin: 0;
}

@media (max-width: 1024px) {
    .cr-author-profile__hero-grid,
    .cr-author-profile__details,
    .cr-author-profile__software-grid {
        grid-template-columns: 1fr;
    }

    .cr-author-profile__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .cr-author-profile {
        padding: 24px 0 48px;
    }

    .cr-author-profile__shell {
        width: min(1280px, calc(100% - 20px));
    }

    .cr-author-profile__hero,
    .cr-author-profile__card,
    .cr-author-profile__empty {
        border-radius: 18px;
    }

    .cr-author-profile__hero,
    .cr-author-profile__card,
    .cr-author-profile__card--empty,
    .cr-author-profile__empty {
        padding: 22px;
    }

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

    .cr-author-profile__avatar {
        justify-self: start;
        min-height: 94px;
        padding: 14px 16px;
    }

    .cr-author-profile__avatar .listivo-user-image,
    .cr-author-profile__avatar img,
    .cr-author-profile__avatar .listivo-user-image-placeholder {
        max-height: 46px;
        width: min(100%, 152px);
    }

    .cr-author-profile__software-grid {
        gap: 18px;
    }
}

html[data-cr-theme='dark'] .cr-author-profile,
body[data-cr-theme='dark'] .cr-author-profile {
    background:
        radial-gradient(circle at top right, rgba(255, 119, 61, 0.14), transparent 30%),
        linear-gradient(180deg, #101926 0%, #0c1420 100%);
}

html[data-cr-theme='dark'] .cr-author-profile__hero,
html[data-cr-theme='dark'] .cr-author-profile__card,
html[data-cr-theme='dark'] .cr-author-profile__empty,
body[data-cr-theme='dark'] .cr-author-profile__hero,
body[data-cr-theme='dark'] .cr-author-profile__card,
body[data-cr-theme='dark'] .cr-author-profile__empty {
    background: rgba(19, 30, 46, 0.92);
    border-color: rgba(143, 166, 194, 0.16);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

html[data-cr-theme='dark'] .cr-author-profile__avatar,
body[data-cr-theme='dark'] .cr-author-profile__avatar {
    background: rgba(15, 25, 38, 0.88);
    border-color: rgba(143, 166, 194, 0.16);
}

html[data-cr-theme='dark'] .cr-author-profile__title,
html[data-cr-theme='dark'] .cr-author-profile__section-title,
html[data-cr-theme='dark'] .cr-author-profile__meta dt,
html[data-cr-theme='dark'] .cr-author-profile__button,
html[data-cr-theme='dark'] .cr-author-profile__card--empty h3,
html[data-cr-theme='dark'] .cr-author-profile__empty h1,
body[data-cr-theme='dark'] .cr-author-profile__title,
body[data-cr-theme='dark'] .cr-author-profile__section-title,
body[data-cr-theme='dark'] .cr-author-profile__meta dt,
body[data-cr-theme='dark'] .cr-author-profile__button,
body[data-cr-theme='dark'] .cr-author-profile__card--empty h3,
body[data-cr-theme='dark'] .cr-author-profile__empty h1 {
    color: #edf4ff;
}

html[data-cr-theme='dark'] .cr-author-profile__company,
html[data-cr-theme='dark'] .cr-author-profile__lead,
html[data-cr-theme='dark'] .cr-author-profile__copy,
html[data-cr-theme='dark'] .cr-author-profile__copy p,
html[data-cr-theme='dark'] .cr-author-profile__meta,
html[data-cr-theme='dark'] .cr-author-profile__coverage-list li,
html[data-cr-theme='dark'] .cr-author-profile__article-meta,
html[data-cr-theme='dark'] .cr-author-profile__article-excerpt,
html[data-cr-theme='dark'] .cr-author-profile__social,
html[data-cr-theme='dark'] .cr-author-profile__card--empty p,
html[data-cr-theme='dark'] .cr-author-profile__empty p,
body[data-cr-theme='dark'] .cr-author-profile__company,
body[data-cr-theme='dark'] .cr-author-profile__lead,
body[data-cr-theme='dark'] .cr-author-profile__copy,
body[data-cr-theme='dark'] .cr-author-profile__copy p,
body[data-cr-theme='dark'] .cr-author-profile__meta,
body[data-cr-theme='dark'] .cr-author-profile__coverage-list li,
body[data-cr-theme='dark'] .cr-author-profile__article-meta,
body[data-cr-theme='dark'] .cr-author-profile__article-excerpt,
body[data-cr-theme='dark'] .cr-author-profile__social,
body[data-cr-theme='dark'] .cr-author-profile__card--empty p,
body[data-cr-theme='dark'] .cr-author-profile__empty p {
    color: #9eb1c8;
}

html[data-cr-theme='dark'] .cr-author-profile__article-link,
body[data-cr-theme='dark'] .cr-author-profile__article-link {
    color: #edf4ff;
}

html[data-cr-theme='dark'] .cr-author-profile__stat,
html[data-cr-theme='dark'] .cr-author-profile__social,
html[data-cr-theme='dark'] .cr-author-profile__button,
html[data-cr-theme='dark'] .cr-author-profile__pagination .page-numbers,
body[data-cr-theme='dark'] .cr-author-profile__stat,
body[data-cr-theme='dark'] .cr-author-profile__social,
body[data-cr-theme='dark'] .cr-author-profile__button,
body[data-cr-theme='dark'] .cr-author-profile__pagination .page-numbers {
    background: #182638;
    border-color: rgba(143, 166, 194, 0.16);
    color: #edf4ff;
}

html[data-cr-theme='dark'] .cr-author-profile__button--primary,
body[data-cr-theme='dark'] .cr-author-profile__button--primary {
    background: linear-gradient(135deg, #ff875b 0%, #ff6a3d 100%);
    border-color: transparent;
    color: #ffffff;
}

html[data-cr-theme='dark'] .cr-author-profile__meta-row,
body[data-cr-theme='dark'] .cr-author-profile__meta-row {
    border-color: rgba(143, 166, 194, 0.12);
}

html[data-cr-theme='dark'] .cr-author-profile__meta a,
body[data-cr-theme='dark'] .cr-author-profile__meta a {
    color: #8ec8ff;
}
