/*
Theme Name:   Naira & Sense
Template:     hello-elementor
Version:      1.0.0
Description:  Child theme for Naira & Sense — Nigeria's personal finance newsletter
Author:       Naira & Sense
*/

/* ─── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@400;500&family=DM+Mono:wght@400;500&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --bg:        #0d0d0b;
  --bg2:       #131310;
  --bg3:       #1a1a16;
  --text:      #f0ebe0;
  --muted:     rgba(240,235,224,0.50);
  --hint:      rgba(240,235,224,0.25);
  --border:    rgba(240,235,224,0.08);
  --border2:   rgba(240,235,224,0.15);
  --gold:      #c9a84c;
  --gold-bg:   rgba(201,168,76,0.10);
  --green:     #7ec8a0;
  --green-bg:  rgba(126,200,160,0.10);
  --red:       #e07070;
  --red-bg:    rgba(224,112,112,0.10);
  --blue-bg:   rgba(120,160,220,0.10);
  --max-w:     1200px;
  --narrow:    680px;
  --blue:      #8ab4e8;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ─── TYPOGRAPHY HELPERS ────────────────────────────────────── */
.font-serif  { font-family: 'Playfair Display', serif; }
.font-mono   { font-family: 'DM Mono', monospace; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-hint   { color: var(--hint); }

/* ─── NAV ───────────────────────────────────────────────────── */
.ns-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,11,0.97);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ns-nav__brand {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.ns-nav__brand span {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.4;
  margin-right: 3px;
  font-family: 'DM Sans', sans-serif;
}

.ns-nav__links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
}

.ns-nav__links a {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}

.ns-nav__links a:hover,
.ns-nav__links a.current-menu-item {
  color: var(--text);
  border-color: var(--border2);
  background: var(--bg3);
}

.ns-nav__cta {
  font-size: 12px;
  padding: 7px 18px;
  background: var(--gold);
  color: var(--bg) !important;
  border-radius: 3px;
  font-weight: 500;
  border: none !important;
}

.ns-nav__cta:hover { opacity: 0.9; background: var(--gold) !important; }

/* ─── TAGS / BADGES ─────────────────────────────────────────── */
.ns-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.ns-tag--feature   { background: var(--green-bg); color: var(--green); }
.ns-tag--data      { background: var(--gold-bg);  color: var(--gold);  }
.ns-tag--explainer { background: var(--blue-bg);  color: var(--blue);  }
.ns-tag--viral     { background: var(--red-bg);   color: var(--red);   }

/* ─── SIGNUP FORM ───────────────────────────────────────────── */
.ns-signup__label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 10px;
}

.ns-signup__row {
  display: flex;
  max-width: 460px;
  border: 1px solid var(--border2);
  border-radius: 3px;
  overflow: hidden;
}

.ns-signup__input {
  flex: 1;
  background: rgba(240,235,224,0.05);
  border: none;
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
}

.ns-signup__input::placeholder { color: var(--hint); }

.ns-signup__btn {
  padding: 13px 24px;
  background: var(--gold);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.15s;
}

.ns-signup__btn:hover { opacity: 0.9; }
.ns-signup__note {
  font-size: 11px;
  color: var(--hint);
  font-family: 'DM Mono', monospace;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ─── HOME: HERO ─────────────────────────────────────────────── */
.ns-hero {
  padding: 68px 40px 56px;
  max-width: 680px;
  border-bottom: 1px solid var(--border);
}

.ns-hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.ns-hero__kicker-line { width: 28px; height: 1px; background: var(--gold); }

.ns-hero__kicker-text {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.ns-hero__wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-style: italic;
  color: var(--hint);
  margin-bottom: 4px;
}

.ns-hero__wordmark b { color: var(--gold); }

.ns-hero__defn {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--hint);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}

