/* ==========================================================================
   Rehab Solutions In The News - Master Editorial Design System & Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & ROOT CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Editorial Color Palette */
  --nm-bg-page: #F9F8F3;            /* Warm Off-White / Ivory Background */
  --nm-bg-surface: #FFFFFF;         /* Clean Warm White Card Surface */
  --nm-bg-secondary: #F1EFEA;       /* Subtle Secondary Warm Surface */
  --nm-text-main: #111111;          /* Near-Black Primary Typography */
  --nm-text-muted: #57575E;         /* Soft Editorial Gray Secondary Text */
  --nm-color-accent: #8C1D40;       /* Deep Editorial Crimson Burgundy */
  --nm-color-accent-hover: #6E1531; /* Dark Burgundy Hover */
  --nm-color-accent-light: #F8EBEF; /* Soft Accent Background */
  --nm-border-color: #E5E2DC;       /* Subtle Warm Rule Border */
  --nm-border-subtle: #ECE8E1;      /* Very Light Divider */

  /* Typography Stack */
  --nm-font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --nm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Editorial Spacing Tokens */
  --nm-space-xs: 8px;
  --nm-space-sm: 16px;
  --nm-space-md: 24px;
  --nm-space-lg: 36px;
  --nm-space-xl: 56px;

  /* Editorial Radii (Clean, Minimalist) */
  --nm-radius-sm: 2px;
  --nm-radius-md: 4px;
  --nm-radius-none: 0px;

  /* Shadows (Restrained) */
  --nm-shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.04);
  --nm-shadow-sticky: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Dark Mode Tokens */
[data-theme="dark"],
.dark-mode {
  --nm-bg-page: #141416;
  --nm-bg-surface: #1C1C1F;
  --nm-bg-secondary: #242428;
  --nm-text-main: #ECEAE4;
  --nm-text-muted: #9E9EA8;
  --nm-color-accent: #A82E54;
  --nm-color-accent-hover: #C43B66;
  --nm-color-accent-light: #2A171D;
  --nm-border-color: #2B2B30;
  --nm-border-subtle: #34343B;
  --nm-shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.25);
  --nm-shadow-sticky: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE TYPOGRAPHY SPACING
   -------------------------------------------------------------------------- */
*, *:before, *:after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--nm-bg-page);
  color: var(--nm-text-main);
  font-family: var(--nm-font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 200ms ease, color 200ms ease;
}

/* Media Elements Safety Reset */
img, picture, video, iframe, svg {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

figure {
  margin: 0 0 1.75em 0;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--nm-color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nm-font-serif);
  color: var(--nm-text-main);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1:first-child, h2:first-child, h3:first-child {
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1.75em;
  line-height: 1.75;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1.75em;
  padding-left: 1.75em;
}

li {
  margin-bottom: 0.6em;
  line-height: 1.65;
}

blockquote {
  margin: 2.25em 0;
  padding: 1.5em 2em;
  border-left: 4px solid var(--nm-color-accent);
  background: var(--nm-bg-secondary);
  font-family: var(--nm-font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--nm-text-main);
}

blockquote p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  margin-top: 1.75em;
  margin-bottom: 2em;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--nm-border-color);
  text-align: left;
}

th {
  font-weight: 700;
  background: var(--nm-bg-secondary);
}

hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--nm-border-color);
}

.font-mono {
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   3. LAYOUT CONTAINERS & GRID SYSTEM WITH EXTENSIVE SPACING
   -------------------------------------------------------------------------- */
.nm-container {
  max-width: 1340px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.nm-container-reading,
.nm-container-narrow {
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}


.nm-section-padding {
  padding-top: 56px;
  padding-bottom: 56px;
}

.nm-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nm-desktop-only {
  display: flex;
}

.nm-mobile-only {
  display: none;
}

@media (max-width: 991px) {
  .nm-desktop-only {
    display: none !important;
  }
  .nm-mobile-only {
    display: inline-flex !important;
  }
}

/* 2-Column Homepage / Archive Layout Grid */
.nm-content-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: start;
}

@media (min-width: 992px) {
  .nm-content-layout-grid {
    grid-template-columns: 1fr 340px;
  }
}

/* Section Header Styling with Generous Bottom Spacing */
.nm-section-header {
  border-bottom: 2px solid var(--nm-text-main);
  padding-bottom: 14px;
  margin-bottom: 36px;
}

.nm-section-kicker {
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nm-color-accent);
  display: block;
  margin-bottom: 6px;
}

