/* ============================================================
   NT News — Design System
   Rebuilt theme, layout and class names (nt- namespace)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --brand: #e0584f;
  --brand-strong: #c6423b;
  --brand-soft: #2a1518;
  --accent: #e0584f;
  --accent-soft: #2a1518;

  --ink: #f3f1ec;
  --body: #c8c6c0;
  --muted: #8f8d87;
  --line: #2c2f36;
  --line-soft: #24272d;

  --surface: #16191f;
  --surface-2: #0f1115;
  --surface-3: #23272e;
  --topbar: #0b0d10;

  --radius: 0;
  --radius-sm: 0;
  --radius-pill: 0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);

  --maxw: 1200px;
  --gap: 22px;

  --serif: Georgia, "Times New Roman", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Utilities ---------- */
.np-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.np-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.np-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.np-meta span { display: inline-flex; align-items: center; gap: 5px; }
.np-meta svg,
.np-meta__author svg,
.np-meta__date svg,
.np-meta__views svg {
  width: 14px; height: 14px; fill: currentColor; flex: none;
}

.np-empty {
  padding: 48px 18px;
  text-align: center;
  color: var(--muted);
}
.np-empty__icon svg { width: 40px; height: 40px; fill: var(--line); }
.np-empty__text { margin-top: 10px; font-size: 15px; }

.np-sr-only,
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.np-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 4px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.np-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}
.np-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.np-brand:hover { color: var(--ink); }
.np-logo { height: 32px; width: auto; }

.np-navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 6px;
}
.np-navlinks a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.np-navlinks a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.np-navlinks a:hover { color: var(--brand); }
.np-navlinks a:hover::after,
.np-navlinks a.active::after { transform: scaleX(1); }
.np-navlinks a.active { color: var(--brand); }

.np-search {
  display: flex;
  align-items: stretch;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.np-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.np-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.np-search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-size: 14px; color: var(--ink); padding: 9px 10px 9px 12px; width: 168px;
}
.np-search button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-left: 1px solid var(--line);
  background: var(--brand); color: #fff;
  padding: 0 14px; cursor: pointer;
  transition: background .2s;
}
.np-search button:hover { background: var(--brand-strong); }
.np-search button svg { fill: none; stroke: #fff; }

.np-user { display: flex; align-items: center; gap: 8px; }
.np-signin {
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.np-signin:hover { background: var(--brand-strong); color: #fff; }

/* dropdown */
.np-dropdown { position: relative; }
.np-dropdown__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 999px; background: transparent; border: 0;
  color: var(--ink);
}
.np-dropdown__toggle:hover { background: var(--surface-2); }
.np-dropdown__toggle img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.np-dropdown__toggle .np-icon { width: 16px; height: 16px; fill: var(--muted); }
.np-dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 70;
}
.np-dropdown.open .np-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.np-dropdown__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--ink); font-size: 14px; font-weight: 500;
}
.np-dropdown__item:hover { background: var(--surface-2); color: var(--brand); }
.np-dropdown__item .np-icon { width: 17px; height: 17px; fill: currentColor; }
.np-dropdown__divider { height: 1px; background: var(--line); margin: 6px 4px; }

/* mobile nav */
.np-mobilenav { display: none; }
.np-mobilenav__bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 14px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.np-mobilenav__brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.np-mobilenav__brand .np-logo { height: 28px; }
.np-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink);
}
.np-iconbtn:hover { background: var(--surface-2); }
.np-iconbtn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.np-iconbtn .np-icon { width: 22px; height: 22px; fill: currentColor; }
.np-mobilenav__panel {
  position: fixed; inset: 56px 0 0 0; z-index: 65;
  background: var(--surface); overflow-y: auto;
  padding: 16px; display: none;
}
.np-mobilenav__panel:not([hidden]) { display: block; }
.np-mobilenav__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
.np-mobilenav__close { border: 0; background: transparent; color: var(--muted); padding: 6px; }
.np-mobilenav__search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 10px 14px; margin-bottom: 14px;
}
.np-mobilenav__search svg { width: 18px; height: 18px; fill: var(--muted); }
.np-mobilenav__search input { border: 0; background: transparent; outline: none; flex: 1; font-size: 15px; }
.np-mobilenav__links { display: flex; flex-direction: column; }
.np-mobilenav__links a {
  padding: 14px 8px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink); font-weight: 600; font-size: 16px;
}
.np-mobilenav__links a.active { color: var(--brand); }
.np-user--mobile { margin-top: 14px; }

