:root {
  --cbm-navy: #142f4b;
  --cbm-ink: #1c2b39;
  --cbm-blue: #236a9a;
  --cbm-blue-dark: #174f75;
  --cbm-muted: #627181;
  --cbm-line: #dce4eb;
  --cbm-soft: #f5f8fb;
  --cbm-paper: #ffffff;
  --cbm-warm: #f8f5ee;
  --cbm-shadow: 0 20px 55px rgba(18, 47, 75, .09);
}

body.cbm-premium-insight {
  background: var(--cbm-soft);
  color: var(--cbm-ink);
}

.cbm-premium-insight .site-main,
.cbm-premium-insight #content,
.cbm-premium-insight .site-content {
  max-width: none;
}

.cbm-insight-main {
  background: linear-gradient(180deg, #f7f9fb 0, #f7f9fb 58%, #ffffff 100%);
  overflow: clip;
}

.cbm-reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 99999;
  pointer-events: none;
}

.admin-bar .cbm-reading-progress { top: 32px; }

.cbm-reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cbm-blue);
  transition: width .08s linear;
}

.cbm-article-hero {
  position: relative;
  border-bottom: 1px solid var(--cbm-line);
  background:
    radial-gradient(circle at 86% 12%, rgba(35, 106, 154, .10), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f7fafc 58%, #eef5f9 100%);
}

.cbm-article-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(35, 106, 154, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(35, 106, 154, .035), 0 0 0 72px rgba(35, 106, 154, .02);
}

.cbm-article-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 58px;
}

.cbm-article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  color: var(--cbm-muted);
  font-size: 13px;
  line-height: 1.4;
}

.cbm-article-breadcrumbs a {
  color: var(--cbm-blue-dark);
  text-decoration: none;
}

.cbm-article-breadcrumbs a:hover { text-decoration: underline; }

.cbm-article-kicker,
.cbm-editorial-label,
.cbm-cta-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cbm-blue-dark);
}

.cbm-article-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--cbm-navy);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}

.cbm-article-deck {
  max-width: 850px;
  margin: 24px 0 0;
  color: #455768;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.cbm-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
  color: var(--cbm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cbm-article-meta__author {
  color: var(--cbm-ink);
  font-weight: 700;
}

.cbm-featured-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 40px auto 0;
}

.cbm-featured-image {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #e9eff4;
  box-shadow: var(--cbm-shadow);
}

.cbm-featured-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.cbm-featured-image figcaption {
  padding: 12px 18px;
  background: #fff;
  color: var(--cbm-muted);
  font-size: 13px;
}

.cbm-article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 840px);
  gap: 42px;
  align-items: start;
  justify-content: center;
  width: min(1180px, calc(100% - 48px));
  margin: 44px auto 80px;
}

.cbm-article-card {
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  background: var(--cbm-paper);
  border: 1px solid var(--cbm-line);
  border-radius: 20px;
  box-shadow: var(--cbm-shadow);
}

.cbm-article-toc {
  position: sticky;
  top: 120px;
}

.admin-bar .cbm-article-toc { top: 152px; }

.cbm-toc-card {
  padding: 22px 20px;
  border: 1px solid var(--cbm-line);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(8px);
}

