:root {
  --nl-purple: #6b1e6b;
  --nl-purple-dark: #541654;
  --nl-header: #35253A;
  --nl-gold: #d4af37;
  --nl-title: #5e2b97;
  --nl-quote-bg: #f5f1f9;
  --nl-card-border: #ece6f2;
  --nl-text-light: #666;
}

.nl-newsletter.container.page-content {
  width: min(calc(100% - 32px), 900px);
  max-width: 900px;
  margin: 1.25rem auto 4.5rem;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.nl-newsletter h1 {
  text-align: left;
  margin-bottom: 0.5rem;
}

.nl-newsletter section { margin-bottom: 1rem;}

/* ---------- (1) Sticky nav bar: edition badge + Contents dropdown ---------- */

.nl-subnav {
  position: sticky;
  top: 76px;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--nl-card-border);
  padding: 0.6rem clamp(1rem, 4vw, 1rem);
  margin: 76px 0 1.25rem;
}
.nl-subnav__bar {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 clamp(0.75rem, 3vw, 3vw);
}
.nl-subnav__edition {
  font-weight: 700;
  color: var(--nl-title);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nl-subnav__edition:hover { text-decoration: underline; }

.nl-toc-dropdown { position: relative; }
.nl-toc-dropdown summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #fff;
  background: var(--nl-title);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.88rem;
  white-space: nowrap;
}
.nl-toc-dropdown summary::-webkit-details-marker { display: none; }
.nl-toc-dropdown summary::after { content: "▾"; font-size: 0.75em; }
.nl-toc-dropdown[open] summary::after { content: "▴"; }

.nl-toc-dropdown__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--nl-card-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.5rem;
  width: min(340px, 84vw);
  max-height: 70vh;
  overflow-y: auto;
}

@media (max-width: 560px) {
  .nl-subnav__edition { max-width: 55vw; }
}

/* ---------- Table of contents list (used both in the dropdown and on the Contents page itself) ---------- */

.nl-toc { list-style: none; margin: 0; padding: 0; }
.page-content .nl-toc,
.page-content ul.nl-toc { list-style: none; padding-left: 0; padding-bottom: 0; margin-bottom: 0.25rem; } /* out-specificities .page-content ul's disc bullets */
.nl-toc li {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px dashed var(--nl-card-border);
  list-style: none;
}
.nl-toc li:last-child { border-bottom: none; }
.nl-toc li a {
  display: inline;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nl-toc li a:hover { color: var(--nl-purple); text-decoration: underline; }

/* ---------- (4)-(7) Masthead ---------- */

.nl-newsletter .nl-masthead { 
  text-align: left; 
  margin-bottom: 0.9rem; 
}

.nl-newsletter .nl-masthead__title {
  font-size: clamp(1.5rem, 5.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--nl-title);
  margin: 0 0 0.2rem;
  white-space: normal;
  overflow: visible;
}

.nl-masthead__subtitle {
  font-size: clamp(1rem, 4.5vw, 1.6rem);
  color: #444;
  font-weight: 600;
  margin: 0 0;
  line-height: 1.08;
}

.nl-masthead p { margin-bottom: 0.5rem; }
p.nl-masthead__subtitle { margin-bottom: 1rem; }

.nl-masthead__edition {
  display: inline-block;
  font-weight: 700;
  color: var(--nl-gold);
  background: var(--nl-header);
  padding: 0.15rem 0.7rem;
  border-radius: 4px;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.nl-newsletter .nl-masthead__mantra {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  color: #333;
  font-style: italic;
  margin: 0;
}

.nl-hero-image { width: 100%; border-radius: 8px; margin: 0 0 1.5rem; }

/* ---------- (8)-(9) Article header ---------- */

.nl-article { margin: 0 0 1rem; }

.nl-article__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 0 0;
}
.nl-article__header h2, .nl-article h2 {
  margin: 0;
  padding: 0;
  border-bottom: none;
  font-size: 1.4rem;
  color: var(--nl-purple);
  line-height: 1.25;
}
.nl-article__icon { font-size: 1.15rem; }
.nl-article__byline {
  font-style: italic;
  color: var(--nl-text-light);
  font-size: 0.88rem;
  margin: 0;
}
.nl-article__byline::before { content: "— "; }

/* ---------- (10)-(11) Consistent image crop frames ---------- */

.nl-crop { display: block; width: 100%; object-fit: cover; border-radius: 8px; }
.nl-crop-16-9 { aspect-ratio: 16 / 9; }
.nl-crop-4-3  { aspect-ratio: 4 / 3; }
.nl-crop-3-4  { aspect-ratio: 3 / 4; }
.nl-crop-1-1  { aspect-ratio: 1 / 1; }

.nl-story-grid img,
.nl-photo-gallery img,
.nl-text-photostack .nl-col-photos img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%; /* biases toward faces/subjects over floor/sky */
}

