/* JAL Medical blog article. Scoped to .jb; loaded on Blog posts only.
   .jm-* classes are the blocks written by the n8n workflow. */
.jb {
	--jb-navy: #283b91;
	--jb-navy-d: #1b296b;
	--jb-red: #d6151d;
	--jb-red-d: #b30f16;
	--jb-wa: #128c4a;
	--jb-ink: #1a1a1a;
	--jb-body: #2b2f3a;
	--jb-muted: #5b6070;
	--jb-line: #e1e5ef;
	--jb-soft: #f3f5fb;
	--jb-radius: 12px;
	font-family: 'OpenSans', Arial, sans-serif;
	color: var(--jb-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
.jb *, .jb *::before, .jb *::after { box-sizing: border-box; }
.jb strong, .jb b { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; }
.jb a { color: var(--jb-navy); }
.jb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* progress */
.jb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; background: transparent; }
.jb-progress span { display: block; height: 100%; width: 0; background: var(--jb-red); transition: width .1s linear; }

/* buttons */
.jb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border-radius: 8px; border: 2px solid transparent;
	font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 16px; line-height: 1.2; text-decoration: none !important;
	cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.jb-btn:focus-visible, .jb a:focus-visible, .jb summary:focus-visible { outline: 3px solid #f5a300; outline-offset: 2px; }
.jb-btn--primary { background: var(--jb-red); color: #fff !important; }
.jb-btn--primary:hover { background: var(--jb-red-d); transform: translateY(-1px); }
.jb-btn--ghost { background: #fff; color: var(--jb-navy) !important; border-color: var(--jb-navy); }
.jb-btn--ghost:hover { background: var(--jb-navy); color: #fff !important; }
.jb-btn--wa { background: var(--jb-wa); color: #fff !important; }
.jb-btn--wa:hover { background: #0d6e3a; }
.jb-btn--block { display: flex; width: 100%; }

/* hero */
.jb-hero { background: linear-gradient(180deg, var(--jb-soft), #fff); border-bottom: 1px solid var(--jb-line); padding: 28px 0 36px; }
.jb-hero .jb-wrap > * { max-width: 820px; }
.jb-hero .jb-wrap > .jb-chip { max-width: none; }
.jb-crumbs { font-size: 14px; color: var(--jb-muted); margin-bottom: 16px; }
.jb-crumbs a { color: var(--jb-muted); text-decoration: none; }
.jb-crumbs a:hover { text-decoration: underline; }
.jb-crumbs span { margin: 0 8px; }
.jb-chip { display: inline-block; background: #e5e9f8; color: var(--jb-navy); font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.jb-title { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.2; color: var(--jb-ink); margin: 0 0 14px; padding: 0; text-transform: none; letter-spacing: 0; }
.jb-lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--jb-body); margin: 0 0 16px; max-width: 760px; }
.jb-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--jb-muted); margin: 0 0 22px; padding: 0; }
.jb-meta span + span::before { content: "\00b7"; margin-right: 18px; }
.jb-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.jb-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--jb-body); }
.jb-trust li { margin: 0; padding-left: 22px; position: relative; }
.jb-trust li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--jb-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l3 3 5-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/10px no-repeat; }

/* layout */
.jb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 48px; }
.jb-aside { display: none; }
@media (min-width: 992px) {
	.jb-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
	.jb-aside { display: block; }
	.jb-aside__sticky { position: sticky; top: 24px; display: grid; gap: 20px; }
	.jb-toc--mobile { display: none !important; }
	.jb-bar { display: none !important; }
}
.jb-main { min-width: 0; }
.jb-feature { margin: 0 0 28px; }
.jb-feature img { display: block; width: 100%; height: auto; border-radius: var(--jb-radius); }

/* aside */
.jb-quote { background: var(--jb-navy); color: #fff; border-radius: var(--jb-radius); padding: 22px; }
.jb-quote__title { font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 20px; line-height: 1.3; margin: 0 0 6px; color: #fff; }
.jb-quote__text { font-size: 15px; margin: 0 0 16px; color: #dfe4f7; }
.jb-quote .jb-btn { margin-bottom: 10px; }
.jb-quote__mail { display: block; text-align: center; color: #fff !important; font-size: 14px; word-break: break-all; }
.jb-toc__title { font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--jb-muted); margin: 0 0 8px; }
.jb-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.jb-toc li { margin: 0; counter-increment: t; }
.jb-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--jb-line); font-size: 14px; line-height: 1.4; color: var(--jb-body); text-decoration: none; }
.jb-toc a:hover { color: var(--jb-navy); }
.jb-toc a.is-active { border-left-color: var(--jb-red); color: var(--jb-navy); font-family: 'OpenSans-Bold', Arial, sans-serif; }
.jb-toc--mobile { border: 1px solid var(--jb-line); border-radius: 10px; margin: 0 0 24px; background: #fff; }
.jb-toc--mobile summary { cursor: pointer; padding: 14px 16px; font-family: 'OpenSans-Bold', Arial, sans-serif; color: var(--jb-navy); }
.jb-toc--mobile ol { padding: 0 16px 12px; }

/* article body */
.jb-article { font-size: 18px; line-height: 1.75; }
.jb-article > * { max-width: 100%; }
.jb-article p { margin: 0 0 1.2em; }
.jb-article h2 { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; color: var(--jb-ink); margin: 2em 0 .6em; padding: 0; scroll-margin-top: 24px; text-transform: none; }
.jb-article h2 span { all: unset; }
.jb-article h3 { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; font-size: 22px; line-height: 1.35; color: var(--jb-ink); margin: 1.6em 0 .5em; scroll-margin-top: 24px; }
.jb-article h4 { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; font-size: 18px; margin: 1.4em 0 .4em; }
.jb-article a { text-decoration: underline; text-underline-offset: 2px; }
.jb-article ul, .jb-article ol { margin: 0 0 1.3em 1.2em; padding: 0 0 0 .6em; }
.jb-article ul { list-style: disc; }
.jb-article ol { list-style: decimal; }
.jb-article li { margin: 0 0 .5em; }
.jb-article figure { margin: 1.8em 0; }
.jb-article img { max-width: 100%; height: auto; border-radius: 10px; }
.jb-article blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--jb-navy); color: var(--jb-muted); font-style: italic; }
.jb-article blockquote p { margin: 0; }
.jb-article .wp-block-embed__wrapper { position: relative; }
.jb-article .wp-embed-aspect-16-9 .wp-block-embed__wrapper { padding-top: 56.25%; }
.jb-article .wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }

/* table */
.jb-article figure.jm-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--jb-line); border-radius: 10px; }
.jm-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; min-width: 520px; }
.jm-table th { background: var(--jb-navy); color: #fff; text-align: left; padding: 12px 14px; font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; border: 0; }
.jm-table td { padding: 11px 14px; border: 0; border-top: 1px solid var(--jb-line); vertical-align: top; }
.jm-table tbody tr:nth-child(even) td { background: var(--jb-soft); }

/* key takeaways */
.jb-article .jm-takeaways { background: var(--jb-soft); border: 1px solid var(--jb-line); border-left: 5px solid var(--jb-navy); border-radius: 10px; padding: 20px 22px 8px; margin: 0 0 2em; }
.jb-article .jm-takeaways__title { font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--jb-navy); margin: 0 0 10px; }
.jb-article .jm-takeaways ul { list-style: none; margin: 0 0 8px; padding: 0; }
.jb-article .jm-takeaways li { position: relative; padding-left: 28px; margin: 0 0 10px; font-size: 17px; line-height: 1.55; }
.jb-article .jm-takeaways li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--jb-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l3 3 5-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }

