/* BeTheme post-content containers and explicit Custom HTML articles only.
 * Keep existing builder/block markup; never style headers, related cards or pages.
 */
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) {
  --bc-text: #374151;
  --bc-heading: #172033;
  --bc-link: #1769aa;
  --bc-border: #e3e7ed;
  --bc-surface: #f7f9fb;
  --bc-space: 24px;
  color: var(--bc-text);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
  min-width: 0;
}
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper), :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) * { box-sizing: border-box; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(h1,h2,h3,h4,h5,h6,p,ul,ol,blockquote,pre,figure,table,hr,dl) { margin: 0; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) > * + * { margin-top: var(--bc-space); }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(h1,h2,h3,h4,h5,h6) {
  color: var(--bc-heading);
  font-family: "Michroma", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-transform: none;
  overflow-wrap: anywhere;
}
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.35; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) h2 { font-size: clamp(23px, 2.5vw, 30px); }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) h3 { font-size: clamp(21px, 2.1vw, 25px); }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) h4 { font-size: clamp(19px, 1.84vw, 22px); }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) h5 { font-size: clamp(17px, 1.5vw, 18px); }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) h6 { font-size: 16px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) > :is(h2,h3,h4,h5,h6) { margin-top: 40px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) > :is(h1,h2,h3,h4,h5,h6) + * { margin-top: 12px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) > :first-child { margin-top: 0; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) p { color: inherit; font-size: inherit; line-height: inherit; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) a { color: var(--bc-link); text-decoration: underline; text-underline-offset: 3px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) a:hover { text-decoration-thickness: 2px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(ul,ol) { padding-left: 1.5em; list-style-position: outside; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) ul { list-style-type: disc; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) ol { list-style-type: decimal; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) li { display: list-item; margin: 0; padding: 0; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) li + li { margin-top: 8px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) li > :is(ul,ol) { margin-top: 8px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) li p + p { margin-top: 8px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) blockquote { padding: 16px 24px; border-left: 4px solid var(--bc-link); background: var(--bc-surface); font-style: italic; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) blockquote > * + * { margin-top: 12px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) img, :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) video, :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) iframe { max-width: 100%; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) img { height: auto; vertical-align: middle; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) figure { max-width: 100%; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) figcaption { margin-top: 8px; color: #64748b; font-size: 14px; line-height: 1.5; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(pre,code) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) pre { padding: 16px; overflow-x: auto; border-radius: 6px; background: var(--bc-surface); font-size: 14px; line-height: 1.6; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :not(pre) > code { padding: 2px 5px; border-radius: 3px; background: var(--bc-surface); font-size: .92em; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) table { display: table; max-width: 100%; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) th, :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) td { padding: 12px; border: 1px solid var(--bc-border); text-align: left; vertical-align: top; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) th { background: var(--bc-surface); font-weight: 700; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) hr { border: 0; border-top: 1px solid var(--bc-border); }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(strong,b) { font-weight: 700; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :focus-visible { outline: 2px solid var(--bc-link); outline-offset: 3px; }
@media (max-width: 767px) {
  :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) { --bc-space: 20px; font-size: 16px; line-height: 1.7; }
  :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) > :is(h2,h3,h4,h5,h6) { margin-top: 32px; }
  :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) blockquote { padding: 14px 16px; }
  :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) th, :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) td { padding: 8px; }
}

