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

.article-page {
    padding-bottom: 46px;
    background: #f5f0e7;
    color: #202b27;
}

.article-page a {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    padding: 0;
    color: #7f7467;
    font-size: 13px;
}

.article-breadcrumb a,
.article-breadcrumb span {
    display: inline-flex;
    align-items: center;
}

.article-breadcrumb a:after {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-top: 1px solid #a79a89;
    border-left: 1px solid #a79a89;
    transform: rotate(-45deg);
}

.article-list-head span,
.related-articles-head span {
    display: inline-flex;
    margin-bottom: 9px;
    color: #c7a66b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.article-sidebar,
.article-main {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}

.article-detail-page .article-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
}

.article-side-intro,
.article-side-panel,
.article-side-note {
    margin-bottom: 14px;
    border: 1px solid #e4d7c6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(40, 48, 43, .06);
}

.article-side-intro {
    padding: 18px;
    background: #fff;
}

.article-side-intro span {
    display: block;
    margin-bottom: 8px;
    color: #c09855;
    font-size: 12px;
    font-weight: 900;
}

.article-side-intro strong {
    display: block;
    margin-bottom: 8px;
    color: #202b27;
    font-size: 22px;
    font-weight: 900;
}

.article-side-intro p {
    margin: 0;
    color: #71685d;
    line-height: 1.95;
}

.article-side-panel {
    padding: 16px;
}

.article-side-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.article-side-head h3 {
    margin: 0;
    color: #202b27;
    font-size: 16px;
    font-weight: 900;
}

.article-icon {
    display: inline-block;
    width: 19px;
    height: 19px;
    background: #0d8f7d;
}

.article-icon-search {
    -webkit-mask: url("../images/icons/fashion_ui/search.svg") center / contain no-repeat;
    mask: url("../images/icons/fashion_ui/search.svg") center / contain no-repeat;
}

.article-icon-spark {
    -webkit-mask: url("../images/icons/fashion_ui/sparkles.svg") center / contain no-repeat;
    mask: url("../images/icons/fashion_ui/sparkles.svg") center / contain no-repeat;
}

.article-search-panel label {
    display: block;
    margin-bottom: 8px;
    color: #72695f;
    font-size: 12px;
    font-weight: 800;
}

.article-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    overflow: hidden;
    border: 1px solid #d8ccbc;
    border-radius: 8px;
    background: #fff;
}

.article-search-control input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #243630;
    font-family: inherit;
    font-size: 13px;
}

.article-search-control button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid #e6dac9;
    background: #202b27;
    cursor: pointer;
}

.article-search-control button .article-icon {
    background: #fff;
}

.article-category-list {
    display: grid;
    gap: 8px;
}

.article-category-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #eee3d3;
    border-radius: 8px;
    background: #fbf8f2;
    color: #34423c;
    cursor: pointer;
}

.article-category-item input {
    width: 16px;
    height: 16px;
    accent-color: #0d8f7d;
}

.article-category-item span {
    font-size: 13px;
    font-weight: 800;
}

.article-filter-submit,
.article-empty-state a,
.article-read-more,
.article-detail-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 8px;
    background: #202b27;
    color: #fff !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.article-filter-submit {
    width: 100%;
    margin-top: 12px;
}

.article-side-note {
    padding: 16px;
    background: #202b27;
    color: #fff;
}

.article-side-note strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 900;
}

.article-side-note p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    line-height: 1.9;
}

.article-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 17px 18px;
    border: 1px solid #e4d7c6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(40, 48, 43, .05);
}

.article-list-head h3 {
    margin: 0;
    color: #202b27;
    font-size: 21px;
    font-weight: 900;
}

.article-list-head p {
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1ebe2;
    color: #735d37;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.article-chip {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 5px 10px;
    border: 1px solid #e7d7bd;
    border-radius: 999px;
    background: #fbf6ed;
    color: #8b6a34;
    font-size: 12px;
    font-weight: 900;
}

.article-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 0;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e4d7c6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 42px rgba(40, 48, 43, .08);
}

.article-featured-image {
    display: block;
    min-height: 360px;
    overflow: hidden;
    background: #e8dccb;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.article-featured-card:hover .article-featured-image img {
    transform: scale(1.035);
}

.article-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.article-featured-body h2 {
    margin: 0 0 12px;
    color: #202b27;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.65;
}

.article-featured-body p {
    margin: 0 0 15px;
    color: #6f675e;
    line-height: 2.05;
}

.article-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #81766a;
    font-size: 12px;
    font-weight: 800;
}

.article-featured-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f5efe6;
}

.article-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.article-card,
.article-detail,
.related-articles {
    border: 1px solid #e4d7c6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(40, 48, 43, .06);
}

.article-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: #d4c4ad;
    box-shadow: 0 22px 44px rgba(40, 48, 43, .1);
}

.article-card-image {
    display: block;
    aspect-ratio: 5 / 3.4;
    overflow: hidden;
    background: #e8dccb;
}

.article-card-image img,
.related-article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.article-card:hover .article-card-image img,
.related-article-card:hover img {
    transform: scale(1.04);
}

.article-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    background: #e8dccb;
}

.article-card-body {
    display: flex;
    flex-direction: column;
    padding: 17px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #81766a;
    font-size: 12px;
    font-weight: 800;
}

.article-card h4 {
    margin: 0 0 10px;
    color: #202b27;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.75;
}

.article-card p {
    flex: 1;
    margin: 0 0 15px;
    color: #6f675e;
    line-height: 1.95;
}

.article-read-more {
    align-self: flex-start;
    background: #0d8f7d;
}

.article-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 0;
}

.article-pagination ul {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.article-pagination li {
    list-style: none;
}

.article-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e4d7c6;
    border-radius: 8px;
    background: #fff;
    color: #33413c;
    font-weight: 900;
}

