:root {
  color-scheme: light;
  --ink: #121417;
  --charcoal: #1c1f24;
  --slate: #2a2e35;
  --muted: #5c6370;
  --paper: #f3f1ec;
  --paper-alt: #ebe8e1;
  --paper-deep: #e8e4dc;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --surface-3: #f7f5f0;
  --surface-hover: #fff6e8;
  --border: #e2ddd4;
  --border-strong: #d8d2c8;
  --border-soft: #ece7df;
  --border-faint: #eeeeee;
  --border-muted: #dddddd;
  --border-chip: #cfc9bf;
  --label: #4a4f59;
  --hint: #5c616a;
  --hint-soft: #6b7078;
  --footer-muted: #c9c5bd;
  --hero-lead: #d7d3cb;
  --page-hero-bg: #6d6e71;
  --page-hero-overlay: rgba(109, 110, 113, 0.8);
  --input-border: #343434;
  --row-tint: rgba(253, 147, 3, 0.1);
  --row-tint-hover: rgba(253, 147, 3, 0.18);
  --search-bg: #3a4049;
  --search-border: #6a707a;
  --search-text: #ffffff;
  --on-light: #ffffff;
  --btn-on-accent: #000000;
  --btn-nl-hover: #6d6e71;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);
  --msg-ok-bg: #d4edda;
  --msg-ok-border: #c3e6cb;
  --msg-ok-text: #155724;
  --msg-error-bg: #f8d7da;
  --msg-error-border: #f5c6cb;
  --msg-error-text: #721c24;
  --msg-warn-bg: #fff3cd;
  --msg-warn-border: #ffeeba;
  --msg-warn-text: #856404;
  --msg-info-bg: #d1ecf1;
  --msg-info-border: #bee5eb;
  --msg-info-text: #0c5460;
  --accent: #e8952e;
  --accent-deep: #8f4f0a;
  --accent-soft: #f5c56b;
  --menu-gold: #FD9303;
  --on-dark: #f7f5f0;
  --chrome-bg: #121417;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wrap: min(1366px, calc(100% - 2 * var(--space)));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8e6e1;
  --charcoal: #121417;
  --slate: #2a2e35;
  --muted: #9aa1ab;
  --paper: #0f1114;
  --paper-alt: #16191e;
  --paper-deep: #1a1d22;
  --surface: #1a1d22;
  --surface-2: #22262c;
  --surface-3: #1e2228;
  --surface-hover: #2c2618;
  --border: #2f353d;
  --border-strong: #3a414b;
  --border-soft: #2a3038;
  --border-faint: #2a3038;
  --border-muted: #3a414b;
  --border-chip: #3a414b;
  --label: #b4bac3;
  --hint: #9aa1ab;
  --hint-soft: #8b929c;
  --footer-muted: #a39e96;
  --hero-lead: #c9c5bd;
  --page-hero-bg: #3a3c40;
  --page-hero-overlay: rgba(18, 20, 23, 0.78);
  --input-border: #5c6370;
  --row-tint: rgba(253, 147, 3, 0.12);
  --row-tint-hover: rgba(253, 147, 3, 0.22);
  --search-bg: #2a2e35;
  --search-border: #4a505a;
  --search-text: #ffffff;
  --on-light: #ffffff;
  --btn-on-accent: #121417;
  --btn-nl-hover: #5c6370;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --msg-ok-bg: #1a3324;
  --msg-ok-border: #2d5a3d;
  --msg-ok-text: #a8d5b5;
  --msg-error-bg: #3a1c20;
  --msg-error-border: #6b2e35;
  --msg-error-text: #f0b4b8;
  --msg-warn-bg: #3a3218;
  --msg-warn-border: #6b5a28;
  --msg-warn-text: #e8d48a;
  --msg-info-bg: #1a3036;
  --msg-info-border: #2d5560;
  --msg-info-text: #9ed0d8;
  --accent: #e8952e;
  --accent-deep: #f0b45a;
  --accent-soft: #f5c56b;
  --menu-gold: #FD9303;
  --on-dark: #f7f5f0;
  --chrome-bg: #0a0b0d;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }

.nm-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--chrome-bg);
  color: var(--on-dark);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.nm-skip:focus { left: 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.nm-wrap { width: var(--wrap); margin-inline: auto; }
.nm-main { flex: 1 0 auto; width: 100%; }
.nm-section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.nm-section--alt { background: var(--paper-alt); }
.nm-section .nm-wrap > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nm-section__lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.35;
  margin: 0 0 1.75rem;
}
.nm-muted { color: var(--muted); }

