:root {
  --nf-green: #2e8f5c;
  --nf-green-dark: #256e48;
  --nf-red: #d1352b;
  --nf-red-bg: #fbecea;
  --nf-red-line: #f1c9c5;
  --nf-ink: #212121;
  --nf-body: #565656;
  --nf-h3: #333333;
  --nf-muted: #767676;
  --nf-line: #f1f1f1;
  --nf-bg-page: #f1f1f1;
  --nf-bg-panel: #f9f9f9;
  --nf-white: #fff;
  --nf-footer: #212121;
  --nf-footer-2: #333333;
  --nf-text: var(--nf-ink);
  --nf-panel-hover: #fff;
  --nf-ph-bg: #e8e8e8;
  --nf-cat-icon-bg: #e5f3ea;
  --nf-ad-border: #ddd;
  --nf-ad-bg: #fafafa;
  --nf-ad-text: #bbb;
  --nf-dot-border: #ccc;
  /* Key Points / summary card on the article page. Its own green-tinted pair
     rather than the generic panel tokens: --nf-bg-panel is #f9f9f9 on a #fff
     page, which is too close to read as a distinct box, so the summary used
     to visually merge into the article text around it. Mirrors the
     --nf-red-bg/--nf-red-line pairing the Breaking widget uses. */
  --nf-ai-bg: #f2f9f5;
  --nf-ai-line: #cbe5d7;
  /* Label colour is its own token because --nf-green-dark is only legible on
     a light fill: on the dark-mode card it lands at 2.47:1. */
  --nf-ai-label: #256e48;
  /* Standfirst/lead card. Neutral rather than the summary card's green tint,
     so when an article has both they read as two different things. */
  --nf-lead-bg: #f6f8f7;
  --nf-lead-line: #dde3e0;
}

/* ---------- Dark mode ---------- */
:root[data-theme="dark"] {
  --nf-body: #b7b7b7;
  --nf-muted: #8f8f8f;
  --nf-line: #303030;
  --nf-bg-page: #121212;
  --nf-white: #1a1a1a;
  --nf-bg-panel: #232323;
  --nf-panel-hover: #2b2b2b;
  --nf-text: #ececec;
  --nf-red-bg: rgba(209, 53, 43, .14);
  --nf-red-line: rgba(209, 53, 43, .35);
  /* Same job as the light-mode pair, as translucent green over the dark
     panel so the card lifts off the page rather than punching a light hole. */
  --nf-ai-bg: rgba(46, 143, 92, .12);
  --nf-ai-line: rgba(46, 143, 92, .32);
  --nf-ai-label: #6fcf97; /* 8.0:1 on the dark card; the light-mode green is 2.5:1 there */
  --nf-lead-bg: rgba(255, 255, 255, .045);
  --nf-lead-line: #343434;
  --nf-ph-bg: #2a2a2a;
  --nf-cat-icon-bg: rgba(46, 143, 92, .18);
  --nf-ad-border: #3a3a3a;
  --nf-ad-bg: #1c1c1c;
  --nf-ad-text: #777;
  --nf-dot-border: #555;
}

* { box-sizing: border-box; }

body.nf-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--nf-bg-page);
  font-family: "Roboto Condensed", sans-serif;
  color: var(--nf-body);
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
}

.nf-body a { text-decoration: none; color: inherit; }
.nf-body img { max-width: 100%; display: block; }
.nf-body a:focus-visible,
.nf-body button:focus-visible,
.nf-body input:focus-visible,
.nf-body select:focus-visible,
.nf-body textarea:focus-visible {
  outline: 3px solid var(--nf-green);
  outline-offset: 2px;
  border-radius: 2px;
}
.nf-footer a:focus-visible,
.nf-nav-more-panel a:focus-visible,
.nf-subscribe a:focus-visible,
.nf-subscribe button:focus-visible,
.nf-subscribe input:focus-visible,
.nf-section-dark a:focus-visible,
.nf-hero a:focus-visible,
.nf-hero-dots button:focus-visible {
  outline-color: #fff;
}

.nf-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--nf-green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.nf-skip-link:focus {
  left: 8px;
  top: 8px;
}
.nf-body h1, .nf-body h2, .nf-body h3, .nf-body h4 {
  font-family: "Roboto Condensed", sans-serif;
  color: var(--nf-text);
  margin: 0;
}

