/* Рассылка «Что изменилось за неделю»: страницы выпусков и страница подписки
   (tools/build-newsletter.py). Рамка страницы, hero и секции берутся из
   ranking.css, здесь только своё: карточки изменений, значки сигнала, архив
   и форма подписки внутри страницы. */

.nw-list .rank-wrap { display: grid; gap: 18px; }
.nw-item { background: #fff; border: 1px solid var(--line, #e3e6e2); border-radius: var(--radius, 12px); padding: 22px 24px; }
.nw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--muted, #6b7280); }
.nw-sig { display: inline-block; font-family: var(--font-mono, Consolas, monospace); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: #fff4dd; color: #8a5a00; }
.nw-negative .nw-sig { background: #fdecea; color: #9b2c2c; }
.nw-positive .nw-sig { background: #e7f0ee; color: var(--brand, #0e5f55); }
.nw-item h2 { font-size: 24px; line-height: 1.25; margin: 0 0 6px; }
.nw-item h3 { font-family: var(--font-mono, Consolas, monospace); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6b7280); margin: 16px 0 4px; }
.nw-item p { font-size: 15.5px; line-height: 1.6; margin: 0 0 8px; }
.nw-item .nw-src { font-size: 13.5px; color: var(--muted, #6b7280); }
.nw-item .nw-src a { color: var(--brand, #0e5f55); }
.nw-item .nw-country { font-size: 14.5px; margin-top: 12px; }
.nw-item .nw-country a { font-weight: 600; }

.nl-band-page { margin: 22px 0 18px; }
.nl-band-page form { flex: 1 1 320px; }
.nl-band-page input { flex: 1 1 200px; }
.nl-band-hero { margin: 24px 0 10px; }
.nl-band .nl-ok { font-weight: 600; }
.nl-band .nl-err { color: #ffd9d4; font-size: 13px; width: 100%; }
.nl-band p a { color: #fff; text-decoration: underline; }

/* форма в подвале всех собранных страниц (FOOT в build-ranking.py) */
.nl-foot { padding: 6px 0 0; }
.nl-foot .nl-band { margin-top: 0; }

.nw-archive { display: grid; gap: 14px; margin-bottom: 20px; }
.nw-arch-item { background: #fff; border: 1px solid var(--line, #e3e6e2); border-radius: var(--radius, 12px); padding: 18px 22px; }
.nw-arch-date { font-family: var(--font-mono, Consolas, monospace); font-size: 12px; color: var(--muted, #6b7280); letter-spacing: .08em; margin-bottom: 4px; }
.nw-arch-item h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.nw-arch-item p { font-size: 14.5px; line-height: 1.55; margin: 0 0 6px; }
.nw-arch-countries { color: var(--muted, #6b7280); font-size: 13.5px; }

@media (max-width: 640px) {
  .nw-item { padding: 18px 16px; }
  .nw-item h2 { font-size: 21px; }
  .nl-band-page form { flex-basis: 100%; }
}

/* плашка после перехода по ссылке «Подтвердить подписку» из письма */
.nw-confirmed { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 15px; font-weight: 600; }
.nw-confirmed.ok { background: var(--brand-tint); color: var(--brand); border: 1px solid #cfe2de; }
.nw-confirmed.bad { background: #fdecea; color: #9b2c2c; border: 1px solid #f3c7c2; }