.nm-header {
  background: var(--charcoal);
  color: var(--on-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.nm-header__inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
.nm-logo-text,
.nm-brand a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--menu-gold);
  text-decoration: none;
  font-weight: 700;
}
.nm-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}
.nm-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nm-menu a {
  color: var(--menu-gold);
  text-decoration: none;
  font-weight: 600;
}
.nm-menu a:hover { color: var(--accent-soft); }

.nm-burger {
  display: none;
  position: relative;
  margin-left: auto;
  background: transparent;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}
.nm-burger span {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  height: 2px;
  background: var(--menu-gold);
  border-radius: 1px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.nm-burger span:nth-child(1) { top: 0.7rem; }
.nm-burger span:nth-child(2) { top: 1.15rem; }
.nm-burger span:nth-child(3) { top: 1.6rem; }
.nm-burger.is-open span:nth-child(1) {
  top: 1.15rem;
  transform: rotate(45deg);
}
.nm-burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nm-burger.is-open span:nth-child(3) {
  top: 1.15rem;
  transform: rotate(-45deg);
}

.nm-search {
  position: relative;
  min-width: 12rem;
  flex: 0 0 auto;
}
.nm-theme-toggle {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: transparent;
  color: var(--menu-gold);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nm-theme-toggle:hover {
  border-color: var(--menu-gold);
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.06);
}
.nm-theme-toggle:focus-visible {
  outline: 2px solid var(--menu-gold);
  outline-offset: 2px;
}
.nm-theme-toggle__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}
.nm-theme-toggle__icon--sun { display: none; }
:root[data-theme="dark"] .nm-theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .nm-theme-toggle__icon--sun { display: block; }
.nm-search__field { position: relative; }
.nm-search input {
  width: 100%;
  border: 1px solid var(--search-border);
  background: var(--search-bg);
  color: var(--search-text);
  border-radius: 4px;
  padding: 0.5rem 2.35rem 0.5rem 0.75rem;
  font-size: 1rem;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.nm-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}
.nm-search input:focus,
.nm-search input:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--search-border);
  background: var(--search-bg);
}
.nm-search input::-webkit-search-cancel-button,
.nm-search input::-webkit-search-decoration,
.nm-search input::-webkit-search-results-button,
.nm-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.nm-search__icon {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--search-text);
  display: flex;
  pointer-events: none;
  opacity: 0.9;
}
.nm-search-results {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  width: min(22rem, 80vw);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  z-index: 60;
  overflow: hidden;
}
.nm-search-results a {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border-faint);
}
.nm-search-results a:hover { background: var(--surface-3); }
.nm-search-results img { width: 36px; height: auto; }

.nm-hero {
  min-height: clamp(280px, 38vh, 420px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(18,20,23,.72), rgba(28,31,36,.55)),
    radial-gradient(circle at 80% 20%, rgba(232,149,46,.35), transparent 45%),
    var(--charcoal);
  color: var(--on-dark);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.nm-hero__content { width: var(--wrap); margin-inline: auto; }
.nm-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.nm-hero__title {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  margin: 0.5rem 0 0.35rem;
  max-width: none;
  white-space: nowrap;
}
.nm-hero__lead {
  color: var(--hero-lead);
  max-width: none;
  margin: 0 0 1rem;
  white-space: nowrap;
}
.nm-hero__cta { display: flex; flex-wrap: wrap; gap: 0.65rem; }

@media (max-width: 640px) {
  .nm-hero__title,
  .nm-hero__lead {
    white-space: normal;
  }
}

.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.nm-btn:hover { background: var(--accent-soft); color: var(--ink); }
.nm-btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.nm-hero .nm-btn-ghost { color: var(--on-dark); }

.nm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .nm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .nm-grid { grid-template-columns: 1fr; }
}
.nm-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.nm-filter-tab {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nm-filter-tab:hover {
  border-color: var(--menu-gold);
  color: var(--accent-deep);
}
.nm-filter-tab.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--menu-gold);
}
.nm-filter-tab__count {
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0.75;
}
.nm-filter-tab.is-active .nm-filter-tab__count { color: var(--accent-soft); opacity: 1; }
.nm-filter-item { min-width: 0; }
.nm-filter-item.is-hidden { display: none; }
.nm-filter-empty {
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.nm-card { background: transparent; }
.nm-card__media {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
}
.nm-card__media img { width: 100%; }
.nm-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}
.nm-card__title a { color: var(--ink); text-decoration: none; }
.nm-card__title a:hover { color: var(--accent-deep); }
.nm-card__meta { color: var(--muted); font-size: 0.92rem; margin: 0; }

