.nw-hero {
    position: relative;
    margin: -44px -28px 32px;
    overflow: hidden;
    border-radius: 24px;
    min-height: 160px;
}

.nw-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0e2818 0%, #1e5c38 55%, #3a9e6a 100%);
}

.nw-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 25, 18, .1) 0%, rgba(10, 25, 18, .7) 100%);
}

.nw-hero-body {
    position: relative;
    z-index: 1;
    padding: 28px 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nw-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .15s;
    align-self: flex-start;
}

.nw-back-btn:hover {
    color: #fff;
}

.nw-hero-title {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nw-hero-title i {
    font-size: 22px;
    opacity: .8;
}

.nw-hero-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    margin: 0;
}

.nw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.nw-card {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--white-glass);
    border: 1px solid var(--sand-2);
    transition: box-shadow .18s, transform .18s;
}

.nw-card:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}

[data-theme="dark"] .nw-card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
}

.nw-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.nw-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--sand-1);
    flex-shrink: 0;
}

.nw-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.nw-card:hover .nw-card-media img {
    transform: scale(1.04);
}

.nw-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, .35) 100%);
}

.nw-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--sand-3);
}

.nw-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nw-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nw-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 500;
}

.nw-date i {
    font-size: 10px;
}

.nw-credit {
    font-size: 10px;
    color: var(--ink-soft);
    opacity: .7;
}

.nw-card-title {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
}

[data-theme="dark"] .nw-card-title {
    color: var(--sand-0);
}

.nw-card-desc {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--coral);
    margin-top: auto;
    padding-top: 4px;
    transition: gap .15s;
}

.nw-card:hover .nw-card-cta {
    gap: 8px;
}

.nw-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 20px;
    font-size: 14px;
    color: var(--ink-soft);
    background: var(--sand-1);
    border-radius: var(--r-lg);
    border: 1px dashed var(--sand-3);
}

.nw-empty i {
    font-size: 20px;
}


.nw-show-hero {
    position: relative;
    margin: -44px -28px 0;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.nw-show-media {
    position: absolute;
    inset: 0;
    background: var(--sand-1);
}

.nw-show-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nw-show-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0e2818 0%, #1e5c38 55%, #3a9e6a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, .25);
}

.nw-show-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 25, 18, .05) 0%, rgba(10, 25, 18, .82) 100%);
}

.nw-show-head {
    position: relative;
    z-index: 1;
    padding: 24px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 760px;
}

.nw-show-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nw-show-meta .nw-date,
.nw-show-meta .nw-credit {
    color: rgba(255, 255, 255, .55);
}

.nw-show-title {
    font-family: 'Fraunces', serif;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.nw-show-chapo {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.nw-show-body {
    background: var(--white-glass);
    border: 1px solid var(--sand-2);
    border-top: none;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    padding: 32px 40px 40px;
    margin: 0 0 32px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-2);
    max-width: 100%;
}

[data-theme="dark"] .nw-show-body {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .07);
    color: #c5beb7;
}

.nw-show-body p {
    margin: 0 0 1.2em;
}

.nw-show-body h2, .nw-show-body h3 {
    font-family: 'Fraunces', serif;
    color: var(--ink);
    margin: 1.6em 0 .5em;
}

[data-theme="dark"] .nw-show-body h2,
[data-theme="dark"] .nw-show-body h3 {
    color: var(--sand-0);
}


@media (max-width: 700px) {
    .nw-hero {
        margin: -20px -16px 24px;
        border-radius: 16px;
    }

    .nw-hero-body {
        padding: 20px 20px 20px;
    }

    .nw-hero-title {
        font-size: 22px;
    }

    .nw-show-hero {
        margin: -20px -16px 0;
        border-radius: 16px 16px 0 0;
        min-height: 260px;
    }

    .nw-show-head {
        padding: 18px 20px 24px;
    }

    .nw-show-title {
        font-size: 22px;
    }

    .nw-show-body {
        padding: 22px 20px 28px;
    }

    .nw-grid {
        grid-template-columns: 1fr;
    }
}
