/* Al-Taqwa collateral cards only; Studio native layout, editor and format categories are unchanged. */
body.ph-approved-front .ph-taqwa-collateral-status{
  font:600 12px/1.5 Inter,'Segoe UI',Arial,sans-serif;color:#85502d;margin:9px 0 10px;
}
body.ph-approved-front .ph-taqwa-template-card{position:relative;background:#fff;overflow:hidden;border:1px solid #d8e2e4;border-radius:12px;}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-art{
  position:relative;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#111720,#2b2030);
  min-height:140px;padding:8px;
}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-art img{display:block;width:100%;height:160px;object-fit:contain;}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-draft-badge{
  position:absolute;top:8px;right:8px;z-index:2;color:#fff;background:#a50a26;
  padding:3px 6px;border-radius:4px;font-size:9px;font-weight:800;letter-spacing:.12em;
}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-copy{padding:10px 12px 13px;color:#152333;}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-copy strong{
  display:block;font:700 13px/1.35 Inter,'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere;
}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-copy small{
  display:block;font:400 11px/1.4 Inter,'Segoe UI',Arial,sans-serif;color:#53616d;margin-top:4px;
}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-copy .ph-taqwa-notice{color:#85502d;}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px;}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-actions button{
  border-radius:8px;border:1px solid #b7d9cc;background:#f3faf7;color:#165644;
  min-height:32px;padding:6px 9px;font-size:11px;font-weight:700;cursor:pointer;
}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-actions button:last-child{background:#0a8068;color:#fff;border-color:#0a8068;}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-actions button:focus-visible{outline:3px solid #42c3a0;outline-offset:2px;}
body.ph-approved-front .ph-taqwa-template-card .ph-taqwa-actions button:disabled{opacity:.55;cursor:wait;}
body.ph-approved-front[data-view=choose][data-studio-home=home] .ph-template-results .ph-taqwa-template-card{height:108px!important;}
body.ph-approved-front[data-view=choose][data-studio-home=home] .ph-template-results .ph-taqwa-template-card .ph-taqwa-art{
  padding:0;min-height:0;height:108px!important;
}
body.ph-approved-front[data-view=choose][data-studio-home=home] .ph-template-results .ph-taqwa-template-card .ph-taqwa-art img{height:108px;}
body.ph-approved-front[data-view=choose][data-studio-home=home] .ph-template-results .ph-taqwa-template-card .ph-taqwa-copy{display:none!important;}
body.ph-approved-front[data-view=choose][data-studio-home=templates] .ph-template-results .ph-taqwa-template-card{
  height:auto!important;min-height:270px!important;flex:0 0 min(260px,100%);width:min(260px,100%);max-width:300px;
}
@media(max-width:720px){
  body.ph-approved-front[data-view=choose][data-studio-home=templates] .ph-template-results .ph-taqwa-template-card{
    flex:0 0 min(85vw,275px);width:min(85vw,275px);
  }
}


/* Studio HOME only: hide five generic portfolio previews the owner marked for removal.
 * Keep their source templates intact and available in the Templates library.
 * Use stable template IDs, never nth-child, so other categories and Al-Taqwa stay visible. */
body.ph-approved-front[data-view="choose"][data-studio-home="home"] #ph-template-results > .ph-template-card[data-template-id="bento"],
body.ph-approved-front[data-view="choose"][data-studio-home="home"] #ph-template-results > .ph-template-card[data-template-id="editorial"],
body.ph-approved-front[data-view="choose"][data-studio-home="home"] #ph-template-results > .ph-template-card[data-template-id="mono"],
body.ph-approved-front[data-view="choose"][data-studio-home="home"] #ph-template-results > .ph-template-card[data-template-id="orbit"],
body.ph-approved-front[data-view="choose"][data-studio-home="home"] #ph-template-results > .ph-template-card[data-template-id="gallery"] {
  display: none !important;
}