.ns-hero__hed {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.ns-hero__hed em { font-style: italic; color: var(--gold); }

.ns-hero__dek {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.ns-hero__dek strong { color: var(--text); font-weight: 500; }

/* ─── RATE TICKER BAR ───────────────────────────────────────── */
.ns-ticker {
  display: flex;
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
  gap: 0;
  overflow-x: auto;
}

.ns-ticker__item {
  padding: 0 22px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.ns-ticker__item:first-child { padding-left: 0; }
.ns-ticker__item:last-child  { border-right: none; }

.ns-ticker__label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 3px;
}

.ns-ticker__val {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
}

.ns-ticker__val--up   { color: var(--green); }
.ns-ticker__val--down { color: var(--red); }
.ns-ticker__val--neu  { color: var(--text); }
.ns-ticker__val--dim  {
  font-size: 12px;
  color: var(--hint);
  font-family: 'DM Mono', monospace;
}

/* ─── HOME: STORY GRID ──────────────────────────────────────── */
.ns-home-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid var(--border);
}

.ns-home-grid__main {
  padding: 28px 40px;
  border-right: 1px solid var(--border);
}

.ns-home-grid__side { display: flex; flex-direction: column; }

.ns-side-item {
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.ns-side-item:last-child { border-bottom: none; }
.ns-side-item:hover { background: var(--bg3); }

.ns-side-item__hed {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text);
  transition: color 0.15s;
}

.ns-side-item:hover .ns-side-item__hed { color: var(--gold); }

.ns-side-item__meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--hint);
}

/* ─── STORY CARD (feature) ──────────────────────────────────── */
.ns-story__hed {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.15s;
}

.ns-story__hed:hover { color: var(--gold); }

.ns-story__dek {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.ns-story__meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--hint);
  display: flex;
  gap: 14px;
}

.ns-story__meta a { color: var(--gold); }

/* ─── SOCIAL PROOF BAR ──────────────────────────────────────── */
.ns-proof {
  padding: 22px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.ns-proof__stat { display: flex; flex-direction: column; gap: 2px; }

.ns-proof__num {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

.ns-proof__label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hint);
}

.ns-proof__divider { width: 1px; height: 30px; background: var(--border); }

.ns-proof__quote {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  max-width: 320px;
  line-height: 1.6;
}

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.ns-page-header {
  padding: 38px 40px 26px;
  border-bottom: 1px solid var(--border);
}

.ns-page-header__flag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.ns-page-header__title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ns-page-header__sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.65;
}

/* ─── FILTER ROW ────────────────────────────────────────────── */
.ns-filters {
  padding: 12px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ns-filter-btn {
  font-size: 11px;
  padding: 5px 13px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
  background: transparent;
  transition: all 0.15s;
}

.ns-filter-btn:hover,
.ns-filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

/* ─── STORIES LIST ──────────────────────────────────────────── */
.ns-stories { padding: 0 40px; }

.ns-story-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: start;
  transition: background 0.15s;
}

.ns-story-row:last-child { border-bottom: none; }
.ns-story-row:hover { background: var(--bg3); margin: 0 -40px; padding: 26px 40px; }

.ns-story-row__hed {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 7px;
  color: var(--text);
  transition: color 0.15s;
}

.ns-story-row:hover .ns-story-row__hed { color: var(--gold); }

.ns-story-row__dek {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.ns-story-row__meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--hint);
  display: flex;
  gap: 14px;
}

.ns-story-row__issue {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--hint);
  text-align: right;
  padding-top: 4px;
}

/* ─── RATES PAGE ────────────────────────────────────────────── */
.ns-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--green);
  margin-bottom: 14px;
}

.ns-updated-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.ns-verdict-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.ns-verdict-cell {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
}

.ns-verdict-cell:last-child { border-right: none; }

.ns-verdict-cell__label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 5px;
}

.ns-verdict-cell__val {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 3px;
}

.ns-verdict-cell__sub { font-size: 11px; color: var(--muted); }

/* ─── RATES TABLE ───────────────────────────────────────────── */
.ns-rates-wrap { overflow-x: auto; }

.ns-rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ns-rates-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hint);
  border-bottom: 1px solid var(--border2);
  background: var(--bg2);
  white-space: nowrap;
}

.ns-rates-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.ns-rates-table tr:hover td { background: var(--bg3); }
.ns-rates-table tr:last-child td { border-bottom: none; }

.ns-rates-table .inst-name { font-weight: 500; font-size: 13px; }

.ns-rates-table .inst-type {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--hint);
  margin-top: 2px;
}

.ns-rate-num {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
}

.ns-rate-num--hi  { color: var(--green); }
.ns-rate-num--mid { color: var(--text); }
.ns-rate-num--lo  { color: var(--red); }

