/* ======================================================
   MANTENEDORES — lista em linhas (logo | texto | botão)
====================================================== */

.mantenedores-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.mantenedor-row{
  display:grid;
  grid-template-columns: 140px 1fr 170px;
  gap:18px;
  align-items:center;

  background:#fff;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  padding:16px 18px;
}

.mantenedor-col{ min-width:0; }

.mantenedor-col--media{
  display:flex;
  align-items:center;
  justify-content:center;
}

.mantenedor-logo{
  width:110px;
  height:110px;
  object-fit:contain;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  padding:10px;
}

.mantenedor-logo.is-empty{
  width:110px;
  height:110px;
  border-radius:14px;
  border:1px dashed rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.65;
}

.mantenedor-title{
  margin:0 0 6px;
  font-size:20px;
  font-weight:900;
  color:#111;
}

.mantenedor-text{
  margin:0;
  color:rgba(0,0,0,.65);
  line-height:1.35;
}

.mantenedor-col--actions{
  display:flex;
  justify-content:flex-end;
}

.mantenedor-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;

  padding:10px 14px;
  border-radius:12px;

  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.06);

  text-decoration:none;
  font-weight:800;
  color:#111;

  transition:transform .15s ease, box-shadow .15s ease;
}

.mantenedor-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(0,0,0,.10);
}

/* Responsivo */
@media (max-width: 991px){
  .mantenedor-row{
    grid-template-columns: 110px 1fr;
    grid-template-areas:
      "media content"
      "actions actions";
  }
  .mantenedor-col--media{ grid-area: media; }
  .mantenedor-col--content{ grid-area: content; }
  .mantenedor-col--actions{
    grid-area: actions;
    justify-content:flex-start;
  }
}

@media (max-width: 575px){
  .mantenedor-row{
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content"
      "actions";
  }
  .mantenedor-col--media{ justify-content:flex-start; }
  .mantenedor-logo, .mantenedor-logo.is-empty{ width:100px; height:100px; }
}

/* =========================================================
   MANTENEDORES — LISTA EM CARDS (Imagem | Texto | Botão)
   Visual igual ao print: fundo branco, sombra leve, arredondado
========================================================= */

/* container da lista */
.mant-table {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* cada linha/card */
.mant-row {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  padding: 22px 24px;

  display: grid;
  grid-template-columns: 96px 1fr 180px; /* img | texto | botão */
  align-items: center;
  column-gap: 22px;
}

/* coluna 1: thumb */
.mant-thumb {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* fallback sem imagem */
.mant-thumb--fallback {
  background: linear-gradient(135deg,#00e4d0 0%, #0e9adf 100%);
}

.mant-thumb--fallback i,
.mant-thumb--fallback .dashicons {
  color: #fff;
  font-size: 34px;
  width: 34px;
  height: 34px;
  line-height: 34px;
}

/* coluna 2: texto */
.mant-main {
  min-width: 0; /* permite ellipsis */
}

.mant-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  color: #111;
}

.mant-excerpt {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(17,17,17,.72);

  display: -webkit-box;
  -webkit-line-clamp: 3; /* limita */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* coluna 3: ações */
.mant-actions {
  display: flex;
  justify-content: flex-end;
}

.mant-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  border-radius: 16px;
  padding: 12px 18px;

  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);

  font-weight: 800;
  text-decoration: none;
  color: #1f2937;

  transition: transform .15s ease, box-shadow .15s ease;
}

.mant-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,.10);
}

.mant-btn i,
.mant-btn .dashicons {
  opacity: .85;
}

/* reduz altura geral (mais “compacto”, igual print) */
.mant-row.is-compact {
  padding: 18px 22px;
  grid-template-columns: 84px 1fr 170px;
}

.mant-row.is-compact .mant-thumb {
  width: 84px;
  height: 84px;
  border-radius: 16px;
}

.mant-row.is-compact .mant-title {
  font-size: 20px;
}

/* responsivo */
@media (max-width: 991px) {
  .mant-row {
    grid-template-columns: 84px 1fr;
    row-gap: 14px;
  }
  .mant-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .mant-row {
    grid-template-columns: 72px 1fr;
    padding: 16px 16px;
    border-radius: 18px;
  }
  .mant-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }
  .mant-title {
    font-size: 18px;
  }
}
