/* ==========================================================================
   Merehead — Blog post template
   Design system: Merehead Website v1. Loaded after styles.css (uses its --mh-* tokens).
   ========================================================================== */

/* ---------- Hero (navy) ---------- */
.mh-bp-hero { background: var(--mh-navy); color: var(--mh-on-navy); padding: 64px 0 72px; }
.mh-bp-hero__in { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 80px; }
.mh-bp-hero__main { flex: 999 1 560px; min-width: 0; max-width: 800px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.mh-bp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--mh-on-navy-muted); }
.mh-bp-crumbs a { color: var(--mh-on-navy-muted); text-decoration: none; transition: color .15s ease; }
.mh-bp-crumbs a:hover { color: var(--mh-on-navy); }
.mh-bp-title { font-size: 54px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; color: var(--mh-on-navy); text-wrap: balance; }
.mh-bp-author { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }
.mh-bp-author img { width: 56px; height: 56px; flex: none; border-radius: 999px; object-fit: cover; border: 2px solid rgba(255,255,255,0.18); display: block; }
.mh-bp-author__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mh-bp-author__name { font-size: 15px; font-weight: 600; color: var(--mh-on-navy); text-decoration: none; }
.mh-bp-author__bio { font-size: 14px; line-height: 1.6; color: var(--mh-on-navy-body); }
.mh-bp-author__bio a { color: var(--mh-on-navy-accent); }
.mh-bp-author__bio a:hover { color: var(--mh-on-navy); }
.mh-bp-meta { flex: 1 1 260px; min-width: 0; max-width: 320px; align-self: flex-start; padding-top: 40px; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.mh-bp-meta__row { display: flex; gap: 12px; align-items: flex-start; }
.mh-bp-meta__row svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--mh-on-navy-muted); }
.mh-bp-meta dt { font-size: 13px; color: var(--mh-on-navy-muted); }
.mh-bp-meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--mh-on-navy); }
.mh-bp-meta dd.mh-bp-meta__sub { font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--mh-on-navy-body); }

/* ---------- Body layout ---------- */
.mh-bp-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 80px; padding-top: 56px; padding-bottom: 96px; }
.mh-bp-article { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 40px; }