/* rate bar */
.ns-bar-wrap { display: flex; align-items: center; gap: 8px; }
.ns-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(240,235,224,0.08);
  border-radius: 2px;
  overflow: hidden;
  min-width: 50px;
}
.ns-bar-fill { height: 100%; border-radius: 2px; }
.ns-bar-fill--g { background: #3d8a5e; }
.ns-bar-fill--a { background: #9a7020; }
.ns-bar-fill--r { background: #a04040; }

/* verdict badges */
.ns-vbadge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.ns-vbadge--best { background: var(--green-bg); color: var(--green); }
.ns-vbadge--good { background: var(--blue-bg);  color: var(--blue);  }
.ns-vbadge--ok   { background: var(--gold-bg);  color: var(--gold);  }
.ns-vbadge--poor { background: var(--red-bg);   color: var(--red);   }

.ns-aff-link {
  font-size: 11px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.ns-aff-link:hover { opacity: 0.8; }

.ns-rates-note {
  padding: 14px 40px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--hint);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ─── ARCHIVE PAGE ──────────────────────────────────────────── */
.ns-archive { padding: 0 40px; }

.ns-archive__month {
  padding: 20px 0 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}

.ns-archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  gap: 16px;
  transition: background 0.15s;
}

.ns-archive-item:hover { background: var(--bg3); margin: 0 -40px; padding: 16px 40px; }

.ns-archive-item__issue {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--hint);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ns-archive-item__hed {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3px;
  color: var(--text);
  transition: color 0.15s;
}

.ns-archive-item:hover .ns-archive-item__hed { color: var(--gold); }

.ns-archive-item__sub { font-size: 11px; color: var(--muted); }

.ns-archive-item__date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--hint);
  text-align: right;
  flex-shrink: 0;
}

.ns-archive-item__open {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--green);
  text-align: right;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.ns-footer {
  padding: 22px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ns-footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
}

.ns-footer__copy {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--hint);
  letter-spacing: 0.06em;
}

/* ─── LOADING STATE (Airtable fetch) ────────────────────────── */
.ns-loading {
  padding: 40px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--hint);
  letter-spacing: 0.08em;
}

.ns-error {
  padding: 20px 40px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--red);
  border-left: 2px solid var(--red);
  margin: 20px 40px;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ns-nav { padding: 14px 20px; }
  .ns-nav__links { gap: 4px; }
  .ns-nav__links a { padding: 5px 10px; font-size: 11px; }
  .ns-hero { padding: 44px 20px 36px; }
  .ns-hero__hed { font-size: 30px; }
  .ns-home-grid { grid-template-columns: 1fr; }
  .ns-home-grid__main { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 20px; }
  .ns-ticker { padding: 12px 20px; }
  .ns-verdict-row { grid-template-columns: 1fr 1fr; }
  .ns-verdict-cell { padding: 14px 16px; }
  .ns-page-header { padding: 28px 20px 18px; }
  .ns-filters { padding: 10px 20px; }
  .ns-stories { padding: 0 20px; }
  .ns-story-row:hover { margin: 0 -20px; padding: 26px 20px; }
  .ns-archive { padding: 0 20px; }
  .ns-archive-item:hover { margin: 0 -20px; padding: 16px 20px; }
  .ns-proof { padding: 18px 20px; }
  .ns-footer { padding: 18px 20px; }
  .ns-rates-note { padding: 12px 20px; }
}

/* ─── SINGLE ARTICLE BODY ───────────────────────────────────── */
.ns-article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.ns-article-body p { margin-bottom: 1.5rem; color: rgba(240,235,224,0.85); }
.ns-article-body h2 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--text); }
.ns-article-body h3 { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); }
.ns-article-body blockquote { border-left: 3px solid var(--gold); padding: 0.5rem 0 0.5rem 1.25rem; margin: 2rem 0; font-family: 'Playfair Display', serif; font-size: 19px; font-style: italic; color: var(--text); line-height: 1.6; }
.ns-article-body ul, .ns-article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; color: rgba(240,235,224,0.85); }
.ns-article-body li { margin-bottom: 0.5rem; }
.ns-article-body a { color: var(--gold); border-bottom: 1px solid rgba(201,168,76,0.35); text-decoration: none; }
.ns-article-body a:hover { border-color: var(--gold); }
.ns-article-body strong { color: var(--text); font-weight: 500; }
.ns-article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.ns-article-body img { max-width: 100%; border-radius: 4px; margin: 1.5rem 0; }

