/* /news/ list + detail styling.
   Reuses brand tokens from site.css (--bg-primary, --text-*, --accent,
   --font-heading, --font-body) and the .tag-pill ruleset already defined
   for the /work/ filter strip. */

/* --- List page --- */

.news-page {
  padding: calc(var(--nav-height, 80px) + 56px) 0 96px;
}

.news-page__header {
  margin: 0 0 36px;
  max-width: 64ch;
}

.news-page__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-light, var(--accent));
  margin: 0 0 12px;
}

.news-page__header h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.news-page__lede {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 36px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.news-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s;
}

.news-card:hover {
  transform: translateY(-2px);
  background: var(--bg-surface);
}

.news-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bg-primary);
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.04);
}

.news-card__media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-surface));
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.news-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card__date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.2;
  margin: 0;
  color: var(--text-primary);
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--accent-light, var(--accent));
}

.news-card__summary {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
  margin: 4px 0 0;
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.news-card__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s, color 0.15s;
}

.news-card__tag:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

.news-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-tertiary);
}

.news-pager a {
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 2px;
}

.news-pager a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.news-empty {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 36px 0 0;
}

/* --- Detail page --- */

.news-detail {
  margin: 0;
}

.news-detail__hero {
  position: relative;
  width: 100%;
  height: clamp(280px, 50vh, 540px);
  overflow: hidden;
  margin: 0;
}

.news-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-detail__hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,20,20,0.2) 0%, var(--bg-primary) 95%);
  pointer-events: none;
}

.news-detail__body-wrap {
  padding-top: 56px;
  padding-bottom: 80px;
}

.news-detail__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 18px;
}

.news-detail__eyebrow a {
  color: var(--accent-light, var(--accent));
  text-decoration: none;
}

.news-detail__eyebrow a:hover {
  color: var(--text-primary);
}

.news-detail__body-wrap h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.news-detail__meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 32px;
}

.news-detail__lede {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 32px;
}

.news-detail__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
}

.news-detail__body p {
  margin: 0 0 20px;
}

.news-detail__body h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--text-primary);
  margin: 36px 0 14px;
  line-height: 1.15;
}

.news-detail__body ul,
.news-detail__body ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}

.news-detail__body li {
  margin: 0 0 6px;
  padding-left: 4px;
}

.news-detail__body ul li::marker {
  color: var(--accent);
}

.news-detail__body a {
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.news-detail__body a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.news-detail__body img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 6px;
}

.news-detail__body strong {
  color: var(--text-primary);
}

.news-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.news-related {
  padding: 60px 0 80px;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.news-related h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 0 0 24px;
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .news-page {
    padding: calc(var(--nav-height-mobile, 72px) + 36px) 0 60px;
  }
  .news-detail__body-wrap {
    padding-top: 36px;
    padding-bottom: 50px;
  }
}
