/* Alternador lista / grade — estados dos botões */
.view-toggle-btn.is-active {
  background-color: var(--primary, #2dd4bf);
  color: var(--primary-foreground, #0c0a09);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary, #2dd4bf) 40%, transparent);
}
.view-toggle-btn:not(.is-active) {
  background-color: transparent;
}

/* Artigos (post_card default) em lista */
.view-switch-target[data-view="list"] > .view-cell-post article.group > a.block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}
.view-switch-target[data-view="list"] > .view-cell-post article.group > a.block > div:first-child {
  width: 10rem;
  flex-shrink: 0;
  margin: 0;
}
.view-switch-target[data-view="list"] > .view-cell-post article.group > a.block > div.mt-4 {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}

/* Vídeos (home + página vídeos) */
.view-switch-target[data-view="list"] > .view-cell-video.group {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}
.view-switch-target[data-view="list"] > .view-cell-video .aspect-video {
  width: 14rem;
  max-width: 40%;
  flex-shrink: 0;
}

/* E-books página (capa em cima na grade) */
.view-switch-target[data-view="list"] > .view-cell-ebook {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: flex-start;
}
.view-switch-target[data-view="list"] > .view-cell-ebook .view-ebook-body {
  margin-top: 0;
}
.view-switch-target[data-view="list"] > .view-cell-ebook .view-ebook-aspect {
  width: 7rem;
  flex-shrink: 0;
  height: auto;
  min-height: 9rem;
  max-height: 11rem;
}

/* Loja — cartão vertical */
.view-switch-target[data-view="list"] > .view-cell-product {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: stretch;
  overflow: hidden;
}
.view-switch-target[data-view="list"] > .view-cell-product .aspect-square {
  width: 8rem;
  flex-shrink: 0;
  height: 8rem;
}
.view-switch-target[data-view="list"] > .view-cell-product > .p-4 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* E-books na home (já horizontais no cartão) */
.view-switch-target[data-view="list"] > .view-cell-ebook-home > div {
  flex-direction: column;
}
@media (min-width: 640px) {
  .view-switch-target[data-view="list"] > .view-cell-ebook-home > div {
    flex-direction: row;
  }
}

/* Categorias (home) — em lista, uma coluna */
.view-switch-target[data-view="list"].view-categories > a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
