/*
 * Insights hub + article pages (SMA-773 / SMA-774 and follow-ons)
 *
 * This file is intentionally page-specific. It reuses SmartPAL's palette and
 * existing header/footer instead of changing unrelated site components.
 */

.insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.insights-filter-chip {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 16px;
  cursor: pointer;
}

.insights-filter-chip:hover,
.insights-filter-chip:focus {
  border-color: var(--link);
  color: var(--link);
  outline: none;
}

.insights-filter-chip.is-active {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--on-dark-text);
}

.insights-pinned {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 40px;
  align-items: stretch;
}

.insights-pinned .news-card--featured {
  grid-column: 1;
}

.insights-pinned > .news-card:not(.news-card--featured) {
  grid-column: 2;
}

.news-card__type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(166, 76, 47, 0.12);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card--text {
  border-top: 5px solid var(--secondary);
}

.news-card--text .news-card__summary {
  margin-bottom: 0;
}

.insights-empty {
  margin: 12px 0 0;
  color: var(--foreground-secondary);
  font-size: 17px;
}

.news-page {
  background: var(--band-default);
}

.news-page-header {
  max-width: 40rem;
  margin: 0 0 28px;
  text-align: left;
}

.news-page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.15;
}

.news-page-header p {
  margin: 0;
  color: var(--foreground-secondary);
  font-size: 18px;
  line-height: 1.55;
}

.news-eyebrow,
.news-card__category,
.news-article__kicker {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Article pages still use the accent header band. */
.news-hero {
  padding: 170px 0 92px;
  background: var(--band-accent);
}

.news-hero__content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.news-hero h1 {
  margin: 14px 0 20px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
}

.news-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--foreground-secondary);
  font-size: 19px;
  line-height: 1.65;
}

.news-section {
  padding: 88px 0;
}

.news-section--hub {
  padding-top: 140px;
}

.news-section--surface {
  background: var(--band-surface);
}

.news-section__header {
  max-width: 740px;
  margin-bottom: 38px;
}

.news-section__header h2 {
  margin: 10px 0 12px;
}

.news-section__header p {
  color: var(--foreground-secondary);
  font-size: 17px;
}

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

.news-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(18, 22, 27, 0.08);
}

.news-card.news-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 0;
  flex-direction: unset;
}

.news-card.news-card--featured .news-card__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  /* Matches the MN Cup square graphic paper wash when letterboxing. */
  background: linear-gradient(135deg, #f7f9f9 0%, #e0d0c1 100%);
}

.news-card.news-card--featured .news-card__image {
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.news-card.news-card--featured .news-card__body {
  justify-content: center;
}

.news-card__image-link {
  display: block;
  overflow: hidden;
  background: var(--band-accent);
}

.news-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card__image-link:hover .news-card__image,
.news-card__image-link:focus .news-card__image {
  transform: scale(1.018);
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.news-card__meta,
.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--foreground-secondary);
  font-size: 14px;
}

.news-card__meta-separator,
.news-article__meta-separator {
  color: var(--color-trademark);
}

.news-card h3 {
  margin-bottom: 14px;
  font-size: 27px;
  line-height: 1.25;
}

.news-card h3 a {
  color: var(--foreground);
}

.news-card h3 a:hover,
.news-card h3 a:focus {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-card__summary {
  margin-bottom: 24px;
  color: var(--foreground-secondary);
}

.news-card__link {
  margin-top: auto;
  color: var(--link);
  font-weight: 700;
}

.news-card__link:hover,
.news-card__link:focus {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-card__arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.news-card__link:hover .news-card__arrow,
.news-card__link:focus .news-card__arrow {
  transform: translateX(3px);
}

.news-awards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-award-card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--secondary);
  border-radius: 14px;
  background: var(--card);
}

.news-award-card__date {
  margin-bottom: 12px;
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
}

.news-award-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.3;
}

.news-award-card p {
  color: var(--foreground-secondary);
}

.news-article-header {
  padding: 156px 0 54px;
  background: var(--band-accent);
}

.news-article-header__inner,
.news-article__body {
  max-width: 820px;
  margin: 0 auto;
}

.news-breadcrumb {
  margin-bottom: 30px;
  font-size: 15px;
}

.news-breadcrumb a,
.news-article__body a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-breadcrumb a:hover,
.news-breadcrumb a:focus,
.news-article__body a:hover,
.news-article__body a:focus {
  color: var(--link-hover);
}

.news-article-header h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
}

.news-article__standfirst {
  margin-bottom: 22px;
  color: var(--foreground-secondary);
  font-size: 20px;
  line-height: 1.55;
}

.news-article__hero-wrap {
  padding: 48px 0 0;
  background: var(--band-default);
}

.news-article__hero {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(18, 22, 27, 0.12);
}

.news-article__content {
  padding: 62px 0 92px;
  background: var(--band-default);
}

.news-article__body > p {
  margin-bottom: 24px;
  color: var(--foreground-secondary);
  font-size: 18px;
  line-height: 1.78;
}

.news-article__body h2 {
  margin: 50px 0 18px;
  font-size: 33px;
  line-height: 1.25;
}

.news-article__quote {
  margin: 42px 0;
  padding: 30px 32px;
  border-left: 6px solid var(--secondary);
  border-radius: 0 14px 14px 0;
  background: var(--band-accent);
}

.news-article__quote p {
  color: var(--foreground);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.58;
}

.news-article__source {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.news-related {
  padding: 72px 0;
  background: var(--band-surface);
}

.news-related__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.news-related__card h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.news-related__card p {
  color: var(--foreground-secondary);
}

@media (max-width: 991px) {
  .insights-pinned {
    grid-template-columns: 1fr;
  }

  .insights-pinned .news-card--featured,
  .insights-pinned > .news-card:not(.news-card--featured) {
    grid-column: 1;
  }

  .news-grid,
  .news-awards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-card.news-card--featured {
    grid-template-columns: 1fr;
  }

  .news-related__card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .news-hero {
    padding: 132px 0 68px;
  }

  .news-hero h1 {
    font-size: 40px;
  }

  .news-section {
    padding: 64px 0;
  }

  .news-section--hub {
    padding-top: 112px;
  }

  .news-page-header {
    margin-bottom: 22px;
  }

  .news-page-header h1 {
    font-size: 30px;
  }

  .news-page-header p {
    font-size: 17px;
  }

  .news-grid,
  .news-awards-grid {
    grid-template-columns: 1fr;
  }

  .news-card__body,
  .news-award-card {
    padding: 22px;
  }

  .news-article-header {
    padding: 128px 0 44px;
  }

  .news-article__hero-wrap {
    padding-top: 28px;
  }

  .news-article__hero {
    border-radius: 12px;
  }

  .news-article__content {
    padding: 46px 0 68px;
  }

  .news-article__body > p {
    font-size: 17px;
  }

  .news-article__body h2 {
    margin-top: 40px;
    font-size: 29px;
  }

  .news-article__quote {
    margin: 34px 0;
    padding: 24px;
  }

  .news-article__quote p {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card__image,
  .news-card__arrow {
    transition: none;
  }
}
