/* =============================================
   TCF News Page CSS
   ============================================= */

/* --- PAGE HERO --- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(32px, 4vw, 56px);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.page-hero h1 {
  margin-bottom: 12px;
  max-width: 700px;
}
.page-hero__sub {
  font-size: 1.08rem;
  max-width: 540px;
}

/* --- NAV LIGHT (used on light pages) --- */
.tcf-nav--light {
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--c-border);
}

/* --- NAV ACTIVE STATE --- */
.nav-link--active {
  color: var(--c-accent);
}

/* --- FILTER BAR --- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text-mid);
  background: var(--c-bg-soft);
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.filter-btn:hover {
  background: var(--c-border);
  color: var(--c-text);
}
.filter-btn.is-active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.filter-btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* --- FEATURED CARD --- */
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  min-height: 360px;
}
.featured-card__media {
  overflow: hidden;
}
.featured-card__media svg,
.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-card__body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.featured-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.news-tag--featured {
  background: rgba(232,111,81,0.12);
  color: var(--c-accent);
}
.featured-card__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-text);
  line-height: 1.2;
  text-wrap: balance;
}
.featured-card__excerpt {
  font-size: 1rem;
  color: var(--c-text-mid);
  line-height: 1.65;
}

/* --- ARCHIVE GRID --- */
.news-archive { background: var(--c-bg-soft); }
.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- NEWS CARD (shared with index) --- */
.news-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.news-card__media svg,
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.news-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--c-bg-soft);
  color: var(--c-text-mid);
  padding: 3px 8px;
  border-radius: 99px;
}
.news-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--c-text-mid);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.news-card__date {
  font-size: 0.75rem;
  color: var(--c-text-mute);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* --- EMPTY STATE --- */
.news-empty {
  padding: 64px 0;
  text-align: center;
  color: var(--c-text-mute);
  font-size: 1rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; min-height: auto; }
  .featured-card__media { aspect-ratio: 16/9; }
  .news-archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .news-archive-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 7px 14px; font-size: 0.8rem; }
}
