/* NovostiMira — Warm Nordic UI (Concept A) + P3 Duo-Tone Ivory Crest */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/manrope.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-700.woff2') format('woff2');
}

:root {
  --f-head: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #F8F6F1;
  --card: #FFFFFF;
  --soft: #F2EFE7;
  --soft-line: #E6E0D3;
  --line: #E2DCD0;
  --ink: #14201E;
  --mut: #54625F;

  --accent: #0E5A4F;
  --accent-h: #0A463D;
  --accent-soft: #E3F2EE;
  --accent-line: #BDE0D7;

  --terra: #C84D2B;
  --terra-soft: #FDECE6;
  --terra-line: #F4C8B9;

  --amber: #D49B38;
  --ok: #0E7A4B;
  --ok-soft: #E6F5EE;

  --foot: #13201E;
  --foot-ink: #C6D3D0;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow: 0 2px 6px rgba(20, 32, 30, .04), 0 12px 30px rgba(20, 32, 30, .055);
}

html[data-mode="dark"] {
  --bg: #111716;
  --card: #192220;
  --soft: #141C1A;
  --soft-line: #263431;
  --line: #273532;
  --ink: #ECF2F0;
  --mut: #9BAEA9;

  --accent: #2EB89A;
  --accent-h: #3CC9AA;
  --accent-soft: rgba(46, 184, 154, .15);
  --accent-line: rgba(46, 184, 154, .32);

  --terra: #F08A67;
  --terra-soft: rgba(240, 138, 103, .15);
  --terra-line: rgba(240, 138, 103, .32);

  --ok: #49C889;
  --ok-soft: rgba(73, 200, 137, .15);

  --foot: #0B100F;
  --foot-ink: #9BB0AB;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; margin: 0; padding: 0; }
body.nm-body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
[hidden] { display: none !important; }
.nm-main { flex: 1 0 auto; width: 100%; }
.nm-in { max-width: 1160px; margin: 0 auto; padding: 0 32px; width: 100%; }
@media (max-width: 720px) { .nm-in { padding: 0 16px; } }

.nm-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.nm-skip:focus { left: 12px; top: 12px; }

/* === FLAGS & SPRITE ICONS === */
.nm-flg {
  width: 17px; height: 12px; border-radius: 2px;
  display: inline-block; vertical-align: -1px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.nm-ic { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.nm-ic-sm { width: 15px; height: 15px; display: block; flex-shrink: 0; }

/* === LOGO SYSTEM (P3 Duo-Tone Ivory Crest) === */
.nm-logo-img {
  display: block; border-radius: 9px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(20, 32, 30, .12);
}
html[data-mode="dark"] .nm-logo-img,
.nm-foot .nm-logo-img { box-shadow: none; }

/* === HEADER === */
.nm-hdr {
  position: sticky; top: 0; z-index: 80;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body.admin-bar .nm-hdr { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nm-hdr { top: 46px; } }

.nm-hdr-in {
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; position: relative;
}
.nm-brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink); min-width: 0;
}
.nm-bname {
  font-family: var(--f-head); font-weight: 800; font-size: 18.5px;
  letter-spacing: -0.025em; line-height: 1.1; white-space: nowrap;
}
.nm-bsub { font-size: 11px; color: var(--mut); margin-top: 1px; white-space: nowrap; }

.nm-nav { display: flex; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 500; }
.nm-nav a {
  color: var(--ink); text-decoration: none; opacity: .84;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nm-nav a:hover { opacity: 1; color: var(--accent); }
.nm-nav a.on {
  opacity: 1; font-weight: 700; color: var(--accent);
  border-bottom-color: var(--accent);
}
.nm-nav-sep { width: 1px; height: 18px; background: var(--line); flex-shrink: 0; margin: 0 2px; }

.nm-htools { display: flex; gap: 7px; align-items: center; position: relative; }
.nm-hbtn {
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; height: 34px; padding: 0 11px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.nm-hbtn:hover { border-color: var(--accent); }
.nm-hbtn-sq { width: 34px; padding: 0; justify-content: center; }
.nm-burger { display: none; }

@media (max-width: 1140px) {
  .nm-bsub { display: none; }
}
@media (max-width: 960px) {
  .nm-nav, .nm-bsub, .nm-hide-m { display: none !important; }
  .nm-burger { display: inline-flex; }
}

/* Search Bar Drawer */
.nm-search-bar { border-top: 1px solid var(--line); background: var(--card); padding: 14px 0; }
.nm-sform { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.nm-sinput {
  flex: 1; height: 42px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--soft); padding: 0 14px; font-size: 14px;
  color: var(--ink); font-family: inherit; outline: none; min-width: 0;
}
.nm-sinput:focus { border-color: var(--accent); }
.nm-schips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.nm-schip {
  background: var(--soft); border: 1px solid var(--soft-line); color: var(--ink);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
}
.nm-schip:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile Menu Drawer */
.nm-mob-drawer {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 14px 16px 18px;
}
.nm-mob-links { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; }
.nm-mob-grp {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--mut); padding: 10px 12px 3px;
}
.nm-mob-links a {
  padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 14.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.nm-mob-links a:hover, .nm-mob-links a.on {
  background: var(--accent-soft); color: var(--accent);
}

/* Homepage News Filter Tabs */
.nm-news-tabs {
  display: inline-flex; gap: 4px; padding: 3px;
  background: var(--soft); border: 1px solid var(--soft-line); border-radius: 999px;
}
.nm-ntab {
  border: 0; background: transparent; color: var(--mut);
  font-family: inherit; font-size: 12.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: .15s;
}
.nm-ntab:hover { color: var(--ink); }
.nm-ntab.on { background: var(--accent); color: #fff; }
html[data-mode="dark"] .nm-ntab.on { color: #081F1B; }

/* === SHARED UI === */
.nm-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px;
  font-weight: 700; letter-spacing: .05em; color: var(--terra);
  background: var(--terra-soft); padding: 5px 11px; border-radius: 999px;
  margin-bottom: 13px; text-transform: uppercase;
}
.nm-h1 {
  font-family: var(--f-head); font-size: 38px; font-weight: 800;
  line-height: 1.14; letter-spacing: -0.025em; margin: 0 0 14px;
}
.nm-h2 {
  font-family: var(--f-head); font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2; margin: 0;
}
.nm-lead { font-size: 16.5px; color: var(--mut); line-height: 1.6; margin: 0 0 20px; }
.nm-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow);
}
.nm-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--f-head); font-weight: 700; font-size: 14.5px;
  padding: 12px 20px; border-radius: 12px; border: 0; cursor: pointer;
}
.nm-btn:hover { background: var(--accent-h); }
html[data-mode="dark"] .nm-btn { color: #081F1B; }
.nm-btn-g {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 14px; padding: 11px 16px;
  border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer;
}
.nm-btn-g:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) {
  .nm-h1 { font-size: 26px; }
  .nm-h2 { font-size: 20px; }
  .nm-card { padding: 16px; border-radius: 16px; }
}

/* === HOME === */
.nm-hero-grid {
  padding: 36px 0 28px; display: grid;
  grid-template-columns: 1.06fr .94fr; gap: 34px; align-items: center;
}
@media (max-width: 900px) {
  .nm-hero-grid { grid-template-columns: 1fr; padding: 20px 0 18px; gap: 18px; }
}
.nm-ctry-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.nm-ctry {
  padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; background: var(--card); border: 1.5px solid var(--line);
  color: var(--ink); font-family: inherit; display: inline-flex; align-items: center; gap: 7px;
}
.nm-ctry:hover { border-color: var(--accent); }
.nm-ctry.on { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-mode="dark"] .nm-ctry.on { color: #091F1C; }

.nm-card-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); gap: 8px;
}
.nm-card-htitle {
  font-family: var(--f-head); font-size: 17px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 8px;
}
.nm-card-tag {
  font-size: 11.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.nm-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.nm-mcell {
  background: var(--soft); border: 1px solid var(--soft-line);
  border-radius: 12px; padding: 12px; min-width: 0;
}
.nm-mlbl { font-size: 11.5px; color: var(--mut); font-weight: 600; margin-bottom: 3px; }
.nm-mval {
  font-family: var(--f-head); font-size: 22px; font-weight: 800;
  color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.15;
}
.nm-mval-s { font-family: var(--f-head); font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.nm-mval-m { font-family: var(--f-mono); font-size: 14.5px; font-weight: 700; }
.nm-msub { font-size: 11.5px; color: var(--mut); margin-top: 3px; }

.nm-sbar-box {
  background: var(--soft); border: 1px solid var(--soft-line);
  border-radius: 12px; padding: 12px;
}
.nm-sbar-h {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--mut); margin-bottom: 7px; flex-wrap: wrap;
}
.nm-sbar-h strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.nm-sbar { height: 9px; border-radius: 999px; overflow: hidden; display: flex; gap: 2px; margin-bottom: 7px; }
.nm-sbar .b1 { background: var(--accent); }
.nm-sbar .b2 { background: var(--terra); }
.nm-sbar .b3 { background: var(--amber); }
.nm-sbar .b4 { background: #8fa09b; }
.nm-sleg { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--mut); }
.nm-sleg i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 4px; vertical-align: middle;
}
.nm-sleg span:nth-child(1) i { background: var(--accent); }
.nm-sleg span:nth-child(2) i { background: var(--terra); }
.nm-sleg span:nth-child(3) i { background: var(--amber); }
.nm-sleg span:nth-child(4) i { background: #8fa09b; }

.nm-sec { padding: 24px 0; }
.nm-sec-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.nm-sec-sub { font-size: 13px; color: var(--mut); }
.nm-sec-all {
  font-size: 13.5px; font-weight: 700; color: var(--accent);
  text-decoration: none; white-space: nowrap;
}
.nm-sec-all:hover { text-decoration: underline; }

.nm-tiles6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px) { .nm-tiles6 { grid-template-columns: 1fr 1fr; gap: 9px; } }
.nm-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 14px; transition: .15s; min-width: 0;
  text-decoration: none; color: inherit; display: block;
}
.nm-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.nm-tile-ic-box {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.nm-tile:nth-child(3n) .nm-tile-ic-box { background: var(--terra-soft); color: var(--terra); }
.nm-tile-t {
  font-family: var(--f-head); font-size: 13.5px; font-weight: 800;
  line-height: 1.25; margin-bottom: 4px;
}
.nm-tile-s { font-size: 11.5px; color: var(--mut); line-height: 1.35; }

.nm-tools4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .nm-tools4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .nm-tools4 { grid-template-columns: 1fr; gap: 10px; } }
.nm-tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 12px; transition: .15s;
  text-decoration: none; color: inherit;
}
.nm-tcard:hover { border-color: var(--accent); }
.nm-tbadge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
}
.nm-ttitle {
  font-family: var(--f-head); font-size: 16px; font-weight: 800;
  line-height: 1.25; margin-bottom: 6px;
}
.nm-tdesc { font-size: 13px; color: var(--mut); line-height: 1.45; }
.nm-tmeta {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--accent);
  font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px;
}

