
.jb-blocks { margin: 0; }
.jb-blocks > * { margin-bottom: 18px; }

.jb-blocks .ji-section {
  background: #fff;
  border-radius: 6px;
  padding: 32px 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.jb-blocks .ji-section h2 { font-size: 1.18rem; font-weight: 700; color: #051c2c; margin: 0 0 16px; line-height: 1.3; }
.jb-blocks .ji-section h3,
.jb-blocks .ji-section h4 { font-size: 1.02rem; font-weight: 700; color: #051c2c; margin: 24px 0 10px; }
.jb-blocks .ji-section :is(p, li) { color: #2c2e36; font-size: 1rem; line-height: 1.7; }
.jb-blocks .ji-section ul,
.jb-blocks .ji-section ol { padding-left: 22px; margin-bottom: 14px; }
.jb-blocks .ji-section > :last-child { margin-bottom: 0; }

.jb-image { margin: 0 0 18px; }
.jb-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0;
}
.jb-image figcaption,
.jb-collage-item figcaption {
  font-size: .82rem;
  color: #6b6f76;
  margin-top: 8px;
  line-height: 1.45;
}

.jb-collage { display: grid; gap: 10px; }
.jb-collage--cols3 { grid-template-columns: repeat(3, 1fr); }
.jb-collage--cols2 { grid-template-columns: repeat(2, 1fr); }
.jb-collage--cols1 { grid-template-columns: 1fr; }
.jb-collage-item { margin: 0; min-width: 0; }
.jb-collage-item a { display: block; border-radius: 6px; overflow: hidden; }
.jb-collage-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  transition: transform .25s ease;
}
.jb-collage-item a:hover img { transform: scale(1.03); }

.jb-collage--feature { grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; }
.jb-collage--feature .jb-collage-item:first-child { grid-row: span 2; }
.jb-collage--feature .jb-collage-item:first-child a { height: 100%; }
.jb-collage--feature .jb-collage-item:first-child img { height: 100%; aspect-ratio: auto; }
.jb-collage--feature .jb-collage-item:only-child { grid-column: 1 / -1; grid-row: auto; }

.jb-blocks .jb-quote blockquote {
  border: none;
  margin: 0;
  padding: 0 0 0 44px;
  position: relative;
  font-style: normal;
  color: #051c2c;
}
.jb-blocks .jb-quote blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0; top: -14px;
  font-size: 4rem;
  line-height: 1;
  color: #c9d2dc;
  font-family: Georgia, serif;
}
.jb-blocks .jb-quote blockquote p {
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
  font-weight: 600;
  color: #051c2c !important;
  margin: 0;
}
.jb-blocks .jb-quote-by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0 44px;
  font-size: .9rem;
  color: #6b6f76;
}
.jb-blocks .jb-quote-by img.jb-quote-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}

