/* ==========================================================================
   Opus AV — News page styles  (editorial redesign)
   /news/index.html
   Never hard-code hex values — always reference tokens from tokens.css.
   ========================================================================== */


/* ── Masthead watermark ─────────────────────────────────────────────────── */

.page-masthead::after {
  background-image: url('../../logos/opus-av-bars-mark.svg');
}


/* =========================================================================
   FEATURED ARTICLE — cinematic dark panel
   ========================================================================= */

.news-feature {
  position: relative;
  overflow: hidden;
  background: var(--opus-charcoal);
  padding-block: clamp(5rem, 9vw, 7.5rem);
  isolation: isolate;
}

.news-feature .ambient {
  opacity: 0.35;
}

.news-feature__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-6);
  align-items: start;
}

/* Giant decorative article number */
.news-feature__num {
  font-size: clamp(7rem, 16vw, 13rem);
  font-weight: var(--fw-light);
  color: var(--opus-white);
  opacity: 0.05;
  line-height: 0.85;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  align-self: flex-start;
  margin-top: -0.05em; /* optical top-align with h2 */
}

.news-feature__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.news-feature__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.news-feature__date {
  font-size: var(--fs-small);
  color: rgba(242, 242, 242, 0.5);
}

/* Main headline */
.news-feature__title {
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  font-weight: var(--fw-light);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}

.news-feature__title a {
  color: var(--opus-white);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-opus);
}

.news-feature__title a:hover {
  color: var(--accent);
}

.news-feature__excerpt {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: rgba(242, 242, 242, 0.68);
  line-height: 1.7;
  max-width: 64ch;
  margin: 0;
}

.news-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap var(--dur-fast) var(--ease-opus),
              color var(--dur-fast) var(--ease-opus);
  width: fit-content;
}

.news-feature__cta:hover {
  gap: 0.65em;
}

/* Collapse num on mobile — it takes too much space */
@media (max-width: 640px) {
  .news-feature__inner {
    grid-template-columns: 1fr;
  }

  .news-feature__num {
    display: none;
  }
}


/* =========================================================================
   SECTOR / CATEGORY TAG PILLS
   ========================================================================= */

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22em 0.7em;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1;
  white-space: nowrap;
}

.news-tag--sensory   { background: rgba(  0, 164, 180, 0.14); color: #00A4B4; }
.news-tag--education { background: rgba(237, 123,  34, 0.14); color: #ED7B22; }
.news-tag--religion  { background: rgba(212, 161,  85, 0.14); color: #D4A155; }
.news-tag--leisure   { background: rgba(240, 101,  61, 0.14); color: #F0653D; }
.news-tag--industry  { background: rgba(110, 156, 194, 0.14); color: #6E9CC2; }
.news-tag--community { background: rgba(138, 165, 108, 0.14); color: #8AA56C; }
.news-tag--company   { background: rgba(237, 123,  34, 0.14); color: #ED7B22; }

/* Tags on dark backgrounds — bumped opacity */
.news-feature .news-tag--sensory   { background: rgba(  0, 164, 180, 0.22); }
.news-feature .news-tag--education { background: rgba(237, 123,  34, 0.22); }
.news-feature .news-tag--religion  { background: rgba(212, 161,  85, 0.22); }
.news-feature .news-tag--leisure   { background: rgba(240, 101,  61, 0.22); }
.news-feature .news-tag--industry  { background: rgba(110, 156, 194, 0.22); }
.news-feature .news-tag--community { background: rgba(138, 165, 108, 0.22); }
.news-feature .news-tag--company   { background: rgba(237, 123,  34, 0.22); }

.news-article--dark .news-tag--sensory   { background: rgba(  0, 164, 180, 0.22); }
.news-article--dark .news-tag--education { background: rgba(237, 123,  34, 0.22); }
.news-article--dark .news-tag--religion  { background: rgba(212, 161,  85, 0.22); }
.news-article--dark .news-tag--leisure   { background: rgba(240, 101,  61, 0.22); }
.news-article--dark .news-tag--industry  { background: rgba(110, 156, 194, 0.22); }
.news-article--dark .news-tag--community { background: rgba(138, 165, 108, 0.22); }
.news-article--dark .news-tag--company   { background: rgba(237, 123,  34, 0.22); }


/* =========================================================================
   EDITORIAL ARTICLE GRID
   ========================================================================= */

.news-editorial {
  padding-block: var(--space-7) var(--space-8);
  background: var(--surface-soft);
  position: relative;
  overflow: hidden;
}

/* Section eyebrow label */
.news-editorial__label {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

/* Asymmetric 2-column grid */
.news-editorial__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 720px) {
  .news-editorial__grid {
    grid-template-columns: 1fr;
  }
}


/* ── Individual article card ────────────────────────────────────────────── */

.news-article {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-4);
  align-items: start;
  padding: var(--space-5);
  background: var(--opus-white);
  border-top: 2px solid var(--hairline);
  transition: border-color var(--dur-fast) var(--ease-opus),
              box-shadow var(--dur-base) var(--ease-opus),
              transform var(--dur-base) var(--ease-opus);
}

.news-article:hover {
  border-top-color: var(--accent);
  box-shadow: 0 10px 36px rgba(31, 31, 31, 0.09);
  transform: translateY(-2px);
}

/* Dark article variant */
.news-article--dark {
  background: var(--opus-charcoal);
}

.news-article--dark:hover {
  border-top-color: var(--accent);
}

/* Decorative article number — sits to the left */
.news-article__num {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: var(--fw-light);
  color: var(--text-strong);
  opacity: 0.06;
  line-height: 0.9;
  letter-spacing: -0.03em;
  user-select: none;
  pointer-events: none;
  margin-top: 0.05em; /* optical alignment with h3 */
  min-width: 2ch;
}

.news-article--dark .news-article__num {
  color: var(--opus-white);
  opacity: 0.06;
}

/* Article body — right column */
.news-article__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.news-article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.news-article__date {
  font-size: 0.8rem;
  color: var(--opus-grey);
}

.news-article--dark .news-article__date {
  color: rgba(242, 242, 242, 0.45);
}

.news-article__title {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: var(--fw-medium);
  line-height: 1.3;
  margin: 0;
}

.news-article__title a {
  color: var(--text-strong);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-opus);
}

.news-article__title a:hover {
  color: var(--accent);
}

.news-article--dark .news-article__title a {
  color: var(--opus-white);
}

.news-article--dark .news-article__title a:hover {
  color: var(--accent);
}

.news-article__excerpt {
  font-size: var(--fs-small);
  color: var(--text-default);
  line-height: 1.65;
  margin: 0;
}

.news-article--dark .news-article__excerpt {
  color: rgba(242, 242, 242, 0.62);
}

.news-article__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-opus);
}

.news-article__link:hover {
  gap: 0.6em;
}

/* On mobile: collapse the decorative number */
@media (max-width: 480px) {
  .news-article {
    grid-template-columns: 1fr;
  }

  .news-article__num {
    display: none;
  }
}


/* ── Closing CTA — reuse global .closing-cta ────────────────────────────── */

.closing-cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: var(--fw-light);
  color: var(--text-strong);
  max-width: 28ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
