/* ============================================================
   Newsletter — page layer. Loaded after what-we-do.css; body is
   "home wwd nl", so header, molecule, buttons, footer and dark
   mode come from the What We Do layer. Only newsletter layout
   lives here. Articles are always centred.
   ============================================================ */

.nl .page-header h1 { max-width: 16ch; }
.nl .ph-lead { max-width: 44ch; }

/* ── articles: centred hairline cards ── */
.nl .nl-articles { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
.nl .nl-articles { padding-top: clamp(40px, 5vw, 72px); }
.nl .nl-articles .section-label {
  display: block; margin: 0 0 clamp(36px, 4.5vw, 64px);
  font-family: var(--font-serif); font-size: clamp(44px, 6.4vw, 96px); font-weight: 300;
  letter-spacing: -.02em; line-height: 1; text-transform: none; text-align: left;
  color: var(--ink);
}
.nl .nl-articles .section-label::before,
.nl .nl-articles .section-label::after { content: none; display: none; }
.nl .nl-articles .section-label em { font-style: italic; font-weight: 400; color: var(--alpine); }
.nl .newsletter-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: center;
  gap: clamp(20px, 2.4vw, 40px); margin: 0 auto;
}
.nl .newsletter-card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--alpine-deep); border-radius: 0; box-shadow: none;
  color: inherit; text-decoration: none;
}
.nl .newsletter-card:hover { transform: none; box-shadow: none; background: none; }
.nl .newsletter-card::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--alpine); transition: width .5s var(--ease);
}
.nl .newsletter-card:hover::before { width: 100%; }
.nl .newsletter-card:focus-visible { outline: 2px solid var(--alpine); outline-offset: 4px; }
.nl .newsletter-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 28px 0 40px; }
.nl .newsletter-card-date {
  margin: 0 0 18px; font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--alpine);
}
.nl .newsletter-card-title {
  margin: 0; font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(26px, 2.7vw, 40px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink);
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.nl .newsletter-card:hover .newsletter-card-title { transform: translateY(-3px); }
.nl .newsletter-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-65); font-size: var(--fs-body); padding: 24px 0; }

