/*
Theme Name: News Portal
Theme URI: http://wp1/
Description: Astra child theme for a modern news aggregation website.
Author: Troy
Template: astra
Version: 1.0.0
Text Domain: news-portal
*/

:root {
    --np-bg: #f5f7fa;
    --np-surface: #ffffff;
    --np-text: #151a23;
    --np-muted: #687386;
    --np-line: #e6eaf0;
    --np-primary: #e62b2b;
    --np-dark: #10151d;
    --np-radius: 14px;
    --np-shadow: 0 12px 32px rgba(21, 26, 35, 0.08);
}

body {
    background: var(--np-bg);
    color: var(--np-text);
}

/* The front page has its own complete news header. */
body.home .site-header {
    display: none;
}

body.home .site-content {
    margin-top: 0;
    flex: 0 0 auto;
}

body.home #page {
    min-height: 0;
}

.site-content > .ast-container {
    display: block;
    max-width: none;
    padding: 0;
}

.np-shell {
    background: var(--np-bg);
}

.np-topbar {
    background: var(--np-dark);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.np-container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.np-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.np-topbar a {
    color: #fff;
    text-decoration: none;
}

.np-brandbar {
    background: #fff;
    border-bottom: 1px solid var(--np-line);
}

.np-brandbar-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.np-logo {
    margin: 0;
    font-size: clamp(29px, 4vw, 44px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.8px;
}

.np-logo a {
    color: var(--np-dark);
    text-decoration: none;
}

.np-logo span {
    color: var(--np-primary);
}

.np-tagline {
    color: var(--np-muted);
    font-size: 14px;
    margin-top: 8px;
}

.np-search {
    width: min(390px, 40vw);
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f6f9;
    border: 1px solid var(--np-line);
    border-radius: 999px;
    padding: 6px 7px 6px 17px;
}

.np-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.np-search button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: var(--np-primary);
    color: #fff;
    padding: 9px 17px;
    font-weight: 700;
    cursor: pointer;
}

.np-nav {
    background: #fff;
    border-bottom: 1px solid var(--np-line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.np-nav-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.np-nav-inner::-webkit-scrollbar {
    display: none;
}

.np-nav a {
    color: #303744;
    text-decoration: none;
    white-space: nowrap;
    padding: 16px 15px;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 3px solid transparent;
}

.np-nav a:hover,
.np-nav a.is-active {
    color: var(--np-primary);
    border-bottom-color: var(--np-primary);
}

.np-main {
    padding: 34px 0 56px;
}

.np-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
}

.np-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.4px;
}

.np-section-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 22px;
    margin-right: 10px;
    border-radius: 5px;
    background: var(--np-primary);
    vertical-align: -3px;
}

.np-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
    gap: 22px;
    margin-bottom: 38px;
}

.np-feature {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: var(--np-radius);
    background: linear-gradient(135deg, #2d3440, #111720);
    box-shadow: var(--np-shadow);
}

.np-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 20, 0.02) 25%, rgba(8, 13, 20, 0.9) 100%);
}

.np-feature-content {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px;
    color: #fff;
}

.np-kicker {
    display: inline-block;
    margin-bottom: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--np-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.np-feature-title {
    margin: 0;
    max-width: 820px;
    font-size: clamp(28px, 4vw, 45px);
    line-height: 1.14;
    letter-spacing: -1.2px;
}

.np-feature-title a {
    color: #fff;
    text-decoration: none;
}

.np-meta {
    margin-top: 14px;
    font-size: 13px;
    color: #8b95a5;
}

.np-feature .np-meta {
    color: rgba(255,255,255,.72);
}

.np-side-stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.np-side-card,
.np-card,
.np-list-item,
.np-sidebar-box {
    background: var(--np-surface);
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
}

.np-side-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 8px 24px rgba(21, 26, 35, 0.05);
}

.np-side-card h3,
.np-card h3,
.np-list-item h3 {
    margin: 0;
    line-height: 1.35;
}

.np-side-card h3 {
    font-size: 21px;
}

.np-side-card a,
.np-card a,
.np-list-item a {
    color: var(--np-text);
    text-decoration: none;
}

.np-side-card a:hover,
.np-card a:hover,
.np-list-item a:hover {
    color: var(--np-primary);
}

.np-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.np-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

.np-card {
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(21, 26, 35, 0.04);
}

.np-card-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #dfe4eb, #cbd2dc);
    overflow: hidden;
}

.np-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-card-body {
    padding: 19px 20px 21px;
}

.np-card h3 {
    font-size: 19px;
}

.np-list {
    display: grid;
    gap: 13px;
}

.np-list-item {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    gap: 19px;
    padding: 13px;
}

