/*
 * News / newsletter page – page-specific styles only.
 * Shared pieces: css/index.css (tokens, header, .btn, bootstrap cards),
 * css/page.css (hero), css/resources.css (.rs-badge).
 */
.nw-wrap {
    width: 90%;
    max-width: 880px;
    margin: 0 auto;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* issue bar: badge + link to the original PDF */
.nw-issue {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid #000;
    border-radius: 0.5rem;
    background: #fff;
}

.nw-issue__badge {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nw-issue__pdf {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    text-align: right;
}

.nw-issue__note {
    font-size: 0.8rem;
    color: #4b4b4b;
}

@media (max-width: 575px) {
    .nw-issue__pdf {
        align-items: flex-start;
        text-align: left;
    }
}

/* article cards */
.nw-card {
    scroll-margin-top: 80px;
}

.nw-card .card-body {
    padding: 1.5rem;
}

.nw-card--lead {
    background: var(--accent-soft, #eceffa);
}

.nw-card__title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: "Montserrat", sans-serif;
}

.nw-card--lead .nw-card__title {
    font-size: 1.75rem;
}

.nw-card p {
    margin: 0 0 0.9rem;
    color: #232323;
    line-height: 1.65;
}

.nw-card p:last-child {
    margin-bottom: 0;
}

.nw-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    padding: 0.15rem 0.7rem;
    border: 1px solid #000;
    border-radius: 999px;
    background: var(--accent-color, #8897d8);
    font-size: 0.8rem;
    font-weight: 700;
}

/* "In this issue" */
.nw-toc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.nw-toc__label {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nw-toc a {
    padding: 0.4rem 0.9rem;
    border: 1px solid #000;
    border-radius: 5px;
    background: #fff;
    color: #000;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nw-toc a:hover {
    background: var(--accent-color, #8897d8);
    text-decoration: none;
}

.nw-toc a:focus-visible,
.nw-link:focus-visible,
.nw-partners a:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* objectives */
.nw-objectives {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: obj;
}

.nw-objectives li {
    position: relative;
    padding: 1rem 1rem 1rem 3.4rem;
    border: 1px solid #000;
    border-radius: 0.5rem;
    background: #fff;
    line-height: 1.55;
    counter-increment: obj;
}

.nw-objectives li::before {
    content: counter(obj);
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid #000;
    border-radius: 50%;
    background: var(--accent-color, #8897d8);
    font-weight: 800;
    font-size: 0.9rem;
}

/* buttons / links row */
.nw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nw-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid #000;
    border-radius: 5px;
    color: #000;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.nw-link:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.nw-share {
    margin: 0;
    padding: 1rem;
    border: 2px dashed #000;
    border-radius: 0.5rem;
    background: #fff;
    text-align: center;
    font-weight: 700;
}

/* partners */
.nw-partners h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
}

.nw-partners ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nw-partners a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid #000;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 0.9rem;
    text-decoration: none;
}

.nw-partners a:hover {
    background: var(--accent-color, #8897d8);
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .nw-toc a, .nw-link { transition: none; }
}

/* issue bar above the PDF reader */
.nw-wrap--top {
    padding-bottom: 1.25rem;
}

.nw-wrap--top .nw-issue {
    justify-content: center;
}
