/* GGJAF mobile layout fixes — 2026-11-27
   Loaded after the app stylesheet. Scoped to small viewports so desktop is
   untouched. Selectors match the built Tailwind class strings exactly. */

@media (max-width: 640px) {
  /* Cookie banner: keep it as a slim bottom bar so it doesn't cover the
     sign-in providers and the first article card on phones. */
  .fixed.bottom-4.left-4.z-\[100\].max-w-sm.animate-slide-up {
    left: .5rem !important;
    right: .5rem !important;
    bottom: .5rem !important;
    max-width: none !important;
  }
  .fixed.bottom-4.left-4.z-\[100\].max-w-sm.animate-slide-up > .glass-card {
    padding: .625rem .75rem !important;
    border-radius: .75rem !important;
  }
  .fixed.bottom-4.left-4.z-\[100\].max-w-sm.animate-slide-up .gap-2.mt-3 {
    margin-top: .5rem !important;
  }

  /* Article breadcrumb: the journal name used to wrap into four lines and
     push the article title off-screen. Keep it on one line and ellipsize. */
  .bg-muted\/50.border-b.border-border > .container.flex.items-center {
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    padding-top: .625rem !important;
    padding-bottom: .625rem !important;
  }
  .bg-muted\/50.border-b.border-border > .container.flex.items-center a {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .bg-muted\/50.border-b.border-border > .container.flex.items-center a[href^="/journals/"] {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    max-width: 110px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .bg-muted\/50.border-b.border-border > .container.flex.items-center span.text-foreground.truncate {
    max-width: 120px !important;
  }

  /* Submission wizard: all five steps fit without horizontal scrolling. */
  .mb-8.overflow-x-auto.pb-2 > div > button {
    padding-left: .35rem !important;
    padding-right: .35rem !important;
    gap: .25rem !important;
  }
  .mb-8.overflow-x-auto.pb-2 span.w-6.h-6 {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
  .mb-8.overflow-x-auto.pb-2 svg.lucide-chevron-right {
    margin-left: .1rem !important;
    margin-right: .1rem !important;
  }
  .mb-8.overflow-x-auto.pb-2 {
    overflow: visible !important;
  }

  /* Hero copy sits on a photo on phones — give it a little depth without
     touching article headings on light backgrounds. */
  section.min-h-\[88vh\] h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
  }
}
