/* Rich text written in the page editor (page bodies, text sections, posts).
   Also loaded inside the editor itself through admin-theme/editor-content.css. */

/* Images placed with the editor's alignment buttons */
.middle-content img, .single-blog-content img, .section-text img, .full-width-content img { max-width: 100%; height: auto; }
img.align-left, figure.align-left { float: left; margin: .25rem 1.5rem 1rem 0; }
img.align-right, figure.align-right { float: right; margin: .25rem 0 1rem 1.5rem; }
img.align-center, figure.align-center { display: block; margin: 1rem auto; }
figure.image { display: table; margin: 1rem 0; }
figure.image.align-center { margin-left: auto; margin-right: auto; }
figure.image img { display: block; }
figure.image figcaption { display: table-caption; caption-side: bottom; font-size: .875rem; opacity: .8; padding-top: .4rem; }

/* Tables */
.middle-content table, .single-blog-content table, .section-text table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; }
.middle-content th, .middle-content td, .single-blog-content th, .single-blog-content td,
.section-text th, .section-text td { border: 1px solid rgba(255,255,255,.25); padding: .5rem .75rem; vertical-align: top; }

/* Quotes */
.middle-content blockquote, .single-blog-content blockquote, .section-text blockquote {
  border-left: 3px solid #ffcd00; margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; font-style: italic; }

/* Expandable items (<details>), e.g. FAQs */
.middle-content details, .single-blog-content details, .section-text details {
  border: 1px solid rgba(255,205,0,.3); border-radius: 8px; padding: .75rem 1rem; margin-bottom: .75rem; }
.middle-content summary, .single-blog-content summary, .section-text summary { cursor: pointer; font-weight: 600; color: #ffcd00; }
details[open] > summary { margin-bottom: .5rem; }

/* Nested lists in posts (the old site's custom CSS styled these through a WordPress class) */
.single-blog-content ul, .middle-content ul { list-style: disc outside; padding-left: 1.5rem; }
.single-blog-content ol, .middle-content ol { list-style: decimal outside; padding-left: 1.5rem; }
.single-blog-content ul ul, .middle-content ul ul { list-style-type: circle; }

/* Video embeds inserted with the editor's media button */
.middle-content iframe, .single-blog-content iframe, .section-text iframe { max-width: 100%; }

/* Text sections that follow the body */
.section-text { margin-top: 1.5rem; }
.section-text:first-child { margin-top: 0; }

/* Hero banner text comes from the editor as paragraphs */
.hero-text p { font-size: inherit; line-height: inherit; font-family: inherit; }
.hero-text p:last-child { margin-bottom: 0; }

/* Call-to-action box body */
.education-inner > p { text-align: center; }

.clearfix-content::after { content: ""; display: table; clear: both; }
