/* Small phones (320–400px): let long colour names wrap instead of pushing the
   page sideways. Spec-list chips ("Warm white 3000K") and the 2-column
   brightness boxes on Solar Flood Lights overflowed at 320px / 360px. */
@media (max-width: 400px) {
  .ct { white-space: normal; }
  .cts { min-width: 0; flex-shrink: 1; }
  .mst.mst2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mst2 dt { white-space: normal; align-items: flex-start; }
  .mst2 .sw { flex: none; margin-top: 2px; }
}

/* Page change (Motion board 01): old page fades out 150ms, new page fades in
   and rises 8px over 250ms. Browsers without View Transitions just navigate. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: mc-out 150ms ease-in both; }
::view-transition-new(root) { animation: mc-in 250ms ease-out both; }
@keyframes mc-out { to { opacity: 0; } }
@keyframes mc-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }
  @keyframes mc-in { from { opacity: 0; } }
}
