﻿/* ===== NYT STYLE – FRONT ===== */
/* ——— PREMIUM NEWS ——— */

.nx-page {
    padding: 60px 0 80px;
    background: linear-gradient(180deg,#f7f9ff,#fff);
}

.nx-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */

.nx-header {
    text-align: center;
    margin-bottom: 34px;
}

.nx-logo {
    font-weight: 900;
    font-size: 36px;
    letter-spacing: .08em;
}

.nx-tag {
    margin-top: 6px;
    color: #7a7a7a;
}

/* NAV */

.nx-nav {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #e4e4e4;
    padding-bottom: 12px;
    margin-bottom: 26px;
}

    .nx-nav a {
        text-decoration: none;
        color: #3d3d3d;
        padding: 6px 10px;
        border-radius: 10px;
        transition: .2s;
        font-size: 13px;
    }

        .nx-nav a.active,
        .nx-nav a:hover {
            background: #eef1ff;
            color: #2d39ff;
        }

/* GRID */

.nx-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 28px;
}

@media(max-width:900px) {
    .nx-grid {
        grid-template-columns: 1fr;
    }
}

/* FEATURED */

.nx-featured {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0,0,0,.06);
    overflow: hidden;
}

    .nx-featured img {
        width: 100%;
        height: 340px;
        object-fit: cover;
    }

.nx-featured-body {
    padding: 18px 20px 20px;
}

    .nx-featured-body h2 {
        margin: 6px 0 10px;
        font-size: 22px;
        line-height: 1.25;
    }

    .nx-featured-body a {
        text-decoration: none;
        color: #0d1025;
    }

        .nx-featured-body a:hover {
            text-decoration: underline;
        }

.nx-featured-sub {
    color: #666;
    margin-bottom: 8px;
}

/* META */

.nx-meta {
    font-size: 13px;
    color: #7a7a7a;
}

/* LIST */

.nx-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nx-item {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,.04);
    transition: .2s;
}

    .nx-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 45px rgba(0,0,0,.08);
    }

.nx-item-thumb img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
}

.nx-item-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

    .nx-item-body h3 a {
        text-decoration: none;
        color: #111;
    }

        .nx-item-body h3 a:hover {
            text-decoration: underline;
        }

.nx-item-sub {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

/* EMPTY */

.nx-empty {
    color: #777;
}


.nyt-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: Georgia,"Times New Roman",serif;
}

.nyt-header {
    text-align: center;
    margin-bottom: 24px;
}

.nyt-logo {
    font-size: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 900;
}

.nyt-tagline {
    font-size: 14px;
    color: #666;
}

.nyt-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 30px;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

    .nyt-nav a {
        text-decoration: none;
        color: #333;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

        .nyt-nav a.active {
            font-weight: 700;
            border-bottom: 2px solid #000;
        }

/* GRID */

.nyt-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 32px;
}

@media(max-width:900px) {
    .nyt-grid {
        grid-template-columns: 1fr;
    }
}

/* FEATURED */

.nyt-featured h2 {
    font-size: 28px;
    margin: 10px 0;
    line-height: 1.2;
}

    .nyt-featured h2 a {
        text-decoration: none;
        color: #111;
    }

        .nyt-featured h2 a:hover {
            text-decoration: underline;
        }

.nyt-featured-img img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.nyt-lead {
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
}

.nyt-meta {
    font-size: 13px;
    color: #666;
}

    .nyt-meta span + span::before {
        content: " ";
    }

/* LIST */

.nyt-list {
    border-left: 1px solid #ddd;
    padding-left: 18px;
}

@media(max-width:900px) {
    .nyt-list {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #ddd;
        margin-top: 20px;
        padding-top: 18px;
    }
}

.nyt-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eee;
}

    .nyt-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.nyt-item-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

    .nyt-item-body h3 a {
        text-decoration: none;
        color: #111;
    }

        .nyt-item-body h3 a:hover {
            text-decoration: underline;
        }

.nyt-item-sub {
    font-size: 14px;
    color: #555;
    margin: 0 0 4px;
}

.nyt-item-thumb img {
    width: 90px;
    height: 70px;
    object-fit: cover;
}

.nyt-meta.small {
    font-size: 12px;
}

/* EMPTY */

.nyt-empty {
    font-size: 14px;
    color: #777;
}

/* ARTICLE PAGE */

.nyt-article {
    padding: 50px 0 80px;
    background: #f7f7f5;
}

.nyt-article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: Georgia,"Times New Roman",serif;
}

.nyt-article-header {
    margin-bottom: 20px;
}

.nyt-article-category {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .12em;
    color: #555;
}

.nyt-article-header h1 {
    font-size: 34px;
    margin: 4px 0;
    line-height: 1.15;
}

.nyt-article-sub {
    font-size: 18px;
    color: #555;
    margin: 6px 0 10px;
}

.nyt-article-meta {
    font-size: 13px;
    color: #666;
}

    .nyt-article-meta span + span::before {
        content: " · ";
    }

.nyt-article-figure {
    margin: 20px 0 16px;
}

    .nyt-article-figure img {
        width: 100%;
        height: auto;
        display: block;
    }

/* BODY TEXT */

.nyt-article-body {
    font-size: 17px;
    line-height: 1.7;
    color: #222;
}

    .nyt-article-body p {
        margin: 0 0 16px;
    }

        .nyt-article-body p:first-of-type::first-letter {
            font-size: 40px;
            float: left;
            line-height: 1;
            margin: 6px 6px 0 0;
        }


/* ARTICLE */

.nx-article {
    padding: 60px 0 80px;
    background: linear-gradient(180deg,#f7f9ff,#fff);
}

.nx-article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: Georgia,serif;
}

.nx-article-header {
    margin-bottom: 20px;
}

.nx-article-category {
    text-transform: uppercase;
    color: #6b6b6b;
    font-size: 12px;
}

.nx-article-header h1 {
    font-size: 34px;
    margin: 6px 0 4px;
}

.nx-article-sub {
    color: #666;
    margin: 0 0 8px;
}

.nx-article-meta {
    color: #7a7a7a;
    font-size: 13px;
}

.nx-article-photo img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,.12);
    margin: 18px 0 14px;
}

/* BODY */

.nx-article-body {
    font-size: 17px;
    line-height: 1.75;
    color: #222;
}

    .nx-article-body p {
        margin: 0 0 16px;
    }
