/*
 * Styles for the blocks the Outreach blog editor writes into a post body.
 * Linked from both blog templates. Only the editor's own blocks are styled, so
 * headings, lists and links (and the pre-editor posts) keep their current look.
 */

/* Quote */
article blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--primary, #4e44d8);
  background: #f5f4fe;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #374151;
}

article blockquote p:last-child {
  margin-bottom: 0;
}

/* Image */
.blog-figure {
  margin: 1.5rem 0;
}

.blog-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--grey, #6b7280);
  text-align: center;
}

/* Highlight box */
.blog-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid;
  border-radius: 0 8px 8px 0;
}

.blog-callout p:last-child {
  margin-bottom: 0;
}

.blog-callout--tip {
  background: #ecfdf3;
  border-color: #16a34a;
}

.blog-callout--info {
  background: #eff6ff;
  border-color: #2563eb;
}

.blog-callout--important {
  background: #fffbeb;
  border-color: #d97706;
}

/* Button: same look as the site's "btn btn-primary btn-lg rounded-pill fw-medium" */
.blog-cta {
  margin: 1.75rem 0;
}

.blog-cta__btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  background-color: var(--primary, #4e44d8);
  border-radius: 50rem;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out;
}

.blog-cta__btn:hover,
.blog-cta__btn:focus-visible {
  color: #fff;
  background-color: #3f36b8;
}

/* FAQ */
.blog-faq {
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.blog-faq details + details {
  border-top: 1px solid #e5e7eb;
}

.blog-faq summary {
  position: relative;
  padding: 1rem 2.75rem 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.blog-faq summary::-webkit-details-marker {
  display: none;
}

.blog-faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary, #4e44d8);
}

.blog-faq details[open] summary::after {
  content: "\2212";
}

.blog-faq details > :not(summary) {
  margin: 0;
  padding: 0 1.25rem 1rem;
}

/* Video: 16:9 responsive */
.blog-video {
  position: relative;
  margin: 1.5rem 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.blog-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Table: scrolls sideways on small screens */
.blog-table {
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-table table {
  width: 100%;
  border-collapse: collapse;
}

.blog-table th,
.blog-table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid #e5e7eb;
  min-width: 6.5rem;
  text-align: left;
  vertical-align: top;
}

.blog-table thead th {
  background: #f5f4fe;
  font-weight: 600;
}
