body.cs-public-encros .cs-encros-category-hero-compact,
body.cs-public-encros .cs-encros-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  border: 1px solid #dce8d4;
  border-radius: 20px;
  background: #eef6e7;
  padding: clamp(18px, 3.5vw, 40px);
}

body.cs-public-encros .cs-encros-category-hero-compact h1,
body.cs-public-encros .cs-encros-editorial-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.cs-encros-category-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
}

.cs-encros-category-actions img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(200px, 100%);
  max-height: 130px;
  border-radius: 8px;
}

@media (min-width: 1060px) {
  .cs-encros-category-actions {
    display: flex;
    align-items: center;
    gap: 18px;
  }
}

body.cs-public-encros .cs-encros-editorial-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #285536;
  color: #fff;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

body.cs-public-encros .cs-encros-editorial-button:hover {
  background: #1b3d27;
}

body.cs-public-encros .cs-encros-editorial-button:focus-visible {
  outline: 3px solid #0b654b;
  outline-offset: 3px;
}

body.cs-public-encros .cs-category-encros-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cs-public-encros .cs-encros-editorial-hero {
  grid-template-columns: minmax(0, 1fr);
  margin: clamp(8px, 2vw, 24px);
}

.cs-encros-editorial-hero .cs-content-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cs-encros-editorial-hero .cs-content-hero-copy > :is(h1, p) {
  margin: 0;
}

body.cs-public-encros .cs-encros-editorial-hero:has(.cs-encros-editorial-visual) {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}

.cs-encros-editorial-visual {
  margin: 0;
  display: grid;
  justify-items: center;
  min-width: 0;
}

.cs-encros-editorial-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
  object-fit: contain;
}

.cs-encros-editorial-text {
  display: block;
  width: min(100%, 78ch);
  margin-inline: auto;
}

.cs-encros-editorial-text :is(p, ul, ol, figure, blockquote) {
  margin: 0 0 1em;
}

.cs-encros-editorial-text :is(h2, h3, h4) {
  margin: 1.35em 0 .6em;
  line-height: 1.2;
}

.cs-encros-editorial-text > :first-child {
  margin-top: 0;
}

.cs-encros-editorial-text img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.cs-encros-editorial-text table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.cs-encros-editorial-text a {
  color: #285536;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  body.cs-public-encros .cs-encros-category-hero-compact,
  body.cs-public-encros .cs-encros-editorial-hero:has(.cs-encros-editorial-visual) {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-encros-category-actions {
    justify-items: start;
  }

  .cs-encros-category-actions img {
    grid-row: 2;
  }

  .cs-encros-editorial-visual img {
    max-height: 220px;
  }
}