/* ── subscribe: sits on the same page wash, no solid band ── */
.nl .nl-subscribe { padding: var(--section-y) 0; text-align: center; }
.nl .nl-container { background: transparent; border: 0; max-width: 640px; margin: 0 auto; }
.nl .nl-sub-title h2 { margin: 0 0 18px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; font-weight: 300; color: var(--ink); }
.nl .nl-sub-text p { margin: 0 auto clamp(28px, 4vw, 40px); max-width: 46ch; font-size: var(--fs-body); font-weight: 300; line-height: 1.8; color: var(--ink-65); }
.nl .nl-row { display: flex; justify-content: center; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.nl .nl-field { flex: 1 1 300px; text-align: left; }
.nl .nl-field .form__label-row, .nl .nl-field .entry__field { width: 100%; }
.nl #EMAIL {
  width: 100%; height: 50px; padding: 0 18px; border-radius: 0; border: 1px solid var(--border);
  background: rgba(255,255,255,.4); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-small);
}
.nl #EMAIL::placeholder { color: var(--ink-40); }
.nl #EMAIL:focus { outline: 2px solid var(--alpine); outline-offset: 2px; }
.nl .sib-form-block__button {
  height: 50px; padding: 0 32px; border: 1px solid var(--alpine); border-radius: 0; cursor: pointer;
  background: var(--alpine); color: var(--on-alpine); white-space: nowrap;
  font-family: var(--font-sans); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.nl .sib-form-block__button:hover { background: transparent; color: var(--alpine); }
.nl .entry__error { display: block; margin-top: 8px; font-size: 13px; color: #b3261e; }
.nl .nl-msg {
  max-width: 640px; margin: 0 auto 24px; padding: 12px 16px; text-align: center;
  background: rgba(255,255,255,.4); border: 1px solid var(--border); color: var(--ink); font-size: var(--fs-small);
}

@media (max-width: 960px) {
  .nl .newsletter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nl .newsletter-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .nl .nl-row { flex-direction: column; align-items: stretch; }
  .nl .sib-form-block__button { width: 100%; }
}

/* cards are translucent so the wash runs continuously behind and through them */
html[data-theme="dark"] .nl .newsletter-card { border-top-color: var(--sage); }
.nl .newsletter-card:hover .newsletter-card-title { color: var(--alpine); }

/* ═══ Article page (body.nl-art) ═══ */
.nl-art .page-header { text-align: center; }
.nl-art .page-header .section-inner { display: flex; flex-direction: column; align-items: center; }
.nl-art .page-header .section-label { justify-content: center; }
.nl-art .page-header h1 { max-width: 22ch; margin: 28px auto 0; font-size: clamp(34px, 4.2vw, 58px); }
.nl-art .article-date {
  margin: 24px 0 0; font-family: var(--font-sans); font-size: var(--fs-label);
  letter-spacing: .24em; text-transform: uppercase; color: var(--alpine);
}
.nl-art .article { padding: var(--section-y) 0; }
.nl-art .article-header-image { max-width: 960px; margin: 0 auto; border-radius: 0; }
.nl-art .article-body { max-width: 760px; font-weight: 300; }
.nl-art .article-back { display: block; width: max-content; margin: clamp(40px, 5vw, 64px) auto 0; font-family: var(--font-sans); font-size: var(--fs-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--alpine); border-bottom: 1px solid var(--alpine); padding-bottom: 3px; text-decoration: none; }

/* article typography: headings sized for reading, not for page titles */
.nl-art .article-body h2 { margin: 2.6rem 0 1rem; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.2; font-weight: 400; }
.nl-art .article-body h2:first-child { margin-top: 0; }
.nl-art .article-body h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }

.nl .page-header, .wwd.nl .page-header { border-bottom: 1px solid var(--border); }

html[data-theme="dark"] .nl #EMAIL, html[data-theme="dark"] .nl .nl-msg { background: rgba(243,246,242,.05); }

/* ═══ Headlines & subheadlines in alpine green ═══ */
.nl .page-header h1,
.nl .newsletter-card-title,
.nl .nl-sub-title h2,
.nl-art .article-body h2,
.nl-art .article-body h3 { color: var(--alpine-deep); }
.nl .page-header h1 em, .nl .nl-sub-title h2 em { color: var(--alpine); }
html[data-theme="dark"] .nl .page-header h1,
html[data-theme="dark"] .nl .newsletter-card-title,
html[data-theme="dark"] .nl .nl-sub-title h2,
html[data-theme="dark"] .nl-art .article-body h2,
html[data-theme="dark"] .nl-art .article-body h3 { color: var(--alpine); }
html[data-theme="dark"] .nl .page-header h1 em, html[data-theme="dark"] .nl .nl-sub-title h2 em { color: var(--sage); }

/* ═══ Subscribe: full-width alpine box, everything stacked and centred ═══ */
.nl .nl-subscribe { padding: 0; }
.nl .nl-subscribe > .section-inner { max-width: none; padding-inline: 0; }
.nl .nl-container {
  max-width: none; margin: 0; padding: clamp(40px, 5vw, 72px) var(--gutter);
  background: var(--alpine-deep); border-top: 2px solid var(--sage); text-align: center;
}
html[data-theme="dark"] .nl .nl-container { background: #1c4535; }
.nl .nl-container form { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.nl .nl-container .nl-sub-title h2 { margin: 0 0 14px; color: var(--on-alpine); }
.nl .nl-container .nl-sub-title h2 em { color: var(--sage); }
.nl .nl-container .nl-sub-text p { margin: 0 auto 28px; max-width: 46ch; color: rgba(243,246,242,.86); }
.nl .nl-container .nl-row { width: 100%; flex-wrap: nowrap; gap: 6px; align-items: flex-start; justify-content: center; }
.nl .nl-container .nl-row .sib-form-block { margin: 0; padding: 0; }
.nl .nl-container .nl-field { flex: 1 1 0; min-width: 0; }
.nl .nl-container .nl-row > .sib-form-block { flex: 0 0 auto; }
.nl .nl-container #EMAIL { height: 44px; background: rgba(243,246,242,.96); color: #14231c; border-color: transparent; }
.nl .nl-container #EMAIL::placeholder { color: rgba(20,35,28,.55); }
.nl .nl-container #EMAIL:focus { outline-color: var(--sage); }
.nl .nl-container .sib-form-block__button { height: 44px; padding: 0 20px; font-size: 11px; letter-spacing: .14em; background: var(--alpine); color: var(--on-alpine); border-color: var(--sage); }
.nl .nl-container .sib-form-block__button:hover { background: transparent; color: var(--on-alpine); border-color: var(--on-alpine); }
.nl .nl-container .entry__error { color: #ffb4ab; }
@media (max-width: 560px) {
  .nl .nl-container .nl-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .nl .nl-container .nl-field { flex: 0 0 auto; }
  .nl .nl-container .nl-row > .sib-form-block { width: 100%; }
  .nl .nl-container .sib-form-block__button { width: 100%; }
}

/* ═══ Alpine green boxes: callouts and tables inside articles ═══ */
.nl-art { --nl-box: var(--alpine-deep); }
html[data-theme="dark"] .nl-art { --nl-box: #1c4535; }

.nl-art .article-callout {
  background: var(--nl-box); border: 0; border-top: 2px solid var(--sage); border-radius: 0;
  padding: 28px 32px; margin: 2rem 0; color: var(--on-alpine);
}
.nl-art .article-callout-label {
  margin-bottom: 12px; font-family: var(--font-sans); font-size: var(--fs-label);
  letter-spacing: .24em; text-transform: uppercase; color: var(--sage);
}
.nl-art .article-callout p { margin: 0; font-size: var(--fs-body); font-weight: 300; line-height: 1.8; color: rgba(243,246,242,.86); }
.nl-art .article-callout p + p { margin-top: .75rem; }

.nl-art .article-table-wrap { margin: 2rem 0; background: var(--nl-box); border-top: 2px solid var(--sage); }
.nl-art .article-body table { border: 0; background: transparent; font-size: var(--fs-small); }
.nl-art .article-body th {
  background: rgba(243,246,242,.1); border: 0; padding: 16px 20px;
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 400;
  letter-spacing: .2em; color: var(--sage);
}
.nl-art .article-body td {
  padding: 18px 20px; border-bottom: 1px solid rgba(243,246,242,.16);
  font-weight: 300; line-height: 1.7; color: rgba(243,246,242,.84);
}
.nl-art .article-body td:first-child { color: var(--on-alpine); font-weight: 400; }
.nl-art .article-body tr:last-child td { border-bottom: 0; }
.nl-art .article-callout strong, .nl-art .article-table-wrap strong { color: var(--on-alpine); font-weight: 500; }
.nl-art .article-callout a, .nl-art .article-table-wrap a { color: var(--sage); }

/* ═══ Blurry green atmosphere: same per-section recipe as the front page ═══
   (the page header's wash comes from what-we-do.css) */
.nl main > .nl-articles {
  background-image:
    radial-gradient(55% 70% at 20% 25%, rgba(167,196,181,.756) 0%, rgba(167,196,181,.288) 45%, rgba(167,196,181,0) 82%),
    radial-gradient(55% 65% at 80% 80%, rgba(44,90,71,.234) 0%, rgba(44,90,71,.090) 45%, rgba(44,90,71,0) 82%);
}
.nl main > .nl-subscribe {
  background-image:
    radial-gradient(50% 65% at 80% 25%, rgba(167,196,181,.55) 0%, rgba(167,196,181,.2) 45%, rgba(167,196,181,0) 82%),
    radial-gradient(55% 70% at 20% 75%, rgba(44,90,71,.252) 0%, rgba(44,90,71,.099) 45%, rgba(44,90,71,0) 82%);
}
html[data-theme="dark"] .nl main > .nl-articles {
  background-image:
    radial-gradient(55% 70% at 20% 25%, rgba(95,154,128,.17) 0%, rgba(95,154,128,.07) 45%, rgba(95,154,128,0) 82%),
    radial-gradient(55% 65% at 80% 80%, rgba(63,130,98,.17) 0%, rgba(63,130,98,.07) 45%, rgba(63,130,98,0) 82%);
}
html[data-theme="dark"] .nl main > .nl-subscribe {
  background-image:
    radial-gradient(50% 65% at 80% 25%, rgba(95,154,128,.13) 0%, rgba(95,154,128,.05) 45%, rgba(95,154,128,0) 82%),
    radial-gradient(55% 70% at 20% 75%, rgba(63,130,98,.18) 0%, rgba(63,130,98,.07) 45%, rgba(63,130,98,0) 82%);
}

/* ═══ Article pages keep the continuous page wash ═══ */
html body.nl-art.nl-art {
  background-color: #eef3ee; background-attachment: fixed; background-repeat: no-repeat;
  background-image:
    radial-gradient(65% 60% at 15% 12%, rgba(143,184,162,0.32) 0%, rgba(143,184,162,0.144) 50%, rgba(143,184,162,0) 100%),
    radial-gradient(65% 60% at 85% 22%, rgba(143,184,162,0.32) 0%, rgba(143,184,162,0.144) 50%, rgba(143,184,162,0) 100%),
    radial-gradient(65% 60% at 10% 60%, rgba(143,184,162,0.32) 0%, rgba(143,184,162,0.144) 50%, rgba(143,184,162,0) 100%),
    radial-gradient(65% 60% at 90% 70%, rgba(143,184,162,0.32) 0%, rgba(143,184,162,0.144) 50%, rgba(143,184,162,0) 100%),
    radial-gradient(65% 60% at 30% 95%, rgba(143,184,162,0.32) 0%, rgba(143,184,162,0.144) 50%, rgba(143,184,162,0) 100%),
    radial-gradient(65% 60% at 70% 100%, rgba(143,184,162,0.32) 0%, rgba(143,184,162,0.144) 50%, rgba(143,184,162,0) 100%),
    radial-gradient(65% 60% at 50% 45%, rgba(143,184,162,0.32) 0%, rgba(143,184,162,0.144) 50%, rgba(143,184,162,0) 100%);
}
html[data-theme="dark"] body.nl-art.nl-art {
  background-color: #0e1a14;
  background-image:
    radial-gradient(65% 60% at 15% 12%, rgba(95,154,128,0.12) 0%, rgba(95,154,128,0.054) 50%, rgba(95,154,128,0) 100%),
    radial-gradient(65% 60% at 85% 22%, rgba(95,154,128,0.12) 0%, rgba(95,154,128,0.054) 50%, rgba(95,154,128,0) 100%),
    radial-gradient(65% 60% at 10% 60%, rgba(95,154,128,0.12) 0%, rgba(95,154,128,0.054) 50%, rgba(95,154,128,0) 100%),
    radial-gradient(65% 60% at 90% 70%, rgba(95,154,128,0.12) 0%, rgba(95,154,128,0.054) 50%, rgba(95,154,128,0) 100%),
    radial-gradient(65% 60% at 30% 95%, rgba(95,154,128,0.12) 0%, rgba(95,154,128,0.054) 50%, rgba(95,154,128,0) 100%),
    radial-gradient(65% 60% at 70% 100%, rgba(95,154,128,0.12) 0%, rgba(95,154,128,0.054) 50%, rgba(95,154,128,0) 100%),
    radial-gradient(65% 60% at 50% 45%, rgba(95,154,128,0.12) 0%, rgba(95,154,128,0.054) 50%, rgba(95,154,128,0) 100%);
}
.nl-art .page-header, .wwd.nl-art .page-header { border-bottom: 0; }
.nl-art main > section,
html[data-theme="dark"] .nl-art main > section { background: none !important; }
