/* ==========================================================================
   NOVALYFE - Editorial Design System
   Premium content/advertorial publisher. Light theme, locked brand identity.
   Display: Oswald (600/700) · Body/UI: Inter (400/500/600/700)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --blue:        #478ac9;
  --blue-dark:   #356fa6;
  --teal:        #2cccc4;
  --gold:        #f1c50e;
  --coral:       #db545a;
  --green:       #16a34a;     /* Health category */

  /* Neutrals */
  --ink:         #111111;
  --slate:       #5b6470;
  --bg:          #ffffff;
  --bg-soft:     #f6f8fb;
  --border:      #e7ecf2;

  /* Derived ink ramp (accessible) */
  --ink-2:       #2a2f37;     /* secondary headings */
  --slate-strong:#414956;     /* body that needs >=4.5:1 on soft bg */

  /* Category accents */
  --cat-news:      var(--coral);
  --cat-finance:   var(--teal);
  --cat-health:    var(--green);
  --cat-tech:      var(--blue);
  --cat-home:      var(--gold);

  /* Typography */
  --font-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Type scale (fluid) */
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.18vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.70vw, 1.90rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.45vw, 2.75rem);
  --step-4:  clamp(2.30rem, 1.80rem + 2.45vw, 3.90rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape */
  --radius:    14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  /* Shadow (tinted to slate, never pure black) */
  --shadow-sm: 0 1px 2px rgba(17,17,17,.04), 0 2px 6px rgba(53,111,166,.05);
  --shadow-md: 0 6px 16px rgba(53,111,166,.08), 0 2px 6px rgba(17,17,17,.04);
  --shadow-lg: 0 18px 48px rgba(53,111,166,.13), 0 6px 16px rgba(17,17,17,.05);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.45s;

  /* Z-scale */
  --z-sticky: 100;
  --z-search: 120;
  --z-banner: 200;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--bg-soft); }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }

button, input { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

::selection { background: rgba(71,138,201,.18); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.nv-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nv-section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.nv-section--soft { background: var(--bg-soft); }

.nv-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  border-bottom: 2px solid var(--ink);
  padding-bottom: var(--sp-3);
}
.nv-section-head h2 {
  font-size: var(--step-2);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.nv-section-head .nv-seemore {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--blue-dark);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--dur) var(--ease), color .2s ease;
}
.nv-section-head .nv-seemore:hover { gap: 9px; color: var(--blue); }

/* --------------------------------------------------------------------------
   4. CATEGORY TAGS
   -------------------------------------------------------------------------- */
.nv-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--slate);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
  white-space: nowrap;
}
/* All category tags: white text. Finance/Home use deepened fills so white
   text stays readable (WCAG AA) on what would otherwise be too-light a chip. */