.np-list-item--no-thumb {
    grid-template-columns: minmax(0, 1fr);
}

.np-list-item--no-thumb .np-list-body {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.np-list-thumb {
    min-height: 105px;
    border-radius: 9px;
    overflow: hidden;
    background: linear-gradient(135deg, #dde2e9, #cbd3de);
}

.np-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-list-body {
    padding: 6px 10px 6px 0;
}

.np-list-item h3 {
    font-size: 19px;
}

.np-excerpt {
    margin: 8px 0 0;
    color: var(--np-muted);
    font-size: 14px;
    line-height: 1.65;
}

.np-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.np-sidebar-box {
    padding: 22px;
}

.np-sidebar-box h3 {
    margin: 0 0 15px;
    font-size: 18px;
}

.np-sidebar-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.np-sidebar-box li + li {
    border-top: 1px solid var(--np-line);
}

.np-sidebar-box li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    color: var(--np-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.np-sidebar-box li a:hover {
    color: var(--np-primary);
}

.np-count {
    color: var(--np-muted);
    font-weight: 500;
}

.np-empty {
    padding: 40px;
    background: #fff;
    border: 1px dashed #ccd3dc;
    border-radius: var(--np-radius);
    color: var(--np-muted);
    text-align: center;
}

@media (max-width: 920px) {
    .np-hero-grid,
    .np-content-grid {
        grid-template-columns: 1fr;
    }

    .np-side-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

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

@media (max-width: 680px) {
    .np-container {
        width: min(100% - 24px, 1180px);
    }

    .np-topbar-inner,
    .np-brandbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .np-topbar-inner {
        padding: 10px 0;
        gap: 4px;
    }

    .np-brandbar-inner {
        padding: 22px 0;
        gap: 18px;
    }

    .np-search {
        width: 100%;
    }

    .np-main {
        padding-top: 22px;
    }

    .np-feature {
        min-height: 390px;
    }

    .np-feature-content {
        padding: 24px;
    }

    .np-side-stack,
    .np-cards,
    .np-sidebar {
        grid-template-columns: 1fr;
    }

    .np-list-item {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 13px;
    }

    .np-list-thumb {
        min-height: 92px;
    }

    .np-excerpt {
        display: none;
    }
}
.np-language-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.np-language-switcher a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid var(--np-border, #dfe3e8);
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.np-language-switcher a.is-active {
    font-weight: 700;
    border-color: currentColor;
}

@media (max-width: 900px) {
    .np-language-switcher {
        justify-content: flex-start;
        width: 100%;
    }
}

/* =========================================================
   News Portal visual refresh — light editorial system
   ========================================================= */

/* Light-theme overrides. Kept after the base rules so the public homepage
   remains bright while preserving the existing editorial layout. */
:root {
    --np-bg: #f6f7f9;
    --np-surface: #ffffff;
    --np-surface-2: #f1f3f6;
    --np-text: #171a1f;
    --np-muted: #69717d;
    --np-line: #e2e6eb;
    --np-primary: #d92d2d;
    --np-accent: #2459d3;
    --np-dark: #171a1f;
    --np-radius: 8px;
    --np-shadow: 0 8px 28px rgba(25, 34, 48, .07);
}

html,
body,
.np-shell,
body.home #page {
    background: var(--np-bg);
    color: var(--np-text);
}

body.home {
    font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.np-container {
    width: min(1320px, calc(100% - 64px));
}

.np-topbar {
    background: #f0f2f5;
    border-bottom: 1px solid var(--np-line);
    color: var(--np-muted);
    font-size: 12px;
    letter-spacing: .02em;
}

.np-topbar-inner {
    min-height: 34px;
}

.np-topbar a {
    color: var(--np-text);
}

.np-brandbar {
    background: #fff;
    border-bottom: 1px solid var(--np-line);
}

.np-brandbar-inner {
    min-height: 108px;
    gap: 28px;
}

.np-logo {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 650;
    letter-spacing: -3px;
}

.np-logo a {
    color: var(--np-text);
}

.np-logo span {
    color: var(--np-primary);
}

.np-tagline {
    margin-top: 7px;
    color: var(--np-muted);
    font-size: 13px;
}

.np-language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.np-language-select {
    min-width: 150px;
    height: 40px;
    padding: 0 38px 0 13px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    background: #fff;
    color: var(--np-text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.np-language-select:hover,
.np-language-select:focus {
    border-color: #aeb7c4;
    box-shadow: 0 0 0 3px rgba(36, 89, 211, .08);
}

.np-search {
    width: min(410px, 38vw);
    gap: 6px;
    padding: 5px 5px 5px 14px;
    border: 1px solid #dce1e7;
    border-radius: 6px;
    background: #f6f7f9;
}

.np-search input[type="search"] {
    color: var(--np-text);
    font-size: 13px;
}

.np-search input[type="search"]::placeholder {
    color: #9299a4;
}

.np-search button {
    padding: 9px 15px;
    border-radius: 5px;
    background: var(--np-text);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.np-search button:hover {
    background: var(--np-primary);
}

.np-nav {
    top: 0;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--np-line);
    backdrop-filter: blur(14px);
}

.np-nav-inner {
    gap: 0;
}

.np-nav a {
    padding: 15px 16px 13px;
    border-bottom: 2px solid transparent;
    color: #555e6b;
    font-size: 13px;
    font-weight: 600;
}

.np-nav a:hover,
.np-nav a.is-active {
    color: var(--np-primary);
    border-bottom-color: var(--np-primary);
}

.np-main {
    padding: 42px 0 72px;
}

.np-hero-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, .82fr);
    gap: 16px;
    margin-bottom: 56px;
}

.np-feature {
    min-height: 520px;
    border: 1px solid var(--np-line);
    border-radius: 8px;
    background: #dfe4ea;
    box-shadow: var(--np-shadow);
}

.np-feature::after {
    background: linear-gradient(180deg, rgba(0,0,0,.02) 18%, rgba(0,0,0,.18) 48%, rgba(0,0,0,.78) 100%);
}

.np-feature-content {
    padding: 42px;
}

.np-kicker {
    margin-bottom: 15px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #ff8a82;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.np-feature-title {
    max-width: 900px;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.04;
    letter-spacing: -2.4px;
    font-weight: 600;
}

.np-feature .np-meta {
    margin-top: 19px;
    color: rgba(255,255,255,.72);
}

.np-side-stack {
    gap: 16px;
}

.np-side-card,
.np-card,
.np-sidebar-box {
    border: 1px solid var(--np-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--np-shadow);
}

.np-side-card {
    position: relative;
    padding: 28px;
    justify-content: flex-end;
    overflow: hidden;
}

.np-side-card:hover {
    border-color: #cbd1d9;
}

.np-side-card h3 {
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -.65px;
    font-weight: 600;
}

.np-side-card a,
.np-card a,
.np-list-item a {
    color: var(--np-text);
}

.np-side-card a:hover,
.np-card a:hover,
.np-list-item a:hover {
    color: var(--np-primary);
}

.np-meta {
    margin-top: 12px;
    color: #818995;
    font-size: 12px;
}

.np-content-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 48px;
}

.np-section-head {
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--np-line);
}

.np-section-title {
    color: var(--np-text);
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -.8px;
}

.np-section-title::before {
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--np-primary);
    vertical-align: 2px;
}

.np-cards {
    gap: 14px;
    margin-bottom: 48px;
}

.np-card {
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
}

.np-card:hover {
    transform: translateY(-2px);
    border-color: #cbd1d9;
}

.np-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #e5e9ee;
}

.np-card-thumb img {
    transition: transform .35s ease;
}

.np-card:hover .np-card-thumb img {
    transform: scale(1.025);
}

.np-card-body {
    padding: 20px 20px 22px;
}

.np-card h3 {
    font-size: 20px;
    line-height: 1.28;
    letter-spacing: -.35px;
    font-weight: 600;
}

.np-list {
    gap: 0;
    border-top: 1px solid var(--np-line);
}

.np-list-item {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 22px;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--np-line);
    border-radius: 0;
    background: transparent;
}

