/* ═══════════════════════════════════════════════════════════════════════════
   Namo Muse Classic · v0.7.0
   Precision Metalwork design system
   Engraved metal plate aesthetic · 3-layer edge shadow primitives
   ZERO !important · single token system · 4 themes (ice/rose/night/white)
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* ═══════════════ ROOT TOKENS ═══════════════ */
:root {
  --t-micro: 9px;  --t-mini: 10px; --t-small: 11px;
  --t-body: 13px;  --t-h4: 15px;   --t-h3: 18px;
  --t-h2: 24px;    --t-h1: 32px;   --t-display: 56px;

  --tracking-wide: 0.14em;
  --tracking-mid: 0.06em;
  --tracking-tight: -0.02em;

  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
  --radius-lg: 10px; --radius-xl: 14px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;

  --hairline: 1px;

  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --font-sans: "Inter Tight", "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Inter Tight", "Inter", "Noto Sans SC", sans-serif;

  --type: 15px;
  --density: 1;
}

/* ═══════════════ THEME · ICE (default — steel-blue HUD) ═══════════════ */
:root, [data-aesthetic="ice"] {
  --bg-0: #e8eff6; --bg-1: #ffffff; --bg-2: #f3f7fb;
  --bg-3: #e8f0f6; --bg-4: #dce8f0; --bg-inset: #e0e9f1;
  --fg-0: #1a2a36; --fg-1: #2a4a5e; --fg-2: #4a6a7e;
  --fg-3: #6a8a9e; --fg-mark: #000;
  --txt-engrave: 0 1px 1px rgba(255, 255, 255, 0.7);
  --edge-bright: rgba(255, 255, 255, 0.9);
  --edge-mid: rgba(255, 255, 255, 0.5);
  --edge-deep: rgba(60, 100, 140, 0.16);
  --edge-engrave: rgba(60, 100, 140, 0.12);
  --accent: #5a9fd4; --accent-dim: #3b85bb; --accent-bright: #7eb8e0;
  --accent-glow: rgba(90, 159, 212, 0.32);
  --signal-good: #4d9d75; --signal-warn: #d99054;
  --signal-bad: #c85a4f; --signal-info: #5a85d4;
  --signal-glow: rgba(77, 157, 117, 0.3);
  --shadow-card:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 2px rgba(60, 100, 140, 0.04),
    0 4px 14px rgba(90, 159, 212, 0.08);
  --shadow-card-strong:
    inset 0 1px 0 var(--edge-bright),
    inset 0 0 0 1px var(--edge-mid),
    inset 0 -1px 0 var(--edge-deep),
    0 2px 4px rgba(60, 100, 140, 0.05),
    0 8px 24px rgba(90, 159, 212, 0.14),
    0 24px 48px rgba(90, 159, 212, 0.08);
  --shadow-inset:
    inset 0 1px 0 var(--edge-deep),
    inset 0 -1px 0 var(--edge-bright),
    inset 0 2px 4px rgba(60, 100, 140, 0.08);
  --shadow-button:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 2px rgba(60, 100, 140, 0.06);
  --grid-line: rgba(90, 159, 212, 0.05);
  --grid-line-strong: rgba(90, 159, 212, 0.09);
  --body-bg: #e8eff6;
}

/* ═══════════════ THEME · ROSE (warm coral metalwork) ═══════════════ */
[data-aesthetic="rose"] {
  --bg-0: #fbf2f4; --bg-1: #fff6f8; --bg-2: #fffafc;
  --bg-3: #ffffff; --bg-4: #ffffff; --bg-inset: #f0e0e6;
  --fg-0: #2a1320; --fg-1: #4a2535; --fg-2: #804e62;
  --fg-3: #a37588; --fg-mark: #000;
  --txt-engrave: 0 1px 1px rgba(255, 255, 255, 0.7);
  --edge-bright: rgba(255, 255, 255, 0.95);
  --edge-mid: rgba(255, 255, 255, 0.5);
  --edge-deep: rgba(140, 40, 80, 0.16);
  --edge-engrave: rgba(140, 40, 80, 0.10);
  --accent: #c8497a; --accent-dim: #9a2f5a; --accent-bright: #e06a9a;
  --accent-glow: rgba(200, 73, 122, 0.25);
  --signal-good: #4d8266; --signal-warn: #c8853e;
  --signal-bad: #c84540; --signal-info: #6b6db5;
  --signal-glow: rgba(77, 130, 102, 0.25);
  --shadow-card:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 2px rgba(140, 40, 80, 0.06),
    0 4px 14px rgba(200, 73, 122, 0.10);
  --shadow-card-strong:
    inset 0 1px 0 var(--edge-bright),
    inset 0 0 0 1px var(--edge-mid),
    inset 0 -1px 0 var(--edge-deep),
    0 2px 4px rgba(140, 40, 80, 0.06),
    0 8px 28px rgba(200, 73, 122, 0.14);
  --shadow-inset:
    inset 0 1px 0 var(--edge-deep),
    inset 0 -1px 0 var(--edge-bright),
    inset 0 2px 6px rgba(140, 40, 80, 0.08);
  --shadow-button:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 2px rgba(140, 40, 80, 0.08);
  --grid-line: rgba(200, 73, 122, 0.04);
  --grid-line-strong: rgba(200, 73, 122, 0.08);
  --body-bg: #fbf2f4;
}

/* ═══════════════ THEME · NIGHT (dark steel + brass) ═══════════════ */
[data-aesthetic="night"] {
  --bg-0: #0c0d0f; --bg-1: #14161a; --bg-2: #1a1d22;
  --bg-3: #21252b; --bg-4: #2a2f36; --bg-inset: #0a0b0d;
  --fg-0: #f2efe8; --fg-1: #d4cfc2; --fg-2: #9a9384;
  --fg-3: #6e695c; --fg-mark: #fff;
  --txt-engrave: 0 1px 1px rgba(0, 0, 0, 0.35);
  --edge-bright: rgba(255, 248, 230, 0.09);
  --edge-mid: rgba(255, 248, 230, 0.05);
  --edge-deep: rgba(0, 0, 0, 0.55);
  --edge-engrave: rgba(0, 0, 0, 0.40);
  --accent: #c28840; --accent-dim: #8a5f2c; --accent-bright: #e0a55a;
  --accent-glow: rgba(194, 136, 64, 0.35);
  --signal-good: #6db485; --signal-warn: #d9a154;
  --signal-bad: #c85a4f; --signal-info: #6b8db5;
  --signal-glow: rgba(109, 180, 133, 0.30);
  --shadow-card:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card-strong:
    inset 0 1px 0 var(--edge-bright),
    inset 0 0 0 1px var(--edge-mid),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.32),
    0 24px 48px rgba(0, 0, 0, 0.22);
  --shadow-inset:
    inset 0 1px 0 var(--edge-deep),
    inset 0 -1px 0 var(--edge-bright),
    inset 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-button:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 2px rgba(0, 0, 0, 0.40);
  --grid-line: rgba(255, 248, 230, 0.025);
  --grid-line-strong: rgba(255, 248, 230, 0.05);
  --body-bg: #0c0d0f;
}

/* ═══════════════ THEME · WHITE (paper — minimal graphite) ═══════════════ */
[data-aesthetic="white"] {
  --bg-0: #fafafa; --bg-1: #ffffff; --bg-2: #f5f5f5;
  --bg-3: #ededed; --bg-4: #e4e4e4; --bg-inset: #ececec;
  --fg-0: #161616; --fg-1: #2e2e2e; --fg-2: #5a5a5a;
  --fg-3: #8a8a8a; --fg-mark: #000;
  --txt-engrave: 0 1px 0 rgba(255, 255, 255, 0.6);
  --edge-bright: rgba(255, 255, 255, 0.95);
  --edge-mid: rgba(255, 255, 255, 0.5);
  --edge-deep: rgba(0, 0, 0, 0.10);
  --edge-engrave: rgba(0, 0, 0, 0.08);
  --accent: #3a3a3a; --accent-dim: #1f1f1f; --accent-bright: #555555;
  --accent-glow: rgba(58, 58, 58, 0.10);
  --signal-good: #4d9d75; --signal-warn: #b8853e;
  --signal-bad: #c85a4f; --signal-info: #5a85d4;
  --signal-glow: rgba(77, 157, 117, 0.20);
  --shadow-card:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-card-strong:
    inset 0 1px 0 var(--edge-bright),
    inset 0 0 0 1px var(--edge-mid),
    inset 0 -1px 0 var(--edge-deep),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-inset:
    inset 0 1px 0 var(--edge-deep),
    inset 0 -1px 0 var(--edge-bright),
    inset 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-button:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 2px rgba(0, 0, 0, 0.05);
  --grid-line: rgba(0, 0, 0, 0.04);
  --grid-line-strong: rgba(0, 0, 0, 0.08);
  --body-bg: #fafafa;
}

