/* Additional rules loaded only by TOP and NEWS. Existing section styles remain. */
.news-section .news-category {
  height: auto;
  min-height: 27px;
  padding: 3px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.news-empty {
  font-size: 16px;
  line-height: 1.9;
  padding-block: 24px;
}

.news-item:focus-visible {
  outline: 2px solid #087fe5;
  outline-offset: 4px;
}

.nw-filter {
  margin-bottom: 28px;
}

.nw-filter a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid #bdcdd9;
  border-radius: 2px;
  color: #506779;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.nw-filter a:hover {
  border-color: #087fe5;
}

.nw-list .nw-row:hover {
  background: #edf5fa;
}

.nw-row .nw-row-copy {
  grid-column: 3;
  min-width: 0;
}

.nw-row-copy h3 {
  margin: 0;
}

.nw-row-copy p {
  margin: 10px 0 0;
  color: #506779;
  font-size: 16px;
  line-height: 1.9;
}

.nw-pagination a {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid #bdcdd9;
  border-radius: 2px;
  background: #fff;
  color: #506779;
  font-size: 14px;
}

.nw-pagination a:hover {
  border-color: #087fe5;
}

.nw-pagination .nw-ellipsis {
  display: grid;
  place-items: center;
  height: 46px;
}

.nw-empty {
  padding: 32px 0;
  font-size: 16px;
  line-height: 1.9;
  border-top: 1px solid #c9d8e3;
}

.nw-detail {
  max-width: 880px;
  padding-block: 56px 88px;
}

.nw-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #506779;
}

.nw-detail h1 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.7;
  margin: 0 0 36px;
}

.nw-detail-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    margin: 0 auto 40px;
}

.nw-body {
  font-size: 16px;
  line-height: 2;
  color: #344d60;
  overflow-wrap: anywhere;
}

.nw-body p {
  margin: 0 0 1.5em;
}

.nw-back {
  color: #075f9e;
  border-color: #7db4d4;
}

.nw-back:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .nw-row .nw-row-copy {
    grid-column: 1 / 3;
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  .news-section .news-category {
    min-height: 24px;
  }

  .nw-detail-image {
    max-height: 320px;
    margin-bottom: 32px;
  }
}

@media (max-width: 600px) {
  .nw-row .nw-arrow {
    justify-self: end;
  }

  .nw-filter a {
    padding-inline: 12px;
  }

  .nw-pagination a {
    min-width: 44px;
    height: 44px;
  }

  .nw-detail {
    padding-block: 40px 64px;
  }
}