/* ---------- Faded background panel (dedication / TOC)  */

.nl-panel--faded {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0.5rem 0.75rem;
  margin: 0 0 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--nl-card-border);
  background: #fff;
}
.nl-panel--faded::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--panel-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  z-index: 0;
}
.nl-panel--faded::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.85));
  z-index: 0;
}
.nl-panel--faded > * { position: relative; z-index: 1; }
.nl-panel--faded p { text-align: left; margin: 0 0 0.9rem; }
.nl-panel--faded h2 { margin-top: 0; border-bottom: none; }

/* ---------- Floated inline figure ---------- */

.nl-figure--float-right, .nl-figure--float-left {
  width: 40%;
  max-width: 320px;
  margin-bottom: 0.75rem;
}
.nl-figure--float-right { float: right; margin-left: 1.25rem; }
.nl-figure--float-left { float: left; margin-right: 1.25rem; }
.nl-figure--float-right img, .nl-figure--float-left img { width: 100%; border-radius: 8px; }
.nl-figure__caption { font-size: 0.78rem; color: var(--nl-text-light); margin-top: 0.3rem; }
.nl-clearfix::after { content: ""; display: table; clear: both; }

@media (max-width: 560px) {
  .nl-figure--float-right, .nl-figure--float-left {
    float: none; width: 100%; max-width: none; margin: 0.75rem 0;
  }
}

/* ---------- Two/three-column story grid ---------- */

.nl-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin: 1.1rem 0; }
@media (max-width: 640px) { .nl-story-grid { grid-template-columns: 1fr; } }
.nl-story h3, .nl-story h4 { margin: 0 0 0.5rem; color: var(--nl-purple); font-size: 1.05rem; }
.nl-story p { margin: 0 0 0.6rem; text-align: left; }
.nl-story img { width: 100%; margin-top: 0.5rem; }

/* ---------- Photo gallery grid ---------- */

.nl-photo-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0 1.5rem; }
@media (max-width: 500px) { .nl-photo-gallery { grid-template-columns: 1fr; } }

/* ---------- Sidebar + main layout ---------- */

.nl-sidebar-layout { display: grid; grid-template-columns: minmax(210px, 30%) 1fr; gap: 1.75rem; margin: 1rem 0; }
@media (max-width: 640px) { .nl-sidebar-layout { grid-template-columns: 1fr; } }
.nl-sidebar { background: var(--nl-quote-bg); border-radius: 10px; padding: 1.1rem; }
.nl-sidebar h3 { font-size: 1rem; margin: 0 0 0.6rem; color: var(--nl-purple); }
.nl-sidebar ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.nl-sidebar li { margin-bottom: 0.5rem; }
.nl-sidebar__qr { width: 120px; margin-top: 0.4rem; }
.nl-testimonial {
  font-style: italic; font-size: 0.9rem; border-left: 3px solid var(--nl-purple);
  padding-left: 0.6rem; margin: 0 0 0.9rem;
}
.nl-testimonial cite { display: block; font-style: normal; font-weight: 700; font-size: 0.82rem; margin-top: 0.2rem; }
.nl-main img { width: 100%; margin: 0 0 1rem; }
.nl-main h3 { margin: 1.1rem 0 0.5rem; color: var(--nl-purple); }
.nl-main p { margin: 0 0 0.8rem; text-align: left; }