.cbm-toc-title {
  margin: 0 0 14px;
  color: var(--cbm-navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}

.cbm-toc-card ol,
.cbm-mobile-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cbm-toc-card li + li,
.cbm-mobile-toc li + li { margin-top: 9px; }

.cbm-toc-card a,
.cbm-mobile-toc a {
  display: block;
  color: #536576;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.cbm-toc-card a:hover,
.cbm-toc-card a.is-active,
.cbm-mobile-toc a:hover {
  color: var(--cbm-blue-dark);
}

.cbm-toc-card a.is-active {
  transform: translateX(3px);
  font-weight: 700;
}

.cbm-toc-level-3 a { padding-left: 12px; font-size: 12.5px; }

.cbm-mobile-toc {
  display: none;
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--cbm-line);
  border-radius: 12px;
  background: var(--cbm-soft);
}

.cbm-mobile-toc summary {
  cursor: pointer;
  color: var(--cbm-navy);
  font-weight: 800;
}

.cbm-mobile-toc ol { margin-top: 14px; }

.cbm-article-content {
  color: var(--cbm-ink);
  font-size: 18px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.cbm-article-content > *:first-child { margin-top: 0; }
.cbm-article-content > *:last-child { margin-bottom: 0; }

.cbm-article-content p {
  margin: 0 0 22px;
  color: #2c3d4c;
}

.cbm-article-content .cbm-article-lead {
  margin-bottom: 28px;
  color: #243846;
  font-size: 20px;
  line-height: 1.72;
}

.cbm-article-content h2,
.cbm-article-content h3,
.cbm-article-content h4 {
  color: var(--cbm-navy);
  font-weight: 700;
  letter-spacing: -.022em;
  text-wrap: balance;
  scroll-margin-top: 150px;
}

.cbm-article-content h2 {
  margin: 54px 0 19px;
  padding-top: 6px;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.2;
}

.cbm-article-content h3 {
  margin: 38px 0 16px;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.28;
}

.cbm-article-content h4 {
  margin: 30px 0 13px;
  font-size: 20px;
  line-height: 1.35;
}

.cbm-article-content a {
  color: var(--cbm-blue-dark);
  font-weight: 600;
  text-decoration-color: rgba(23, 79, 117, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cbm-article-content a:hover {
  color: var(--cbm-blue);
  text-decoration-color: currentColor;
}

.cbm-article-content ul,
.cbm-article-content ol {
  margin: 20px 0 28px;
  padding-left: 1.35em;
}

.cbm-article-content li {
  margin: 8px 0;
  padding-left: .28em;
  color: #2c3d4c;
}

.cbm-article-content li::marker {
  color: var(--cbm-blue);
  font-weight: 700;
}

.cbm-article-content blockquote {
  position: relative;
  margin: 34px 0;
  padding: 24px 28px 24px 30px;
  border: 1px solid #d8e4ec;
  border-left: 4px solid var(--cbm-blue);
  border-radius: 0 14px 14px 0;
  background: #f6f9fb;
  color: #274155;
  font-size: 18px;
  line-height: 1.7;
  font-style: normal;
}

.cbm-article-content blockquote p:last-child { margin-bottom: 0; }

.cbm-article-content blockquote.cbm-summary-card {
  border-left-width: 1px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2f7fa, #fbfcfd);
}

.cbm-article-content blockquote.cbm-summary-card h3 {
  margin-top: 0;
  color: var(--cbm-blue-dark);
}

.cbm-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.cbm-article-content figure {
  margin: 34px 0;
}

.cbm-article-content figcaption {
  margin-top: 9px;
  color: var(--cbm-muted);
  font-size: 13px;
  line-height: 1.5;
}

.cbm-article-content table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  border: 1px solid var(--cbm-line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
}

.cbm-article-content th,
.cbm-article-content td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--cbm-line);
  text-align: left;
  vertical-align: top;
}

.cbm-article-content th {
  color: var(--cbm-navy);
  background: #f1f6f9;
}

.cbm-article-content hr {
  margin: 46px 0;
  border: 0;
  border-top: 1px solid var(--cbm-line);
}

.cbm-article-sources {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--cbm-line);
}

.cbm-article-sources h2 {
  margin: 0 0 14px;
  color: var(--cbm-navy);
  font-size: 24px;
  line-height: 1.25;
}

.cbm-article-sources ul {
  margin: 0;
  padding-left: 20px;
}

.cbm-article-sources li { margin: 7px 0; color: var(--cbm-muted); }
.cbm-article-sources a { color: var(--cbm-blue-dark); }

.cbm-editorial-box {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  align-items: end;
  margin-top: 42px;
  padding: 25px 27px;
  border: 1px solid var(--cbm-line);
  border-radius: 16px;
  background: var(--cbm-soft);
}

.cbm-editorial-box h2,
.cbm-article-cta h2 {
  margin: 0;
  color: var(--cbm-navy);
  font-size: 25px;
  line-height: 1.22;
}

.cbm-editorial-box p,
.cbm-article-cta p {
  margin: 10px 0 0;
  color: var(--cbm-muted);
  font-size: 14px;
  line-height: 1.65;
}

.cbm-editorial-box > a {
  flex: 0 0 auto;
  color: var(--cbm-blue-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.cbm-article-cta {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, #15334f, #205d84);
  box-shadow: 0 14px 32px rgba(20, 47, 75, .16);
}

.cbm-article-cta .cbm-cta-eyebrow,
.cbm-article-cta h2,
.cbm-article-cta p { color: #fff; }
.cbm-article-cta p { opacity: .83; }

.cbm-cta-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--cbm-navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cbm-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  color: var(--cbm-navy);
}

/* Optional premium card grid for [cbm_premium_blog_grid]. */
.cbm-premium-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cbm-blog-card {
  overflow: hidden;
  border: 1px solid var(--cbm-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 47, 75, .07);
  transition: transform .22s ease, box-shadow .22s ease;
}

.cbm-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(18, 47, 75, .11);
}

.cbm-blog-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #edf2f5; }
.cbm-blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cbm-blog-card:hover .cbm-blog-card__image img { transform: scale(1.025); }
.cbm-blog-card__body { padding: 23px; }
.cbm-blog-card__meta { display: flex; gap: 7px; align-items: center; margin-bottom: 10px; color: var(--cbm-muted); font-size: 12px; }
.cbm-blog-card h3 { margin: 0; color: var(--cbm-navy); font-size: 22px; line-height: 1.25; }
.cbm-blog-card h3 a { color: inherit; text-decoration: none; }
.cbm-blog-card p { margin: 13px 0 18px; color: var(--cbm-muted); font-size: 15px; line-height: 1.65; }
.cbm-card-link { color: var(--cbm-blue-dark); font-size: 14px; font-weight: 800; text-decoration: none; }

@media (max-width: 1040px) {
  .cbm-article-layout { grid-template-columns: minmax(0, 840px); }
  .cbm-article-toc { display: none; }
  .cbm-mobile-toc { display: block; }
  .cbm-premium-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .cbm-reading-progress { top: 46px; }
}

@media (max-width: 700px) {
  .cbm-article-hero__inner,
  .cbm-featured-wrap,
  .cbm-article-layout {
    width: min(100% - 28px, 1180px);
  }

  .cbm-article-hero__inner { padding: 36px 0 40px; }
  .cbm-article-breadcrumbs { margin-bottom: 20px; }
  .cbm-article-hero h1 { font-size: clamp(34px, 11vw, 46px); }
  .cbm-article-deck { font-size: 18px; }
  .cbm-featured-wrap { margin-top: 24px; }
  .cbm-article-layout { margin-top: 28px; margin-bottom: 52px; }
  .cbm-article-card { padding: 26px 20px; border-radius: 16px; }
  .cbm-article-content { font-size: 17px; line-height: 1.72; }
  .cbm-article-content .cbm-article-lead { font-size: 18px; }
  .cbm-editorial-box,
  .cbm-article-cta { display: block; }
  .cbm-editorial-box > a,
  .cbm-cta-button { margin-top: 18px; }
  .cbm-premium-blog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cbm-reading-progress span,
  .cbm-toc-card a,
  .cbm-blog-card,
  .cbm-blog-card__image img,
  .cbm-cta-button { transition: none !important; }
}
