/* ==========================================================
   Riverport Business Club - News (/news/)
   hero > story index + full stories (grey) > CTA (charcoal)
   > member circles > footer, plus a photo viewer
   ========================================================== */

/* ---------- Head + index ---------- */
.nw-head { text-align: center; margin-bottom: var(--stack); }
.nw-head .rp-rule { margin-bottom: 1rem; }
.nw-head p { margin: 0 auto; max-width: 56ch; color: var(--muted); font-size: 1.05rem; }
.nw-empty { text-align: center; color: var(--muted); font-size: 1.1rem; }

.nw-index { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.nw-index__link { display: flex; align-items: center; gap: 1rem; min-width: 0; height: 100%; padding: 0.75rem 1.1rem 0.75rem 0.75rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.nw-index__link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nw-index__link img { width: 96px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 10px; }
.nw-index__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; flex: 1; }
.nw-index__meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--brand-deep); }
.nw-index__title { font-weight: 800; color: #2b2b2b; line-height: 1.35; }
.nw-index__arrow { flex-shrink: 0; color: var(--brand); transition: transform 0.2s var(--ease); }
.nw-index__link:hover .nw-index__arrow { transform: translateY(3px); }

/* ---------- Stories ---------- */
.nw-stories { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.nw-story {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--shadow-sm); border-top: 3px solid var(--brand);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.nw-story__media { display: grid; gap: 0.75rem; min-width: 0; }
.nw-story__photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.nw-story__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease); }
.nw-story__photo:hover img { transform: scale(1.03); }
.nw-zoom { position: absolute; right: 0.75rem; bottom: 0.75rem; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: var(--white); font-size: 0.9rem; }
.nw-story__photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.nw-story__photos a { display: block; overflow: hidden; border-radius: 10px; }
.nw-story__photos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s var(--ease); }
.nw-story__photos a:hover img { transform: scale(1.06); }
.nw-story__count { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.nw-story__count i { color: var(--brand); margin-right: 0.3rem; }

.nw-story__body { min-width: 0; }
.nw-story__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 0.85rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.nw-tag { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.nw-story__title { margin: 0 0 0.75rem; font-size: var(--fs-h3); font-weight: 800; line-height: 1.25; color: #2b2b2b; }
.nw-story__summary { margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--grey-line); font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem); font-weight: 500; line-height: 1.6; color: #3a3a3a; }
.nw-story__text p { margin: 0 0 1rem; line-height: 1.75; color: #3a3a3a; }
.nw-story__text a { color: #2b2b2b; font-weight: 700; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.nw-story__text h4 { margin: 1.5rem 0 0.6rem; font-size: 1.1rem; font-weight: 800; color: #2b2b2b; }
.nw-quote { margin: 1.25rem 0 1.5rem; padding: 1.1rem 1.25rem 1.1rem 1.4rem; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; background: var(--grey); }
.nw-quote blockquote { margin: 0; }
.nw-quote blockquote p { margin: 0; font-size: 1.08rem; font-style: italic; font-weight: 600; line-height: 1.6; color: #2b2b2b; }
.nw-quote figcaption { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.nw-quote figcaption::before { content: "- "; }
.nw-story__foot { margin-top: 1.5rem; }

/* ---------- CTA ---------- */
.nw-cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem); color: var(--white);
  background: radial-gradient(ellipse at 90% 10%, rgba(254, 104, 191, 0.22), transparent 55%), linear-gradient(135deg, #4d4d4d 0%, #3a3a3a 100%);
}
.nw-cta__circles { position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; width: clamp(240px, 26vw, 400px); left: clamp(-150px, -7vw, -60px); bottom: clamp(-170px, -9vw, -80px); }
.nw-cta__circles span { position: absolute; border-radius: 50%; width: 52%; aspect-ratio: 1; }
.nw-cta__circles span:nth-child(1) { left: 22%; top: 4%; background: rgba(255, 255, 255, 0.07); }
.nw-cta__circles span:nth-child(2) { left: 6%; top: 40%; background: rgba(254, 104, 191, 0.38); }
.nw-cta__circles span:nth-child(3) { left: 40%; top: 38%; background: rgba(147, 147, 147, 0.26); }
.nw-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nw-cta__title { color: var(--white); font-size: var(--fs-h2); font-weight: 800; margin: 0 0 0.5rem; }
.nw-cta p { margin: 0; color: #e6e6e6; font-size: 1.05rem; max-width: 52ch; }
.nw-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }
a.nw-cta__join { background: var(--brand); color: var(--white); }
a.nw-cta__join:hover { background: var(--brand-dark); color: var(--white); box-shadow: 0 10px 24px rgba(254, 104, 191, 0.35); }

/* ---------- Photo viewer ---------- */
.nw-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); background: #161616; }
.nw-lightbox[hidden] { display: none; }
.nw-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.85rem; max-width: 100%; }
.nw-lightbox__img { display: block; max-width: min(1200px, 100%); max-height: calc(100vh - 9rem); width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.nw-lightbox__caption { max-width: 70ch; text-align: center; color: #e6e6e6; font-size: 0.95rem; line-height: 1.5; }
.nw-lightbox__btn {
  position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--white); font-size: 1.15rem; cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.nw-lightbox__btn:hover { background: var(--brand); }
.nw-lightbox__btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.nw-lightbox__btn[hidden] { display: none; }
.nw-lightbox__close { top: 1rem; right: 1rem; }
.nw-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.nw-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
body.nw-locked { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nw-story { grid-template-columns: minmax(0, 1fr); }
  .nw-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nw-lightbox__prev, .nw-lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .nw-lightbox__prev { left: calc(50% - 60px); }
  .nw-lightbox__next { right: calc(50% - 60px); }
  .nw-lightbox__img { max-height: calc(100vh - 12rem); }
  .nw-cta__actions { width: 100%; flex-direction: column; }
  .nw-cta__actions .rp-btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .nw-index__link img { width: 72px; height: 56px; }
  .nw-story__photos { gap: 0.5rem; }
}
