/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 .nav-label {
  display: none;
  max-width: 0;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition:
    max-width 300ms ease-in-out,
    clip-path 300ms ease-in-out,
    display 300ms allow-discrete;
  transition-behavior: allow-discrete;
}

.group:hover .nav-label {
  display: block;
  max-width: 140px;
  clip-path: inset(0 0 0 0);
}

@starting-style {
  .group:hover .nav-label {
    display: block;
    max-width: 0;
    clip-path: inset(0 100% 0 0);
  }
}