:root {
    --wc-surface-primary: #fff;
    --wc-surface-page: #f5f7f9;
    --wc-text-primary: #30363c;
    --wc-text-secondary: #777f87;
    --wc-text-muted: #a0a6ac;
    --wc-border-subtle: #edf0f3;
    --wc-accent-primary: #2788e8;
    --wc-accent-deep: #246bb5;
}

.author-card-panel {
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--wc-surface-primary);
    border: 1px solid var(--wc-border-subtle);
}

.author-card {
    padding: 20px;
    text-align: center;
}

.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wc-accent-primary), var(--wc-accent-deep));
    color: var(--wc-surface-primary);
    font-size: 28px;
    font-weight: 700;
}

.author-card-name {
    margin: 0;
    color: var(--wc-text-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.author-card-name a {
    color: inherit;
}

.author-card-name a:hover,
.author-card-name a:focus-visible,
.author-card-contact a:hover,
.author-card-contact a:focus-visible,
.author-posts a:hover,
.author-posts a:focus-visible {
    color: var(--wc-accent-primary);
}

.author-card-role {
    margin: 4px 0 0;
    color: var(--wc-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.author-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--wc-border-subtle);
}

.author-card-stats div {
    min-width: 0;
}

.author-card-stats dt {
    color: var(--wc-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.author-card-stats dd {
    margin: 0 0 2px;
    color: var(--wc-text-primary);
    font-size: 18px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.author-card-contact {
    margin: 14px 0 0;
    color: var(--wc-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.author-card-contact a {
    color: var(--wc-accent-primary);
    font-size: 16px;
}

.author-posts {
    margin-top: 14px;
    background: var(--wc-surface-primary);
    border: 1px solid var(--wc-border-subtle);
}

.author-posts h2 {
    margin: 0;
    padding: 12px 16px 10px;
    color: var(--wc-text-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.author-posts ul {
    margin: 0;
    padding: 0 16px 10px;
    list-style: none;
}

.author-posts li {
    position: relative;
    min-width: 0;
    padding: 7px 0 7px 13px;
    border-bottom: 1px dotted var(--wc-border-subtle);
    line-height: 1.5;
}

.author-posts li:last-child {
    border-bottom: 0;
}

.author-posts li::before {
    position: absolute;
    top: 14px;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--wc-accent-primary);
    content: "";
}

.author-posts a {
    display: block;
    overflow: hidden;
    color: var(--wc-text-secondary);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .author-card {
        padding: 16px;
    }

    .author-posts ul {
        padding-right: 12px;
        padding-left: 12px;
    }

    .author-posts a {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 900px) {
    html.pg_view {
        width: 100vw;
        min-width: 0;
        overflow-x: hidden;
    }

    body.pg_view {
        width: 100vw;
        min-width: 0;
        overflow-x: hidden;
    }

    body.pg_view .wp,
    body.pg_view #ct {
        width: auto !important;
        min-width: 0 !important;
    }

    body.pg_view .top_head.wp,
    body.pg_view #hd,
    body.pg_view #nv,
    body.pg_view #pt,
    body.pg_view #wp,
    body.pg_view #ft {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
    }

    body.pg_view #toptb,
    body.pg_view .vk_ft_wp,
    body.pg_view .vk_ft_wp #ft {
        width: auto !important;
        min-width: 0 !important;
    }

    body.pg_view #hdc,
    body.pg_view .hdc,
    body.pg_view #mu,
    body.pg_view .vk_nv_sub,
    body.pg_view .vk_search_right,
    body.pg_view #nv > ul,
    body.pg_view .vk_contact_info_5_col {
        width: calc(100vw - 2px) !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    body.pg_view #append_parent,
    body.pg_view .clear,
    body.pg_view .vk_ft,
    body.pg_view .vk_ft_bg,
    body.pg_view .vk_ft_wp,
    body.pg_view .vk_ft_bg_bottom {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    body.pg_view #scbar_logo_r_post,
    body.pg_view #scbar_form,
    body.pg_view #scbar_form > div {
        max-width: 100%;
    }

    body.pg_view #ct.vk_article {
        display: block;
        padding: 0 12px;
    }

    body.pg_view #ct.vk_article > .mn,
    body.pg_view #ct.vk_article > .sd {
        float: none !important;
        width: auto !important;
        margin-right: 0;
        margin-left: 0;
    }

    body.pg_view #ct.vk_article > .sd {
        margin-top: 14px;
    }

    body.pg_view .author-card-panel {
        width: 100%;
    }
}