/* ═══════════════ SYSTEM (follow OS) ═══════════════ */
@media (prefers-color-scheme: dark) {
  [data-aesthetic="system"] {
    --bg-0: #0c0d0f; --bg-1: #14161a; --bg-2: #1a1d22;
    --bg-3: #21252b; --bg-4: #2a2f36; --bg-inset: #0a0b0d;
    --fg-0: #f2efe8; --fg-1: #d4cfc2; --fg-2: #9a9384;
    --fg-3: #6e695c; --fg-mark: #fff;
    --txt-engrave: 0 1px 1px rgba(0, 0, 0, 0.35);
    --edge-bright: rgba(255, 248, 230, 0.09);
    --edge-mid: rgba(255, 248, 230, 0.05);
    --edge-deep: rgba(0, 0, 0, 0.55);
    --edge-engrave: rgba(0, 0, 0, 0.40);
    --accent: #c28840; --accent-dim: #8a5f2c; --accent-bright: #e0a55a;
    --accent-glow: rgba(194, 136, 64, 0.35);
    --signal-good: #6db485; --signal-warn: #d9a154;
    --signal-bad: #c85a4f; --signal-info: #6b8db5;
    --signal-glow: rgba(109, 180, 133, 0.30);
    --shadow-card:
      inset 0 1px 0 var(--edge-bright),
      inset 0 -1px 0 var(--edge-deep),
      0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-card-strong:
      inset 0 1px 0 var(--edge-bright),
      inset 0 0 0 1px var(--edge-mid),
      inset 0 -1px 0 var(--edge-deep),
      0 8px 24px rgba(0, 0, 0, 0.32),
      0 24px 48px rgba(0, 0, 0, 0.22);
    --shadow-inset:
      inset 0 1px 0 var(--edge-deep),
      inset 0 -1px 0 var(--edge-bright),
      inset 0 2px 6px rgba(0, 0, 0, 0.45);
    --shadow-button:
      inset 0 1px 0 var(--edge-bright),
      inset 0 -1px 0 var(--edge-deep),
      0 1px 2px rgba(0, 0, 0, 0.40);
    --grid-line: rgba(255, 248, 230, 0.025);
    --grid-line-strong: rgba(255, 248, 230, 0.05);
    --body-bg: #0c0d0f;
  }
}

/* ═══════════════ LEGACY ALIASES ═══════════════ */
:root {
  --bg: var(--bg-0); --bg-tint: var(--bg-1);
  --frame: var(--bg-1); --panel: var(--bg-1);
  --panel-solid: var(--bg-2); --panel-inset: var(--bg-inset);
  --hud-bar: var(--bg-1);
  --text-deep: var(--fg-0); --text-mid: var(--fg-1);
  --text-sub: var(--fg-2); --text-light: var(--fg-3);
  --text-ghost: var(--fg-3);
  --accent-light: var(--accent-bright);
  --accent-pale: var(--bg-3);
  --accent-deep: var(--accent-dim);
  --signal: var(--signal-good); --signal-deep: var(--signal-good);
  --warn: var(--signal-warn); --bad: var(--signal-bad);
  --border: var(--edge-engrave); --border-solid: var(--edge-engrave);
  --border-fade: var(--edge-mid); --border-strong: var(--accent-dim);
  --fill-light: var(--edge-bright);
  --shadow-hover: var(--shadow-card-strong);
  --shadow-panel: var(--shadow-card-strong);
  --shadow-frame: var(--shadow-card-strong);
  --radius: var(--radius-lg);
}

/* ═══════════════ RESET & BASE ═══════════════ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--type);
  line-height: 1.55;
  color: var(--fg-0);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
body *::selection { background: var(--accent); color: var(--bg-0); }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-bright); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
[hidden] { display: none; }

/* ═══════════════ TYPOGRAPHY ═══════════════ */
.nm-frame h1, .nm-frame h2, .nm-frame h3, .nm-frame h4,
.nm-frame h5, .nm-frame h6 {
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.2;
}
.nm-frame h1 { font-size: var(--t-h1); font-weight: 600; letter-spacing: var(--tracking-tight); }
.nm-frame h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: var(--tracking-tight); }
.nm-frame h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.01em; }
.nm-frame h4 { font-size: var(--t-h4); font-weight: 600; }

/* ═══════════════ NAV ═══════════════ */
.nm-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-1);
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow:
    inset 0 -1px 0 var(--edge-bright),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
.nm-nav-in {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  gap: 24px;
}
.nm-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-0);
  text-decoration: none;
}
.nm-nav-logo-img { height: 24px; width: auto; }
.nm-nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-0);
  text-shadow: var(--txt-engrave);
}
.nm-nav-tag {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-wide);
  color: var(--accent-bright);
  background: var(--bg-2);
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-inset);
  text-transform: uppercase;
}
.nm-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nm-nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nm-nav-links a {
  color: var(--fg-2);
  font-size: var(--t-body);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nm-nav-links a:hover {
  color: var(--fg-0);
  background: var(--bg-2);
}
.nm-nav-links a.is-current {
  color: var(--accent-bright);
  background: var(--bg-2);
  box-shadow: var(--shadow-inset);
}
.nm-nav-toggle {
  background: var(--bg-2);
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-button);
  transition: color 0.15s, background 0.15s;
}
.nm-nav-toggle:hover {
  color: var(--accent-bright);
  background: var(--bg-3);
}
.nm-nav-toggle .nm-icon-moon { display: none; }
[data-aesthetic="night"] .nm-nav-toggle .nm-icon-sun { display: none; }
[data-aesthetic="night"] .nm-nav-toggle .nm-icon-moon { display: block; }
.nm-nav-glow { display: none; }

/* ═══════════════ FRAME ═══════════════ */
.nm-frame {
  max-width: 1440px;
  margin: 16px auto 0;
  position: relative;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-strong);
  overflow: hidden;
}
.nm-frame-corner-tl, .nm-frame-corner-br { display: none; }
.nm-frame-inner { position: relative; }

/* ═══════════════ HUD ═══════════════ */
.nm-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep);
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
}
.nm-hud-left, .nm-hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.nm-hud-id { color: var(--accent-bright); opacity: 0.9; }
.nm-hud-sep { color: var(--fg-3); }
.nm-hud-code { color: var(--signal-warn); opacity: 0.7; }
.nm-hud-label { color: var(--fg-3); letter-spacing: var(--tracking-wide); }
.nm-hud-online { color: var(--signal-good); }
.nm-hud-scan { display: none; }
.nm-hud-lights {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nm-hud-lights i {
  display: block;
  width: 3px;
  height: 10px;
  background: var(--signal-good);
  opacity: 0.85;
  box-shadow: 0 0 3px var(--signal-glow);
}
.nm-hud-lights i:nth-child(2) { opacity: 0.6; }
.nm-hud-lights i:nth-child(3) { opacity: 0.4; }

.nm-hud-bottom {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-1);
  border-top: 1px solid var(--edge-engrave);
  box-shadow:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep);
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-3);
}
.nm-hud-corner-l, .nm-hud-corner-r { display: none; }
.nm-hud-bottom-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nm-hud-b-accent { color: var(--accent-bright); }
.nm-hud-b-sep { opacity: 0.3; }

/* ═══════════════ MASTHEAD STRIP (v0.6.14 component) ═══════════════ */
.nm-masthead {
  position: relative;
  padding: 20px 32px;
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow:
    inset 0 1px 0 var(--edge-bright),
    0 1px 0 var(--edge-bright);
  background: var(--bg-1);
}
.nm-masthead-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.nm-masthead-cell {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.nm-masthead-stat {
  display: flex;
  flex-direction: column;
}
.nm-masthead-stat.is-right {
  align-items: flex-end;
  text-align: right;
}
.nm-masthead-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.nm-masthead-stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--fg-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.nm-masthead-stat-num.is-accent {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}
.nm-masthead-stat-num.is-mid {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nm-masthead-vbar {
  width: 1px;
  height: 36px;
  background: var(--edge-engrave);
  box-shadow: 1px 0 0 var(--edge-bright);
}
.nm-masthead-divider {
  height: 1px;
  background: var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
  position: relative;
}
.nm-masthead-divider::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 7px; height: 7px;
  background: var(--bg-1);
  box-shadow:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 0 0 1px var(--edge-engrave);
  transform: translateX(-50%) rotate(45deg);
}
.nm-masthead-center {
  text-align: center;
}
.nm-masthead-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--fg-0);
  text-transform: uppercase;
  text-shadow: var(--txt-engrave);
}
.nm-masthead-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.12em;
}

/* ═══════════════ STATS STRIP (v0.6.14) ═══════════════ */
.nm-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--edge-engrave);
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-bright);
  background: var(--bg-1);
}
.nm-stats-cell {
  padding: 18px 24px;
  position: relative;
}
.nm-stats-cell + .nm-stats-cell {
  border-left: 1px solid var(--edge-engrave);
  box-shadow: -1px 0 0 var(--edge-bright);
}
.nm-stats-cell-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.nm-stats-cell-num {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--fg-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  text-shadow: var(--txt-engrave);
}
.nm-stats-cell-num.is-accent {
  color: var(--accent);
}
.nm-stats-cell-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
}
.nm-stats-cell-tick {
  position: absolute;
  top: 8px; right: 12px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.5;
}
.nm-stats-cell-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal-good);
  box-shadow: 0 0 6px var(--signal-glow);
}

/* ═══════════════ SECTION HEAD (engraved double-row) ═══════════════ */
.nm-sect-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
  position: relative;
}
.nm-sect-no {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--accent);
  background: var(--bg-2);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-inset);
  text-transform: uppercase;
}
.nm-sect-bar {
  width: 3px;
  height: 18px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  flex-shrink: 0;
  border-radius: 0;
}
.nm-sect-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nm-sect-title {
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--fg-0);
  text-shadow: var(--txt-engrave);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.nm-sect-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.nm-sect-sub-accent { color: var(--accent); }
.nm-sect-cn { /* alias for legacy class */
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--fg-0);
  text-shadow: var(--txt-engrave);
  letter-spacing: -0.01em;
}
.nm-sect-line {
  flex: 1;
  height: 1px;
  background: var(--edge-engrave);
}
.nm-sect-more, .nm-sec-viewall {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-mini);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 12px;
  background: var(--bg-2);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-button);
  transition: color 0.2s;
}
.nm-sect-more:hover, .nm-sec-viewall:hover { color: var(--accent-bright); }