.nf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.nf-page {
  flex: 1;
  width: 100%;
  background: var(--nf-white);
  max-width: 1230px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(0,0,0,.06);
}

/* ---------- Header ---------- */
.nf-header {
  background: var(--nf-white);
  border-bottom: 1px solid var(--nf-line);
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow .2s ease;
}
.nf-header.is-stuck { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.nf-header-inner { display: flex; align-items: stretch; }

.nf-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 22px 8px 0;
  margin-right: 20px;
  border-right: 1px solid var(--nf-line);
}
.nf-brand-logo { height: 48px; width: auto; }
.nf-body .nf-brand-logo--dark { display: none; }
:root[data-theme="dark"] .nf-brand-logo--light { display: none; }
:root[data-theme="dark"] .nf-body .nf-brand-logo--dark { display: block; }

.nf-header-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.nf-util-row {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--nf-muted);
  border-bottom: 1px solid var(--nf-line);
  padding-left: 11px;
}
.nf-topbar-date { text-transform: uppercase; letter-spacing: .5px; }
.nf-weather { display: flex; align-items: center; gap: 5px; color: var(--nf-muted); font-size: 11px; }
.nf-weather-icon { font-size: 12px; }
#nf-weather-text { transition: opacity .3s ease; }

.nf-nav-row { height: 46px; display: flex; align-items: center; justify-content: space-between; }
.nf-nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.nf-nav-list > li { position: relative; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.nf-nav-list > li > a, .nf-nav-list > li > button {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: var(--nf-text);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nf-nav-list > li.active > a,
.nf-nav-list > li:hover > a,
.nf-nav-list > li:hover > button {
  color: var(--nf-green);
}
.nf-nav-more { position: relative; }
.nf-nav-more-panel {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--nf-ink);
  z-index: 40;
  padding: 6px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.nf-nav-more:hover .nf-nav-more-panel,
.nf-nav-more-panel.open { display: block; }
.nf-nav-more-panel a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: #f3f3f3;
}
.nf-nav-more-panel a:hover { color: var(--nf-green); background: #2b2b2b; }
.nf-nav-more-panel--wide { columns: 2; column-gap: 0; min-width: 340px; }

.nf-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; flex-shrink: 0; }
.nf-search-box { position: relative; display: flex; align-items: center; }
.nf-search-input {
  width: 0;
  /* Matches the toggle buttons' 32px so the input and the search button read
     as one joined control rather than two boxes of slightly different height. */
  height: 32px;
  opacity: 0;
  padding: 6px 0;
  border: 1px solid var(--nf-line);
  border-right: none;
  font-size: 13px;
  color: var(--nf-body);
  font-family: inherit;
  transition: width .25s ease, opacity .25s ease, padding .25s ease;
}
.nf-search-box.open .nf-search-input { width: 170px; opacity: 1; padding: 6px 10px; }

/* Search and theme toggles share one rule so they can't drift apart. They
   previously differed twice over: only .nf-theme-toggle set line-height: 1
   (the search button inherited the body's 24px and so was visibly taller),
   and the two were sized by their glyph, which is unreliable here because the
   glyphs don't share a presentation — 🔍 and 🌙 default to emoji presentation
   and render large, while a bare ☀ (U+2600) defaults to *text* presentation
   and renders small and thin. A fixed square with centred content makes the
   box independent of whatever glyph is inside; the markup pairs this with a
   U+FE0F variation selector on the sun so all three render as emoji at a
   matching scale (see nf_nav() and the theme toggle in render.php). */
.nf-search-toggle,
.nf-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: 1px solid var(--nf-line);
  color: var(--nf-body);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.nf-search-toggle:hover,
.nf-theme-toggle:hover { color: var(--nf-green); border-color: var(--nf-green); }

.nf-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--nf-text);
  cursor: pointer;
  padding: 4px 6px;
}

