/* Phone-only: part squares that fit, then a button to the course page for the rest. */
.pmore { display: none; }
@media (max-width: 560px) {
  .tgrid .parts { flex-wrap: wrap; overflow: visible; }
  .tgrid .parts .pb { flex: 0 0 40px; height: 34px; }
  .pmore:not([hidden]) { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 10px 0 6px; padding: 0 14px; border: 1px solid rgba(34,211,238,.5); border-radius: 12px; background: rgba(4,16,29,.55); color: #22d3ee; font-weight: 600; font-size: .92rem; text-decoration: none; }
}

/* Floating page buttons: smaller and fainter so they stay out of the way. */
#lnav .lnav-b { min-height: 36px; min-width: 36px; padding: 0 10px; opacity: .6; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
#lnav .lnav-b:hover, #lnav .lnav-b:focus-visible, #lnav .lnav-b:active { opacity: 1; }
#lnav .lnav-t { width: 36px; padding: 0; }
#lnav .lnav-b svg { width: 18px; height: 18px; }

/* v11: even spacing between the Ohm's Law and Calibration panels when they stack */
@media (max-width: 860px) { .rowB { gap: 20px; } }

/* v11: on tablets a 10-part card wraps as 5 + 5 instead of 9 + 1 */
@media (min-width: 561px) and (max-width: 900px) {
  .tgrid .cfeat .parts:has(.pb:nth-child(10):last-child) { display: grid; grid-template-columns: repeat(5, 1fr); }
  .tgrid .cfeat .parts:has(.pb:nth-child(10):last-child) .pb { flex: none; width: auto; }
}

/* v11: floating arrows keep their small look but get a 44px touch area */
#lnav .lnav-b { position: relative; }
#lnav .lnav-b::after { content: ""; position: absolute; inset: -4px; }

/* v11: spacing inside the Ohm's Law practice box */
#dlg-body .oc-note, #dlg .oc-note { margin: 12px 0; color: #cfe0f5; font-size: .95em; }
#dlg #ps { margin: 10px 0; }
#dlg #ps summary { cursor: pointer; padding: 12px 0; }
#dlg #ps[hidden] { display: none; }
