/* DUBAI STUDIO — AUTOMATIC HOVER SIDEBAR */

@media (min-width:901px) {

  body .sidebar,
  body .sidebar.ds14-pinned,
  body .sidebar.ds-nav3-open,
  body .sidebar.ds-nav3-closed {
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    transition:width .28s ease,
               min-width .28s ease,
               max-width .28s ease!important;
  }

  body .sidebar:hover,
  body .sidebar:focus-within,
  body .sidebar.ds14-pinned:hover,
  body .sidebar.ds-nav3-open:hover,
  body .sidebar.ds-nav3-closed:hover {
    width:270px!important;
    min-width:270px!important;
    max-width:270px!important;
  }

  body .sidebar .nav-label,
  body .sidebar .nav-text,
  body .sidebar .menu-label,
  body .sidebar .brand-wordmark,
  body .sidebar .sidebar-bottom {
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transition:opacity .15s ease!important;
  }

  body .sidebar:hover .nav-label,
  body .sidebar:hover .nav-text,
  body .sidebar:hover .menu-label,
  body .sidebar:hover .brand-wordmark,
  body .sidebar:hover .sidebar-bottom,
  body .sidebar:focus-within .nav-label,
  body .sidebar:focus-within .nav-text,
  body .sidebar:focus-within .menu-label,
  body .sidebar:focus-within .brand-wordmark,
  body .sidebar:focus-within .sidebar-bottom {
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  body .sidebar nav button,
  body .sidebar nav a,
  body .sidebar .new-button {
    font-size:0!important;
    min-width:0!important;
    gap:0!important;
    overflow:hidden!important;
  }

  body .sidebar:hover nav button,
  body .sidebar:hover nav a,
  body .sidebar:hover .new-button,
  body .sidebar:focus-within nav button,
  body .sidebar:focus-within nav a,
  body .sidebar:focus-within .new-button {
    font-size:14px!important;
    gap:10px!important;
    text-indent:0!important;
    white-space:normal!important;
  }

  body .sidebar .brand {
    min-width:0!important;
    width:100%!important;
    overflow:hidden!important;
  }

  body .sidebar .brand img.ds-auto-logo {
    width:62px!important;
    max-width:100%!important;
    height:62px!important;
    object-fit:contain!important;
    transition:width .28s ease,height .28s ease!important;
  }

  body .sidebar:hover .brand img.ds-auto-logo,
  body .sidebar:focus-within .brand img.ds-auto-logo {
    width:185px!important;
    height:115px!important;
  }

  body .sidebar .ds-sidebar-toggle,
  body .sidebar .ds-nav3-toggle {
    display:none!important;
  }
}

/* On touchscreens: keep labels accessible */
@media (hover:none) {
  body .sidebar .nav-label,
  body .sidebar .nav-text,
  body .sidebar .menu-label {
    opacity:1!important;
    visibility:visible!important;
  }
}

@media(prefers-reduced-motion:reduce) {
  body .sidebar {
    transition:none!important;
  }
}
