/* ==========================================================================
   Newsroom article template (measured on live nafas.com/newsroom/<slug>; Framer CMS page framer-LTQ02, content node
   framer-wjij4t). The three articles share this file; each has its own partial in pages/newsroom-<key>/partials.
   Layout breakpoints: desktop >= 1440, tablet 810-1439.98, phone <= 809.98.
   Deviations from live (Danny, 2026-10-30; tools/AGENT-BRIEF-NEWSROOM-ARTICLES.md): type on the site's SF Pro scale
   (same as /business, business pricing, EcoFlow, How it works), greys #616161, no italics, no Inter; prev/next links
   visible (#000) and laid out inside the content column. Values per breakpoint (desktop / tablet / phone):
     title 52 / 42 / 28, 1.15, Display Regular, #000      lead 24 / 22 / 18, 1.3, Display Regular, #616161 (live: green)
     section heading 28 / 24 / 20, 1.25, Display Medium   body + quote 20 / 18 / 16, 1.5, Display Regular (quote #616161)
     byline 18 / 16 / 14, 1.3, SF Pro Text Medium, #616161   prev/next 21 / 18 / 15, 1.25, Display Regular, #000
   - Live draws the OLD legacy header (80px, in flow) and footer. We use our nav and footer components (Danny,
     2026-10-29): our nav is fixed (80 / 83 tall), so the article keeps live's position from the top, 140px
     (old header 80 + 60 gap), which leaves the title 57 to 60px clear of our bar. 60px under the prev/next row
     to the footer, as live.
   - Stack (gap 60): title + byline (gap 15, 807 wide), lead (800), full-bleed banner (819 / 380 / 208 tall,
     cover, center top), body (800), an empty 74px row, prev/next row (the body column: 800 / 80% / 0 40px).
   - Tablet: the stack is 80% wide; the title box 600. Phone: title, lead and body get 0 40px padding.
   - Body rich text: paragraph spacing 20 (p, quote), 40 above headings, 0 above images; images keep their
     Framer width attribute (half the original) and aspect ratio, max-width 100%.
   - Prev/next links: live draws them white on the white page and lets the row overflow (off screen on phone). Ours:
     #000, #91c851 on hover instantly (no transition, as live), green keyboard ring. Desktop / tablet: one row inside
     the body column, previous at the left edge, next at the right edge, each at most 50% minus half the 32px gap,
     wrapping. Phone: stacked, 16px apart, previous left-aligned, next right-aligned. A lone link keeps its side.
   - No load or scroll reveals on live (every node is at opacity 1 from first paint).
   - white-space: pre-wrap / pre sits on the text elements (h1, h2, p), never on their wrappers (the markup
     indentation would become blank lines).
   ========================================================================== */


/* ---------- base (desktop >= 1440) ---------- */
.nf-news-art {
  position: relative; width: 100%; overflow: hidden; background-color: var(--nf-white);
  display: flex; flex-direction: column; align-items: center; padding: 140px 0 60px;
  --nf-news-art-disp: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  --nf-news-art-disp-med: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif;
  --nf-news-art-label: "SFProText-Medium", "SF Pro Text", "Nafas Inter", sans-serif;
}
.nf-news-art__inner {
  position: relative; width: 100%; max-width: 100%; display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center; gap: 60px;
}

/* title + byline */
.nf-news-art__head {
  position: relative; flex: 0 0 auto; width: 807px; max-width: 100%; display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center; gap: 15px;
}
.nf-news-art__title-box, .nf-news-art__lead-box, .nf-news-art__text {
  position: relative; flex: 0 0 auto; width: 100%; max-width: 800px; word-break: break-word; overflow-wrap: break-word;
}
.nf-news-art__author-box {
  position: relative; flex: 0 0 auto; width: 100%; max-width: 600px; word-break: break-word; overflow-wrap: break-word;
}
.nf-news-art__title {
  margin: 0; font-family: var(--nf-news-art-disp); font-weight: 400; font-style: normal;
  font-size: 52px; line-height: 1.15; letter-spacing: normal; text-align: center; color: var(--nf-black); white-space: pre-wrap;
  text-wrap: balance;
}
.nf-news-art__author {
  margin: 0; font-family: var(--nf-news-art-label); font-weight: 500;
  font-size: 18px; line-height: 1.3; letter-spacing: normal; text-align: center; color: var(--nf-grey-61); white-space: pre-wrap;
}

/* lead (green on live; #616161 here for contrast) */
.nf-news-art__lead-wrap {
  position: relative; flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 10px; overflow: hidden;
}
.nf-news-art__lead {
  margin: 0; font-family: var(--nf-news-art-disp); font-weight: 400;
  font-size: 24px; line-height: 1.3; letter-spacing: normal;
  text-align: start; color: var(--nf-grey-61); white-space: pre-wrap; text-wrap: pretty;
}

/* banner */
.nf-news-art__banner { position: relative; flex: 0 0 auto; width: 100%; height: 819px; }
.nf-news-art__banner-img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
}

