.cm-blog-intro {
  margin-bottom: 24px;
}

.cm-blog-intro > p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #5f6d82;
  font-size: 17px;
  line-height: 1.55;
}

.cm-blog-categories {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

@media (max-width: 991px) {
  .cm-blog-categories {
    display: flex;
  }

  .blog > .container-fluid > .row > #column-left {
    display: none;
  }
}

.cm-blog-categories a {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  background: #fff;
  padding: 0 13px;
  color: #344259;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.cm-blog-categories a.is-active {
  border-color: #172033;
  background: #172033;
  color: #fff;
}

.cm-blog-categories span {
  margin-left: 7px;
  opacity: .65;
}

.cm-blog-title-cover,
.cm-blog-article-cover,
.cm-blog-related-cover {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
  background: #172033;
  padding: 28px;
  color: #fff;
  letter-spacing: 0;
}

.cm-blog-title-link {
  overflow: hidden;
}

.cm-blog-title-link .cm-blog-title-cover {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.cm-blog-title-cover span,
.cm-blog-article-cover span,
.cm-blog-related-cover span {
  margin-bottom: 12px;
  color: #ffb37c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cm-blog-title-cover strong,
.cm-blog-article-cover strong,
.cm-blog-related-cover strong {
  max-width: 850px;
  font-size: 28px;
  line-height: 1.17;
}

.cm-blog-title-cover small,
.cm-blog-article-cover small {
  margin-top: 18px;
  color: #bdc9d8;
  font-size: 13px;
  font-weight: 700;
}

.blog__list > li:nth-child(4n + 2) .cm-blog-title-cover {
  background: #eaf3ff;
  color: #172033;
}

.blog__list > li:nth-child(4n + 2) .cm-blog-title-cover span {
  color: #1373e6;
}

.blog__list > li:nth-child(4n + 3) .cm-blog-title-cover {
  background: #eaf7f0;
  color: #17392a;
}

.blog__list > li:nth-child(4n + 3) .cm-blog-title-cover span {
  color: #17844b;
}

.blog__list > li:nth-child(4n) .cm-blog-title-cover {
  background: #fff1e7;
  color: #4f2a12;
}

.blog__list > li:nth-child(4n) .cm-blog-title-cover span {
  color: #c95600;
}

.cm-blog-article-cover {
  min-height: 440px;
  border-radius: 8px;
  padding: clamp(28px, 6vw, 72px);
}

.cm-blog-article-cover strong {
  font-size: clamp(30px, 4vw, 54px);
}

.cm-blog-related-cover {
  min-height: 230px;
  padding: 22px;
}

.cm-blog-related-cover strong {
  font-size: 20px;
}

.cm-blog-excerpt {
  margin: 10px 0 0;
  color: #647187;
  font-size: 14px;
  line-height: 1.5;
}

.cm-article-content {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  color: #172033;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0;
}

.cm-article-content .cm-article-lead {
  color: #4e5d73;
  font-size: 20px;
  line-height: 1.55;
}

.cm-article-content h2 {
  margin: 45px 0 15px;
  color: #172033;
  font-size: 30px;
  line-height: 1.2;
  scroll-margin-top: 24px;
}

.cm-article-content h3 {
  margin: 28px 0 10px;
  color: #172033;
  font-size: 21px;
  line-height: 1.3;
}

.cm-article-content p {
  margin: 0 0 18px;
}

.cm-article-content ul,
.cm-article-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.cm-article-content li {
  margin: 8px 0;
}

.cm-article-summary {
  margin: 0 0 32px;
  border-left: 5px solid #1373e6;
  background: #f3f7fc;
  padding: 22px 24px;
}

.cm-article-summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.cm-article-summary p:last-child {
  margin-bottom: 0;
  color: #425269;
}

.cm-article-toc {
  margin: 0 0 30px;
  border: 1px solid #dce2ea;
  border-radius: 6px;
  background: #fff;
}

.cm-article-toc summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #172033;
  font-weight: 800;
}

.cm-article-toc nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  padding: 0 16px 14px;
}

