.sf-cert-page,
.sf-cert-summary,
.sf-cert-band {
  color: var(--ink, #111927);
  font-size: max(1rem, 16px);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.sf-cert-page {
  width: 100%;
  min-width: 0;
  max-width: 1180px;
  margin-inline: auto;
}

.sf-cert-page > * + * {
  margin-top: clamp(24px, 4vw, 40px);
}

.sf-cert-hero,
.sf-cert-card,
.sf-cert-summary {
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-strong, rgba(17, 25, 39, .24));
  border-radius: 22px;
  background: var(--surface-raised, #fff);
}

.sf-cert-hero h1 {
  max-width: 24ch;
  margin: 0 0 20px;
  color: var(--ink, #111927);
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.sf-cert-lead {
  max-width: 75ch;
  margin: 0;
  color: var(--muted, #596579);
  font-size: clamp(1rem, 1.7vw, 1.125rem);
}

.sf-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.sf-cert-card > :first-child,
.sf-cert-summary > :first-child {
  margin-top: 0;
}

.sf-cert-card > :last-child,
.sf-cert-summary > :last-child {
  margin-bottom: 0;
}

.sf-cert-page h2,
.sf-cert-summary h2 {
  color: var(--ink, #111927);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.3;
}

.sf-cert-page h3 {
  color: var(--ink, #111927);
  font-size: 1.125rem;
  line-height: 1.45;
}

.sf-cert-page p,
.sf-cert-page li,
.sf-cert-page dt,
.sf-cert-page dd,
.sf-cert-page figcaption,
.sf-cert-summary p {
  font-size: max(1rem, 16px);
}

.sf-cert-meta {
  display: grid;
  grid-template-columns: minmax(100px, .75fr) minmax(0, 1.4fr);
  gap: 12px 18px;
  margin: 24px 0;
}

.sf-cert-meta dt,
.sf-cert-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.sf-cert-meta > div {
  display: contents;
}

.sf-cert-meta dt {
  color: var(--muted, #596579);
}

.sf-cert-meta dd {
  color: var(--ink, #111927);
  font-weight: 600;
}

.sf-cert-media {
  min-width: 0;
  margin: 24px 0;
}

.sf-cert-media a {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-strong, rgba(17, 25, 39, .24));
  border-radius: 12px;
  background: #fff;
}

.sf-cert-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  margin-inline: auto;
  object-fit: contain;
  background: #fff;
}

.sf-cert-media figcaption {
  margin-top: 12px;
  color: var(--muted, #596579);
}

.sf-cert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.sf-cert-link,
.sf-cert-actions a,
.sf-cert-faq summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding-block: 8px;
  color: var(--ink, #111927);
  font-size: max(1rem, 16px);
  font-weight: 650;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--focus-orange, #f53900);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.sf-cert-page a:focus-visible,
.sf-cert-summary a:focus-visible,
.sf-cert-band a:focus-visible,
.sf-cert-faq summary:focus-visible {
  outline: 3px solid var(--focus-orange, #f53900);
  outline-offset: 4px;
  border-radius: 4px;
}

.sf-cert-faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line, rgba(17, 25, 39, .14));
}

.sf-cert-faq summary {
  display: list-item;
  padding-inline: 4px;
  cursor: pointer;
  text-decoration: none;
}

.sf-cert-faq summary::marker {
  color: var(--focus-orange, #f53900);
}

.sf-cert-faq details p {
  max-width: 85ch;
  margin-bottom: 0;
}

.sf-cert-band {
  position: relative;
  z-index: 2;
  padding: 0 24px clamp(32px, 5vw, 64px);
}

.sf-cert-band__inner {
  display: flex;
  max-width: 1200px;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin: 0 auto;
  padding: 20px 28px;
  border: 1px solid var(--line-strong, rgba(17, 25, 39, .24));
  border-radius: 20px;
  background: var(--surface-raised, #fff);
}

.sf-cert-band__standards {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-cert-band__standards li {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-cert-band__standards strong,
.sf-cert-band__standards span {
  display: block;
}

.sf-cert-band__standards strong {
  color: var(--ink, #111927);
  font-size: 1.125rem;
}

.sf-cert-band__standards span {
  color: var(--muted, #596579);
  font-size: max(1rem, 16px);
}

@media (max-width: 760px) {
  .sf-cert-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-cert-band {
    padding-inline: 16px;
  }

  .sf-cert-band__inner {
    align-items: flex-start;
    padding: 20px;
  }

  .sf-cert-band__standards {
    width: 100%;
    gap: 16px 28px;
  }
}

@media (max-width: 480px) {
  .sf-cert-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .sf-cert-meta dd {
    margin-bottom: 12px;
  }

  .sf-cert-band__standards {
    flex-direction: column;
  }
}
