/* Base */
.newsletter-widget {
    --row-height: 100px;
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 12), 1fr);
    grid-template-rows: auto auto repeat(6, var(--row-height)) auto;
    gap: 0;
    background: #f5f0e8;
    font-family: Georgia, serif;
    color: #1a1a1a;
    border: 1px solid #ccc;
    max-width: 100%;
    margin: 0 auto;
}
#newsletter-widget-37b{
    max-width:50%;
}

.newsletter-block {
    min-width: 0;
    display: grid;
}

.newsletter-widget > .newsletter-block {
    align-self: start;
}

.newsletter-widget > .newsletter-block--col {
    align-self: stretch;
    overflow: hidden;
}

/* Header */
.nh-header {
    text-align: center;
    padding: 1.5rem 0rem 0.5rem;
    border-bottom: 6px double #1a1a1a;
    grid-column: span 12;
    margin-inline: 2rem;
}
.nh-header__super {
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 0.25rem;
    font-family: 'Caveat', cursive !important;
}
.nh-header__dot {
    margin: 0 0.3em;
    opacity: 0.5;
    font-size: 1.4em;
    line-height: 0;
    vertical-align: middle;
}
.nh-header__title {
    font-size: 4rem;
    font-weight: 500;
    margin: 0;
    line-height: 1;
    font-family: "Georgia", cursive;
}
.nh-header__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 900;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    align-items: center;
    font-family: 'Caveat', cursive;
}

.nh-header__line {
  border: none;
  height: 3px;
  background-color: #aaa; /* Change line color */
  width: 65%;           /* Change line length */
}

/* Nav */
.nh-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d5a27;
    color: #f5f0e8;
    font-family: 'Caveat', cursive;
    font-size: 20px;
    padding: 3px 8px;
    margin-bottom: 8px;
    margin-top: 15px;
    grid-column: span 12;
    margin-inline: 2rem;
}
.nh-nav__items {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    padding-left: 10px;

    .nav-link{
        font-size: 1.15rem;
        font-weight: 900;
    }
}
.nh-nav__item::before {
    content: none;
}
.nh-nav__items-separator{
    font-size: 18px;
}
.nh-nav__date {
    font-size: 1.15rem;
    padding-right: 10px;
    font-weight: 900;
}

/* Shared label */
.nh-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Caveat', cursive;
    border: 3px solid #2d5a27;
    padding: 0.1rem 0.4rem;
    margin-bottom: 0.5rem;
    color: #2d5a27;
    font-weight: 900;
}

/* Shared placeholder */
.nh-placeholder {
    background: repeating-linear-gradient(
        45deg,
        #ddd,
        #ddd 5px,
        #eee 5px,
        #eee 10px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
    font-size: 0.6rem;
}

/* Article Card — hero (col span 5–6) */
.nh-article-card {
    padding: 1rem 1.5rem;
    border-left: 2px solid #aaa;
}
.nh-article-card__heading {
    font-size: 25px;
    line-height: 1.2;
    margin: 4px 10px 0.5rem 0rem;
    font-family: "Special Elite", system-ui;
    color: #1a1a1a;
    text-align:left;
}
.nh-article-card__subtitle{
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.nh-article-card__byline {
    font-size: 0.85rem;
    font-family: 'Caveat', cursive;
    font-weight: 900;
    color: #555;
    margin: 3px 0 0px 0;
}
.nh-article-card figure{
    border-top: 2px solid #aaa;
}
.nh-article-card figure,
.nh-article-card figure img {
    height: auto;
    width:100%;
    margin: 10px 0 0.75rem 0;
}
.nh-article-card .nh-placeholder {
    height: 160px;
}
.nh-article-card__body {
    font-size: 1.15rem;
    line-height: 1.6;
    column-count: 1;
    column-gap: 10px;
    margin-top: 6px;
    p{
        font-family: 'Caveat', cursive !important;
        color: #1a1a1a;
        font-weight: 900;
    }
}
.nh-article-card__body--trim{
    font-size: 1.25rem;
    line-height: 1.6;
    column-count: 1;
    column-gap: 10px;
    margin-top: 6px;
    font-family: 'Caveat', cursive !important;
    color: #1a1a1a;
    font-weight: 900;
}
.nh-article-card__link {
    font-size: 0.6rem;
    text-decoration: underline dotted;
    color: #1a1a1a;
}

/* Badges */
.nh-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Caveat', cursive;
}
.nh-badge--popup  { background: #003768; color: #fff; }
.nh-badge--page   { background: #2d5a2d; color: #fff; }
.nh-badge--PDF    { background: #c0392b; color: #fff; }
.nh-badge--expand { background: #6b4c9a; color: #fff; }

.newsletter-col {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 12), 1fr);
    gap: 0;
    grid-column: span 12;
    align-content: start;
    align-items: start;
    /*align-self: start;*/
}

.newsletter-col__area {
    display: grid;
    flex-direction: column;
    min-width: 0;
    align-self: start;
}

/* Footer */

.nh-footer{
    display: flex;
    border-top: 3px solid #1a1a1a;
    margin: 20px 2rem;
    justify-content: space-between;
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    padding-top: 0.75rem;
}
.nh-footer__left, .nh-footer__center, .nh-footer__right {
    min-width: 200px;
}
.nh-footer__left{
    text-align: left;
}
.nh-footer__center{
    text-align: center;
}
.nh-footer__right{
    text-align: right;
}

/* Modal overlay */
.nh-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

/* Modal box */
.nh-modal {
    background: #f5f0e8;
    font-family: Georgia, serif;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: hidden;
    padding: 2rem;
    position: relative;
}

/* Modal header row */
.nh-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

/* Close button */
.nh-modal__close {
    background: none;
    border: 1px solid #1a1a1a;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    font-family: 'Caveat', cursive;
    color: #1a1a1a;
    line-height: 1;
}
.nh-modal__close:hover {
    background: #1a1a1a;
    color: #f5f0e8;
}

/* Modal title */
.nh-modal__title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    padding-bottom: 0.5rem;
    font-family: "Special Elite", system-ui;
}

/* Modal byline */
.nh-modal__byline {
    font-size: 1.25rem;
    color: #555;
    margin: 0 0 1rem;
    font-family: 'Caveat', cursive;
}

/* Modal image */
.nh-modal__figure {
    width: 100%;
    margin: 0 0 1rem;
}
.nh-modal__figure img {
    width: 100%;
    display: block;
}
.nh-modal__caption {
    font-size: 1rem;
    font-family: 'Caveat', cursive;
    color: #777;
    margin-top: 0.25rem;
}

/* Modal body */
.nh-modal__body {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    p{
        font-family: 'Caveat', cursive;
        font-weight: 900;
    }
}

/* Modal inner links */
.nh-modal__inner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid #aaa;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

/* specific CSS */

#mainNewsArticle{
    margin-left: 2rem;
    padding-left: 0;
    border-left: 0;
    .nh-article-card__body{
        padding-bottom:10px;
        border-bottom: 2px solid #aaa;
    }
}

#newsletterColumnOne, #newsletterColumnTwo{
    border-left: 2px solid #aaa;
}
#centerTopArticle, #centerBottomArticle{
    border: 0;

    .nh-article-card__heading{
        font-size: 20px;
        margin: 0;
        margin-bottom:10px;
    }

    .nh-article-card__body{
        font-size: 1.2rem;
        font-weight: 900;
    }
    
}
#centerTopArticle .nh-article-card__body{
    border-bottom: 3px solid #2d5a27;
}


