/* Comfortable on-site news reading without requiring Telegram. */
html body.news-hub-body {
  --news-content-width: 1240px;
  --news-accent: var(--store-accent, #6ddace);
}

html body.news-hub-body main.news-hub {
  width: min(var(--news-content-width), calc(100% - clamp(28px, 6vw, 92px))) !important;
  max-width: var(--news-content-width) !important;
}

html body.news-hub-body .news-feed__heading p {
  max-width: 760px;
  color: rgba(232, 238, 247, 0.82) !important;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
}

html body.news-hub-body .news-feed__heading > a {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 14px;
}

.news-grid {
  gap: 22px;
}

.news-card {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  border-radius: 26px;
}

.news-card.news-card--text-only {
  grid-template-columns: minmax(0, 1fr);
}

.news-card__media {
  min-height: 0;
  aspect-ratio: 4 / 3;
  align-self: start;
  cursor: default;
}

.news-card__media img {
  aspect-ratio: 4 / 3;
}

.news-card__body {
  padding: clamp(25px, 3.2vw, 38px);
}

.news-card__meta {
  margin-bottom: 17px;
  color: rgba(221, 229, 242, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.news-card__source {
  font-size: 14px;
}

.news-card__title {
  max-width: 31ch;
  margin: 0 0 17px;
  color: #f7f9fc;
  font: 800 clamp(22px, 2.2vw, 31px)/1.2 Montserrat, Manrope, sans-serif;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

html body.news-hub-body .news-card__text {
  display: block;
  max-width: 72ch;
  margin: 0;
  overflow: visible;
  color: rgba(246, 248, 252, 0.93) !important;
  font: 500 18px/1.75 Manrope, sans-serif;
  white-space: pre-line;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: unset;
}

html body.news-hub-body .news-card--collapsible:not(.is-expanded) .news-card__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 7;
}

html body.news-hub-body .news-card.is-expanded .news-card__text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.news-card__actions {
  display: flex;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.news-card__expand,
.news-card__link {
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font: 800 15px/1.2 Manrope, sans-serif;
  text-decoration: none;
}

.news-card__expand {
  border: 1px solid var(--news-accent);
  color: #07130d;
  background: var(--news-accent);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.news-card__expand:hover,
.news-card__expand:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(109, 218, 206, 0.18);
}

.news-card__link {
  margin-top: 0;
  color: rgba(235, 241, 250, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.news-card__link:hover,
.news-card__link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.news-more {
  min-height: 50px;
  font-size: 16px;
}

@media (max-width: 860px) {
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .news-card__media img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  html body.news-hub-body main.news-hub {
    width: calc(100% - 24px) !important;
  }

  .news-card {
    border-radius: 21px;
  }

  .news-card__body {
    padding: 22px 19px 24px;
  }

  .news-card__meta {
    font-size: 13px;
  }

  .news-card__title {
    font-size: 22px;
  }

  html body.news-hub-body .news-card__text {
    font-size: 17px;
    line-height: 1.72;
  }

  html body.news-hub-body .news-card--collapsible:not(.is-expanded) .news-card__text {
    -webkit-line-clamp: 8;
  }

  .news-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .news-card__expand,
  .news-card__link {
    width: 100%;
  }
}

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