/* Hardware Test's illustrated instructions; shared workspace owns page geometry. */
.test-hardware {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.test-hardware p { margin: 0; color: var(--muted); font-weight: 700; }
.test-hardware > div { min-width: 0; overflow-wrap: anywhere; }
.test-guide header p, .test-example figcaption { opacity: .75; }
.test-guide h2 { margin: 8px 0; }
.test-colour-guide { padding: 20px 0; }
.test-colours {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  gap: 12px;
}
.test-colours li { display: grid; gap: 8px; text-align: center; }
.test-colour-chip {
  display: block;
  height: 42px;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  background: var(--test-colour);
}
.test-example:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.test-example figure { margin: 0; padding: 24px; min-width: 0; border-radius: 16px; background: #080c11; }
.test-example img { display: block; width: 100%; height: auto; }
.test-example figcaption { margin-top: 12px; text-align: center; }
.test-button-key { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.test-button-key > div { display: flex; align-items: center; gap: 10px; }
.test-button-key dt { padding: 2px 10px; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; }
.test-button-key dd { margin: 0; }
.test-result { padding: 20px; border-radius: 12px; background: #ffffff08; }
.test-result p { margin: 6px 0 0; }
@media (max-width: 760px) {
  .test-example:not([hidden]) { grid-template-columns: 1fr; }
  .test-example figure { grid-row: 1; padding: 20px; }
  .test-colours { gap: 6px; }
}
