/* news.html */

.news-case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-plate);
}

.news-case-media {
  aspect-ratio: 4 / 3;
  min-height: 280px;
  background: var(--surface-2);
}

.news-case-media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: #fff;
}

.news-case-media:not(.news-case-media--logo) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-case-media--logo img {
  width: min(220px, 60%);
  height: auto;
  flex: none;
  object-fit: contain;
  display: block;
}

.news-case-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
}

.news-case-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 28px;
}

.news-case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 28px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--hairline);
}

.news-case-stat {
  position: relative;
  padding: 4px 20px 0 0;
}

.news-case-stat + .news-case-stat {
  padding-left: 20px;
  border-left: 1px solid var(--hairline);
}

.news-case-stat::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #FF9A3E;
  margin-bottom: 14px;
}

.news-case-stat:nth-child(2)::before { background: #24CE70; }
.news-case-stat:nth-child(3)::before { background: #3093E5; }

.news-case-stat-num {
  display: block;
  font-family: var(--font-headings);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.news-case-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--text-soft);
  max-width: 16ch;
}

@media (max-width: 920px) {
  .news-case-feature {
    grid-template-columns: 1fr;
  }

  .news-case-body {
    padding: 28px 24px 32px;
  }

  .news-case-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-case-stat,
  .news-case-stat + .news-case-stat {
    padding: 18px 0;
    border-left: none;
  }

  .news-case-stat + .news-case-stat {
    border-top: 1px solid var(--hairline);
  }

  .news-case-stat-label {
    max-width: none;
  }
}

.news-archive .news-card[hidden] {
  display: none !important;
}

.news-archive .news-load-more[hidden] {
  display: none !important;
}

.news-archive .news-load-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.news-card .news-media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 40px;
  background: #fff;
}

.news-card .news-media--logo img {
  width: auto;
  max-width: min(180px, 55%);
  max-height: 58%;
  height: auto;
  object-fit: contain;
}

.news-card .news-media--logo-lg img {
  max-width: min(240px, 72%);
  max-height: 78%;
}
