/* ==========================================================
   Newsroom (/news) and article pages (/news/*)
   ========================================================== */

/* ── Index layout ── */
.nw-section { padding: 30px 0 90px; }
.nw-section--more { padding: 80px 0 90px; background: var(--es-gray); margin-top: 72px; }

/* Featured story: image card with text over a bottom shade */
.nw-featured {
    position: relative;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    min-height: 360px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 40px;
    box-shadow: 0 18px 44px rgba(13,31,32,0.12);
}
.nw-featured > .nw-art { position: absolute; inset: 0; }
.nw-featured .nw-logo-row { margin-bottom: 14%; }
.nw-featured-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,14,16,0.92) 0%, rgba(5,14,16,0.55) 38%, rgba(5,14,16,0) 70%); }
.nw-featured-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 44px; max-width: 820px; }
.nw-featured h2 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.6px; margin: 0 0 10px; transition: color 0.15s ease; }
.nw-featured p { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.7; margin: 0; max-width: 640px; }
.nw-featured:hover h2 { color: var(--es-accent); }
.nw-featured:hover .nw-photo, .nw-featured:hover .nw-logo, .nw-featured:hover .nw-logo-row { transform: scale(1.03); }
.nw-featured .nw-logo-row { transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94); }

/* Filters + section heading */
.nw-bar { margin-bottom: 26px; }
.nw-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-chip {
    border: 1px solid #dfe5e6;
    background: #fff;
    color: #3d4749;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nw-chip:hover { border-color: var(--es-accent); color: var(--es-teal); }
.nw-chip.active { background: var(--es-teal); border-color: var(--es-teal); color: #fff; }
.nw-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #e6eaeb;
    padding-top: 22px;
    margin-bottom: 30px;
}
.nw-section-head h2 { font-size: 1rem !important; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #5b6769; margin: 0; }
.nw-section-head a { font-size: 0.9rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--es-teal); text-decoration: none; }
.nw-section-head a:hover { color: var(--es-accent); }

/* ── Post art (photo or logo-on-color) ── */
.nw-art {
    position: relative;
    overflow: hidden;
    background: var(--art-bg, #1e4b4d);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nw-art > img.nw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-art .nw-logo { max-width: 56%; max-height: 62%; object-fit: contain; position: relative; }
.nw-art .nw-photo, .nw-art .nw-logo { transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94); will-change: transform; }
.nw-art .nw-logo-row { display: flex; gap: 5%; align-items: center; justify-content: center; width: 80%; max-width: 640px; position: relative; }
.nw-art .nw-logo-row img { width: 21%; aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: #000; padding: 2%; box-shadow: 0 10px 26px rgba(0,0,0,0.3); }
.nw-art .nw-logo-row img.round { border-radius: 50%; padding: 0; object-fit: cover; background: #38A6F1; }
.nw-art .nw-art-text { position: relative; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -1px; text-align: center; line-height: 1.05; padding: 0 8%; transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94); }
.nw-art .nw-art-text small { display: block; font-size: 0.32em; letter-spacing: 3px; text-transform: uppercase; color: var(--es-accent); margin-bottom: 12px; font-weight: 800; }
.nw-art.grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ── Meta ── */
.nw-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #1a9aa3; text-decoration: none; }
.nw-card-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; font-size: 0.9rem; }
.nw-date { color: #7a8789; display: inline-flex; align-items: center; gap: 6px; }
.nw-date i { font-size: 0.75rem; }
.nw-card-meta--light .nw-tag { color: var(--es-accent); }
.nw-card-meta--light .nw-date { color: rgba(255,255,255,0.75); }
.nw-meta { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: #7a8789; }
.nw-meta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; }
.nw-meta strong { color: var(--es-dark); font-weight: 700; display: block; font-size: 1rem; }
.nw-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: inline-block; margin: 0 6px; vertical-align: middle; }

/* ── Story cards (Best of Delmarva-style hover: image zoom + title color) ── */
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.nw-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.nw-card-media { border-radius: 16px; overflow: hidden; margin-bottom: 18px; transform: translateZ(0); }
.nw-card-media .nw-art { aspect-ratio: 16 / 9; }
.nw-card:hover .nw-photo, .nw-card:hover .nw-logo, .nw-card:hover .nw-logo-row, .nw-card:hover .nw-art-text { transform: scale(1.05); }
.nw-card .nw-logo-row { transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94); }
.nw-card h3 {
    font-weight: 800;
    font-size: 1.22rem;
    line-height: 1.3;
    color: var(--es-dark);
    margin: 0 0 10px;
    transition: color 0.14s cubic-bezier(0.25,0.46,0.45,0.94);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nw-card:hover h3 { color: #1a9aa3; }
.nw-card p {
    color: #5b6769;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nw-card[hidden], .nw-featured[hidden] { display: none; }
.nw-empty { color: #7a8789; text-align: center; padding: 40px 0; }

/* ==========================================================
   Article page
   ========================================================== */
.nw-article-head { padding: 72px 0 40px; text-align: center; }
.nw-article-head h1 { font-weight: 900; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -1.2px; color: var(--es-dark); max-width: 900px; margin: 0 auto 20px; }
.nw-article-head .nw-excerpt { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.6; color: #4a5658; max-width: 720px; margin: 0 auto 30px; }
.nw-article-head .nw-meta { justify-content: center; text-align: left; }
.nw-hero-art { max-width: 1140px; margin: 0 auto 64px; padding: 0 12px; }
.nw-hero-art .nw-art { aspect-ratio: 16 / 8; border-radius: 22px; }

.nw-content { max-width: 720px; margin: 0 auto; padding: 0 20px; font-family: 'Roboto', sans-serif; }
.nw-content > p { font-size: 1.16rem; line-height: 1.85; color: #2d3537; margin-bottom: 1.6em; }
.nw-content > p:first-child::first-letter {
    float: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 4.2em;
    line-height: 0.85;
    margin: 0.06em 0.12em 0 0;
    color: var(--es-teal);
}
.nw-content h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.75rem; letter-spacing: -0.4px; color: var(--es-dark); margin: 2.2em 0 0.7em; }
.nw-content h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--es-dark); margin: 1.8em 0 0.6em; }
.nw-content a { color: var(--es-teal); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(46,184,194,0.5); text-underline-offset: 3px; }
.nw-content a:hover { color: var(--es-accent); }
.nw-content ul, .nw-content ol { font-size: 1.12rem; line-height: 1.8; color: #2d3537; padding-left: 1.3em; margin-bottom: 1.6em; }
.nw-content li { margin-bottom: 0.5em; }
.nw-content li::marker { color: var(--es-accent); font-weight: 700; }
.nw-content blockquote {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--es-dark);
    border-left: 4px solid var(--es-accent);
    padding: 4px 0 4px 26px;
    margin: 2em 0;
}
.nw-content figure { margin: 2.4em -60px; }
.nw-content figure .nw-art { aspect-ratio: 16 / 9; border-radius: 16px; }
.nw-content figcaption { text-align: center; font-size: 1rem; color: #7a8789; margin-top: 12px; }
.nw-content hr { border: 0; background: none; height: auto; text-align: center; margin: 2.6em 0; opacity: 1; }
.nw-content hr::before { content: '\2022\00a0\00a0\2022\00a0\00a0\2022'; color: #9aa5a7; font-size: 1.2rem; letter-spacing: 6px; }
.nw-callout { background: var(--es-gray); border-radius: 16px; padding: 24px 26px; margin: 2em 0; display: flex; gap: 16px; }
.nw-callout i { color: var(--es-accent); font-size: 1.4rem; line-height: 1.4; }
.nw-callout p { margin: 0; font-size: 1.02rem; line-height: 1.75; color: #2d3537; }

.nw-share { max-width: 720px; margin: 56px auto 0; padding: 26px 20px 0; border-top: 1px solid #e6eaeb; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nw-share-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #7a8789; }
.nw-share-btns { display: flex; gap: 8px; }
.nw-share-btns a, .nw-share-btns button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid #d9e0e1;
    background: #fff;
    color: var(--es-dark);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nw-share-btns a:hover, .nw-share-btns button:hover { background: var(--es-teal); border-color: var(--es-teal); color: #fff; }

.nw-author { max-width: 720px; margin: 32px auto 0; padding: 0 20px; }
.nw-author-card { display: flex; gap: 20px; align-items: center; background: var(--es-gray); border-radius: 18px; padding: 24px; }
.nw-author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.nw-author-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--es-dark); margin-bottom: 2px; }
.nw-author-card .role { font-size: 0.9rem; font-weight: 700; color: var(--es-accent); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px; }
.nw-author-card p { font-size: 1rem; line-height: 1.65; color: #4a5658; margin: 0; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
    .nw-featured { aspect-ratio: 16 / 9; min-height: 0; }
    .nw-featured-body { padding: 30px; }
    .nw-content figure { margin: 2.2em 0; }
}
@media (max-width: 767px) {
    .nw-section { padding: 16px 0 64px; }
    .nw-section--more { padding: 56px 0 64px; margin-top: 56px; }
    .nw-featured { aspect-ratio: auto; min-height: 0; border-radius: 18px; display: flex; flex-direction: column; background: var(--es-dark); }
    .nw-featured > .nw-art { position: relative; aspect-ratio: 16 / 10; }
    .nw-featured .nw-logo-row { margin-bottom: 0; width: 88%; }
    .nw-featured-shade { display: none; }
    .nw-featured-body { position: relative; padding: 22px 22px 26px; }
    .nw-featured h2 { font-size: 1.45rem; }
    .nw-featured p { font-size: 1rem; }
    .nw-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 6px; scrollbar-width: none; }
    .nw-filters::-webkit-scrollbar { display: none; }
    .nw-chip { flex-shrink: 0; }
    .nw-grid { grid-template-columns: 1fr; gap: 34px; }
    .nw-article-head { padding: 48px 0 28px; }
    .nw-article-head h1 { letter-spacing: -0.8px; }
    .nw-hero-art .nw-art { aspect-ratio: 16 / 10; border-radius: 16px; }
    .nw-hero-art { margin-bottom: 36px; }
    .nw-content > p { font-size: 1.08rem; }
    .nw-content blockquote { font-size: 1.2rem; }
    .nw-author-card { flex-direction: column; text-align: center; }
}

/* ── Empty state (no posts yet) ── */
.nw-empty-state { max-width: 620px; margin: 30px auto 10px; text-align: center; padding: 56px 32px; border: 1px dashed #d5dddf; border-radius: 22px; background: #fafbfb; }
.nw-empty-state h2 { font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--es-dark); margin: 0 0 12px; }
.nw-empty-state p { color: #5b6769; font-size: 1rem; line-height: 1.75; margin: 0; }
@media (max-width: 767px) { .nw-empty-state { padding: 40px 22px; margin-top: 10px; } }

/* Content written in the admin editor */
.nw-content img { display: block; max-width: 100%; height: auto; border-radius: 14px; margin: 2.2em auto; }
.nw-content p > img { margin: 0.4em auto; }
.nw-content iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; margin: 2.2em 0; }
.nw-content pre { background: #0f2224; color: #e6f1f2; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.6em; }
.nw-preview-bar { background: #fff4d6; color: #7a5b00; text-align: center; padding: 12px 16px; font-weight: 600; font-size: 0.95rem; }