.np-list-thumb {
    min-height: 112px;
    border-radius: 5px;
    background: #e5e9ee;
}

.np-list-body {
    padding: 3px 8px 3px 0;
}

.np-list-item h3 {
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.45px;
    font-weight: 600;
}

.np-excerpt {
    margin-top: 9px;
    color: var(--np-muted);
    font-size: 13px;
    line-height: 1.6;
}

.np-sidebar {
    gap: 16px;
}

.np-sidebar-box {
    padding: 20px;
}

.np-sidebar-box h3 {
    margin-bottom: 13px;
    color: var(--np-text);
    font-size: 15px;
    font-weight: 700;
}

.np-sidebar-box li + li {
    border-top-color: var(--np-line);
}

.np-sidebar-box li a {
    padding: 11px 0;
    color: #555e69;
    font-size: 13px;
    font-weight: 550;
}

.np-sidebar-box li a:hover {
    color: var(--np-primary);
}

.np-count {
    color: #9299a4;
}

.np-empty {
    padding: 42px;
    border: 1px dashed #cbd2da;
    border-radius: 8px;
    background: #fff;
    color: var(--np-muted);
}

body.home #page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.home .site-content {
    flex: 1 0 auto;
}

body.home .site-footer,
body.home .site-footer .site-below-footer-wrap,
body.home .site-footer .ast-builder-grid-row-container-inner,
body.home .site-footer .site-below-footer-inner-wrap,
body.home .site-footer .site-footer-section,
body.home .site-footer .ast-footer-copyright {
    background: #fff;
    color: #7a828e;
}

