/* STEP185 — scoped redesign of the public blogs feed only. */
body:has(.blog-layout--beauty) {
    background: #f4f5f7;
}

.blog-layout--beauty {
    --blog-red: #d9273e;
    --blog-text: #22262d;
    --blog-muted: #69717d;
    --blog-line: #e2e5e9;
}

.blog-layout--beauty .portal-main {
    width: min(100%, 800px);
}

.blog-layout--beauty .blog-feed-heading,
.blog-layout--beauty .blog-toolbar,
.blog-layout--beauty .blog-feed {
    max-width: 780px !important;
}

.blog-layout--beauty .blog-feed-heading__write {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--blog-red);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.blog-layout--beauty .blog-feed-heading__write:hover,
.blog-layout--beauty .blog-feed-heading__write:focus-visible {
    background: #b91f33;
    color: #fff;
    text-decoration: none;
}

body .blog-layout--beauty .blog-feed.blog-feed--beauty {
    display: grid;
    gap: 16px !important;
}

body .blog-layout--beauty .blog-feed-card.blog-feed-card--step185 {
    position: relative;
    margin: 0 !important;
    overflow: visible;
    border: 1px solid var(--blog-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.blog-feed-card--step185 .blog-post-manage-menu {
    top: 16px;
    right: 14px;
    z-index: 4;
}

body .blog-feed-card--step185 .blog-feed-card__top {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 18px 64px 8px 18px !important;
}

body .blog-layout--beauty .blog-feed-card.blog-feed-card--beauty.blog-feed-card--step185 .blog-feed-card__avatar {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    flex: 0 0 52px !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 50%;
    overflow: hidden;
    background: #eef0f3;
    align-self: start;
}

body .blog-layout--beauty .blog-feed-card.blog-feed-card--beauty.blog-feed-card--step185 .blog-feed-card__avatar img {
    position: static !important;
    inset: auto !important;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-feed-card--step185 .blog-feed-card__author {
    position: static !important;
    display: flex;
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

body .blog-feed-card--step185 .blog-feed-card__author-name {
    max-width: 100%;
    overflow: hidden;
    color: var(--blog-text);
    font-size: 16px;
    font-weight: 600 !important;
    line-height: 1.25;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .blog-feed-card--step185 .blog-feed-card__blogname {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #4d5561;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-feed-card--step185 .blog-feed-card__meta {
    display: flex;
    max-width: 100%;
    gap: 6px;
    align-items: center;
    overflow: hidden;
    color: var(--blog-muted);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
}

.blog-feed-card--step185 .blog-feed-card__meta a {
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
}

body .blog-feed-card--step185 .blog-feed-card__body {
    padding: 12px 18px 14px !important;
}

body .blog-feed-card--step185 .blog-feed-card__body h2 {
    margin: 0 0 8px !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
}

.blog-feed-card--step185 .blog-feed-card__body h2 a {
    color: var(--blog-text);
    text-decoration: none;
}

.blog-feed-card--step185 .blog-feed-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: #343941;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.blog-feed-card--step185 .blog-feed-card__excerpt > * {
    display: inline;
    margin: 0;
}

body .blog-feed-card--step185 .blog-feed-more {
    display: inline-block;
    margin-top: 8px;
    color: var(--blog-red) !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.blog-feed-card--step185 .blog-feed-card__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    margin: 0 18px 6px;
    overflow: hidden;
    border-radius: 12px;
}

.blog-feed-card--step185 .blog-feed-card__media-item {
    display: block;
    min-height: 170px;
    background: #eceef1;
}

.blog-feed-card--step185 .blog-feed-card__media-item:only-child {
    grid-column: 1 / -1;
}

.blog-feed-card--step185 .blog-feed-card__media-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 620px;
    object-fit: cover;
}

.blog-feed-card--step185 .blog-feed-card__media-item:only-child img {
    height: auto;
    object-fit: contain;
}

body .blog-feed-card--step185 .userblog-tag-row--feed {
    padding: 8px 18px 0 !important;
}

body .blog-feed-card--step185 .userblog-tag-pill {
    color: #646c77 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: none;
}

body .blog-feed-card--step185 .blog-feed-card__footer {
    display: flex;
    min-height: 58px;
    padding: 7px 10px 7px 12px !important;
    border-top: 1px solid #eceef1 !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.blog-feed-card--step185 .blog-feed-card__actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 2px;
}

.blog-feed-card--step185 .blog-feed-card__like-form {
    margin: 0;
}

.blog-feed-card--step185 .blog-feed-action,
.blog-feed-card--step185 .blog-feed-card__views {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #59616c;
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    cursor: pointer;
}

.blog-feed-card--step185 .blog-feed-action:hover,
.blog-feed-card--step185 .blog-feed-action:focus-visible {
    background: #f3f4f6;
    color: #252a31;
}

.blog-feed-card--step185 .blog-feed-action svg,
.blog-feed-card--step185 .blog-feed-card__views svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.blog-feed-card--step185 .blog-feed-action.is-active {
    color: var(--blog-red);
}

.blog-feed-card--step185 .blog-feed-action.is-active svg {
    fill: currentColor;
}

.blog-feed-card--step185 .blog-feed-card__views {
    color: #8a919b;
    cursor: default;
}

@media (max-width: 900px) {
    .blog-layout--beauty .portal-sidebar {
        display: none;
    }
}

@media (max-width: 760px) {
    .blog-layout--beauty {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .blog-layout--beauty .blog-feed-heading {
        padding-right: 4px;
        padding-left: 4px;
    }

    .blog-layout--beauty .blog-feed-heading h1 {
        font-size: 30px;
    }

    .blog-layout--beauty .blog-feed-heading__write {
        padding: 0 14px;
    }

    body .blog-layout--beauty .blog-toolbar.blog-toolbar--beauty {
        margin-bottom: 14px !important;
    }

    body .blog-layout--beauty .blog-toolbar__tabs {
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
    }

    body .blog-layout--beauty .blog-toolbar__tab {
        flex: 0 0 auto !important;
        min-height: 44px !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    body .blog-layout--beauty .blog-feed-card.blog-feed-card--step185 {
        border: 1px solid var(--blog-line) !important;
        border-radius: 14px !important;
    }

    body .blog-feed-card--step185 .blog-feed-card__top {
        padding: 15px 54px 6px 14px !important;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
    }

    body .blog-layout--beauty .blog-feed-card.blog-feed-card--beauty.blog-feed-card--step185 .blog-feed-card__avatar {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        max-width: 46px !important;
        max-height: 46px !important;
        flex-basis: 46px !important;
    }

    body .blog-feed-card--step185 .blog-feed-card__body {
        padding: 10px 14px 13px !important;
    }

    body .blog-feed-card--step185 .blog-feed-card__body h2 {
        font-size: 20px !important;
    }

    .blog-feed-card--step185 .blog-feed-card__excerpt {
        font-size: 16px;
        line-height: 1.5;
    }

    .blog-feed-card--step185 .blog-feed-card__media {
        margin-right: 14px;
        margin-left: 14px;
    }

    .blog-feed-card--step185 .blog-feed-card__media-item {
        min-height: 125px;
    }

    body .blog-feed-card--step185 .userblog-tag-row--feed {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }
}

@media (max-width: 430px) {
    .blog-feed-card--step185 .blog-feed-share span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .blog-feed-card--step185 .blog-feed-action {
        padding: 0 8px;
    }

    .blog-feed-card--step185 .blog-feed-card__views {
        padding: 0 6px;
    }
}

@media (max-width: 370px) {
    .blog-layout--beauty {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .blog-layout--beauty .blog-feed-heading__write {
        padding: 0 11px;
        font-size: 14px;
    }

    .blog-feed-card--step185 .blog-feed-card__meta {
        font-size: 12px;
    }
}