.jb-stats {
  display: grid;
  gap: 1px;
  background: #e6e9ee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.jb-stats--1 { grid-template-columns: 1fr; }
.jb-stats--2 { grid-template-columns: repeat(2, 1fr); }
.jb-stats--3 { grid-template-columns: repeat(3, 1fr); }
.jb-stats--4 { grid-template-columns: repeat(4, 1fr); }
.jb-stat { background: #fff; padding: 24px 16px; text-align: center; }
.jb-stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #051c2c;
  line-height: 1.1;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.jb-stat-label { font-size: .85rem; color: #6b6f76; margin-top: 6px; line-height: 1.4; }

.jb-cta {
  background: #051c2c;
  color: #fff;
  border-radius: 6px;
  padding: 28px 30px;
  text-align: center;
}
.jb-cta h3 { font-size: 1.18rem; font-weight: 700; margin: 0 0 6px; color: #fff; }
.jb-cta p { color: rgba(255,255,255,.78); margin: 0 0 18px; font-size: .94rem; }
.jb-cta .ji-actbar-btn {
  background: #fff;
  color: #051c2c;
  padding: 11px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .94rem;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.jb-cta .ji-actbar-btn:hover { background: #e2e6ee; color: #051c2c; }

.jb-lb {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(5,28,44,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
}
.jb-lb[hidden] { display: none; }
.jb-lb img { max-width: 100%; max-height: 82vh; border-radius: 4px; margin: 0; }
.jb-lb-cap { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: 12px; text-align: center; }
.jb-lb-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none;
  color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
}

.jb-blocks .ji-section.jb-bg-none { background: transparent; box-shadow: none; padding: 6px 0; }
.jb-blocks .ji-section.jb-bg-dark { background: #051c2c; }
.jb-blocks .ji-section.jb-bg-dark :is(h2, h3, h4, p, li, strong, a, .jb-sub),
.jb-blocks .ji-section.jb-bg-dark .jb-h { color: #fff; }
.jb-blocks .ji-section.jb-bg-dark :is(p, li, .jb-sub) { color: rgba(255,255,255,.85); }
.jb-blocks .ji-section.jb-bg-dark .jb-ls li::before { color: #8fb8ff; }

.jb-blocks .jb-align-left   { text-align: left; }
.jb-blocks .jb-align-center { text-align: center; }
.jb-blocks .jb-align-right  { text-align: right; }

.jb-blocks :is(.jb-align-center, .jb-align-right) :is(ul, ol) { list-style-position: inside; padding-left: 0; }
.jb-blocks :is(.jb-align-center, .jb-align-right) .jb-ls :is(li) { padding-left: 0; }
.jb-blocks :is(.jb-align-center, .jb-align-right) .jb-ls li::before { position: static; margin-right: 8px; }

.jb-blocks .jb-font-nunito { font-family: 'Nunito', sans-serif; }
.jb-blocks .jb-font-serif  { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.jb-blocks .jb-font-modern { font-family: 'Montserrat', 'Nunito', sans-serif; letter-spacing: -.01em; }
.jb-blocks .jb-quote blockquote.jb-font-serif p  { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-style: italic; }
.jb-blocks .jb-quote blockquote.jb-font-modern p { font-family: 'Montserrat', 'Nunito', sans-serif; }

.jb-blocks .ji-section .jb-h { color: #051c2c; font-weight: 700; line-height: 1.25; margin: 0 0 16px; }
.jb-blocks .ji-section .jb-h.jb-hsize-s  { font-size: 1.02rem; }
.jb-blocks .ji-section .jb-h.jb-hsize-m  { font-size: 1.18rem; }
.jb-blocks .ji-section .jb-h.jb-hsize-l  { font-size: 1.6rem;  font-weight: 800; letter-spacing: -.015em; }
.jb-blocks .ji-section .jb-h.jb-hsize-xl { font-size: 2.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.jb-blocks .ji-section .jb-h.jb-font-serif { font-weight: 700; }

.jb-blocks .jb-headblock .jb-h { margin: 0; }
.jb-blocks .jb-headblock .jb-sub { margin: 10px 0 0; font-size: 1.05rem; color: #4a4e57; line-height: 1.6; }
.jb-blocks .jb-headblock.jb-bg-none { padding: 18px 0 2px; }

.jb-blocks .ji-section.jb-size-s  :is(p, li) { font-size: .9rem; }
.jb-blocks .ji-section.jb-size-m  :is(p, li) { font-size: 1rem; }
.jb-blocks .ji-section.jb-size-l  :is(p, li) { font-size: 1.12rem; }
.jb-blocks .ji-section.jb-size-xl :is(p, li) { font-size: 1.28rem; line-height: 1.6; }
.jb-blocks .ji-section :is(h2, h3, h4):not(.jb-h) { color: #051c2c; font-weight: 700; }
.jb-blocks .ji-section h2:not(.jb-h) { font-size: 1.25em; margin: 22px 0 10px; }
.jb-blocks .ji-section h3:not(.jb-h) { font-size: 1.1em;  margin: 20px 0 8px; }
.jb-blocks .ji-section.jb-bg-dark :is(h2, h3, h4):not(.jb-h) { color: #fff; }

.jb-blocks .jb-ls { margin: 0 0 4px; }
.jb-blocks .jb-ls li { margin-bottom: 8px; }
.jb-blocks ul.jb-ls-bullet, .jb-blocks .jb-ls-bullet ul { list-style: disc; padding-left: 22px; }
.jb-blocks ol.jb-ls-number { list-style: decimal; padding-left: 24px; }
.jb-blocks :is(ul.jb-ls-check, ul.jb-ls-dash, ul.jb-ls-none),
.jb-blocks :is(.jb-ls-check, .jb-ls-dash, .jb-ls-none) ul { list-style: none; padding-left: 0; }
.jb-blocks :is(ul.jb-ls-check, ul.jb-ls-dash) > li,
.jb-blocks :is(.jb-ls-check, .jb-ls-dash) ul > li { position: relative; padding-left: 28px; }
.jb-blocks ul.jb-ls-check > li::before,
.jb-blocks .jb-ls-check ul > li::before {
  content: '\2713';
  position: absolute; left: 2px; top: 0;
  font-weight: 800; color: #2e5de7;
}
.jb-blocks ul.jb-ls-dash > li::before,
.jb-blocks .jb-ls-dash ul > li::before {
  content: '\2013';
  position: absolute; left: 4px; top: 0;
  font-weight: 700; color: #8a8f97;
}
.jb-blocks .jb-ls.jb-cols-2 { columns: 2; column-gap: 32px; }
.jb-blocks .jb-ls.jb-cols-2 li { break-inside: avoid; }

.jb-image.jb-w-full   { width: 100%; }
.jb-image.jb-w-large  { width: 75%; }
.jb-image.jb-w-medium { width: 50%; }
.jb-image.jb-w-small  { width: 33%; min-width: 180px; }
.jb-image.jb-align-left   { margin-left: 0;    margin-right: auto; text-align: left; }
.jb-image.jb-align-center { margin-left: auto; margin-right: auto; text-align: center; }
.jb-image.jb-align-right  { margin-left: auto; margin-right: 0;    text-align: right; }

.jb-image.jb-r-original img { max-height: none; object-fit: contain; aspect-ratio: auto; }
.jb-image.jb-r-16-9 img { aspect-ratio: 16 / 9; max-height: none; }
.jb-image.jb-r-4-3  img { aspect-ratio: 4 / 3;  max-height: none; }
.jb-image.jb-r-1-1  img { aspect-ratio: 1 / 1;  max-height: none; }
.jb-image.jb-r-3-4  img { aspect-ratio: 3 / 4;  max-height: none; }
.jb-image.jb-focus-top    img { object-position: center top; }
.jb-image.jb-focus-center img { object-position: center center; }
.jb-image.jb-focus-bottom img { object-position: center bottom; }

.jb-collage.jb-r-1-1  .jb-collage-item img { aspect-ratio: 1 / 1; }
.jb-collage.jb-r-16-9 .jb-collage-item img { aspect-ratio: 16 / 9; }
.jb-collage.jb-r-3-4  .jb-collage-item img { aspect-ratio: 3 / 4; }
.jb-collage--feature .jb-collage-item:first-child img { aspect-ratio: auto !important; }

.jb-blocks .jb-quote.jb-align-center blockquote { padding-left: 0; padding-top: 34px; }
.jb-blocks .jb-quote.jb-align-center blockquote::before { left: 50%; transform: translateX(-50%); top: -6px; }
.jb-blocks .jb-quote.jb-align-center .jb-quote-by { justify-content: center; margin-left: 0; }
.jb-blocks .jb-quote.jb-align-right blockquote { padding-left: 0; padding-right: 44px; }
.jb-blocks .jb-quote.jb-align-right blockquote::before { left: auto; right: 0; }
.jb-blocks .jb-quote.jb-align-right .jb-quote-by { justify-content: flex-end; margin-left: 0; }

.jb-blocks > .jb-gap-small { margin-top: -12px; }
.jb-blocks > .jb-gap-none  { margin-top: -18px; }

.jb-blocks > .jb-gap-none,
.jb-blocks > :has(+ .jb-gap-none),
.ji-section:has(+ .jb-blocks > .jb-gap-none:first-child) { box-shadow: none; }

.jb-blocks > .jb-gap-none { border-top-left-radius: 0; border-top-right-radius: 0; }
.jb-blocks > :has(+ .jb-gap-none),
.ji-section:has(+ .jb-blocks > .jb-gap-none:first-child) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.jb-blocks > .jb-image:has(+ .jb-gap-none) img,
.jb-blocks > .jb-collage:has(+ .jb-gap-none) .jb-collage-item a { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.jb-blocks > .ji-section + .ji-section.jb-gap-none:not(.jb-bg-none),
.jb-blocks > .ji-section.jb-gap-none:first-child:not(.jb-bg-none) { padding-top: 0; }
.jb-blocks > .ji-section.jb-bg-none + .ji-section.jb-gap-none:not(.jb-bg-none) { padding-top: 28px; }

.jb-blocks > .jb-collage.jb-gap-none .jb-collage-item a,
.jb-blocks > .jb-image.jb-gap-none img { border-top-left-radius: 0; border-top-right-radius: 0; }

@media (max-width: 720px) {
  .jb-blocks .ji-section { padding: 22px 22px; }
  .jb-collage--cols3,
  .jb-collage--cols2 { grid-template-columns: repeat(2, 1fr); }
  .jb-collage--cols3 .jb-collage-item:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .jb-collage--feature { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .jb-collage--feature .jb-collage-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .jb-collage--feature .jb-collage-item:first-child img { aspect-ratio: 16 / 9 !important; height: auto; }
  .jb-stats--3, .jb-stats--4 { grid-template-columns: repeat(2, 1fr); }
  .jb-stats--3 .jb-stat:last-child { grid-column: 1 / -1; }
  .jb-stat-value { font-size: 1.5rem; }
  .jb-quote blockquote { padding-left: 34px; }
  .jb-quote-by { margin-left: 34px; }
  .jb-cta { padding: 22px 22px; }
  .jb-blocks .ji-section.jb-bg-none { padding: 6px 0; }
  .jb-blocks .ji-section .jb-h.jb-hsize-l  { font-size: 1.35rem; }
  .jb-blocks .ji-section .jb-h.jb-hsize-xl { font-size: 1.7rem; }
  .jb-blocks .ji-section.jb-size-xl :is(p, li) { font-size: 1.15rem; }
  .jb-blocks .jb-ls.jb-cols-2 { columns: 1; }
  .jb-image.jb-w-large, .jb-image.jb-w-medium { width: 100%; }
  .jb-image.jb-w-small { width: 60%; }
}