/* in-article CTA */
.jb-article .jm-cta { background: linear-gradient(135deg, var(--jb-navy), var(--jb-navy-d)); color: #fff; border-radius: var(--jb-radius); padding: 28px 26px; margin: 2.2em 0; }
.jb-article .jm-cta__title { font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; color: #fff; margin: 0 0 8px; }
.jb-article .jm-cta__title strong { font-family: inherit; }
.jb-article .jm-cta__text { color: #dfe4f7; font-size: 17px; margin: 0 0 18px; }
.jb-article .jm-cta .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.jb-article .jm-cta .wp-block-button { margin: 0; }

/* button blocks (CTA, product card) */
.jb-article .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 8px;
	background: var(--jb-red); color: #fff; border: 2px solid var(--jb-red); font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 16px; line-height: 1.2; text-decoration: none; transition: background .15s, color .15s;
}
.jb-article .wp-block-button__link:hover { background: var(--jb-red-d); border-color: var(--jb-red-d); color: #fff; }
.jb-article .is-style-outline .wp-block-button__link { background: transparent; color: var(--jb-navy); border-color: var(--jb-navy); }
.jb-article .is-style-outline .wp-block-button__link:hover { background: var(--jb-navy); color: #fff; }
.jb-article .jm-cta .is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.jb-article .jm-cta .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--jb-navy); }

/* related product card */
.jb-article .jm-product { border: 1px solid var(--jb-line); border-top: 4px solid var(--jb-red); border-radius: 10px; padding: 22px 24px; margin: 2.2em 0; background: #fff; box-shadow: 0 6px 20px rgba(40, 59, 145, .08); }
.jb-article .jm-product__label { font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--jb-red); margin: 0 0 4px; }
.jb-article .jm-product__name { font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 22px; line-height: 1.3; margin: 0 0 8px; }
.jb-article .jm-product__name a { text-decoration: none; color: var(--jb-ink); }
.jb-article .jm-product__name a:hover { color: var(--jb-navy); text-decoration: underline; }
.jb-article .jm-product__text { font-size: 16px; color: var(--jb-muted); margin: 0 0 16px; }
.jb-article .jm-product .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.jb-article .jm-product .wp-block-button { margin: 0; }

/* FAQ accordion */
.jb-article details.jm-faq { border: 1px solid var(--jb-line); border-radius: 10px; margin: 0 0 10px; background: #fff; }
.jb-article details.jm-faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative; font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 17px; line-height: 1.45; color: var(--jb-ink); }
.jb-article details.jm-faq summary::-webkit-details-marker { display: none; }
.jb-article details.jm-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--jb-navy); font-family: Arial, sans-serif; }
.jb-article details.jm-faq[open] { border-color: var(--jb-navy); }
.jb-article details.jm-faq[open] summary::after { content: "\2212"; }
.jb-article details.jm-faq > p { margin: 0; padding: 0 18px 16px; font-size: 16.5px; }

