/* ─────────────────────────────────────────
   News Archive + Single (CPT: news)
   ───────────────────────────────────────── */

/* ─── Archive ─── */
.news-archive {
    background: #fff;
    padding: 96px 0 120px;
    min-height: 70vh;
    color: rgb(23, 23, 25);
}

.news-archive__header {
    margin-bottom: 48px;
}

.news-archive__title {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 500;
    letter-spacing: -1px;
    margin: 0;
}

.news-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .news-archive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-archive__grid { grid-template-columns: 1fr; }
    .news-archive { padding: 64px 0 80px; }
}

/* ── News card ── */
.news-card {
    background: #fbfbfd;
    border: 1px solid rgb(232, 232, 236);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.news-card__thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f3;
}
.news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.news-card__title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 0;
}
.news-card__title a {
    color: inherit;
    text-decoration: none;
}
.news-card__title a:hover { color: rgb(155, 100, 220); }

.news-card__date {
    font-size: 13px;
    color: rgb(120, 120, 128);
    font-family: 'IBM Plex Mono', monospace;
}

/* ── Pagination ── */
.news-archive__pagination {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}
.news-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 4px;
    border: 1px solid rgb(232, 232, 236);
    border-radius: 8px;
    color: rgb(50, 50, 55);
    text-decoration: none;
    font-size: 14px;
}
.news-archive__pagination .page-numbers.current {
    background: rgb(23, 23, 25);
    color: #fff;
    border-color: rgb(23, 23, 25);
}
.news-archive__pagination .page-numbers:hover:not(.current) {
    background: #fbfbfd;
}

.news-archive__empty {
    color: rgb(120, 120, 128);
    text-align: center;
    padding: 80px 0;
}

/* ─── Single ─── */
.news-single {
    background: #fff;
    padding: 96px 0 120px;
    color: rgb(23, 23, 25);
}

.news-single__article {
    max-width: 760px;
    margin: 0 auto;
}

.news-single__header {
    margin-bottom: 32px;
}

.news-single__back {
    display: inline-block;
    color: rgb(120, 120, 128);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
}
.news-single__back:hover { color: rgb(23, 23, 25); }

.news-single__title {
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.6px;
    margin: 0 0 16px;
}

.news-single__date {
    font-size: 13px;
    color: rgb(120, 120, 128);
    font-family: 'IBM Plex Mono', monospace;
}

.news-single__featured {
    margin: 0 0 48px;
    border-radius: 16px;
    overflow: hidden;
}
.news-single__featured img {
    width: 100%;
    height: auto;
    display: block;
}

.news-single__content {
    font-size: 16px;
    line-height: 1.8;
    color: rgb(40, 40, 45);
}
.news-single__content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 48px 0 16px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.news-single__content h4 {
    font-size: 19px;
    font-weight: 600;
    margin: 36px 0 12px;
    line-height: 1.3;
}
.news-single__content p {
    margin: 0 0 20px;
}
.news-single__content ul {
    margin: 0 0 24px;
    padding-left: 24px;
}
.news-single__content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.news-single__content .news-figure {
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
}
.news-single__content .news-figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Footer / nav ── */
.news-single__footer {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid rgb(232, 232, 236);
}

.news-single__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-single__nav-link {
    text-decoration: none;
    color: inherit;
    padding: 24px;
    border: 1px solid rgb(232, 232, 236);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.2s;
}
.news-single__nav-link:hover { background: #fbfbfd; }
.news-single__nav-link--next { text-align: right; }

.news-single__nav-label {
    font-size: 12px;
    color: rgb(120, 120, 128);
    font-family: 'IBM Plex Mono', monospace;
}
.news-single__nav-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .news-single { padding: 64px 0 80px; }
    .news-single__nav { grid-template-columns: 1fr; }
    .news-single__nav-link--next { text-align: left; }
}

/* ─── Article inline links ─── */
.news-single__content a {
    color: rgb(155, 100, 220);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.news-single__content a:hover {
    color: rgb(125, 70, 200);
}

/* ─── Related News (inside footer) ─── */
.news-related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgb(232, 232, 236);
}

.news-related__title {
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 0 0 24px;
}

.news-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .news-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-related__grid { grid-template-columns: 1fr; }
    .news-related { margin-top: 48px; padding-top: 32px; }
}