/* body rich text */
.nf-news-art__body {
  position: relative; flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 10px; overflow: hidden;
}
.nf-news-art__h {
  margin: 40px 0 0; font-family: var(--nf-news-art-disp-med); font-weight: 500;
  font-size: 28px; line-height: 1.25; letter-spacing: normal;
  text-align: start; color: var(--nf-black); white-space: pre-wrap; text-wrap: balance;
}
/* the live markup wraps every heading in <strong>: the heading's own Medium 500 is the emphasis, so the strong adds none */
.nf-news-art__h strong { font: inherit; -webkit-text-stroke: 0; }
.nf-news-art__p {
  margin: 20px 0 0; font-family: var(--nf-news-art-disp); font-weight: 400;
  font-size: 20px; line-height: 1.5; letter-spacing: normal; text-align: left; color: var(--nf-black); white-space: pre-wrap;
  text-wrap: pretty;
}
/* bold words in body text (Faizal): the site's own bold, css/base.css strong */
.nf-news-art__text > :first-child { margin-top: 0; }
.nf-news-art__quote { position: relative; margin: 20px 0 0; padding: 0 0 0 22px; }
.nf-news-art__quote::before {
  content: " "; position: absolute; top: 0; left: 0; display: block; width: 2px; height: 100%;
  border-radius: 1px; background-color: rgb(221, 221, 221);
}
.nf-news-art__quote-p {
  margin: 0; font-family: var(--nf-news-art-disp); font-style: normal; font-weight: 400;
  font-size: 20px; line-height: 1.5; letter-spacing: normal; text-align: left; color: var(--nf-grey-61); white-space: pre-wrap;
  text-wrap: pretty;
}
.nf-news-art__quote-p + .nf-news-art__quote-p { margin-top: 20px; }
.nf-news-art__img { display: block; margin: 0; max-width: 100%; height: auto; object-fit: fill; }

/* empty row (Framer framer-1msvj7b) */
.nf-news-art__gap { position: relative; flex: 0 0 auto; width: 100%; min-height: 74px; padding: 5px; }

/* prev / next: inside the body column (same width as .nf-news-art__text) */
.nf-news-art__pn {
  position: relative; flex: 0 0 auto; width: 100%; max-width: 800px; display: flex; flex-direction: row;
  justify-content: space-between; align-items: flex-start; gap: 32px;
}
.nf-news-art__pn-item { position: relative; flex: 0 1 auto; min-width: 0; max-width: calc(50% - 16px); }
.nf-news-art__pn-item--next { margin-left: auto; }
.nf-news-art__pn-item--next .nf-news-art__pn-p { text-align: right; }
.nf-news-art__pn-p {
  margin: 0; font-family: var(--nf-news-art-disp); font-weight: 400;
  font-size: 21px; line-height: 1.25; letter-spacing: normal; text-align: left; color: var(--nf-black);
  white-space: normal; overflow-wrap: break-word; text-wrap: balance;
}
.nf-news-art__pn-link { color: var(--nf-black); text-decoration: none; cursor: pointer; font: inherit; }

/* ---------- tablet (810 - 1439.98) ---------- */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-news-art__inner { max-width: 80%; }
  .nf-news-art__title-box { max-width: 600px; }
  .nf-news-art__title { font-size: 42px; }
  .nf-news-art__author { font-size: 16px; }
  .nf-news-art__lead { font-size: 22px; }
  .nf-news-art__h { font-size: 24px; }
  .nf-news-art__p, .nf-news-art__quote-p { font-size: 18px; }
  .nf-news-art__pn-p { font-size: 18px; }
  .nf-news-art__banner { height: 380px; }
}

/* ---------- phone (<= 809.98) ---------- */
@media (max-width: 809.98px) {
  .nf-news-art__head, .nf-news-art__lead-wrap { padding: 0 40px; }
  .nf-news-art__title { font-size: 28px; }
  .nf-news-art__author { font-size: 14px; }
  .nf-news-art__lead { font-size: 18px; }
  .nf-news-art__h { font-size: 20px; margin-top: 32px; }
  .nf-news-art__p, .nf-news-art__quote-p { font-size: 16px; }
  .nf-news-art__p { margin-top: 16px; }
  .nf-news-art__quote { margin-top: 16px; padding-left: 18px; }
  .nf-news-art__quote-p + .nf-news-art__quote-p { margin-top: 16px; }
  .nf-news-art__banner { height: 208px; }
  .nf-news-art__body { flex-direction: row; padding: 0 40px; }
  .nf-news-art__text { flex: 1 0 0px; width: 1px; }
  .nf-news-art__pn { flex-direction: column; align-items: stretch; gap: 16px; padding: 0 40px; }
  .nf-news-art__pn-item { max-width: 100%; }
  .nf-news-art__pn-item--next { margin-left: 0; }
  .nf-news-art__pn-p { font-size: 15px; }
}

/* ---------- hover (pointer devices only) ---------- */
@media (hover: hover) {
  .nf-news-art__pn-link:hover { color: var(--nf-green); }
}

/* ---------- keyboard focus (not on live: Framer draws no ring; same green ring as our nav) ---------- */
.nf-news-art__pn-link:focus-visible { outline: 2px solid var(--nf-green); outline-offset: 2px; }

/* End of article (Danny, 2026-10-30): live's empty trailing paragraph and 74px empty row (with the 60px row gap on both
   sides) left ~230px of blank space before prev/next. The empty paragraph is removed from the partials and the empty row
   is hidden; prev/next sits one row gap (60px) under the text, under a thin divider in the text column, 32px above the
   links (24px on phone). */
.nf-news-art__gap { display: none; }
.nf-news-art__pn { position: relative; padding-top: 32px; }
.nf-news-art__pn::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid #e5e5e5; }
@media (max-width: 809.98px) {
  .nf-news-art__pn { padding-top: 24px; }
  .nf-news-art__pn::before { left: 40px; right: 40px; }
}
