/* Extra styles for blog posts written in the Falcon Blog CMS.
   Paragraphs, headings and lists reuse the theme classes added by scripts/build-blog.mjs;
   this file covers the remaining elements the editor can produce. */

.blog-content a {
  color: var(--bs-primary, #980000);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-content li > span {
  min-width: 0;
}

.blog-content ol > li {
  padding-left: 0.25rem;
}

.blog-content blockquote {
  border-left: 3px solid var(--bs-primary, #980000);
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-style: italic;
}

.blog-content blockquote p:last-child {
  margin-bottom: 0 !important;
}

.blog-content hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid rgb(0 0 0 / 0.12);
}

.blog-content mark {
  background: #fff3b0;
  padding: 0 0.15em;
}

.blog-content pre {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  background: #111418;
  color: #e9ecef;
  font-size: 0.9rem;
}

.blog-content :not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 0.3rem;
  background: rgb(0 0 0 / 0.06);
  font-size: 0.9em;
}

.blog-content .table th {
  background: rgb(0 0 0 / 0.04);
  font-weight: 600;
}

.blog-content .table td,
.blog-content .table th {
  padding: 0.75rem 1rem;
}

.blog-content .blog-detail-img img {
  border-radius: 1rem;
}

/* YouTube embeds from the editor */
.blog-content div[data-youtube-video] {
  margin: 2rem 0;
}

.blog-content iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 1rem;
}