.nm-section-title {
  font-family: var(--nm-font-serif);
  font-size: 1.85rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   4. MASTHEAD & HEADER SYSTEM WITH BALANCED SPACING
   -------------------------------------------------------------------------- */
.nm-site-header-wrapper {
  width: 100%;
  background: var(--nm-bg-page);
  position: relative;
  z-index: 100;
}

/* Top Utility Bar */
.nm-header-utility-bar {
  background: #111111;
  color: #F9F8F3;
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nm-utility-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nm-utility-divider {
  opacity: 0.3;
}

.nm-header-edition {
  font-weight: 600;
  opacity: 0.85;
}

.nm-utility-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nm-trending-label {
  color: var(--nm-color-accent);
  font-weight: 700;
}

.nm-trending-tags {
  display: flex;
  gap: 16px;
}

.nm-trending-tags a {
  color: #D1D1D6;
}

.nm-trending-tags a:hover {
  color: #FFFFFF;
}

/* Publication Masthead Logo */
.nm-header-masthead-bar {
  padding: 36px 0 28px 0;
  border-bottom: 1px solid var(--nm-border-color);
  text-align: center;
}

.nm-masthead-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nm-logo-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.nm-logo-main {
  font-family: var(--nm-font-serif);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--nm-text-main);
  line-height: 1;
}

.nm-logo-sub {
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--nm-color-accent);
  text-transform: uppercase;
  margin-top: 10px;
}

/* Category Navigation & Actions Bar */
.nm-header-nav-bar {
  border-bottom: 1px solid var(--nm-border-color);
  background: var(--nm-bg-page);
  position: sticky;
  top: 0;
  z-index: 99;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

.nm-site-header-wrapper.is-sticky .nm-header-nav-bar {
  box-shadow: var(--nm-shadow-sticky);
  background: var(--nm-bg-surface);
}

.nm-main-nav {
  display: flex;
  align-items: center;
}

.nm-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nm-nav-menu li a {
  display: block;
  padding: 18px 0;
  font-family: var(--nm-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nm-text-main);
  letter-spacing: 0.02em;
  position: relative;
}

.nm-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--nm-color-accent);
  transition: width 200ms ease;
}

.nm-nav-menu li a:hover::after,
.nm-nav-menu li a.active::after {
  width: 100%;
}

.nm-nav-menu li a:hover,
.nm-nav-menu li a.active {
  color: var(--nm-color-accent);
}

.nm-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Action Buttons & Icons */
.nm-icon-btn {
  background: transparent;
  border: 1px solid var(--nm-border-color);
  border-radius: var(--nm-radius-sm);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nm-text-main);
  cursor: pointer;
  transition: all 150ms ease;
}

.nm-icon-btn:hover {
  background: var(--nm-bg-secondary);
  border-color: var(--nm-color-accent);
  color: var(--nm-color-accent);
}

.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nm-font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 24px;
  border-radius: var(--nm-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
}

.nm-btn-accent {
  background-color: var(--nm-color-accent);
  color: #FFFFFF !important;
}

.nm-btn-accent:hover {
  background-color: var(--nm-color-accent-hover);
  color: #FFFFFF !important;
}

.nm-btn-outline {
  background: transparent;
  border-color: var(--nm-text-main);
  color: var(--nm-text-main);
}

.nm-btn-outline:hover {
  background: var(--nm-text-main);
  color: var(--nm-bg-page);
}

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

.nm-btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

/* Mobile Nav Toggle */
.nm-mobile-nav-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--nm-text-main);
}

