/* The certificate gallery keeps original documents intact inside quiet, equal frames. */
.certificate-showcase { background: #f6f4f0; padding-bottom: 32px; }
body[data-page="qualifications"] .certificate-showcase + .qualifications-page { padding-top: 40px; }
.certificate-showcase__heading { display: grid; grid-template-columns: 1fr 0.95fr; align-items: end; gap: 48px; margin-bottom: 38px; }
.certificate-showcase__heading .eyebrow { margin-bottom: 18px; font-size: 10px; letter-spacing: 0.15em; }
.certificate-showcase__heading h2 { margin: 0; color: var(--yf-ink); font-size: clamp(28px, 3vw, 40px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.3; }
.certificate-showcase__intro > p:first-child { margin: 0; color: var(--yf-body); font-size: 15px; line-height: 1.9; }
.certificate-showcase__scope { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; color: var(--yf-brand); font-size: 11px; letter-spacing: 0.04em; }
.certificate-showcase__scope span { color: #c9bfb3; }
.certificate-showcase__gallery { overflow: hidden; border: 0; background: transparent; }
.certificate-showcase .certificate-carousel__viewport { width: 100%; margin-inline: 0; overflow: hidden; -webkit-mask-image: none; mask-image: none; scroll-snap-type: none; scroll-behavior: auto; touch-action: pan-y; }
.certificate-showcase .certificate-carousel__viewport:focus-visible { outline: 2px solid var(--yf-brand); outline-offset: -3px; }
.certificate-showcase .certificate-carousel__track { align-items: stretch; gap: 20px; padding: 12px 0 18px; will-change: transform; }
.certificate-showcase .certificate-slide { display: flex; flex-direction: column; flex: 0 0 330px; width: 330px; height: auto; border: 0; background: #fff; box-shadow: 0 6px 16px rgb(64 49 34 / 4%); scroll-snap-align: none; }
.certificate-card__image { display: flex; align-items: center; justify-content: center; height: 426px; padding: 17px 16px; border-bottom: 1px solid #ebe7e1; background: #fff; }
.certificate-showcase .certificate-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.certificate-card__caption { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 22px 21px; text-align: left; }
.certificate-card__category { margin: 0 0 9px; color: var(--yf-brand); font-size: 10px; font-weight: 600; letter-spacing: 0.13em; }
.certificate-card__caption h3 { margin: 0; color: var(--yf-ink); font-size: 17px; font-weight: 600; line-height: 1.6; letter-spacing: -0.02em; }
.certificate-card__summary { margin: 7px 0 15px; color: var(--yf-muted); font-size: 12px; line-height: 1.6; }
.certificate-card__caption small { margin-top: auto; color: #8b8175; font-size: 10px; letter-spacing: 0.065em; font-variant-numeric: tabular-nums; }
@media (max-width: 850px) {
  .certificate-showcase__heading { grid-template-columns: 1fr; gap: 20px; }
  .certificate-showcase__intro { max-width: 550px; }
  .certificate-showcase .certificate-slide { flex-basis: 306px; width: 306px; }
  .certificate-card__image { height: 396px; }
}
@media (max-width: 600px) {
  .certificate-showcase { padding-block: 60px 24px; }
  body[data-page="qualifications"] .certificate-showcase + .qualifications-page { padding-top: 28px; }
  .certificate-showcase__heading { margin-bottom: 26px; gap: 18px; }
  .certificate-showcase__heading .eyebrow { margin-bottom: 14px; font-size: 9px; letter-spacing: 0.11em; }
  .certificate-showcase__heading h2 { font-size: 28px; }
  .certificate-showcase__intro > p:first-child { font-size: 13px; line-height: 1.9; }
  .certificate-showcase__scope { gap: 6px; font-size: 10px; }
  .certificate-showcase .certificate-carousel__track { gap: 14px; padding-top: 10px; padding-bottom: 16px; }
  .certificate-showcase .certificate-slide { flex-basis: 282px; width: 282px; }
  .certificate-card__image { height: 366px; padding: 14px; }
  .certificate-card__caption { padding: 18px; }
  .certificate-card__caption h3 { font-size: 16px; }
  .certificate-card__summary { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .certificate-showcase .certificate-carousel__viewport { scroll-behavior: auto; }
}
