/* ═══════════════════════════════════════════════════════════════
   news.css: /pages/press-releases.html and /pages/webinars.html
   Loads after: themes.css → base.css → nav.css → footer.css
   ═══════════════════════════════════════════════════════════════ */

body.news-page { padding-top: var(--nav-height); }

/* ── Hero (always dark) ── */
.news-hero {
  background: var(--bg-hero);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}
.news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-hero) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-hero) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.news-hero .container { position: relative; }
.news-hero .eyebrow { margin-bottom: var(--space-4); }
.news-hero h1 {
  color: var(--text-hero-color);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.news-hero__sub {
  color: var(--text-hero-dim);
  font-size: var(--text-lg);
  max-width: 640px;
  line-height: 1.6;
}

/* ── Press release list ── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 880px;
  margin: 0 auto;
}
.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.news-item:hover { border-color: var(--dv-orange-border-strong); transform: translateY(-2px); }
.news-item--latest { border-top: 3px solid var(--dv-orange); }
.news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.news-item__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dv-orange);
  background: var(--dv-orange-dim);
  border: 1px solid var(--dv-orange-border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}
.news-item__tag--teal {
  color: var(--dv-teal);
  background: var(--dv-teal-dim);
  border-color: var(--dv-teal-border);
}
.news-item h2 {
  font-size: var(--text-2xl);
  line-height: 1.25;
  margin-bottom: var(--space-2);
}
.news-item p { color: var(--text-secondary); line-height: 1.65; margin-bottom: var(--space-3); }
.news-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dv-orange);
  text-decoration: none;
}
.news-item__link:hover { text-decoration: underline; }

/* ── Webinars empty state ── */
.news-empty {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--dv-teal);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-5);
}
.news-empty h2 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.news-empty p { color: var(--text-secondary); line-height: 1.65; margin-bottom: var(--space-4); }
.news-empty__ctas { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .news-item { padding: var(--space-4); }
  .news-item h2 { font-size: var(--text-xl); }
}

/* ── Webinar sign-up form ── */
.news-signup {
  display: flex;
  gap: var(--space-2);
  max-width: 480px;
  margin: 0 auto var(--space-3);
}
.news-signup__input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.news-signup__input:focus { outline: none; border-color: var(--dv-orange); }
.news-signup__confirm { color: var(--text-primary); font-weight: 600; margin-bottom: var(--space-4); }
.news-signup__error { color: var(--dv-orange); font-size: var(--text-sm); margin-bottom: var(--space-3); }
@media (max-width: 520px) { .news-signup { flex-direction: column; } }
.news-page .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.news-signup[hidden] { display: none; }
