/* =========================================================
   SB Global Solution — Article page (blog-detail.php): hero title, article text, sidebar, related articles. Loaded on every article, after blogs.css.
   Same rules as html-work/css/style.css.
   ========================================================= */
/* Article page */
.article-hero h1 { max-width: 900px; margin-inline: auto; font-size: clamp(28px, 4vw, 46px); }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 20px; font-size: 14.5px; color: #C8D3E6; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 17px; height: 17px; fill: none; stroke: var(--orange-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article { padding: var(--sec-pad) 0; background: #fff; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.article__body { max-width: 780px; }
.article__cover { margin: 0 0 30px; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-2); }
.article__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body .article__lead { margin: 0 0 8px; font-size: 18.5px; line-height: 1.8; font-weight: 500; color: var(--ink); }   /* scoped so ".article__body p" does not override it */
.article__body h2 { margin: 34px 0 12px; font-family: var(--font-head); font-size: 25px; font-weight: 800; color: var(--ink); }
.article__body p { font-size: 16.5px; line-height: 1.85; color: var(--text); }
.article__body ul { display: grid; gap: 8px; margin: 10px 0 16px; padding-left: 22px; list-style: disc; }
.article__body li { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.article__body li::marker { color: var(--orange-500); }
.article__tip { display: flex; gap: 16px; margin: 26px 0; padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, #FFF6EE, #EEF1FD); border: 1px solid var(--line); }
.article__tip > svg { width: 44px; height: 44px; flex-shrink: 0; padding: 10px; border-radius: 14px; background: #fff; fill: none; stroke: var(--orange-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-shadow: var(--shadow-1); }
.article__tip b { font-family: var(--font-head); font-size: 16.5px; color: var(--ink); }
.article__tip p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.7; }
.article__body blockquote { position: relative; margin: 30px 0; padding: 22px 26px 22px 30px; border-left: 4px solid var(--orange-500); border-radius: 0 16px 16px 0; background: #F6F8FC; font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.6; color: var(--navy-900); }
.article__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__tags, .article__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article__tags span, .article__share span { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.article__tags a { padding: 6px 13px; border-radius: 999px; background: var(--blue-50); font-size: 13.5px; font-weight: 600; color: var(--navy-900); transition: background .2s, color .2s; }
.article__tags a:hover { background: var(--orange-50); color: var(--orange-600); }
.article__share a, .article__share button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.article__share svg { width: 17px; height: 17px; fill: none; stroke: var(--navy-900); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article__share a:hover, .article__share button:hover { background: var(--orange-500); border-color: var(--orange-500); }
.article__share a:hover svg, .article__share button:hover svg { stroke: #fff; }
.article__share button.is-copied { background: #16A34A; border-color: #16A34A; }
.article__share button.is-copied svg { stroke: #fff; }
.article__side { position: sticky; top: 104px; display: grid; gap: 20px; }
.side-box { padding: 22px; border-radius: 20px; background: #F6F8FC; border: 1px solid var(--line); }
.side-box h3 { margin: 0 0 14px; font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--ink); }
.side-cats { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.side-cats a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 14.5px; color: var(--text); transition: background .2s, color .2s; }
.side-cats a:hover { background: #fff; color: var(--orange-600); }
.side-cats span { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: #fff; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--navy-900); }
.side-recent { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.side-recent a { display: flex; gap: 12px; align-items: center; }
.side-recent img { width: 64px; height: 54px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.side-recent b { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ink); transition: color .2s; }
.side-recent a:hover b { color: var(--orange-600); }
.side-recent small { font-size: 12.5px; color: var(--muted); }
.side-cta { background: var(--navy-900); border-color: var(--navy-900); }
.side-cta h3 { color: #fff; }
.side-cta p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: #C8D3E6; }
.related { padding: var(--sec-pad) 0; background: #F6F8FC; }
.related + .srv-cta.svc-cta { background: #fff; }

/* ---- Editor text: basic HTML the design has no rule for (H3, numbered list, links, bold, image, table, line).
   ">" = only the editor text, not the sections. ---- */
.article__body > h3 { margin: 26px 0 10px; font-family: var(--font-head); font-size: 20px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.article__body > ol { display: grid; gap: 8px; margin: 10px 0 16px; padding-left: 24px; }
.article__body > ol li::marker { font-family: var(--font-head); font-weight: 800; color: var(--orange-600); }
.article__body > :is(p, ul, ol, table) a { font-weight: 600; color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.article__body > :is(p, ul, ol, table) a:hover { color: var(--orange-600); }
.article__body > :is(p, ul, ol, blockquote) strong { color: var(--ink); }
.article__body > figure, .article__body > p > img { margin: 28px 0; }
.article__body > figure img, .article__body > p > img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow-1); }
.article__body > figure figcaption { margin-top: 10px; font-size: 14px; text-align: center; color: var(--muted); }
.article__body > table { width: 100%; margin: 24px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; font-size: 15.5px; }
.article__body > table :is(th, td) { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; color: var(--text); }
.article__body > table th { background: var(--navy-900); font-family: var(--font-head); font-weight: 700; color: #fff; }
.article__body > table tr:nth-child(even) td { background: #F6F8FC; }
.article__body > table tr:last-child td { border-bottom: 0; }
.article__body > hr { height: 1px; margin: 34px 0; border: 0; background: var(--line); }

/* ---- Sections (.bs-*) — "Add Section" blocks of a post (template-parts/blog/section-*.php), shown after the editor text ---- */
.post-sections { margin-top: 40px; }
.post-sections :is(h2, h3, p, ul, ol, dl, dd, blockquote, figure) { margin: 0; }
.post-sections > :is(div, figure) + :is(div, figure) { margin-top: 40px; }
.article__body .post-sections :is(ul, ol) { display: grid; gap: 10px; padding: 0; list-style: none; }
.post-sections li::marker { content: none; }
.post-sections svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.post-sections .bs-title { font-family: var(--font-head); font-size: 25px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.post-sections .bs-title--sm { font-size: 21px; }
.post-sections .bs-title + * { margin-top: 14px; }

/* Key Takeaways */
.bs-summary { padding: 26px 28px; border-radius: 20px; background: #F6F8FC; border: 1px solid var(--line); border-left: 4px solid var(--orange-500); }
.bs-summary h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--ink); }
.bs-summary h2 svg { width: 24px; height: 24px; color: var(--orange-600); }
.article__body .bs-summary ul { margin-top: 16px; }
.article__body .bs-summary li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.bs-summary li svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; padding: 5px; border-radius: 50%; background: var(--orange-500); color: #fff; stroke-width: 3; }

/* Heading + Text */
.bs-heading p + p { margin-top: 14px; }
.bs-heading strong { color: var(--ink); }
.bs-heading a { font-weight: 600; color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.bs-heading a:hover { color: var(--orange-600); }

/* List — numbers · dots · ticks */
.article__body .bs-list li { display: flex; gap: 12px; align-items: flex-start; }
.bs-list--dots li::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; margin-top: .7em; border-radius: 2px; background: var(--orange-500); }
.bs-list--ticks li svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; padding: 5px; border-radius: 50%; background: var(--orange-50); color: var(--orange-600); stroke-width: 3; }
.bs-list--numbers ol { counter-reset: bsl; }
.bs-list--numbers li { counter-increment: bsl; }
.bs-list--numbers li::before { content: counter(bsl); display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--navy-900); font-family: var(--font-head); font-size: 13px; font-weight: 800; color: #fff; }

/* Callout Box — tip · note · important · did you know */
.bs-callout { display: flex; gap: 16px; padding: 22px 24px; border-radius: 18px; border: 1px solid; }
.bs-callout__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; }
.bs-callout__icon svg { width: 22px; height: 22px; stroke-width: 1.9; }
.bs-callout h3 { font-family: var(--font-head); font-size: 16.5px; font-weight: 800; color: var(--ink); }
.article__body .bs-callout p { margin-top: 4px; font-size: 15.5px; line-height: 1.7; }
.bs-callout--tip { background: var(--orange-50); border-color: #FFD9BC; }
.bs-callout--tip .bs-callout__icon { background: var(--orange-500); color: #fff; }
.bs-callout--note { background: var(--blue-50); border-color: #D5DCF8; }
.bs-callout--note .bs-callout__icon { background: var(--blue-600); color: #fff; }
.bs-callout--important { background: #FEF3F2; border-color: #FECDCA; }
.bs-callout--important .bs-callout__icon { background: #DC2626; color: #fff; }
.bs-callout--important h3 { color: #B42318; }
.bs-callout--know { background: var(--navy-950); border-color: var(--navy-950); }
.bs-callout--know .bs-callout__icon { background: rgba(255,255,255,.1); color: var(--orange-500); }
.bs-callout--know h3 { color: var(--orange-500); }
.article__body .bs-callout--know p { color: #C8D3E6; }

/* Image + Text — left · right · top */
.bs-image-text { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: center; }
.bs-image-text--right .bs-image-text__media { order: 2; }
.bs-image-text--top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.bs-image-text__media { overflow: hidden; border-radius: 20px; box-shadow: var(--shadow-1); background: var(--blue-50); }
.bs-image-text__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bs-image-text--top .bs-image-text__media img { aspect-ratio: 16 / 8; }
.article__body .bs-image-text p { margin-top: 10px; }

/* Spec Cards */
.bs-specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article__body .post-sections .bs-specs__grid { gap: 16px; }
.bs-spec { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange-500); box-shadow: var(--shadow-1); }
.bs-spec h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--ink); }
.bs-spec h3 svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--orange-600); }
.bs-spec dl { display: grid; gap: 10px; }
.bs-spec dl div { padding-top: 10px; border-top: 1px dashed var(--line); }
.bs-spec dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bs-spec dd { margin-top: 2px; font-size: 15.5px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.bs-spec .link-arrow { margin-top: auto; }

/* Expert Tip — card · band */
.bs-expert { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.bs-expert > img, .bs-expert__initials { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange-50); }
.bs-expert__initials { display: grid; place-items: center; background: var(--grad-brand); font-family: var(--font-head); font-size: 28px; font-weight: 800; color: #fff; }
.bs-expert__initials svg { width: 40px; height: 40px; }
.bs-expert__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); }
.bs-expert__label svg { width: 16px; height: 16px; }
.article__body .bs-expert blockquote { margin-top: 8px; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.55; color: var(--navy-900); }
.bs-expert__name { margin-top: 14px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.bs-expert__name span { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }
.bs-expert--band { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); border-color: var(--navy-950); }
.bs-expert--band > img, .bs-expert--band .bs-expert__initials { border-color: rgba(255,255,255,.15); }
.article__body .bs-expert--band blockquote, .bs-expert--band .bs-expert__name { color: #fff; }
.bs-expert--band .bs-expert__label { color: var(--orange-500); }
.bs-expert--band .bs-expert__name span { color: #C8D3E6; }

/* Two Columns — avoid / do · A vs B · pros / cons */
.bs-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bs-compare__col { overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.bs-compare__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-family: var(--font-head); font-weight: 800; color: #fff; }
.bs-compare__head svg { width: 20px; height: 20px; }
.article__body .bs-compare ul { padding: 18px; }
.article__body .bs-compare li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.65; }
.bs-compare li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; stroke-width: 2.4; }
.bs-compare--compare .bs-compare__col:first-child .bs-compare__head { background: #B42318; }
.bs-compare--compare .bs-compare__col:first-child li svg { color: #B42318; }
.bs-compare--compare .bs-compare__col:last-child .bs-compare__head { background: #16A34A; }
.bs-compare--compare .bs-compare__col:last-child li svg { color: #16A34A; }
.bs-compare--versus .bs-compare__col:first-child .bs-compare__head { background: var(--navy-900); }
.bs-compare--versus .bs-compare__col:first-child li svg { color: var(--navy-900); }
.bs-compare--versus .bs-compare__col:last-child .bs-compare__head { background: var(--orange-500); }
.bs-compare--versus .bs-compare__col:last-child li svg { color: var(--orange-600); }
.bs-compare--pros .bs-compare__col:first-child .bs-compare__head { background: var(--blue-600); }
.bs-compare--pros .bs-compare__col:first-child li svg { color: var(--blue-600); }
.bs-compare--pros .bs-compare__col:last-child .bs-compare__head { background: var(--orange-600); }
.bs-compare--pros .bs-compare__col:last-child li svg { color: var(--orange-600); }

/* FAQ — the [sbg_faq] accordion in one column */
.bs-faq .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bs-faq .faq-list { display: grid; gap: 12px; }
.bs-faq .faq-ic { fill: none; stroke: var(--orange-600); }
.article__body .bs-faq .faq-item p { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.65; }

/* Call to Action Box */
.bs-cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 28px 30px; border-radius: 22px; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.bs-cta-box h3 { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1.3; color: #fff; }
.bs-cta-box h3 .text-accent, .bs-cta-box h3 span { color: var(--orange-500); }
.article__body .bs-cta-box p { margin-top: 4px; font-size: 15.5px; line-height: 1.65; color: #C8D3E6; }
.bs-cta-box .btn-group { gap: 10px; }
.bs-cta-box .btn svg { fill: none; stroke: currentColor; }

@media (max-width: 1100px) {
  .article__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article__side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article__body { max-width: none; }
}
@media (max-width: 600px) {
  .article__side { grid-template-columns: minmax(0, 1fr); }
  .article__body .article__lead { font-size: 17px; }
  .article__body h2 { font-size: 21px; }
  .article__body p, .article__body li { font-size: 16px; }
  .article__body blockquote { font-size: 17px; }
  .article__body > h3 { font-size: 18px; }
  .article__body > table { display: block; overflow-x: auto; font-size: 14.5px; }
  .post-sections > :is(div, figure) + :is(div, figure) { margin-top: 34px; }
  .post-sections .bs-title { font-size: 21px; }
  .post-sections .bs-title--sm { font-size: 19px; }
  .bs-summary { padding: 22px 20px; }
  .bs-compare, .bs-specs__grid { grid-template-columns: minmax(0, 1fr); }
  .bs-expert { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; text-align: center; }
  .bs-expert > img, .bs-expert__initials { margin-inline: auto; }
  .article__body .bs-expert blockquote { font-size: 17px; }
  .bs-image-text { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bs-image-text--right .bs-image-text__media { order: 0; }
  .bs-callout { padding: 20px 18px; }
  .bs-cta-box { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}
