/* wp-content/plugins/notts-osteo-elements/assets/css/certifications.css
 *
 * Qualifications and training. Section chrome comes from home-blocks.css.
 *
 * A list, not a wall of badges: this is the evidence a patient reads before letting someone treat
 * them, so it is set to be scanned — award first, awarding body second and quieter.
 *
 * Author: Sean Burn
 */

.nosteo-cert__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nosteo-cert__list > li { list-style: none; }

.nosteo-cert__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--nosteo-surface);
  transition: background 220ms var(--nosteo-ease);
}
.nosteo-cert__item:hover { background: var(--nosteo-tint); }

.nosteo-cert__tick {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--nosteo-resolve);
  /* Optically aligned to the first line's cap height rather than its box top. */
  margin-top: 5px;
}

.nosteo-cert__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nosteo-cert__name {
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: var(--nosteo-weight-medium);
  /* Course titles are long and full of proper nouns; let them wrap rather than overflow. */
  overflow-wrap: anywhere;
}

.nosteo-cert__meta {
  font-family: var(--nosteo-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nosteo-muted);
}

.nosteo-cert__reg {
  margin: 24px 0 0;
  max-width: 70ch;
  font-size: 14px;
  line-height: 1.62;
  color: var(--nosteo-muted);
}

/* Two columns only once a column can hold a course title without it wrapping to four lines.
   Measured on the section container, not the window, so the block can sit anywhere. */
@container nosteo-sec (min-width: 720px) {
  .nosteo-cert__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2px; }
}

@supports not (container-type: inline-size) {
  @media (min-width: 880px) {
    .nosteo-cert__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .nosteo-cert__item { transition: none; }
}