/* ---------- Text column + photo stack ---------- */

.nl-text-photostack { display: grid; grid-template-columns: 1fr minmax(210px, 33%); gap: 1.5rem; margin: 1rem 0; }
@media (max-width: 640px) { .nl-text-photostack { grid-template-columns: 1fr; } }
.nl-text-photostack .nl-col-text h4 { margin: 1rem 0 0.4rem; color: var(--nl-purple); font-size: 1rem; }
.nl-text-photostack .nl-col-text h4:first-child { margin-top: 0; }
.nl-text-photostack .nl-col-text p { margin: 0 0 0.6rem; text-align: left; }
.nl-text-photostack .nl-col-photos { display: flex; flex-direction: column; gap: 0.75rem; }
.nl-text-photostack .nl-col-photos img { width: 100%; }
.nl-inline-qr { width: 100px; float: right; margin-left: 0.75rem; }

/* ---------- Stat grid ---------- */

.nl-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.nl-stat { background: var(--nl-quote-bg); border-radius: 10px; padding: 0.9rem 1rem; text-align: center; }
.nl-stat__value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--nl-purple); }
.nl-stat__label { font-size: 0.78rem; color: var(--nl-text-light); }

/* ---------- Callout boxes ---------- */

.nl-callout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1rem 0; }
@media (max-width: 640px) { .nl-callout-grid { grid-template-columns: 1fr; } }
.nl-callout { background: #fff; border: 2px solid var(--nl-card-border); border-radius: 10px; padding: 1.1rem 1.3rem; }
.nl-callout h3 { margin: 0 0 0.6rem; font-size: 1rem; color: var(--nl-purple); }
.nl-callout ul { margin: 0; padding-left: 1.1rem; }
.nl-callout li { margin-bottom: 0.4rem; }

/* ---------- Section divider (between merged sections on one page) ---------- */

.nl-section-divider { border: none; border-top: 2px solid var(--nl-card-border); margin: 1rem 0; }

/* ---------- (13) Share buttons ---------- */

.nl-share {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--nl-card-border);
}
.nl-share__label { font-size: 0.85rem; font-weight: 700; color: var(--nl-text-light); margin-right: 0.2rem; }
.nl-share a, .nl-share button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--nl-quote-bg); color: var(--nl-purple);
  text-decoration: none; border: none; cursor: pointer; font-size: 0.95rem;
}
.nl-share a:hover, .nl-share button:hover { background: var(--nl-purple); color: #fff; }
.nl-share__copied { font-size: 0.78rem; color: var(--nl-purple); font-weight: 700; opacity: 0; transition: opacity 0.2s; }
.nl-share__copied.show { opacity: 1; }

/* ---------- Newsletter page navigation ---------- */

.nl-pagenav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--nl-card-border);
}
.nl-pagenav a { color: var(--nl-purple); font-weight: 700; text-decoration: none; }
.nl-pagenav a:hover { color: var(--nl-purple-dark); text-decoration: underline; }
.nl-pagenav__count { color: var(--nl-text-light); font-size: 0.88rem; }

/* ---------- Recipe two-column layout ---------- */

.nl-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1rem 0; }
@media (max-width: 640px) { .nl-two-col { grid-template-columns: 1fr; } }
.nl-two-col h3 { color: var(--nl-purple); font-size: 1rem; margin: 1rem 0 0.5rem; }
.nl-two-col h3:first-child { margin-top: 0; }
.nl-two-col ol, .nl-two-col ul { padding-left: 1.2rem; margin: 0 0 0.75rem; }
.nl-two-col img { width: 100%; margin-bottom: 1rem; }