/* legacy nm-sec-head alias */
.nm-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
  position: relative;
}
.nm-sec-bar {
  width: 3px;
  height: 18px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  flex-shrink: 0;
}
.nm-sec-line {
  flex: 1;
  height: 1px;
  background: var(--edge-engrave);
}
.nm-sec-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 12px;
  position: relative;
}
.nm-sec-divider-line {
  flex: 1;
  height: 1px;
  background: var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
}
.nm-sec-divider-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}
.nm-sec-divider-dot {
  border-radius: 0;
  background: var(--fg-3);
}
.nm-sec-divider-dot:nth-child(1) { width: 3px; height: 3px; }
.nm-sec-divider-dot:nth-child(2) { width: 4px; height: 4px; background: var(--accent-dim); }
.nm-sec-divider-dot:nth-child(3) {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.nm-sec-divider-dot:nth-child(4) { width: 4px; height: 4px; background: var(--accent-dim); }
.nm-sec-divider-dot:nth-child(5) { width: 3px; height: 3px; }

/* ═══════════════ CATEGORY STRIP (v0.6.14) ═══════════════ */
.nm-cat-strip {
  padding: 14px 16px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nm-cat-strip-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
  padding: 5px 10px 5px 4px;
  border-right: 1px solid var(--edge-engrave);
  box-shadow: 1px 0 0 var(--edge-bright);
  margin-right: 8px;
}
.nm-cat-strip-label .acc { color: var(--accent); display: block; }
.nm-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
  color: var(--fg-1);
  background: var(--bg-2);
  box-shadow: var(--shadow-button);
  transition: color 0.15s, background 0.15s;
}
.nm-cat-chip:hover {
  color: var(--accent-bright);
  background: var(--bg-3);
}
.nm-cat-chip.is-active {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 2px 6px var(--accent-glow);
}
.nm-cat-chip-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
}
.nm-cat-chip.is-active .nm-cat-chip-count {
  color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════ NOW READING BAND (v0.6.14) ═══════════════ */
.nm-nowreading {
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  align-items: center;
  gap: 18px;
}
.nm-nowreading-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 18px;
  border-right: 1px solid var(--edge-engrave);
  box-shadow: 1px 0 0 var(--edge-bright);
}
.nm-nowreading-head-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.nm-nowreading-head-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-0);
  letter-spacing: -0.01em;
}
.nm-nowreading-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-right: 14px;
}
.nm-nowreading-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
}
.nm-nowreading-meta .who {
  color: var(--accent);
  font-weight: 600;
}
.nm-nowreading-tag {
  margin-left: auto;
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--bg-2);
  border-radius: 2px;
  box-shadow: var(--shadow-button);
}
.nm-nowreading-tag.live { color: var(--signal-good); }
.nm-nowreading-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: var(--fg-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════ MAIN LAYOUT (frame body + sidebar) ═══════════════ */
.nm-frame-body {
  padding: 24px;
}
/* The actual grid container — Halo template uses .nm-content with layout classappend */
.nm-frame-body > .nm-content,
.nm-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: flex-start;
}
.nm-content.nm-layout-two-column,
.nm-content.nm-layout-editorial {
  grid-template-columns: 1fr 320px;
}
.nm-content.nm-layout-three-grid {
  grid-template-columns: 1fr;
}
/* Also keep .nm-layout-grid for backward compat */
.nm-layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: flex-start;
}
.nm-main, .nm-posts-area {
  min-width: 0;
}
.nm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 80px;
}

/* Three-grid layout: full width no sidebar */
[data-homepage-layout="three-grid"] .nm-layout-grid {
  grid-template-columns: 1fr;
}

/* Editorial layout: 1fr 1fr */
[data-homepage-layout="editorial"] .nm-main { padding-right: 32px; }

/* ═══════════════ HCARD (article post card) — the signature element ═══════════════ */
.nm-card {
  position: relative;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 320px;
  display: block;
  text-decoration: none;
  color: #ffffff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.nm-card:hover {
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-2px);
}
.nm-card-bg-fb {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    /* subtle radial highlights */
    radial-gradient(circle at 25% 20%, rgba(95, 208, 232, 0.10), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(126, 184, 224, 0.08), transparent 55%),
    /* base deep gradient — independent of theme */
    linear-gradient(135deg, #0f1a2c 0%, #1a2a3e 50%, #0c1320 100%);
}
.nm-card-bg-fb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
  pointer-events: none;
}
.nm-card-bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.nm-card:hover .nm-card-bg-img {
  transform: scale(1.04);
}
.nm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 70% 30%, rgba(126, 184, 224, 0.10), transparent 60%),
    linear-gradient(180deg,
      rgba(8, 12, 20, 0.20) 0%,
      transparent 25%,
      transparent 50%,
      rgba(8, 12, 20, 0.55) 80%,
      rgba(8, 12, 20, 0.80) 100%);
  pointer-events: none;
}
.nm-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.nm-card-cat {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 4;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  letter-spacing: var(--tracking-mid);
  background: rgba(0, 0, 0, 0.50);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xs);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}
.nm-card-glass {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 14px 16px 16px;
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.32) 0%, rgba(8, 12, 20, 0.52) 100%);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 -2px 8px rgba(0, 0, 0, 0.25);
}
.nm-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}
.nm-card-meta::before {
  content: '//';
  color: var(--accent-bright);
  font-weight: 600;
}
.nm-card-meta time {
  color: rgba(255, 255, 255, 0.85);
}
.nm-card-meta-dot {
  width: auto;
  height: auto;
  background: none;
  display: inline-block;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
}
.nm-card-meta-dot::before {
  content: '::';
}
.nm-card-meta > span:last-child {
  color: var(--accent-bright);
  font-weight: 600;
}
.nm-card .nm-card-title,
h3.nm-card-title {
  position: relative;
  padding-left: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nm-card .nm-card-title::before,
h3.nm-card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  height: 1.05em;
  width: 3px;
  background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent-glow);
}
.nm-card .nm-card-desc,
p.nm-card-desc {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero variant (style=hero) */
.nm-card-hero {
  height: 480px;
}
.nm-card-hero .nm-card-glass {
  padding: 20px 24px 22px;
}
.nm-card-hero .nm-card-title {
  font-size: 24px;
  margin-bottom: 8px;
}
.nm-card-hero-top {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.nm-card-hero-badge,
.nm-card-hero-feed {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 35, 0.55);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.nm-card-hero-feed {
  background: rgba(126, 184, 224, 0.18);
  color: rgba(126, 184, 224, 0.98);
  border-color: rgba(126, 184, 224, 0.35);
}
.nm-card-hero-info {
  position: absolute;
  top: 16px; right: 16px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.16em;
  color: rgba(126, 184, 224, 0.9);
  text-transform: uppercase;
  background: rgba(15, 23, 35, 0.55);
  border: 1px solid rgba(126, 184, 224, 0.22);
  border-radius: var(--radius-xs);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  text-align: right;
  z-index: 5;
}
.nm-card-hero-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--signal-good);
  font-weight: 600;
}
.nm-card-hero:not(.nm-card-hero) .nm-card-hero-top,
.nm-card:not(.nm-card-hero) .nm-card-hero-top,
.nm-card:not(.nm-card-hero) .nm-card-hero-info,
.nm-card:not(.nm-card-hero) .nm-card-hero-live,
.nm-card:not(.nm-card-hero) .nm-card-hero-actions { display: none; }
.nm-card-hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}
.nm-card-hero-btn-primary,
.nm-card-hero-btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nm-card-hero-btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 6px var(--accent-glow);
}
.nm-card-hero-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Cover variant (left thumb / right body horizontal style) */
.nm-card-cover-style {
  height: 320px;
}

/* ═══════════════ CARD GRID ═══════════════ */
.nm-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.nm-cards-1 { grid-template-columns: 1fr; }
.nm-cards-2 { grid-template-columns: repeat(2, 1fr); }
.nm-cards-3 { grid-template-columns: repeat(3, 1fr); }
.nm-cards-4 { grid-template-columns: repeat(4, 1fr); }

.nm-cards-hz {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

/* HZ standard: side-by-side image+body */
.nm-hz-std {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 16px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--fg-0);
  transition: box-shadow 0.3s, transform 0.3s;
}
.nm-hz-std:hover {
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-2px);
}
.nm-hz-std-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-inset);
}
.nm-hz-std-fb {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f1a2c 0%, #1a2a3e 50%, #0c1320 100%);
  background-size: cover;
  background-position: center;
}
.nm-hz-std-cat {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: var(--radius-xs);
}
.nm-hz-std-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.nm-hz-std-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.nm-hz-std-title {
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--fg-0);
  margin: 0;
  line-height: 1.3;
}
.nm-hz-std-desc {
  font-size: var(--t-body);
  color: var(--fg-2);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nm-hz-std-read {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: auto;
}

/* HZ cover style */
.nm-hz-cover {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--fg-0);
  transition: box-shadow 0.3s, transform 0.3s;
}
.nm-hz-cover:hover {
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-2px);
}
.nm-hz-cover-img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #0f1a2c 0%, #1a2a3e 50%, #0c1320 100%);
}
.nm-hz-cover-fb {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f1a2c 0%, #1a2a3e 50%, #0c1320 100%);
  background-size: cover;
  background-position: center;
}
.nm-hz-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: var(--radius-xs);
}
.nm-hz-cover-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nm-hz-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.nm-hz-title {
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--fg-0);
  margin: 0;
  line-height: 1.3;
}
.nm-hz-desc {
  font-size: var(--t-body);
  color: var(--fg-2);
  margin: 0;
  line-height: 1.6;
}
.nm-hz-read {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: auto;
}