.nv-tag[data-cat="news"]      { background: var(--cat-news); }
.nv-tag[data-cat="finance"]   { background: #178f88; }   /* deepened teal */
.nv-tag[data-cat="health"]    { background: var(--cat-health); }
.nv-tag[data-cat="technology"]{ background: var(--cat-tech); }
.nv-tag[data-cat="home"]      { background: #b8870a; }   /* deepened gold */

/* Soft variant: solid colored fill with white text for clear legibility.
   (Previously an outline with colored text, which read as too faint.) */
.nv-tag--soft {
  background: var(--slate);
  color: #fff;
  border: 1px solid transparent;
}
.nv-tag--soft[data-cat="news"]       { background: var(--cat-news); color: #fff; }
.nv-tag--soft[data-cat="finance"]    { background: #178f88; color: #fff; }
.nv-tag--soft[data-cat="health"]     { background: var(--cat-health); color: #fff; }
.nv-tag--soft[data-cat="technology"] { background: var(--cat-tech); color: #fff; }
.nv-tag--soft[data-cat="home"]       { background: #b8870a; color: #fff; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.85em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s var(--ease), background .2s ease, box-shadow .2s ease, color .2s ease;
}
.nv-btn:active { transform: translateY(1px) scale(.99); }

.nv-btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.nv-btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-md); }

.nv-btn--ink { background: var(--ink); color: #fff; }
.nv-btn--ink:hover { background: var(--ink-2); color: #fff; }

.nv-btn--ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.nv-btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); }

.nv-btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   6. HEADER / NAV / SEARCH
   -------------------------------------------------------------------------- */
.nv-topbar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.nv-topbar .nv-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding-block: 6px;
}
.nv-topbar a { color: rgba(255,255,255,.85); }
.nv-topbar a:hover { color: #fff; }
.nv-topbar .nv-topbar-cats { display: flex; gap: 14px; }
@media (max-width: 640px) { .nv-topbar .nv-topbar-cats { display: none; } }

.nv-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .nv-header { background: #fff; } }

.nv-header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 68px;
  padding-block: 10px;
}
.nv-logo { flex: none; }
.nv-logo img { height: 30px; width: auto; }

.nv-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
}
.nv-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color .18s ease, background .18s ease;
}
.nv-nav a:hover { color: var(--blue-dark); background: var(--bg-soft); }
.nv-nav a[aria-current="page"] { color: var(--blue-dark); }
.nv-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* Search */
.nv-search { position: relative; flex: none; }
.nv-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 6px 5px 12px;
  transition: border-color .18s ease, box-shadow .18s ease, width .25s var(--ease);
  width: 210px;
}
.nv-search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(71,138,201,.14); }
.nv-search-form svg { width: 16px; height: 16px; color: var(--slate); flex: none; }
.nv-search-input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  color: var(--ink);
}
.nv-search-input::placeholder { color: var(--slate); }
.nv-search-go {
  border: none;
  background: var(--blue);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  flex: none;
  transition: background .18s ease;
}
.nv-search-go:hover { background: var(--blue-dark); }
.nv-search-go svg { color: #fff; width: 14px; height: 14px; }

/* Search results dropdown */
.nv-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, 80vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-search);
  overflow: hidden;
  display: none;
}
.nv-search-results.is-open { display: block; }
.nv-search-results ul { list-style: none; padding: 6px; }
.nv-search-results a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.nv-search-results a:hover, .nv-search-results a:focus-visible { background: var(--bg-soft); }
.nv-search-results .nv-sr-cat { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.nv-search-results .nv-sr-title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.nv-search-results .nv-sr-empty { padding: 18px 14px; color: var(--slate); font-size: 0.9rem; }

/* Mobile nav toggle */
.nv-nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  cursor: pointer;
  place-items: center;
}
.nv-nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 900px) {
  .nv-nav-toggle { display: grid; }
  .nv-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 84px var(--sp-4) var(--sp-4);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    margin: 0;
    z-index: var(--z-search);
  }
  .nv-nav.is-open { transform: translateX(0); }
  .nv-nav a { font-size: 1.05rem; padding: 12px 14px; }
  .nv-nav a[aria-current="page"]::after { display: none; }
  .nv-search { order: -1; flex: 1; }
  .nv-search-form { width: 100%; }
}
.nv-nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(17,17,17,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  z-index: calc(var(--z-search) - 1);
}
.nv-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   7. HERO / FEATURED
   -------------------------------------------------------------------------- */
.nv-hero { padding-block: clamp(1.75rem, 1rem + 3vw, 3rem); }
.nv-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(1.25rem, 0.6rem + 2.5vw, 2.5rem);
  align-items: stretch;
}
@media (max-width: 900px) { .nv-hero-grid { grid-template-columns: 1fr; } }

