.certifications-banner {
  min-height: 40vh;
  background-attachment: scroll;
}

.certification-document {
  overflow: hidden;
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius);
  background: var(--bg-color);
}

.document-heading,
.document-title,
.document-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.document-heading {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1.5rem;
}

.document-title {
  min-width: 0;
}

.document-title h2 {
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--heading-color);
}

.document-title p {
  margin-top: .25rem;
  font-size: 1rem;
}

.document-icon {
  color: var(--primary-color);
  font-size: 2rem;
  flex-shrink: 0;
}

.document-actions {
  flex-wrap: wrap;
}

.document-open,
.document-help a {
  color: var(--primary-color);
  text-decoration: underline;
}

.document-open {
  padding: .75rem 0;
}

.document-viewer {
  display: block;
  width: 100%;
  height: 720px;
  height: clamp(420px, 75vh, 900px);
  border: 0;
  border-top: 1px solid var(--bg-border);
  background: var(--bg-light);
}

.document-help {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--bg-border);
  font-size: .875rem;
  line-height: 1.7;
}

.certifications a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

@media (max-width: 575px) {
  .certifications-banner { min-height: 240px; }
  .document-heading { padding: 1.25rem; }
  .document-title { align-items: flex-start; gap: .75rem; }
  .document-title h2 { font-size: 1.25rem; }
  .document-actions { width: 100%; justify-content: space-between; gap: .75rem; }
  .document-help { padding: 1rem 1.25rem; }
}