/* HZ hero — full-width with overlay panel */
.nm-hz-hero {
  position: relative;
  display: block;
  height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card-strong);
  text-decoration: none;
  color: #fff;
}
.nm-hz-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2a36, #2a4a5e);
  background-size: cover;
  background-position: center;
}
.nm-hz-hero-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 50% 0%, transparent 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.6) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 35%, rgba(0,0,0,0.7) 95%);
}
.nm-hz-hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 320px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}
.nm-hz-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}
.nm-hz-hero-content {
  position: absolute;
  inset: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nm-hz-hero-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nm-hz-hero-badge {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(15, 23, 35, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xs);
}
.nm-hz-hero-feed {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(126, 184, 224, 0.18);
  color: rgba(126, 184, 224, 0.98);
  border: 1px solid rgba(126, 184, 224, 0.35);
  border-radius: var(--radius-xs);
}
.nm-hz-hero-panel {
  padding: 22px 26px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.4);
}
.nm-hz-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}
.nm-hz-hero-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--signal-good);
}
.nm-hz-hero-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.nm-hz-hero-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════ HERO (homepage main hero block) ═══════════════ */
.nm-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}
.nm-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.nm-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nm-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 50% 0%, transparent 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 35%, rgba(0,0,0,0.7) 95%);
  pointer-events: none;
}
.nm-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}
.nm-hero-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 380px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}
.nm-hero-corner {
  position: absolute;
  width: 18px; height: 18px;
  z-index: 6;
  pointer-events: none;
}
.nm-hero-corner.tl {
  top: 16px; left: 20px;
  border-top: 1px solid rgba(126, 184, 224, 0.55);
  border-left: 1px solid rgba(126, 184, 224, 0.55);
}
.nm-hero-corner.tr {
  top: 16px; right: 20px;
  border-top: 1px solid rgba(126, 184, 224, 0.55);
  border-right: 1px solid rgba(126, 184, 224, 0.55);
}
.nm-hero-corner.bl {
  bottom: 16px; left: 20px;
  border-bottom: 1px solid rgba(126, 184, 224, 0.55);
  border-left: 1px solid rgba(126, 184, 224, 0.55);
}
.nm-hero-corner.br {
  bottom: 16px; right: 20px;
  border-bottom: 1px solid rgba(126, 184, 224, 0.55);
  border-right: 1px solid rgba(126, 184, 224, 0.55);
}
.nm-hero-badges {
  position: absolute;
  top: 28px; left: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}
.nm-hero-badge {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 35, 0.6);
  color: #fff;
  border: 1px solid rgba(126, 184, 224, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
}
.nm-hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal-good);
  box-shadow: 0 0 8px var(--signal-good);
  animation: nm-pulse 2s ease-in-out infinite;
}
.nm-hero-badge.feed {
  background: rgba(126, 184, 224, 0.18);
  color: rgba(126, 184, 224, 0.98);
  border-color: rgba(126, 184, 224, 0.35);
}
.nm-hero-badge.cat {
  background: rgba(15, 23, 35, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.nm-hero-info {
  position: absolute;
  top: 28px; right: 32px;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 35, 0.55);
  border: 1px solid rgba(126, 184, 224, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  z-index: 5;
  text-align: right;
  color: rgba(126, 184, 224, 0.9);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nm-hero-info-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(126, 184, 224, 0.18);
}
.nm-hero-info-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--signal-good);
  box-shadow: 0 0 6px var(--signal-good);
}
.nm-hero-info-muted {
  color: rgba(255, 255, 255, 0.4);
}
.nm-hero-panel {
  position: absolute;
  left: 32px; right: 32px; bottom: 28px;
  z-index: 5;
}
.nm-hero-panel-inner {
  padding: 22px 26px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.4);
}
.nm-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  gap: 10px;
  flex-wrap: wrap;
}
.nm-hero-meta-divider {
  width: 2px; height: 10px;
  background: rgba(255, 255, 255, 0.3);
}
.nm-hero-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--signal-good);
}
.nm-hero-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}
.nm-hero-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 64ch;
  margin: 0 0 18px;
}
.nm-hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nm-hero-btn {
  padding: 11px 22px;
  border-radius: var(--radius-xs);
  border: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.nm-hero-btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 14px var(--accent-glow);
}
.nm-hero-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

@keyframes nm-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ═══════════════ CAROUSEL ═══════════════ */
.nm-carousel {
  position: relative;
}
.nm-carousel-track {
  display: flex;
  overflow: hidden;
}
.nm-carousel-slide {
  flex: 0 0 100%;
}
.nm-carousel-pager {
  position: absolute;
  bottom: 244px; right: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}
.nm-carousel-counter {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.14em;
}
.nm-carousel-arrow {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nm-carousel-arrow.next {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #0f172a;
  border: 0;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.nm-carousel-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nm-carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 240ms ease;
}
.nm-carousel-dot.is-active {
  width: 20px;
  background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent-glow);
}

/* ═══════════════ FEATURED GRID ═══════════════ */
.nm-featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.nm-featured-card.big {
  grid-row: 1 / 3;
}

/* ═══════════════ PAGINATION ═══════════════ */
.nm-pager {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.nm-pager-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nm-pager-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.nm-pager-num-curr {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.nm-pager-num-total {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}
.nm-pager-num-sep {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-3);
}
.nm-pager-chips {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nm-pager-chip {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: 0;
  background: var(--bg-2);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nm-pager-chip:hover { color: var(--accent-bright); background: var(--bg-3); }
.nm-pager-chip.is-active {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 6px var(--accent-glow);
}
.nm-pager-arrow {
  padding: 0 14px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 0;
  background: var(--bg-2);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nm-pager-arrow:hover { color: var(--accent-bright); background: var(--bg-3); }
.nm-pager-arrow.is-active {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
}

/* ═══════════════ BREADCRUMB ═══════════════ */
.nm-breadcrumb {
  max-width: 1440px;
  margin: 16px auto 0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.nm-breadcrumb a {
  color: var(--fg-2);
  text-decoration: none;
}
.nm-breadcrumb a:hover {
  color: var(--accent);
}
.nm-bc-sep {
  color: var(--fg-3);
  opacity: 0.5;
}
.nm-bc-current {
  color: var(--fg-1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR — 6 modules redesigned (plate base + svg icons + cyan corners)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Plate base for every sidebar module */
.nm-sb {
  position: relative;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}
.nm-sb:hover { box-shadow: var(--shadow-card-strong); }
.nm-sb-shine { display: none; }
.nm-sb-glass {
  /* Override legacy glass modifier — now plates */
  background: var(--bg-1);
}
.nm-sb::before,
.nm-sb::after { content: ''; position: absolute; width: 5px; height: 5px; z-index: 6; pointer-events: none; opacity: 0.5; transition: opacity 0.3s; }
.nm-sb::before {
  top: 4px; left: 4px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.nm-sb::after {
  bottom: 4px; right: 4px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.nm-sb:hover::before,
.nm-sb:hover::after { opacity: 1; }

.nm-sb-inner {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.nm-sb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
}
.nm-sb-icon {
  width: 24px;
  height: 24px;
  background: var(--bg-2);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-inset);
  flex-shrink: 0;
  font-size: 0; /* hide legacy emoji */
}
.nm-sb-icon-cyan,
.nm-sb-icon-teal,
.nm-sb-icon-green,
.nm-sb-icon-violet,
.nm-sb-icon-gold {
  color: var(--accent-bright);
}
.nm-sb-icon svg {
  width: 14px;
  height: 14px;
}
.nm-sb-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--t-body);
  color: var(--fg-0);
  letter-spacing: -0.01em;
  margin: 0;
}
.nm-sb-status-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: var(--bg-2);
  color: var(--signal-good);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-inset);
}
.nm-sb-pulse {
  position: relative;
  display: inline-flex;
  width: 6px;
  height: 6px;
}
.nm-sb-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--signal-good);
  animation: nm-sb-ping 2s ease-in-out infinite;
  opacity: 0.5;
}
.nm-sb-pulse::after {
  content: '';
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal-good);
  box-shadow: 0 0 4px var(--signal-glow);
}
@keyframes nm-sb-ping {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(2.2); opacity: 0; }
}

/* System Status module */
.nm-sys-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nm-sys-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  box-shadow: var(--shadow-inset);
  transition: background 0.2s;
}
.nm-sys-row:hover {
  background: var(--bg-3);
}
.nm-sys-icon {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
}
.nm-sys-name {
  font-size: 12px;
  color: var(--fg-1);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  flex: 1;
}
.nm-sys-dot-wrap {
  position: relative;
  display: flex;
  width: 10px;
  height: 10px;
}
.nm-sys-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: nm-sb-ping 2s ease-in-out infinite;
  opacity: 0.5;
}
.nm-sys-dot-core {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.nm-sys-ping.on,    .nm-sys-dot-core.on    { background: var(--signal-good); }
.nm-sys-ping.cyan,  .nm-sys-dot-core.cyan  { background: var(--signal-info); }
.nm-sys-ping.teal,  .nm-sys-dot-core.teal  { background: var(--accent); }
.nm-sys-state {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin-left: 4px;
}
.nm-sys-state.on   { color: var(--signal-good); }
.nm-sys-state.cyan { color: var(--signal-info); }
.nm-sys-state.teal { color: var(--accent); }

/* Author module */
.nm-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.nm-author-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nm-author-avatar-dots {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle 1.5px at 50% 4px, var(--accent), transparent 100%),
    radial-gradient(circle 1px at 100% 60px, var(--fg-3) 60%, transparent),
    radial-gradient(circle 1px at 0% 60px, var(--fg-3) 60%, transparent),
    radial-gradient(circle 1.5px at 50% 116px, var(--accent), transparent 100%);
  opacity: 0.5;
  z-index: 0;
}
.nm-author-avatar-outer {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  opacity: 0.5;
  z-index: 1;
}
.nm-author-avatar-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 4px 20px var(--accent-glow),
    0 8px 32px var(--accent-glow);
}
.nm-author-avatar-ring img,
.nm-author-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.nm-author-avatar-ph {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}
.nm-author-check {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--signal-good), #2a8f5a);
  border: 2px solid var(--bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--signal-glow);
  z-index: 3;
}
.nm-author-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-0);
  margin: 0 0 4px;
}
.nm-author-bio {
  font-size: var(--t-body);
  color: var(--fg-2);
  margin: 0 0 16px;
  line-height: 1.6;
}
.nm-author-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 8px;
  border-top: 1px solid var(--edge-engrave);
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-bright);
  width: 100%;
}
.nm-author-stat {
  text-align: center;
  flex: 1;
}
.nm-author-stat-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-0);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}
.nm-author-stat-label {
  display: block;
  font-size: 10px;
  color: var(--fg-3);
  margin-top: 2px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nm-author-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--edge-engrave);
  box-shadow: 1px 0 0 var(--edge-bright);
}

