/* ============================================================
   NEWS & PROGRESS — page-specific styles. Reuses shared tokens
   from style.css and the hero/wrap/cc-rule/cc-section-head/cc-cta
   from coastal-city.css.
   ============================================================ */

/* ---------- FEATURED + LATEST ---------- */
.np-featured {
  padding: 96px 0; background: var(--ripple);
  position: relative; z-index: 1;
  /* Sits flush below the full-height hero — no rounded overlap, so the section
     doesn't peek above the fold as a white bar. Section-to-section overlaps
     further down the page keep their rounded tops. */
}
.np-featured-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start;
}

/* Featured story — large image card */
.np-feature-card {
  display: block; text-decoration: none;
  background: var(--white); border: 1px solid rgba(46,71,92,.12);
  border-radius: 16px; overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.np-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(46,71,92,.16);
  border-color: rgba(236,161,84,.5);
}
.np-feature-media { line-height: 0; }
.np-feature-media img { width: 100%; height: 420px; object-fit: cover; display: block; }
.np-feature-body { padding: 34px 38px 40px; }
.np-kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 400;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--alive); margin-bottom: 14px;
}
.np-feature-body h2 {
  font-family: var(--font-display); font-weight: 300; font-size: 34px; line-height: 1.12;
  color: var(--black); margin: 0 0 16px;
}
.np-feature-body p {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: #333; margin: 0 0 22px;
}

/* Shared "read more" affordance */
.np-readmore {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 400; font-size: 15px;
  letter-spacing: .04em; color: var(--rhythm);
}
.np-readmore .arrow { transition: transform .3s ease; }
.np-feature-card:hover .np-readmore .arrow,
.np-card:hover .np-readmore .arrow { transform: translateX(4px); }

/* Latest sidebar */
.np-latest-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.np-latest-head .cc-rule { flex: none; }
.np-latest-head h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--black); margin: 0;
}
.np-latest-list { list-style: none; margin: 0; padding: 0; }
.np-latest-list li { border-bottom: 1px solid rgba(46,71,92,.14); }
.np-latest-list a {
  display: block; padding: 22px 0; text-decoration: none;
  transition: padding-left .3s ease;
}
.np-latest-list a:hover { padding-left: 8px; }
.np-latest-cat {
  display: block; font-family: var(--font-display); font-weight: 400; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--alive); margin-bottom: 8px;
}
.np-latest-title {
  display: block; font-family: var(--font-body); font-size: 17px; line-height: 1.45; color: var(--black);
}

/* ---------- MILESTONES ---------- */
.np-milestones { padding: 96px 0; background: var(--rhythm); color: var(--ripple); overflow: hidden; }
.np-milestones .cc-section-head h2 { color: var(--white); }
.np-milestones .cc-section-head p { color: var(--ripple); }

.np-timeline {
  list-style: none; margin: 8px 0 0; padding: 0;
  border-left: 2px solid rgba(239,239,239,.2);
}
.np-timeline-item {
  position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  padding: 26px 0 26px 36px;
}
.np-timeline-item + .np-timeline-item { border-top: 1px solid rgba(239,239,239,.14); }
/* Node on the rail */
.np-timeline-item::before {
  content: ""; position: absolute; left: -8px; top: 34px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--alive); box-shadow: 0 0 0 4px var(--rhythm);
}
.np-timeline-year {
  font-family: var(--font-display); font-weight: 400; font-size: 22px;
  color: var(--alive); white-space: nowrap;
}
.np-timeline-copy h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--white); margin: 0 0 8px;
}
.np-timeline-copy p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ripple); margin: 0; max-width: 56ch;
}

/* ---------- ARTICLE GRID ---------- */
.np-grid-sec { padding: 96px 0; background: var(--ripple); }
.np-grid-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  flex-wrap: wrap; margin-bottom: 44px;
}
.np-grid-head h2 {
  font-family: var(--font-display); font-weight: 300; font-size: 38px; line-height: 1.1;
  color: var(--black); margin: 6px 0 0;
}

