/* High-contrast finishing layer for editorial pages. */
/* Wix legacy section background layers can escape their section and paint over
   the article listing. Keep the editorial content above those decorative layers. */
body.editorial main#main-content {
  position: relative !important;
  z-index: 2 !important;
}
body.editorial main#main-content > * {
  position: relative;
}
body.editorial main#main-content section.blog-tools {
  display: grid !important;
  grid-template-columns: minmax(230px, .8fr) 2fr;
  gap: 18px 28px;
  align-items: end;
  margin: 28px auto 0 !important;
  padding: 24px 28px 12px !important;
  border: 1px solid #e7e0d2 !important;
  border-radius: 22px !important;
  background: #f8f6f1 !important;
  color: #242528 !important;
  box-shadow: 0 14px 38px #00000012 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.editorial .blog-search-wrap :is(label, p),
body.editorial .blog-pagination span { color: #4b4841 !important; }
body.editorial .blog-search-wrap input { background: #fff !important; color: #242528 !important; }
body.editorial .blog-filters button,
body.editorial .blog-pagination button {
  min-height: 40px !important;
  padding: 9px 14px !important;
  border: 1px solid #e2dbc9 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #48463f !important;
}
body.editorial .blog-filters button[aria-pressed="true"] { background: #242528 !important; color: #fff !important; }
body.editorial .blog-pagination { grid-column: 1 / -1 !important; color: #4b4841 !important; }
body.editorial main#main-content > section.editorial-grid {
  display: grid !important;
  align-items: stretch;
  margin: 22px auto 70px !important;
  padding: 28px !important;
  border: 1px solid #ece6da !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 16px 42px #17191b0d !important;
}
body.editorial .editorial-grid article { background: #fff !important; }
body.editorial .editorial-grid article[hidden] { display: none !important; }
body.editorial .article-toc,
body.editorial .article-consultation { color: #242528; }
@media (max-width: 768px) {
  body.editorial main#main-content section.blog-tools { grid-template-columns: 1fr; gap: 10px; margin-top: 18px !important; padding: 18px 16px 10px !important; }
  body.editorial .blog-filters { justify-content: flex-start; }
  body.editorial main#main-content > section.editorial-grid { grid-template-columns: 1fr !important; margin-top: 14px !important; padding: 14px !important; }
}