/* === FEED CARDS (IMAGE ALWAYS ABOVE TEXT, NEVER TEXT OVER PHOTO) === */
.nm-feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .nm-feed-grid { grid-template-columns: 1fr; } }
.nm-fcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; transition: .15s;
  text-decoration: none; color: inherit;
}
.nm-fcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.nm-fimg {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--soft);
}
.nm-fimg img, .nm-fimg svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.nm-fbody {
  padding: 16px; display: flex; flex-direction: column;
  flex: 1; justify-content: space-between; gap: 10px;
}
.nm-fcat {
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 6px; display: inline-flex; align-items: center; gap: 5px;
}
.nm-ftitle {
  font-family: var(--f-head); font-size: 16px; font-weight: 800;
  line-height: 1.32; margin: 0 0 7px; color: var(--ink);
}
.nm-fdesc { font-size: 13px; color: var(--mut); line-height: 1.45; }
.nm-fdate {
  font-size: 11.5px; color: var(--mut); font-family: var(--f-mono);
  padding-top: 8px; border-top: 1px solid var(--line);
}

.nm-trust-strip {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 14px;
}
.nm-trust-src { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-trust-src a {
  font-family: var(--f-mono); font-size: 12px; background: var(--soft);
  border: 1px solid var(--soft-line); padding: 5px 10px; border-radius: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.nm-trust-src a:hover { border-color: var(--accent); color: var(--accent); }

/* === ARCHIVE / CATEGORY / SEARCH === */
.nm-cat-head {
  padding: 8px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.nm-empty-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; margin-bottom: 28px;
}
.nm-pagin {
  display: flex; justify-content: center; gap: 8px; padding: 28px 0 18px; flex-wrap: wrap;
}
.nm-pg, .nm-pagin .page-numbers {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 700; font-family: var(--f-mono); font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
}
.nm-pg.on, .nm-pagin .page-numbers.current {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
html[data-mode="dark"] .nm-pg.on,
html[data-mode="dark"] .nm-pagin .page-numbers.current { color: #081F1B; }
.nm-pagin a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* === BREADCRUMBS & SINGLE ARTICLE / PAGE === */
.nm-crumbs {
  font-size: 12.5px; color: var(--mut); padding: 18px 0 12px;
  display: flex; gap: 7px; flex-wrap: wrap; align-items: center;
}
.nm-crumbs a { color: var(--mut); text-decoration: none; }
.nm-crumbs a:hover { color: var(--accent); }
.nm-crumbs span.sep { opacity: .6; }

.nm-art-meta {
  font-size: 12.5px; color: var(--mut); font-family: var(--f-mono);
  margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.nm-art-cover {
  aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); margin: 14px 0 22px; background: var(--soft);
}
.nm-art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nm-mob-toc {
  display: none; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 18px;
}
.nm-mob-toc summary {
  font-family: var(--f-head); font-weight: 700; font-size: 14px; cursor: pointer;
}
.nm-mob-toc nav {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line);
}
.nm-mob-toc nav a { font-size: 13.5px; color: var(--ink); text-decoration: none; }
.nm-mob-toc nav a:hover { color: var(--accent); }

.nm-body-grid {
  display: grid; grid-template-columns: minmax(0, 710px) 280px;
  gap: 44px; align-items: start; padding-bottom: 36px;
}
.nm-body-single { max-width: 740px; padding-bottom: 36px; }
@media (max-width: 960px) {
  .nm-mob-toc { display: block; }
  .nm-body-grid { grid-template-columns: 1fr; gap: 22px; }
  .nm-aside-rail { display: none; }
}

.nm-aside-rail { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.nm-toc-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
}
.nm-toc-box h4 {
  font-family: var(--f-head); font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--mut); margin: 0 0 10px;
}
.nm-toc-box a {
  display: block; font-size: 13.5px; color: var(--ink); text-decoration: none;
  padding: 5px 0 5px 10px; border-left: 2px solid var(--line); line-height: 1.35;
}
.nm-toc-box a.on, .nm-toc-box a:hover {
  border-left-color: var(--accent); color: var(--accent); font-weight: 700;
}
.nm-promo-tool {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 14px; padding: 16px;
}

/* === EDITORIAL PROSE & WORDPRESS ARCHIVE COMPATIBILITY === */
.nm-prose { min-width: 0; overflow-wrap: anywhere; }
.nm-prose > *:first-child { margin-top: 0; }
.nm-prose h2 {
  font-family: var(--f-head); font-size: 23px; font-weight: 800;
  margin: 28px 0 12px; letter-spacing: -0.015em; line-height: 1.25;
  scroll-margin-top: 90px;
}
.nm-prose h3 {
  font-family: var(--f-head); font-size: 19px; font-weight: 700;
  margin: 22px 0 10px; line-height: 1.3;
}
.nm-prose p { font-size: 16.5px; line-height: 1.7; color: var(--ink); margin: 0 0 14px; }
.nm-prose ul, .nm-prose ol { margin: 0 0 16px 22px; font-size: 16px; line-height: 1.65; }
.nm-prose li { margin-bottom: 6px; }
.nm-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.nm-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.nm-prose figure { max-width: 100%; margin: 18px 0; }
.nm-prose figcaption, .nm-prose .wp-caption-text {
  font-size: 13px; color: var(--mut); margin-top: 6px; text-align: center;
}
.nm-prose iframe, .nm-prose video, .nm-prose embed, .nm-prose object {
  max-width: 100%; border-radius: 12px;
}
.nm-prose blockquote {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0;
  padding: 16px 18px; margin: 18px 0; font-style: italic; font-size: 15.5px;
}
.nm-prose blockquote p:last-child { margin-bottom: 0; }
.nm-prose .aligncenter { display: block; margin: 18px auto; }
.nm-prose .alignleft { float: left; margin: 4px 20px 14px 0; max-width: 48%; }
.nm-prose .alignright { float: right; margin: 4px 0 14px 20px; max-width: 48%; }
@media (max-width: 640px) {
  .nm-prose .alignleft, .nm-prose .alignright {
    float: none; margin: 14px auto; max-width: 100%;
  }
}

.nm-tbl-wrap {
  overflow-x: auto; max-width: 100%; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); margin: 14px 0 20px;
}
.nm-prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 440px; }
.nm-prose th {
  text-align: left; background: var(--soft); padding: 10px 13px;
  font-weight: 700; color: var(--mut); font-size: 12.5px;
}
.nm-prose td {
  padding: 10px 13px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums;
}