/* draft reminder: only editors see it */
.jb-article .jm-image-todo { display: none; }
.logged-in .jb-article .jm-image-todo { display: block; padding: 14px 16px; border: 2px dashed #f5a300; background: #fff8e6; border-radius: 8px; font-size: 15px; }

/* about + final CTA */
.jb-about { margin: 3em 0 0; padding: 22px 24px; background: var(--jb-soft); border-radius: var(--jb-radius); border: 1px solid var(--jb-line); }
.jb-about h2 { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; font-size: 20px; margin: 0 0 8px; color: var(--jb-ink); padding: 0; }
.jb-about p { margin: 0 0 10px; font-size: 16px; }
.jb-about .jb-about__note { color: var(--jb-muted); font-size: 14px; margin: 0; }
.jb-final { display: grid; gap: 28px; margin: 32px 0 0; padding: 28px 24px; background: var(--jb-navy); color: #fff; border-radius: var(--jb-radius); }
.jb-final h2 { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; color: #fff; margin: 0 0 10px; padding: 0; }
.jb-final p { color: #dfe4f7; margin: 0 0 14px; font-size: 16.5px; }
.jb-final__list { list-style: none; margin: 0 0 18px; padding: 0; }
.jb-final__list li { position: relative; padding-left: 26px; margin: 0 0 8px; font-size: 15.5px; }
.jb-final__list li::before { content: "\2713"; position: absolute; left: 0; color: #8fe0b0; font-family: Arial, sans-serif; }
.jb-final__contact { display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; }
.jb-final__contact a { color: #fff !important; word-break: break-all; }
.jb-final__form { background: #fff; color: var(--jb-body); border-radius: 10px; padding: 20px; }
.jb-final__form form p { margin: 0 0 12px; }
.jb-final__form label { display: block; font-size: 14px; color: var(--jb-muted); }
.jb-final__form input[type=text], .jb-final__form input[type=email], .jb-final__form input[type=tel], .jb-final__form textarea, .jb-final__form select {
	display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c4cad9; border-radius: 8px; font: inherit; font-size: 16px; color: var(--jb-ink); background: #fff;
}
.jb-final__form textarea { min-height: 110px; }
.jb-final__form input:focus, .jb-final__form textarea:focus { border-color: var(--jb-navy); outline: 2px solid rgba(40, 59, 145, .25); }
.jb-final__form input[type=submit], .jb-final__form button[type=submit] {
	width: 100%; min-height: 50px; border: 0; border-radius: 8px; background: var(--jb-red); color: #fff; cursor: pointer; font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 17px;
}
.jb-final__form input[type=submit]:hover { background: var(--jb-red-d); }
.jb-final__form .wpcf7-response-output { margin: 8px 0 0; font-size: 14px; }
@media (min-width: 720px) { .jb-final { grid-template-columns: 1fr 1fr; padding: 36px; gap: 36px; } }

/* related posts */
.jb-related { margin: 48px 0 0; }
.jb-related h2 { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; font-size: 24px; color: var(--jb-ink); margin: 0 0 16px; padding: 0; }
.jb-related__grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .jb-related__grid { grid-template-columns: repeat(3, 1fr); } }
.jb-card { display: flex; flex-direction: column; border: 1px solid var(--jb-line); border-radius: 10px; overflow: hidden; text-decoration: none !important; background: #fff; transition: box-shadow .15s, transform .15s; }
.jb-card:hover { box-shadow: 0 8px 24px rgba(40, 59, 145, .14); transform: translateY(-2px); }
.jb-card__img img { display: block; width: 100%; height: 150px; object-fit: cover; }
.jb-card__title { padding: 14px 14px 6px; font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 16px; line-height: 1.4; color: var(--jb-ink); }
.jb-card__more { padding: 0 14px 14px; margin-top: auto; font-size: 14px; color: var(--jb-navy); }

/* mobile sticky bar */
.jb-bar { display: none; }
@media (max-width: 991px) {
	.jb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--jb-line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .1); transform: translateY(110%); transition: transform .25s; }
	.jb-bar.is-on { transform: none; }
	.jb-bar .jb-btn { flex: 1; min-height: 46px; padding: 10px 12px; }
	.jb { padding-bottom: 70px; }
}
@media (max-width: 600px) {
	.jb-article { font-size: 17px; }
	.jb-hero__cta .jb-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.jb * { transition: none !important; }
}
@media print {
	.jb-progress, .jb-bar, .jb-aside, .jb-toc--mobile, .jb-final__form { display: none !important; }
}

/* summary box (the doc's own "AI Summary", written by the n8n workflow) */
.jb [hidden] { display: none !important; }
.jb-article .jm-summary { background: var(--jb-soft); border: 1px solid var(--jb-line); border-left: 5px solid var(--jb-navy); border-radius: 10px; padding: 20px 22px 6px; margin: 0 0 2em; }
.jb-article .jm-summary__title { font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--jb-navy); margin: 0 0 8px; }
.jb-article .jm-summary p:not(.jm-summary__title) { font-size: 17px; line-height: 1.65; margin: 0 0 14px; }
.jb-toc--aside { max-height: 46vh; overflow-y: auto; padding-right: 6px; }

/* blog listing (page-blogs.php) */
.jl-hero .jb-wrap > * { max-width: 860px; }
.jl-body { padding-top: 36px; padding-bottom: 56px; }
.jl-h { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; font-size: clamp(22px, 3vw, 28px); color: var(--jb-ink); margin: 0 0 18px; padding: 0; text-transform: none; }
.jl-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .jl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .jl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.jl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); overflow: hidden; text-decoration: none !important; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
.jl-card:hover { box-shadow: 0 10px 28px rgba(40, 59, 145, .15); transform: translateY(-3px); border-color: #c9d1ee; }
.jl-card__img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dfe6f8, #b8c6ea); overflow: hidden; }
.jl-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jl-card__ph { display: flex; align-items: center; justify-content: center; height: 100%; font-family: 'OpenSans-Bold', Arial, sans-serif; color: var(--jb-navy); font-size: 18px; letter-spacing: .04em; opacity: .7; }
.jl-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.jl-card__meta { font-size: 13px; color: var(--jb-muted); margin-bottom: 8px; }
.jl-card__title { font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 19px; line-height: 1.35; color: var(--jb-ink); margin-bottom: 10px; }
.jl-card:hover .jl-card__title { color: var(--jb-navy); }
.jl-card__text { font-size: 15px; line-height: 1.6; color: var(--jb-body); margin-bottom: 14px; }
.jl-card__more { margin-top: auto; font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 15px; color: var(--jb-red); }
@media (min-width: 992px) {
	.jl-card--feature { grid-column: 1 / -1; flex-direction: row; }
	.jl-card--feature .jl-card__img { flex: 0 0 55%; aspect-ratio: auto; min-height: 320px; }
	.jl-card--feature .jl-card__body { justify-content: center; padding: 32px; }
	.jl-card--feature .jl-card__title { font-size: 28px; line-height: 1.3; }
	.jl-card--feature .jl-card__text { font-size: 17px; }
}
.jl-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 32px 0 0; }
.jl-pager a { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--jb-line); border-radius: 8px; text-decoration: none; color: var(--jb-navy); font-family: 'OpenSans-Bold', Arial, sans-serif; }
.jl-pager a:hover { border-color: var(--jb-navy); }
.jl-pager a.is-current { background: var(--jb-navy); border-color: var(--jb-navy); color: #fff; }

.jl-index { margin-top: 56px; }
.jl-index__head { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 820px) { .jl-index__head { grid-template-columns: 1fr minmax(280px, 420px); align-items: end; } .jl-index__head .jl-h { margin: 0; } }
.jl-count { display: inline-block; margin-left: 10px; font-family: 'OpenSans', Arial, sans-serif; font-size: 14px; color: var(--jb-muted); vertical-align: middle; }
.jl-search input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #c4cad9; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--jb-ink); }
.jl-search input:focus { border-color: var(--jb-navy); outline: 2px solid rgba(40, 59, 145, .25); }
.jl-index__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; border-top: 1px solid var(--jb-line); }
@media (min-width: 820px) { .jl-index__list { grid-template-columns: 1fr 1fr; } }
.jl-index__list li { margin: 0; border-bottom: 1px solid var(--jb-line); }
.jl-index__list a { display: block; padding: 12px 4px 12px 22px; position: relative; color: var(--jb-ink); text-decoration: none; font-size: 15.5px; line-height: 1.45; }
.jl-index__list a::before { content: "\2192"; position: absolute; left: 2px; top: 12px; color: var(--jb-red); font-family: Arial, sans-serif; }
.jl-index__list a:hover { color: var(--jb-navy); text-decoration: underline; }
.jl-empty { margin: 16px 0 0; color: var(--jb-muted); }
.jl-more { margin-top: 20px; }

.jl-cta { display: grid; gap: 22px; margin-top: 56px; padding: 30px 24px; background: linear-gradient(135deg, var(--jb-navy), var(--jb-navy-d)); color: #fff; border-radius: var(--jb-radius); }
.jl-cta h2 { font-family: 'OpenSans-Bold', Arial, sans-serif; font-weight: normal; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; color: #fff; margin: 0 0 8px; padding: 0; }
.jl-cta p { color: #dfe4f7; margin: 0; font-size: 16.5px; }
.jl-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.jl-cta__mail { color: #fff !important; font-size: 15px; }
@media (min-width: 900px) { .jl-cta { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 38px 40px; } }

/* ---- Readability + theme overrides ----
   The theme's global `h2 { color:#283B91 !important; text-align:center; float:left; text-transform:uppercase }`
   made headings navy-on-navy (invisible) inside the dark boxes. Reset it for everything inside .jb. */
.jb h1, .jb h2, .jb h3, .jb h4 { float: none !important; width: auto !important; text-align: left !important; text-transform: none !important; letter-spacing: 0 !important; }
.jb h2 { color: var(--jb-ink) !important; line-height: 1.3 !important; }
.jb .jb-final h2,
.jb .jl-cta h2 { color: #fff !important; }
.jb-article h2 { padding-left: 14px !important; border-left: 5px solid var(--jb-red); margin: 2.2em 0 .7em !important; font-size: clamp(24px, 3vw, 31px) !important; }
.jb-article h3 { color: var(--jb-navy) !important; }
.jb-article h2 span, .jb-article h3 span { float: none !important; width: auto !important; padding: 0 !important; font-size: inherit !important; color: inherit !important; line-height: inherit !important; text-align: inherit !important; }
.jb-related h2, .jb-about h2 { padding-left: 0 !important; border: 0; }
.jb-related h2 { text-align: left !important; }

/* stronger body text and spacing */
.jb { --jb-body: #1f2430; --jb-muted: #4a5163; }
.jb-article { font-size: 18px; line-height: 1.8; color: #1f2430; }
.jb-article p, .jb-article li { color: #1f2430; }
.jb-article li::marker { color: var(--jb-red); }
.jb-article strong { color: #111; }
.jb-lede { color: #2b2f3a; }
.jb-meta, .jb-crumbs, .jb-crumbs a { color: #4a5163; }

/* dark boxes: guarantee white text whatever the theme says */
.jb-article .jm-cta, .jb-article .jm-cta p, .jb-article .jm-cta__title, .jb-article .jm-cta__title strong { color: #fff !important; }
.jb-article .jm-cta .jm-cta__text { color: #eef1fc !important; }
.jb-final, .jb-final p, .jb-final li, .jb-final .jb-final__contact { color: #fff !important; }
.jb-final p { color: #eef1fc !important; }
.jb-final__form label, .jb-final__form p { color: #3a3f4d !important; }
.jb-quote, .jb-quote__title { color: #fff !important; }
.jb-quote__text { color: #eef1fc !important; }

/* featured image */
.jb-feature img { box-shadow: 0 10px 30px rgba(40, 59, 145, .15); }

/* summary box a little stronger */
.jb-article .jm-summary { background: #eef2ff; border-color: #cfd8f6; }
.jb-article .jm-summary p:not(.jm-summary__title) { color: #1f2430; }

/* phones */
@media (max-width: 600px) {
	.jb-article { font-size: 17px; }
	.jb-article h2 { font-size: 23px !important; }
	.jb-hero__cta .jb-btn { width: 100%; }
}

/* ---- Listen / summarise with AI / share ---- */
.jb-tools { display: grid; gap: 10px; margin: 0 0 24px; padding: 14px 16px; background: var(--jb-soft); border: 1px solid var(--jb-line); border-radius: var(--jb-radius); }
.jb-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jb-tool[hidden] { display: none; }
.jb-tool__label { flex: 0 0 170px; font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--jb-navy); }
.jb-tool__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid #b9c2e3; border-radius: 999px; background: #fff; color: var(--jb-navy) !important; font: inherit; font-size: 14px; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.jb-tool__btn:hover, .jb-tool__btn:focus-visible { background: var(--jb-navy); border-color: var(--jb-navy); color: #fff !important; }
.jb-tool__btn[hidden] { display: none; }
.jb-audio__play { border-color: var(--jb-red); background: var(--jb-red); color: #fff !important; font-family: 'OpenSans-Bold', Arial, sans-serif; }
.jb-audio__play:hover, .jb-audio__play.is-on { background: var(--jb-red-d); border-color: var(--jb-red-d); }
.jb-audio__play.is-on .jb-audio__status { font-size: 13px; color: var(--jb-muted); }
@media (max-width: 600px) { .jb-tool__label { flex-basis: 100%; } }

/* ---- Author box ---- */
.jb-author { display: flex; gap: 18px; align-items: flex-start; margin: 3em 0 0; padding: 22px 24px; border: 1px solid var(--jb-line); border-left: 5px solid var(--jb-red); border-radius: var(--jb-radius); background: #fff; }
.jb-author__img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.jb-author__img--team { display: flex; align-items: center; justify-content: center; background: var(--jb-navy); color: #fff; font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 22px; }
.jb-author__label { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--jb-muted); }
.jb-author__name { margin: 2px 0 6px; font-family: 'OpenSans-Bold', Arial, sans-serif; font-size: 19px; color: var(--jb-ink); }
.jb-author__bio { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--jb-body); }
.jb-author + .jb-about { margin-top: 20px; }

/* audio: voice picker + the paragraph being read */
.jb-audio__voice { max-width: 220px; padding-right: 8px; }
.jb-article .jb-reading { background: #fff6d6; box-shadow: -8px 0 0 #fff6d6, 8px 0 0 #fff6d6; border-radius: 4px; transition: background .2s; }

/* ---- Tool icons ---- */
.jb-ico { display: inline-block; flex: none; width: 1.1em; height: 1.1em; font-size: 14px; line-height: 1; text-align: center; }
svg.jb-ico { vertical-align: -2px; }
.jb-ai .jb-tool__btn { border-color: #c9b8f0; }
.jb-ai .jb-ico { color: #7b4fd6; }
.jb-ai .jb-tool__btn:hover .jb-ico { color: #fff; }
.jb-share .fa-whatsapp { color: #128c4a; }
.jb-share .fa-linkedin-in { color: #0a66c2; }
.jb-share .fa-facebook-f { color: #1877f2; }
.jb-share .jb-tool__btn:hover .jb-ico { color: #fff; }

/* ---- Full-width hero: light, so it reads as a separate block from the blue site header ---- */
.jb-hero { background: linear-gradient(180deg, #e9eefc 0%, #f7f9ff 70%, #fff 100%); border-top: 4px solid var(--jb-red); border-bottom: 1px solid var(--jb-line); padding: 36px 0 44px; width: 100%; }
.jb-hero .jb-wrap { max-width: 1320px; padding: 0 24px; }
.jb-hero .jb-wrap > * { max-width: 1000px; }
.jb-hero .jb-wrap > .jb-chip { max-width: none; }
.jb-hero .jb-title { color: var(--jb-ink) !important; font-size: clamp(30px, 4.4vw, 50px); }
.jb-hero .jb-lede { color: #2b2f3a; max-width: 880px; }
.jb-layout.jb-wrap { max-width: 1320px; padding-left: 24px; padding-right: 24px; }

/* ---- Hero text spans the whole section; no banner above it on blog articles ---- */
.jb-hero .jb-wrap > *,
.jb-hero .jb-lede { max-width: none; }
.jb-hero .jb-title { width: 100%; max-width: none; }
.jb-hero .jb-lede { width: 100%; font-size: clamp(17px, 1.6vw, 21px); }
/* blog articles only: pull the content wrapper up 30px so the hero tucks under the site header */
.jb-blog-post #masthead { position: relative; z-index: 20; }
.jb-blog-post #content.layout-set { margin-top: -55px; }
.jb-blog-post .jb-hero { margin-top: 0; padding-top: 54px; }
@media (max-width: 767px) { .jb-blog-post .jb-hero { padding-top: 46px; } }

/* Listen / AI / share panel sits under the article */
.jb-article + .jb-tools { margin: 2em 0 0; }