@media (max-width: 860px) {
  .np-nav { display: none; }
  .np-mobilenav { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.np-footer {
  margin-top: 56px;
  background: var(--topbar);
  color: #cbd5e1;
}
.np-footer__wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 18px 28px;
}
.np-footer__links { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.np-footer__links a { color: #cbd5e1; font-size: 14px; }
.np-footer__links a:hover { color: #fff; }

/* ============================================================
   HOME — LEAD
   ============================================================ */
.np-hero { padding: 26px 0 6px; border-bottom: 1px solid var(--line); }
.np-hero .np-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}
.np-hero .np-container.np-hero--solo { grid-template-columns: 1fr; gap: 0; }
.np-hero .np-container.np-hero--solo .np-lead__figure { max-width: 100%; }
.np-lead { min-width: 0; }
.np-lead__kicker { margin-bottom: 12px; }
.np-lead__title {
  margin: 0 0 14px; font-family: var(--serif); color: var(--ink); font-weight: 700;
  font-size: 44px; line-height: 1.1; letter-spacing: -.012em;
}
.np-lead__deck {
  margin: 0 0 14px; font-family: var(--serif); color: var(--body);
  font-size: 19px; line-height: 1.5;
}
.np-lead__deck::first-letter {
  float: left; font-size: 3.6em; line-height: .8; padding: 6px 12px 0 0;
  font-weight: 700; color: var(--ink);
}
.np-lead__meta { margin-bottom: 16px; color: var(--muted); }
.np-lead__meta svg { fill: var(--muted); width: 14px; height: 14px; flex: none; }
.np-lead__figure { margin: 0; }
.np-lead__img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  border: 1px solid var(--line); background: var(--surface-3);
}

.np-hero__rail { display: flex; flex-direction: column; }
.np-hero__rail-title {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--line);
}
.np-hero__list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.np-hero__item { min-width: 0; }
.np-hero__card {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
}
.np-hero__item:last-child .np-hero__card { border-bottom: none; }
.np-hero__thumb {
  flex: none; width: 108px; aspect-ratio: 16 / 10;
  border-radius: 6px; overflow: hidden; background: var(--surface-3);
  border: 1px solid var(--line);
}
.np-hero__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.np-hero__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.np-hero__headline {
  font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.np-hero__card:hover .np-hero__headline { color: var(--brand); }
.np-hero__card:hover .np-hero__img { transform: scale(1.05); }

/* ---------- main layout (main + sidebar) ---------- */
.np-layout { padding: 26px 0 10px; }
.np-layout__inner {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 34px;
  align-items: start;
}

/* ---------- content blocks ---------- */
.np-block { margin-bottom: 36px; }
.np-block__head {
  display: flex; align-items: baseline; gap: 12px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 9px 0 9px; margin-bottom: 18px;
}
.np-block__head h2 { font-size: 1.4rem; margin: 0; }
.np-block__head h2 a { color: var(--ink); }
.np-block__head h2 a:hover { color: var(--brand); }
.np-block__desc { color: var(--muted); font-size: 14px; margin: 0; }
.np-block__more {
  margin-left: auto; font-size: 14px; font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: 5px;
}
.np-block__more:hover { color: var(--brand-strong); }

/* ---------- module layout variants ---------- */
/* FEATURE: lead story + card grid */
.np-block--feature .np-block__body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.np-card { display: flex; flex-direction: column; }
.np-card__media {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-3);
}
.np-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.np-card:hover .np-card__img { transform: scale(1.05); }
.np-card__title {
  margin: 9px 0 0;
  font-family: var(--serif); font-size: 16px; line-height: 1.3; color: var(--ink);
}
.np-card:hover .np-card__title { color: var(--brand); }
.np-card__meta { margin-top: auto; padding-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.np-card__meta span { display: inline-flex; align-items: center; gap: 4px; }

/* FEATURE lead story */
.np-feature__lead {
  grid-row: span 2;
  display: flex; flex-direction: column; min-width: 0;
}
.np-feature__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); }
.np-feature__img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.np-feature__lead:hover .np-feature__img { transform: scale(1.04); }
.np-feature__title {
  margin: 14px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); letter-spacing: -.01em;
}
.np-feature__lead:hover .np-feature__title { color: var(--brand); }
.np-feature__summary { margin: 9px 0 0; color: var(--body); font-size: 15px; line-height: 1.5; }
.np-feature__meta { margin-top: auto; padding-top: 11px; }

