/* ==========================================================================
   Background: education + certifications
   ========================================================================== */

.background {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  padding: var(--section-y) var(--gutter);
}

/* A size container, so the title scales with its own column (cqw units) */
.background__intro {
  container-type: inline-size;
  flex: 1 1 320px;
  min-width: 0;
}

.background .section-title {
  font-size: clamp(22px, 9.6cqw, 50px);
}

.background__column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.background__column--education {
  flex: 1 1 340px;
  gap: 28px;
}

.background__column--certs {
  flex: 1 1 300px;
}

/* ---- Education entry ---- */
.degree {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

.degree__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.3;
}

.degree__meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.degree__honors {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: var(--text-base);
}

/* ---- Certification / course entry ---- */
.cert {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
}

.cert__type {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-muted);
}

.cert__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.35;
}

.cert__issuer {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* The first entry in each column gets an onyx top rule */
.degree:first-child,
.cert:first-child {
  border-top-color: var(--color-ink);
}