.nm-callout {
  background: var(--terra-soft); border-left: 4px solid var(--terra);
  border-radius: 0 12px 12px 0; padding: 14px 16px; margin: 16px 0; font-size: 14.5px;
}
.nm-faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 9px;
}
.nm-faq-item summary { font-family: var(--f-head); font-weight: 700; font-size: 15px; cursor: pointer; }
.nm-faq-item p { margin: 9px 0 0; font-size: 14.5px; color: var(--mut); }

.nm-sources-box {
  background: var(--soft); border: 1px solid var(--soft-line);
  border-radius: 14px; padding: 16px 18px; margin-top: 22px;
}
.nm-sources-box h3 { font-family: var(--f-head); font-size: 15px; margin: 0 0 8px; }
.nm-sources-box a { color: var(--accent); text-decoration: none; font-weight: 600; }
.nm-sources-box a:hover { text-decoration: underline; }

/* Dark mode resilience for legacy archive inline styles */
html[data-mode="dark"] .nm-prose table { background: var(--card); color: var(--ink); }
html[data-mode="dark"] .nm-prose td,
html[data-mode="dark"] .nm-prose th { border-color: var(--line); }

/* === CLIENT KIT (.ak) WIDE MODE & DARK MODE OVERRIDES === */
.nm-wide-prose { max-width: 960px; margin: 0 auto; padding-bottom: 36px; min-width: 0; }
.nm-wide-prose .ak { color: var(--ink); }
@media (max-width: 640px) {
  .nm-wide-prose .ak { padding-left: 0 !important; padding-right: 0 !important; }
}
html[data-mode="dark"] .nm-wide-prose .ak {
  --ak-accent: var(--accent);
  --ak-text: var(--ink);
  --ak-muted: var(--mut);
  --ak-grey: var(--mut);
  --ak-line: var(--line);
  --ak-line-strong: var(--soft-line);
  --ak-soft: var(--soft);
  color: var(--ink);
}
html[data-mode="dark"] .nm-wide-prose .ak .ak-card,
html[data-mode="dark"] .nm-wide-prose .ak .ak-cta {
  background: var(--card);
  color: var(--ink);
}
html[data-mode="dark"] .nm-wide-prose .ak .ak-warn {
  background: rgba(212, 155, 56, .14);
}
html[data-mode="dark"] .nm-wide-prose .ak .ak-warn .ak-note-label {
  color: #f4b756;
}