/* ---------- Hero slider ---------- */
.nf-hero {
  position: relative;
  height: 420px;
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  touch-action: pan-y;
}
.nf-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.nf-hero-slide.is-active { opacity: 1; z-index: 1; }
.nf-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nf-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 65%, transparent 100%);
  padding: 60px 30px 22px;
}
.nf-hero-caption .nf-category { margin-bottom: 12px; }
.nf-hero-caption h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-transform: none;
  line-height: 1.25;
  margin-bottom: 8px;
}
.nf-hero-caption h2 a { color: #fff; }
.nf-hero-caption h2 a:hover { color: #b7e4c7; }
.nf-hero-caption p {
  color: #eee;
  font-size: 14px;
  max-width: 640px;
  margin: 0;
}
.nf-hero-dots {
  position: absolute;
  right: 20px; bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.nf-hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nf-hero-dots button.is-active { background: var(--nf-green); border-color: var(--nf-green); }

/* ---------- Category badge ---------- */
a.nf-category {
  display: inline-block;
  background: var(--nf-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 13px;
  line-height: 19px;
  border-radius: 2px;
  transition: opacity .15s ease;
}
a.nf-category:hover { opacity: .85; }
a.nf-category.nf-category--district { background: var(--nf-ink); }

a.nf-category--default   { background: var(--nf-green-dark); }
a.nf-category--alert     { background: #c62b21; }
a.nf-category--civic     { background: #2f5d8c; }
a.nf-category--economy   { background: #9c5e00; }
a.nf-category--culture   { background: #8a4baf; }
a.nf-category--knowledge { background: #17706e; }

/* ---------- Section titles ---------- */
.nf-title-section {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
  padding-left: 14px;
  border-bottom: 1px solid var(--nf-line);
}
.nf-title-section::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  bottom: 14px;
  width: 4px;
  background: var(--nf-green);
  border-radius: 2px;
}
.nf-title-section h1, .nf-title-section h2 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.nf-title-section--center { text-align: center; padding-left: 0; }
.nf-title-section--center::before { display: none; }

/* ---------- Layout ---------- */
.nf-content { padding-top: 16px; padding-bottom: 40px; }
.nf-row { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.nf-content > *:last-child { margin-bottom: 0; }
.nf-col-main { flex: 1 1 65%; min-width: 0; }
.nf-col-side { flex: 1 1 30%; min-width: 260px; }

.nf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 30px;
}
.nf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 30px;
}

/* ---------- Missing-thumbnail placeholder ---------- */
.nf-ph { position: relative; display: block; background: var(--nf-ph-bg); overflow: hidden; }
.nf-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("/assets/logo.png") no-repeat center center;
  background-size: 55% auto;
  opacity: .16;
}
:root[data-theme="dark"] .nf-ph::before {
  background-image: url("/assets/logo.footer.png");
  opacity: .3;
}

/* ---------- Standard post card ---------- */
.nf-post { margin-bottom: 8px; min-width: 0; }
.nf-post-image { position: relative; margin-bottom: 14px; overflow: hidden; border-radius: 3px; background: #eee; }
.nf-post-image img, .nf-post-image .nf-ph { width: 100%; height: 190px; object-fit: cover; transition: transform .35s ease; }
.nf-post:hover .nf-post-image img, .nf-post:hover .nf-post-image .nf-ph { transform: scale(1.05); }
.nf-post-image .nf-category { position: absolute; left: 0; bottom: 0; border-radius: 0; }
.nf-post h2, .nf-post h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 27px;
  text-transform: none;
  margin-bottom: 8px;
  transition: color .15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nf-post h2 a:hover, .nf-post h3 a:hover { color: var(--nf-green); }
.nf-post p {
  font-size: 14px; line-height: 21px; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nf-post-tags {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
  gap: 10px;
  overflow: hidden;
}
.nf-post-tags li { font-size: 11px; color: var(--nf-muted); text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.nf-post-tags li:last-child { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sidebar widgets ---------- */
.nf-widget { margin-bottom: 34px; }
.nf-widget h1, .nf-widget h2 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--nf-text);
}
.nf-widget--breaking {
  background: var(--nf-red-bg);
  border: 1px solid var(--nf-red-line);
  border-left: 4px solid var(--nf-red);
  border-radius: 3px;
  padding: 26px 18px;
}
.nf-widget--breaking h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nf-red);
  border-bottom-color: var(--nf-red-line);
}
.nf-breaking-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--nf-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 9px 4px 7px;
  border-radius: 20px;
}
.nf-breaking-live::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  animation: nf-breaking-pulse 1.6s ease-in-out infinite;
}
@keyframes nf-breaking-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
}
.nf-widget--breaking .nf-list-news > li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 -8px;
  padding: 12px 8px;
  border-radius: 6px;
  border-bottom: 1px solid var(--nf-red-line);
  transition: background .15s ease;
}
.nf-widget--breaking .nf-list-news > li:last-child { border-bottom: none; }
.nf-widget--breaking .nf-list-news > li:hover { background: rgba(209,53,43,.08); }
.nf-widget--breaking .nf-list-news > li > div { min-width: 0; }
.nf-widget--breaking .nf-list-news a:hover { color: var(--nf-red); }
.nf-widget--breaking .nf-list-news h3 {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nf-breaking-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--nf-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nf-list-news { list-style: none; margin: 0; padding: 0; }
.nf-list-news > li {
  padding: 12px 0;
}
.nf-list-news > li:first-child { padding-top: 0; }
.nf-list-news > li:last-child { padding-bottom: 0; }
.nf-list-news h2, .nf-list-news h3 {
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  line-height: 19px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nf-list-news a:hover { color: var(--nf-green); }

.nf-small-posts { list-style: none; margin: 0; padding: 0; }
.nf-small-posts > li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}
.nf-small-posts li > div { min-width: 0; flex: 1 1 auto; }
.nf-small-posts li > a { flex-shrink: 0; } /* the real flex item — see .nf-article-post > a for why */
.nf-small-posts > li:first-child { padding-top: 0; }
.nf-small-posts > li:last-child { padding-bottom: 0; border-bottom: none; }
.nf-small-posts > li { border-bottom: 1px solid var(--nf-line); }
.nf-small-posts img, .nf-small-posts .nf-ph { width: 72px; height: 60px; object-fit: cover; }
.nf-small-posts h2, .nf-small-posts h3 {
  font-size: 13.5px;
  font-weight: 400;
  text-transform: none;
  line-height: 18px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nf-small-posts a:hover { color: var(--nf-green); }

/* ---------- Categories widget (icon tiles) ---------- */
.nf-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nf-cat-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--nf-bg-panel);
  border: 1px solid var(--nf-line);
  border-radius: 6px;
  min-width: 0;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nf-cat-tile:hover {
  background: var(--nf-panel-hover);
  border-color: var(--nf-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.nf-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--nf-cat-icon-bg);
  font-size: 15px;
}
.nf-cat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: var(--nf-text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-subscribe {
  background: var(--nf-ink);
  color: #eee;
  padding: 22px;
}
.nf-subscribe h1, .nf-subscribe h2 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.25);
}
.nf-subscribe form { display: flex; margin-bottom: 12px; }
.nf-subscribe input {
  flex: 1;
  font-family: inherit;
  padding: 10px 12px;
  border: none;
  font-size: 13px;
}
.nf-subscribe button {
  border: none;
  background: var(--nf-green);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
}
.nf-subscribe p { font-size: 12.5px; color: #bbb; margin: 0; }

.nf-ad-slot {
  border: 1px dashed var(--nf-ad-border);
  background: var(--nf-ad-bg);
  color: var(--nf-ad-text);
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 40px 10px;
  margin-bottom: 34px;
}

/* ---------- Dark section band ---------- */
.nf-section-dark-breakout {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.nf-section-dark {
  background: var(--nf-ink);
  max-width: 1230px;
  margin: 0 auto 40px;
  padding: 26px 0;
}
.nf-section-dark-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}
.nf-section-dark .nf-title-section { border-bottom-color: rgba(255, 255, 255, .15); }
.nf-section-dark .nf-title-section h1 { color: #fff; }
.nf-section-dark .nf-post h3 a { color: #fff; }
.nf-section-dark .nf-post h3 a:hover { color: var(--nf-green); }
.nf-section-dark .nf-post p { color: #b3b3b3; }
.nf-section-dark .nf-post-tags li { color: #8f8f8f; }
.nf-section-dark .nf-scroll-dots { margin-bottom: 0; }

/* ---------- Latest News auto-slider (owl-carousel stand-in) ---------- */
.nf-latest-slider { overflow: hidden; }
.nf-latest-track {
  display: flex;
  gap: 20px;
  transition: transform .5s ease;
  touch-action: pan-y;
}
.nf-latest-track .nf-post { flex: 0 0 calc(25% - 15px); min-width: 0; }
.nf-latest-track .nf-post-image img, .nf-latest-track .nf-post-image .nf-ph { height: 160px; }
.nf-scroll-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; }
.nf-scroll-dots span { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--nf-dot-border); cursor: pointer; }
.nf-scroll-dots span.is-active { background: var(--nf-green); border-color: var(--nf-green); }

/* ---------- Article-post (image-left row) ---------- */
.nf-article-post {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--nf-line);
}
.nf-article-post > div { min-width: 0; }
.nf-article-post > a { flex-shrink: 0; }
.nf-article-post:first-child { padding-top: 0; }
.nf-article-post:last-child { border-bottom: none; }
.nf-article-post img, .nf-article-post .nf-ph { width: 200px; height: 130px; object-fit: cover; border-radius: 3px; }
.nf-article-post h2, .nf-article-post h3 { font-size: 18px; font-weight: 600; text-transform: none; margin-bottom: 8px; }
.nf-article-post h2 a:hover, .nf-article-post h3 a:hover { color: var(--nf-green); }
.nf-article-post p { font-size: 13.5px; margin: 0; }

.nf-more-link { text-align: center; margin-top: 4px; padding-top: 22px; }
.nf-more-link a {
  display: inline-block;
  padding: 12px 34px;
  background: var(--nf-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(46,143,92,.25);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nf-more-link a:hover {
  background: var(--nf-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(46,143,92,.35);
}

/* ---------- Listing scroll loader ---------- */
/* Sits under the listing grid on /latest, /category/*, /district/* and search.
   Reuses the .nf-more-link button look so it reads as part of the same design
   rather than a new control. The button stays visible (and clickable) even
   with the scroll observer active — it's the no-JS fallback and the retry
   path after a failed fetch. */
.nf-load-more {
  text-align: center;
  margin-top: 8px;
  padding-top: 26px;
  min-height: 74px; /* reserve the row so appending cards doesn't jump the page */
}
.nf-load-more-btn {
  display: inline-block;
  padding: 12px 34px;
  background: var(--nf-green);
  color: #fff;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(46,143,92,.25);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.nf-load-more-btn:hover {
  background: var(--nf-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(46,143,92,.35);
}
/* While a batch is in flight the button is dimmed rather than removed, so the
   layout doesn't shift and the reader can see something is happening. */
.nf-load-more.is-loading .nf-load-more-btn {
  opacity: .55;
  pointer-events: none;
  transform: none;
}
.nf-load-status {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--nf-muted);
  min-height: 18px;
}
.nf-load-end {
  margin: 0;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--nf-muted);
}

/* ---------- Thumb grid (2x2) ---------- */
.nf-thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}
.nf-thumb-post { min-width: 0; }
.nf-thumb-post img, .nf-thumb-post .nf-ph { width: 100%; height: 90px; object-fit: cover; margin-bottom: 8px; }
.nf-thumb-post h4 {
  font-size: 13px; font-weight: 400; line-height: 17px; margin: 0 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nf-thumb-post a:hover { color: var(--nf-green); }

/* ---------- Combined section (featured + 2x2 thumbs) ---------- */
.nf-combined { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

/* ---------- Video-style section (main + list) ---------- */
.nf-split { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.nf-video-links { list-style: none; margin: 0; padding: 0; min-width: 0; } /* grid item of .nf-split */
/* `> li` (direct child), not `li` — each row's meta line is itself a
   <ul class="nf-post-tags"><li>…</li></ul> (see nf_meta() in render.php), and
   a bare `li` descendant selector was reaching into that nested list too. Its
   first <li> ("1d ago") isn't :last-child of ITS OWN parent, so it kept a
   border-bottom the design never intended — a short stray line sitting a few
   pixels above each row's real border, reading as the border "splitting into
   two lines". .nf-small-posts (the near-identical sidebar widget) already
   scopes with `> li` for the same reason — this block just missed it. */
.nf-video-links > li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--nf-line);
}
.nf-video-links li > div { min-width: 0; }
.nf-video-links li > a { flex-shrink: 0; } /* the real flex item — see .nf-article-post > a for why */
.nf-video-links > li:first-child { padding-top: 0; }
.nf-video-links > li:last-child { border-bottom: none; }
.nf-video-links img, .nf-video-links .nf-ph { width: 90px; height: 68px; object-fit: cover; border-radius: 3px; }
.nf-video-links h3 {
  font-size: 13.5px; font-weight: 400; line-height: 18px; margin: 0 0 4px;
}
.nf-video-links a:hover { color: var(--nf-green); }

/* ---------- Admin preview banner (article.php) ---------- */
.nf-preview-banner {
  background: var(--nf-red-bg);
  border: 1px solid var(--nf-red-line);
  border-left: 4px solid var(--nf-red);
  border-radius: 3px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--nf-text);
}
.nf-preview-banner strong { text-transform: uppercase; }
.nf-preview-banner a { color: var(--nf-red); font-weight: 600; margin-left: 8px; }
.nf-preview-banner a:hover { text-decoration: underline; }

/* ---------- Empty state ---------- */
.nf-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--nf-muted);
}
.nf-empty h3 { color: var(--nf-text); margin-bottom: 8px; text-transform: uppercase; }
.nf-empty a { color: var(--nf-green); }

/* ---------- Breadcrumbs ---------- */
.nf-breadcrumbs { font-size: 12.5px; color: var(--nf-muted); margin-bottom: 20px; }
.nf-breadcrumbs a { color: var(--nf-body); }
.nf-breadcrumbs a:hover { color: var(--nf-green); }

/* ---------- Footer ---------- */
.nf-footer { background: var(--nf-ink); color: #cfcac0; padding: 3rem 0 1.25rem; margin-top: 0; }
.nf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nf-footer-logo { height: 48px; width: auto; margin-bottom: 14px; }
.nf-footer-desc { font-size: 12.5px; line-height: 1.6; color: #b3ada1; margin: 0; }
.nf-footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: .9rem; }
.nf-footer-col a { display: block; font-size: 13px; color: #b3ada1; padding: 4px 0; }
.nf-footer-col a:hover { color: var(--nf-green); }
.nf-footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 12px;
  color: #8f897d;
}
.nf-footer-bottom a { color: #8f897d; }
.nf-footer-bottom a:hover { color: var(--nf-green); }

/* ---------- Article page ---------- */
.nf-art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.nf-art-source { font-size: 12px; color: var(--nf-muted); text-transform: uppercase; letter-spacing: .3px; }
.nf-art-source .src-with-icon { display: inline-flex; align-items: center; }
.nf-art-source .src-favicon { display: inline-block; vertical-align: middle; margin-right: 5px; border-radius: 2px; }

.nf-art-headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}
.nf-art-byline { font-size: 13px; color: var(--nf-muted); margin-bottom: 22px; }
.nf-art-byline strong { color: var(--nf-text); }

.nf-art-hero { width: 100%; max-height: 460px; object-fit: cover; border-radius: 4px; margin-bottom: 22px; }

/* Standfirst / lead summary. Previously a bare green left rule with no fill,
   border or padding, so it read as loose body text rather than a summary —
   most visible on RSS-imported articles, which often have an excerpt and no
   `content` at all, leaving this as the only text block on the page. Given a
   full card treatment, kept neutral so it stays distinct from the green
   Key Points card that may follow it. */
.nf-art-excerpt {
  font-size: 17px;
  line-height: 1.75;
  color: var(--nf-text);
  font-weight: 500;
  margin: 0 0 26px;
  padding: 18px 22px;
  background: var(--nf-lead-bg);
  border: 1px solid var(--nf-lead-line);
  border-left: 4px solid var(--nf-green);
  border-radius: 4px;
}

/* ---------- Key Points summary card ---------- */
/* Sits between the standfirst excerpt and the article body, both of which are
   plain prose, so it has to read as a self-contained aside rather than more
   text. It previously used --nf-bg-panel (#f9f9f9) on a #fff page with a
   --nf-line border — roughly 2% contrast either way — so it merged into the
   copy around it. Now: a green-tinted fill and matching border, a ruled
   header, and its own footer zone for "Why it matters". */
.nf-art-ai {
  background: var(--nf-ai-bg);
  border: 1px solid var(--nf-ai-line);
  border-left: 4px solid var(--nf-green);
  border-radius: 4px;
  padding: 18px 22px 20px;
  margin: 0 0 30px;
}
/* Ruled header so the card has a clear top zone, and the eye registers a
   heading rather than a bolded first line. */
.nf-art-ai-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--nf-ai-label);
  padding-bottom: 11px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--nf-ai-line);
}
.nf-art-ai-icon { font-size: 13px; line-height: 1; }
/* Custom markers instead of default discs: the browser disc renders in the
   text colour and at a size that reads as body copy. */
.nf-art-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--nf-body);
}
.nf-art-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
}
.nf-art-bullets li:last-child { margin-bottom: 0; }
.nf-art-bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  /* Vertically centres the dot on the first line of text regardless of how
     many lines the bullet wraps to (1.65 line-height ÷ 2, minus half the dot). */
  top: calc(.825em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nf-green);
}
/* Footer zone — separated by a rule so the takeaway doesn't read as one more
   bullet run together with the list above it. */