.nm-archive-hero {
  /* legacy alias — prefer .nm-page-hero */
  display: none;
}

/* —— Page hero (Drupal parity: 400px / 200px, contain) —— */
.nm-page-hero {
  width: 100%;
  height: 400px;
  background-color: var(--page-hero-bg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
}
.nm-page-hero__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.nm-page-hero--has-img {
  background-image: none;
}
.nm-page-hero--bancnote {
  background-image: url("../img/bancnote.webp");
}
.nm-page-hero--monede {
  background-image: url("../img/monede.webp");
}
.nm-page-hero--coli {
  background-image: url("../img/coli.webp");
}
.nm-page-hero--emisiuni {
  background-image: url("../img/bancnote.webp");
  height: 400px;
}
.nm-page-hero--articole,
.nm-page-hero--no-image {
  height: 200px;
}
.nm-page-hero__overlay {
  position: absolute;
  z-index: 10;
  inset: 0;
  background-color: var(--page-hero-overlay);
}
.nm-page-hero__title {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 150px;
}
.nm-page-hero--emisiuni .nm-page-hero__title,
.nm-page-hero--articole .nm-page-hero__title,
.nm-page-hero--no-image .nm-page-hero__title {
  padding-top: 75px;
}
.nm-page-hero--emisiuni .nm-page-hero__title {
  padding-top: 150px;
}
.nm-page-hero__title h1 {
  max-width: 991px;
  text-align: center;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 48px;
  color: var(--menu-gold);
  padding: 0 1rem;
}
.nm-inline-link { color: var(--accent-deep); font-weight: 700; }
.nm-listing-cta {
  text-align: center;
  margin: 0 0 2rem;
}
.nm-listing-cta .nm-inline-link {
  font-size: 1.75rem;
  line-height: 1.2;
  text-decoration: underline;
  color: var(--accent-deep);
}
.nm-listing-cta .nm-inline-link:hover { color: var(--ink); }
@media (max-width: 991px) {
  .nm-listing-cta .nm-inline-link {
    font-size: 1.35rem;
  }
}

/* Breadcrumbs — one line, horizontal swipe on narrow screens */
.nm-breadcrumbs {
  margin: -0.5rem auto 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.nm-breadcrumbs__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.15rem;
  align-items: center;
  width: max-content;
  min-width: 100%;
}
.nm-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: none;
}
.nm-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--muted);
  opacity: 0.7;
}
.nm-breadcrumbs a {
  color: var(--accent-deep);
  text-decoration: none;
}
.nm-breadcrumbs a:hover { color: var(--accent); }
.nm-breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Pagination */
.nm-pagination {
  margin: 2rem 0 0;
  display: flex;
  justify-content: center;
}
.nm-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.nm-pagination .page-numbers li { margin: 0; }
.nm-pagination .page-numbers a,
.nm-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
}
.nm-pagination .page-numbers a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.nm-pagination .page-numbers .current {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--menu-gold);
  font-weight: 700;
}
.nm-pagination .page-numbers .dots {
  border-color: transparent;
  background: transparent;
}