/* === CALCULATOR WIDGET SCAFFOLD (FOR WAVE 1 SERVICES) === */
.nm-calc-hero {
  display: grid; grid-template-columns: .92fr 1.08fr;
  gap: 32px; align-items: start; padding-bottom: 26px;
}
@media (max-width: 900px) { .nm-calc-hero { grid-template-columns: 1fr; gap: 16px; } }
.nm-checks { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 16px 0 20px; padding: 0; }
.nm-checks li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; }
.nm-checks b { color: var(--accent); font-weight: 800; }
.nm-short-ans {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.55;
}
.nm-short-ans strong { display: block; font-family: var(--f-head); color: var(--accent); margin-bottom: 4px; }
.nm-calc-box {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
}
@media (max-width: 720px) { .nm-calc-box { padding: 16px; } }
.nm-c-row { margin-bottom: 14px; }
.nm-c-lbl {
  display: flex; justify-content: space-between; font-size: 12.5px;
  font-weight: 700; color: var(--mut); margin-bottom: 6px; gap: 8px;
}
.nm-c-input-wrap {
  display: flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--soft); padding: 0 14px; height: 48px;
}
.nm-c-input-wrap input {
  border: 0; background: transparent; width: 100%; font-family: var(--f-head);
  font-size: 22px; font-weight: 800; color: var(--ink); outline: none;
  font-variant-numeric: tabular-nums; min-width: 0;
}
.nm-c-cur { font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; color: var(--mut); white-space: nowrap; }
.nm-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.nm-pre {
  background: var(--soft); border: 1px solid var(--soft-line); color: var(--ink);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--f-mono);
}
.nm-pre:hover, .nm-pre.on { background: var(--accent); color: #fff; border-color: var(--accent); }
html[data-mode="dark"] .nm-pre.on { color: #081F1B; }
.nm-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--soft); padding: 4px; border-radius: 12px; border: 1px solid var(--soft-line);
}
.nm-seg button {
  border: 0; background: transparent; padding: 9px 8px; border-radius: 9px;
  font-size: 13px; font-weight: 700; color: var(--mut); cursor: pointer; font-family: inherit;
}
.nm-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.nm-toggles { display: flex; flex-direction: column; gap: 9px; margin: 13px 0 16px; }
.nm-tgl {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.nm-tgl input { display: none; }
.nm-sw-track {
  width: 40px; height: 22px; border-radius: 999px; background: var(--line);
  position: relative; transition: .18s; flex-shrink: 0;
}
.nm-sw-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.nm-tgl input:checked + .nm-sw-track { background: var(--accent); }
.nm-tgl input:checked + .nm-sw-track::after { transform: translateX(18px); }
.nm-res-panel {
  background: var(--accent); color: #fff; border-radius: 14px; padding: 15px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px;
}
html[data-mode="dark"] .nm-res-panel { color: #081F1B; }
.nm-res-big { font-family: var(--f-head); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.nm-res-uah { font-family: var(--f-mono); font-size: 12.5px; opacity: .9; margin-top: 3px; }
.nm-res-pct {
  font-family: var(--f-head); font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.18); padding: 6px 10px; border-radius: 10px;
  text-align: right; white-space: nowrap;
}
.nm-sticky-tabs {
  position: sticky; top: 64px; z-index: 40; background: var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 26px; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; max-width: 100%;
}
.nm-sticky-tabs::-webkit-scrollbar { display: none; }
.nm-sticky-tabs a {
  padding: 12px 0; font-size: 13.5px; font-weight: 600; color: var(--mut);
  text-decoration: none; white-space: nowrap; border-bottom: 2.5px solid transparent;
}
.nm-sticky-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

/* === FEEDBACK BAR & RELATED === */
.nm-fb-bar {
  margin-top: 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.nm-fb-btns { display: flex; gap: 8px; align-items: center; }
.nm-fb-btn {
  background: var(--soft); border: 1px solid var(--soft-line); color: var(--ink);
  border-radius: 10px; padding: 7px 14px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.nm-fb-btn:hover { border-color: var(--accent); }
.nm-fb-btn.picked { background: var(--accent); color: #fff; border-color: var(--accent); }
html[data-mode="dark"] .nm-fb-btn.picked { color: #081F1B; }

.nm-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 860px) { .nm-rel-grid { grid-template-columns: 1fr; } }

/* === FOOTER === */
.nm-foot { background: var(--foot); color: var(--foot-ink); padding: 34px 0 26px; font-size: 13.5px; margin-top: auto; }
.nm-foot-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px;
  padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (max-width: 760px) { .nm-foot-grid { grid-template-columns: 1fr; gap: 18px; } }
.nm-foot-grid h5 { color: #fff; font-family: var(--f-head); font-size: 13.5px; margin: 0 0 10px; }
.nm-foot-grid a {
  display: block; color: var(--foot-ink); text-decoration: none;
  padding: 3px 0; opacity: .86;
}
.nm-foot-grid a:hover { opacity: 1; color: #fff; }
.nm-foot-btm {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; padding-top: 16px; font-size: 12px; opacity: .78;
}
.nm-adcore {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--foot-ink); text-decoration: none; opacity: .88;
}
.nm-adcore:hover { opacity: 1; color: #fff; }

/* === TRUST / STATIC PAGES (.nm-p-*) === */
.nm-page-wide { max-width: 1020px; padding-bottom: 40px; min-width: 0; }
.nm-p-lead-box {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 16px; padding: 18px 20px; margin-bottom: 24px;
  font-size: 16px; line-height: 1.62; color: var(--ink);
}
.nm-p-lead-box p { margin: 0; }
.nm-p-lead-box p + p { margin-top: 10px; }

.nm-p-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin: 0 0 26px;
}
@media (max-width: 900px) { .nm-p-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .nm-p-stats { grid-template-columns: 1fr; } }
.nm-p-stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 14px; min-width: 0;
}
.nm-p-stat strong {
  display: block; font-family: var(--f-head); font-size: 17px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--accent); line-height: 1.25; margin-bottom: 4px;
}
.nm-p-stat span { display: block; font-size: 12.5px; color: var(--mut); line-height: 1.4; }

.nm-p-grid2 {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin: 14px 0 24px;
}
@media (max-width: 720px) { .nm-p-grid2 { grid-template-columns: 1fr; } }
.nm-p-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.nm-p-card h3 {
  font-family: var(--f-head); font-size: 17px; font-weight: 800;
  margin: 0 0 8px; line-height: 1.3;
}
.nm-p-card p { font-size: 14.5px; line-height: 1.58; color: var(--mut); margin: 0 0 10px; }
.nm-p-card p:last-child, .nm-p-card ul:last-child { margin-bottom: 0; }
.nm-p-card ul { margin: 0 0 10px 18px; font-size: 14.5px; line-height: 1.58; color: var(--ink); }

.nm-p-author {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; margin: 14px 0 20px; box-shadow: var(--shadow);
}
.nm-prose .nm-p-author img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--accent-line);
}
.nm-p-author-info { flex: 1 1 220px; min-width: 0; }
.nm-p-author-name {
  font-family: var(--f-head); font-size: 18px; font-weight: 800;
  margin-bottom: 3px; color: var(--ink);
}
.nm-p-author-role { font-size: 13.5px; color: var(--mut); margin-bottom: 8px; }

.nm-p-kv { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nm-p-kv li {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 0;
}
.nm-p-kv li:last-child { padding-bottom: 0; border-bottom: 0; }
.nm-p-kv small {
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--mut);
}
.nm-p-kv strong, .nm-p-kv a {
  font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none;
  overflow-wrap: anywhere;
}
.nm-p-kv a { color: var(--accent); }
.nm-p-kv a:hover { text-decoration: underline; }

.nm-p-map {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--soft); margin: 14px 0 12px;
}
.nm-p-map iframe {
  display: block; width: 100%; height: 400px; border: 0; border-radius: 0;
}
@media (max-width: 640px) { .nm-p-map iframe { height: 300px; } }

.nm-p-steps { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 24px; }
.nm-p-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px;
}
.nm-p-num {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--f-mono); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nm-p-step h3 { font-family: var(--f-head); font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.nm-p-step p { font-size: 14.5px; line-height: 1.56; color: var(--mut); margin: 0; }

.nm-p-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nm-prose .nm-p-sources a {
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600;
  background: var(--soft); border: 1px solid var(--soft-line);
  color: var(--ink); text-decoration: none; padding: 6px 11px; border-radius: 8px;
}
.nm-prose .nm-p-sources a:hover { border-color: var(--accent); color: var(--accent); }

.nm-p-note {
  background: var(--soft); border: 1px solid var(--soft-line);
  border-radius: 14px; padding: 16px 18px; margin-top: 22px; font-size: 14.5px;
}
.nm-p-note p { font-size: 14.5px; margin: 0 0 8px; }
.nm-p-note p:last-child { margin-bottom: 0; }

.nm-trust-nav {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
}
.nm-trust-nav h4 {
  font-family: var(--f-head); font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--mut); margin: 0 0 10px;
}
.nm-trust-nav a {
  display: block; font-size: 13.5px; color: var(--ink); text-decoration: none;
  padding: 6px 8px; border-radius: 8px; font-weight: 500;
}
.nm-trust-nav a:hover, .nm-trust-nav a.on {
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}

