/* Styles for shared/panel-toggle.js. Load after student.css / tutor.css: it only changes the portrait-phone panel
   from a draggable three-stop sheet to a two-state panel switched by a button. */

:root {
  --sq-sheet-open: 72dvh;
}

@media (max-width: 820px) and (orientation: portrait) {
  .sq-detail[data-sheet="open"] {
    height: var(--sq-sheet-open);
  }

  /* the handle becomes a full-width labelled button instead of a drag grip */
  .sq-detail .qr-sheet-handle {
    gap: 6px;
    height: 36px;
    color: var(--sq-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
  }

  .qr-toggle-chevron {
    transition: transform 0.2s;
  }

  .sq-detail[data-sheet="open"] .qr-toggle-chevron {
    transform: rotate(180deg);
  }

  .sq-detail[data-sheet="open"] .sq-detail-body {
    overflow-y: auto;
  }

  /* keep the question list in its original place, a vertical column on the left, instead of a strip on top */
  .sq-main {
    flex-direction: row;
  }

  .sq-rail {
    flex-direction: column;
    width: 52px;
    gap: 14px;
    padding: 12px 0 calc(var(--sq-sheet-peek) + 12px) 9px;
    overflow-x: hidden;
    overflow-y: auto;
    border-bottom: 0;
    box-shadow: 0 12px 24px rgba(18, 38, 63, 0.03);
  }
}
