/* Credential badges and the Huntress partner mark.
   Badge art: /img/badges/*.png (optimized 160px PNGs).
   Partner mark: /img/partners/huntress.png
   That Huntress file is a placeholder from Huntress's public GitHub avatar.
   Replace that one file with the official partner-portal badge when it is available.
   Tiles stay light so the dark CISSP badge (and the Huntress mark) stay readable. */

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

body.hc section.certbar{padding:28px 0;background:var(--hc-bg);border-top:1px solid var(--hc-border)}
.certbar-in{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.certbar-label{margin:0;font-weight:700;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--hc-muted)}
.certchips,.credgrid{list-style:none;margin:0;padding:0}
.certchips{display:flex;flex-wrap:wrap;gap:12px}

body.hc a.certchip,
body.hc a.partnerchip,
body.hc a.credcard{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:1px solid var(--hc-border);border-radius:var(--hc-r-md);background:var(--hc-surface);color:var(--hc-text);text-decoration:none}
body.hc a.certchip:hover,
body.hc a.partnerchip:hover,
body.hc a.credcard:hover{background:var(--hc-surface-2);color:var(--hc-text)}
.certchip b,.partnerchip b,.credcard b{display:block;color:var(--hc-heading);font-size:.95rem;line-height:1.3}
.certchip small,.partnerchip small,.credcard small{display:block;margin-top:2px;color:var(--hc-muted);font-size:.8125rem;line-height:1.35}

.cert-tile{display:grid;place-items:center;flex:none;background:#f4f6fa;border-radius:10px;padding:4px}
.cert-tile img{display:block;width:44px;height:44px;object-fit:contain;background:#f4f6fa}

.credintro{max-width:70ch;margin:8px 0 0}
.credgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:28px}
.credgrid>li{display:flex;min-width:0}
body.hc a.credcard{flex:1;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:18px;height:100%}
.credcard .cert-tile{margin-bottom:12px}
.credcard .cert-tile img{width:72px;height:72px}
body.hc a.credcard .more{margin-top:auto;padding-top:12px;color:var(--hc-link);font-weight:600}
body.hc a.credcard:hover .more{color:var(--hc-link-hover)}
.cred-also{margin-top:22px}

.partner-figure{margin:0 0 28px}
.partner-figure .cert-tile{width:max-content}
.partner-figure .cert-tile img{width:96px;height:96px}
.partner-figure figcaption{margin-top:8px;color:var(--hc-muted);font-size:.9375rem}
#credentials,#partners{scroll-margin-top:88px}

.pcard .noimg .cert-tile{background:#f4f6fa}
.pcard .noimg .cert-tile img,.home .pcard .cert-tile img{width:72px;height:72px;aspect-ratio:auto;object-fit:contain}
.home .pcard .insight-logo{display:grid;place-items:center;padding:24px;background:var(--hc-surface);border-bottom:1px solid var(--hc-border)}
.home .pcard .insight-logo .cert-tile img{width:96px;height:96px}

@media(min-width:901px) and (max-width:1100px){
  body.hc.home .nav nav a{padding:10px 6px;margin-left:0;font-size:.875rem}
  body.hc.home .nav nav a.navbtn,body.hc.home .nav nav a.btn{margin-left:6px;padding:8px 10px}
}
@media(max-width:900px){
  .credgrid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  body.hc.home section.certbar{padding:24px 0}
  .credgrid{grid-template-columns:1fr}
  .certbar-label{flex-basis:100%}
}
