.news-index {
  --news-masthead-height: 178px;
  min-height: 100dvh;
  padding-top: var(--news-masthead-height);
}

.site-main.news > .news-index {
  padding-top: var(--news-masthead-height);
}

.home-news {
  position: relative;
  z-index: 6;
  padding-bottom: 180px;
  background-color: var(--white);
  color: var(--brown);
}

.news-index__masthead {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: var(--news-masthead-height);
  background-color: var(--white);
  overflow: hidden;
  pointer-events: none;
  visibility: visible;
}

.news-index__masthead.is-hidden {
  height: calc(var(--header-offset-top) + var(--header-height) + 24px);
  visibility: visible;
}

.news-index__masthead.is-hidden .container {
  visibility: hidden;
}

.news-index__masthead .container {
  position: relative;
  height: 100%;
}

.news-index__title {
  margin: 0;
  padding-top: calc(var(--header-offset-top) + var(--header-height) + 58px);
}

.news-index__masthead__meta,
.news-index__filter {
  position: absolute;
  top: calc(var(--header-offset-top) + var(--header-height) + 78px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  color: var(--brown);
  font-family: var(--font-special);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
}

.news-index__masthead__meta--left {
  left: var(--container-padding);
}

.news-index__results {
  gap: 4px;
}

.news-index__filter {
  right: var(--container-padding);
  gap: 8px;
  pointer-events: auto;
}

.news-index__filter__icon {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.news-filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1002;
  width: var(--menu-panel-width);
  height: 100dvh;
  overflow-y: auto;
  padding: calc(var(--header-offset-top) + var(--header-height) + 44px) var(--container-padding) 64px;
  background: var(--white);
  color: var(--brown);
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    visibility 0.35s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-filter-panel.active {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.news-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: block;
  padding: 0;
  border: 0;
  background: var(--white);
  cursor: default;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.news-filter-backdrop.active {
  opacity: 0.72;
  visibility: visible;
  pointer-events: auto;
}

.news-filter-panel__inner {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.28s ease 0s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}

.news-filter-panel.active .news-filter-panel__inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.news-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.news-filter-panel__title {
  color: var(--brown);
  font-family: var(--font-special);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
}

.news-filter-panel__close {
  position: relative;
  width: var(--header-height);
  height: var(--header-height);
  color: var(--brown);
}

.news-filter-panel__close::before,
.news-filter-panel__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.news-filter-panel__close::before {
  transform: rotate(45deg);
}

.news-filter-panel__close::after {
  transform: rotate(-45deg);
}

.news-filter-panel__group + .news-filter-panel__group {
  margin-top: 46px;
}

.news-filter-panel__group-title {
  margin-bottom: 18px;
  color: var(--pink);
  font-family: var(--font-main);
  font-size: calc(var(--fs-cta) - 2px);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-filter-panel__group[aria-labelledby="news-filter-years"] .news-filter-panel__group-title {
  margin-bottom: 9px;
}

.news-filter-panel__options {
  display: grid;
  gap: 14px;
}

.news-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--brown);
  cursor: pointer;
  font-family: var(--font-special);
  font-size: var(--fs-14);
  line-height: 1.2;
}

.news-filter-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.news-filter-option__box {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
}

.news-filter-option__input:checked + .news-filter-option__box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: currentColor;
}

.news-filter-select {
  position: relative;
  display: block;
}

.news-filter-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--brown);
  pointer-events: none;
  transform: translateY(-50%);
}

.news-filter-select__control {
  width: 100%;
  padding: 0 24px 8px 0;
  border: 0;
  border-bottom: 1px solid var(--brown);
  border-radius: 0;
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  font-family: var(--font-special);
  font-size: var(--fs-14);
  line-height: 1.2;
  appearance: none;
}

.news-filter-clear {
  margin-top: 31px;
  color: var(--brown);
  font-family: var(--font-special);
  font-size: var(--fs-14);
  line-height: 1.2;
}

.news-filter-clear:hover,
.news-filter-clear:focus-visible {
  font-family: var(--font-special-italic);
}

.news-index__content {
  position: relative;
  z-index: 1;
}

.news-index .section__title {
  color: var(--brown);
}

.news-index .section__title__line {
  background-color: var(--brown);
}

.home-news__grid {
  display: grid;
  gap: 20px;
  justify-content: start;
  justify-items: stretch;
}

.news-card {
  position: relative;
  display: block;
  aspect-ratio: 360 / 479;
  overflow: hidden;
  color: var(--white);
}

.news-card[hidden],
.news-load-next[hidden],
.news-pagination[hidden] {
  display: none;
}

.news-card--image {
  background-color: var(--black);
}

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

.news-card__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.news-card__meta {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  will-change: transform;
}

.news-card__meta--feed {
  top: 16px;
}

.news-card__line {
  width: 20px;
  height: 1px;
  margin-top: 12px;
  background-color: currentColor;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card__text {
  font-family: var(--font-special);
  font-size: var(--fs-cta);
  line-height: 1.2;
  color: var(--white);
}

.news-card--feed {
  background-color: var(--black);
}

.news-card__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-special);
  font-size: var(--fs-cta);
  line-height: 1.2;
  font-weight: 400;
  color: var(--white);
}

.news-card__hover {
  margin-top: 6px;
  font-family: var(--font-special-italic);
  font-size: var(--fs-cta);
  line-height: 1.2;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-card__line,
.news-card:focus-within .news-card__line {
  width: var(--news-hover-width, 20px);
}

.news-card:hover .news-card__hover,
.news-card:focus-within .news-card__hover {
  opacity: 1;
  transform: none;
}

@media (max-width: 1199px) {
  .news-card__hover {
    opacity: 1;
    transform: none;
  }
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 44px;
  color: var(--brown);
}

.news-pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  padding: 0;
  color: var(--brown);
  cursor: pointer;
  font-family: var(--font-special);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.2;
}

.news-pagination__item:hover,
.news-pagination__item:focus-visible,
.news-pagination__item.active {
  font-family: var(--font-special-italic);
}

.news-pagination__ellipsis {
  letter-spacing: 0;
}

.news-load-next {
  display: block;
  width: max-content;
  margin-top: 44px;
  margin-left: auto;
  margin-right: auto;
  color: var(--brown);
  padding: 0;
  font-family: var(--font-special);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.2;
}

.news-load-next:hover,
.news-load-next:focus-visible {
  font-family: var(--font-special-italic);
}

.news-empty {
  margin-top: 44px;
  color: var(--brown);
  font-family: var(--font-special);
  font-size: var(--fs-14);
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 800px) {
  .home-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .news-index__content {
    padding-top: 20px;
  }

  .home-news__grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .news-card {
    width: 100%;
  }

  .news-card__meta {
    top: 8px;
    left: 12px;
    right: 12px;
  }
}

@media (min-width: 1200px) {
  .home-news__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .news-card {
    grid-column: span 3;
  }
}
