.cp-content-shell {
    width: min(1240px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.cp-content-layout-section {
    padding-top: 38px;
    padding-bottom: 24px;
}

.cp-content-layout {
    display: grid;
    gap: 28px;
    align-items: start;
}

.cp-content-layout--page {
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 360px);
}

.cp-content-layout--post {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.cp-content-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.cp-content-card__header,
.cp-content-card__body {
    padding: 22px 24px;
}

.cp-content-card__header {
    padding-bottom: 0;
}

.cp-content-card__title {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    color: #111827;
}

.cp-content-card__meta {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.cp-entry > *:first-child {
    margin-top: 0;
}

.cp-entry > *:last-child {
    margin-bottom: 0;
}

.cp-entry a {
    text-decoration: underline;
}

.cp-breadcrumbs {
    padding: 18px 24px 0;
}

.cp-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #6b7280;
    font-size: 13px;
}

.cp-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cp-breadcrumbs__item:not(:last-child)::after {
    content: "/";
    color: #9ca3af;
}

.cp-breadcrumbs__item a {
    color: inherit;
    text-decoration: none;
}

.cp-breadcrumbs__item a:hover {
    text-decoration: underline;
}

.cp-page-sidebar__sticky,
.cp-author-sidebar__sticky {
    position: sticky;
    top: 28px;
}

.cp-page-sidebar__card,
.cp-author-sidebar__card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    padding: 20px;
}

.cp-page-widget + .cp-page-widget {
    margin-top: 18px;
}

.cp-page-widget__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
}

.cp-author-sidebar__avatar {
    margin-bottom: 14px;
}

.cp-author-sidebar__avatar img {
    border-radius: 999px;
}

.cp-author-sidebar__name {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.15;
}

.cp-author-sidebar__bio {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.7;
}

.cp-author-sidebar__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.cp-author-sidebar__socials a,
.cp-author-sidebar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.cp-related-posts {
    padding-top: 8px;
    padding-bottom: 26px;
}

.cp-related-posts__head {
    margin-bottom: 18px;
}

.cp-related-posts__head h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.cp-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cp-post-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.cp-post-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.cp-post-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5e7eb;
}

.cp-post-card__media img,
.cp-post-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.cp-post-card__media img {
    object-fit: cover;
}

.cp-post-card__placeholder {
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
}

.cp-post-card__body {
    padding: 18px;
}

.cp-post-card__meta {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cp-post-card__title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.18;
    color: #111827;
}

.cp-post-card__excerpt {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.65;
    font-size: 14px;
}

.cp-post-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .cp-content-layout--page,
    .cp-content-layout--post,
    .cp-related-posts__grid {
        grid-template-columns: 1fr;
    }

    .cp-page-sidebar__sticky,
    .cp-author-sidebar__sticky {
        position: static;
    }
}