/* ---------- Article typography ---------- */
.mh-bp-prose { display: flex; flex-direction: column; gap: 22px; }
.mh-bp-prose p { font-size: 17px; line-height: 1.75; color: var(--mh-text-strong); }
.mh-bp-prose p strong { color: var(--mh-ink); font-weight: 600; }
.mh-bp-prose a { color: var(--mh-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mh-bp-prose a:hover { color: var(--mh-blue-deep); }
.mh-bp-prose h2 { margin-top: 32px; font-size: 32px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; scroll-margin-top: 24px; }
.mh-bp-prose h3 { margin-top: 12px; font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.mh-bp-summary { background: var(--mh-surface-muted); border-radius: 12px; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Tables ---------- */
.mh-bp-table { overflow-x: auto; margin: 6px 0; }
.mh-bp-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.mh-bp-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--mh-ink); }
.mh-bp-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--mh-border); color: var(--mh-text-secondary); vertical-align: top; }
.mh-bp-table td:first-child { color: var(--mh-ink); font-weight: 500; }
.mh-bp-table td.mh-bp-num { color: var(--mh-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Product CTA inside the article ---------- */
.mh-bp-product { margin: 16px 0; border: 1px solid var(--mh-border); border-radius: 14px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.mh-bp-product__copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mh-bp-product__over { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); }
.mh-bp-product__title { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.mh-bp-product__text { font-size: 15px; line-height: 1.6; color: var(--mh-text-secondary); }
.mh-bp-product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.mh-bp-plain-link { font-size: 15px; font-weight: 600; color: var(--mh-ink); text-decoration: none; }
.mh-bp-plain-link:hover { color: var(--mh-blue); }
.mh-bp-prose .mh-bp-product a.mh-btn { text-decoration: none; color: var(--mh-ink); }

/* ---------- FAQ (uses .mh-acc from styles.css) ---------- */
.mh-bp-faq { margin-top: -16px; }
.mh-bp-faq .mh-acc__q { font-size: 18px; min-height: 68px; }
.mh-bp-faq .mh-acc__panel p { font-size: 16px; line-height: 1.7; }
.mh-bp-faq .mh-acc__panel a { color: var(--mh-blue); }

/* ---------- Share ---------- */
.mh-bp-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px 0; border-top: 1px solid var(--mh-border); border-bottom: 1px solid var(--mh-border); }
.mh-bp-share__copy { display: flex; flex-direction: column; gap: 2px; }
.mh-bp-share__title { font-size: 16px; font-weight: 600; }
.mh-bp-share__text { font-size: 14px; color: var(--mh-text-muted); }
.mh-bp-share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-bp-share__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--mh-border-control); background: var(--mh-surface); color: var(--mh-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.mh-bp-share__btn svg { width: 16px; height: 16px; flex: none; }
.mh-bp-share__btn:hover { background: var(--mh-navy); border-color: var(--mh-navy); color: var(--mh-on-navy); }

/* ---------- Sidebar ---------- */
.mh-bp-side { flex: 1 1 280px; min-width: 0; max-width: 320px; position: sticky; top: 24px; border: 1px solid var(--mh-border); border-radius: 16px; overflow: hidden; background: var(--mh-surface); }
.mh-bp-progress { height: 3px; background: var(--mh-fill-chip); }
.mh-bp-progress span { display: block; width: 0; height: 3px; background: var(--mh-blue); transition: width .1s linear; }
.mh-bp-toc { padding: 18px 22px 14px; display: flex; flex-direction: column; }
.mh-bp-toc__title { padding-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); }
.mh-bp-toc a { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.45; color: var(--mh-text-secondary); text-decoration: none; transition: color .15s ease; }
.mh-bp-toc a i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mh-text-muted); min-width: 18px; padding-top: 1px; }
.mh-bp-toc a:hover { color: var(--mh-ink); }
.mh-bp-toc a.is-current { color: var(--mh-ink); font-weight: 600; }
.mh-bp-toc a.is-current i { color: var(--mh-blue); }
.mh-bp-help { background: var(--mh-surface-muted); border-top: 1px solid var(--mh-border); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.mh-bp-help__person { display: flex; gap: 12px; align-items: center; }
.mh-bp-help__photo { position: relative; width: 44px; height: 44px; flex: none; }
.mh-bp-help__photo img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; display: block; }
.mh-bp-help__photo i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 999px; background: var(--mh-green); border: 2px solid var(--mh-surface-muted); }
.mh-bp-help__name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.mh-bp-help__role { font-size: 14px; color: var(--mh-text-muted); line-height: 1.35; }
.mh-bp-help__label { font-size: 14px; font-weight: 600; }
.mh-bp-help__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: -6px; }
.mh-bp-help__btns .mh-btn { padding: 0 12px; gap: 8px; }
.mh-bp-help__btns .mh-btn svg { width: 16px; height: 16px; transform: none !important; }
.mh-bp-help__more { font-size: 14px; font-weight: 500; color: var(--mh-text-secondary); text-decoration: none; }
.mh-bp-help__more:hover { color: var(--mh-blue); }

/* ---------- Contact: "What happens next" + facts ---------- */
.mh-bp-next { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.mh-bp-next__title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); }
.mh-bp-next__list { border-top: 1px solid var(--mh-border); }
.mh-bp-next__item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--mh-border); }
.mh-bp-next__item .mh-step-num { flex: none; }
.mh-bp-next__item strong { display: block; font-size: 15px; font-weight: 600; }
.mh-bp-next__item span:not(.mh-step-num) { display: block; font-size: 14px; line-height: 1.5; color: var(--mh-text-secondary); }
.mh-bp-facts { width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 8px; }
.mh-bp-facts b { display: block; font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.mh-bp-facts span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--mh-text-muted); }

