/* Certifier section: /certifiers/ hub, profiles, guide and comparison. */

.cert-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-3);
  font-size: var(--ds-text-sm);
  color: hsl(var(--primary-foreground) / 0.85);
}

.cert-crumbs a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cert-body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-6);
  max-width: var(--ds-measure);
  line-height: var(--ds-leading-normal);
}

.cert-body a:not(.ih-btn) {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cert-body h2 {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-xl);
  font-weight: 700;
  line-height: var(--ds-leading-snug);
  margin-bottom: var(--ds-space-3);
}

.cert-body h3 {
  font-size: var(--ds-text-lg);
  font-weight: 700;
  line-height: var(--ds-leading-snug);
}

.cert-section > p + p {
  margin-top: var(--ds-space-3);
}

.cert-lede {
  font-size: var(--ds-text-lg);
}

.cert-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--ds-space-4);
  padding: var(--ds-space-4) 0;
  border-block: 1px solid hsl(var(--border));
}

.cert-facts dt,
.cert-scope__row dt {
  font-size: var(--ds-text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

html[lang="ar"] .cert-facts dt,
html[lang="ar"] .cert-scope__row dt {
  letter-spacing: 0;
}

.cert-facts dd {
  margin-top: var(--ds-space-1);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cert-directory {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
  border-radius: var(--ds-radius-lg);
  background: hsl(var(--primary) / 0.06);
  margin-bottom: var(--ds-space-4);
}

.cert-directory--none {
  background: hsl(var(--muted));
}

.cert-steps,
.cert-list {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  padding-inline-start: var(--ds-space-5);
}

.cert-steps {
  list-style: decimal;
}

.cert-list {
  list-style: disc;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
}

.cert-tags li {
  padding: var(--ds-space-1) var(--ds-space-3);
  border-radius: var(--ds-radius-full);
  border: 1px solid hsl(var(--border));
  font-size: var(--ds-text-sm);
}

.cert-cards {
  display: grid;
  gap: var(--ds-space-4);
}

@media (min-width: 720px) {
  .cert-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.cert-card {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  padding: var(--ds-space-4);
  border: 1px solid hsl(var(--border));
  border-radius: var(--ds-radius-lg);
}

.cert-card__meta {
  font-size: var(--ds-text-sm);
  color: hsl(var(--muted-foreground));
}

.cert-card__check {
  margin-top: auto;
  font-size: var(--ds-text-sm);
  font-weight: 600;
}

/* Reusable "what a certificate covers" card */
.cert-scope {
  padding: var(--ds-space-5);
  border-radius: var(--ds-radius-lg);
  border: 1px solid hsl(var(--primary) / 0.25);
  border-inline-start: 4px solid hsl(var(--primary));
  background: hsl(var(--background));
}

.cert-scope__title {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-xl);
  font-weight: 700;
}

.cert-scope__lead {
  margin: var(--ds-space-2) 0 var(--ds-space-4);
  color: hsl(var(--muted-foreground));
}

.cert-scope__list {
  display: grid;
  gap: var(--ds-space-3);
}

@media (min-width: 640px) {
  .cert-scope__list {
    grid-template-columns: 1fr 1fr;
  }
}

.cert-scope__row dd {
  margin-top: var(--ds-space-1);
}

.cert-table-wrap {
  overflow-x: auto;
}

.cert-table {
  width: 100%;
  min-width: 34rem;
  font-size: var(--ds-text-sm);
  text-align: start;
}

.cert-table th,
.cert-table td {
  padding: var(--ds-space-3);
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
  text-align: start;
}

.cert-table thead th {
  font-size: var(--ds-text-base);
  font-weight: 700;
}

.cert-table tbody th {
  font-weight: 700;
  width: 9rem;
}

.cert-two {
  display: grid;
  gap: var(--ds-space-5);
}

.cert-two h3 {
  margin-bottom: var(--ds-space-2);
}

@media (min-width: 720px) {
  .cert-two {
    grid-template-columns: 1fr 1fr;
  }
}

.cert-sources {
  padding-top: var(--ds-space-5);
  border-top: 1px solid hsl(var(--border));
  font-size: var(--ds-text-sm);
}

.cert-sources ol {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  list-style: decimal;
  padding-inline-start: var(--ds-space-5);
}

.cert-sources__org {
  font-weight: 700;
}

.cert-sources__note,
.cert-sources__date {
  display: block;
  color: hsl(var(--muted-foreground));
}

.cert-more {
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