/* Category filters */
.np-filters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.np-filter {
  font-family: var(--font-display); font-weight: 400; font-size: 14px; letter-spacing: .04em;
  color: var(--rhythm); background: transparent;
  border: 1px solid rgba(46,71,92,.28); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.np-filter:hover { border-color: var(--alive); color: var(--alive); }
.np-filter.is-active { background: var(--rhythm); border-color: var(--rhythm); color: var(--white); }

.np-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.np-card-item.is-hidden { display: none; }
/* Slow, staggered float-in left-to-right across each row of three. */
.np-card-item.reveal-block {
  transition-duration: 1.2s;
  transition-delay: calc(var(--np-card-i, 0) * 0.15s);
}

.np-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid rgba(46,71,92,.12);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.np-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(46,71,92,.14);
  border-color: rgba(236,161,84,.5);
}
.np-card-media { position: relative; line-height: 0; }
.np-card-media img { width: 100%; height: 220px; object-fit: cover; display: block; }
.np-card-tag {
  position: absolute; left: 14px; top: 14px;
  font-family: var(--font-display); font-weight: 400; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--white);
  background: rgba(46,71,92,.86); border: 1px solid rgba(255,255,255,.18);
  padding: 6px 12px; border-radius: 999px;
}
.np-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.np-card-body h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2;
  color: var(--black); margin: 0 0 12px;
}
.np-card-body p {
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: #444; margin: 0 0 20px;
}
.np-card-body .np-readmore { margin-top: auto; }

/* ---------- NEWSLETTER ---------- */
.np-newsletter { padding: 88px 0; background: var(--rhythm); color: var(--white); }
.np-newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.np-newsletter-copy h2 {
  font-family: var(--font-display); font-weight: 300; font-size: 36px; color: var(--white); margin: 6px 0 14px;
}
.np-newsletter-copy p {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ripple); margin: 0; max-width: 46ch;
}
.np-newsletter-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.np-field { flex: 1; min-width: 240px; }
.np-field-label {
  display: block; font-family: var(--font-display); font-weight: 400; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ripple); margin-bottom: 10px;
}
.np-field input {
  width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 16px;
  color: var(--white); background: rgba(255,255,255,.06);
  border: 1px solid rgba(239,239,239,.28); border-radius: 999px; padding: 14px 22px;
}
.np-field input::placeholder { color: rgba(239,239,239,.6); }
.np-field input:focus { outline: none; border-color: var(--alive); background: rgba(255,255,255,.1); }
/* Subscribe button sits on the dark section: white text + white border (border
   uses currentColor). Hover fills white with dark text. */
.np-newsletter-form .btn-pill { color: var(--white); }
.np-newsletter-form .btn-pill:hover { background: var(--white); color: var(--rhythm); }

/* Decorative ring tucked into the top-right of the milestones section
   (.np-milestones already clips overflow). */
.np-milestones-ring { top: -150px; right: -160px; left: auto; }

/* Concentric ring encircling the Subscribe button. */
.np-newsletter { overflow: hidden; }
.np-subscribe-wrap { position: relative; display: inline-flex; }
.np-subscribe-wrap .btn-pill { position: relative; z-index: 1; }
.np-btn-ring {
  width: 523px; height: 514px; max-width: none;
  left: -560px; top: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- ROUNDED SECTION OVERLAPS (echoes coastal-city) ---------- */
.np-milestones,
.np-grid-sec,
.np-newsletter,
.cc-cta {
  position: relative; z-index: 1;
  border-radius: 18px 18px 0 0; margin-top: -28px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .np-featured-grid { grid-template-columns: 1fr; gap: 40px; }
  .np-newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
  .np-grid { grid-template-columns: repeat(2, 1fr); }
  .np-feature-media img { height: 320px; }
}
@media (max-width: 640px) {
  .np-featured, .np-milestones, .np-grid-sec, .np-newsletter { padding: 64px 0; }
  .np-grid { grid-template-columns: 1fr; }
  .np-feature-body { padding: 26px 24px 30px; }
  .np-feature-body h2 { font-size: 28px; }
  .np-grid-head h2 { font-size: 30px; }
  .np-timeline-item { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; }
  .np-timeline-item::before { top: 8px; }
  .np-newsletter-form { flex-direction: column; align-items: stretch; }
  .np-newsletter-form .btn-pill { justify-content: center; }
}
