/* ============================================================================
   Uganda Museums — News & Stories
   File: wp-content/themes/uganda-museums/assets/css/news.css
   ----------------------------------------------------------------------------
   Design language: KGM-Inspired Light Editorial — matches Virtual Rooms.
   Inherits tokens from variables.css:
     --bg-white | --bg-section | --bg-warm | --bg-footer-main
     --terracotta | --forest | --forest-dark
     --font-heading 'Cormorant Garamond' | --font-body 'IBM Plex Sans'

   Namespace: .nm- (News Module)
   ============================================================================ */

.nm-index,
.nm-article,
.nm-related,
.nm-hero {
  --nm-ink:        #1A1A18;
  --nm-ink-soft:   #4A4945;
  --nm-ink-muted:  #7A7873;
  --nm-rule:       #E2DED5;
  --nm-rule-soft:  #ECE8DF;
  font-family: var(--font-body);
  color: var(--nm-ink);
}


/* ============================================================================
   1. HERO  (editorial, paper-grain, vertical marginalia)
   ============================================================================ */
.nm-hero {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 6vw clamp(50px, 7vw, 80px);
  background:
    radial-gradient(ellipse at 80% -20%, rgba(160, 82, 45, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-white) 100%);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 40px;
}
.nm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26, 26, 24, 0.04) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
}

.nm-hero--category { padding: clamp(70px, 9vw, 110px) 6vw clamp(40px, 6vw, 70px); }

.nm-hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  color: var(--nm-ink);
}

.nm-hero__eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.nm-hero__rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--terracotta);
  margin-right: 14px;
}
.nm-hero__eyebrow-text {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nm-ink-soft);
  font-weight: 500;
}

/* Breadcrumb — light editorial on warm hero */
.nm-hero .breadcrumb { margin-bottom: 24px; }
.nm-hero .breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--nm-ink-muted);
}
.nm-hero .breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}
.nm-hero .breadcrumb__item a {
  color: var(--nm-ink-soft);
  text-decoration: none;
}
.nm-hero .breadcrumb__item a:hover { color: var(--terracotta); }
.nm-hero .breadcrumb__item--active { color: var(--terracotta); }

.nm-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--nm-ink);
  margin: 0 0 24px;
  max-width: 16ch;
}
.nm-hero__title em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}

.nm-hero__desc {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--nm-ink-soft);
  max-width: 60ch;
  line-height: 1.65;
  margin: 0;
}

.nm-hero__sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.nm-hero__folio {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 13px;
  color: var(--nm-ink-muted);
  letter-spacing: 0.06em;
}
.nm-hero__vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--nm-ink-muted);
}


/* ============================================================================
   2. SECTION WRAPPER
   ============================================================================ */
.nm-index {
  background: var(--bg-section);
  padding: clamp(60px, 8vw, 100px) 6vw;
}
.nm-index .container {
  max-width: 1280px;
  margin: 0 auto;
}


/* ============================================================================
   3. FILTER BAR
   ============================================================================ */
.nm-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--nm-rule);
}

.nm-filter {
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--nm-ink-soft);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 0;
  transition: all 200ms ease;
}
.nm-filter:hover { color: var(--nm-ink); border-color: transparent; }
.nm-filter.active {
  background: var(--nm-ink);
  color: #fff;
  border-color: var(--nm-ink);
}


/* ============================================================================
   4. FEATURED STORY — asymmetric editorial cover
   ============================================================================ */
.nm-feature { margin-bottom: 80px; }

.nm-feature__link {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: none;
}
.nm-feature__link:hover { transform: none; box-shadow: none; }

.nm-feature__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(165deg, #2C4A3E 0%, #1F3429 65%, #14241D 100%);
  box-shadow:
    0 30px 60px -25px rgba(26, 26, 24, 0.35),
    0 12px 24px -8px rgba(26, 26, 24, 0.2);
}
.nm-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.nm-feature__link:hover .nm-feature__img { transform: scale(1.04); }

.nm-feature__placeholder {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 35% 30%, rgba(232, 201, 168, 0.18), transparent 50%),
    linear-gradient(180deg, transparent 75%, rgba(0,0,0,0.35) 100%),
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(160, 82, 45, 0.22), transparent 60%),
    linear-gradient(165deg, #2C4A3E 0%, #1F3429 65%, #14241D 100%);
}
.nm-feature__placeholder::before {
  content: "";
  position: absolute;
  inset: 12% 18% 25%;
  border: 1px solid rgba(232, 201, 168, 0.15);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}
.nm-feature__placeholder::after {
  content: "";
  position: absolute;
  inset: 22% 28% 32%;
  border: 1px solid rgba(232, 201, 168, 0.10);
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
}

.nm-feature__media-pill {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--nm-ink);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.nm-feature__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nm-feature__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 22px;
}