/* ---------- Related posts ---------- */
.mh-bp-related { padding: 96px 0; }
.mh-bp-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: 40px; }
.mh-bp-related__head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mh-bp-related__head .mh-h2 { font-size: 36px; }
.mh-bp-post { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--mh-border); border-radius: 14px; background: var(--mh-surface); text-decoration: none; color: var(--mh-ink); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mh-bp-post:hover { transform: translateY(-4px); box-shadow: var(--mh-shadow-card-hover); border-color: var(--mh-border-card-hover); }
.mh-bp-post__cover { height: 168px; display: flex; align-items: flex-end; justify-content: space-between; padding: 20px; }
.mh-bp-post__cover--blue { background: var(--mh-blue-tint); }
.mh-bp-post__cover--violet { background: var(--mh-violet-tint); }
.mh-bp-post__cover--navy { background: var(--mh-navy); }
.mh-bp-post__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--mh-surface); display: flex; align-items: center; justify-content: center; }
.mh-bp-post__icon svg { width: 22px; height: 22px; }
.mh-bp-post__cover--blue .mh-bp-post__icon { color: var(--mh-blue); }
.mh-bp-post__cover--violet .mh-bp-post__icon { color: var(--mh-violet); }
.mh-bp-post__cover--navy .mh-bp-post__icon { background: rgba(255,255,255,0.1); color: var(--mh-accent); }
.mh-bp-post__tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; background: var(--mh-surface); }
.mh-bp-post__cover--blue .mh-bp-post__tag { color: var(--mh-blue-deep); }
.mh-bp-post__cover--violet .mh-bp-post__tag { color: var(--mh-violet-deep); }
.mh-bp-post__cover--navy .mh-bp-post__tag { background: var(--mh-accent); color: var(--mh-ink); }
.mh-bp-post__body { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.mh-bp-post__date { font-size: 13px; color: var(--mh-text-muted); }
.mh-bp-post__title { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.mh-bp-post__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--mh-blue); }
.mh-bp-post__more svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mh-bp-side { position: static; max-width: none; }
  .mh-bp-toc { display: none; }
  .mh-bp-meta { padding-top: 0; }
}
@media (max-width: 640px) {
  .mh-bp-hero { padding: 40px 0 48px; }
  .mh-bp-title { font-size: 34px; }
  .mh-bp-prose h2 { font-size: 26px; }
  .mh-bp-prose p { font-size: 16px; }
  .mh-bp-body { padding-top: 40px; padding-bottom: 72px; }
  .mh-bp-related { padding: 72px 0; }
  .mh-bp-facts b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-bp-post, .mh-bp-share__btn, .mh-bp-progress span { transition: none; }
  .mh-bp-post:hover { transform: none; }
}

/* ==========================================================================
   v2 — dynamic template: product hero + legacy post content
   ========================================================================== */