.cm-article-toc a {
  padding: 6px 0;
  color: #526178;
  text-decoration: none;
}

.cm-article-table-wrap {
  width: 100%;
  overflow: auto;
  margin: 22px 0 30px;
}

.cm-article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.cm-article-content th,
.cm-article-content td {
  padding: 14px;
  border-bottom: 1px solid #dfe4eb;
  text-align: left;
  vertical-align: top;
}

.cm-article-content th {
  background: #f5f7fa;
}

.cm-article-checklist {
  list-style: none;
  padding: 0 !important;
}

.cm-article-checklist li {
  position: relative;
  margin: 0;
  padding: 12px 12px 12px 42px;
  border-bottom: 1px solid #e3e7ed;
}

.cm-article-checklist li::before {
  position: absolute;
  top: 11px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e9f7ef;
  color: #17844b;
  content: "✓";
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.cm-article-cta {
  margin: 40px 0;
  border-radius: 8px;
  background: #172033;
  padding: 28px;
  color: #fff;
}

.cm-article-cta h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 25px;
}

.cm-article-cta p {
  color: #fff;
}

/* CARMOND-CODEX-CHANGE 2026-07-20: keep CTA copy and controls readable on the orange/dark callout. */
.cm-article-cta a:hover,
.cm-article-cta a:focus-visible {
  color: #fff;
}

.cm-article-cta a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .85);
  outline-offset: 3px;
}

.cm-article-cta a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #ef6500;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.cm-article-faq {
  border-top: 1px solid #dfe4eb;
}

.cm-article-faq details {
  border-bottom: 1px solid #dfe4eb;
}

.cm-article-faq summary {
  position: relative;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  color: #172033;
  font-weight: 800;
  list-style: none;
}

.cm-article-faq summary::after {
  position: absolute;
  right: 4px;
  color: #1373e6;
  content: "+";
  font-size: 22px;
}

.cm-article-faq details[open] summary::after {
  content: "−";
}

.cm-article-faq details > :not(summary) {
  margin-right: 32px;
  color: #526178;
}

.cm-article-media-note {
  margin: 24px 0;
  border: 1px dashed #b8c2d0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 18px;
  color: #647187;
  font-size: 14px;
}

@media (max-width: 600px) {
  .cm-blog-intro > p {
    font-size: 15px;
  }

  .cm-blog-title-cover {
    min-height: 210px;
    padding: 22px;
  }

  .cm-blog-title-cover strong {
    font-size: 23px;
  }

  .cm-blog-article-cover {
    min-height: 300px;
    padding: 24px 20px;
  }

  .cm-blog-article-cover strong {
    font-size: 29px;
  }

  .cm-article-content {
    font-size: 16px;
    line-height: 1.65;
  }

  .cm-article-content .cm-article-lead {
    font-size: 17px;
  }

  .cm-article-content h2 {
    margin-top: 36px;
    font-size: 25px;
  }

  .cm-article-summary {
    padding: 18px;
  }

  .cm-article-toc nav {
    grid-template-columns: 1fr;
  }

  .cm-article-table-wrap {
    overflow: visible;
  }

  .cm-article-content table,
  .cm-article-content tbody,
  .cm-article-content tr,
  .cm-article-content td {
    display: block;
    width: 100%;
  }

  .cm-article-content thead {
    display: none;
  }

  .cm-article-content tr {
    border-bottom: 1px solid #dfe4eb;
    padding: 12px 0;
  }

  .cm-article-content td {
    border: 0;
    padding: 4px 0;
  }

  .cm-article-content td:first-child {
    color: #1373e6;
    font-weight: 900;
  }

  .cm-article-cta {
    padding: 22px 18px;
  }

  .cm-article-cta a {
    width: 100%;
  }
}