/* MAGAZINE: alternating image/text rows */
.np-block--magazine .np-block__body { display: grid; gap: 0; }
.np-mag {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.np-mag:first-child { border-top: none; }
.np-mag:nth-child(even) { grid-template-columns: 1fr 150px; }
.np-mag:nth-child(even) .np-mag__media { order: 2; }
.np-mag__media { aspect-ratio: 1 / 1; border: 1px solid var(--line); overflow: hidden; background: var(--surface-3); }
.np-mag__img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.np-mag:hover .np-mag__img { transform: scale(1.05); }
.np-mag__title { margin: 0 0 7px; font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--ink); }
.np-mag:hover .np-mag__title { color: var(--brand); }
.np-mag__summary { margin: 0 0 8px; color: var(--body); font-size: 14.5px; line-height: 1.5; }
.np-mag__meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.np-mag__meta span { display: inline-flex; align-items: center; gap: 4px; }

/* SPLIT: two-column compact lists */
.np-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; position: relative;
}
.np-split::after {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%;
  border-left: 1px solid var(--line);
}
.np-split__item {
  display: block; padding: 13px 0; border-top: 1px solid var(--line);
}
.np-split__item:nth-child(2) { border-top: none; }
.np-split__item:hover .np-split__title { color: var(--brand); }
.np-split__title {
  margin: 0 0 5px; font-family: var(--serif); font-size: 17px; line-height: 1.3; color: var(--ink);
}
.np-split__meta { font-size: 12.5px; color: var(--muted); }