/* Recent Posts module */
.nm-recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nm-recent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  color: var(--fg-0);
  transition: background 0.2s;
}
.nm-recent-item:hover {
  background: var(--bg-2);
}
.nm-recent-bar {
  width: 3px;
  min-height: 36px;
  border-radius: 0;
  margin-top: 2px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  opacity: 0.4;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.nm-recent-item:hover .nm-recent-bar { opacity: 1; }
.nm-recent-body {
  flex: 1;
  min-width: 0;
}
.nm-recent-title {
  display: block;
  font-size: 13.5px;
  color: var(--fg-1);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nm-recent-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.nm-recent-cat {
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bg-2);
  box-shadow: var(--shadow-button);
  color: var(--fg-2);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nm-recent-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg-3);
  flex-shrink: 0;
  margin-top: 4px;
  transition: color 0.2s, transform 0.2s;
  opacity: 0.5;
}
.nm-recent-item:hover .nm-recent-arrow {
  color: var(--accent);
  opacity: 1;
  transform: translateX(2px);
}
.nm-sb-viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius-xs);
  font-size: var(--t-body);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  background: var(--bg-2);
  box-shadow: var(--shadow-button);
  transition: color 0.2s, background 0.2s;
}
.nm-sb-viewall:hover {
  color: var(--accent-bright);
  background: var(--bg-3);
}

/* Tags module */
.nm-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nm-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  letter-spacing: var(--tracking-mid);
  background: var(--bg-2);
  color: var(--fg-1);
  text-decoration: none;
  box-shadow: var(--shadow-button);
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}
.nm-tag-pill:hover {
  color: var(--accent-bright);
  background: var(--bg-3);
}
.nm-tag-count {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--fg-3);
  margin-left: 2px;
}
.nm-tag-pill:hover .nm-tag-count {
  color: var(--accent);
}

/* Archive / Friends module: "go to page" CTA */
.nm-friends-go {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  color: var(--fg-1);
  text-decoration: none;
  box-shadow: var(--shadow-button);
  transition: color 0.2s, background 0.2s;
}
.nm-friends-go:hover {
  background: var(--bg-3);
  color: var(--accent-bright);
}
.nm-friends-go-icon {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.nm-friends-go-text {
  flex: 1;
  font-size: 13px;
  font-family: var(--font-sans);
}
.nm-friends-go-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg-3);
  transition: color 0.2s, transform 0.2s;
}
.nm-friends-go:hover .nm-friends-go-arrow {
  color: var(--accent);
  transform: translateX(2px);
}
.nm-friends-hint {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   POST PAGE (single article)
   ═══════════════════════════════════════════════════════════════════════════ */
.nm-post-hero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto 24px;
  height: 360px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card-strong);
}
.nm-post-hero-bg-fb,
.nm-post-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f1a2c 0%, #1a2a3e 50%, #0c1320 100%);
}
.nm-post-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 50% 0%, transparent 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, transparent 0%, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.nm-post-hero-glass {
  position: absolute;
  inset: auto 32px 32px;
  padding: 24px 28px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.4);
  color: #fff;
}
.nm-post-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nm-post-hero-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nm-post-hero-cat {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(126, 184, 224, 0.2);
  color: rgba(126, 184, 224, 0.95);
  border: 1px solid rgba(126, 184, 224, 0.35);
  border-radius: var(--radius-xs);
  text-decoration: none;
}
.nm-post-hero-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.nm-post-hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  align-items: center;
}
.nm-post-hero-meta-divider {
  width: 2px; height: 10px;
  background: rgba(255, 255, 255, 0.3);
}

/* Article body */
.nm-post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.nm-post-content {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--fg-1);
}
.nm-post-content h1,
.nm-post-content h2,
.nm-post-content h3,
.nm-post-content h4 {
  color: var(--fg-0);
  margin-top: 2em;
  margin-bottom: 0.8em;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: var(--txt-engrave);
  position: relative;
  padding-left: 14px;
}
.nm-post-content h1::before,
.nm-post-content h2::before,
.nm-post-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  border-radius: 0;
}
.nm-post-content h1 { font-size: 28px; }
.nm-post-content h2 { font-size: 22px; }
.nm-post-content h3 { font-size: 18px; }
.nm-post-content h4 { font-size: 16px; }
.nm-post-content p { margin: 1.2em 0; color: var(--fg-1); }
.nm-post-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-glow);
  transition: color 0.2s, border-color 0.2s;
}
.nm-post-content a:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}
.nm-post-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-inset);
  color: var(--fg-2);
  font-style: italic;
}
.nm-post-content code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--bg-2);
  border-radius: var(--radius-xs);
  color: var(--accent);
  box-shadow: var(--shadow-button);
}
.nm-post-content pre {
  margin: 1.5em 0;
  padding: 18px;
  background: var(--bg-inset);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-inset);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-1);
}
.nm-post-content pre code {
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}
.nm-post-content ul,
.nm-post-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
  color: var(--fg-1);
}
.nm-post-content li { margin: 0.4em 0; }
.nm-post-content img {
  border-radius: var(--radius-sm);
  margin: 1.5em auto;
  box-shadow: var(--shadow-card);
}
.nm-post-content hr {
  border: 0;
  height: 1px;
  background: var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
  margin: 2em 0;
}
.nm-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}
.nm-post-content th,
.nm-post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--edge-engrave);
  text-align: left;
}
.nm-post-content th {
  font-weight: 600;
  color: var(--fg-0);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Post footer (tags + share + author card) */
.nm-post-footer {
  max-width: 800px;
  margin: 32px auto 0;
  padding: 24px;
  border-top: 1px solid var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
}
.nm-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.nm-post-tag {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  background: var(--bg-2);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-button);
  text-decoration: none;
}
.nm-post-tag:hover {
  color: var(--accent-bright);
  background: var(--bg-3);
}

/* Post nav (prev/next) */
.nm-post-nav {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nm-post-nav-card {
  position: relative;
  padding: 18px 20px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.3s;
  color: var(--fg-1);
  overflow: hidden;
}
.nm-post-nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, var(--accent-glow));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.nm-post-nav-card:hover {
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-2px);
}
.nm-post-nav-card:hover::before { opacity: 0.4; }
.nm-post-nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nm-post-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-0);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nm-post-nav-card.next { text-align: right; }
.nm-post-nav-card.next .nm-post-nav-label { justify-content: flex-end; }

/* ═══════════════════════════════════════════════════════════════════════════
   ARCHIVES / CATEGORIES / TAGS / AUTHOR / PAGE / ERROR
   ═══════════════════════════════════════════════════════════════════════════ */

/* Generic container helpers */
.nm-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.nm-container-narrow {
  max-width: 1000px;
}

/* Section header (used by tags / page / error pages) */
.nm-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
}
.nm-label-block {
  width: 3px;
  height: 18px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.nm-label-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}
.nm-section-en {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.nm-section-cn {
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--fg-0);
  letter-spacing: -0.01em;
  text-shadow: var(--txt-engrave);
}
.nm-section-divider {
  flex: 1;
  height: 1px;
  background: var(--edge-engrave);
}
.nm-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.nm-label-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}

/* Page (custom single page) — same shell as post */
.nm-post {
  max-width: 1440px;
  margin: 16px auto 0;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-strong);
  padding: 32px 24px 48px;
}
.nm-post-header {
  max-width: 800px;
  margin: 0 auto 32px;
}
.nm-post-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--fg-0);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: var(--txt-engrave);
}
.nm-post-title .bracket {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
  margin: 0 6px;
}

/* Tags index page */
.nm-tags-page { padding: 24px; }
.nm-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.nm-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 13px;
  text-decoration: none;
  box-shadow: var(--shadow-button);
  transition: color 0.15s, background 0.15s;
}
.nm-tag-item:hover {
  color: var(--accent-bright);
  background: var(--bg-3);
}
.nm-tag-name { font-weight: 500; }
.nm-tag-item .nm-tag-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  padding: 1px 5px;
  background: var(--bg-1);
  border-radius: 2px;
  box-shadow: var(--shadow-inset);
}

