/* Small supplemental styles on top of Tailwind Play CDN.
   Most styling is utility classes lifted from the real app; this file only
   covers a few things the CDN doesn't give us out of the box. */

html,
body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hand-styled markdown blocks (the real app styles ReactMarkdown output the
   same way via component overrides — Diagnostic answers, Competitor analysis,
   report bodies). */
.md {
  font-size: 14px;
  line-height: 1.65;
  color: #1a1a2e;
}
.md h1 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}
.md h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.75rem 0 0.4rem;
}
.md h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
}
.md h1:first-child,
.md h2:first-child,
.md h3:first-child {
  margin-top: 0;
}
.md p {
  margin: 0 0 0.5rem;
}
.md p:last-child {
  margin-bottom: 0;
}
.md ul,
.md ol {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
}
.md ul {
  list-style: disc;
}
.md ol {
  list-style: decimal;
}
.md li {
  margin: 0.15rem 0;
  line-height: 1.45;
}
.md strong {
  font-weight: 600;
  color: #1a1a2e;
}
.md code {
  background: #f5f7fb;
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.md hr {
  border: 0;
  border-top: 1px solid #f1f3f7;
  margin: 0.75rem 0;
}

/* Lucide icons render as <svg> from <i data-lucide>. Keep them inline-aligned. */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}

/* Toast for the "not part of this demo" affordances on inert controls. */
#toast-host {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: #1a1a2e;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 9px;
  box-shadow: 0 8px 30px rgba(26, 26, 46, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth the dynamic-height collapse rows on the campaigns drill-down. */
.drill-row > td {
  padding: 0 !important;
}