/* Mobile Navigation Dropdown */
@media (max-width: 991px) {
  .nm-main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nm-bg-surface);
    border-bottom: 1px solid var(--nm-border-color);
    box-shadow: var(--nm-shadow-sticky);
    padding: 20px 28px;
  }

  .nm-main-nav.is-open {
    display: block;
  }

  .nm-nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nm-nav-menu li a {
    padding: 8px 0;
    font-size: 1.0625rem;
  }
}

/* --------------------------------------------------------------------------
   5. FEATURED COVER STORY HERO (ASYMMETRIC COMPOSITION)
   -------------------------------------------------------------------------- */
.nm-featured-hero-section {
  padding-top: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--nm-border-color);
}

.nm-featured-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .nm-featured-hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.nm-hero-media-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--nm-radius-sm);
  border: 1px solid var(--nm-border-color);
  background-color: var(--nm-bg-secondary);
}

.nm-hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

.nm-hero-media-wrap:hover .nm-hero-img {
  transform: scale(1.025);
}

.nm-hero-content-wrap {
  display: flex;
  flex-direction: column;
}

.nm-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.nm-badge {
  display: inline-block;
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nm-color-accent);
  background: var(--nm-color-accent-light);
  padding: 5px 12px;
  border-radius: var(--nm-radius-sm);
}

.nm-hero-featured-tag {
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nm-text-muted);
}

.nm-hero-headline {
  font-family: var(--nm-font-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.nm-hero-headline a {
  color: var(--nm-text-main);
  transition: color 150ms ease;
}

.nm-hero-headline a:hover {
  color: var(--nm-color-accent);
}

.nm-hero-dek {
  font-family: var(--nm-font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--nm-text-muted);
  margin-top: 0;
  margin-bottom: 28px;
}

.nm-hero-author-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nm-border-subtle);
}

.nm-avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nm-avatar-md {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nm-avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.nm-author-name {
  font-family: var(--nm-font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--nm-text-main);
  display: block;
}

.nm-meta-sub {
  color: var(--nm-text-muted);
  margin-top: 2px;
}

.nm-dot {
  margin: 0 8px;
  opacity: 0.4;
}

.nm-read-story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nm-font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--nm-color-accent);
  text-decoration: none;
}

.nm-read-story-link .nm-arrow {
  transition: transform 150ms ease;
}

.nm-read-story-link:hover .nm-arrow {
  transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   6. TOP STORIES EDITORIAL GRID WITH PROPER GAPS
   -------------------------------------------------------------------------- */
.nm-top-stories-section {
  border-bottom: 1px solid var(--nm-border-color);
}

.nm-top-stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .nm-top-stories-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.nm-top-story-primary,
.nm-top-story-secondary {
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 992px) {
  .nm-top-story-secondary {
    border-left: 1px solid var(--nm-border-color);
    padding-left: 40px;
  }
}

.nm-top-story-media {
  overflow: hidden;
  border-radius: var(--nm-radius-sm);
  margin-bottom: 20px;
  border: 1px solid var(--nm-border-color);
}

.nm-top-story-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 250ms ease;
}

.nm-top-story-media:hover img {
  transform: scale(1.025);
}