/* Error page */
.nm-error-page {
  padding: 80px 24px;
  text-align: center;
}
.nm-error-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-strong);
}
.nm-error-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 120px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.nm-error-deco {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--fg-3);
  margin: 0 0 20px;
}
.nm-error-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--fg-0);
  margin: 0 0 12px;
}
.nm-error-detail {
  font-size: 14px;
  color: var(--fg-2);
  margin: 0 0 28px;
  line-height: 1.6;
}
.nm-error-back {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius-xs);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 14px var(--accent-glow);
}
[data-aesthetic="night"] .nm-error-back { color: #0c0d0f; }
.nm-error-back:hover {
  color: #fff;
  filter: brightness(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.nm-footer {
  max-width: 1440px;
  margin: 24px auto 16px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 24px;
  text-align: center;
  color: var(--fg-2);
  font-size: var(--t-body);
  position: relative;
}
.nm-footer p {
  margin: 6px 0;
  color: var(--fg-2);
}
.nm-footer a {
  color: var(--fg-1);
  text-decoration: none;
  transition: color 0.15s;
}
.nm-footer a:hover { color: var(--accent-bright); }
.nm-footer-site {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-0);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nm-footer-beian {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.nm-footer-beian a {
  color: var(--fg-2);
}
.nm-footer-gongan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nm-gongan-icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}
.nm-footer-sep { color: var(--fg-3); }
.nm-footer-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nm-layout-grid {
    grid-template-columns: 1fr;
  }
  .nm-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
  .nm-masthead-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nm-masthead-divider,
  .nm-masthead-vbar { display: none; }
  .nm-masthead-cell { justify-content: center; }
  .nm-masthead-stat.is-right { align-items: center; text-align: center; }
  .nm-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .nm-stats-cell:nth-child(3) {
    border-top: 1px solid var(--edge-engrave);
    box-shadow: 0 -1px 0 var(--edge-bright);
  }
  .nm-stats-cell:nth-child(3),
  .nm-stats-cell:nth-child(4) {
    border-left-color: transparent;
  }
  .nm-stats-cell:nth-child(4) { border-left: 1px solid var(--edge-engrave); }
  .nm-featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .nm-featured-card.big { grid-row: auto; }
  .nm-cards-3, .nm-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .nm-hz-cover,
  .nm-hz-std { grid-template-columns: 1fr; }
  .nm-hz-cover-img,
  .nm-hz-std-cover { height: 200px; min-height: auto; }
}

@media (max-width: 640px) {
  .nm-nav-in { padding: 0 16px; height: 48px; }
  .nm-nav-logo { font-size: 12px; letter-spacing: 0.24em; }
  .nm-nav-tag { display: none; }
  .nm-nav-links { gap: 0; }
  .nm-nav-links a { padding: 4px 8px; font-size: 12px; }
  .nm-frame { margin: 8px; border-radius: var(--radius-xs); }
  .nm-frame-body { padding: 16px; }
  .nm-sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nm-cards,
  .nm-cards-2,
  .nm-cards-3,
  .nm-cards-4 { grid-template-columns: 1fr; }
  .nm-stats-strip { grid-template-columns: 1fr; }
  .nm-stats-cell + .nm-stats-cell {
    border-left: 0;
    border-top: 1px solid var(--edge-engrave);
    box-shadow: 0 -1px 0 var(--edge-bright);
  }
  .nm-nowreading {
    grid-template-columns: 1fr;
  }
  .nm-nowreading-head {
    border-right: 0;
    border-bottom: 1px solid var(--edge-engrave);
    box-shadow: 0 1px 0 var(--edge-bright);
    padding-right: 0;
    padding-bottom: 12px;
  }
  .nm-hero { height: 360px; }
  .nm-hero-watermark { font-size: 220px; }
  .nm-hero-info { display: none; }
  .nm-hero-badges { left: 16px; top: 16px; flex-wrap: wrap; }
  .nm-hero-panel { left: 16px; right: 16px; bottom: 16px; }
  .nm-hero-panel-inner { padding: 16px; }
  .nm-pager {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nm-pager-info, .nm-pager-chips { justify-content: center; }
  .nm-post-hero-glass { left: 16px; right: 16px; bottom: 16px; padding: 16px 18px; }
  .nm-post-body { padding: 0 16px 32px; }
  .nm-post-nav { grid-template-columns: 1fr; padding: 0 16px 32px; }
  .nm-footer { margin: 16px 8px 8px; padding: 18px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOOT SCREEN — cinematic dark cabin startup, theme-independent
   Hardcoded colors so all themes (ice/rose/night/white) show the same boot
   ═══════════════════════════════════════════════════════════════════════════ */

/* Boot palette (independent of theme tokens) */
.nm-boot {
  --boot-bg: #050811;
  --boot-panel: #0a0f1c;
  --boot-fg: #e8f2ff;
  --boot-fg-dim: #94b4d8;
  --boot-fg-deep: #4a6a8e;
  --boot-cyan: #5fd0e8;
  --boot-cyan-bright: #88e6ff;
  --boot-cyan-dim: #2a8aa8;
  --boot-cyan-glow: rgba(95, 208, 232, 0.45);
  --boot-good: #6dd49a;
  --boot-warn: #d99054;

  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 50% 20%, rgba(95, 208, 232, 0.05), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(95, 208, 232, 0.04), transparent 50%),
    var(--boot-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.nm-boot.is-done {
  opacity: 0;
  pointer-events: none;
}
.nb-content {
  position: relative;
  width: min(900px, 92vw);
  height: min(600px, 88vh);
  background:
    linear-gradient(180deg, rgba(95, 208, 232, 0.025), transparent 30%),
    var(--boot-panel);
  border: 1px solid rgba(95, 208, 232, 0.18);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(95, 208, 232, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(95, 208, 232, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  color: var(--boot-fg-dim);
  font-family: var(--font-mono);
}
.nb-wm {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 280px;
  color: var(--boot-cyan);
  opacity: 0.06;
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: 0;
}
.nb-corner {
  position: absolute;
  width: 24px; height: 24px;
  z-index: 5;
}
.nb-c-tl { top: 16px; left: 16px; }
.nb-c-tr { top: 16px; right: 16px; }
.nb-c-bl { bottom: 16px; left: 16px; }
.nb-c-br { bottom: 16px; right: 16px; }
.nb-corner .nb-cv {
  position: absolute;
  width: 1px; height: 100%;
  background: var(--boot-cyan);
  box-shadow: 0 0 4px var(--boot-cyan-glow);
}
.nb-corner .nb-ch {
  position: absolute;
  width: 100%; height: 1px;
  background: var(--boot-cyan);
  box-shadow: 0 0 4px var(--boot-cyan-glow);
}
.nb-c-tl .nb-cv { left: 0; top: 0; }
.nb-c-tl .nb-ch { left: 0; top: 0; }
.nb-c-tr .nb-cv { right: 0; top: 0; }
.nb-c-tr .nb-ch { right: 0; top: 0; }
.nb-c-bl .nb-cv { left: 0; bottom: 0; }
.nb-c-bl .nb-ch { left: 0; bottom: 0; }
.nb-c-br .nb-cv { right: 0; bottom: 0; }
.nb-c-br .nb-ch { right: 0; bottom: 0; }

.nb-hud-tl, .nb-hud-tr {
  position: absolute;
  z-index: 3;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--boot-fg-deep);
  text-transform: uppercase;
}
.nb-hud-tl { top: 32px; left: 32px; max-width: 220px; }
.nb-hud-tr { top: 32px; right: 32px; max-width: 220px;
  display: flex; flex-direction: column; gap: 3px; text-align: right; }
.nb-hud-line { color: var(--boot-cyan-bright); margin-bottom: 6px; text-shadow: 0 0 4px var(--boot-cyan-glow); }
.nb-hud-dim { color: var(--boot-fg-deep); margin-bottom: 8px; }
.nb-hud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
  font-size: 8px;
  color: var(--boot-fg-deep);
}
.nb-center {
  position: absolute;
  top: 48%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
}
.nb-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--boot-fg);
  letter-spacing: 0.18em;
  text-shadow:
    0 0 24px var(--boot-cyan-glow),
    0 0 48px rgba(95, 208, 232, 0.25);
  margin: 0;
}
.nb-sub {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--boot-fg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nb-diamond { color: var(--boot-cyan); text-shadow: 0 0 4px var(--boot-cyan-glow); }
.nb-pulse { color: var(--boot-good); animation: nm-pulse 1.5s infinite; }

/* Character container — JS injects <img> elements that position themselves
   inside this box via inline style (bottom/right/height:100vh). We just need
   .nb-char to be a positioning anchor and not block visibility. */
.nb-char {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
/* The two <img> children get inline styles from main.js (height:100vh etc.)
   We don't override those — but provide a default for the open/closed states
   in case the JS class hooks are referenced. */
.nb-char .nb-char-closed,
.nb-char .nb-char-open {
  /* Inline styles from JS take precedence; this is a no-op safety net. */
}

.nb-bl {
  position: absolute;
  bottom: 28px;
  left: 32px;
  z-index: 4;
  width: 280px;
}
.nb-logs {
  font-size: 9px;
  color: var(--boot-fg-deep);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  max-height: 40px;
  overflow: hidden;
}
.nb-date {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  color: var(--boot-cyan-bright);
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 4px var(--boot-cyan-glow);
}
.nb-datesep, .nb-dateslash { color: var(--boot-fg-deep); text-shadow: none; }
.nb-datebrand {
  margin-left: 8px;
  color: var(--boot-fg-deep);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-shadow: none;
}
.nb-loadrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--boot-fg-dim);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.nb-loadarrow { color: var(--boot-cyan); }
.nb-loaddash { opacity: 0.4; }
.nb-loadpct {
  color: var(--boot-cyan-bright);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 4px var(--boot-cyan-glow);
}
.nb-loaddots { color: var(--boot-fg-deep); }
.nb-bar {
  position: relative;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(95, 208, 232, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.nb-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--boot-cyan-dim), var(--boot-cyan), var(--boot-cyan-bright));
  box-shadow:
    0 0 8px var(--boot-cyan-glow),
    0 0 16px var(--boot-cyan-glow);
  width: 0%;
  transition: width 0.2s;
}
.nb-bar-glow {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 30px;
  background: linear-gradient(90deg, transparent, var(--boot-cyan-bright), transparent);
  opacity: 0.7;
  pointer-events: none;
  filter: blur(4px);
  left: 0%;
  transition: left 0.2s;
}

.nb-version {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--boot-fg-deep);
  z-index: 4;
}
.nb-br {
  position: absolute;
  bottom: 32px; right: 32px;
  text-align: right;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--boot-fg-deep);
  z-index: 4;
}

/* glitch layers */
.nb-flash, .nb-lightning {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
}
.nb-flash { background: rgba(255, 255, 255, 0.18); }
.nb-lightning {
  background:
    linear-gradient(90deg, transparent 40%, rgba(95, 208, 232, 0.5) 50%, transparent 60%);
}
.nb-tear {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  z-index: 7;
  pointer-events: none;
}
.nb-tear-line {
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--boot-cyan-bright), transparent);
  opacity: 0;
  box-shadow: 0 0 6px var(--boot-cyan-glow);
}
.nb-blackout {
  position: absolute;
  left: 0; right: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 7;
  pointer-events: none;
  opacity: 0;
}
.nb-shard-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(95, 208, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 208, 232, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.nb-page-dark {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #050811;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY FALLBACKS — hover-state class for cards without cover images
   ═══════════════════════════════════════════════════════════════════════════ */
.nm-cat-fallback-1 { background: linear-gradient(135deg, #5a9fd4, #3b85bb); }
.nm-cat-fallback-2 { background: linear-gradient(135deg, #4d9d75, #2a8f5a); }
.nm-cat-fallback-3 { background: linear-gradient(135deg, #d99054, #b8732e); }
.nm-cat-fallback-4 { background: linear-gradient(135deg, #c8497a, #9a2f5a); }
.nm-cat-fallback-5 { background: linear-gradient(135deg, #6b6db5, #4a4d8a); }

/* ═══════════════════════════════════════════════════════════════════════════
   AI CHAT OVERLAY — minimal styles, the chat module's own HTML handles bulk
   ═══════════════════════════════════════════════════════════════════════════ */
.nm-ai-chat-trigger {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px var(--accent-glow);
  z-index: 50;
  transition: transform 0.2s;
}
[data-aesthetic="night"] .nm-ai-chat-trigger { color: #0c0d0f; }
.nm-ai-chat-trigger:hover {
  transform: scale(1.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CAT-HERO BLOCK (category / tag / archives / categories listing pages)
   Watermark + grid + label + title + desc + meta stats
   ═══════════════════════════════════════════════════════════════════════════ */
.nm-cat-hero {
  position: relative;
  padding: 40px 32px 36px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow: inset 0 -1px 0 var(--edge-bright);
  overflow: hidden;
}
.nm-cat-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 80% 0%, var(--accent-glow), transparent 50%);
  opacity: 0.4;
  pointer-events: none;
}
.nm-cat-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.nm-cat-hero-glow {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.nm-cat-hero-wm {
  position: absolute;
  top: 50%; right: -20px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 220px;
  line-height: 0.9;
  color: var(--accent);
  opacity: 0.06;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.nm-cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.nm-cat-hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--bg-2);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-inset);
  margin-bottom: 14px;
}
.nm-cat-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--fg-0);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
  text-shadow: var(--txt-engrave);
}
.nm-cat-hero-desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 64ch;
  margin: 0 0 16px;
}
.nm-cat-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.nm-cat-hero-stat {
  padding: 4px 10px;
  background: var(--bg-1);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-button);
  color: var(--fg-2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARCHIVES TIMELINE
   ═══════════════════════════════════════════════════════════════════════════ */
.nm-arc-timeline {
  margin-top: 8px;
  padding: 24px;
}
.nm-arc-year-block {
  margin-bottom: 32px;
}
.nm-arc-year-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.nm-arc-year-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--fg-0);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: var(--txt-engrave);
}
.nm-arc-year-line {
  flex: 1;
  height: 1px;
  background: var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
}
.nm-arc-month-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.nm-arc-month-label {
  padding: 4px 8px;
  background: var(--bg-2);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-inset);
  text-align: center;
}
.nm-arc-month-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.nm-arc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nm-arc-item {
  display: grid;
  grid-template-columns: 56px 10px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  align-items: center;
  border-bottom: 1px solid var(--edge-engrave);
  transition: background 0.15s;
}
.nm-arc-item:last-child { border-bottom: 0; }
.nm-arc-item:hover { background: var(--bg-2); }
.nm-arc-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.nm-arc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent-glow);
  justify-self: center;
}
.nm-arc-link {
  font-size: 14px;
  color: var(--fg-1);
  text-decoration: none;
  line-height: 1.4;
}
.nm-arc-link:hover { color: var(--accent-bright); }

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORIES INDEX PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.nm-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px;
}
.nm-cat-card {
  position: relative;
  padding: 20px 22px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--fg-0);
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}
.nm-cat-card:hover {
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-2px);
}
.nm-cat-card-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--accent);
  opacity: 0.8;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.nm-cat-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.nm-cat-card-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-0);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.nm-cat-card-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nm-cat-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTHOR PAGE (single author)
   ═══════════════════════════════════════════════════════════════════════════ */
