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

.news-detail-page {
    overflow: clip;
    background: #fff;
}

.news-detail-page .container {
    width: min(calc(100% - 48px), 1200px);
    margin-inline: auto;
}

.news-detail-breadcrumb {
    border-bottom: 1px solid #e5e0d6;
    background: #fff;
}

.news-detail-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    padding: .9rem 0;
    list-style: none;
    color: #77768a;
    font-size: .8rem;
}

.news-detail-breadcrumb li:last-child {
    max-width: 50ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-detail-header {
    padding: clamp(2.15rem, 3.8vw, 3.35rem) 0 clamp(1.8rem, 3vw, 2.6rem);
    background: linear-gradient(135deg, #f5ecd2, #fff 70%);
}

.news-detail-header > .container {
    max-width: 860px;
}

.news-detail-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    color: var(--primary-ink);
    font-size: .82rem;
    font-weight: 750;
}

.news-detail-category {
    display: table;
    padding: .38rem .72rem;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: .7rem;
    font-weight: 800;
}

.news-detail-header h1 {
    margin: .75rem 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.9rem, 3.8vw, 3.2rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.news-detail-header p {
    max-width: 700px;
    margin: 0;
    color: #69697d;
    font-size: clamp(.98rem, 1.4vw, 1.1rem);
    line-height: 1.72;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 1rem;
    color: #77768a;
    font-size: .8rem;
}

.news-detail-meta > * {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.news-detail-cover {
    display: block;
    max-width: 960px;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.news-detail-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    background: #f4f2eb;
    box-shadow: 0 18px 50px rgba(34, 31, 22, .13);
}

.news-detail-content {
    padding: clamp(2.25rem, 4vw, 3.75rem) 0;
    background: #f7f6f2;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 740px) minmax(250px, 280px);
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.news-article {
    min-width: 0;
    padding: clamp(1.25rem, 2.4vw, 2rem);
    border: 1px solid #e5e0d6;
    border-radius: 16px;
    background: #fff;
    color: #3e424b;
    font-size: .98rem;
    line-height: 1.9;
    box-shadow: 0 12px 36px rgba(34, 31, 22, .06);
}

.news-article > *:first-child {
    margin-top: 0;
}

.news-article h2,
.news-article h3,
.news-article h4 {
    margin: 1.7em 0 .6em;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-article p,
.news-article ul,
.news-article ol,
.news-article blockquote,
.news-article figure {
    margin: 0 0 1.2em;
}

.news-article img,
.news-article .wp-caption,
.news-article iframe,
.news-article video {
    max-width: 100% !important;
}

.news-article img {
    display: block;
    height: auto;
    margin: 1.25rem auto;
    border-radius: 12px;
}

.news-article table {
    width: 100%;
    margin: 1.4rem 0;
    border-collapse: collapse;
    border: 1px solid #ddd7ca;
}

.news-article th,
.news-article td {
    padding: .8rem;
    border: 1px solid #ddd7ca;
    text-align: left;
}

.news-article th {
    background: #f3ead0;
    color: #3d3217;
}

.news-article blockquote {
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--primary);
    background: #fbfaf7;
}

.news-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border);
}

.news-share > div {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.news-share a,
.news-share button {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 0 .75rem;
    border: 1px solid #ddd7ca;
    border-radius: 999px;
    background: #fff;
    color: var(--text-dark);
}

.news-share button span {
    font-size: .75rem;
}

.news-detail-aside {
    position: sticky;
    top: 110px;
    padding: 1.3rem;
    border: 1px solid #dfd4bc;
    border-radius: 16px;
    background: #fffaf0;
    box-shadow: 0 12px 34px rgba(34, 31, 22, .06);
}

.news-detail-aside > span,
.news-related header > span {
    color: var(--primary-ink);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .13em;
}

.news-detail-aside h2 {
    margin: .7rem 0;
    font-size: 1.4rem;
}

.news-detail-aside p {
    color: #69697d;
    font-size: .88rem;
    line-height: 1.75;
}

.news-detail-aside a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .78rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 800;
}

.news-related {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: #fff;
}

.news-related header {
    margin-bottom: 1.6rem;
}

.news-related h2 {
    margin: .45rem 0;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.news-related h2 span {
    color: var(--primary-ink);
}

.news-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.news-related article {
    overflow: hidden;
    border: 1px solid #e5dfd2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(34, 31, 22, .06);
}

.news-related__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f4f2eb;
}

.news-related__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-related article > div {
    padding: 1.1rem;
}

.news-related time {
    color: #77768a;
    font-size: .72rem;
}

.news-related h3 {
    margin: .5rem 0;
    font-size: 1.05rem;
    line-height: 1.48;
}

.news-related p {
    display: -webkit-box;
    overflow: hidden;
    color: #69697d;
    font-size: .82rem;
    line-height: 1.7;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-related article > div > a {
    color: var(--primary-ink);
    font-size: .8rem;
    font-weight: 800;
}

@media (max-width: 980px) {
    .news-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 820px;
    }

    .news-detail-aside {
        position: static;
    }

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

@media (max-width: 680px) {
    .news-detail-page .container {
        width: min(calc(100% - 32px), 1200px);
    }

    .news-detail-breadcrumb li:last-child {
        display: none;
    }

    .news-detail-header {
        padding: 2rem 0 1.8rem;
    }

    .news-detail-header h1 {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
    }

    .news-detail-cover {
        margin-top: 1rem;
    }

    .news-detail-content {
        padding: 2rem 0 2.5rem;
    }

    .news-detail-cover img,
    .news-article {
        border-radius: 15px;
    }

    .news-article {
        overflow-wrap: anywhere;
    }

    .news-article table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .news-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-related__grid {
        grid-template-columns: 1fr;
    }
}