.nm-top-story-title {
  font-family: var(--nm-font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.nm-top-story-secondary .nm-top-story-title {
  font-size: 1.3rem;
}

.nm-top-story-title a {
  color: var(--nm-text-main);
}

.nm-top-story-title a:hover {
  color: var(--nm-color-accent);
}

.nm-top-story-dek {
  font-size: 0.9375rem;
  color: var(--nm-text-muted);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 18px;
}

.nm-meta-bar {
  color: var(--nm-text-muted);
  font-size: 0.75rem;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   7. CATEGORY NAVIGATION FILTER BAR
   -------------------------------------------------------------------------- */
.nm-category-filter-section {
  padding: 20px 0;
  background: var(--nm-bg-secondary);
  border-bottom: 1px solid var(--nm-border-color);
  margin-bottom: 16px;
}

.nm-category-nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 0;
}

.nm-filter-label {
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--nm-text-muted);
  white-space: nowrap;
}

.nm-category-pills {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nm-pill {
  display: inline-block;
  font-family: var(--nm-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--nm-radius-sm);
  background: var(--nm-bg-surface);
  border: 1px solid var(--nm-border-color);
  color: var(--nm-text-main);
  white-space: nowrap;
  transition: all 150ms ease;
}

.nm-pill:hover,
.nm-pill.active {
  background: var(--nm-color-accent);
  border-color: var(--nm-color-accent);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   8. CHRONOLOGICAL INSIGHTS FEED & CARD STYLING WITH SPACIOUS PADDING
   -------------------------------------------------------------------------- */
.nm-post-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 640px) {
  .nm-post-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nm-editorial-card {
  display: flex;
  flex-direction: column;
  background: var(--nm-bg-surface);
  border: 1px solid var(--nm-border-color);
  border-radius: var(--nm-radius-sm);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.nm-editorial-card:hover {
  border-color: var(--nm-color-accent);
  box-shadow: var(--nm-shadow-subtle);
}

.nm-card-media {
  overflow: hidden;
  background: var(--nm-bg-secondary);
}

.nm-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 250ms ease;
}

.nm-editorial-card:hover .nm-card-img {
  transform: scale(1.03);
}

.nm-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nm-card-badge-wrap {
  margin-bottom: 12px;
}

.nm-card-title {
  font-family: var(--nm-font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 12px;
}

.nm-card-title a {
  color: var(--nm-text-main);
}

.nm-card-title a:hover {
  color: var(--nm-color-accent);
}

.nm-card-excerpt {
  font-size: 0.9375rem;
  color: var(--nm-text-muted);
  line-height: 1.55;
  margin-top: 0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.nm-card-footer {
  display: flex;
  align-items: center;
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  color: var(--nm-text-muted);
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--nm-border-subtle);
}

.nm-author-sm {
  font-weight: 600;
  color: var(--nm-text-main);
}

.nm-load-more-wrap {
  margin-top: 48px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   9. EDITORIAL SIDEBAR & NUMBERED MOST READ MODULE
   -------------------------------------------------------------------------- */
.nm-widget-card {
  background: var(--nm-bg-surface);
  border: 1px solid var(--nm-border-color);
  border-radius: var(--nm-radius-sm);
  padding: 28px;
  margin-bottom: 36px;
}

.nm-widget-kicker {
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nm-color-accent);
  display: block;
  margin-bottom: 6px;
}

.nm-widget-title {
  font-family: var(--nm-font-serif);
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 24px;
  font-weight: 700;
}

/* Numbered Motif for Most Read */
.nm-most-read-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nm-most-read-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nm-border-subtle);
}

.nm-most-read-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.nm-most-read-num {
  font-family: var(--nm-font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--nm-color-accent);
  min-width: 40px;
}

.nm-most-read-info {
  display: flex;
  flex-direction: column;
}

.nm-most-read-badge {
  margin-bottom: 6px;
}

.nm-most-read-title {
  font-family: var(--nm-font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.nm-most-read-title a {
  color: var(--nm-text-main);
}

.nm-most-read-title a:hover {
  color: var(--nm-color-accent);
}

.nm-meta-sm {
  font-size: 0.75rem;
  color: var(--nm-text-muted);
}

/* Sidebar Briefing Box */
.nm-sidebar-briefing-box {
  background: var(--nm-text-main);
  color: var(--nm-bg-page);
  border: none;
}

.nm-sidebar-briefing-box .nm-widget-kicker {
  color: #E2A0B4;
}

.nm-sidebar-briefing-box .nm-widget-title {
  color: #FFFFFF;
}

.nm-sidebar-briefing-desc {
  font-size: 0.875rem;
  color: #A1A1AA;
  margin-bottom: 20px;
  line-height: 1.55;
}

.nm-input-sm {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--nm-radius-sm);
  border: 1px solid #3F3F46;
  background: #27272A;
  color: #FFFFFF;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.nm-input-sm:focus {
  outline: none;
  border-color: var(--nm-color-accent);
}

/* --------------------------------------------------------------------------
   10. SINGLE ARTICLE PAGE & HIGH-LEGIBILITY TYPOGRAPHY WITH EXCELLENT SPACING
   -------------------------------------------------------------------------- */
.nm-reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--nm-color-accent);
  width: 0%;
  z-index: 999;
  transition: width 100ms ease-out;
}

.nm-article-header {
  padding-top: 48px;
  padding-bottom: 36px;
}

.nm-breadcrumb-bar {
  font-family: var(--nm-font-sans);
  font-size: 0.8125rem;
  color: var(--nm-text-muted);
  margin-bottom: 20px;
}

.nm-breadcrumb-bar a {
  color: var(--nm-text-muted);
}

.nm-breadcrumb-bar a:hover {
  color: var(--nm-color-accent);
}

.nm-article-headline {
  font-family: var(--nm-font-serif);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 20px;
}

.nm-article-dek {
  font-family: var(--nm-font-sans);
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--nm-text-muted);
  margin-top: 0;
  margin-bottom: 28px;
}