.nm-author-hero {
  position: relative;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow: inset 0 -1px 0 var(--edge-bright);
  overflow: hidden;
}
.nm-author-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 0% 100%, var(--accent-glow), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}
.nm-author-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.nm-author-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  max-width: 900px;
}
.nm-author-hero-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}
.nm-author-hero-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 4px 20px var(--accent-glow);
}
.nm-author-hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.nm-author-hero-avatar-ph {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}
.nm-author-hero-check {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--signal-good), #2a8f5a);
  border: 2px solid var(--bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--signal-glow);
}
.nm-author-hero-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.nm-author-hero-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}
.nm-author-hero-name {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--fg-0);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-shadow: var(--txt-engrave);
}
.nm-author-hero-bio {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0;
}
.nm-author-hero-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}
.nm-author-hero-stat {
  display: flex;
  flex-direction: column;
}
.nm-author-hero-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.nm-author-hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.nm-author-hero-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--edge-engrave);
  box-shadow: 1px 0 0 var(--edge-bright);
}

@media (max-width: 640px) {
  .nm-author-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .nm-cat-hero { padding: 28px 20px; }
  .nm-cat-hero-wm { font-size: 140px; right: -8px; }
  .nm-arc-month-block { grid-template-columns: 1fr; gap: 8px; }
  .nm-arc-month-label { justify-self: flex-start; }
  .nm-cats-grid { grid-template-columns: 1fr; padding: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPATIBILITY LAYER — older v0.6 class names mapped to new design
   ═══════════════════════════════════════════════════════════════════════════ */

/* Carousel aliases (.nm-c-* version) */
.nm-c-track { display: flex; overflow: hidden; }
.nm-c-slide { flex: 0 0 100%; position: relative; }
.nm-c-bg, .nm-c-bg-fallback {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.nm-c-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(140% 90% at 50% 0%, transparent 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, transparent 0%, transparent 30%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}
.nm-c-wm {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 900; font-size: 320px;
  color: rgba(255,255,255,0.045); letter-spacing: -0.06em;
  pointer-events: none; user-select: none;
}
.nm-c-corner-tl, .nm-c-corner-tr, .nm-c-corner-tr-dim {
  position: absolute; width: 18px; height: 18px; z-index: 6; pointer-events: none;
}
.nm-c-corner-tl {
  top: 16px; left: 20px;
  border-top: 1px solid rgba(126, 184, 224, 0.55);
  border-left: 1px solid rgba(126, 184, 224, 0.55);
}
.nm-c-corner-tr {
  top: 16px; right: 20px;
  border-top: 1px solid rgba(126, 184, 224, 0.55);
  border-right: 1px solid rgba(126, 184, 224, 0.55);
}
.nm-c-corner-tr-dim {
  bottom: 16px; left: 20px;
  border-bottom: 1px solid rgba(126, 184, 224, 0.35);
  border-left: 1px solid rgba(126, 184, 224, 0.35);
}
.nm-c-badge {
  position: absolute; top: 28px; left: 32px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 35, 0.6); color: #fff;
  border: 1px solid rgba(126, 184, 224, 0.4);
}
.nm-c-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal-good); box-shadow: 0 0 8px var(--signal-good);
}
.nm-c-feed {
  position: absolute; top: 28px; left: 220px; z-index: 5;
  padding: 6px 10px;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: var(--radius-xs);
  background: rgba(126, 184, 224, 0.18); color: rgba(126, 184, 224, 0.98);
  border: 1px solid rgba(126, 184, 224, 0.35);
}
.nm-c-cat {
  position: absolute; top: 28px; left: 130px; z-index: 5;
  padding: 6px 12px;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 35, 0.55); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.nm-c-info {
  position: absolute; top: 28px; right: 32px;
  padding: 12px 16px; border-radius: var(--radius-xs);
  background: rgba(15, 23, 35, 0.55);
  border: 1px solid rgba(126, 184, 224, 0.22);
  z-index: 5; text-align: right;
  color: rgba(126, 184, 224, 0.9);
  font-family: var(--font-mono); font-weight: 500;
  font-size: 9px; line-height: 1.7; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nm-c-title {
  font-size: clamp(24px, 3.5vw, 40px); font-weight: 600;
  color: #fff; letter-spacing: -0.02em;
  line-height: 1.15; margin: 0 0 10px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.nm-c-desc {
  font-size: 14px; color: rgba(255, 255, 255, 0.8);
  line-height: 1.6; max-width: 64ch; margin: 0 0 18px;
}
.nm-c-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.nm-c-btn {
  display: inline-block; padding: 11px 22px;
  border-radius: var(--radius-xs); border: 0;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  text-decoration: none;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 14px var(--accent-glow);
}
.nm-c-ctrl {
  position: absolute; bottom: 28px; right: 32px;
  display: flex; align-items: center; gap: 14px;
  padding: 6px 12px; border-radius: var(--radius-xs);
  background: rgba(15, 23, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 6;
}
.nm-c-arr {
  width: 22px; height: 22px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent; color: #fff;
  cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.nm-c-arr.next {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #0f172a; border: 0; font-weight: 700;
}
.nm-c-dots {
  display: flex; align-items: center; gap: 4px;
}

/* StatsStrip aliases (.nm-statsstrip-*) */
.nm-statsstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--edge-engrave);
  border-bottom: 1px solid var(--edge-engrave);
  box-shadow:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-bright);
  background: var(--bg-1);
}
.nm-statsstrip-cell {
  padding: 18px 24px;
  position: relative;
}
.nm-statsstrip-cell + .nm-statsstrip-cell {
  border-left: 1px solid var(--edge-engrave);
  box-shadow: -1px 0 0 var(--edge-bright);
}
.nm-statsstrip-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--fg-3); text-transform: uppercase;
}
.nm-statsstrip-num {
  margin-top: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; line-height: 1; color: var(--fg-0);
  font-variant-numeric: tabular-nums; letter-spacing: -0.025em;
  text-shadow: var(--txt-engrave);
}
.nm-statsstrip-sub {
  margin-top: 6px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; letter-spacing: 0.12em; color: var(--fg-2);
}
.nm-statsstrip-corner {
  position: absolute; top: 8px; right: 12px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.5;
}
.nm-statsstrip-live {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--signal-good);
  box-shadow: 0 0 6px var(--signal-glow);
}

