.ai-rp-wrap{
  margin:18px 0;
  padding:14px;
  border-radius:16px;
  background: linear-gradient(180deg, rgba(0,0,0,.018), rgba(0,0,0,.006));
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.ai-rp-head{ margin-bottom:12px; }

.ai-rp-kicker{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.55;
  margin-bottom:4px;
}

.ai-rp-h2{
  font-size:20px;
  font-weight:900;
  line-height:1.1;
  margin:0;
}

.ai-rp-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Link should not inherit theme link color */
.ai-rp-item{
  color: inherit !important;
  text-decoration: none !important;

  display:grid;
  grid-template-columns:88px 1fr;
  gap:12px;
  align-items:center;

  padding:10px;
  border-radius:14px;
  background: rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.ai-rp-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.ai-rp-thumb{
  width:88px;
  height:88px;
  border-radius:14px;
  overflow:hidden;
  background: rgba(0,0,0,.06);
}

.ai-rp-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  display:block;
}

.ai-rp-thumb--empty{
  width:88px;
  height:88px;
  border-radius:14px;
  background: rgba(0,0,0,.06);
}

/* Text: align TOP with thumbnail */
.ai-rp-text{
  height:88px;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding-top:2px;
}

.ai-rp-top{
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:6px;
  min-width:0;
}

.ai-rp-badge{
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.70);
  white-space:nowrap;
  max-width:62%;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ai-rp-date{
  font-size:12px;
  opacity:.60;
  white-space:nowrap;
}

.ai-rp-title{
  font-size:16px;
  font-weight:900;
  line-height:1.22;
  margin:0;
  color: rgba(0,0,0,.86);

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.ai-rp-item:hover .ai-rp-title{
  color: rgba(0,0,0,.95);
}

@media (min-width: 900px){
  .ai-rp-item{ grid-template-columns:84px 1fr; }
  .ai-rp-thumb, .ai-rp-thumb--empty{ width:84px; height:78px; border-radius:10px; }
  .ai-rp-text{ height:74px; }
  .ai-rp-title{ font-size:15px; }
}

@media (max-width: 420px){
  .ai-rp-item{ grid-template-columns:72px 1fr; }
  .ai-rp-thumb, .ai-rp-thumb--empty{ width:72px; height:72px; border-radius:12px; }
  .ai-rp-text{ height:72px; }
  .ai-rp-title{ font-size:15px; }
}
