/* NJW Insights editorial layer (v98).
   Loaded only by Insights pages. Every rule is scoped to body.ed, so nothing else on the site changes.
   Uses the colour and type tokens each Insights page already defines in :root. */

/* ---------- Reading experience ---------- */
body.ed article p,
body.ed article li { font-size: 19px; line-height: 1.8; }
body.ed article p.lede { font-size: 21px; line-height: 1.7; color: var(--char); }
body.ed article h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.22; margin: clamp(44px, 6vw, 64px) 0 16px; text-wrap: balance; }
body.ed article h3 { font-size: clamp(21px, 2.4vw, 24px); line-height: 1.3; margin: 34px 0 10px; }
body.ed .masthead h1 { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.08; text-wrap: balance; }
body.ed .masthead .standfirst { max-width: 48ch; }
body.ed .byline .ed-updated { display: inline-block; margin-left: 8px; color: #C7B8DA; }
body.ed .tour-fig figcaption { font-size: 14px; line-height: 1.5; color: var(--mut); margin-top: 10px; }
/* Captions sit squarely under their photo: always centred on it, never wider than a readable line. */
body.ed .tour-fig.portrait figcaption { margin-inline: auto; max-width: 460px; text-align: center; }
body.ed .tour-fig:not(.portrait) figcaption { margin-inline: auto; max-width: 60ch; text-align: center; }

/* ---------- Pull quotes: editorial, not a callout box ---------- */
body.ed .pull {
  border: 0; padding: 0; margin: clamp(40px, 6vw, 60px) 0; background: none; box-shadow: none; border-radius: 0;
  font-family: var(--disp); font-weight: 500; font-size: clamp(23px, 3vw, 30px); line-height: 1.32;
  color: var(--navy); max-width: 32ch; text-wrap: balance;
}
body.ed .pull::before { content: ""; display: block; width: 56px; height: 3px; background: var(--bronze); margin-bottom: 18px; }
body.ed .pull p { font: inherit; color: inherit; margin: 0; max-width: none; }
body.ed .pull cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: 14px; font-weight: 600; color: var(--mut); letter-spacing: 0; }

/* ---------- "Something to consider": a quiet question, not a workbook box ---------- */
body.ed .note.consider {
  background: none; border: 0; border-left: 2px solid var(--bronze); border-radius: 0; box-shadow: none;
  padding: 2px 0 2px 22px; margin: 34px 0;
  font-family: var(--disp); font-size: 21px; line-height: 1.45; color: var(--char);
}
body.ed .note.consider strong {
  display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--mut);
  margin-bottom: 6px; letter-spacing: 0;
}

/* ---------- Organizations named in an article link to their own sites (v100) ---------- */
body.ed article a.org {
  color: inherit; text-decoration: underline; text-decoration-color: var(--bronze);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease;
}
body.ed article a.org:hover { color: var(--navy-2); text-decoration-color: currentColor; }
body.ed article a.org:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }

/* ---------- Small lists of questions or steps ---------- */
body.ed .ed-steps { margin: 18px 0 26px; }
body.ed .ed-steps li { margin-bottom: 12px; }

/* ---------- Share row ---------- */
body.ed .ed-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 44px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
body.ed .ed-share span { font-weight: 600; color: var(--char); margin-right: 4px; }
body.ed .ed-share a,
body.ed .ed-share button { appearance: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; color: var(--navy); text-decoration: none; cursor: pointer; }
body.ed .ed-share a:hover,
body.ed .ed-share button:hover { border-color: var(--navy-3); }

/* ---------- References ---------- */
body.ed .ed-refs { margin: 40px 0 0; }
body.ed .ed-refs h2 { font-size: 22px; margin: 0 0 12px; }
body.ed .ed-refs ol { counter-reset: none; padding-left: 0; margin: 0; list-style: none; }
body.ed .ed-refs li { position: relative; padding-left: 0; font-size: 15px; line-height: 1.6; color: var(--body); margin: 0 0 10px; max-width: 68ch; }
body.ed .ed-refs li::before { display: none; }
body.ed .ed-refs a { color: var(--navy-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Author block ---------- */
body.ed .founder-mark span { line-height: 1.55; }

@media (max-width: 640px) {
  body.ed article p, body.ed article li { font-size: 17.5px; line-height: 1.75; }
  body.ed article p.lede { font-size: 19px; }
  body.ed .pull { font-size: 22px; }
  body.ed .note.consider { font-size: 19px; }
}
