/* ==========================================================================
   06 ACCREDITATION — the largest real gap against the reference board. Built
   with the M10 bordered-cell device the trust rail uses, one cell of which is
   a photograph.

   The marks are set as TYPE, not logotypes. We have no licence to reproduce
   the Gtechniq, XPEL or IDA wordmarks, and an approximation of a certification
   mark is worse than none — it is the one class of graphic where a redraw is
   a false claim rather than a style choice. 1 image.
   ========================================================================== */

.certs { background: var(--surface-sunken); }

.certs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: var(--border-width-hair) solid var(--border-soft);
  clip-path: var(--chamfer-clip);
  background: var(--chamfer-edge), var(--surface-page);
}

/* the photograph is a cell, not a banner: it sits inside the same 1px
   division as the four marks so the block reads as one instrument plate */
.certs__frame {
  position: relative;
  aspect-ratio: var(--ratio-card);
  border-block-end: var(--border-width-hair) solid var(--border-soft);
}

.certs__cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--card-pad-lg);
  border-block-end: var(--border-width-hair) solid var(--border-soft);
  transition: background-color var(--dur-fast) var(--ease-state);
}
.certs__cell:hover { background: var(--surface-raised); }
.certs__cell:last-child { border-block-end: 0; }

.certs__mark {
  font-family: var(--font-display);
  font-size: var(--text-ledger);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
}

.certs__line {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  line-height: var(--leading-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.certs__means {
  margin-block-start: auto;
  padding-block-start: var(--space-sm);
  background: var(--tick-rule-fine);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body);
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .certs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs__frame { grid-column: 1 / -1; aspect-ratio: var(--ratio-wide); }
  .certs__cell { border-inline-start: var(--border-width-hair) solid var(--border-soft); }
  .certs__cell:nth-child(even) { border-inline-start: 0; }
  .certs__cell:nth-last-child(-n + 2) { border-block-end: 0; }
}

@media (min-width: 1024px) {
  .certs__grid { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); }
  .certs__frame { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; border-block-end: 0; }
  .certs__cell { border-inline-start: var(--border-width-hair) solid var(--border-soft); }
  .certs__cell:nth-child(even) { border-inline-start: var(--border-width-hair) solid var(--border-soft); }
  .certs__cell:nth-child(2),
  .certs__cell:nth-child(3) { border-block-end: var(--border-width-hair) solid var(--border-soft); }
  .certs__cell:nth-child(4),
  .certs__cell:nth-child(5) { border-block-end: 0; }
}
