/* ============================================
   PARASYN — NEWS STYLESHEET (v2: pronounced treatment)
   For time-stamped announcement content. Distinct from articles.css
   (evergreen case studies): News leads with a dark, weighted hero and
   a live-status dateline, on purpose, to read as "this just happened"
   rather than evergreen reading material. Reuses the site's existing
   promise-band blue (--promise-bg / --promise-eyebrow) so the dark
   treatment rhymes with an already-established pattern rather than
   inventing a new palette. Header/footer use the standard site.css.
   ============================================ */

.ns-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  background: linear-gradient(135deg, #0f1f33 0%, #14305a 45%, #1f63b8 100%);
  padding: 60px 0 54px;
  position: relative;
  overflow: hidden;
}
.ns-hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.ns-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,31,51,0.93) 0%, rgba(20,48,90,0.85) 45%, rgba(31,99,184,0.6) 100%);
}
.ns-hero .col { position: relative; z-index: 2; }
.ns-breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #7fa0c9; margin-bottom: 22px; }
.ns-breadcrumb a { color: #7fa0c9; text-decoration: none; }
.ns-breadcrumb a:hover { color: #fff; }
.ns-h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 40px;
  line-height: 1.14; letter-spacing: -0.015em; color: #fff; margin: 0 0 22px; max-width: 880px;
}
.ns-dateline { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 13.5px; color: #cfe2f7; }
.ns-dateline span { display: flex; align-items: center; gap: 7px; }
.ns-dateline strong { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #4da3ff; font-weight: 700; }
.ns-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4da3ff; display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(77,163,255,0.55); animation: nsPulse 2.2s infinite;
}
@keyframes nsPulse {
  0% { box-shadow: 0 0 0 0 rgba(77,163,255,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(77,163,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(77,163,255,0); }
}

.ns-layout { max-width: 920px; margin: 0 auto; padding: 56px 56px 70px; }
.ns-body { font-size: 17px; line-height: 1.78; color: #334155; }
.ns-body p { margin: 0 0 22px; }
.ns-body ul { margin: 0 0 22px; padding-left: 24px; }
.ns-body li { margin-bottom: 8px; }
.ns-body li:last-child { margin-bottom: 0; }
.ns-section-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #1f63b8; margin: 44px 0 10px;
}
.ns-body h2 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 24px;
  line-height: 1.3; letter-spacing: -0.005em; color: #16202d; margin: 0 0 18px;
}
.ns-figure { margin: 36px 0; }
.ns-figure img { width: 100%; display: block; border-radius: 6px; border: 1px solid #e2e8f0; box-shadow: 0 8px 24px rgba(15,23,42,0.08); }
.ns-figure figcaption {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #9aa6b3; margin-top: 10px; text-align: center;
}
.ns-pullquote {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 24px; line-height: 1.42;
  color: #16202d; background: #eaf1fc; border-left: 4px solid #1f63b8; border-radius: 0 8px 8px 0;
  padding: 30px 34px; margin: 44px 0 0;
}
.ns-cite { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: #1f63b8; margin: 14px 0 28px; text-transform: uppercase; }

.ns-related {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw;
  background: #eef2f6; border-top: 1px solid #e2e8f0; padding: 64px 0;
}
.ns-related-inner { max-width: 1320px; margin: 0 auto; padding: 0 56px; box-sizing: border-box; }
.ns-related-label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 26px; color: #16202d; margin-bottom: 28px; }
.ns-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Carousel variant - same card design, auto-scrolling when there are enough related
   News items to loop convincingly (4+). Stays within the light/blue theme on purpose,
   doesn't borrow the dark dashboard look used on Case Studies. */
.ns-related-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ns-related-track { display: flex; gap: 22px; width: max-content; }
.ns-related-track.is-marquee { animation: ns-marquee 30s linear infinite; }
.ns-related-viewport:hover .ns-related-track.is-marquee { animation-play-state: paused; }
@keyframes ns-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ns-related-track .ns-related-card { flex: 0 0 320px; }

.ns-related-card {
  border: 1px solid #e2e8f0; border-top: 3px solid #2a6fd0; border-radius: 8px; padding: 28px 26px; background: #fff;
  text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; min-height: 130px;
  box-shadow: 0 3px 12px rgba(15,23,42,0.06);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ns-related-card:hover { border-color: #2a6fd0; transform: translateY(-4px); box-shadow: 0 8px 20px rgba(15,23,42,0.1); }
.ns-related-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #2a6fd0; margin-bottom: 10px; display: block; }
.ns-related-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; color: #16202d; line-height: 1.35; margin-bottom: 16px; }
.ns-related-arrow { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #2a6fd0; }

@media (max-width: 900px) {
  .ns-related-grid { grid-template-columns: 1fr; }
  .ns-h1 { font-size: 30px; }
  .ns-layout { padding: 40px 24px 56px; }
  .ns-hero { padding: 44px 0 40px; }
}
