/* Newsletter content (entries converted with `php artisan newsletters:clean`).
   Everything is scoped to .nl so unconverted Mailchimp HTML is untouched. */

.nl {
    --nl-pink: #e03c8c;
    --nl-text: #4a4a4a;
    --nl-strong: #1f1f1f;
    --nl-muted: #767676;
    --nl-rule: #e6e6e6;
    --nl-box: #faf5f8;
    --nl-pad: 32px;

    padding: 8px var(--nl-pad) 32px;
    font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--nl-text);
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .nl { --nl-pad: 16px; font-size: 16px; }
}

.nl h2, .nl h3, .nl h4,
.nl .nl-issue, .nl .nl-byline strong {
    font-family: "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", sans-serif;
}

.nl p { margin: 0 0 1em; }
.nl strong { color: var(--nl-strong); }

.nl a { color: var(--nl-pink); text-decoration: none; }
.nl a:hover, .nl a:focus-visible { text-decoration: underline; }
.nl a strong { color: inherit; }

.nl ul, .nl ol { margin: 0 0 1em; padding-left: 1.4em; }
.nl li { margin-bottom: .35em; }
.nl li::marker { color: var(--nl-pink); }

/* Issue date + table of contents */
.nl-issue {
    margin: 16px 0 20px !important;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nl-pink);
}
.nl-toc { margin: 0 0 32px; }
.nl-label {
    margin: 24px 0 6px !important;
    font-family: "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nl-pink);
}
.nl-toc h2 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--nl-strong);
}
.nl-toc ol { margin: 0; }
.nl-toc li { font-size: 14px; }

/* Stories */
.nl-story { scroll-margin-top: 16px; }
.nl-story + .nl-story {
    margin-top: 48px;
    padding-top: 8px;
    border-top: 1px solid var(--nl-rule);
}
.nl-story h2 {
    margin: 24px 0 24px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.35;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--nl-pink);
}
.nl-kicker {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--nl-strong);
}
.nl h3 {
    margin: 32px 0 10px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    color: var(--nl-strong);
}

/* Images run edge to edge of the 600px sheet, as in the email */
.nl figure { margin: 28px calc(-1 * var(--nl-pad)); }
.nl figure img { display: block; width: 100%; height: auto; background: #fff; }
.nl-story > figure:first-child { margin-top: 0; }
/* Small pictures keep their email size (max-width set inline), centred */
.nl figure.nl-inset { margin: 24px auto; }
.nl-story > figure.nl-inset:first-child { margin-top: 24px; }

/* Credits, captions, sources, links */
.nl-byline { font-size: 13px; color: var(--nl-muted); }
.nl-byline strong {
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--nl-pink);
}
.nl-more, .nl-notes {
    margin: 24px 0;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.6;
    background: var(--nl-box);
    border-left: 3px solid var(--nl-pink);
    border-radius: 0 6px 6px 0;
}
.nl-more h4, .nl-notes h4 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--nl-pink);
}
.nl-more ul, .nl-notes ul { margin: 0; padding-left: 1.2em; }
.nl-more li, .nl-notes li { margin-bottom: .2em; }
.nl-more p, .nl-notes p { margin: 0; }

/* Dark mode: only for converted entries (old Mailchimp HTML has hard-coded colours) */
html[data-site-theme="dark"] #w:has(.nl) { background-color: #1c1f25; }
html[data-site-theme="dark"] #w:has(.nl) main { color: #b9bec7; }
html[data-site-theme="dark"] #w:has(.nl) hr { border-color: #3a3f48; opacity: 1; }
html[data-site-theme="dark"] .nl {
    --nl-text: #c9ced6;
    --nl-strong: #f1f3f6;
    --nl-muted: #9aa1ab;
    --nl-rule: #333842;
    --nl-box: #262a32;
    --nl-pink: #f0609f;
}
/* The footer logo/apsara are drawn on white: keep them on a light card */
html[data-site-theme="dark"] #w:has(.nl) .nl-brand {
    margin: 24px var(--bs-gutter-x, 24px);
    background: #fff;
    border-radius: 8px;
}