/* COMPACT: small thumbnail cards */
.np-compact {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.np-mini { display: flex; flex-direction: column; }
.np-mini__media {
  aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; background: var(--surface-3);
}
.np-mini__img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.np-mini:hover .np-mini__img { transform: scale(1.06); }
.np-mini__title {
  margin: 10px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.32; color: var(--ink);
}
.np-mini:hover .np-mini__title { color: var(--brand); }

/* STREAM: list flow */
.np-stream__item {
  display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.np-stream__item:first-child { border-top: none; }
.np-stream__media { aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; background: var(--surface-3); }
.np-stream__img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.np-stream__item:hover .np-stream__img { transform: scale(1.05); }
.np-stream__title { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; line-height: 1.28; color: var(--ink); }
.np-stream__item:hover .np-stream__title { color: var(--brand); }
.np-stream__summary { margin: 0 0 7px; color: var(--body); font-size: 14px; line-height: 1.5; }
.np-stream__meta { font-size: 13px; color: var(--muted); }

/* sidebar ranklist */
.np-ranklist { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.np-ranklist li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.np-ranklist__no {
  font-family: var(--serif); font-weight: 700; color: var(--accent);
  font-size: 16px; min-width: 24px;
}
.np-ranklist a { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35; }
.np-ranklist a:hover { color: var(--brand); }

/* ---------- subscribe band ---------- */
.np-subscribe {
  margin: 20px 0 8px;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  border-radius: var(--radius);
  color: #fff;
}
.np-subscribe__inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.np-subscribe h2 { color: #fff; margin: 0 0 4px; font-size: 1.4rem; }
.np-subscribe p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.np-subscribe form { margin-left: auto; display: flex; gap: 10px; flex: 1 1 320px; max-width: 460px; }
.np-subscribe input {
  flex: 1; border: 0; border-radius: var(--radius-pill);
  padding: 12px 18px; font-size: 15px; outline: none;
}
.np-subscribe button {
  border: 0; border-radius: var(--radius-pill);
  background: #fff; color: var(--brand-strong);
  font-weight: 700; padding: 12px 22px; font-size: 15px;
}
.np-subscribe button:hover { background: var(--accent-soft); }

/* ============================================================
   CATEGORY
   ============================================================ */
/* ---- pagehead: left title / right description (magazine masthead) ---- */
.np-pagehead {
  padding: 30px 0 18px;
  border-top: 3px solid var(--brand);
  border-bottom: 2px solid var(--ink);
}
.np-pagehead__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}
.np-pagehead__title {
  font-family: var(--serif); font-weight: 700;
  font-size: 46px; line-height: 1.05; letter-spacing: -.015em; margin: 8px 0 0;
}
.np-pagehead__aside { text-align: right; }
.np-pagehead__sub {
  color: var(--muted); margin: 0 0 8px; font-size: 15px; line-height: 1.5;
  max-width: 300px; margin-left: auto;
}
.np-pagehead__updated {
  margin: 0; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .09em;
}

/* ---- two-column body: sticky sidebar (left) + article grid (right) ---- */
.np-catbody {
  display: grid;
  grid-template-columns: 234px 1fr;
  gap: 38px;
  align-items: start;
  padding: 28px 0 10px;
}
.np-catside { position: sticky; top: 86px; }
.np-catside__title {
  font-family: var(--serif); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  border-bottom: 2px solid var(--ink); padding-bottom: 9px; margin: 0 0 4px;
}
.np-cats { margin: 0; }
.np-cats__list { list-style: none; margin: 0; padding: 0; }
.np-cats__link {
  display: block; padding: 12px;
  border-left: 3px solid transparent;
  color: var(--ink); font-weight: 600; font-size: 15px;
  transition: background .15s, color .15s, border-color .15s;
}
.np-cats__link:hover { color: var(--brand); background: var(--surface-2); }
.np-cats__link.is-active {
  color: var(--brand); border-left-color: var(--brand); background: var(--surface-2);
}

@media (max-width: 900px) {
  .np-catbody { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; }
  .np-catside { position: static; }
  .np-catside__title { margin-bottom: 10px; }
  .np-cats__list { display: flex; flex-wrap: wrap; gap: 8px; }
  .np-cats__link {
    border-left: none; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
  }
  .np-cats__link.is-active { border-color: var(--brand); }
}


.np-catgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.np-catcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.np-catcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.np-catcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.np-catcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.np-catcard:hover .np-catcard__img { transform: scale(1.05); }
.np-catcard__body { padding: 16px; }
.np-catcard__title { margin: 0 0 8px; font-family: var(--serif); font-size: 18px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-catcard:hover .np-catcard__title { color: var(--brand); }
.np-catcard__summary { margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */
.np-articlehead { padding: 28px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.np-articlehead__title { font-size: 2.3rem; margin: 0; }
.np-articlehead__sub { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.np-articlehead__jump { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--brand); }
.np-articlehead__jump:hover { color: var(--brand-strong); }

.np-hero-media { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface-3); }
.np-hero-media img { width: 100%; height: auto; }

.np-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.np-article { min-width: 0; }
.np-article p { font-size: 17px; line-height: 1.8; color: var(--body); }
.np-article h2 { font-size: 1.6rem; margin-top: 1.6em; }
.np-article h3 { font-size: 1.25rem; margin-top: 1.4em; }
.np-article img { border-radius: var(--radius-sm); margin: 22px 0; }
.np-article a { text-decoration: underline; text-underline-offset: 2px; }
.np-article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.np-article th, .np-article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.np-article th { background: var(--surface-2); color: var(--ink); }

.np-factcard {
  position: sticky; top: 86px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.np-factcard__head { background: var(--brand-soft); padding: 14px 16px; }
.np-factcard__title { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--brand-strong); letter-spacing: .03em; }
.np-factcard__facts { padding: 6px 16px 14px; margin: 0; }
.np-factcard__facts > div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.np-factcard__facts > div:last-child { border-bottom: 0; }
.np-factcard__facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.np-factcard__facts dd { margin: 4px 0 0; color: var(--ink); font-weight: 600; }
.np-factcard__foot { padding: 12px 16px; background: var(--surface-2); font-size: 13px; color: var(--muted); }

/* ---------- comments ---------- */
.np-comments { margin-top: 44px; }
.np-comments__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.np-comments__head h2 { font-size: 1.5rem; margin: 0; }
.np-comments__count { color: var(--muted); font-weight: 600; }
.np-comments__login { margin-left: auto; font-weight: 600; color: var(--brand); }
.np-comments__login a { color: var(--brand); }

.np-comments__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; }
.np-comments__field { margin-bottom: 12px; }
.np-comments__field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.np-comments__text {
  width: 100%; min-height: 96px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; font: inherit; color: var(--ink); outline: none;
}
.np-comments__text:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.np-stars { display: inline-flex; gap: 4px; margin: 4px 0 14px; }
.np-stars__item { width: 26px; height: 26px; border: 0; background: transparent; padding: 0; }
.np-stars__item svg { width: 100%; height: 100%; fill: var(--line); transition: fill .15s; }
.np-stars__item.is-active svg { fill: var(--accent); }

.np-comments__submit {
  border: 0; border-radius: var(--radius-pill);
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 11px 24px; font-size: 15px;
}
.np-comments__submit:hover { background: var(--brand-strong); }
.np-comments__submit:disabled { opacity: .6; cursor: default; }

.np-comments__list { display: flex; flex-direction: column; gap: 16px; }
.np-comment {
  display: flex; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px;
}
.np-comment__avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--surface-3); }
.np-comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.np-comment__body { min-width: 0; flex: 1; }
.np-comment__head { display: flex; align-items: center; gap: 10px; }
.np-comment__name { font-weight: 700; color: var(--ink); }
.np-comment__meta { font-size: 13px; color: var(--muted); }
.np-comment__stars { display: inline-flex; gap: 2px; }
.np-comment__stars svg { width: 14px; height: 14px; fill: var(--accent); }
.np-comment__text { margin: 8px 0 0; color: var(--body); font-size: 15px; }

.np-comments__more { margin-top: 18px; text-align: center; }
.np-comments__more button {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-pill); padding: 10px 22px; font-weight: 600; color: var(--brand);
}
.np-comments__more button:hover { border-color: var(--brand); background: var(--brand-soft); }

/* ============================================================
   AUTH (login / register)
   ============================================================ */
.np-auth { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; padding: 40px 18px; }
.np-auth__card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.np-auth__brand { text-align: center; margin-bottom: 22px; }
.np-auth__brand svg { width: 46px; height: 46px; fill: var(--brand); }
.np-auth__brand h1 { font-size: 1.6rem; margin: 10px 0 4px; }
.np-auth__brand p { color: var(--muted); margin: 0; font-size: 14px; }
.np-auth__tabs { display: flex; background: var(--surface-2); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 22px; }
.np-authtab {
  flex: 1; border: 0; background: transparent; border-radius: var(--radius-pill);
  padding: 10px; font-weight: 700; color: var(--muted); font-size: 15px;
}
.np-authtab.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.np-authform { display: none; }
.np-authform.active { display: block; }

.np-field { margin-bottom: 16px; }
.np-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.np-field input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; color: var(--ink); outline: none;
}
.np-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.np-inputwrap { position: relative; }
.np-inputwrap input { padding-right: 44px; }
.np-togglepass {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted); padding: 8px; font-size: 13px; font-weight: 600;
}
.np-authsubmit {
  width: 100%; border: 0; border-radius: var(--radius-pill);
  background: var(--brand); color: #fff; font-weight: 700; padding: 13px; font-size: 15px; margin-top: 4px;
}
.np-authsubmit:hover { background: var(--brand-strong); }
.np-authsubmit:disabled { opacity: .6; cursor: default; }
.np-authswitch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.np-authswitch a { color: var(--brand); font-weight: 600; }