.nv-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(320px, 46vw, 520px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: var(--shadow-md);
}
.nv-feature__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--ease);
}
.nv-feature:hover .nv-feature__img { transform: scale(1.04); }
.nv-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17,17,17,0) 30%, rgba(17,17,17,.42) 62%, rgba(17,17,17,.86) 100%);
}
.nv-feature__body {
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  color: #fff;
  max-width: 40ch;
}
.nv-feature__title {
  font-size: var(--step-3);
  color: #fff;
  margin: 0.6rem 0 0.5rem;
  text-shadow: 0 1px 20px rgba(0,0,0,.35);
}
.nv-feature__title a { color: #fff; }
.nv-feature__excerpt {
  font-size: var(--step-0);
  color: rgba(255,255,255,.92);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nv-feature__meta { font-size: var(--step--1); color: rgba(255,255,255,.78); margin-top: .6rem; }

/* Secondary hero stack (right column) */
.nv-hero-stack { display: grid; gap: var(--sp-4); grid-auto-rows: 1fr; }
.nv-hero-mini {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--sp-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  align-items: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.nv-hero-mini:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nv-hero-mini img { width: 110px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); }
.nv-hero-mini h3 { font-size: var(--step-1); line-height: 1.12; }
.nv-hero-mini h3 a { color: var(--ink); }
.nv-hero-mini h3 a:hover { color: var(--blue-dark); }
.nv-hero-mini .nv-meta { font-size: var(--step--1); color: var(--slate-strong); margin-top: 5px; }
@media (max-width: 480px) {
  .nv-hero-mini { grid-template-columns: 92px 1fr; }
  .nv-hero-mini img { width: 92px; height: 72px; }
}

/* --------------------------------------------------------------------------
   8. ARTICLE CARDS
   -------------------------------------------------------------------------- */
.nv-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
}
.nv-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .nv-card-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .nv-card-grid, .nv-card-grid--3 { grid-template-columns: 1fr; }
}

.nv-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.nv-card:hover { border-color: #d3deeb; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.nv-card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.nv-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.nv-card:hover .nv-card__thumb img { transform: scale(1.05); }
.nv-card__thumb .nv-tag { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.nv-card__body { padding: var(--sp-4) var(--sp-4) var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.nv-card__title { font-size: var(--step-1); line-height: 1.15; margin-bottom: var(--sp-2); }
.nv-card__title a { color: var(--ink); }
.nv-card__title a:hover { color: var(--blue-dark); }
.nv-card__excerpt {
  font-size: var(--step--1);
  color: var(--slate-strong);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nv-card__meta {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: var(--step--1);
  color: var(--slate);
  display: flex; align-items: center; gap: 8px;
}
.nv-card__meta time { font-variant-numeric: tabular-nums; }
.nv-card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--slate); }

/* --------------------------------------------------------------------------
   9. NUMBERED "LATEST STORIES" LIST
   -------------------------------------------------------------------------- */
.nv-latest { list-style: none; display: grid; gap: 2px; }
.nv-latest li { border-top: 1px solid var(--border); }
.nv-latest li:last-child { border-bottom: 1px solid var(--border); }
.nv-latest a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4) var(--sp-1);
  color: var(--ink);
  transition: background .18s ease, padding-inline-start .25s var(--ease);
}
.nv-latest a:hover { background: linear-gradient(90deg, var(--bg-soft), transparent); padding-inline-start: var(--sp-3); }
.nv-latest__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1;
  color: var(--border);
  -webkit-text-stroke: 1px #cdd8e6;
  width: 1.6ch;
  transition: color .2s ease;
}
.nv-latest a:hover .nv-latest__num { color: var(--blue); -webkit-text-stroke: 0; }
.nv-latest__title { font-weight: 600; font-size: var(--step-0); line-height: 1.32; }
.nv-latest a:hover .nv-latest__title { color: var(--blue-dark); }
.nv-latest__meta { font-size: var(--step--1); color: var(--slate); margin-top: 4px; display: flex; gap: 8px; align-items: center; }

/* --------------------------------------------------------------------------
   10. SIDEBAR LAYOUT (home main column + rail)
   -------------------------------------------------------------------------- */
.nv-main-grid {
  display: grid;
  grid-template-columns: 1fr clamp(280px, 26vw, 340px);
  gap: clamp(1.5rem, 0.8rem + 3vw, 3rem);
  align-items: start;
}
@media (max-width: 980px) { .nv-main-grid { grid-template-columns: 1fr; } }
.nv-rail { display: grid; gap: var(--sp-6); position: sticky; top: 90px; }
@media (max-width: 980px) { .nv-rail { position: static; } }

.nv-rail-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.nv-rail-block__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: .01em;
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
  border-bottom: 2px solid var(--ink);
}

/* --------------------------------------------------------------------------
   11. WEATHER WIDGET
   -------------------------------------------------------------------------- */