.nm-feature__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--nm-ink);
  margin: 0 0 18px;
  transition: color 200ms ease;
}
.nm-feature__link:hover .nm-feature__title { color: var(--terracotta); }

.nm-feature__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--nm-ink-muted);
  text-transform: uppercase;
}
.nm-feature__meta-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--nm-ink-muted);
  border-radius: 50%;
  opacity: 0.6;
}

.nm-feature__excerpt {
  font-size: 1.05rem;
  color: var(--nm-ink-soft);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 50ch;
}

.nm-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--terracotta);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 0;
  align-self: flex-start;
  transition: all 280ms cubic-bezier(.2,.7,.2,1);
}
.nm-feature__cta svg {
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.nm-feature__link:hover .nm-feature__cta {
  background: #8a4525;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(160, 82, 45, 0.4);
}
.nm-feature__link:hover .nm-feature__cta svg {
  transform: translateX(4px);
}


/* ============================================================================
   5. CARD GRID — same DNA as Virtual Rooms .vr-card
   ============================================================================ */
.nm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px 28px;
}

.nm-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transition: none;
}
.nm-card:hover { transform: none; box-shadow: none; }

.nm-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.nm-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 18px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(232, 201, 168, 0.25), transparent 55%),
    linear-gradient(135deg, #6B3A1E 0%, #A0522D 60%, #8a4525 100%);
  border-radius: 0;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.nm-card__link:hover .nm-card__media { transform: translateY(-4px); }

.nm-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.nm-card__link:hover .nm-card__img { transform: scale(1.05); }

.nm-card__placeholder {
  position: absolute;
  inset: 0;
}
.nm-card__placeholder::before {
  content: "";
  position: absolute;
  inset: 18% 22% 30%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  transition: inset 500ms cubic-bezier(.2,.7,.2,1);
}
.nm-card__link:hover .nm-card__placeholder::before {
  inset: 14% 18% 26%;
}

.nm-card__body { padding: 0 4px; }

.nm-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.nm-card__cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.nm-card__meta time {
  font-size: 12px;
  color: var(--nm-ink-muted);
  letter-spacing: 0.04em;
}

.nm-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--nm-ink);
  margin: 0 0 10px;
  transition: color 200ms ease;
}
.nm-card__link:hover .nm-card__title { color: var(--terracotta); }

.nm-card__excerpt {
  font-size: 0.95rem;
  color: var(--nm-ink-soft);
  line-height: 1.65;
  margin: 0 0 14px;
}

.nm-card__footer {
  display: flex;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--nm-rule-soft);
  font-size: 12px;
  color: var(--nm-ink-muted);
  letter-spacing: 0.04em;
}


/* ============================================================================
   6. PAGINATION (editorial folios)
   ============================================================================ */
.nm-pagination {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--nm-rule);
}
.nm-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.nm-pagination a,
.nm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--nm-ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  letter-spacing: 0.04em;
  transition: all 200ms ease;
}
.nm-pagination a:hover {
  color: var(--nm-ink);
  background: var(--bg-warm);
}
.nm-pagination .current {
  background: var(--nm-ink);
  color: #fff;
  border-color: var(--nm-ink);
}
.nm-pagination .dots { color: var(--nm-ink-muted); }


/* ============================================================================
   7. SINGLE ARTICLE
   ============================================================================ */
.nm-article { background: var(--bg-white); }

.nm-article__hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 6vw;
  background-color: var(--forest);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.nm-article__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(160, 82, 45, 0.15), transparent 60%),
    linear-gradient(to top, rgba(26, 26, 24, 0.88) 0%, rgba(26, 26, 24, 0.45) 50%, rgba(26, 26, 24, 0.15) 100%);
  z-index: 1;
}
.nm-article__hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
  padding-bottom: 24px;
}

.nm-article__hero .breadcrumb { margin-bottom: 28px; }
.nm-article__hero .breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}
.nm-article__hero .breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.4;
}
.nm-article__hero .breadcrumb__item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 200ms ease;
}
.nm-article__hero .breadcrumb__item a:hover { color: #fff; }
.nm-article__hero .breadcrumb__item--active { color: rgba(232, 201, 168, 0.9); }

.nm-article__cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E8C9A8;
  font-weight: 600;
  margin: 0 0 18px;
  padding: 0 0 0 50px;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  position: relative;
}
.nm-article__cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--terracotta);
}

.nm-article__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 28px;
  max-width: 22ch;
}

.nm-article__byline {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.nm-article__author { font-weight: 500; color: #fff; }
.nm-article__author span {
  font-style: italic;
  color: rgba(232, 201, 168, 0.85);
  font-weight: 400;
  margin-right: 6px;
}
.nm-article__sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}
.nm-article__date,
.nm-article__read {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* Article body */
.nm-article__body {
  padding: clamp(60px, 8vw, 100px) 6vw;
  background: var(--bg-white);
}
.nm-article__body .container {
  max-width: 1180px;
  margin: 0 auto;
}

.nm-article__content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--nm-ink-soft);
  font-family: var(--font-body);
}