.nm-article-author-row {
  border-top: 1px solid var(--nm-border-color);
  border-bottom: 1px solid var(--nm-border-color);
  padding: 20px 0;
  margin-top: 28px;
}

.nm-author-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nm-author-details {
  display: flex;
  flex-direction: column;
}

.nm-article-featured-image-wrap {
  margin-bottom: 48px;
}

.nm-article-figure {
  width: 100%;
  margin-bottom: 0;
}

.nm-article-figure img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: var(--nm-radius-sm);
  border: 1px solid var(--nm-border-color);
}

.nm-article-caption {
  font-family: var(--nm-font-sans);
  font-size: 0.8125rem;
  color: var(--nm-text-muted);
  margin-top: 12px;
  text-align: center;
}

.nm-article-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
}

@media (min-width: 992px) {
  .nm-article-body-grid {
    grid-template-columns: 1fr 320px;
  }
}

.nm-typography-editorial,
.entry-content,
.nm-entry-content,
.post-content,
.wp-block-post-content,
.nm-typography-body {
  font-family: var(--nm-font-sans);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--nm-text-main);
  box-sizing: border-box;
  padding-left: clamp(16px, 3.5vw, 36px);
  padding-right: clamp(16px, 3.5vw, 36px);
}

.entry-content > *,
.nm-entry-content > *,
.post-content > *,
.wp-block-post-content > *,
.nm-typography-editorial > *,
.nm-typography-body > * {
  max-width: 100%;
  box-sizing: border-box;
}

.nm-typography-editorial p,
.entry-content p,
.nm-entry-content p,
.post-content p,
.nm-typography-body p {
  margin-top: 0;
  margin-bottom: 1.85em;
  line-height: 1.8;
}

/* First Paragraph Drop Cap */
.nm-typography-editorial > p:first-of-type::first-letter,
.entry-content > p:first-of-type::first-letter,
.nm-entry-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--nm-font-serif);
  font-size: 4rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 14px;
  padding-bottom: 4px;
  font-weight: 800;
  color: var(--nm-color-accent);
}