body.home .site-footer {
    border-top: 1px solid var(--np-line);
}

body.home .site-footer .site-below-footer-wrap {
    border: 0;
    min-height: 72px;
}

body.home .site-footer .ast-builder-grid-row-container-inner {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
}

body.home .site-footer .ast-footer-copyright p {
    margin: 0;
    color: #7a828e;
    font-size: 12px;
}

body.home .site-footer a {
    color: #59616d;
    text-decoration: none;
}

body.home .site-footer a:hover {
    color: var(--np-primary);
}

@media (max-width: 920px) {
    .np-container {
        width: min(100% - 36px, 1320px);
    }

    .np-hero-grid,
    .np-content-grid {
        grid-template-columns: 1fr;
    }

    .np-feature {
        min-height: 470px;
    }

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

@media (max-width: 680px) {
    .np-container {
        width: min(100% - 24px, 1320px);
    }

    .np-brandbar-inner {
        padding: 24px 0;
    }

    .np-logo {
        font-size: 39px;
        letter-spacing: -2px;
    }

    .np-language-switcher,
    .np-language-select {
        width: 100%;
    }

    .np-feature {
        min-height: 430px;
    }

    .np-feature-content {
        padding: 24px;
    }

    .np-feature-title {
        font-size: clamp(30px, 9vw, 42px);
        letter-spacing: -1.5px;
    }

    .np-side-stack,
    .np-cards,
    .np-sidebar {
        grid-template-columns: 1fr;
    }

    .np-list-item {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 14px;
    }

    .np-list-item h3 {
        font-size: 17px;
    }
}

/* =========================================================
   Single article — match the homepage editorial system
   ========================================================= */
body.single-post .site-header {
    display: none;
}

body.single-post .site-content,
body.single-post .ast-container {
    margin: 0;
    padding: 0;
    max-width: none;
}

body.single-post .site-content > .ast-container {
    display: block;
    width: 100% !important;
    max-width: none !important;
}

body.single-post .np-single-article.ast-article-single {
    padding: 0;
}

.np-single-shell {
    min-height: 100vh;
    background: var(--np-bg);
    color: var(--np-text);
}

.np-single-main {
    padding-top: 42px;
    padding-bottom: 72px;
}

.np-single-article {
    margin: 0;
    padding: 0;
    background: transparent;
}

.np-single-header {
    width: min(860px, 100%);
    max-width: none;
    margin: 0 auto 34px;
    padding: 0;
}

.np-single-kickers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.np-single-kickers .np-kicker,
.np-single-source {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    text-decoration: none;
}

.np-single-kickers .np-kicker {
    background: var(--np-primary);
    color: #fff;
}

.np-single-source {
    border: 1px solid var(--np-line);
    background: var(--np-surface);
    color: var(--np-muted);
}

.np-single-source:hover {
    border-color: var(--np-primary);
    color: var(--np-primary);
}

.np-single-title {
    max-width: 940px;
    margin: 0;
    color: var(--np-text);
    font-size: clamp(38px, 5.2vw, 68px);
    font-weight: 850;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.np-single-deck {
    max-width: 850px;
    margin: 22px 0 0;
    color: #555f6d;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
}

.np-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--np-line);
    color: var(--np-muted);
    font-size: 13px;
    font-weight: 650;
}

.np-single-hero {
    max-width: 900px;
    margin: 0 auto 38px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--np-surface-2);
    box-shadow: 0 12px 34px rgba(23, 26, 31, .08);
}

.np-single-hero img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    margin: 0 auto;
    object-fit: contain;
}

.np-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(250px, 320px);
    justify-content: center;
    align-items: start;
    gap: 58px;
}

.np-single-content {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #242a33;
    font-size: 18px;
    line-height: 1.82;
}

.np-single-content > *:first-child {
    margin-top: 0;
}

.np-single-content > *:last-child {
    margin-bottom: 0;
}

.np-single-content p {
    margin: 0 0 1.35em;
}