/* ---------- Product / white-label hero (conversion 3) ---------- */
.mh-bp-phero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; padding: 72px 0 80px; color: var(--mh-on-navy); background: #050F1F url(/public/assets/images/blog/hero-product-bg.jpg) right center / auto 100% no-repeat; }
.mh-bp-phero > .mh-container { width: 100%; }
.mh-bp-phero__copy { max-width: 520px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mh-bp-hero__label { margin: 0; color: var(--mh-on-navy-accent); background: rgba(199,210,254,0.12); }
.mh-bp-hero__label::before { background: var(--mh-accent); }
.mh-bp-phero__title { margin: 0; font-size: 50px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; color: var(--mh-on-navy); text-wrap: balance; }
.mh-bp-phero__lead { margin: 0; max-width: 500px; font-size: 18px; line-height: 1.6; color: var(--mh-on-navy-body); }
.mh-bp-demo { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.mh-bp-demo__label { font-size: 14px; font-weight: 600; color: var(--mh-on-navy); }
.mh-bp-demo__form { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--mh-surface); border-radius: 12px; box-shadow: 0 12px 32px -12px rgba(0,0,0,0.45); }
.mh-bp-demo__form .mh-field { flex: 1 1 200px; min-width: 0; gap: 2px; }
.mh-bp-demo__form .mh-input { height: 52px; border: 0; }
.mh-bp-demo__form .mh-error { padding: 0 14px 6px; }
.mh-bp-demo__form .mh-btn { height: 52px; flex: none; }
.mh-bp-demo__form .mh-form__success { flex-basis: 100%; padding: 14px; font-size: 15px; font-weight: 600; color: var(--mh-green); }
.mh-bp-demo__note { font-size: 13px; line-height: 1.5; color: var(--mh-on-navy-muted); }
/* "See the platform" button with a thumbnail */
.mh-bp-preview { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 8px 14px 8px 8px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(255,255,255,0.04); color: var(--mh-on-navy); font: inherit; text-align: left; cursor: zoom-in; transition: border-color .2s, background .2s; }
.mh-bp-preview:hover, .mh-bp-preview:focus-visible { outline: none; border-color: rgba(255,212,59,0.6); background: rgba(255,255,255,0.07); }
.mh-bp-preview img { width: 96px; height: 64px; object-fit: cover; object-position: left top; border-radius: 6px; display: block; }
.mh-bp-preview b { display: block; font-size: 14px; font-weight: 600; }
.mh-bp-preview small { display: block; margin-top: 2px; font-size: 13px; color: var(--mh-on-navy-muted); }
/* clickable laptop screen over the background image */
.mh-bp-phero__frame { position: absolute; top: 0; bottom: 0; right: 0; aspect-ratio: 2 / 1; pointer-events: none; }
.mh-bp-phero__screen { pointer-events: auto; position: absolute; left: 57%; top: 23%; width: 30%; height: 40%; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: zoom-in; display: grid; place-items: center; transition: box-shadow .2s, background .2s; }
.mh-bp-phero__screen:hover, .mh-bp-phero__screen:focus-visible { outline: none; background: rgba(5,15,31,0.35); box-shadow: 0 0 0 2px var(--mh-accent), 0 0 40px rgba(255,212,59,0.35); }
.mh-bp-phero__pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--mh-accent); color: var(--mh-ink); font: 600 14px/1 var(--mh-font); box-shadow: 0 10px 24px -8px rgba(0,0,0,0.6); transition: transform .2s; }
.mh-bp-phero__screen:hover .mh-bp-phero__pill { transform: scale(1.06); }
.mh-bp-phero__pill svg { width: 16px; height: 16px; }
/* key features band */
.mh-bp-pfeatures { background: #050F1F; border-top: 1px solid rgba(255,255,255,0.12); padding: 32px 0 40px; }
.mh-bp-pfeatures ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mh-bp-pfeatures li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: rgba(255,255,255,0.03); }
.mh-bp-pfeatures__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,212,59,0.12); color: var(--mh-accent); }
.mh-bp-pfeatures__icon svg { width: 20px; height: 20px; }
.mh-bp-pfeatures__title { margin: 0 0 4px; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--mh-on-navy); }
.mh-bp-pfeatures__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mh-on-navy-muted); }
/* full-size platform screenshot */
.mh-bp-lightbox { width: min(1240px, calc(100vw - 64px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.mh-bp-lightbox::backdrop { background: rgba(5,15,31,0.88); backdrop-filter: blur(4px); }
.mh-bp-lightbox__box { display: flex; flex-direction: column; gap: 12px; }
.mh-bp-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 600; color: var(--mh-on-navy); }
.mh-bp-lightbox__close { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); color: var(--mh-on-navy); display: grid; place-items: center; cursor: pointer; }
.mh-bp-lightbox__close:hover { background: rgba(255,255,255,0.16); }
.mh-bp-lightbox__close svg { width: 18px; height: 18px; }
.mh-bp-lightbox__scroll { overflow: auto; max-height: calc(100vh - 140px); border-radius: 12px; box-shadow: 0 40px 80px -24px rgba(0,0,0,0.7); }
.mh-bp-lightbox__scroll img { display: block; width: 100%; min-width: 900px; height: auto; }

@media (max-width: 1240px) {
  .mh-bp-phero { background-image: linear-gradient(#050F1F, rgba(5,15,31,0) 120px), url(/public/assets/images/blog/hero-product-bg.jpg); background-size: 100% 520px, auto 520px; background-position: center bottom, 68% bottom; align-items: flex-start; min-height: 0; padding-bottom: 440px; }
  .mh-bp-phero__frame { display: none; }
}
@media (max-width: 1100px) { .mh-bp-pfeatures ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .mh-bp-phero { background: #050F1F; padding: 48px 0 56px; }
  .mh-bp-phero__title { font-size: 34px; }
  .mh-bp-demo__form .mh-btn { width: 100%; }
  .mh-bp-pfeatures ul { grid-template-columns: 1fr; }
  .mh-bp-lightbox { width: calc(100vw - 32px); }
}

/* ---------- Legacy post content (WordPress HTML) ---------- */
.mh-bp-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.mh-bp-prose figure, .mh-bp-prose .wp-caption { max-width: 100%; }
.mh-bp-prose .wp-caption-text, .mh-bp-prose figcaption { margin-top: 8px; font-size: 13px; color: var(--mh-text-muted); }
.mh-bp-prose ul, .mh-bp-prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.7; color: var(--mh-text-strong); }
.mh-bp-prose ul { list-style: disc; }
.mh-bp-prose ol { list-style: decimal; }
.mh-bp-prose li::marker { color: var(--mh-blue); }
.mh-bp-prose blockquote { border-left: 3px solid var(--mh-blue); padding: 4px 0 4px 20px; font-size: 18px; line-height: 1.6; color: var(--mh-ink); }
.mh-bp-prose p:empty { display: none; }
.mh-bp-prose .ai-overview-bait, .mh-bp-summary { background: var(--mh-surface-muted); border-radius: 12px; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.mh-bp-prose .promo { border: 1px solid var(--mh-border); border-radius: 12px; padding: 20px 24px; font-size: 15px; line-height: 1.6; }
/* tables: old content uses <div style="overflow-x:auto"><table class="tbl"> with the header in the first row */
.mh-bp-prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.mh-bp-prose div:has(> table) { overflow-x: auto; }
.mh-bp-prose table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--mh-border); color: var(--mh-text-secondary); vertical-align: top; }
.mh-bp-prose table td:first-child { color: var(--mh-ink); font-weight: 500; }
.mh-bp-prose table tr:first-child td { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); padding-bottom: 12px; border-bottom: 1px solid var(--mh-ink); }
.mh-bp-prose table tr:first-child td strong { font-weight: 600; color: inherit; }
.mh-bp-prose table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--mh-ink); }
/* "Merehead software" banner (cta_gallery) */
.mh-bp-prose .blog-solution { margin: 16px 0; border: 1px solid var(--mh-border); border-radius: 14px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.mh-bp-prose .blog-solution-subtitle { flex-basis: 100%; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); }
.mh-bp-prose .blog-solution-title { flex-basis: 100%; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.mh-bp-prose .blog-solution-desc { flex-basis: 100%; margin-bottom: 12px; font-size: 15px; line-height: 1.6; color: var(--mh-text-secondary); }
.mh-bp-prose .blog-solution a { text-decoration: none; }
.mh-bp-prose .blog-solution-gallery { font-size: 15px; font-weight: 600; color: var(--mh-ink); }
.mh-bp-prose .blog-solution-contact { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 8px; background: var(--mh-accent); color: var(--mh-ink); font-size: 15px; font-weight: 600; }
.mh-bp-prose .blog-solution i { display: none; }
/* FAQ inside content: keep the accordion full width */
.mh-bp-prose .mh-bp-faq { margin-top: 0; }

/* ---------- Recent projects (conversion 4+) ---------- */
.mh-bp-projects { padding-top: 0; }
.mh-bp-project__img { height: 180px; background: var(--mh-surface-muted); overflow: hidden; }
.mh-bp-project__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-bp-project__logo { height: 28px; width: auto; align-self: flex-start; }
.mh-bp-project__desc { font-size: 15px; line-height: 1.6; color: var(--mh-text-body); }
.mh-bp-project__facts { display: flex; gap: 24px; margin: 0; }
.mh-bp-project__facts dt { font-size: 13px; color: var(--mh-text-muted); }
.mh-bp-project__facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }


