/* Liberty SBF — Closed Deals, flyer style (3 per row) */

/* card shell */
.tombstone-container .tombstone{
  padding:0;
  margin:24px 0 0;
  border:1px solid #d5dae3;
  border-radius:6px;
  overflow:hidden;
  background:#fff;
  color:#1e2a4a;
  text-align:center;
}
.tombstone-container .tombstone > *{
  margin:0;
}

/* photo */
.tombstone-container .tombstone .deal-image{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  margin:0;
}

/* navy band: amount (white) */
.tombstone-container .tombstone h1{
  background:#1e2a4a;
  color:#fff;
  font-size:18px;
  font-weight:700;
  line-height:1.2;
  padding:10px 12px 1px;
  margin:0;
}

/* navy band: loan type (green caps) */
.tombstone-container .tombstone h1 + *{
  background:#1e2a4a;
  color:#5cc27c;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:1px 12px 10px;
  margin:0;
}

/* description */
.tombstone-container .tombstone h1 + * ~ *{
  padding:10px 14px;
  font-size:13px;
  line-height:1.45;
  color:#1e2a4a;
}

/* hide old divider line if there is one */
.tombstone-container .tombstone > hr{
  display:none;
}

/* closed date: striped footer row */
.tombstone-container .tombstone > :last-child{
  background:#f3f5f8;
  border-top:1px solid #d5dae3;
  padding:7px 12px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#1e2a4a;
}

/* deal detail table (flyer style) */
.tombstone-container .tombstone h1 + * ~ *:has(table){
  padding:0;
}
.tombstone-container .tombstone table{
  width:100%;
  border-collapse:collapse;
  font-size:12.5px;
  margin:0;
}
.tombstone-container .tombstone table th,
.tombstone-container .tombstone table td{
  padding:6px 12px;
  border:0;
  border-bottom:1px solid #d5dae3;
  color:#1e2a4a;
}
.tombstone-container .tombstone table th{
  text-align:left;
  font-weight:700;
}
.tombstone-container .tombstone table td{
  text-align:right;
}
.tombstone-container .tombstone table tr:nth-child(even){
  background:#f3f5f8;
}


/* center the Closed Deals content column (hide empty sidebar) */
.md_page-container .row:has(.tombstone-container){
  justify-content:center;
}
.md_page-container .row:has(.tombstone-container) > .col-lg-3{
  display:none;
}

/* hide close date on deal cards */
.tombstone-container .tombstone > :last-child:not(:has(table)){
  display:none;
}
.tombstone-container .tombstone table tr:last-child th,
.tombstone-container .tombstone table tr:last-child td{
  border-bottom:0;
}