/* === NETWORK ARTICLE BLOCKS: TL;DR, METRIC CARDS, VERTICAL TIMELINE === */
.nm-tldr {
  background: var(--soft); border: 1px solid var(--soft-line);
  border-left: 3.5px solid var(--accent); border-radius: 0 14px 14px 0;
  padding: 16px 18px; margin: 0 0 20px;
}
.nm-tldr-lbl {
  font-family: var(--f-head); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; color: var(--accent);
  margin: 0 0 8px;
}
.nm-prose .nm-tldr p { font-size: 15px; line-height: 1.58; margin: 0 0 8px; }
.nm-prose .nm-tldr ul { margin: 0 0 0 18px; font-size: 14.5px; line-height: 1.55; }
.nm-prose .nm-tldr li { margin-bottom: 4px; }
.nm-prose .nm-tldr li:last-child, .nm-prose .nm-tldr p:last-child { margin-bottom: 0; }

.nm-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px; margin: 0 0 24px;
}
.nm-m-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 14px; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.nm-m-lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--mut); line-height: 1.3; margin-bottom: 5px;
}
.nm-m-val {
  font-family: var(--f-head); font-size: 19px; font-weight: 800;
  color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums;
}
.nm-m-val.acc { color: var(--accent); }
.nm-m-val.warn { color: var(--terra); }
.nm-m-sub { font-size: 12px; color: var(--mut); line-height: 1.38; margin-top: 4px; }
@media (max-width: 640px) {
  .nm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .nm-m-card { padding: 11px 12px; }
  .nm-m-val { font-size: 16.5px; }
}