.nm-coli-table-wrap { margin: 0 0 2.5rem; }
.nm-coli-table__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--ink);
}
.nm-coli-table {
  border-top: 1px solid var(--menu-gold);
  border-left: 1px solid var(--menu-gold);
  border-right: 1px solid var(--menu-gold);
  background: var(--surface);
}
.nm-coli-table__row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.2fr 1.4fr;
  border-bottom: 1px solid var(--menu-gold);
  text-decoration: none;
  color: inherit;
}
.nm-coli-table__row > div {
  padding: 0.55rem 0.65rem;
  border-right: 1px solid var(--menu-gold);
  text-align: center;
  font-size: 0.98rem;
}
.nm-coli-table__row > div:last-child { border-right: 0; }
.nm-coli-table__row:nth-child(odd) { background: var(--row-tint); }
.nm-coli-table__row--head {
  font-weight: 700;
  background: transparent !important;
  cursor: default;
}
a.nm-coli-table__row:hover { background: var(--row-tint-hover); }
.nm-coli-table__row--product {
  background: var(--surface) !important;
}
.nm-coli-table__row--product .nm-coli-table__full {
  grid-column: 1 / -1;
  border-right: 0;
  text-align: center;
  padding: 0.65rem 1rem;
}
.nm-commem-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 100%;
  color: var(--menu-gold);
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
}
.nm-commem-product:hover { color: var(--accent-deep); }
.nm-commem-product__thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nm-commem-product__thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.nm-commem-product__title {
  text-decoration: underline;
  font-weight: 700;
}
.nm-commem-table .nm-coli-table__row:not(.nm-coli-table__row--product):not(.nm-coli-table__row--head):nth-child(odd) {
  background: var(--row-tint);
}
@media (max-width: 700px) {
  .nm-coli-table__row {
    grid-template-columns: 1fr 1fr;
  }
  .nm-coli-table__row > div:nth-child(2n) { border-right: 0; }
  .nm-coli-table__row--product .nm-coli-table__full {
    grid-column: 1 / -1;
  }
  .nm-commem-product {
    gap: 0.55rem;
    font-size: 1.05rem;
  }
  .nm-commem-product__thumb {
    width: 3.5rem;
    height: 2.4rem;
  }
}
.nm-prose { max-width: 70ch; }
.nm-prose--wide,
.nm-page .nm-prose {
  max-width: none;
  width: 100%;
}
.nm-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
.nm-prose--bordered {
  max-width: none;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.nm-prose p { margin: 0 0 1rem; }

/* Newsletter page (Drupal /newsletter parity) */
.nm-section--newsletter {
  padding-top: 0;
}
.nm-newsletter__body {
  margin: 30px auto;
  font-size: 16px;
  line-height: 22px;
}
.nm-newsletter__body p {
  margin: 0 0 10px;
}
.nm-newsletter__body a {
  color: var(--menu-gold);
  text-decoration: underline;
}
.nm-newsletter__body a:hover {
  color: var(--accent-deep);
}
.nm-newsletter__center {
  text-align: center;
}
.nm-nl-form {
  margin: 30px 0 1.25rem;
  text-align: center;
}
.nm-nl-form .nm-nl-msg {
  margin: 0 auto 0.75rem;
}
.nm-nl-input {
  display: block;
  width: 230px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  font-size: 18px;
  line-height: 1.3;
  padding: 5px 8px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.nm-nl-motiv {
  display: block;
  width: min(100%, 32rem);
  margin: 0 auto;
  padding: 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  background: var(--surface);
  color: var(--ink);
}
.nm-nl-form .cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0;
}
.nm-btn--nl {
  display: block;
  margin: 2rem auto;
  min-width: 220px;
  padding: 15px 30px;
  font-size: 16px;
  line-height: 16px;
  border-radius: 5px;
  background: var(--menu-gold);
  color: var(--btn-on-accent);
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
.nm-btn--nl:hover {
  background: var(--btn-nl-hover);
  color: var(--on-light);
}
.nm-nl-msg {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1.15rem;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid transparent;
  box-sizing: border-box;
}
.nm-nl-msg--ok {
  background: var(--msg-ok-bg);
  border-color: var(--msg-ok-border);
  color: var(--msg-ok-text);
}
.nm-nl-msg--error {
  background: var(--msg-error-bg);
  border-color: var(--msg-error-border);
  color: var(--msg-error-text);
}
.nm-nl-msg--warn {
  background: var(--msg-warn-bg);
  border-color: var(--msg-warn-border);
  color: var(--msg-warn-text);
}
.nm-nl-msg--info {
  background: var(--msg-info-bg);
  border-color: var(--msg-info-border);
  color: var(--msg-info-text);
}

.nm-block { margin-top: 2rem; }
.nm-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}
@media (max-width: 991px) {
  .nm-page-hero {
    height: 200px;
  }
  .nm-page-hero__title {
    padding-top: 64px;
  }
  .nm-page-hero--articole .nm-page-hero__title,
  .nm-page-hero--no-image .nm-page-hero__title {
    padding-top: 50px;
  }
  .nm-page-hero--emisiuni .nm-page-hero__title {
    padding-top: 64px;
  }
  .nm-page-hero__title h1 {
    font-size: 36px;
    line-height: 36px;
  }
}
@media (max-width: 576px) {
  .nm-page-hero__title h1 {
    font-size: 22px;
    line-height: 22px;
  }
}

/* —— Single produs (Drupal structure parity) —— */
.nm-produs { padding-bottom: 2rem; }
.nm-produs-section { padding: 2rem 0 0.75rem; }
.nm-produs-section__title {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.nm-produs-section__title--left { text-align: left; }

.nm-related {
  --nm-related-gap: 1.25rem;
  position: relative;
}
.nm-related__track {
  display: flex;
  gap: var(--nm-related-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.nm-related__track::-webkit-scrollbar { display: none; }
.nm-related__slide {
  flex: 0 0 calc((100% - 3 * var(--nm-related-gap)) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
@media (max-width: 1100px) {
  .nm-related__slide { flex-basis: calc((100% - 2 * var(--nm-related-gap)) / 3); }
}
@media (max-width: 860px) {
  .nm-related__slide { flex-basis: calc((100% - var(--nm-related-gap)) / 2); }
}
@media (max-width: 576px) {
  .nm-related__slide { flex-basis: 100%; }
}
.nm-related__prev,
.nm-related__next {
  position: absolute;
  top: 28%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  background: rgba(28, 31, 36, 0.75);
  color: var(--on-light);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.nm-related__prev:hover:not(:disabled),
.nm-related__next:hover:not(:disabled) {
  background: rgba(28, 31, 36, 0.92);
}
.nm-related__prev:disabled,
.nm-related__next:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.nm-related__prev { left: 0.35rem; }
.nm-related__next { right: 0.35rem; }
.nm-related__prev[hidden],
.nm-related__next[hidden] { display: none; }

/* AEO — FAQ after related products */
.nm-aeo__answer {
  max-width: 70ch;
  margin: 0 0 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.nm-aeo__faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 70ch;
}
.nm-aeo__item {
  background: var(--surface);
  border: 1px solid var(--border);
}
.nm-aeo__q {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  line-height: 1.35;
}
.nm-aeo__q::-webkit-details-marker { display: none; }
.nm-aeo__q::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  margin-right: 0.35rem;
  color: var(--menu-gold);
  font-weight: 700;
}
.nm-aeo__item[open] .nm-aeo__q::before { content: "-"; }
.nm-aeo__a {
  padding: 0 1rem 0.85rem 2.2rem;
  line-height: 1.55;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.65rem;
}
.nm-aeo__list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.nm-aeo__list li {
  margin: 0.2rem 0;
}

.nm-produs-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.nm-produs-col--stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
.nm-info-box {
  background: var(--surface);
  border: 1px solid var(--border);
}
.nm-info-box__title {
  background: var(--charcoal);
  color: var(--menu-gold);
  font-weight: 700;
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.3;
}
.nm-info-rows { padding: 0.35rem 0; }
.nm-info-row {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.98rem;
}
.nm-info-row:last-child { border-bottom: 0; }
.nm-info-row span {
  color: var(--label);
  font-weight: 600;
  margin-right: 0.25rem;
}
.nm-info-row a {
  color: var(--accent-deep);
  font-weight: 600;
}
.nm-info-row a:hover {
  color: var(--ink);
}

.nm-info-box--tiraj { margin-top: 0; }
.nm-tiraj-table { padding: 0.35rem 0 0.5rem; }
.nm-tiraj-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.2fr 1.4fr;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}
.nm-tiraj-row:last-child { border-bottom: 0; }
.nm-tiraj-row:nth-child(odd) { background: var(--surface-3); }
.nm-tiraj-row--head {
  font-weight: 700;
  background: transparent !important;
  border-bottom: 1px solid var(--border);
}

.nm-emisiune-item,
.nm-face-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.nm-emisiune-item:last-child,
.nm-face-item:last-child { border-bottom: 0; }
.nm-emisiune-item__img,
.nm-face-item__img {
  width: 100px;
  max-width: 100px;
  flex: 0 0 100px;
  overflow: hidden;
  justify-self: end;
}
.nm-emisiune-item__img img,
.nm-face-item__img img,
img.nm-detail-img {
  display: block !important;
  width: 100px !important;
  max-width: 100px !important;
  height: auto !important;
  margin: 0 auto;
  background: var(--surface-3);
}
.nm-emisiune-item__body { margin-top: 0.5rem; }

.nm-gallery { margin-top: 0.5rem; }
.nm-gallery__caption {
  text-align: center;
  padding: 0.5rem 0.75rem;
  color: var(--menu-gold);
  font-size: 0.92rem;
  margin: 0;
  background: #000;
  border-top: 0;
}

@media (max-width: 860px) {
  .nm-produs-cols { grid-template-columns: 1fr; }
  .nm-tiraj-row { grid-template-columns: 1fr 1fr; }
  .nm-emisiune-item,
  .nm-face-item { grid-template-columns: minmax(0, 1fr) 100px; }
}

.nm-gallery {
  position: relative;
  margin: 1.25rem 0 2rem;
  overflow: hidden;
}
.nm-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  scrollbar-width: none;
}
.nm-gallery__track::-webkit-scrollbar { display: none; }
.nm-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}
.nm-gallery__slide img { margin-inline: auto; }
.nm-gallery__prev,
.nm-gallery__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(28,31,36,.75);
  color: var(--on-light);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
}
.nm-gallery__prev:hover:not(:disabled),
.nm-gallery__next:hover:not(:disabled) {
  background: rgba(28, 31, 36, 0.92);
}
.nm-gallery__prev:disabled,
.nm-gallery__next:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.nm-gallery__prev { left: 0.5rem; }
.nm-gallery__next { right: 0.5rem; }

.nm-face-row,
.nm-row-emisiune {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}
.nm-face-row img,
.nm-row-emisiune img {
  width: 100px;
  max-width: 100px;
  height: auto;
}

.nm-footer {
  background: var(--chrome-bg);
  color: var(--footer-muted);
  padding: 2rem 0;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}
.nm-footer__inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-inline: 3.75rem;
  box-sizing: border-box;
}
.nm-footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.nm-footer a { color: var(--menu-gold); text-decoration: none; }
.nm-footer a:hover { color: var(--accent-soft); }
.nm-copy { margin: 0; color: var(--footer-muted); }

.nm-floating-br {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 80;
}
.nm-floating-bl {
  position: fixed;
  left: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 80;
}
.nm-float-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 0;
  background: var(--charcoal);
  color: var(--menu-gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.nm-float-btn--link { line-height: 0; }
.nm-float-btn:hover,
.nm-float-btn[aria-expanded="true"] {
  background: var(--menu-gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.nm-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(44rem, calc(100% - 2 * var(--space)));
  background: var(--charcoal);
  color: var(--on-dark);
  border: 1px solid rgba(253, 147, 3, 0.35);
  padding: 1.15rem 1.25rem 1.25rem;
  z-index: 95;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.nm-cookie-banner[hidden],
.nm-cookie-modal[hidden],
.nm-a11y-panel[hidden] { display: none !important; }
.nm-cookie-banner__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}
.nm-cookie-banner__close:hover { opacity: 1; color: var(--menu-gold); }
.nm-cookie-banner__text {
  margin: 0 1.5rem 0.45rem 0;
  font-size: 0.98rem;
  line-height: 1.45;
}
.nm-cookie-banner__sub {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--footer-muted);
}
.nm-cookie-banner__sub a { color: var(--menu-gold); }
.nm-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nm-cookie-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
}
.nm-cookie-btn--primary {
  background: var(--menu-gold);
  color: var(--ink);
}
.nm-cookie-btn--primary:hover { background: var(--accent-soft); }
.nm-cookie-btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.28);
}
.nm-cookie-btn--ghost:hover {
  border-color: var(--menu-gold);
  color: var(--menu-gold);
}

