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

/* Mobile Navigation Styles */
.mobile-nav-link {
  @apply block w-full px-4 py-3 text-left text-base font-medium text-zinc-700 dark:text-zinc-300 rounded-lg transition-all duration-200 ease-out;
  @apply hover:bg-zinc-100 dark:hover:bg-zinc-800 hover:text-zinc-900 dark:hover:text-zinc-100;
  @apply focus:outline-none focus:ring-2 focus:ring-zinc-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900;
}

.mobile-nav-link-active {
  @apply bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900;
  @apply hover:bg-zinc-800 dark:hover:bg-zinc-200;
}

:root {
  --layout-max-width: 42rem;
}

.layout-container {
  box-sizing: border-box;
  max-width: var(--layout-max-width);
  width: 100%;
  margin-inline: auto;
}

@supports (width: 100dvw) {
  body {
    padding-inline: calc((100vw - 100dvw) / 2);
  }
}
