/* =========================
   NEWS PAGE
   ========================= */

.newsHero{
  padding-bottom: 6px;
}

.newsHeroGrid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 22px;
  align-items: start;
}

.newsHeroCopy{
  min-width: 0;
  padding-right: 8px;
}

.newsHero .heroTitle{
  margin: 0 0 14px;
  line-height: .96;
}

.newsHero .heroSub{
  max-width: 720px;
  margin: 0 0 16px;
  line-height: 1.68;
}

.newsHeroTags{
  margin: 0;
  color: var(--muted-78);
  font-size: 14px;
  line-height: 1.5;
}

/* Featured card */

.newsLeadCard{
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.018)),
    radial-gradient(420px 200px at 0% 0%, rgba(85,226,122,.10), transparent 62%),
    radial-gradient(420px 220px at 100% 100%, rgba(240,180,74,.06), transparent 74%);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.newsLeadCard:hover{
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.11);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.022)),
    radial-gradient(420px 220px at 0% 0%, rgba(85,226,122,.12), transparent 62%),
    radial-gradient(420px 240px at 100% 100%, rgba(240,180,74,.08), transparent 74%);
  box-shadow: var(--shadow-card-hover);
}

.newsLeadCard:focus-visible{
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

.newsLeadEyebrow{
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white-76);
}

.newsLeadMeta{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted-82);
  text-transform: uppercase;
}

.newsType{
  color: var(--white-86);
}

.newsDot{
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-55);
  display: inline-block;
}

.newsLeadTitle{
  margin: 0;
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.12;
  color: var(--white-96);
}

.newsLeadText{
  margin: 14px 0 0;
  color: var(--muted-90);
  line-height: 1.7;
  font-size: 14px;
  max-width: 52ch;
}

/* Latest updates feed */

.newsGrid{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.newsCardLink{
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.newsCardLink:hover{
  text-decoration: none;
  transform: translateY(-1px);
}

.newsCardLink:focus-visible{
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

.newsCard{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}

.newsCardMeta{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.newsCategory{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white-82);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.newsCategory::before{
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: .95;
  display: inline-block;
}

.newsDate{
  font-size: 12px;
  color: var(--muted-75);
  letter-spacing: .04em;
  line-height: 1;
}

.newsCard h3{
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--white-96);
}

.newsCardLink:hover .newsCard h3{
  color: #ffffff;
}

.newsCard p{
  margin: 0;
  max-width: 820px;
  line-height: 1.68;
}

/* Category variants */

.newsMajor .newsCategory{
  color: rgba(240,190,95,.96);
}

.newsMajor{
  border-color: rgba(240,180,74,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)),
    radial-gradient(580px 180px at 0% 0%, rgba(240,180,74,.16), transparent 62%),
    radial-gradient(680px 220px at 100% 100%, rgba(240,180,74,.04), transparent 74%);
  box-shadow:
    0 0 0 1px rgba(240,180,74,.03),
    0 0 30px rgba(240,180,74,.10),
    var(--shadow-card);
}

.newsMajor:hover{
  border-color: rgba(240,180,74,.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.022)),
    radial-gradient(620px 200px at 0% 0%, rgba(240,180,74,.19), transparent 62%),
    radial-gradient(720px 240px at 100% 100%, rgba(240,180,74,.05), transparent 74%);
  box-shadow:
    0 0 0 1px rgba(240,180,74,.05),
    0 0 36px rgba(240,180,74,.14),
    var(--shadow-card-hover);
}

.newsMinor .newsCategory{
  color: rgba(235,205,145,.90);
}

.newsMinor{
  border-color: rgba(240,180,74,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.02)),
    radial-gradient(420px 150px at 0% 0%, rgba(240,180,74,.09), transparent 60%);
  box-shadow:
    0 0 18px rgba(240,180,74,.05),
    var(--shadow-card);
}

.newsMinor:hover{
  border-color: rgba(240,180,74,.20);
  background:
    linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.022)),
    radial-gradient(460px 170px at 0% 0%, rgba(240,180,74,.11), transparent 60%);
  box-shadow:
    0 0 22px rgba(240,180,74,.07),
    var(--shadow-card-hover);
}

.newsPatch .newsCategory{
  color: rgba(232,238,245,.84);
}

.newsPatch .newsCategory::before{
  opacity: .72;
}

.newsPatch{
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.018));
}

.newsPatch:hover{
  background:
    linear-gradient(180deg, rgba(255,255,255,.034), rgba(255,255,255,.022));
}

.newsDevlog .newsCategory{
  color: var(--accent-80);
}

.newsDevlog{
  border-color: rgba(85,226,122,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)),
    radial-gradient(460px 150px at 0% 0%, rgba(85,226,122,.08), transparent 62%);
  box-shadow:
    0 0 18px rgba(85,226,122,.04),
    var(--shadow-card);
}

.newsDevlog:hover{
  border-color: rgba(85,226,122,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.036), rgba(255,255,255,.022)),
    radial-gradient(500px 170px at 0% 0%, rgba(85,226,122,.10), transparent 62%);
  box-shadow:
    0 0 22px rgba(85,226,122,.06),
    var(--shadow-card-hover);
}

@media (max-width: 1100px){
  .newsHeroGrid{
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

@media (max-width: 980px){
  .newsHeroGrid{
    grid-template-columns: 1fr;
  }

  .newsHeroCopy{
    padding-right: 0;
  }

  .newsLeadTitle,
  .newsLeadText,
  .newsCard p{
    max-width: 100%;
  }

  .newsCard{
    padding: 16px 16px;
  }

  .newsCard h3{
    font-size: 20px;
  }
}