/* ============================================================
   PROFILE / ACCOUNT
   ============================================================ */
.np-account { padding: 30px 0 20px; }
.np-account__wrap {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start;
}
.np-account__side {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 86px;
}
.np-account__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.np-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--surface-3); flex: none; }
.np-avatar img { width: 100%; height: 100%; object-fit: cover; }
.np-account__info h2 { font-family: var(--sans); font-size: 16px; margin: 0; }
.np-account__info p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.np-accountnav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.np-accountnav__item {
  text-align: left; border: 0; background: transparent;
  padding: 11px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14.5px;
}
.np-accountnav__item:hover { background: var(--surface-2); }
.np-accountnav__item.active { background: var(--brand-soft); color: var(--brand); }

.np-account__main { min-width: 0; }
.np-accountsec { display: none; }
.np-accountsec.active { display: block; }
.np-accountsec__title { font-size: 1.5rem; margin: 0 0 4px; }
.np-accountsec__subtitle { color: var(--muted); margin: 0 0 18px; }

.np-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.np-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.np-stat__num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1; }
.np-stat__label { margin-top: 6px; font-size: 13px; color: var(--muted); }

.np-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.np-form__group { margin-bottom: 16px; }
.np-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.np-form input, .np-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; font: inherit; color: var(--ink); outline: none;
}
.np-form input:focus, .np-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.np-form textarea { min-height: 90px; resize: vertical; }
.np-savebtn {
  border: 0; border-radius: var(--radius-pill); background: var(--brand); color: #fff;
  font-weight: 700; padding: 11px 24px; font-size: 15px;
}
.np-savebtn:hover { background: var(--brand-strong); }

