/* ===========================================================================
   Newsletter page — matched to the approved Carisma design.
   =========================================================================== */

.nl-page { display: flex; flex-direction: column; gap: 16px; }

/* -------------------------------- banner --------------------------------- */
.nl-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(120deg, #f7ecef 0%, #faf3ee 55%, #f6f3fb 100%);
    border: 1px solid #f1e6e8; border-radius: 18px; padding: 12px 24px;
}
.nl-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; margin-bottom: 4px; color: #6b5f63; }
.nl-crumb a { color: #6b5f63; text-decoration: none; }
.nl-crumb a:hover { color: var(--primary-color); text-decoration: underline; }
.nl-crumb strong { color: #1c1416; font-weight: 700; }
.nl-crumb__sep { color: #cdbfc3; }
.nl-title { font-size: 1.5rem; font-weight: 800; color: #1c1416; margin: 0 0 2px; }
.nl-sub { color: #6b5f63; font-size: .88rem; margin: 0; }
.nl-banner__year { display: flex; align-items: center; gap: 12px; }
.nl-pill { padding: 4px 12px; border-radius: 999px; background: #f6e9ed; color: var(--primary-color); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.nl-year {
    height: 44px; padding: 0 14px; min-width: 120px; border: 1px solid #d9dde3; border-radius: 10px; background: #fff;
    font: inherit; font-size: .96rem; font-weight: 600; color: var(--ink); cursor: pointer;
}

/* --------------------------------- layout --------------------------------- */
.nl-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.nl-card {
    background: #fff; border: 1px solid #eef0f3; border-top: 3px solid #e9c7d2; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 20, 40, .04);
}
.nl-accent { display: inline-block; width: 4px; height: 20px; border-radius: 3px; background: var(--primary-color); flex: none; }
.nl-card__title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 20px 10px; font-size: 1.2rem; font-weight: 700; color: #1c1416; }

/* ------------------------------ editions list ------------------------------ */
.nl-search {
    display: flex; align-items: center; gap: 8px; margin: 0 18px 12px; padding: 0 12px;
    border: 1px solid #e3d8db; border-radius: 10px; background: #faf7f6;
}
.nl-search .material-symbols-rounded { font-size: 19px; color: #8a8f99; }
.nl-search input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; font: inherit; font-size: .92rem; }
.nl-search:focus-within { border-color: var(--primary-color); background: #fff; }

.nl-items { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 14px; border-top: 1px solid #ece6e2; max-height: 620px; overflow-y: auto; }
.nl-item {
    display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box; padding: 10px 12px;
    border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; cursor: pointer; color: #2b2f36;
}
.nl-item:hover { background: #faf3f5; }
.nl-item.is-selected { background: #f8e6ea; box-shadow: inset 3px 0 0 var(--primary-color); }
.nl-badge {
    flex: none; width: 52px; height: 52px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #e3d8db; color: var(--primary-color); line-height: 1.15;
}
.nl-badge__m { font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.nl-badge__y { font-size: .78rem; font-weight: 800; color: #1c1416; }
.nl-item.is-selected .nl-badge { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.nl-item.is-selected .nl-badge__y { color: #fff; }
.nl-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nl-item__name { display: flex; align-items: center; gap: 8px; font-size: .98rem; font-weight: 700; color: #1c1416; }
.nl-item__sub { font-size: .84rem; color: #6b5f63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-tag { padding: 1px 7px; border-radius: 6px; background: #e3f3ea; color: #0d6a40; font-size: .62rem; font-weight: 700; letter-spacing: .05em; }
.nl-dot { width: 8px; height: 8px; border-radius: 50%; background: #c2185b; flex: none; }
.nl-empty { padding: 22px; text-align: center; color: #8a8f99; font-size: .9rem; }
.nl-empty--big { padding: 80px 20px; }

/* --------------------------------- reader --------------------------------- */
.nl-reader { overflow: hidden; }
.nl-reader__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px 14px; }
.nl-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #6b5f63; }
.nl-reader__title { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; font-size: 1.3rem; font-weight: 700; color: #1c1416; }
.nl-meta { font-size: .84rem; color: #6b5f63; }
.nl-actions { display: flex; align-items: center; gap: 10px; }
.nl-nav {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    border: 1px solid #e3d8db; border-radius: 10px; background: #fff; color: #2b2f36;
}
.nl-nav:hover:not(:disabled) { border-color: var(--primary-color); color: var(--primary-color); }
.nl-nav:disabled { opacity: .4; cursor: not-allowed; }
.nl-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; cursor: pointer;
    border-radius: 10px; font: inherit; font-size: .94rem; font-weight: 600; white-space: nowrap;
}
.nl-btn .material-symbols-rounded { font-size: 19px; }
.nl-btn--ghost { border: 1px solid #d9dde3; background: #fff; color: var(--ink); }
.nl-btn--ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }
.nl-btn--primary { border: 1px solid var(--primary-color); background: var(--primary-color); color: #fff; }
.nl-btn--primary:hover { filter: brightness(1.08); }

/* the grey stage with the edition centred on it (sample content) */
.nl-stage { background: #f1eeec; padding: 26px 24px 40px; max-height: 640px; overflow-y: auto; border-top: 1px solid #ece6e2; }
.nl-mail { width: min(680px, 100%); margin: 0 auto; background: #fff; box-shadow: 0 6px 24px rgba(20, 20, 40, .12); border-radius: 6px; overflow: hidden; font-family: Arial, Helvetica, sans-serif; }
.nl-mail__top { padding: 16px; text-align: center; color: #7a1f2b; font-size: 1rem; }
.nl-mail__top b { font-weight: 700; }
.nl-mail__hero {
    display: flex; align-items: center; justify-content: center; gap: 28px; padding: 26px 20px;
    background: linear-gradient(110deg, #6a1238 0%, #8c1c5e 60%, #7a1a4a 100%); color: #fff;
}
.nl-mail__logo { display: flex; align-items: center; gap: 12px; padding-right: 28px; border-right: 1px solid rgba(255, 255, 255, .45); }
.nl-mail__mark { width: 48px; height: 48px; border-radius: 50%; border: 4px solid #fff; box-shadow: inset 0 0 0 4px #3a4a8c; background: #fff; }
.nl-mail__brand { font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; }
.nl-mail__tag { font-size: .78rem; opacity: .9; }
.nl-mail__years { display: flex; flex-direction: column; align-items: center; }
.nl-mail__years strong { font-size: 2.6rem; line-height: 1; }
.nl-mail__years span { font-size: .62rem; letter-spacing: .22em; }
.nl-mail__intro { padding: 26px 40px 28px; text-align: center; }
.nl-mail__eyebrow { color: #1f4f9a; font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.nl-mail__head { color: #7a1f2b; font-size: 1.6rem; font-weight: 800; letter-spacing: .03em; margin-bottom: 12px; }
.nl-mail__intro p { margin: 0; color: #333; font-size: .92rem; line-height: 1.5; }
.nl-mail__featured { background: #dbe8f7; padding: 18px 20px 20px; text-align: center; }
.nl-mail__featured-title { color: #1f4f9a; font-weight: 700; font-size: .85rem; letter-spacing: .08em; margin-bottom: 12px; }
.nl-mail__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nl-mail__chips span { background: #fff; color: #1f4f9a; font-weight: 700; font-size: .84rem; padding: 7px 16px; border-radius: 999px; }
.nl-mail__section { padding: 24px 30px 70px; color: #1f4f9a; font-size: 1.2rem; }

/* --------------------------------- toast ---------------------------------- */
.nl-toast {
    position: fixed; right: 24px; bottom: 24px; z-index: 3500; pointer-events: none;
    background: #1c1416; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: .9rem;
    animation: nl-toast 2.8s ease forwards;
}
@keyframes nl-toast { 0%, 75% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1000px) {
    .nl-grid { grid-template-columns: 1fr; }
}

/* ---- live edition shown in a frame ---- */
.nl-stage--frame { padding: 0; max-height: none; background: #f1eeec; }
.nl-frame { display: block; width: 100%; height: 780px; border: 0; background: #fff; }
.nl-framenote { padding: 10px 20px 14px; font-size: .84rem; color: #6b5f63; border-top: 1px solid #ece6e2; }
.nl-framenote a { color: var(--primary-color); font-weight: 600; }
.nl-link { border: 0; background: none; padding: 0; color: var(--primary-color); font: inherit; font-weight: 600; cursor: pointer; }
.nl-link:hover { text-decoration: underline; }
a.nl-btn { text-decoration: none; }

/* ---- the editions list is exactly as tall as the reader ---- */
.nl-grid { align-items: stretch; }
.nl-list { position: relative; min-height: 420px; }
.nl-list__inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.nl-list .nl-items { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
@media (max-width: 1000px) {
    .nl-list { min-height: 0; }
    .nl-list__inner { position: static; }
    .nl-list .nl-items { max-height: 420px; }
}