/* Related posts: card with the post's featured image */
.mh-bp-post__cover--img { position: relative; padding: 0; overflow: hidden; align-items: flex-start; justify-content: flex-start; }
.mh-bp-post__cover--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.mh-bp-post__cover--img .mh-bp-post__tag { position: relative; margin: 16px; box-shadow: 0 2px 8px rgba(9,9,11,0.12); }
.mh-bp-post:hover .mh-bp-post__cover--img img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .mh-bp-post:hover .mh-bp-post__cover--img img { transform: none; } }

/* Contact: the form starts level with the H2 (skips the "Contact" eyebrow + gap above it) */
.mh-contact > .mh-form { margin-top: 48px; }
@media (max-width: 1060px) { .mh-contact > .mh-form { margin-top: 0; } }

/* Table of contents: fixed max height with its own vertical scroll for long articles */
.mh-bp-toc { position: relative; max-height: min(440px, calc(100vh - 320px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--mh-border-control) transparent; padding-top: 0; }
.mh-bp-toc__title { position: sticky; top: 0; z-index: 1; background: var(--mh-surface); padding-top: 18px; }
.mh-bp-toc::-webkit-scrollbar { width: 6px; }
.mh-bp-toc::-webkit-scrollbar-thumb { background: var(--mh-border-control); border-radius: 999px; }
.mh-bp-toc::-webkit-scrollbar-track { background: transparent; }

/* Sidebar: booking a call — the highlighted second action under the messengers */
.mh-bp-help__or { display: flex; align-items: center; gap: 10px; margin: -2px 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); }
.mh-bp-help__or::before, .mh-bp-help__or::after { content: ""; flex: 1; height: 1px; background: var(--mh-border); }
.mh-bp-booking { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px 10px 10px; border-radius: 12px; background: var(--mh-navy); color: var(--mh-on-navy); text-decoration: none; transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.mh-bp-booking:hover { background: var(--mh-navy-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(14,27,61,0.6); }
.mh-bp-booking:focus-visible { outline: 2px solid var(--mh-blue); outline-offset: 2px; }
.mh-bp-booking__icon { width: 36px; height: 36px; flex: none; border-radius: 8px; background: rgba(255,255,255,0.1); color: var(--mh-accent); display: flex; align-items: center; justify-content: center; }
.mh-bp-booking__icon svg { width: 20px; height: 20px; }
.mh-bp-booking__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mh-bp-booking__text strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.mh-bp-booking__text small { font-size: 12px; line-height: 1.3; color: var(--mh-on-navy-muted); }
.mh-bp-booking__arrow { width: 16px; height: 16px; flex: none; transition: transform .18s ease; }
.mh-bp-booking:hover .mh-bp-booking__arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .mh-bp-booking, .mh-bp-booking__arrow { transition: none; } .mh-bp-booking:hover { transform: none; } }

/* ---------- Article body: normal text flow instead of a flex column ----------
   Old WordPress content is not always wrapped in <p> (e.g. text right after </h2>), so text nodes, links and
   <strong> ended up as separate flex items, each on its own line. Block flow keeps them inline in one paragraph. */
.mh-bp-prose { display: block; font-size: 17px; line-height: 1.75; color: var(--mh-text-strong); }
.mh-bp-prose > * { margin: 22px 0; } /* vertical margins collapse between elements → 22px; loose text also gets space around it */
.mh-bp-prose > :first-child { margin-top: 0; }
.mh-bp-prose > :last-child { margin-bottom: 0; }
.mh-bp-prose > br { margin: 0; }
.mh-bp-prose > h2 { margin: 48px 0 16px; }
.mh-bp-prose h2, .mh-bp-prose h3, .mh-bp-prose h4 { color: var(--mh-ink); }
.mh-bp-prose > h3 { margin: 32px 0 12px; }
.mh-bp-prose > h2:first-child, .mh-bp-prose > h3:first-child { margin-top: 0; }
.mh-bp-prose b, .mh-bp-prose strong { color: var(--mh-ink); font-weight: 600; }
@media (max-width: 640px) { .mh-bp-prose { font-size: 16px; } }

/* ---------- FAQ accordion inside the article (built from ul.faq in blog-post.php) ---------- */
.mh-bp-prose > .mh-bp-faq { margin: 16px 0 22px; }
.mh-bp-prose .mh-bp-faq h3 { margin: 0; font-size: inherit; line-height: inherit; letter-spacing: normal; }
.mh-bp-prose .mh-bp-faq .mh-acc__q { font-size: 18px; line-height: 1.4; color: var(--mh-ink); }
.mh-bp-prose .mh-bp-faq .mh-acc__panel p { margin: 0; padding: 0 56px 24px 0; font-size: 16px; line-height: 1.7; color: var(--mh-text-secondary); }
.mh-bp-prose .mh-bp-faq .mh-acc__panel p + p { margin-top: -12px; }
@media (max-width: 640px) { .mh-bp-prose .mh-bp-faq .mh-acc__q { font-size: 17px; } .mh-bp-prose .mh-bp-faq .mh-acc__panel p { padding-right: 0; } }

/* ---------- AI overview / summary box: block flow, not flex ----------
   Its text is often not wrapped in <p>, so in a flex column every text node and <strong>
   became a separate line. Block flow keeps the sentence together. */
.mh-bp-prose .ai-overview-bait, .mh-bp-summary { display: block; }
.mh-bp-prose .ai-overview-bait > *, .mh-bp-summary > * { margin: 14px 0; }
.mh-bp-prose .ai-overview-bait > :first-child, .mh-bp-summary > :first-child { margin-top: 0; }
.mh-bp-prose .ai-overview-bait > :last-child, .mh-bp-summary > :last-child { margin-bottom: 0; }
.mh-bp-prose .ai-overview-bait > br { margin: 0; }

/* Hero meta: one <dl> per row (valid HTML) */
.mh-bp-meta dl { margin: 0; }
.mh-bp-meta dt, .mh-bp-meta dd:not(.mh-bp-meta__sub) { margin-left: 0; }