/* Pull Quotes */
.nm-typography-editorial blockquote,
.entry-content blockquote,
.nm-entry-content blockquote {
  margin: 2.5em 0;
  padding: 24px 32px;
  border-left: 4px solid var(--nm-color-accent);
  background: var(--nm-bg-secondary);
  font-family: var(--nm-font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.55;
  color: var(--nm-text-main);
  border-radius: var(--nm-radius-sm);
}

.nm-typography-editorial h1, .entry-content h1, .nm-entry-content h1,
.nm-typography-editorial h2, .entry-content h2, .nm-entry-content h2,
.nm-typography-editorial h3, .entry-content h3, .nm-entry-content h3,
.nm-typography-editorial h4, .entry-content h4, .nm-entry-content h4 {
  margin-top: 2.25em;
  margin-bottom: 0.8em;
  font-family: var(--nm-font-serif);
  color: var(--nm-text-main);
  line-height: 1.25;
  font-weight: 700;
  clear: both;
}

.entry-content h2, .nm-entry-content h2, .nm-typography-editorial h2 {
  font-size: 1.85rem;
  border-bottom: 1px solid var(--nm-border-color);
  padding-bottom: 10px;
}

.entry-content h3, .nm-entry-content h3, .nm-typography-editorial h3 {
  font-size: 1.5rem;
}

.entry-content ul, .nm-entry-content ul, .nm-typography-editorial ul,
.entry-content ol, .nm-entry-content ol, .nm-typography-editorial ol {
  margin-top: 0;
  margin-bottom: 1.85em;
  padding-left: 2em;
  padding-right: 1em;
}

.entry-content li, .nm-entry-content li, .nm-typography-editorial li {
  margin-bottom: 0.65em;
  line-height: 1.7;
}

.entry-content figure, .nm-entry-content figure, .nm-typography-editorial figure {
  margin-top: 2em;
  margin-bottom: 2em;
}

.entry-content img, .nm-entry-content img, .nm-typography-editorial img {
  border-radius: var(--nm-radius-sm);
  max-width: 100%;
}


.nm-article-reactions-box {
  margin-top: 52px;
  padding: 32px;
  background: var(--nm-bg-secondary);
  border: 1px solid var(--nm-border-color);
  border-radius: var(--nm-radius-sm);
  text-align: center;
}

.nm-reactions-title {
  font-weight: 700;
  font-size: 1rem;
  display: block;
  margin-bottom: 20px;
}

.nm-reaction-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nm-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--nm-bg-surface);
  border: 1px solid var(--nm-border-color);
  border-radius: var(--nm-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--nm-text-main);
  transition: all 150ms ease;
}

.nm-reaction-btn:hover {
  border-color: var(--nm-color-accent);
  color: var(--nm-color-accent);
}

.nm-author-spotlight-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: var(--nm-bg-surface);
  border: 1px solid var(--nm-border-color);
  border-radius: var(--nm-radius-sm);
  margin-top: 48px;
}

.nm-author-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--nm-color-accent);
  display: block;
  margin-bottom: 6px;
}

.nm-author-title {
  font-family: var(--nm-font-serif);
  font-size: 1.4rem;
  margin: 0 0 10px 0;
}

.nm-author-desc {
  font-size: 0.9375rem;
  color: var(--nm-text-muted);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 16px;
}

.nm-author-link {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--nm-color-accent);
}

.nm-related-stories-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 2px solid var(--nm-text-main);
}

.nm-related-title {
  font-family: var(--nm-font-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--nm-color-accent);
  margin-bottom: 28px;
}

.nm-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .nm-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nm-post-navigation {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--nm-border-color);
}

.nm-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nm-text-muted);
  display: block;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   11. FULL-WIDTH NEWSLETTER CONVERSION SECTION: THE DAILY BRIEFING
   -------------------------------------------------------------------------- */
.nm-newsletter-section {
  background: #111111;
  color: #F9F8F3;
  padding: 72px 0;
  border-top: 1px solid #2B2B30;
}

.nm-briefing-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.nm-briefing-kicker {
  font-family: var(--nm-font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nm-color-accent);
  display: block;
  margin-bottom: 10px;
}

.nm-briefing-title {
  font-family: var(--nm-font-serif);
  font-size: 2.75rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 16px;
}