.nm-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--space);
}
.nm-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 23, 0.65);
}
.nm-cookie-modal__dialog {
  position: relative;
  width: min(36rem, 100%);
  max-height: min(90vh, 40rem);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--menu-gold);
}
.nm-cookie-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.nm-cookie-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.nm-cookie-modal__head .nm-cookie-banner__close { color: var(--ink); position: static; }
.nm-cookie-modal__intro {
  margin: 0 0 1rem;
  color: var(--hint);
  font-size: 0.95rem;
}
.nm-cookie-cats { display: grid; gap: 0.65rem; margin-bottom: 1.1rem; }
.nm-cookie-cat {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  background: var(--surface-2);
}
.nm-cookie-cat p,
.nm-cookie-cat__desc {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--hint);
  font-size: 0.9rem;
}
.nm-cookie-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.nm-cookie-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--menu-gold);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.nm-cookie-cat input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--menu-gold);
}
.nm-cookie-modal .nm-cookie-btn--ghost {
  color: var(--ink);
  border-color: var(--border-chip);
}
.nm-cookie-modal .nm-cookie-btn--ghost:hover {
  border-color: var(--menu-gold);
  color: var(--accent-deep);
}

.nm-a11y-panel {
  position: fixed;
  right: 4.2rem;
  bottom: 0.9rem;
  width: min(22rem, calc(100vw - 5.5rem));
  max-height: min(80vh, 36rem);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1rem 1.15rem;
  z-index: 90;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--menu-gold);
}
.nm-a11y-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.nm-a11y-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.nm-a11y-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.nm-a11y-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.nm-a11y-chip {
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.nm-a11y-chip:hover { border-color: var(--menu-gold); color: var(--accent-deep); }
.nm-a11y-group {
  border-top: 1px solid var(--border-soft);
  padding-top: 0.75rem;
  margin-top: 0.65rem;
}
.nm-a11y-group h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.nm-a11y-hint {
  margin: 0 0 0.5rem;
  color: var(--hint-soft);
  font-size: 0.82rem;
}
.nm-a11y-font {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  gap: 0.4rem;
  align-items: center;
}
.nm-a11y-font button {
  height: 2.4rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.nm-a11y-font span {
  text-align: center;
  font-weight: 700;
  color: var(--accent-deep);
}
.nm-a11y-grid {
  display: grid;
  gap: 0.4rem;
}
.nm-a11y-opt {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.nm-a11y-opt:hover,
.nm-a11y-opt.is-active {
  border-color: var(--menu-gold);
  background: var(--surface-hover);
  color: var(--accent-deep);
}

html { font-size: calc(100% * var(--nm-font-scale, 1)); }
body.nm-underline-links a { text-decoration: underline; }
body.nm-underline-titles h1,
body.nm-underline-titles h2,
body.nm-underline-titles h3,
body.nm-underline-titles h4 { text-decoration: underline; }
body.nm-reduce-motion *,
body.nm-reduce-motion *::before,
body.nm-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
/* Apply visual filters only on page chrome/content — never on floating tools
   (filter on body breaks position:fixed and can hide a11y/cookie icons). */
body.nm-grayscale .nm-header,
body.nm-grayscale .nm-main,
body.nm-grayscale .nm-footer {
  filter: grayscale(1);
}
body.nm-contrast {
  background: #000 !important;
  color: #fff !important;
}
body.nm-contrast a { color: #ffe08a !important; }
body.nm-contrast .nm-header,
body.nm-contrast .nm-footer,
body.nm-contrast .nm-info-box,
body.nm-contrast .nm-info-box__title,
body.nm-contrast .nm-aeo__item {
  background: #000 !important;
  border-color: #fff !important;
  color: #fff !important;
}
body.nm-contrast .nm-info-row,
body.nm-contrast .nm-tiraj-row,
body.nm-contrast .nm-emisiune-item,
body.nm-contrast .nm-face-item {
  border-color: #fff !important;
}
body.nm-contrast .nm-info-row span,
body.nm-contrast .nm-muted,
body.nm-contrast .nm-section__lead {
  color: #fff !important;
}
body.nm-contrast .nm-tiraj-row:nth-child(odd) {
  background: #111 !important;
}
body.nm-invert .nm-header,
body.nm-invert .nm-main,
body.nm-invert .nm-footer {
  filter: invert(1) hue-rotate(180deg);
}
body.nm-invert .nm-header img,
body.nm-invert .nm-main img,
body.nm-invert .nm-footer img,
body.nm-invert .nm-main video,
body.nm-invert .nm-gallery {
  filter: invert(1) hue-rotate(180deg);
}
body.nm-grayscale.nm-invert .nm-header,
body.nm-grayscale.nm-invert .nm-main,
body.nm-grayscale.nm-invert .nm-footer {
  filter: grayscale(1) invert(1) hue-rotate(180deg);
}
body.nm-cursor-light,
body.nm-cursor-light * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='10' cy='10' r='8' fill='%23fff' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 10 10, auto !important;
}
body.nm-cursor-dark,
body.nm-cursor-dark * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='10' cy='10' r='8' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 10 10, auto !important;
}

@media (max-width: 860px) {
  .nm-a11y-panel {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 4.4rem;
    width: auto;
  }
  .nm-cookie-actions { flex-direction: column; }
  .nm-cookie-btn { width: 100%; text-align: center; }
}

@media (max-width: 860px) {
  .nm-header__inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 0.65rem 0 0.85rem;
    gap: 0.75rem;
  }
  .nm-brand { order: 1; }
  .nm-theme-toggle {
    order: 2;
    margin-left: auto;
  }
  .nm-burger {
    display: block;
    order: 3;
    margin-left: 0;
  }
  .nm-search {
    order: 4;
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  .nm-nav {
    display: none;
    order: 5;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem var(--space) 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nm-nav.is-open { display: flex; }
  .nm-menu { flex-direction: column; }
  .nm-face-row,
  .nm-row-emisiune { grid-template-columns: 1fr; }
  .nm-footer {
    padding: 2rem 0;
    text-align: center;
  }
  .nm-footer__inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    padding-inline: 4rem;
  }
  .nm-footer-nav {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
  }
}

/* —— 404 —— */
body.error404 {
  background:
    radial-gradient(ellipse 80% 60% at 50% 12%, rgba(253, 147, 3, 0.14), transparent 55%),
    linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 45%, var(--paper-deep) 100%);
}
body.error404 .nm-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  background: transparent;
}
.nm-404 {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  overflow: hidden;
  background: transparent;
}
.nm-404__glow {
  position: absolute;
  inset: auto;
  width: min(28rem, 70vw);
  height: min(28rem, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 149, 46, 0.2), transparent 70%);
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: nm-404-pulse 6s ease-in-out infinite;
}
.nm-404__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  animation: nm-404-rise 0.7s ease-out both;
}
.nm-404__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 18vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--menu-gold);
  text-shadow: 0 2px 0 rgba(143, 79, 10, 0.15);
}
.nm-404__title {
  margin: 0.85rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nm-404__lead {
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  max-width: 28rem;
}
.nm-404__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.nm-404__ghost {
  color: var(--ink);
  border-color: rgba(18, 20, 23, 0.28);
}
.nm-404__ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--surface-3);
}
.nm-404__hint {
  margin: 1.75rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
@keyframes nm-404-rise {
  from { opacity: 0; transform: translateY(0.85rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes nm-404-pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .nm-404__inner,
  .nm-404__glow { animation: none; }
}