/* Drop-cap on the first paragraph */
.nm-article__content > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 4.5em;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.12em 0 -0.04em;
  color: var(--terracotta);
}

.nm-article__content h2,
.nm-article__content h3,
.nm-article__content h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--nm-ink);
  margin: 2.8rem 0 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.nm-article__content h2 { font-size: 2rem; }
.nm-article__content h3 {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--terracotta);
}
.nm-article__content h4 { font-size: 1.25rem; }

.nm-article__content p { margin: 0 0 1.5rem; }

.nm-article__content a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 200ms ease;
}
.nm-article__content a:hover { color: var(--forest); }

.nm-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  margin: 2.5rem 0 0.75rem;
  display: block;
}

.nm-article__content blockquote {
  border-left: none;
  padding: 2rem 0 2rem 28px;
  margin: 2.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--nm-ink);
  line-height: 1.4;
  position: relative;
}
.nm-article__content blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--terracotta);
}

.nm-article__content figure { margin: 2.5rem 0; }
.nm-article__content figcaption,
.nm-article__content .wp-block-image figcaption {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--nm-ink-muted);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

.nm-article__content ul,
.nm-article__content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}
.nm-article__content li { margin-bottom: 0.5rem; }

/* Tags */
.nm-article__tags {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--nm-rule);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nm-article__tags-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--nm-ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nm-article__tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--nm-ink-soft);
  background: transparent;
  border: 1px solid var(--nm-rule);
  border-radius: 0;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 200ms ease;
}
.nm-article__tag:hover {
  background: var(--nm-ink);
  color: #fff;
  border-color: var(--nm-ink);
}

/* Share rail */
.nm-article__share {
  max-width: 720px;
  margin: 28px auto 0;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nm-article__share-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--nm-ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nm-article__share-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--nm-ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 2px;
  transition: color 200ms ease;
}
.nm-article__share-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--nm-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1);
}
.nm-article__share-link:hover { color: var(--terracotta); }
.nm-article__share-link:hover::after {
  transform: scaleX(1);
  background: var(--terracotta);
}


/* ============================================================================
   8. RELATED STORIES — dark forest band
   ============================================================================ */
.nm-related {
  background: var(--forest);
  color: #fff;
  padding: clamp(70px, 9vw, 120px) 6vw;
  position: relative;
  overflow: hidden;
}
.nm-related::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(160, 82, 45, 0.15), transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(232, 201, 168, 0.08), transparent 50%);
  pointer-events: none;
}
.nm-related .container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.nm-related__head {
  text-align: center;
  margin-bottom: 56px;
}
.nm-related__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}
.nm-related__rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  margin-right: 14px;
}
.nm-related__eyebrow-text {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.nm-related__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.nm-related__title em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 500;
}

.nm-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

/* Dark variant cards inside related band */
.nm-card--related .nm-card__title { color: #fff; }
.nm-card--related .nm-card__link:hover .nm-card__title { color: #E8C9A8; }
.nm-card--related .nm-card__cat { color: #E8C9A8; }
.nm-card--related .nm-card__meta time { color: rgba(255, 255, 255, 0.6); }
.nm-card--related .nm-card__excerpt { color: rgba(255, 255, 255, 0.7); }


/* ============================================================================
   9. EMPTY STATE
   ============================================================================ */
.nm-empty {
  text-align: center;
  padding: 80px 24px;
  max-width: 520px;
  margin: 0 auto;
}
.nm-empty h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--nm-ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.nm-empty p {
  color: var(--nm-ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}
.nm-empty a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ============================================================================
   10. RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .nm-hero { grid-template-columns: 1fr; }
  .nm-hero__sidebar { display: none; }

  .nm-feature__link { grid-template-columns: 1fr; gap: 32px; }
  .nm-feature__media { aspect-ratio: 16 / 11; }

  .nm-related__grid { grid-template-columns: repeat(2, 1fr); }

  .nm-article__hero { min-height: 360px; }
}

@media (max-width: 720px) {
  .nm-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .nm-filter { flex-shrink: 0; }

  .nm-grid { grid-template-columns: 1fr; }
  .nm-related__grid { grid-template-columns: 1fr; }

  .nm-article__hero { min-height: 320px; padding: 40px 6vw; }
  .nm-article__hero-inner { padding-bottom: 16px; }

  .nm-article__content { font-size: 1rem; }
  .nm-article__content > p:first-of-type::first-letter { font-size: 3.8em; }
  .nm-article__content blockquote { font-size: 1.3rem; }

  .nm-article__byline { gap: 10px 14px; }
  .nm-feature__cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .nm-card__media,
  .nm-feature__img,
  .nm-card__img,
  .nm-card__placeholder::before,
  .nm-feature__cta,
  .nm-article__share-link::after {
    transition: none !important;
  }
}