.nm-briefing-desc {
  font-family: var(--nm-font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: #A1A1AA;
  margin-top: 0;
  margin-bottom: 36px;
}

.nm-briefing-form {
  max-width: 620px;
  margin: 0 auto;
}

.nm-briefing-input-wrap {
  display: flex;
  gap: 14px;
  flex-direction: column;
}

@media (min-width: 640px) {
  .nm-briefing-input-wrap {
    flex-direction: row;
  }
}

.nm-briefing-input {
  flex-grow: 1;
  padding: 16px 20px;
  border-radius: var(--nm-radius-sm);
  border: 1px solid #3F3F46;
  background: #18181B;
  color: #FFFFFF;
  font-size: 0.9375rem;
}

.nm-briefing-input:focus {
  outline: none;
  border-color: var(--nm-color-accent);
}

.nm-briefing-btn {
  padding: 16px 28px;
  white-space: nowrap;
}

.nm-briefing-privacy {
  font-size: 0.75rem;
  color: #71717A;
  margin-top: 16px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. PUBLICATION FOOTER WITH SPACIOUS GRID & MARGINS
   -------------------------------------------------------------------------- */
.nm-site-footer {
  background: var(--nm-bg-page);
  border-top: 1px solid var(--nm-border-color);
  padding-top: 68px;
  padding-bottom: 44px;
}

.nm-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .nm-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nm-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.nm-footer-logo-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  margin-bottom: 18px;
}

.nm-footer-logo-main {
  font-family: var(--nm-font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--nm-text-main);
  line-height: 1;
}

.nm-footer-logo-sub {
  font-family: var(--nm-font-sans);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--nm-color-accent);
  text-transform: uppercase;
  margin-top: 6px;
}

.nm-footer-mission {
  font-size: 0.875rem;
  color: var(--nm-text-muted);
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 24px;
}

.nm-social-row {
  display: flex;
  gap: 14px;
}

.nm-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--nm-radius-sm);
  border: 1px solid var(--nm-border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nm-text-main);
}

.nm-social-link:hover {
  border-color: var(--nm-color-accent);
  color: var(--nm-color-accent);
}

.nm-footer-header {
  font-family: var(--nm-font-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nm-text-main);
  margin-top: 0;
  margin-bottom: 20px;
}

.nm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nm-footer-links a {
  font-size: 0.875rem;
  color: var(--nm-text-muted);
}

.nm-footer-links a:hover {
  color: var(--nm-color-accent);
}

.nm-footer-bottom {
  border-top: 1px solid var(--nm-border-color);
  padding-top: 28px;
}

.nm-copyright {
  font-size: 0.8125rem;
  color: var(--nm-text-muted);
  margin: 0;
}

.nm-back-to-top {
  background: transparent;
  border: 1px solid var(--nm-border-color);
  border-radius: var(--nm-radius-sm);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nm-text-main);
  cursor: pointer;
}

.nm-back-to-top:hover {
  border-color: var(--nm-color-accent);
  color: var(--nm-color-accent);
}

/* --------------------------------------------------------------------------
   13. SEARCH MODAL OVERLAY
   -------------------------------------------------------------------------- */
.nm-search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease;
}

.nm-search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nm-search-modal-card {
  background: var(--nm-bg-surface);
  border: 1px solid var(--nm-border-color);
  border-radius: var(--nm-radius-sm);
  width: 90%;
  max-width: 680px;
  padding: 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.nm-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--nm-text-muted);
  cursor: pointer;
}

.nm-search-input-wrap {
  position: relative;
  margin-top: 20px;
}

.nm-search-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nm-text-muted);
}

#nmAjaxSearchInput {
  width: 100%;
  padding: 16px 18px 16px 52px;
  font-size: 1.0625rem;
  border-radius: var(--nm-radius-sm);
  border: 1px solid var(--nm-border-color);
  background: var(--nm-bg-secondary);
  color: var(--nm-text-main);
}

#nmAjaxSearchInput:focus {
  outline: none;
  border-color: var(--nm-color-accent);
}

.nm-search-results-box {
  margin-top: 24px;
  max-height: 380px;
  overflow-y: auto;
}

.nm-search-result-item {
  display: block;
  padding: 16px;
  border-bottom: 1px solid var(--nm-border-subtle);
  transition: background 150ms ease;
}

.nm-search-result-item:hover {
  background: var(--nm-bg-secondary);
}

.nm-search-result-item h4 {
  font-family: var(--nm-font-serif);
  font-size: 1.125rem;
  margin: 6px 0;
}

/* --------------------------------------------------------------------------
   14. ACCESSIBILITY & REDUCED MOTION
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--nm-color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