#rightTopArticle{
    .nh-article-card__body{
        border-bottom: 2px solid #aaa;
    }
}
#rightTopArticle, #rightCenterArticle, #rightBottomArticle {
    margin-right: 2rem;
    padding-right: 0;
    border-left:0;

    .nh-article-card__heading{
        font-size: 18px;
    }
    .nh-article-card__body{
        font-size: 18px;
        font-weight: 900;
    }
}

/* ─── Responsive: Tablet (≤900px) ─── */
@media (max-width: 900px) {
    .newsletter-widget {
        max-width: 100%;
        display:block;
    }

    /* Collapse the outer column grid so areas stack */
    .newsletter-col {
        display: block;
    }

    .newsletter-col__area {
        display: block;
        width: 100%;
    }

    /* Override inline grid-column spans on blocks */
    .newsletter-block {
        display: block;
        width: 100%;
        grid-column: unset !important;
        grid-row: unset !important;
    }

    /* Header/nav margin adjustments */
    .nh-header,
    .nh-nav{
        margin-inline: 1rem;
    }

    .nh-header__title {
        font-size: 2.5rem;
    }

    /* Article cards side by side on tablet */
    .newsletter-col {
        display: flex;
        flex-wrap: wrap;
    }

    .newsletter-col__area {
        flex: 1 1 45%;
        min-width: 280px;
    }
}

/* ─── Responsive: Mobile (≤600px) ─── */
@media (max-width: 600px) {
    .newsletter-widget {
        max-width: 100%;
        border-left: none;
        border-right: none;
    }

    .newsletter-col {
        display: block;
    }

    .newsletter-col__area {
        display: block;
        width: 100%;
        flex: none;
    }

    .newsletter-block {
        grid-column: unset !important;
        grid-row: unset !important;
        padding-inline: 0.25rem;
    }

    /* Header */
    .nh-header {
        margin-inline: 0.75rem;
        padding: 1rem 0 0.5rem;
    }

    .nh-header__title {
        font-size: 2rem;
    }

    .nh-header__meta {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .nh-header__line, .nh-nav__items-separator {
        display: none;
    }

    /* Nav */
    .nh-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        margin-inline: 0.75rem;
    }

    .nh-nav__items {
        flex-wrap: wrap;
        display: block;
        padding-left:0;
    }

    /* Article cards full width, remove left borders */
    .nh-article-card {
        border-left: none;
        border-top: 2px solid #aaa;
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Undo specific ID overrides that assume desktop columns */
    #mainNewsArticle {
        margin-left: 0.75rem;
        .nh-article-card__body {
        border-bottom: 0;
    }
    }

    #rightTopArticle,
    #rightCenterArticle,
    #rightBottomArticle {
        margin-right: 0.75rem;
    }
    
    #rightTopArticle {
    .nh-article-card__body {
        border-bottom: 0;
        }
    }

    /* Footer */
    .nh-footer {
        flex-direction: column;
        gap: 0.5rem;
        margin-inline: 0.75rem;
        text-align: left;
    }

    .nh-footer__center,
    .nh-footer__right {
        text-align: left;
    }

    .nh-footer__left,
    .nh-footer__center,
    .nh-footer__right {
        min-width: unset;
    }
    
    #newsletterColumnOne, #newsletterColumnTwo {
    border-left: 0;
    }
}