/* NextSure v62 — two targeted regression fixes only.
   1) Restore the desktop dashboard sidebar after replacing Tailwind CDN with local utilities.
   2) Keep product navigation buttons visible inside every Home product card.
*/

/* The local .hidden utility is !important. Use a more specific desktop rule so
   the sidebar's "hidden md:flex" class combination behaves like Tailwind. */
@media (min-width: 768px) {
  aside.desktop-side.hidden {
    display: flex !important;
    flex-direction: column !important;
    width: 18rem !important;
    flex: 0 0 18rem !important;
    min-width: 18rem !important;
  }
}

/* Product cards previously inherited a legacy fixed height (370px), which
   clipped the CTA after the new feature list was added. Let content determine
   height and keep the page link clearly visible at the bottom. */
#products .cards {
  align-items: stretch !important;
}

#products .card {
  height: auto !important;
  min-height: 500px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#products .card .btn-link {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 5 !important;
  width: 100% !important;
  min-height: 48px !important;
  margin-top: auto !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 700px) {
  #products .card {
    min-height: 0 !important;
  }
}