.np-avsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.np-avsec__head { display: flex; align-items: center; gap: 18px; }
.np-avsec__title { font-size: 1.2rem; margin: 0; }
.np-avprev { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--surface-3); flex: none; }
.np-avprev__img { width: 100%; height: 100%; object-fit: cover; }
.np-avsec__actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.np-avbtn { border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: var(--radius-pill); padding: 9px 18px; font-weight: 600; font-size: 14px; }
.np-avbtn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.np-avremove { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: var(--radius-pill); padding: 9px 18px; font-weight: 600; font-size: 14px; }
.np-avremove:hover { border-color: var(--accent); color: var(--accent); }
.np-avinput { display: none; }
.np-avsec__info { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.np-articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.np-articlecard {
  display: flex; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-sm);
}
.np-articlecard__media { flex: 0 0 92px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.np-articlecard__media img { width: 100%; height: 100%; object-fit: cover; }
.np-articlecard__info { min-width: 0; display: flex; flex-direction: column; }
.np-articlecard__title { margin: 0 0 6px; font-family: var(--serif); font-size: 16px; line-height: 1.3; color: var(--ink); }
.np-articlecard__date { font-size: 12.5px; color: var(--muted); margin-top: auto; }
.np-articlecard__actions { margin-top: 8px; }
.np-removebtn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.np-removebtn:hover { border-color: var(--accent); color: var(--accent); }
.np-clearbtn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.np-clearbtn:hover { border-color: var(--brand); color: var(--brand); }
.np-accountsec__actions { margin-bottom: 16px; display: flex; gap: 10px; }

/* legacy dynamic states */
.np-emptystate { text-align: center; color: var(--muted); padding: 30px 0; }
.np-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; color: var(--muted); }
.np-loading__spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: np-spin .8s linear infinite; }
.np-loading__text { font-size: 14px; }
@keyframes np-spin { to { transform: rotate(360deg); } }

