/* Grid container */
.lm-tcards{
  --lm-min: 260px;
  --lm-gap: 24px;
  --lm-radius: 18px;
  --lm-accent: #10A3A6;
  --lm-card-bg: #F5EFE6;
  --lm-border: rgba(0,0,0,0.12);
  --lm-strip: #E7DED3;
  --lm-img-h: 160px;
  --lm-shadow: 1; /* 1/0 */
  --lm-gray: 1;   /* 1/0 */
  font-family: "Greycliff CF", Sans-serif;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--lm-min), 1fr));
  gap: var(--lm-gap);
}

.lm-tcard{
  background: var(--lm-card-bg);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Imatge */
.lm-tcard__imgwrap{
  height: var(--lm-img-h);
  overflow: hidden;
}
.lm-tcard__img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(calc(var(--lm-gray)*100%));
}

/* Franja + badge de cometes */
.lm-tcard__sep{
  position: relative;
  height: 28px;
  background: var(--lm-strip);
}
.lm-tcard__badge{
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--lm-accent);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  text-indent: 0;
}

/* Cos */
.lm-tcard__body{ padding: 18px 18px 16px; }
.lm-tcard__text{ margin: 0 0 14px 0; font-size: 14px; color: #2a2a2a; }
.lm-hr{ height:1px; background: rgb(255 255 255 / 65%);margin: 8px 0 12px 0; }
.lm-tcard__author{ color: #1b1b1b; }
.lm-tcard__author em{ color: rgba(0,0,0,0.55); font-style: italic; font-size: 13px; }

/* Responsive tweaks */
@media (max-width: 768px){
  .lm-tcards{ --lm-min: 100%; }
}
