/* Supporting documents keep their original images and accessible full-size viewer. */
.credentials-section { padding-top: 2.5rem; }
.credentials-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; padding-top: 2rem; border-top: 1px solid var(--line); margin-bottom: 1rem; }
.credentials-heading h2 { font-size: 1.4rem; letter-spacing: -.01em; }
.credentials-heading > p { max-width: 35rem; color: var(--muted); font-size: .9375rem; }
.training-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding-block: .6rem; color: var(--green); font-size: .9375rem; font-weight: 600; list-style: none; }
.credentials-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.credential-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.credential-image-link { display: grid; place-items: center; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); aspect-ratio: 4 / 3; padding: 1rem; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.credential-image-link img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; object-fit: contain; }
.credential-card figcaption { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.credential-meta { margin-bottom: .75rem; font-size: .8125rem; color: var(--green); }
.credential-card h3 { margin-bottom: .75rem; font-size: 1.125rem; line-height: 1.4; }
.credential-description { margin-bottom: .75rem; color: var(--muted); font-size: .9375rem; }
.credential-view { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; min-height: 2.75rem; margin-top: auto; color: var(--green); font-size: .9375rem; }
.credential-view svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.credentials-name-note { margin-top: 1rem; color: var(--muted); font-size: .875rem; }
.credential-dialog { width: min(74rem,calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 0; background: #fff; color: var(--ink); }
.credential-dialog::backdrop { background: #102722e8; }
.credential-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.credential-dialog-bar h2 { font-size: 1rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.credential-dialog-close { flex-shrink: 0; min-height: 2.75rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); cursor: pointer; font-size: .9375rem; }
.credential-dialog-close:hover { background: var(--paper); }
.credential-dialog-image { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 8rem); margin: 0 auto; object-fit: contain; }
body.credential-modal-open { overflow: hidden; }
@media (max-width: 760px) {
  .credentials-heading { grid-template-columns: 1fr; gap: .75rem; }
  .credentials-grid { grid-template-columns: 1fr; max-width: 32rem; }
  .credential-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
}