.np-alert {
  position: fixed; left: 50%; top: 20px; transform: translate(-50%, -120%);
  z-index: 200; max-width: 90vw;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; transition: transform .3s, opacity .3s;
}
.np-alert.show { transform: translate(-50%, 0); opacity: 1; }
.np-alert.success { background: #16a34a; }
.np-alert.error { background: #dc2626; }

/* ============================================================
   CONTACT
   ============================================================ */
.np-contact { padding: 34px 0 20px; }
.np-contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.np-contact__intro p { color: var(--body); font-size: 16px; }
.np-contact__details { margin: 18px 0 0; }
.np-detail { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.np-detail dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.np-detail dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.np-detail dd a { color: var(--brand); }

.np-contact__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.np-field { margin-bottom: 16px; }
.np-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.np-field input, .np-contact__card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; color: var(--ink); outline: none;
}
.np-field input:focus, .np-contact__card textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.np-contact__card textarea { min-height: 130px; resize: vertical; }
.np-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.np-contactsubmit {
  border: 0; border-radius: var(--radius-pill); background: var(--brand); color: #fff;
  font-weight: 700; padding: 12px 26px; font-size: 15px;
}
.np-contactsubmit:hover { background: var(--brand-strong); }
.np-contactsubmit:disabled { opacity: .6; cursor: default; }
.np-contact__note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ============================================================
   LEGAL / INFO PAGES
   ============================================================ */
.np-legal { padding: 34px 0 20px; }
.np-legal__shell { max-width: 820px; margin: 0 auto; }
.np-legal__title { font-size: 2.2rem; margin: 0 0 4px; }
.np-pagetitle { font-size: 2.2rem; margin: 0 0 10px; }
.np-legal__copy { font-size: 16.5px; line-height: 1.8; color: var(--body); }
.np-legal__copy h2 { font-size: 1.5rem; margin-top: 1.5em; }
.np-legal__copy h3 { font-size: 1.2rem; margin-top: 1.3em; color: var(--ink); }
.np-legal__copy a { color: var(--brand); }
.np-legal__lead { font-size: 18px; color: var(--muted); margin-bottom: 1.4em; }
.np-prose { font-size: 16.5px; line-height: 1.8; color: var(--body); }
.np-prose h2 { font-size: 1.5rem; margin-top: 1.5em; }
.np-prose h3 { font-size: 1.2rem; margin-top: 1.3em; color: var(--ink); }
.np-prose p { margin: 0 0 1em; }

/* ============================================================
   TOAST (shared)
   ============================================================ */
.np-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%);
  z-index: 210; max-width: 92vw;
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; transition: transform .3s, opacity .3s;
}
.np-toast.show { transform: translate(-50%, 0); opacity: 1; }
.np-toast.success { background: #16a34a; }
.np-toast.error { background: #dc2626; }

/* ============================================================
   PAGINATION (server-injected — keep original class names)
   ============================================================ */
.pagination-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; justify-content: center; }
.pagination-item { display: inline-flex; }
.pagination-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 14px;
}
.pagination-link:hover { border-color: var(--brand); color: var(--brand); }
.pagination-item.active .pagination-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination-link.disabled, .pagination-link.disabled:hover { opacity: .5; pointer-events: none; color: var(--muted); }
.pagination-link.prev, .pagination-link.next { font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .np-block--feature .np-block__body { grid-template-columns: 1fr 1fr; }
  .np-compact { grid-template-columns: repeat(3, 1fr); }
  .np-catgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .np-hero .np-container { grid-template-columns: 1fr; }
  .np-lead__title { font-size: 32px; }
  .np-layout__inner { grid-template-columns: 1fr; }
  .np-grid { grid-template-columns: 1fr; }
  .np-factcard { position: static; }
  .np-account__wrap { grid-template-columns: 1fr; }
  .np-account__side { position: static; }
  .np-contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .np-block--feature .np-block__body { grid-template-columns: 1fr; }
  .np-compact { grid-template-columns: repeat(2, 1fr); }
  .np-catgrid { grid-template-columns: 1fr; }
  .np-stats { grid-template-columns: 1fr; }
  .np-articles { grid-template-columns: 1fr; }
  .np-lead__title { font-size: 30px; }
  .np-articlehead__title { font-size: 1.8rem; }
  .np-mag, .np-mag:nth-child(even) { grid-template-columns: 1fr; }
  .np-mag:nth-child(even) .np-mag__media { order: 0; }
  .np-stream__item { grid-template-columns: 120px 1fr; }
  .np-split { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   HERO (index headline banner)
   ============================================================ */
.np-banner {
  position: relative;
  padding: 34px 0 28px;
  background: var(--surface);
  border-top: 4px solid var(--ink);
  border-bottom: 3px double var(--ink);
}
.np-banner__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.np-banner__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.np-banner h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.np-banner p {
  margin: 14px 0 0;
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
}
.np-banner a { color: var(--brand); font-weight: 600; }
.np-banner a:hover { color: var(--brand-strong); }
@media (max-width: 680px) {
  .np-banner { padding: 22px 0; }
}
