/* ─── NEWS PAGE ──────────────────────────────────────────── */

/* Page title block */
.news-page {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.page-title-wrap {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

/* ── TIMELINE LAYOUT ── */
.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Year group */
.year-group {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 2.5rem;
  margin-bottom: 3rem;
  animation: fadeUp 0.45s var(--ease-out-expo) both;
}

.year-group:nth-child(1)  { animation-delay: 0.05s; }
.year-group:nth-child(2)  { animation-delay: 0.1s; }
.year-group:nth-child(3)  { animation-delay: 0.15s; }
.year-group:nth-child(4)  { animation-delay: 0.2s; }
.year-group:nth-child(5)  { animation-delay: 0.25s; }

/* Year label */
.year-label {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--red-faint);
  opacity: 1;
  line-height: 1;
  padding-top: 0.9rem;
  text-align: right;
  letter-spacing: -0.03em;
  position: sticky;
  top: calc(var(--nav-h) + 72px + 1rem);
  align-self: start;
  transition: opacity 0.2s;
}

.year-group:hover .year-label {
  opacity: 0.5;
}

/* Entries column */
.year-entries {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── INDIVIDUAL ENTRY ── */
.news-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 1.25rem;
  padding: 0.85rem 0 0.85rem 0;
  position: relative;
  transition: background 0.15s;
  border-radius: 0 8px 8px 0;
}

/* Timeline dot */
.news-entry::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 1.2rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rule);
  border: 1.5px solid var(--white);
  transition: background 0.2s, transform 0.2s;
  z-index: 1;
}

.news-entry:hover::before {
  background: var(--red);
  transform: scale(1.3);
}

/* Colored dot variants */
.news-entry--award::before    { background: #c07000; }
.news-entry--funding::before  { background: #2a7a2a; }
.news-entry--publication::before { background: #1a5fa0; }
.news-entry--press::before    { background: #7a2a7a; }

.news-entry--award:hover::before    { background: #c07000; }
.news-entry--funding:hover::before  { background: #2a7a2a; }
.news-entry--publication:hover::before { background: #1a5fa0; }
.news-entry--press:hover::before    { background: #7a2a7a; }

/* Date column */
.news-date {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-mid);
  padding-top: 0.2rem;
  line-height: 1.5;
  font-style: normal;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

/* Body */
.news-body {
  padding-bottom: 0.5rem;
}

.news-body p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 0;
}

.news-body p a {
  color: var(--red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}
.news-body p a:hover { color: var(--red); }

/* Entry type badges */
.news-entry--award .news-date::after {
  content: 'Award';
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c07000;
  opacity: 0.8;
}

.news-entry--funding .news-date::after {
  content: 'Funding';
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a7a2a;
  opacity: 0.8;
}

.news-entry--publication .news-date::after {
  content: 'Publication';
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a5fa0;
  opacity: 0.8;
}

.news-entry--press .news-date::after {
  content: 'Press';
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a2a7a;
  opacity: 0.8;
}

/* ── PHOTO STRIP ── */
.news-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.news-photos a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.25s var(--ease-out-expo), box-shadow 0.25s;
  flex-shrink: 0;
}

.news-photos a:hover {
  opacity: 1;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.news-photos img {
  display: block;
  border-radius: 6px;
  object-fit: cover;
  background: var(--rule);
}

/* Divider between entries */
.news-entry + .news-entry {
  border-top: 1px solid var(--rule);
}

/* Legend strip */
.news-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0.9rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.73rem;
  color: var(--ink-faint);
}

.news-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot--award       { background: #c07000; }
.legend-dot--funding     { background: #2a7a2a; }
.legend-dot--publication { background: #1a5fa0; }
.legend-dot--press       { background: #7a2a7a; }
.legend-dot--default     { background: var(--rule); border: 1.5px solid #ccc; }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .year-group {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .year-label {
    font-size: 1.1rem;
    text-align: left;
    opacity: 1;
    color: var(--red-faint);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0 0 0.75rem 1.5rem;
    position: static;
  }

  .news-entry {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
  }

  .news-entry--award .news-date::after,
  .news-entry--funding .news-date::after,
  .news-entry--publication .news-date::after,
  .news-entry--press .news-date::after {
    display: inline;
    margin-top: 0;
  }

  .news-photos img {
    max-width: 100%;
    height: auto !important;
    width: auto !important;
  }
}