/*
 * 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.
 */

/* Custom sidebar classes */
.sidebar-open {
  transform: translateX(0) !important;
}

/* Collapsed sidebar styles - only on desktop */
@media (min-width: 1024px) {
  [data-sidebar-target="sidebar"].collapsed {
    width: 4rem !important; /* 64px */
  }

  [data-sidebar-target="sidebar"].collapsed .p-3 {
    padding: 0.5rem !important;
  }

  [data-sidebar-target="sidebar"].collapsed .px-3 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  [data-sidebar-target="sidebar"].collapsed .px-4 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  [data-sidebar-target="sidebar"].collapsed .gap-2 {
    gap: 0 !important;
  }

  [data-sidebar-target="sidebar"].collapsed .gap-3 {
    gap: 0 !important;
  }
}

/* Line clamp utilities for story cards */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
