@charset "utf-8";

/* ==================================================
 * ==================================================
 * news-block
 * ==================================================
 * ================================================== */
.news-block{
  --news-block-search-fg-color: var(--color-fg-base);

  --news-block-search-control-bg-color: var(--color-white);
  --news-block-search-control-border-color: rgba(0,0,0,.20);
  --news-block-search-control-shadow-color: transparent;
  --news-block-search-control-shadow-color-focus: rgba(0,0,0,.05);

  --news-block-search-placeholder-color: rgba(0,0,0,.40);

  --news-block-search-button-fg-color: var(--color-fg-base);
  --news-block-search-button-fg-color-hover: rgba(0,0,0,.60);

  --news-block-search-result-muted-color: rgba(0,0,0,.60);
  --news-block-search-empty-text-color: rgba(0,0,0,.60);

  --news-block-item-border-color: var(--color-border-base);
  --news-block-item-link-fg-color: var(--color-fg-base);
  --news-block-item-link-fg-color-hover: rgba(0,0,0,.60);

  --news-block-pagination-number-color: rgba(0,0,0,.40);
  --news-block-pagination-number-color-hover: var(--color-fg-base);
  --news-block-pagination-number-color-current: var(--color-fg-base);
  --news-block-pagination-marker-color-hover: var(--color-fg-base);
  --news-block-pagination-marker-color-current: var(--color-fg-base);

  min-width: 0;
}
.news-block__inner{
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  min-width: 0;
}

/* ==================================================
 * news-block search
 * ================================================== */
.news-block__search{
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  min-width: 0;
}
.news-block__search-form{
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.news-block__search-control{
  background-color: var(--news-block-search-control-bg-color);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem;
  align-items: stretch;
  min-width: 0;
  min-height: 3.5rem;
  border: 1px solid var(--news-block-search-control-border-color);
  border-radius: 0;
  box-shadow: 0 0 0 3px var(--news-block-search-control-shadow-color);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.news-block__search-control:focus-within{
  box-shadow: 0 0 0 3px var(--news-block-search-control-shadow-color-focus);
}
.news-block__search-input{
  color: var(--news-block-search-fg-color);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  padding-block: 0.5rem;
  padding-left: 1rem;
  padding-right: 0.5rem;
  border: 0;
  outline: 0;
}
.news-block__search-input::placeholder{
  color: var(--news-block-search-placeholder-color);
  opacity: 1;
}
.news-block__search-input::-webkit-search-cancel-button,
.news-block__search-input::-webkit-search-decoration,
.news-block__search-input::-webkit-search-results-button,
.news-block__search-input::-webkit-search-results-decoration{
  display: none;
}
.news-block__search-input::-ms-clear,
.news-block__search-input::-ms-reveal{
  display: none;
  width: 0;
  height: 0;
}
.news-block__search-button{
  color: var(--news-block-search-button-fg-color);
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  cursor: pointer;
  transition: color .2s ease;
}
.news-block__search-button:hover,
.news-block__search-button:focus-visible{
  color: var(--news-block-search-button-fg-color-hover);
}
.news-block__search-button-icon{
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
}
.news-block__search-button-icon > svg{
  width: 100%;
}
.news-block__result{
  background: rgba(0,0,0,.05);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: clamp(0.5rem, 0.75vw, 0.75rem);
  column-gap: clamp(0.5rem, 1vw, 1rem);
  min-width: 0;
  padding-block: clamp(0.5rem, 1vw, 1rem);
  padding-inline: clamp(1rem, 2vw, 2rem);
  border-radius: var(--radius-xs);
}
.news-block__result-title{
  color: var(--news-block-search-fg-color);
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.6;
  min-width: 0;
}
.news-block__result-count{
  font-family: var(--font-en-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.news-block__result-reset{
  color: var(--news-block-search-result-muted-color);
  font-size: var(--fs-sm);
  line-height: 1.6;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  white-space: nowrap;
  transition: color 220ms cubic-bezier(.22,1,.36,1);
}
.news-block__result-reset:hover,
.news-block__result-reset:focus-visible{
  color: var(--news-block-search-fg-color);
}
.news-block__result-reset-icon{
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  transform: translateY(0.0625rem);
}
.news-block__result-reset-icon > svg{
  width: 100%;
}
.news-block__result-reset-text{
  min-width: 0;
}
.news-block__empty{
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding-block: clamp(1rem, 1.5vw, 1.5rem);
  border-top: 1px solid var(--news-block-item-border-color);
  border-bottom: 1px solid var(--news-block-item-border-color);
}
.news-block__empty-text{
  color: var(--news-block-search-empty-text-color);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.6;
}

/* ==================================================
 * news-block items
 * ================================================== */
.news-block__items{
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--news-block-item-border-color);
}
.news-block__item{
  min-width: 0;
  border-bottom: 1px solid var(--news-block-item-border-color);
}
.news-block__link{
  color: var(--news-block-item-link-fg-color);
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  min-width: 0;
  padding-block: clamp(1rem, 1.5vw, 1.5rem);
  transition: color 220ms cubic-bezier(.22,1,.36,1);
}
.news-block__link:hover,
.news-block__link:focus-visible{
  color: var(--news-block-item-link-fg-color-hover);
}
.news-block__item-date{
  font-family: var(--font-en-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.news-block__item-title{
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.6;
  min-width: 0;
  transition: color 220ms cubic-bezier(.22,1,.36,1);
}

/* ==================================================
 * news-block items responsive 1025px
 * ================================================== */
@media (min-width: 1025px){
  .news-block__link{
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .news-block__item-date{
    grid-column: 1;
  }
  .news-block__item-title{
    grid-column: 2;
  }
}

/* ==================================================
 * news-block pagination
 * ================================================== */
.news-block__pagination{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  min-width: 0;
}
.news-block__pagination .page-numbers{
  color: var(--news-block-pagination-number-color);
  font-family: var(--font-en-sans);
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: 0.25rem;
  position: relative;
  transition: color 220ms cubic-bezier(.22,1,.36,1);
}
.news-block__pagination-icon{
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
}
.news-block__pagination-icon > svg{
  width: 100%;
}
.news-block__pagination a.page-numbers:hover,
.news-block__pagination a.page-numbers:focus-visible{
  color: var(--news-block-pagination-number-color-hover);
}
.news-block__pagination .page-numbers.current{
  color: var(--news-block-pagination-number-color-current);
}
.news-block__pagination .page-numbers:not(.prev):not(.next)::after{
  content: "";
  width: 1.5rem;
  height: 0;
  border-top: 1px solid transparent;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  transition: border-color 220ms cubic-bezier(.22,1,.36,1);
}
.news-block__pagination a.page-numbers:not(.prev):not(.next):hover::after,
.news-block__pagination a.page-numbers:not(.prev):not(.next):focus-visible::after{
  border-top-color: var(--news-block-pagination-marker-color-hover);
}
.news-block__pagination .page-numbers.current:not(.prev):not(.next)::after{
  border-top-color: var(--news-block-pagination-marker-color-current);
}

/* ==================================================
 * news-block reduced motion
 * ================================================== */
@media (prefers-reduced-motion: reduce){
  .news-block__search-control,
  .news-block__search-button,
  .news-block__result-reset,
  .news-block__link,
  .news-block__item-title,
  .news-block__pagination .page-numbers,
  .news-block__pagination .page-numbers:not(.prev):not(.next)::after{
    transition: none !important;
  }
}