main {
    background: #F2F2F7;
}

.post-page {
    padding-bottom: 40px;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.post-aside {
    display: contents;
}

.post-title {
    order: 1;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.post-cover {
    order: 2;
    margin: 0;
}

.post-info {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-body {
    order: 4;
}

.post-products {
    order: 5;
}

.post-share {
    order: 6;
}

@media (min-width: 992px) {
    .post-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        column-gap: 24px;
        row-gap: 24px;
        align-items: start;
        grid-template-areas:
            "title    ."
            "cover    aside"
            "body     aside"
            "products products";
    }

    .post-aside {
        display: flex;
        flex-direction: column;
        gap: 16px;
        grid-area: aside;
    }

    .post-title {
        grid-area: title;
        font-size: 40px;
    }

    .post-cover {
        grid-area: cover;
    }

    .post-body {
        grid-area: body;
    }

    .post-products {
        grid-area: products;
    }
    
    .post-share {
        order: 1;
    }

    .post-info {
        order: 2;
    }
}

/* Cover ------------------------------------------------------------------ */

.post-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
}

@media (min-width: 992px) {
    .post-cover img {
        aspect-ratio: 2 / 1;
    }
}

/* Sidebar cards ---------------------------------------------------------- */

.post-share,
.post-info-card {
    background: #FFF;
    border-radius: 4px;
    padding: 16px;
}

.post-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.post-share-label {
    font-size: 14px;
    font-weight: 400;
}

.post-share-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-share-links a,
.post-share-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: none;
    opacity: 0.4;
    transition: opacity 0.15s ease-in-out;
}

.post-share-links a:hover,
.post-share-copy:hover {
    opacity: 1;
}

.post-share-copy {
    position: relative;
    cursor: pointer;
}

.post-share-copy.copied {
    opacity: 1;
}

.post-share-copy.copied::after {
    content: attr(data-copied);
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    padding: 4px 8px;
    border-radius: 4px;
    background: #000F22;
    color: #FFF;
    font-size: 12px;
    white-space: nowrap;
}

.post-info-card h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.post-info-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
}

.post-info-row .value {
    color: rgba(0, 0, 0, 0.4);
    text-align: right;
    white-space: nowrap;
}

.post-body {
    font-size: 16px;
    line-height: 1.5;
}

.post-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
}

.post-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.post-body p {
    margin: 0 0 16px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px;
}

.post-body a {
    color: #2E6E9E;
}

.post-products .container {
    max-width: none;
    padding: 0;
}

.post-products h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0;
}

.post-products .scroll-x {
    padding-left: 0;
}

.post-products .scroll-x .goods-card:first-of-type {
    margin-left: 0;
}

.post-products .scroll-x .goods-card:last-of-type {
    margin-right: 0;
}

.post-products .scroll-x::-webkit-scrollbar-track {
    margin-left: 0;
    margin-right: 0;
}
