/* Give each original document a readable preview, with its scope directly below. */
.certification-badges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:0}
.certification-badges .badge{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;background:#d7e0e6;border:1px solid #bac8d2;border-radius:7px;overflow:hidden}
.certification-badges .badge-icon{display:flex;position:relative;align-items:center;justify-content:center;flex:none;width:100%;height:clamp(280px,22vw,340px);padding:16px 12px;background:#cdd8e0;border-bottom:1px solid #b8c7d2;text-decoration:none}
.certification-badges .badge-img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;filter:none}
.certificate-copy{display:flex;flex-direction:column;flex:1;padding:24px 23px 25px}
.certificate-category{font-size:10px;letter-spacing:.09em;color:#52728a;font-weight:600;margin-bottom:10px}
.certificate-title{font-size:20px;color:#20374a;font-weight:650;line-height:1.5;letter-spacing:-.04em}
.certificate-description{font-size:14px;line-height:1.9;color:#4b6274;margin:15px 0 20px}
.certificate-meta{margin-top:auto;padding-top:15px;border-top:1px solid #b8c7d2;font-size:11px;line-height:1.9;color:#536e80}
.certificate-meta span{display:block}
/* Keep supporting metrics compact on every screen. */
#page-about-credentials .about-stats{gap:20px;margin:0 0 22px;padding:16px 0}
#page-about-credentials .stat-item{min-width:0;padding-left:18px}
#page-about-credentials .stat-item:first-child{padding-left:0}
#page-about-credentials .stat-num{font-size:25px;line-height:1.15;white-space:nowrap}
#page-about-credentials .stat-suffix{font-size:15px}
#page-about-credentials .stat-label{font-size:11px;line-height:1.5;margin-top:7px}
#page-about-credentials .certification-badges{margin-top:0}
@media(max-width:1199px),(pointer:coarse) and (max-width:1366px){
 .certification-badges{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .certification-badges .badge-icon{height:clamp(240px,32vw,320px)}
 .certificate-copy{padding:20px}
 .certificate-title{font-size:19px}
 .certificate-description{margin:12px 0 17px}
}
@media(max-width:600px){
 .certification-badges{grid-template-columns:1fr;gap:18px}
 .certification-badges .badge-icon{height:clamp(220px,65vw,290px);padding:14px}
 .certificate-copy{padding:20px}
 .certificate-title{font-size:19px}
 #page-about-credentials .about-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:14px 0;margin-bottom:18px}
 #page-about-credentials .stat-item{padding-left:0;border-left:0}
 #page-about-credentials .stat-num{font-size:24px}
 #page-about-credentials .stat-label{margin-top:4px}
}

/* Allocate the available desktop viewport to the documents, after a compact
   metrics strip. Text remains in natural flow; no line clamps or hidden copy. */
@media(min-width:1200px) and (min-height:680px) and (hover:hover) and (pointer:fine){
 .section-pages #page-about-credentials>.page-source{display:flex;flex-direction:column;gap:14px;height:100%;min-height:0;padding:16px var(--page-gutter) 18px}
 .section-pages #page-about-credentials>.page-source::after{display:none}
 #page-about-credentials .about-stats{flex:none;gap:20px;margin:0;padding:10px 0}
 #page-about-credentials .stat-item{display:flex;align-items:center;gap:10px;padding-left:18px;min-width:0}
 #page-about-credentials .stat-item:first-child{padding-left:0}
 #page-about-credentials .stat-num{font-size:25px;line-height:1.15;white-space:nowrap}
 #page-about-credentials .stat-suffix{font-size:15px}
 #page-about-credentials .stat-label{font-size:11px;line-height:1.5;margin:0}
 #page-about-credentials .certification-badges{flex:1;min-height:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0}
 #page-about-credentials .badge{display:grid;grid-template-rows:minmax(130px,1fr) auto;min-height:0;overflow:visible}
 #page-about-credentials .badge-icon{height:auto;min-height:0;padding:12px 14px;border-radius:6px 6px 0 0}
 #page-about-credentials .certificate-copy{padding:16px 17px;min-height:0}
 #page-about-credentials .certificate-category{font-size:9px;line-height:1.4;margin-bottom:6px}
 #page-about-credentials .certificate-title{font-size:clamp(17px,1.35vw,20px);line-height:1.4}
 #page-about-credentials .certificate-description{font-size:clamp(12px,1vw,14px);line-height:1.75;margin:10px 0 12px}
 #page-about-credentials .certificate-meta{font-size:10px;line-height:1.75;padding-top:10px}
 @supports(grid-template-rows:subgrid){
  #page-about-credentials .certification-badges{grid-template-rows:minmax(130px,1fr) auto;row-gap:0}
  #page-about-credentials .badge{grid-row:span 2;grid-template-rows:subgrid;row-gap:0}
 }
}
@media(min-width:1200px) and (min-height:680px) and (max-height:800px) and (hover:hover) and (pointer:fine){
 .section-pages #page-about-credentials>.page-source{gap:10px;padding-top:12px;padding-bottom:12px}
 #page-about-credentials .about-stats{padding:8px 0}
 #page-about-credentials .stat-num{font-size:23px}
 #page-about-credentials .certificate-copy{padding:12px 14px}
 #page-about-credentials .certificate-category{font-size:8px;margin-bottom:5px}
 #page-about-credentials .certificate-title{font-size:17px}
 #page-about-credentials .certificate-description{font-size:12px;line-height:1.65;margin:8px 0 10px}
 #page-about-credentials .certificate-meta{font-size:9px;line-height:1.6;padding-top:8px}
}
