/* TechCover Newsroom
   Uses the existing color tokens and typography from the main theme. */

.newsroom-index {
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--primary-color-rgb), .08), transparent 34%),
    #fff;
}

/* The theme header is overlayed; keep newsroom mastheads clear of it. */
body #subheader {
  padding-top: 350px;
}

.newsroom-result-count {
  color: #697386;
  font-size: 14px;
}

.newsroom-result-count strong {
  color: var(--bg-dark-1);
}

.newsroom-filter {
  display: flex;
  height: auto;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  background: #f5f7fb;
  border: 1px solid rgba(var(--primary-color-rgb), .12);
  border-radius: 18px;
}

.newsroom-filter__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid rgba(var(--primary-color-rgb), .14);
  border-radius: 12px;
  background: #fff;
  color: var(--bg-dark-1);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.newsroom-filter__item:hover {
  color: var(--primary-color);
  border-color: rgba(var(--primary-color-rgb), .55);
  transform: translateY(-1px);
}

.newsroom-filter__item.is-active {
  color: #fff;
  border-color: var(--primary-color);
  background: linear-gradient(var(--primary-gradient));
  box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), .2);
}

.newsroom-filter__item small {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(var(--primary-color-rgb), .1);
  color: var(--primary-color);
  font-size: 11px;
}

.newsroom-filter__item.is-active small {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.newsroom-lead {
  color: #fff;
  background: var(--bg-dark-1);
  box-shadow: 0 24px 60px rgba(var(--bg-dark-1-rgb), .16);
}

.newsroom-lead__media {
  min-height: 480px;
  overflow: hidden;
}

.newsroom-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}

.newsroom-lead__media:hover img {
  transform: scale(1.035);
}

.newsroom-lead__body {
  min-height: 480px;
  padding: clamp(32px, 5vw, 64px);
  white-space: normal;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--primary-color-rgb), .28), transparent 42%),
    var(--bg-dark-1);
}

.newsroom-lead__body h2,
.newsroom-lead__body h2 a {
  color: #fff;
}

.newsroom-lead__body p {
  color: rgba(255, 255, 255, .75);
  font-size: 17px;
  line-height: 1.7;
}

.newsroom-kicker {
  color: #697386;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.newsroom-kicker span {
  color: var(--primary-color);
}

.newsroom-card-wrap {
  min-width: 0;
}

.newsroom-card {
  min-height: 430px;
  background: var(--bg-dark-1);
  box-shadow: 0 14px 38px rgba(var(--bg-dark-1-rgb), .12);
}

.newsroom-card:focus-visible,
.newsroom-lead a:focus-visible,
.newsroom-filter__item:focus-visible {
  outline: 3px solid rgba(var(--primary-color-rgb), .65);
  outline-offset: 3px;
}

.newsroom-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsroom-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18, 19, 44, .02) 16%, rgba(18, 19, 44, .94) 94%);
  pointer-events: none;
}

.newsroom-card__content {
  width: 100%;
}

.newsroom-card__content h3 {
  color: #fff;
  line-height: 1.28;
}

.newsroom-card__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.newsroom-card__eyebrow .bg-color {
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.newsroom-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.newsroom-meta--dark {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.newsroom-empty {
  padding: 64px 24px;
  border: 1px dashed rgba(var(--primary-color-rgb), .35);
  background: rgba(var(--primary-color-rgb), .05);
}

/* Article page */
.article-masthead {
  min-height: 670px;
  display: flex;
  align-items: center;
}

.article-masthead .jarallax-img {
  filter: saturate(.78);
}

.article-masthead__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 19, 44, .98) 0%, rgba(18, 19, 44, .9) 48%, rgba(18, 19, 44, .48) 100%);
}

.article-title {
  max-width: 1050px;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.article-deck {
  max-width: 840px;
  color: rgba(255, 255, 255, .78);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.article-masthead nav {
  height: auto;
}

.article-byline a {
  color: #fff;
}

.newsroom-article-section {
  background: linear-gradient(180deg, rgba(var(--primary-color-rgb), .05), transparent 260px);
}

.article-hero-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-dark-1);
  box-shadow: 0 20px 55px rgba(var(--bg-dark-1-rgb), .14);
}

.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-takeaways {
  padding: 30px 34px;
  border: 1px solid rgba(var(--primary-color-rgb), .2);
  border-left: 4px solid var(--primary-color);
  background: rgba(var(--primary-color-rgb), .055);
}

.article-takeaways ul {
  display: grid;
  gap: 10px;
  padding-left: 21px;
}

.article-copy {
  color: #394150;
  font-size: 18px;
  line-height: 1.86;
}

.article-copy section + section {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid rgba(var(--primary-color-rgb), .14);
}

.article-copy h2 {
  margin-bottom: 18px;
  color: var(--bg-dark-1);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
}

.article-copy p:last-child {
  margin-bottom: 0;
}

.article-transparency,
.article-sidebox {
  padding: 28px;
  border: 1px solid rgba(var(--primary-color-rgb), .15);
  background: #f7f9fc;
}

.article-transparency__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.article-sidebox {
  position: sticky;
  top: 110px;
}

.article-sidebox + .article-sidebox {
  position: static;
}

@media (max-width: 991px) {
  body #subheader {
    padding-top: 190px;
  }

  .newsroom-lead__media,
  .newsroom-lead__body {
    min-height: auto;
  }

  .newsroom-lead__media {
    aspect-ratio: 16 / 10;
  }

  .newsroom-card {
    min-height: 400px;
  }

  .article-masthead {
    min-height: 610px;
  }

  .article-masthead__veil {
    background: rgba(18, 19, 44, .88);
  }

  .article-sidebox {
    position: static;
  }
}

@media (max-width: 575px) {
  body #subheader {
    padding-top: 150px;
  }

  .newsroom-filter {
    margin-inline: -12px;
    padding-inline: 12px;
    border-inline: 0;
    border-radius: 0;
  }

  .newsroom-card {
    min-height: 390px;
  }

  .newsroom-card__content {
    padding: 24px !important;
  }

  .article-masthead {
    min-height: 620px;
  }

  .article-title {
    font-size: 37px;
  }

  .article-byline {
    gap: 9px;
  }

  .article-byline > * {
    flex-basis: 100%;
  }

  .article-copy {
    font-size: 17px;
  }

  .article-takeaways,
  .article-transparency,
  .article-sidebox {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsroom-card *,
  .newsroom-lead__media img,
  .newsroom-filter__item {
    transition: none !important;
  }
}