.np-single-content h2,
.np-single-content h3,
.np-single-content h4 {
    margin: 1.75em 0 .7em;
    color: var(--np-text);
    font-weight: 820;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.np-single-content h2 {
    font-size: 30px;
}

.np-single-content h3 {
    font-size: 24px;
}

.np-single-content a {
    color: var(--np-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.np-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.np-single-content figure {
    margin: 30px 0;
}

.np-single-content figcaption {
    margin-top: 8px;
    color: var(--np-muted);
    font-size: 13px;
    line-height: 1.5;
}

.np-single-content blockquote {
    margin: 30px 0;
    padding: 4px 0 4px 24px;
    border-left: 4px solid var(--np-primary);
    color: #454d59;
    font-size: 20px;
    line-height: 1.65;
}

.np-single-content .np-original-source {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--np-line);
    font-size: 14px;
    font-weight: 750;
}

.np-single-sidebar {
    position: sticky;
    top: 82px;
}

body.single-post .site-footer {
    margin-top: 0;
    border-top: 1px solid var(--np-line);
    background: var(--np-surface);
}

body.single-post .site-footer,
body.single-post .site-footer a {
    color: #59616d;
}

body.single-post .site-footer a:hover {
    color: var(--np-primary);
}

@media (max-width: 1020px) {
    .np-single-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .np-single-sidebar {
        position: static;
    }

    .np-single-sidebar .np-sidebar-box {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .np-single-main {
        padding-top: 28px;
        padding-bottom: 46px;
    }

    .np-single-header {
        margin-bottom: 24px;
    }

    .np-single-title {
        font-size: clamp(32px, 10vw, 46px);
        line-height: 1.08;
    }

    .np-single-deck {
        margin-top: 16px;
        font-size: 17px;
    }

    .np-single-meta {
        margin-top: 17px;
        padding-top: 14px;
    }

    .np-single-hero {
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .np-single-content {
        padding: 25px 20px 30px;
        border-radius: 12px;
        font-size: 17px;
        line-height: 1.78;
    }

    .np-single-content h2 {
        font-size: 25px;
    }

    .np-single-content h3 {
        font-size: 21px;
    }
}

/* Compact editorial typography — denser, more professional scale. */
body.home,
body.single-post {
    font-size: 14px;
}

.np-logo {
    font-size: clamp(31px, 4vw, 46px);
    letter-spacing: -2px;
}

.np-feature-title {
    font-size: clamp(29px, 3.6vw, 46px);
    line-height: 1.08;
    letter-spacing: -1.6px;
}

.np-side-card h3 {
    font-size: 19px;
    line-height: 1.28;
}

.np-section-title {
    font-size: 21px;
    letter-spacing: -.45px;
}

.np-card h3 {
    font-size: 17px;
    line-height: 1.35;
}

.np-list-item h3 {
    font-size: 18px;
    line-height: 1.32;
}

.np-excerpt {
    font-size: 12.5px;
    line-height: 1.58;
}

.np-single-title {
    max-width: 860px;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.np-single-deck {
    max-width: 820px;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.55;
}

.np-single-layout {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.np-single-content {
    padding: 0;
    font-size: 16px;
    line-height: 1.78;
}

.np-single-content h2 {
    font-size: 26px;
}

.np-single-content h3 {
    font-size: 21px;
}

.np-single-content blockquote {
    font-size: 18px;
}

@media (max-width: 680px) {
    .np-logo {
        font-size: 34px;
    }

    .np-feature-title {
        font-size: clamp(27px, 8vw, 36px);
    }

    .np-single-title {
        font-size: clamp(29px, 9vw, 40px);
    }

    .np-single-deck {
        font-size: 16px;
    }

    .np-single-content {
        padding: 24px 20px 28px;
        font-size: 16px;
    }
}

/* =========================================================
   Category archive — editorial landing page
   ========================================================= */
body.category .site-header {
    display: none;
}

body.category .site-content,
body.category .site-content > .ast-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.category {
    background: var(--np-bg);
    color: var(--np-text);
    font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.np-category-archive {
    min-height: 100vh;
}

.np-category-main {
    padding: 46px 0 76px;
}

.np-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--np-line);
}

.np-category-heading {
    min-width: 0;
}

.np-category-eyebrow {
    margin-bottom: 9px;
    color: var(--np-primary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.np-category-title {
    margin: 0;
    color: var(--np-text);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 720;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.np-category-description {
    max-width: 760px;
    margin-top: 14px;
    color: var(--np-muted);
    font-size: 14px;
    line-height: 1.65;
}

.np-category-description p {
    margin: 0;
}

.np-category-stat {
    flex: 0 0 auto;
    min-width: 112px;
    padding: 14px 16px;
    border: 1px solid var(--np-line);
    border-radius: 8px;
    background: var(--np-surface);
    text-align: right;
}

.np-category-stat strong,
.np-category-stat span {
    display: block;
}

.np-category-stat strong {
    color: var(--np-text);
    font-size: 27px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -.04em;
}

.np-category-stat span {
    margin-top: 5px;
    color: var(--np-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.np-category-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
    min-height: 380px;
    margin-bottom: 52px;
    overflow: hidden;
    border: 1px solid var(--np-line);
    border-radius: 10px;
    background: var(--np-surface);
    box-shadow: var(--np-shadow);
}

.np-category-lead-image {
    display: block;
    min-height: 380px;
    overflow: hidden;
    background: #e5e9ee;
}

.np-category-lead-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    transition: transform .35s ease;
}

.np-category-lead:hover .np-category-lead-image img {
    transform: scale(1.018);
}

/* Do not reserve a large grey media column when an imported story has no featured image. */
.np-category-lead:not(:has(.np-category-lead-image img)) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
}

.np-category-lead-image:not(:has(img)) {
    display: none;
}

/* The same rule keeps ordinary category rows compact when no thumbnail exists. */
.np-category-item:not(:has(.np-category-item-thumb img)) {
    grid-template-columns: minmax(0, 1fr);
}

.np-category-item-thumb:not(:has(img)) {
    display: none;
}

.np-category-lead-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 40px;
}

.np-category-lead-content .np-kicker {
    align-self: flex-start;
    margin-bottom: 15px;
}

.np-category-lead-content h2 {
    margin: 0;
    color: var(--np-text);
    font-size: clamp(28px, 3.1vw, 42px);
    font-weight: 680;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.np-category-lead-content h2 a,
.np-category-item h2 a {
    color: inherit;
    text-decoration: none;
}

.np-category-lead-content h2 a:hover,
.np-category-item h2 a:hover {
    color: var(--np-primary);
}

.np-category-lead-content p {
    margin: 18px 0 0;
    color: var(--np-muted);
    font-size: 14px;
    line-height: 1.7;
}

.np-category-feed {
    width: 100%;
    max-width: none;
}

.np-category-list {
    border-top: 1px solid var(--np-line);
}

.np-category-item {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 26px;
    padding: 22px 0;
    border-bottom: 1px solid var(--np-line);
}

.np-category-item-thumb {
    display: block;
    min-height: 145px;
    overflow: hidden;
    border-radius: 7px;
    background: #e5e9ee;
}

.np-category-item-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 145px;
    object-fit: cover;
    transition: transform .3s ease;
}

.np-category-item:hover .np-category-item-thumb img {
    transform: scale(1.025);
}

.np-category-item-body {
    min-width: 0;
    padding: 3px 0;
}

.np-category-item-body .np-meta {
    margin-top: 0;
    margin-bottom: 8px;
}

.np-category-item h2 {
    margin: 0;
    color: var(--np-text);
    font-size: 22px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.np-category-item p {
    margin: 10px 0 0;
    color: var(--np-muted);
    font-size: 13px;
    line-height: 1.65;
}

.np-category-pagination {
    margin-top: 34px;
}

.np-category-pagination .nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.np-category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid var(--np-line);
    border-radius: 6px;
    background: #fff;
    color: #505965;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.np-category-pagination .page-numbers:hover,
.np-category-pagination .page-numbers.current {
    border-color: var(--np-text);
    background: var(--np-text);
    color: #fff;
}

body.category .site-footer {
    margin-top: 0;
    border-top: 1px solid var(--np-line);
    background: #fff;
}

@media (max-width: 920px) {
    .np-category-main {
        padding-top: 34px;
    }

    .np-category-lead {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .np-category-lead-image,
    .np-category-lead-image img {
        min-height: 320px;
        max-height: 460px;
    }

    .np-category-lead-content {
        padding: 30px 32px 34px;
    }

    .np-category-feed {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .np-category-main {
        padding: 28px 0 50px;
    }

    .np-category-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 24px;
        padding-bottom: 18px;
    }

    .np-category-title {
        font-size: clamp(32px, 11vw, 46px);
    }

    .np-category-stat {
        display: flex;
        align-items: baseline;
        gap: 7px;
        min-width: 0;
        padding: 9px 12px;
        text-align: left;
    }

    .np-category-stat strong {
        font-size: 22px;
    }

    .np-category-stat span {
        margin-top: 0;
    }

    .np-category-lead {
        margin-bottom: 38px;
        border-radius: 8px;
    }

    .np-category-lead-image,
    .np-category-lead-image img {
        min-height: 225px;
    }

    .np-category-lead-content {
        padding: 24px 22px 27px;
    }

    .np-category-lead-content h2 {
        font-size: 27px;
    }

    .np-category-lead-content p {
        font-size: 13px;
    }

    .np-category-item {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 14px;
        padding: 17px 0;
    }

    .np-category-item-thumb,
    .np-category-item-thumb img {
        min-height: 88px;
    }

    .np-category-item h2 {
        font-size: 17px;
        line-height: 1.3;
    }

    .np-category-item p {
        display: none;
    }

    .np-category-item-body .np-meta {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .np-category-pagination {
        margin-top: 26px;
    }
}

/* Previous dark refresh disabled below. */
/*
:root {
    --np-bg: #0b0b0b;
    --np-surface: #151515;
    --np-surface-2: #1d1d1d;
    --np-text: #f5f5f3;
    --np-muted: #9b9b98;
    --np-line: #2a2a2a;
    --np-primary: #f05a4f;
    --np-accent: #4d7cff;
    --np-dark: #050505;
    --np-radius: 6px;
    --np-shadow: none;
}

html {
    background: var(--np-bg);
}

body,
.np-shell {
    background: var(--np-bg);
    color: var(--np-text);
}

body.home {
    font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.np-container {
    width: min(1320px, calc(100% - 64px));
}

.np-topbar {
    background: #050505;
    border-bottom: 1px solid #202020;
    color: #8f8f8c;
    font-size: 12px;
    letter-spacing: .02em;
}

.np-topbar-inner {
    min-height: 34px;
}

.np-brandbar {
    background: #0b0b0b;
    border-bottom: 1px solid var(--np-line);
}

.np-brandbar-inner {
    min-height: 112px;
    gap: 28px;
}

.np-logo {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 600;
    letter-spacing: -3px;
}

.np-logo a {
    color: #fff;
}

.np-logo span {
    color: var(--np-primary);
}

.np-tagline {
    margin-top: 7px;
    color: #82827f;
    font-size: 13px;
}

.np-language-switcher {
    gap: 5px;
}

.np-language-switcher a {
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid #2d2d2d;
    border-radius: 4px;
    color: #9d9d99;
    background: #111;
    font-size: 12px;
}

.np-language-switcher a:hover,
.np-language-switcher a.is-active {
    color: #fff;
    border-color: #515151;
    background: #202020;
}

.np-search {
    width: min(410px, 38vw);
    gap: 6px;
    padding: 5px 5px 5px 14px;
    border: 1px solid #2c2c2c;
    border-radius: 5px;
    background: #111;
}

.np-search input[type="search"] {
    color: #e6e6e3;
    font-size: 13px;
}

.np-search input[type="search"]::placeholder {
    color: #6f6f6c;
}

.np-search button {
    padding: 9px 15px;
    border-radius: 4px;
    background: #ededeb;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease;
}

.np-search button:hover {
    background: var(--np-accent);
    color: #fff;
}

.np-nav {
    top: 0;
    background: rgba(11, 11, 11, .92);
    border-bottom: 1px solid var(--np-line);
    backdrop-filter: blur(14px);
}

.np-nav-inner {
    gap: 0;
}

.np-nav a {
    padding: 15px 16px 13px;
    border-bottom: 2px solid transparent;
    color: #9c9c99;
    font-size: 13px;
    font-weight: 550;
}

.np-nav a:hover,
.np-nav a.is-active {
    color: #fff;
    border-bottom-color: var(--np-primary);
}

.np-main {
    padding: 42px 0 72px;
}

.np-hero-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, .82fr);
    gap: 16px;
    margin-bottom: 56px;
}

.np-feature {
    min-height: 520px;
    border: 1px solid #282828;
    border-radius: 8px;
    background: #151515;
    box-shadow: none;
}

.np-feature::after {
    background: linear-gradient(180deg, rgba(0,0,0,.03) 18%, rgba(0,0,0,.22) 45%, rgba(0,0,0,.96) 100%);
}

.np-feature-content {
    padding: 42px;
}

.np-kicker {
    margin-bottom: 15px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #ff756b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.np-feature-title {
    max-width: 900px;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.04;
    letter-spacing: -2.4px;
    font-weight: 560;
}

.np-feature .np-meta {
    margin-top: 19px;
    color: rgba(255,255,255,.58);
}

.np-side-stack {
    gap: 16px;
}

.np-side-card,
.np-card,
.np-list-item,
.np-sidebar-box {
    border: 1px solid var(--np-line);
    border-radius: 6px;
    background: var(--np-surface);
    box-shadow: none;
}

.np-side-card {
    position: relative;
    padding: 28px;
    justify-content: flex-end;
    overflow: hidden;
    transition: background .18s ease, border-color .18s ease;
}

.np-side-card:hover {
    background: #1d1d1d;
    border-color: #3b3b3b;
}

.np-side-card h3 {
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -.65px;
    font-weight: 520;
}

.np-side-card a,
.np-card a,
.np-list-item a {
    color: #f2f2ef;
}

.np-side-card a:hover,
.np-card a:hover,
.np-list-item a:hover {
    color: #fff;
}

.np-meta {
    margin-top: 12px;
    color: #737370;
    font-size: 12px;
}

.np-content-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 48px;
}

.np-section-head {
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--np-line);
}

.np-section-title {
    color: var(--np-text);
    font-size: 25px;
    font-weight: 560;
    letter-spacing: -.8px;
}

.np-section-title::before {
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--np-primary);
    vertical-align: 2px;
}

.np-cards {
    gap: 14px;
    margin-bottom: 48px;
}

.np-card {
    overflow: hidden;
    background: #111;
    transition: transform .18s ease, border-color .18s ease;
}

.np-card:hover {
    transform: translateY(-2px);
    border-color: #404040;
}

.np-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #202020;
}

.np-card-thumb img {
    transition: transform .35s ease, opacity .2s ease;
}

.np-card:hover .np-card-thumb img {
    transform: scale(1.025);
}

.np-card-body {
    padding: 20px 20px 22px;
}

.np-card h3 {
    font-size: 20px;
    line-height: 1.28;
    letter-spacing: -.35px;
    font-weight: 530;
}

.np-list {
    gap: 0;
    border-top: 1px solid var(--np-line);
}

.np-list-item {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 22px;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--np-line);
    border-radius: 0;
    background: transparent;
}

.np-list-item.np-list-item--no-thumb {
    grid-template-columns: minmax(0, 1fr);
}

.np-list-thumb {
    min-height: 112px;
    border-radius: 4px;
    background: #202020;
}

.np-list-body {
    padding: 3px 8px 3px 0;
}

.np-list-item h3 {
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.45px;
    font-weight: 540;
}

.np-excerpt {
    margin-top: 9px;
    color: #92928e;
    font-size: 13px;
    line-height: 1.6;
}

.np-sidebar {
    gap: 16px;
}

.np-sidebar-box {
    padding: 20px;
    background: #111;
}

.np-sidebar-box h3 {
    margin-bottom: 13px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.15px;
}

.np-sidebar-box li + li {
    border-top-color: #262626;
}

.np-sidebar-box li a {
    padding: 11px 0;
    color: #b4b4b0;
    font-size: 13px;
    font-weight: 500;
}

.np-sidebar-box li a:hover {
    color: #fff;
}

.np-count {
    color: #656562;
}

.np-empty {
    padding: 42px;
    border: 1px dashed #343434;
    border-radius: 6px;
    background: #111;
    color: #7f7f7c;
}

body.home #page {
    min-height: 0;
    background: var(--np-bg);
}

body.home .site-content {
    flex: 0 0 auto;
}

body.home .site-footer {
    background: #070707;
    border-top: 1px solid #242424;
    color: #777;
}

body.home .site-footer .site-below-footer-wrap,
body.home .site-footer .ast-builder-grid-row-container-inner,
body.home .site-footer .site-below-footer-inner-wrap,
body.home .site-footer .site-footer-section,
body.home .site-footer .ast-footer-copyright {
    background: #070707;
    color: #777;
}

body.home .site-footer .site-below-footer-wrap {
    border: 0;
    min-height: 72px;
}

body.home .site-footer .ast-builder-grid-row-container-inner {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
}

body.home .site-footer .ast-footer-copyright p {
    margin: 0;
    color: #777;
    font-size: 12px;
}

body.home .site-footer a {
    color: #9b9b98;
    text-decoration: none;
}

body.home .site-footer a:hover {
    color: #fff;
}

@media (max-width: 920px) {
    .np-container {
        width: min(100% - 36px, 1320px);
    }

    .np-hero-grid,
    .np-content-grid {
        grid-template-columns: 1fr;
    }

    .np-feature {
        min-height: 470px;
    }

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

@media (max-width: 680px) {
    .np-container {
        width: min(100% - 24px, 1320px);
    }

    .np-brandbar-inner {
        padding: 24px 0;
    }

    .np-logo {
        font-size: 39px;
        letter-spacing: -2px;
    }

    .np-feature {
        min-height: 430px;
    }

    .np-feature-content {
        padding: 24px;
    }

    .np-feature-title {
        font-size: clamp(30px, 9vw, 42px);
        letter-spacing: -1.5px;
    }

    .np-side-stack,
    .np-cards,
    .np-sidebar {
        grid-template-columns: 1fr;
    }

    .np-list-item {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 14px;
    }

    .np-list-item h3 {
        font-size: 17px;
    }
}

/* Final headline scale: match the visible “More News” section title everywhere. */
.np-section-title,
.np-feature-title,
.np-side-card h3,
.np-card h3,
.np-list-item h3,
.np-single-title,
.np-category-title,
.np-category-lead-content h2,
.np-category-item h2 {
    font-size: 25px;
}
