/** Full Cyberlytics articles share the reference layout in the green palette. */

/* The loader is outside #wrapper. Keep articles readable without JavaScript,
 * while preserving the enabled loader and its existing completion fade. */
html:not(.cyb-preloading) body.path-node.page-node-type-blog #cyb-preloader:not(.cyb-preloader--done) {
  display: none !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content {
  --node-reading-width: 100%;
  --node-prose-size: 16.32px;
}

/* Own the outer gutter once; nested Bootstrap and block wrappers add none. */
html body.path-node.page-node-type-blog #wrapper #main-content #page-wrapper > .container {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1220px !important;
  margin-inline: auto !important;
  padding-inline: 15px !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content #page-wrapper :is(.content-layout, .main-content, .region-content, .block-system-main-block > .container-wrap, .block-system-main-block > .container-wrap > .block-content) {
  box-sizing: border-box;
  min-width: 0;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content #page-wrapper .block-system-main-block:has(.blog-post-full) {
  box-sizing: border-box;
  margin: 0 0 2rem !important;
  padding: 0 16px 16px !important;
  border: 2px solid #0a4f2f !important;
  border-radius: 10px !important;
  background: #eaf7ee !important;
  box-shadow: none !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content #page-wrapper .block-system-main-block:has(.blog-post-full) > .container-wrap,
html body.path-node.page-node-type-blog #wrapper #main-content #page-wrapper .block-system-main-block:has(.blog-post-full) > .container-wrap > .block-content {
  width: 100% !important;
  max-width: 100% !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-header {
  margin: 0 0 30px !important;
}

/* Retain the previous browse-link spacing, with the title 3rem higher. */
html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full > .post-header {
  padding-top: calc(90px - 3rem) !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-header h1.post-title {
  margin: 0 0 16px !important;
  padding: 14px 16px !important;
  border: 1px solid #073d24 !important;
  border-radius: 8px !important;
  background: linear-gradient(125deg, #0a4f2f 0%, #0e6c3e 72%, #138450 100%) !important;
  box-shadow: 0 4px 12px rgb(7 55 32 / 12%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-align: center !important;
  text-shadow: none !important;
  overflow-wrap: break-word;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-header .post-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #c5e6d4 !important;
  border-radius: 12px !important;
  background: #f4fbf6 !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-header .post-meta-item {
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid #138450 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0a2f1c !important;
  -webkit-text-fill-color: #0a2f1c !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-media {
  margin: 0 0 24px !important;
  padding: 0 !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-media :is(.post-image, img) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 19px !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body {
  container-type: normal;
  container-name: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The labelled outer region owns keyboard scrolling for code and tables. */
html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .cyb-scroll-region pre {
  max-width: none;
  overflow: visible !important;
  white-space: pre;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body :is(.field-body, .editorial-illustration-copy, .editorial-illustration-remainder) {
  width: 100%;
  max-width: 100% !important;
  min-width: 0;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .field-body :is(p, ul, ol, dl, li, dt, dd):not(:is(.faq-accordion *, .faq-list *, .faq-section *, .faq-answer *, .editorial-illustrations *, .service-lottie *)) {
  max-width: 100% !important;
  line-height: 1.7 !important;
}

/* A list item owns its nested paragraphs; interactive and quoted subtrees
 * retain their own surfaces rather than acquiring another card frame. */
html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .field-body :is(p, li):not(:is(.faq-accordion *, .faq-list *, .faq-section *, .faq-answer *, .editorial-illustrations *, .service-lottie *, .cyb-scroll-region *, table *, blockquote *, pre *, code *, li p)) {
  box-sizing: border-box;
  margin: 0 0 14px !important;
  padding: 12px 16px !important;
  border: 1px solid #c5e6d4 !important;
  border-left: 5px solid #4fa36f !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .field-body :is(li p, table p, blockquote p, .editorial-illustrations p, .editorial-illustrations li, .service-lottie p, .service-lottie li):not(:is(.faq-accordion *, .faq-list *, .faq-section *, .faq-answer *)) {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .field-body li > p:last-child:not(:is(.faq-accordion *, .faq-list *, .faq-section *, .faq-answer *)) {
  margin-bottom: 0 !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .field-body :is(h2, h3, h4):not(:is(.faq-accordion *, .faq-list *, .faq-section *, .faq-answer *, .editorial-illustrations *, .service-lottie *, table *)) {
  max-width: 100%;
  margin: 24px 0 14px !important;
  padding: 12px 16px !important;
  border: 1px solid #073d24 !important;
  border-radius: 8px !important;
  background: linear-gradient(125deg, #0a4f2f 0%, #0e6c3e 72%, #138450 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .field-body :is(h3, h4):not(:is(.faq-accordion *, .faq-list *, .faq-section *, .faq-answer *, .editorial-illustrations *, .service-lottie *, table *)) {
  font-size: 19px !important;
}

/* Preserve lead -> artwork -> remainder below the desktop breakpoint. */
html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .editorial-illustration-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  gap: 14px;
  margin-block: 0 24px;
}

html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .editorial-illustration-row > :is(.editorial-illustration-copy, .editorial-illustration-remainder, .editorial-illustrations--blog) {
  grid-column: auto;
  grid-row: auto;
}

html body.path-node.page-node-type-blog #wrapper #main-content #page-wrapper #block-martis-related-articles-blog .related-grid--articles {
  max-width: 100% !important;
}

@media (min-width: 992px) {
  html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .editorial-illustration-row {
    display: grid;
    grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
    column-gap: 24px;
    row-gap: 14px;
    align-items: start;
  }

  html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .editorial-illustration-row > .editorial-illustration-copy {
    grid-column: 1;
    grid-row: 1;
  }

  html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .editorial-illustration-row > .editorial-illustration-remainder {
    grid-column: 1;
    grid-row: 2;
  }

  html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .editorial-illustration-row > .editorial-illustrations--blog {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 420px;
    margin: 0;
  }
}

@media (max-width: 767.98px) {
  html body.path-node.page-node-type-blog #wrapper #main-content {
    --node-prose-size: 16px;
  }

  html body.path-node.page-node-type-blog #wrapper #main-content #page-wrapper > .container {
    padding-inline: 14px !important;
  }

  html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-header h1.post-title {
    font-size: 20px !important;
  }

  html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-media :is(.post-image, img) {
    border-radius: 16px !important;
  }

  html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .field-body :is(p, ul, ol, dl, li, dt, dd):not(:is(.faq-accordion *, .faq-list *, .faq-section *, .faq-answer *, .editorial-illustrations *, .service-lottie *)) {
    line-height: 1.65 !important;
  }

  html body.path-node.page-node-type-blog #wrapper #main-content .blog-post-full .post-body .field-body :is(h2, h3, h4):not(:is(.faq-accordion *, .faq-list *, .faq-section *, .faq-answer *, .editorial-illustrations *, .service-lottie *, table *)) {
    font-size: 19px !important;
  }
}