.article-pagination li.active a {
    border-color: #202b27;
    background: #202b27;
    color: #fff;
}

.article-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 44px 18px;
    border: 1px solid #e4d7c6;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.article-empty-state h3,
.article-empty-state h1 {
    margin: 0;
    color: #202b27;
    font-size: 22px;
    font-weight: 900;
}

.article-empty-state p {
    max-width: 420px;
    margin: 0;
    color: #70675e;
    line-height: 1.9;
}

.article-not-found {
    margin: 30px 0;
}

.article-detail {
    overflow: hidden;
}

.article-detail-hero {
    background: #fff;
}

.article-detail-header {
    padding: 30px 32px 22px;
}

.article-detail h1 {
    max-width: 900px;
    margin: 0 0 12px;
    color: #202b27;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.6;
}

.article-detail-header p {
    max-width: 780px;
    margin: 0 0 15px;
    color: #70675e;
    font-size: 15px;
    line-height: 2.05;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-detail-meta span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f5efe6;
    color: #6d5a39;
    font-size: 12px;
    font-weight: 900;
}

.article-cover {
    margin: 0 32px 28px;
    overflow: hidden;
    border-radius: 10px;
    background: #e8dccb;
}

.article-cover img {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.article-body {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 0 28px 30px;
    color: #2d3b36;
    font-size: 15px;
    line-height: 2.05;
}

.article-body p {
    margin: 0 0 12px;
}

.article-body strong,
.article-body b {
    color: #202b27;
    font-weight: 900;
}

.article-body img {
    display: block;
    width: min(100%, 680px);
    height: auto;
    margin: 18px auto;
    padding: 5px;
    border: 1px solid #e4d6c4;
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 14px 32px rgba(38, 48, 43, .08);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 24px;
    margin-bottom: 10px;
    color: #202b27;
    font-weight: 900;
    line-height: 1.55;
}

.article-body ul,
.article-body ol {
    display: grid;
    gap: 8px;
    margin: 14px 0 18px;
    padding: 0;
    list-style: none;
}

.article-body li {
    position: relative;
    margin: 0;
    min-height: 46px;
    padding: 8px 42px 8px 14px;
    border: 1px solid #eee3d3;
    border-radius: 10px;
    background: #fffdf8;
    box-shadow: 0 10px 26px rgba(38, 48, 43, .04);
    color: #33423c;
    line-height: 1.9;
}

.article-body li ul,
.article-body li ol {
    margin: 8px 0 0;
}

.article-body li li {
    border-color: rgba(238, 227, 211, .78);
    background: rgba(251, 248, 242, .72);
    box-shadow: none;
}

.article-body ul li:before {
    content: "";
    position: absolute;
    top: 18px;
    right: 16px;
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #0f8f7c;
    box-shadow: 0 0 0 5px rgba(15, 143, 124, .12);
}

.article-body ol {
    counter-reset: article-counter;
}

.article-body ol li {
    counter-increment: article-counter;
    padding-right: 54px;
}

.article-body ol li:before {
    content: counter(article-counter);
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #202b27;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.article-body blockquote {
    position: relative;
    margin: 18px 0;
    padding: 18px 24px 18px 52px;
    overflow: hidden;
    border: 1px solid #e7d7bd;
    border-right: 5px solid #c09855;
    border-radius: 10px;
    background: #fffaf1;
    color: #3b3329;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.9;
    box-shadow: 0 16px 34px rgba(38, 48, 43, .07);
}

.article-body blockquote:before {
    content: "\201D";
    position: absolute;
    top: 6px;
    left: 18px;
    color: rgba(192, 152, 85, .24);
    font-size: 62px;
    font-weight: 900;
    line-height: 1;
}

.article-body blockquote p {
    position: relative;
    margin-bottom: 8px;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body blockquote cite {
    display: block;
    margin-top: 12px;
    color: #8b6a34;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.article-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 28px;
    border-top: 1px solid #efe3d2;
    background: #fbf8f2;
}

.article-detail-footer span {
    display: block;
    color: #81766a;
    font-size: 12px;
}

.article-detail-footer strong {
    display: block;
    margin-top: 4px;
    color: #22312c;
    font-size: 15px;
}

.related-articles {
    margin-top: 18px;
    padding: 20px;
}

.related-articles-head {
    margin-bottom: 14px;
}

.related-articles-head h2 {
    margin: 0;
    color: #202b27;
    font-size: 20px;
    font-weight: 900;
}

.related-article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.related-article-card {
    overflow: hidden;
    border: 1px solid #eee3d3;
    border-radius: 10px;
    background: #fff;
}

.related-article-card a {
    display: grid;
    grid-template-rows: 118px auto;
    height: 100%;
}

.related-article-card strong {
    padding: 11px;
    color: #253630;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.75;
}

@media (max-width: 980px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: 2;
    }

    .article-detail-page .article-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .article-main {
        order: 1;
    }

    .article-featured-card {
        grid-template-columns: 1fr;
    }

    .article-featured-image {
        min-height: 300px;
    }

    .related-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .article-page {
        padding-bottom: 30px;
    }

    .article-detail h1 {
        font-size: 24px;
    }

    .article-card-grid {
        grid-template-columns: 1fr;
    }

    .article-list-head,
    .article-detail-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-list-head p {
        white-space: normal;
    }

    .article-featured-body,
    .article-detail-header,
    .article-body,
    .article-detail-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .article-cover {
        margin-right: 18px;
        margin-left: 18px;
    }

    .article-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 460px) {
    .article-featured-image {
        min-height: 220px;
    }

    .related-article-grid {
        grid-template-columns: 1fr;
    }

    .related-article-card a {
        grid-template-rows: 150px auto;
    }
}
