:root{ --mk-brand:#b94460; }

/* --- isolate the grid from theme/page-builder leakage --- */
.mkcg-wrap{
  all: initial;
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.mkcg-wrap *{
  all: revert;
  box-sizing: border-box;
}

.mkcg-wrap.align-full{ width:100%; }
.mkcg-wrap.align-wide{ max-width:1200px; margin:0 auto; }
.mkcg-wrap.align-content{ max-width:980px; margin:0 auto; }

/* --- grid --- */
.mkcg-grid{
  display: grid !important;
  grid-template-columns: repeat(var(--mkcg-cols,3), minmax(0,1fr));
  gap: var(--mkcg-gap,22px);
  margin: 0;
  padding: 0;
  isolation: isolate; /* keep z-index/filters contained */
}
@media (max-width: 900px){
  .mkcg-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px){
  .mkcg-grid{ grid-template-columns: 1fr; }
}

/* kill stray margins from nested blocks/builders */
.mkcg-grid > *{ margin:0 !important; }

/* --- card --- */
.mkcg-card{
  display: block;
  height: 100%;
  text-decoration: none;
  color: #0f172a;
}
.mkcg-card-inner{
  height: 100%;
  background: #f6f8fb;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mkcg-card-inner:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16,24,40,.08);
}

/* icon */
.mkcg-icon{
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.mkcg-icon--placeholder{
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  display: inline-block;
}

/* text */
.mkcg-title{
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 22px;
}
.mkcg-sub{
  color: var(--mk-brand);
  font-weight: 700;
  font-size: 15px;
}