.nv-weather {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 70%, #2a5d8c 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.nv-weather::before {
  content: "";
  position: absolute; top: -40%; right: -20%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(44,204,196,.55), transparent 70%);
  pointer-events: none;
}
.nv-weather__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; }
.nv-weather__loc { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.nv-weather__loc svg { width: 15px; height: 15px; opacity: .9; }
.nv-weather__date { font-size: 0.72rem; color: rgba(255,255,255,.78); }
.nv-weather__main { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-3); position: relative; }
.nv-weather__icon { font-size: 2.6rem; line-height: 1; }
.nv-weather__temp { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: .9; font-variant-numeric: tabular-nums; }
.nv-weather__cond { font-size: 0.92rem; color: rgba(255,255,255,.92); margin-top: 2px; }
.nv-weather__stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: var(--sp-4);
  background: rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.nv-weather__stat { background: rgba(255,255,255,.07); padding: 10px 12px; }
.nv-weather__stat .k { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.72); }
.nv-weather__stat .v { font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.nv-weather.is-loading .nv-weather__temp,
.nv-weather.is-loading .nv-weather__cond,
.nv-weather.is-loading .nv-weather__loc span { opacity: .4; }
.nv-weather__err { font-size: 0.82rem; color: rgba(255,255,255,.9); margin-top: 6px; }

/* --------------------------------------------------------------------------
   12. TRENDING NOW
   -------------------------------------------------------------------------- */
.nv-trending { list-style: none; padding: var(--sp-2) var(--sp-3) var(--sp-4); display: grid; gap: 2px; }
.nv-trending li { border-bottom: 1px solid var(--border); }
.nv-trending li:last-child { border-bottom: 0; }
.nv-trending a {
  display: block;
  padding: 11px 8px;
  color: var(--ink);
  transition: background .15s ease, padding-inline-start .22s var(--ease);
  border-radius: var(--radius-sm);
}
.nv-trending a:hover { background: var(--bg-soft); padding-inline-start: 14px; }
.nv-trending__title { font-weight: 600; font-size: 0.93rem; line-height: 1.32; margin-top: 6px; }
.nv-trending a:hover .nv-trending__title { color: var(--blue-dark); }

/* --------------------------------------------------------------------------
   13. NEWSLETTER "STAY UPDATED"
   -------------------------------------------------------------------------- */
.nv-newsletter {
  background:
    radial-gradient(1200px 400px at 90% -10%, rgba(44,204,196,.14), transparent 60%),
    var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 1.2rem + 3vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nv-newsletter h2 { color: #fff; font-size: var(--step-3); text-transform: uppercase; }
.nv-newsletter p { color: rgba(255,255,255,.8); max-width: 46ch; margin: var(--sp-3) auto 0; }
.nv-newsletter__form {
  display: flex;
  gap: var(--sp-3);
  max-width: 480px;
  margin: var(--sp-5) auto 0;
}
@media (max-width: 520px) { .nv-newsletter__form { flex-direction: column; } }
.nv-input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-pill);
  padding: 0.85em 1.2em;
  color: #fff;
  font-size: var(--step-0);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nv-input::placeholder { color: rgba(255,255,255,.6); }
.nv-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44,204,196,.25); background: rgba(255,255,255,.12); }
.nv-input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(219,84,90,.25); }
.nv-newsletter .nv-btn--primary { background: var(--teal); color: #06302e; }
.nv-newsletter .nv-btn--primary:hover { background: #25b3ac; color: #06302e; }
.nv-form-msg { min-height: 1.2em; margin-top: var(--sp-3); font-size: 0.86rem; font-weight: 500; }
.nv-form-msg[data-state="error"] { color: #ffb4b8; }
.nv-form-msg[data-state="success"] { color: #7ef0e8; }
.nv-newsletter__fine { font-size: 0.72rem; color: rgba(255,255,255,.55); margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   14. BREADCRUMB
   -------------------------------------------------------------------------- */
.nv-breadcrumb {
  font-size: 0.8rem;
  color: var(--slate);
  padding-block: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nv-breadcrumb a { color: var(--slate); font-weight: 500; }
.nv-breadcrumb a:hover { color: var(--blue-dark); }
.nv-breadcrumb svg { width: 13px; height: 13px; color: #b6c1d0; }
.nv-breadcrumb [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* --------------------------------------------------------------------------
   15. CATEGORY LANDING HERO
   -------------------------------------------------------------------------- */
.nv-cat-hero {
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.nv-cat-hero__bar { width: 56px; height: 6px; border-radius: 4px; background: var(--slate); margin-bottom: var(--sp-4); }
.nv-cat-hero[data-cat="news"]       .nv-cat-hero__bar { background: var(--cat-news); }
.nv-cat-hero[data-cat="finance"]    .nv-cat-hero__bar { background: var(--cat-finance); }
.nv-cat-hero[data-cat="health"]     .nv-cat-hero__bar { background: var(--cat-health); }
.nv-cat-hero[data-cat="technology"] .nv-cat-hero__bar { background: var(--cat-tech); }
.nv-cat-hero[data-cat="home"]       .nv-cat-hero__bar { background: var(--cat-home); }
.nv-cat-hero h1 { font-size: var(--step-4); text-transform: uppercase; }
.nv-cat-hero p { color: var(--slate-strong); font-size: var(--step-1); max-width: 60ch; margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   16. ARTICLE BODY TYPOGRAPHY
   -------------------------------------------------------------------------- */
.nv-article { padding-block: var(--sp-6) var(--sp-8); }
.nv-article__head { max-width: 760px; margin: 0 auto var(--sp-6); }
.nv-article__title { font-size: var(--step-4); margin: var(--sp-3) 0; text-transform: none; letter-spacing: -0.02em; }
.nv-article__dek { font-size: var(--step-1); color: var(--slate-strong); line-height: 1.5; }
.nv-article__byline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: var(--sp-4);
  font-size: 0.85rem; color: var(--slate);
}
.nv-article__byline strong { color: var(--ink-2); font-weight: 600; }
.nv-article__hero { margin: var(--sp-6) 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.nv-article__hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.nv-article__hero figcaption { font-size: 0.78rem; color: var(--slate); padding: 8px 4px 0; }

.nv-prose { max-width: 720px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; color: #1f242b; }
.nv-prose > * + * { margin-top: 1.35em; }
.nv-prose h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  margin-top: 2.2em;
  padding-top: 0.4em;
  letter-spacing: -0.01em;
}
.nv-prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.nv-prose p { text-wrap: pretty; }
.nv-prose a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(53,111,166,.4); }
.nv-prose a:hover { text-decoration-color: var(--blue); }
.nv-prose ul, .nv-prose ol { padding-inline-start: 1.3em; }
.nv-prose li + li { margin-top: 0.5em; }
.nv-prose ul li::marker { color: var(--blue); }
.nv-prose strong { color: var(--ink); font-weight: 700; }

/* Drop cap (optional via class) */
.nv-prose--dropcap > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  font-size: 3.4em;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  color: var(--blue-dark);
}

/* Muted closing line (last-updated, fine print) */
.nv-muted { color: var(--slate); font-size: 0.86rem; }

/* Light form used inside prose (e.g. Do Not Sell opt-out) */
.nv-prose-form {
  margin-top: 1.35em;
  padding: var(--sp-5);
  background: var(--bg-soft, #f6f8fb);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 460px;
}
.nv-prose-form .nv-field { margin-bottom: var(--sp-4); }
.nv-prose-form .nv-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-strong);
  margin-bottom: 6px;
}
.nv-input--light {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7em 0.9em;
  color: var(--ink);
  font-size: 1rem;
}
.nv-input--light::placeholder { color: var(--slate); }
.nv-input--light:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(71,138,201,.2);
}
.nv-input--light[aria-invalid="true"] {
  border-color: #db545a;
  box-shadow: 0 0 0 3px rgba(219,84,90,.2);
}
.nv-prose-form .nv-form-msg[data-state="error"] { color: #c0353b; }
.nv-prose-form .nv-form-msg[data-state="success"] { color: #1f8a6d; }

/* Pull quote */
.nv-pullquote {
  border-top: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  padding: var(--sp-5) 0;
  margin-block: var(--sp-7) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nv-pullquote cite { display: block; margin-top: var(--sp-3); font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--slate); }

/* Figure / caption */
.nv-figure { margin-block: var(--sp-6) !important; }
.nv-figure img { width: 100%; border-radius: var(--radius); }
.nv-figure figcaption { font-size: 0.8rem; color: var(--slate); margin-top: var(--sp-2); padding-inline-start: 2px; border-inline-start: 0; }

/* Sources / references */
.nv-sources {
  max-width: 720px;
  margin: var(--sp-8) auto 0;
  padding: var(--sp-5);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.nv-sources h2 {
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: var(--sp-3);
}
.nv-sources ol { list-style: none; counter-reset: src; padding: 0; }
.nv-sources li {
  counter-increment: src;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.nv-sources li:first-child { border-top: 0; }
.nv-sources li::before {
  content: counter(src);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--border);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.78rem;
}
.nv-sources a { color: var(--blue-dark); word-break: break-word; }

/* Author bio */
.nv-author {
  max-width: 720px;
  margin: var(--sp-7) auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.nv-author__avatar {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
}
.nv-author__name { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.nv-author__role { font-size: 0.82rem; color: var(--slate); }
.nv-author__bio { font-size: 0.9rem; color: var(--slate-strong); margin-top: 6px; }

/* Related */
.nv-related { max-width: 1000px; margin: var(--sp-8) auto 0; }
.nv-related > h2 { font-size: var(--step-2); text-transform: uppercase; margin-bottom: var(--sp-5); border-bottom: 2px solid var(--ink); padding-bottom: var(--sp-3); }

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.nv-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--sp-6); margin-top: var(--sp-8); }
.nv-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: clamp(1.5rem, 0.8rem + 3vw, 3.5rem);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 760px) { .nv-footer__top { grid-template-columns: 1fr; gap: var(--sp-6); } }
.nv-footer__brand img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .96; }
.nv-footer__tagline { font-size: 0.86rem; margin-top: var(--sp-3); max-width: 34ch; color: rgba(255,255,255,.6); }
.nv-footer h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.nv-footer ul { list-style: none; display: grid; gap: 9px; }
.nv-footer ul a { color: rgba(255,255,255,.72); font-size: 0.9rem; }
.nv-footer ul a:hover { color: var(--teal); }
.nv-footer__notice p { font-size: 0.82rem; line-height: 1.6; color: rgba(255,255,255,.55); }
.nv-footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between; align-items: center;
  padding-top: var(--sp-5);
  font-size: 0.78rem;
  color: rgba(255,255,255,.5);
}
.nv-footer__bottom nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.nv-footer__bottom a { color: rgba(255,255,255,.6); }
.nv-footer__bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   18. COOKIE CONSENT
   -------------------------------------------------------------------------- */
.nv-cookie {
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 3vw, 24px);
  transform: translateX(-50%) translateY(140%);
  width: min(640px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4) var(--sp-5);
  z-index: var(--z-banner);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  transition: transform .5s var(--ease);
}
.nv-cookie.is-visible { transform: translateX(-50%) translateY(0); }
.nv-cookie p { font-size: 0.84rem; color: var(--slate-strong); flex: 1 1 280px; line-height: 1.5; }
.nv-cookie p a { color: var(--blue-dark); text-decoration: underline; }
.nv-cookie__actions { display: flex; gap: var(--sp-3); flex: none; }
.nv-cookie .nv-btn { padding: 0.6em 1.1em; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) {
  .nv-cookie { transition: opacity .3s ease; transform: translateX(-50%); opacity: 0; pointer-events: none; }
  .nv-cookie.is-visible { opacity: 1; pointer-events: auto; }
}

/* --------------------------------------------------------------------------
   19. UTILITIES
   -------------------------------------------------------------------------- */
.nv-skip {
  position: absolute; left: 8px; top: -60px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: var(--z-banner); transition: top .2s ease;
}
.nv-skip:focus { top: 8px; color: #fff; }
.nv-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.nv-mt-0 { margin-top: 0 !important; }

/* --------------------------------------------------------------------------
   20. REVEAL MOTION (enhances already-visible content)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .nv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .nv-reveal.is-in { opacity: 1; transform: none; }
}