/* ─── MODE TOGGLE PILL ──────────────────────────────────────── */
#ns-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.ns-toggle__track {
  position: relative;
  display: flex;
  align-items: center;
  width: 130px;
  height: 36px;
  border-radius: 999px;
  background: #1a1a16;
  border: 1px solid rgba(240,235,224,0.15);
  overflow: hidden;
  transition: background 0.3s;
}

.ns-toggle__label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.25s;
  z-index: 2;
  pointer-events: none;
}

.ns-toggle__label--day {
  left: 12px;
  color: #1a1a16;
  opacity: 0;
}

.ns-toggle__label--night {
  right: 12px;
  color: rgba(240,235,224,0.75);
  opacity: 1;
}

.ns-toggle__knob {
  position: absolute;
  right: 4px;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  background: rgba(240,235,224,0.12);
  border: 1px solid rgba(240,235,224,0.2);
  transition: right 0.3s cubic-bezier(0.34,1.2,0.64,1), background 0.3s;
  z-index: 1;
}

/* ── LIGHT MODE state of the toggle ── */
body.light-mode .ns-toggle__track {
  background: #e8e2d8;
  border-color: rgba(26,26,22,0.15);
}

body.light-mode .ns-toggle__knob {
  right: calc(100% - 60px);
  background: #fff;
  border-color: rgba(26,26,22,0.15);
}

body.light-mode .ns-toggle__label--day  { opacity: 1; color: #1a1a16; }
body.light-mode .ns-toggle__label--night { opacity: 0; }

/* ─── LIGHT MODE — full site ────────────────────────────────── */
body.light-mode {
  --bg:      #f5f0e8;
  --bg2:     #ede8df;
  --bg3:     #e4dfd5;
  --text:    #1a1a16;
  --muted:   rgba(26,26,22,0.60);
  --hint:    rgba(26,26,22,0.35);
  --border:  rgba(26,26,22,0.10);
  --border2: rgba(26,26,22,0.20);
  --gold:    #8a6a00;
  --gold-bg: rgba(138,106,0,0.10);
  --green:   #1a6b3a;
  --green-bg:rgba(26,107,58,0.10);
  --red:     #a03030;
  --red-bg:  rgba(160,48,48,0.10);
  --blue:    #1a4a8a;
  --blue-bg: rgba(26,74,138,0.10);
}

body.light-mode .ns-nav {
  background: rgba(245,240,232,0.97);
}

body.light-mode .ns-nav__brand,
body.light-mode .ns-nav__links a {
  color: #1a1a16;
}

body.light-mode .ns-nav__links a:hover,
body.light-mode .ns-nav__links a.current-menu-item {
  background: rgba(26,26,22,0.06);
  border-color: rgba(26,26,22,0.18);
}

body.light-mode .ns-nav__cta {
  background: var(--gold) !important;
  color: #fff !important;
}

/* article body in light mode — fix hardcoded rgba colours */
body.light-mode .ns-article-body,
body.light-mode .ns-article-body p,
body.light-mode .ns-article-body li {
  color: rgba(26,26,22,0.85);
}

body.light-mode .ns-article-body h2,
body.light-mode .ns-article-body h3,
body.light-mode .ns-article-body strong {
  color: #1a1a16;
}

body.light-mode .ns-article-body blockquote {
  color: #1a1a16;
}

body.light-mode .ns-signup__input {
  background: rgba(26,26,22,0.05);
  color: #1a1a16;
}

body.light-mode .ns-signup__input::placeholder {
  color: rgba(26,26,22,0.3);
}

body.light-mode .ns-rates-table td,
body.light-mode .ns-rates-table .inst-name {
  color: #1a1a16;
}

body.light-mode .ns-story-row__hed,
body.light-mode .ns-side-item__hed,
body.light-mode .ns-archive-item__hed,
body.light-mode .ns-hero__hed,
body.light-mode .ns-page-header__title,
body.light-mode .ns-story__hed {
  color: #1a1a16;
}

body.light-mode .ns-proof__num,
body.light-mode .ns-verdict-cell__val,
body.light-mode .ns-ticker__val--neu {
  color: #1a1a16;
}

body.light-mode .ns-footer__brand {
  color: #1a1a16;
}

/* ── Noise + Grid overlay ──────────────────────────────────── */
.ns-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
.ns-grid-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.025;
}
.ns-grid-lines::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.8) 59px, rgba(255,255,255,0.8) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.8) 59px, rgba(255,255,255,0.8) 60px);
}
/* ── Layout helpers ────────────────────────────────────────── */
.ns-container         { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }
.ns-container--narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }
.ns-main              { position: relative; z-index: 2; }

