/* AI Blog Automation — frontend styles for plugin-generated posts.
   Loaded only on single posts created by this plugin, so it never
   restyles the rest of the site. Keeps the layout readable even on
   minimal themes: clear heading hierarchy, spacing, FAQ and CTA boxes. */

.aiba-article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1f2937;
}

.aiba-article > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #111827;
}

.aiba-article h2 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 2.25rem 0 0.9rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  color: #111827;
}

.aiba-article h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.aiba-article h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 1.75rem 0 0.6rem;
  color: #111827;
}

.aiba-article p {
  margin: 0 0 1.1rem;
}

.aiba-article ul,
.aiba-article ol {
  margin: 0 0 1.25rem 1.25rem;
  padding-left: 0.5rem;
}

.aiba-article li {
  margin-bottom: 0.45rem;
}

.aiba-article li::marker {
  color: #0f766e;
}

.aiba-article a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aiba-article a:hover {
  color: #115e59;
}

.aiba-article strong {
  color: #111827;
}

.aiba-article blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.25rem;
  border-left: 4px solid #0f766e;
  background: #f0fdfa;
  font-style: italic;
}

.aiba-article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
}

/* Key-takeaway box the AI is asked to include. */
.aiba-callout {
  margin: 1.75rem 0;
  padding: 1.1rem 1.3rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
}

.aiba-callout p {
  margin: 0;
}

/* FAQ section — the H3 questions after the "Frequently Asked Questions" H2. */
.aiba-article h2 + h3,
.aiba-faq-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

.aiba-faq-item h3 {
  margin-top: 0;
}

.aiba-faq-item p:last-child {
  margin-bottom: 0;
}

/* Call to action box at the end of the article. */
.aiba-cta {
  margin: 2.25rem 0 0.5rem;
  padding: 1.4rem 1.5rem;
  background: #111827;
  color: #f9fafb;
  border-radius: 10px;
}

.aiba-cta p {
  margin: 0 0 0.75rem;
  color: #f9fafb;
}

.aiba-cta p:last-child {
  margin-bottom: 0;
}

.aiba-cta a {
  color: #5eead4;
}

@media (max-width: 640px) {
  .aiba-article {
    font-size: 1rem;
    line-height: 1.7;
  }
  .aiba-article h2 {
    font-size: 1.4rem;
  }
}
