/* Bruno 2026-10-25: "Журнал Бруно" editorial cards for the main /news/ listing.
   Loaded only when news_category.tpl marks the container with
   data-bruno-news-editorial (canonical /news/ or /news/page-N/). Every rule is
   scoped to that marker, so neighbouring lists keep the legacy overlay cards.
   Grid column counts (4/3/2/1 at 1600/992/566) and column gaps come from the
   existing stylesheets and are intentionally not redeclared here; the photo area
   stays exactly 320px tall so the accepted Retina sizes remain accurate. */

/* Filters */
.news-article[data-bruno-news-editorial] .news-tags {
  gap: 8px;
  align-items: center;
  margin-bottom: 40px;
}
.news-article[data-bruno-news-editorial] .news-tags__tag,
.news-article[data-bruno-news-editorial] .news-tags__reset {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.news-article[data-bruno-news-editorial] .news-tags__tag {
  background: #F3EEE6;
  color: #2E2A25;
}
.news-article[data-bruno-news-editorial] .news-tags__tag.is-active {
  background: #8A6E45;
  color: #fff;
}
.news-article[data-bruno-news-editorial] .news-tags__reset {
  background: transparent;
  border-color: #8A6E45;
  color: #8A6E45;
}
.news-article[data-bruno-news-editorial] .news-tags__tag:focus-visible,
.news-article[data-bruno-news-editorial] .news-tags__reset:focus-visible {
  outline: 2px solid #8A6E45;
  outline-offset: 2px;
}
@media (hover: hover) {
  .news-article[data-bruno-news-editorial] .news-tags__tag:hover {
    background: #E8DFD1;
    color: #2E2A25;
  }
  .news-article[data-bruno-news-editorial] .news-tags__tag.is-active:hover {
    background: #755D3A;
    color: #fff;
  }
  .news-article[data-bruno-news-editorial] .news-tags__reset:hover {
    background: #8A6E45;
    color: #fff;
  }
}

/* Grid rhythm: only the row gap changes */
.news-article[data-bruno-news-editorial] .news-list {
  row-gap: 44px;
}

/* Card: one stationary link, photo then metadata and headline on white */
.news-article[data-bruno-news-editorial] .news-list__elem {
  display: block;
  color: #2E2A25;
  text-decoration: none;
}
.news-article[data-bruno-news-editorial] .news-list__elem::after,
.news-article[data-bruno-news-editorial] .news-list__elem-border,
.news-article[data-bruno-news-editorial] .news-list__elem-button {
  display: none;
  content: none;
}
.news-article[data-bruno-news-editorial] .news-list__elem:focus-visible {
  outline: 2px solid #8A6E45;
  outline-offset: 4px;
}
.news-article[data-bruno-news-editorial] .news-list__elem-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  height: auto;
}
.news-article[data-bruno-news-editorial] .news-list__elem-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #F3EEE6;
}
.news-article[data-bruno-news-editorial] .news-list__elem-image picture {
  display: block;
  height: 100%;
}
.news-article[data-bruno-news-editorial] .news-list__elem-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-article[data-bruno-news-editorial] .news-list__elem-block {
  position: static;
  z-index: auto;
  width: 100%;
  padding: 16px 0 0;
  background: none;
  color: #2E2A25;
}
.news-article[data-bruno-news-editorial] .news-list__elem-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 2px;
  margin-bottom: 8px;
  font-family: Circe-Regular, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.news-article[data-bruno-news-editorial] .news-list__elem-block__date {
  margin: 0;
  color: #6F6558;
  font-size: 14px;
  line-height: 20px;
}
.news-article[data-bruno-news-editorial] .news-list__elem-meta__tags {
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 2px;
}
.news-article[data-bruno-news-editorial] .news-list__elem-meta__tag {
  color: #8A6E45;
}
.news-article[data-bruno-news-editorial] .news-list__elem-block__title {
  color: #2E2A25;
  font-family: 'Linux Libertine Display G', serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.005em;
  overflow-wrap: break-word;
  text-wrap: pretty;
  transition: color .2s ease;
}
.news-article[data-bruno-news-editorial] .news-list__elem:focus-visible .news-list__elem-block__title {
  color: #8A6E45;
}

@media (hover: hover) {
  .news-article[data-bruno-news-editorial] .news-list__elem:hover .news-list__elem-block__title {
    color: #8A6E45;
  }
}
/* Slow image scale stays inside the clipped photo area; the link box never moves */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .news-article[data-bruno-news-editorial] .news-list__elem-image img {
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
  }
  .news-article[data-bruno-news-editorial] .news-list__elem:hover .news-list__elem-image img {
    transform: scale(1.03);
  }
}
@media (prefers-reduced-motion: reduce) {
  .news-article[data-bruno-news-editorial] .news-list__elem-image img {
    transform: none;
    transition: none;
  }
}

@media (max-width: 991px) {
  .news-article[data-bruno-news-editorial] .news-tags {
    margin-bottom: 32px;
  }
  .news-article[data-bruno-news-editorial] .news-list {
    row-gap: 40px;
  }
  .news-article[data-bruno-news-editorial] .news-list__elem-block__title {
    font-size: 22px;
  }
}

/* Phone: filters become one intentional horizontal strip */
@media (max-width: 565px) {
  .news-article[data-bruno-news-editorial] .news-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 28px;
    padding: 3px 3px 10px;
    scrollbar-width: thin;
    scrollbar-color: #C9BBA5 transparent;
  }
  .news-article[data-bruno-news-editorial] .news-tags::-webkit-scrollbar {
    width: auto;
    height: 4px;
  }
  .news-article[data-bruno-news-editorial] .news-tags::-webkit-scrollbar-track {
    background: transparent;
  }
  .news-article[data-bruno-news-editorial] .news-tags::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #C9BBA5;
    background-image: none;
    box-shadow: none;
  }
  .news-article[data-bruno-news-editorial] .news-list {
    row-gap: 36px;
  }
}