.nf-art-why {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--nf-ai-line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--nf-body);
}
.nf-art-why strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--nf-ai-label);
}

.nf-art-body { font-size: 16px; line-height: 1.85; color: var(--nf-body); margin-bottom: 26px; }
.nf-art-body p { margin: 0 0 18px; }
.nf-art-body h2, .nf-art-body h3 { color: var(--nf-text); margin: 28px 0 14px; text-transform: none; }
.nf-art-body h2 { font-size: 22px; }
.nf-art-body h3 { font-size: 19px; }
.nf-art-body ul, .nf-art-body ol { margin: 0 0 18px; padding-left: 24px; }
.nf-art-body li { margin-bottom: 6px; }
.nf-art-body blockquote {
  margin: 0 0 18px;
  padding: 4px 18px;
  border-left: 3px solid var(--nf-green);
  color: var(--nf-text);
  font-style: italic;
}
.nf-art-body a { color: var(--nf-green); text-decoration: underline; }
.nf-art-body strong { color: var(--nf-text); }
.nf-art-body .ai-source-note { font-size: 13.5px; color: var(--nf-muted); margin-top: -4px; }

/* ---------- Article share row ---------- */
.nf-art-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--nf-bg-panel);
  border: 1px solid var(--nf-line);
  border-radius: 4px;
}
.nf-share-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--nf-muted);
}
.nf-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nf-body .nf-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--nf-text);
  background: var(--nf-white);
  border: 1px solid var(--nf-dot-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.nf-share-ico {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--nf-brand);
  transition: color .15s ease;
}
.nf-body .nf-share-btn:hover {
  color: var(--nf-brand-on);
  background: var(--nf-brand);
  border-color: var(--nf-brand);
}
.nf-body .nf-share-btn:hover .nf-share-ico { color: var(--nf-brand-on); }
.nf-share-btn--wa   { --nf-brand: #1da851; --nf-brand-on: #fff; }
.nf-share-btn--fb   { --nf-brand: #1566cf; --nf-brand-on: #fff; }
.nf-share-btn--x    { --nf-brand: #101010; --nf-brand-on: #fff; }
.nf-share-btn--copy { --nf-brand: var(--nf-green); --nf-brand-on: #fff; }
:root[data-theme="dark"] .nf-share-btn--x { --nf-brand: #ececec; --nf-brand-on: #101010; }
.nf-body .nf-share-btn--copy.is-copied,
.nf-body .nf-share-btn--copy.is-copied:hover {
  color: var(--nf-brand-on);
  background: var(--nf-brand);
  border-color: var(--nf-brand);
}
.nf-body .nf-share-btn--copy.is-copied .nf-share-ico { color: var(--nf-brand-on); }

/* ---------- Previous / next article ---------- */
.nf-art-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--nf-line);
}
.nf-prevnext-item {
  display: block;
  padding: 14px 16px;
  background: var(--nf-bg-panel);
  border: 1px solid var(--nf-line);
  border-radius: 4px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.nf-prevnext-item:hover {
  border-color: var(--nf-green);
  background: var(--nf-panel-hover);
  transform: translateY(-2px);
}
.nf-prevnext-item--next { text-align: right; grid-column: 2; }
.nf-prevnext-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--nf-green-dark);
  margin-bottom: 5px;
}
.nf-prevnext-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--nf-text);
  font-weight: 600;
}

