/* Ported verbatim from the <style> block of svelte-app/src/routes/+page.svelte.
   Tailwind itself lives in tailwind.css, which is the compiled output the
   SvelteKit build produced. */

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.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;
}

/* Mobile-first layout control */
.mobile-layout {
  display: block;
}

.desktop-layout {
  display: none;
}

@media (min-width: 640px) {
  .mobile-layout {
    display: none;
  }

  .desktop-layout {
    display: flex;
  }
}

.deal-content {
  color: #374151;
}

.deal-content a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: #2563eb;
}

.deal-content a:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
}

.deal-content p {
  margin-bottom: 1rem;
}

.deal-content ul,
.deal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.deal-content li {
  margin-bottom: 0.5rem;
}

.deal-content strong {
  font-weight: 600;
}

.deal-content em {
  font-style: italic;
}

/* Deal images inside descriptions should never blow out the card */
.deal-content img {
  max-width: 100%;
  height: auto;
}

/* Applied while a search or page fetch is in flight */
.is-loading {
  opacity: 0.45;
  pointer-events: none;
}