/* Masthead ruler (the bottom decorative tick line) */
.nm-masthead-ruler {
  margin-top: 12px;
  height: 6px;
  background-image:
    linear-gradient(to right, var(--edge-engrave) 1px, transparent 1px);
  background-size: 8px 100%;
  border-top: 1px solid var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
  opacity: 0.6;
}

/* CatStrip aliases */
.nm-catstrip {
  padding: 14px 16px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap;
}
.nm-catstrip-label, .nm-catstrip-label-cn {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--fg-3); text-transform: uppercase;
  padding: 5px 10px 5px 4px;
  border-right: 1px solid var(--edge-engrave);
  box-shadow: 1px 0 0 var(--edge-bright);
  margin-right: 8px;
}
.nm-catstrip-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-xs);
  font-family: var(--font-sans); font-weight: 500;
  font-size: 12px; text-decoration: none;
  color: var(--fg-1); background: var(--bg-2);
  box-shadow: var(--shadow-button);
  transition: color 0.15s, background 0.15s;
}
.nm-catstrip-pill:hover {
  color: var(--accent-bright); background: var(--bg-3);
}
.nm-catstrip-pill.is-active {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.nm-catstrip-pill-count {
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-3);
}
.nm-catstrip-pill.is-active .nm-catstrip-pill-count {
  color: rgba(255, 255, 255, 0.7);
}
.nm-catstrip-spacer { flex: 1; }
.nm-catstrip-sort {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--bg-2);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-button);
}

/* PostNav aliases (.nm-pnav-*) */
.nm-pnav {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nm-pnav-next, .nm-pnav-prev {
  padding: 18px 20px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.3s;
  color: var(--fg-1);
}
.nm-pnav-next:hover, .nm-pnav-prev:hover {
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-2px);
}
.nm-pnav-next { text-align: right; }
.nm-pnav-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.nm-pnav-title {
  font-size: 14px; font-weight: 600; color: var(--fg-0);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Pagination legacy */
.nm-pagination {
  margin-top: 32px; padding: 16px 20px;
  background: var(--bg-1); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  display: flex; justify-content: center;
  align-items: center; gap: 8px; flex-wrap: wrap;
}
.nm-page-btn {
  min-width: 34px; height: 34px;
  padding: 0 12px; border-radius: var(--radius-xs);
  background: var(--bg-2); color: var(--fg-2);
  font-family: var(--font-mono); font-weight: 600;
  font-size: 12px; cursor: pointer;
  box-shadow: var(--shadow-button);
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.nm-page-btn:hover { color: var(--accent-bright); background: var(--bg-3); }
.nm-page-btn.is-active, .nm-page-current {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 6px var(--accent-glow);
}
.nm-page-info {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.14em;
  padding: 0 12px;
}
.nm-page-sep { color: var(--fg-3); opacity: 0.4; padding: 0 4px; }

/* Page header (page.html / categories listing header) */
.nm-page-header {
  margin-bottom: 28px;
}
.nm-post-header.nm-page-header {
  padding: 32px 24px 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* Categories index (cat-grid + tiles) */
.nm-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px;
}
.nm-cat-tile {
  position: relative;
  padding: 20px 22px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--fg-0);
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nm-cat-tile:hover {
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-2px);
}
.nm-cat-tile-shine { display: none; }
.nm-cat-tile-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 36px; color: var(--accent);
  opacity: 0.6; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.nm-cat-tile-body {
  display: flex; flex-direction: column; gap: 8px;
  padding-right: 50px;
}
.nm-cat-tile-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--fg-3);
  text-transform: uppercase;
}
.nm-cat-tile-count {
  padding: 2px 6px; background: var(--bg-2);
  border-radius: 2px; box-shadow: var(--shadow-button);
  color: var(--accent);
}
.nm-cat-tile-name {
  font-size: 18px; font-weight: 600; color: var(--fg-0);
  letter-spacing: -0.01em; margin: 0;
}
.nm-cat-tile-desc {
  font-size: 13px; color: var(--fg-2);
  line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.nm-cat-tile-arrow {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--accent);
  text-transform: uppercase;
}

/* NowReading item field aliases */
.nm-nowreading-head-eyebrow {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--fg-3); text-transform: uppercase;
}
.nm-nowreading-item-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--fg-2);
}
.nm-nowreading-item-who { color: var(--accent); font-weight: 600; }
.nm-nowreading-item-tag {
  margin-left: auto; padding: 2px 6px;
  font-size: 9px; letter-spacing: 0.14em;
  color: var(--accent); background: var(--bg-2);
  border-radius: 2px; box-shadow: var(--shadow-button);
}
.nm-nowreading-item-title {
  font-size: 13px; line-height: 1.3; color: var(--fg-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Section head aliases */
.nm-sec-cn { /* in addition to earlier alias */
  font-size: var(--t-h3); font-weight: 600;
  color: var(--fg-0); letter-spacing: -0.01em;
  text-shadow: var(--txt-engrave);
}
.nm-sec-en {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--fg-3); text-transform: uppercase;
}
.nm-sec-en-count {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--accent);
}
.nm-sec-titles {
  display: flex; flex-direction: column; gap: 4px;
}
.nm-sec-more {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2); text-decoration: none;
  padding: 6px 12px;
  background: var(--bg-2); border-radius: var(--radius-xs);
  box-shadow: var(--shadow-button);
}
.nm-sec-more:hover { color: var(--accent-bright); }
.nm-sec-more-arrow { margin-left: 4px; }

/* Post author card (single post bottom) */
.nm-post-author {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.nm-post-author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  flex-shrink: 0;
}
.nm-post-author-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
}
.nm-post-author-ph {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  color: var(--accent); font-family: var(--font-display);
}
.nm-post-author-info {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.nm-post-author-name {
  font-size: 16px; font-weight: 600; color: var(--fg-0);
  margin: 0;
}
.nm-post-author-role {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--fg-3);
}

/* Post end decorator */
.nm-post-end {
  display: flex; align-items: center; gap: 12px;
  margin: 32px 0;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--accent);
  text-transform: uppercase; justify-content: center;
}
.nm-post-end-line {
  flex: 1; max-width: 80px; height: 1px;
  background: var(--edge-engrave);
  box-shadow: 0 1px 0 var(--edge-bright);
}
.nm-post-end-text {
  padding: 4px 10px;
  background: var(--bg-2); border-radius: var(--radius-xs);
  box-shadow: var(--shadow-inset);
}

/* Post frame & post hero info */
.nm-post-frame {
  max-width: 1440px;
  margin: 16px auto 0;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-strong);
  overflow: hidden;
}
.nm-post-hero-info {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase; align-items: center;
}

/* Posts area + comments */
.nm-posts-area {
  padding: 0;
}
.nm-post-comments {
  max-width: 800px; margin: 32px auto 0;
  padding: 24px;
}
.nm-comment {
  padding: 14px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

/* Featured aliases */
.nm-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 1024px) {
  .nm-featured { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nm-featured { grid-template-columns: 1fr; }
}

/* Hero img/label/sub/left/right/ph aliases */
.nm-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.nm-hero-label {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; letter-spacing: 0.24em;
  color: var(--accent); text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
}
.nm-hero-left { display: flex; flex-direction: column; gap: 8px; }
.nm-hero-right { display: flex; align-items: center; justify-content: flex-end; }
.nm-hero-sub {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.nm-hero-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f1a2c 0%, #1a2a3e 50%, #0c1320 100%);
}

/* Phi (philosophy footer) */
.nm-phi-item {
  display: flex; flex-direction: column; gap: 4px;
}
.nm-phi-sep {
  width: 1px; height: 28px;
  background: var(--edge-engrave);
}

/* tg alias for nm-tag-pill */
.nm-tg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em;
  background: var(--bg-2); color: var(--fg-1);
  text-decoration: none;
  box-shadow: var(--shadow-button);
}
