.news-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.5rem rgba(33, 37, 41, .12) !important;
}

.news-filter {
  max-width: 920px;
}

.news-search-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.news-search-input {
  min-height: 3rem;
}

.news-search-button {
  flex: 0 0 auto;
  min-width: 6.5rem;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.news-tag-scroll {
  display: flex;
  gap: .625rem;
  max-width: 100%;
  margin-top: 1rem;
  padding-bottom: .35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.news-tag-chip {
  flex: 0 0 auto;
  cursor: pointer;
  user-select: none;
}

.news-tag-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.news-tag-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .45rem .9rem;
  border: 1px solid var(--ar-border-color);
  border-radius: 999px;
  color: var(--ar-nav-link-color);
  background-color: var(--ar-body-bg);
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.news-tag-chip:hover span,
.news-tag-chip.active span,
.news-tag-chip:has(.news-tag-input:checked) span {
  border-color: var(--ar-primary);
  color: #fff;
  background-color: var(--ar-primary);
}

.news-card-meta {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ar-nav-link-color);
  font-weight: 600;
  text-decoration: none;
}

.news-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--ar-primary);
  background-color: rgba(var(--ar-primary-rgb), .1);
  transition: color .2s ease, background-color .2s ease;
}

.news-back-link:hover .news-back-icon {
  color: #fff;
  background-color: var(--ar-primary);
}

.news-article-detail {
  max-width: 900px;
}

.news-article-title {
  margin-bottom: 1rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ar-heading-color);
}

.news-article-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: .25rem;
}

.news-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: flex-end;
}

.news-article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  color: var(--ar-nav-link-color);
  background-color: rgba(var(--ar-primary-rgb), .08);
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.2;
}

.news-article-tag:hover {
  color: #fff;
  background-color: var(--ar-primary);
}

.news-article-time {
  flex: 0 0 auto;
  color: var(--ar-secondary-color);
  font-size: .875rem;
  line-height: 1.2;
  white-space: nowrap;
}

.news-content {
  overflow-wrap: anywhere;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--ar-body-color);
}

.news-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: .5rem;
  margin: 1.5rem auto;
}

.news-content figure {
  max-width: 100%;
  margin: 1.5rem 0;
}

.news-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
  margin: 2rem 0 1rem;
  font-weight: 700;
  color: var(--ar-heading-color);
}

.news-content h1,
.ck-content h1 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.2;
}

.news-content h2,
.ck-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
}

.news-content h3,
.ck-content h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.news-content h4,
.ck-content h4 {
  font-size: 1.25rem;
  line-height: 1.35;
}

.news-content h5,
.ck-content h5 {
  font-size: 1.1rem;
  line-height: 1.4;
}

.news-content h6,
.ck-content h6 {
  font-size: 1rem;
  line-height: 1.45;
}

.news-content blockquote,
.ck-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--ar-primary);
  background: rgba(var(--ar-primary-rgb), .06);
  color: var(--ar-body-color);
}

.news-content p,
.news-content ul,
.news-content ol,
.ck-content p,
.ck-content ul,
.ck-content ol {
  margin-bottom: 1rem;
}

.news-content p,
.news-content ul,
.news-content ol {
  margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
  .news-search-row {
    gap: .5rem;
  }

  .news-search-button {
    min-width: auto;
    padding-right: 1rem;
    padding-left: 1rem;
  }

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

  .news-card-meta time {
    margin-left: 0 !important;
  }

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

  .news-article-time {
    align-self: flex-end;
  }
}
