/*
 * Site fixes layered on top of the Webflow CSS (loaded after the shared
 * stylesheet, before the per-page stylesheet so page class rules still win).
 */

/* Headings re-tagged for a correct outline keep their original look
   (values mirror the h1-h5 rules in the per-page Webflow CSS). */
.as-h1 { margin-top: 20px; margin-bottom: 10px; font-size: 38px; line-height: 44px; font-weight: 600; }
.as-h2 { margin-top: 39px; margin-bottom: 20px; font-size: 28px; line-height: 32px; font-weight: 600; }
.as-h4 { margin-top: 40px; margin-bottom: 20px; font-size: 18px; line-height: 24px; font-weight: 600; }
.as-h5 { margin-top: 10px; margin-bottom: 10px; font-size: 14px; line-height: 20px; font-weight: 600; }

/* Article byline */
.post-meta {
  margin: 0 0 24px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #5c5c66;
}
.post-meta a { color: inherit; font-weight: 600; text-decoration: underline; }

/* "Quick answer" summary box */
.quick-answer {
  margin: 0 0 32px;
  padding: 20px 24px;
  border-left: 4px solid #57b9a8;
  border-radius: 6px;
  background: #f3faf8;
}
.quick-answer-label {
  margin: 0 0 6px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1f6f61;
}
.quick-answer p:last-child { margin-bottom: 0; }

/* FAQ */
.post-faq { margin-top: 40px; }
.post-faq h3 { margin-top: 24px; font-size: 20px; line-height: 28px; }

/* Tables in articles */
.w-richtext table { width: 100%; margin: 0 0 24px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.w-richtext th, .w-richtext td { padding: 10px 12px; border: 1px solid #e2e2e2; text-align: left; vertical-align: top; }
.w-richtext th { background: #f5f5f7; font-family: Montserrat, sans-serif; font-weight: 600; }
@media screen and (max-width: 767px) {
  .w-richtext table { display: block; overflow-x: auto; }
}

/* Category intro copy */
.category-intro { max-width: 760px; margin: 0 auto 40px; font-size: 17px; line-height: 28px; color: #333; }
.category-intro a { color: #1f6f61; text-decoration: underline; }

/* Search results page */
.search-empty { margin: 20px 0 40px; text-align: center; font-size: 17px; }

/* Every image figure in an article body is full width, captioned or not.
   Covers both Markdown images (rehype plugin output) and the raw <figure>
   HTML the CMS editor writes for captioned images. Webflow's default caps
   .w-richtext figure at 60%. */
.w-richtext figure {
  display: block;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
}
.w-richtext figure > a,
.w-richtext figure > div {
  display: block;
}
.w-richtext figure img {
  display: block;
  width: 100%;
  height: auto;
}
.w-richtext figure > figcaption {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
  color: #6b7280;
  text-align: center;
}

/* Disqus comments at the end of every article */
.post-comments {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}
.post-comments > h2 { margin-top: 0; }
#disqus_thread { min-height: 200px; }