.nf-widget-empty { font-size: 12.5px; color: var(--nf-muted); }

.nf-art-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.nf-btn-source, .nf-btn-share {
  display: inline-block;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .15s ease, transform .15s ease;
}
.nf-body .nf-btn-source { background: var(--nf-green); color: #fff; }
.nf-btn-source:hover { background: var(--nf-green-dark); }
.nf-btn-share { background: none; border: 1px solid var(--nf-line); color: var(--nf-body); }
.nf-btn-share:hover { border-color: var(--nf-green); color: var(--nf-green); }

.nf-art-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-art-tags .nf-tag {
  display: inline-block;
  border: 1px solid var(--nf-line);
  padding: 5px 13px;
  font-size: 12px;
  color: var(--nf-body);
  border-radius: 2px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.nf-art-tags .nf-tag:hover {
  border-color: var(--nf-green);
  color: var(--nf-green);
  background: var(--nf-bg-panel);
}

/* ---------- Static content page (About / Contact / etc.) ---------- */
.nf-static-page { max-width: 760px; }
.nf-static-body { font-size: 15.5px; line-height: 1.9; color: var(--nf-body); }
.nf-static-body p { margin: 0 0 16px; }
.nf-static-body strong { color: var(--nf-text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nf-nav-list > li > a, .nf-nav-list > li > button { padding: 0 8px; font-size: 12px; }
}
@media (max-width: 900px) {
  .nf-row { flex-direction: column; flex-wrap: nowrap; }
  .nf-grid-2, .nf-grid-3, .nf-combined, .nf-thumb-grid { grid-template-columns: 1fr; }
  .nf-split { grid-template-columns: 1fr; }
  .nf-footer-grid { grid-template-columns: 1fr 1fr; }
  .nf-footer-grid > div:first-child { grid-column: 1 / -1; }
  .nf-hero { height: 260px; }
  .nf-hero-caption h2 { font-size: 20px; }
  .nf-art-headline { font-size: 24px; }
  .nf-art-hero { max-height: 280px; }

  .nf-brand { padding-right: 14px; margin-right: 14px; }
  .nf-brand-logo { height: 38px; }
  .nf-hamburger { display: block; }

  .nf-nav-row { justify-content: flex-end; }
  .nf-nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--nf-white);
    position: absolute;
    top: 100%; left: 0;
    height: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
    z-index: 50;
  }
  .nf-nav-list.open { display: flex; }
  .nf-nav-list > li { display: block; width: 100%; height: auto; }
  .nf-nav-list > li > a, .nf-nav-list > li > button {
    width: 100%;
    height: auto;
    padding: 12px 16px;
    border-bottom: 1px solid var(--nf-line);
  }
  .nf-nav-more-panel { position: static; box-shadow: none; background: var(--nf-bg-panel); min-width: 0; }
  .nf-nav-more-panel a { color: var(--nf-text); }
  .nf-nav-more-panel--wide { columns: 1; min-width: 0; }

  .nf-search-box.open .nf-search-input { width: 130px; }

  .nf-latest-track .nf-post { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
  .nf-article-post { flex-direction: column; }
  .nf-article-post img, .nf-article-post .nf-ph { width: 100%; height: 180px; }

  .nf-art-prevnext { grid-template-columns: 1fr; }
  .nf-prevnext-item--next { text-align: left; grid-column: 1; }
  .nf-search-box.open .nf-search-input { width: 100px; }

  .nf-hero { height: auto; aspect-ratio: 4 / 5; }
  .nf-hero-caption { padding: 40px 16px 16px; }
  .nf-hero-caption h2 {
    font-size: 19px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .nf-hero-caption p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .nf-latest-track { gap: 0; }
  .nf-latest-track .nf-post { flex: 0 0 100%; }

  .nf-section-dark { padding: 18px 0; }
  .nf-section-dark-inner { padding: 0 12px; }

  .nf-container { padding: 0 12px; }

  .nf-util-row { flex-wrap: wrap; height: auto; row-gap: 2px; padding: 4px 0; }

  .nf-footer-grid > div:first-child { text-align: center; }
  .nf-footer-logo { height: 38px; margin-left: auto; margin-right: auto; }
  .nf-footer-bottom { justify-content: center; text-align: center; }
}