/* ==========================================================================
   Pre-existing bug fix — independent of any theme (applies to the current
   theme too). On phones the toolbar controls are ~398px wide but only
   ~366px (390px screen) or ~336px (360px screen) is available, so the whole
   page scrolls sideways. This lets the selects share the row and hides the
   visible "Season"/"Sort by"/"Theme" text on small screens only — the
   <label for> associations stay, so screen readers still announce them.

   Extended for the look picker (.control-look): on phones it takes its own
   full-width row above the Season/Sort row, so the verified two-selects +
   toggle row geometry is unchanged. Selects live inside .control wrappers
   (label + select), so the flex sizing targets the wrappers.
   ========================================================================== */

@media (max-width: 560px) {
  .toolbar-controls {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap; /* let the look picker take its own row */
  }
  .toolbar-controls label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .toolbar .control {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  /* look picker: own row, first (order beats DOM position for wrapping) */
  .toolbar .control-look {
    order: -1;
    flex: 1 1 100%;
  }
  .toolbar select,
  .toolbar #season {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .theme-toggle { flex: 0 0 auto; }
}