.nm-tl {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px 10px; margin: 16px 0 22px;
}
.nm-tl-k {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--accent); margin: 0 0 4px;
}
.nm-tl-h {
  font-family: var(--f-head); font-size: 16.5px; font-weight: 800;
  color: var(--ink); margin: 0 0 18px; line-height: 1.3;
}
.nm-tl-list { position: relative; }
.nm-tl-step {
  position: relative; display: flex; gap: 14px;
  border-left: 2px solid var(--accent-line);
  margin-left: 13px; padding: 0 0 18px 24px;
}
.nm-tl-step:last-child { border-left: 2px solid transparent; padding-bottom: 6px; }
.nm-tl-num {
  position: absolute; left: -18px; top: -2px;
  width: 34px; height: 34px; box-sizing: border-box;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--f-mono); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--accent-line);
}
html[data-mode="dark"] .nm-tl-num { color: #081F1B; }
.nm-tl-t { font-family: var(--f-head); font-weight: 800; font-size: 15px; color: var(--ink); margin-bottom: 3px; line-height: 1.35; }
.nm-tl-d { font-size: 14.5px; line-height: 1.62; color: var(--mut); }
.nm-tl-d strong { color: var(--ink); }
@media (max-width: 640px) {
  .nm-tl { padding: 14px 14px 8px; }
  .nm-tl-step { padding: 0 0 15px 22px; }
}

/* Dark-mode contrast fix (>= 8.3:1 #081F1B on #2EB89A) for active calculator controls */
html[data-mode="dark"] .nmp-seg button.on,
html[data-mode="dark"] .nmp-hourly button,
html[data-mode="dark"] .nmg-seg button.on,
html[data-mode="dark"] .nmg-dur.on,
html[data-mode="dark"] .nmg-dur:hover,
html[data-mode="dark"] .nmc-seg button.on,
html[data-mode="dark"] .nmr-seg button.on {
  color: #081F1B;
}