/* ── Hide noise/grid in light mode (looks wrong on light bg) ── */
body.light-mode .ns-noise,
body.light-mode .ns-grid-lines { opacity: 0; }

/* =============================================================
   About page
   ============================================================= */
.ns-about__hero   { padding: 72px 24px 48px; }
.ns-about__title  { font-family: 'Playfair Display', serif; font-size: clamp(30px,4vw,46px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: var(--text); }
.ns-about__lead   { font-size: 17px; color: var(--muted); line-height: 1.8; max-width: 560px; }

.ns-about__story  { padding: 0 24px 64px; }
.ns-about__chapter{ margin-bottom: 52px; }
.ns-about__ch-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; margin-bottom: 18px; padding-top: 40px; border-top: 1px solid var(--border); color: var(--text); }
.ns-about__chapter p { font-size: 16px; line-height: 1.85; color: var(--muted); margin-bottom: 1.2em; }
.ns-about__chapter p strong { color: var(--text); }

.ns-about__pull-quote {
  font-family: 'Playfair Display', serif; font-size: 22px; font-style: italic;
  line-height: 1.5; color: var(--gold);
  border-left: 3px solid var(--gold); padding: 20px 28px;
  margin: 40px 0; background: var(--gold-bg);
}

.ns-about__three       { margin-top: 28px; display: flex; flex-direction: column; gap: 24px; }
.ns-about__three-item  { display: flex; gap: 20px; align-items: flex-start; }
.ns-about__three-num   { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--gold); letter-spacing: 0.1em; flex-shrink: 0; padding-top: 2px; }
.ns-about__three-item strong { font-size: 15px; display: block; margin-bottom: 6px; color: var(--text); }
.ns-about__three-item p      { font-size: 14px; color: var(--muted); line-height: 1.65; }

.ns-about__proof { margin: 0; }

.ns-about__cta        { padding: 60px 24px 100px; text-align: center; }
.ns-about__cta-title  { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; margin-bottom: 12px; color: var(--text); }
.ns-about__cta-sub    { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.ns-about__cta .ns-signup__row { margin: 0 auto; }

/* =============================================================
   Methodology page
   ============================================================= */
.ns-method__header  { padding: 72px 24px 40px; }
.ns-method__title   { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,44px); font-weight: 900; line-height: 1.1; margin-bottom: 18px; color: var(--text); }
.ns-method__lead    { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.ns-method__updated { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--hint); letter-spacing: 0.06em; }

.ns-method__proof { margin: 0 0 8px; }

.ns-method__body    { padding: 16px 24px 80px; }
.ns-method__section { margin-bottom: 56px; }
.ns-method__section-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin: 12px 0 18px; color: var(--text); }
.ns-method__section p     { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 1.1em; }
.ns-method__section a     { color: var(--gold); border-bottom: 1px solid var(--border2); }
.ns-method__section a:hover { border-color: var(--gold); }

.ns-method__callout {
  background: var(--bg3); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); padding: 18px 20px;
  font-size: 14px; line-height: 1.7; color: var(--muted);
  margin: 24px 0;
}
.ns-method__callout strong { color: var(--text); }

.ns-method__list { padding-left: 20px; margin: 16px 0 20px; }
.ns-method__list li { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }


/* ═══════════════════════════════════════════════════════════
   TOOLS / CALCULATORS PAGE
   ═══════════════════════════════════════════════════════════ */

.ns-tools { padding-bottom: 80px; }

.ns-tools__header {
  padding: 48px 40px 32px;
  border-bottom: 1px solid var(--border);
}

