/* ─────────────────────────────────────────────
   NEW AVENUE CAPITAL — Market Intelligence (News) Page Styles
   news.css
   Inherits tokens and layout from global.css.
   Page-specific styles only — relies on .section, .section-inner,
   .section--sand/white, .display-headline, .body-text from global.css.
───────────────────────────────────────────── */

/* ─── HERO ─── */
.news-hero {
  text-align: left;
}
.news-hero-label {
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-terracotta);
  margin-bottom: 1.25rem;
}
.news-hero-heading {
  color: var(--c-black);
}
.news-hero-subtext {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--c-graphite);
  max-width: 640px;
  margin-top: 1.5rem;
}

/* ─── SECTION META HEADER ─── */
.news-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 3rem;
  border-bottom: var(--divider);
}
.news-meta-latest {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-graphite);
}
.news-meta-cadence {
  font-size: var(--fs-caption);
  color: var(--c-silver);
  white-space: nowrap;
}

/* ─── FEATURE ARTICLE (articles[0], full width above grid) ─── */
.news-feature {
  display: block;
  margin-bottom: 3.5rem;
}
.news-feature-gradient {
  width: 100%;
  aspect-ratio: 21 / 7;
  min-height: 180px;
  border-radius: 2px;
  margin-bottom: 2rem;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(209, 198, 188, 0.55) 0%, rgba(209, 198, 188, 0) 55%),
    linear-gradient(115deg, var(--c-terracotta) 0%, var(--c-terracotta-dark) 48%, #5f4a43 100%);
}
.news-feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.news-feature-title {
  font-size: var(--fs-headline);
  font-weight: var(--fw-bold);
  line-height: var(--lh-headline);
  color: var(--c-black);
  margin-bottom: 1rem;
  max-width: 760px;
}
.news-feature-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-graphite);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

/* ─── ARTICLE GRID (articles[1..6]) ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
/* Archive uses the same grid; sits below the toggle */
.news-archive {
  margin-top: 2px;
}
/* CRITICAL: .news-grid sets display:grid which overrides the browser's
   default [hidden]{display:none}. This rule restores the hidden behaviour
   so the "Show all news" toggle works. DO NOT REMOVE. */
.news-archive[hidden] { display: none; }

/* ─── ARTICLE CARD ─── */
.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 2rem 1.75rem;
  background: var(--c-white);
  border: 1px solid rgba(86, 86, 86, 0.15);
  transition: background 0.2s ease,
              border-color 0.2s ease,
              transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-card:hover {
  background: #faf9f8;
  border-color: rgba(141, 110, 100, 0.35);
  transform: translateY(-2px);
}
.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.news-card-title {
  font-size: 17px;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--c-black);
  flex: 1;
}

/* ─── SHARED META BITS: TAG / SOURCE / DATE ─── */
.news-tag {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-terracotta);
  background: rgba(141, 110, 100, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
}
.news-source {
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--c-silver);
}
.news-date {
  font-size: var(--fs-caption);
  color: var(--c-silver);
}

/* ─── READ LINK ─── */
.news-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: var(--c-terracotta);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.18s ease, gap 0.18s ease;
}
.news-read-link:hover,
.news-read-link:focus-visible {
  color: var(--c-terracotta-dark);
  gap: 0.7rem;
  outline: none;
}
.news-feature-body .news-read-link {
  margin-top: 0;
}

/* ─── SHOW ALL / TOGGLE BAR ─── */
.news-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 2.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--c-white);
  border: 1px solid rgba(141, 110, 100, 0.28);
  border-left: 3px solid var(--c-terracotta);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.news-toggle:hover {
  background: #faf9f8;
  border-color: var(--c-terracotta);
}
.news-toggle:focus-visible {
  outline: 2px solid var(--c-terracotta);
  outline-offset: 3px;
}
.news-toggle-label {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: var(--c-terracotta);
}
.news-toggle-count {
  font-size: var(--fs-caption);
  color: var(--c-silver);
}

/* ─── EMPTY STATE ─── */
.news-empty {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--c-silver);
  font-size: 16px;
  line-height: 1.7;
}

/* ─── RESPONSIVE ─── */
/* 3-col card grid collapses to 1 col at 900px — matches portfolio.css .deal-cards */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .news-feature-gradient {
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
  }
  .news-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .news-feature-excerpt { font-size: 15px; }
  .news-toggle { padding: 1.1rem 1.25rem; }
}