/* Optional sections present in the client's pasted HTML. */
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .table-of-contents {
  padding: 24px;
  border: 1px solid var(--bc-border);
  border-radius: 6px;
  background: var(--bc-surface);
}
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .table-of-contents > :is(h2,h3) { font-size: 24px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(.table-of-contents,.summary-box,.references) > * + * { margin-top: 16px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(.table-of-contents,.summary-box,.references) > :is(h2,h3,h4,h5,h6) + * { margin-top: 12px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(.table-of-contents,.summary-box,.references) > :first-child { margin-top: 0; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .summary-box {
  padding: 20px 24px;
  border-left: 4px solid var(--bc-link);
  background: var(--bc-surface);
}
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .references { color: #64748b; font-size: 14px; line-height: 1.65; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .references > :is(h2,h3) { font-size: 20px; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(h2,h3,h4,h5,h6)[id] { scroll-margin-top: 120px; }
@media (max-width: 767px) {
  :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(.table-of-contents,.summary-box) { padding: 16px; }
  :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .table-of-contents > :is(h2,h3) { font-size: 22px; }
  :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(h2,h3,h4,h5,h6)[id] { scroll-margin-top: 96px; }
}

/* Michroma has a single native weight; avoid synthetic bold in headings. */
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(h1,h2,h3,h4,h5,h6) :is(strong,b) { font-weight: inherit; }
:where(body.single-post) .mfn-single-post-tmpl-builder .mcb-item-heading-inner h1.title { font-family: "Michroma", sans-serif; font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  :where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) table { display: block; }
}

/* Keep the blog return button beside the title, including multi-line titles.
 * BeTheme marks both columns inline with flex: 0 0 auto !important; the title
 * must be allowed to shrink to the space left by the button.
 */
body.single-post .mfn-single-post-tmpl-builder .mcb-wrap-inner:has(> .column_button a:is([href$="/blog"], [href$="/blog/"])):has(> .column_heading h1.title) {
  flex-wrap: nowrap;
  align-items: flex-start;
  column-gap: 32px;
}
body.single-post .mfn-single-post-tmpl-builder .mcb-wrap-inner:has(> .column_button a:is([href$="/blog"], [href$="/blog/"])):has(> .column_heading h1.title) > .column_heading {
  flex: 1 1 0% !important;
  min-width: 0;
}
body.single-post .mfn-single-post-tmpl-builder .mcb-wrap-inner:has(> .column_button a:is([href$="/blog"], [href$="/blog/"])):has(> .column_heading h1.title) > .column_heading > .mcb-item-heading-inner {
  margin-left: 0;
}

/* Halve the existing title-to-article spacing (80px desktop, 64px mobile). */
body.single-post .mfn-single-post-tmpl-builder > section:has(.mcb-item-heading-inner h1.title):has(+ section .column_post_content) { padding-bottom: 40px; }
@media (max-width: 767px) {
  body.single-post .mfn-single-post-tmpl-builder > section:has(.mcb-item-heading-inner h1.title):has(+ section .column_post_content) { padding-bottom: 16px; }
  body.single-post .mfn-single-post-tmpl-builder > section:has(.mcb-item-heading-inner h1.title):has(+ section .column_post_content) + section { padding-top: 16px; }
}

/* Gutenberg one-cell tables are editorial callout boxes in older posts. */
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) figure.wp-block-table:has(> table > tbody > tr:only-child > td:only-child):not(:has(th)) { margin-block: 16px; }

/* Standalone article images use the same spacing as editorial callouts. */
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(figure.wp-block-image, figure:has(> img), figure:has(> a > img)),
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) > img { margin-block: 16px; }

/* Native scroll belongs to a block viewport, not the table's formatting box. */
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .ais-blog-table { display: block; min-width: 0; width: 100%; max-width: 100%; margin: 0; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .ais-blog-table__viewport {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior-x: contain;
}
/* BeTheme compatibility disables pointer events throughout builder content.
   Restore hit-testing only for the actual table viewport and its contents. */
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .ais-blog-table__viewport,
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .ais-blog-table__viewport * { pointer-events: auto !important; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .ais-blog-table__viewport table {
  display: table;
  table-layout: auto;
  width: 100%;
  min-width: 100%;
  max-width: none;
  overflow: visible;
}
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .ais-blog-table__viewport :is(th,td) { min-width: 9rem; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .ais-blog-table--callout .ais-blog-table__viewport td { min-width: 0; overflow-wrap: anywhere; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .ais-blog-table__hint { margin: 0 0 8px; color: #64748b; font-size: 12px; line-height: 1.5; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) .ais-blog-table__hint[hidden] { display: none; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) :is(.ais-table-wrap,figure.wp-block-table):has(.ais-blog-table) { min-width: 0; max-width: 100%; overflow: visible; }
:where(body.single-post) :is(article.blog-content, .column_post_content .mcb-item-post_content-inner, .post-wrapper-content .the_content_wrapper) figure.wp-block-table:has(> .ais-blog-table--callout) { margin-block: 16px; }