.ns-tools__title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text);
}

.ns-tools__sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ── TABS ─────────────────────────────────────────────────── */
.ns-tools__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  padding: 0 40px;
}

.ns-tools__tab {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  margin-bottom: -1px;
}

.ns-tools__tab:hover { color: var(--text); }

.ns-tools__tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── CALCULATOR LAYOUT ────────────────────────────────────── */
.ns-calc {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  min-height: 480px;
}

.ns-calc__inputs {
  padding: 32px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ns-calc__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.ns-calc__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── FIELDS ───────────────────────────────────────────────── */
.ns-calc__field {
  margin-bottom: 18px;
}

.ns-calc__field label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 6px;
}

.ns-calc__input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border2);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg2);
  transition: border-color 0.15s;
}

.ns-calc__input-wrap:focus-within {
  border-color: var(--gold);
}

.ns-calc__prefix,
.ns-calc__suffix {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  padding: 0 10px;
  background: var(--bg3);
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.ns-calc__suffix {
  border-right: none;
  border-left: 1px solid var(--border);
}

.ns-calc__input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'DM Mono', monospace;
  color: var(--text);
  outline: none;
  width: 100%;
  min-width: 0;
}

.ns-calc__field select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.ns-calc__field select:focus { border-color: var(--gold); }

.ns-calc__hint {
  font-size: 10px;
  color: var(--hint);
  font-family: 'DM Mono', monospace;
  margin-top: 5px;
  letter-spacing: 0.03em;
}

/* ── RESULTS ──────────────────────────────────────────────── */
.ns-calc__results {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ns-calc__result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ns-calc__result-grid--wide {
  grid-template-columns: 1fr;
  gap: 0;
}

.ns-calc__result-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
}

.ns-calc__result-card--main {
  grid-column: 1 / -1;
  background: var(--bg3);
  border-color: var(--border2);
}

.ns-calc__result-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 6px;
}

.ns-calc__result-value {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.ns-calc__result-card--main .ns-calc__result-value {
  font-size: 32px;
}

.ns-calc__result-value--gold  { color: var(--gold); }
.ns-calc__result-value--green { color: var(--green); }
.ns-calc__result-value--red   { color: var(--red); }

/* ── VERDICT BAR ──────────────────────────────────────────── */
.ns-calc__verdict {
  display: none;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding: 10px 14px;
  background: var(--gold-bg);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

/* ── FX TABLE ─────────────────────────────────────────────── */
.ns-calc__fx-row {
  display: grid;
  grid-template-columns: 200px 120px 1fr 140px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
  gap: 12px;
}

.ns-calc__fx-row:last-child { border-bottom: none; }

.ns-calc__fx-row--highlight {
  border-top: 1px solid var(--border2);
  margin-top: 4px;
  padding-top: 14px;
}

.ns-calc__fx-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.ns-calc__fx-rate {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.ns-calc__fx-fee {
  font-size: 11px;
  color: var(--hint);
  font-family: 'DM Mono', monospace;
}

.ns-calc__fx-total {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

/* ── CHART ────────────────────────────────────────────────── */
.ns-calc__chart-wrap {
  position: relative;
  height: 200px;
  width: 100%;
}

/* ── DISCLAIMER ───────────────────────────────────────────── */
.ns-tools__disclaimer {
  padding: 16px 40px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--hint);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}

/* ── LIGHT MODE ───────────────────────────────────────────── */
body.light-mode .ns-calc__input-wrap input { color: #1a1a16; }
body.light-mode .ns-calc__field select    { color: #1a1a16; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .ns-tools__header { padding: 32px 20px 24px; }
  .ns-tools__tabs   { padding: 0 20px; }
  .ns-tools__tab    { padding: 12px 14px; font-size: 10px; }
  .ns-calc          { grid-template-columns: 1fr; }
  .ns-calc__inputs  { padding: 24px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .ns-calc__results { padding: 24px 20px; }
  .ns-calc__result-value { font-size: 20px; }
  .ns-calc__result-card--main .ns-calc__result-value { font-size: 26px; }
  .ns-calc__fx-row  { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ns-calc__fx-rate, .ns-calc__fx-fee { display: none; }
  .ns-tools__disclaimer { padding: 14px 20px; }
}
