/* Editorial article layout, scoped to blog detail pages. */
body.tk-blog-detail { background: #fff; color: #334155; }
.tk-blog-detail .bd-page { padding-top: 170px; background: #fff; }
.bd-shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.bd-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 32px; font-size: 12px; color: #64748b; }
.bd-page a { color: #2563eb; text-decoration: none; }
.bd-page a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bd-page a:focus-visible, .bd-page button:focus-visible, .bd-page summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.bd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.bd-article { min-width: 0; }
.bd-category, .bd-eyebrow { display: inline-block; color: #2563eb; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tk-blog-detail .bd-article-header h1 { margin: 12px 0 20px; color: #0f172a; font-size: clamp(30px, 3.3vw, 46px); line-height: 1.16; font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.bd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #64748b; font-size: 12px; }
.bd-meta a { color: #0f172a; font-weight: 600; }
.bd-author-initial { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eff6ff; color: #2563eb; font-weight: 800; }
.bd-intro { margin: 22px 0 26px; color: #475569; font-size: 17px; line-height: 1.8; }
.bd-featured { margin: 0 0 34px; border-radius: 8px; overflow: hidden; background: #eff6ff; }
.bd-featured img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bd-content { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; color: #334155; }
.bd-content > :first-child { margin-top: 0; }
.bd-content :is(h1,h2,h3,h4,h5,h6) { color: #0f172a; line-height: 1.35; letter-spacing: -.025em; scroll-margin-top: 160px; }
.bd-content :is(h1,h2) { margin: 40px 0 18px; font-size: 27px; font-weight: 750; }
.bd-content h3 { margin: 30px 0 14px; font-size: 21px; }
.bd-content :is(h4,h5,h6) { margin: 26px 0 12px; font-size: 18px; }
.bd-content p { margin: 0 0 22px; }
.bd-content :is(ul,ol) { margin: 18px 0 24px; padding-left: 25px; }
.bd-content li { margin-bottom: 10px; padding-left: 5px; }
.bd-content li::marker { color: #2563eb; font-weight: 700; }
.bd-content :is(img,video,iframe,svg) { max-width: 100%; }
.bd-content img { height: auto; border-radius: 6px; }
.bd-content figure { max-width: 100%; margin: 28px 0; }
.bd-content figcaption { margin-top: 8px; color: #64748b; font-size: 12px; text-align: center; }
.bd-content blockquote { margin: 28px 0; padding: 22px 26px; border-left: 3px solid #2563eb; background: #f8fafc; font-size: 18px; }
.bd-content blockquote p:last-child { margin-bottom: 0; }
.bd-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.bd-content :is(th,td) { padding: 12px 16px; border: 1px solid #e2e8f0; text-align: left; }
.bd-content th { background: #f1f5f9; color: #0f172a; }
.bd-content pre { max-width: 100%; padding: 20px; overflow-x: auto; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: 13px; line-height: 1.7; }
.bd-content details { margin: 12px 0; border: 1px solid #e2e8f0; border-radius: 6px; padding: 16px; }
.bd-content summary { color: #0f172a; font-weight: 600; cursor: pointer; }
.bd-content details[open] summary { margin-bottom: 14px; }
.bd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.bd-tags > span { padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 4px; color: #475569; font-size: 11px; }
.bd-sidebar { min-width: 0; align-self: stretch; }
.bd-sidebar-stack { position: static; top: 154px; display: grid; gap: 22px; padding-bottom: 28px; }
.bd-sidebar-card { padding: 22px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.bd-sidebar-card h2 { margin: 0 0 16px; color: #0f172a; font-size: 16px; line-height: 1.4; font-weight: 750; letter-spacing: -.02em; }
.bd-toc ol { list-style: none; margin: 0; padding: 0; }
.bd-toc li { margin: 0; padding: 0; }
.bd-toc a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid #e2e8f0; color: #475569; font-size: 12px; line-height: 1.6; }
.bd-toc a:hover, .bd-toc a[aria-current="location"] { color: #2563eb; border-color: #2563eb; text-decoration: none; }
.bd-toc .bd-toc-subheading a { padding-left: 24px; font-size: 11px; }
.bd-desktop-toc .bd-toc { max-height: 32vh; overflow-y: auto; overscroll-behavior: contain; }
.bd-consultation { position: relative; overflow: hidden; background: #f8fbff; border-top: 3px solid #2563eb; }
.bd-consultation .bd-eyebrow { margin-bottom: 12px; font-size: 10px; }
.bd-consultation h2 { font-size: 23px; margin-bottom: 12px; }
.bd-consultation p { margin: 0 0 16px; color: #475569; font-size: 13px; line-height: 1.8; }
.bd-consultation ul { list-style: none; margin: 0 0 22px; padding: 0; }
.bd-consultation li { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.bd-consultation li i { color: #2563eb; font-size: 10px; }
.bd-page .bd-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: 5px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.bd-page .bd-button:hover { background: #1d4ed8; text-decoration: none; }
.bd-topics { padding: 0; margin: 0; list-style: none; }
.bd-topics li + li { border-top: 1px solid #f1f5f9; }
.bd-topics a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; color: #475569; font-size: 12px; }
.bd-topics small { color: #64748b; }
.bd-mobile-toc { display: none; }
.bd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 34px 0; padding: 22px 0; border-block: 1px solid #e2e8f0; font-size: 13px; }
.bd-share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-share-links a, .bd-share-links button { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid #e2e8f0; border-radius: 50%; background: #fff; color: #475569; cursor: pointer; font-size: 13px; }
.bd-share-links a:hover, .bd-share-links button:hover { border-color: #2563eb; color: #2563eb; text-decoration: none; }
.bd-copy-status { color: #475569; font-size: 12px; }
.bd-author-card { display: flex; gap: 20px; padding: 28px; margin: 0 0 64px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; scroll-margin-top: 160px; }
.bd-author-avatar { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; background: #dbeafe; color: #2563eb; font-size: 30px; font-weight: 800; border-radius: 8px; }
.bd-author-card h2 { margin: 5px 0 8px; color: #0f172a; font-size: 20px; }
.bd-author-card p { margin: 0 0 12px; color: #64748b; font-size: 13px; line-height: 1.8; }
.bd-author-card a { font-size: 12px; font-weight: 700; }
.bd-related { padding: 64px 0 80px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.bd-related-heading { margin-bottom: 30px; text-align: center; }
.bd-related-heading h2 { margin: 8px 0 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.3; color: #0f172a; letter-spacing: -.035em; }
.bd-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bd-related-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.bd-related-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eff6ff; }
.bd-related-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-related-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.bd-related-body .bd-eyebrow { font-size: 9px; }
.bd-related-body h3 { margin: 10px 0; font-size: 18px; line-height: 1.45; letter-spacing: -.02em; }
.bd-related-body h3 a { color: #0f172a; }
.bd-related-body p { margin: 0 0 18px; color: #64748b; font-size: 13px; line-height: 1.8; }
.bd-related-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; color: #64748b; font-size: 10px; }
.bd-read-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; margin-top: 16px; border: 1px solid #dbeafe; border-radius: 5px; font-size: 12px; font-weight: 700; }
.bd-reading-progress { position: fixed; z-index: 20000; top: 0; left: 0; width: 100%; height: 3px; background: #2563eb; transform: scaleX(0); transform-origin: left; pointer-events: none; }
@media (max-width: 1100px) { .bd-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
@media (max-width: 1040px) { .tk-blog-detail .bd-page { padding-top: 124px; } .bd-sidebar-stack { top: 110px; } .bd-content :is(h1,h2,h3,h4,h5,h6), .bd-author-card { scroll-margin-top: 115px; } }
@media (max-width: 900px) {
    .bd-layout { grid-template-columns: minmax(0, 1fr); }
    .bd-article { max-width: 760px; width: 100%; margin-inline: auto; }
    .bd-sidebar-stack { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-desktop-toc { display: none; }
    .bd-mobile-toc { display: block; margin-bottom: 24px; padding: 16px 20px; border: 1px solid #e2e8f0; border-radius: 6px; }
    .bd-mobile-toc summary { color: #0f172a; font-size: 14px; font-weight: 700; cursor: pointer; }
    .bd-mobile-toc[open] summary { margin-bottom: 12px; }
    .bd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-author-card { margin-bottom: 12px; }
}
@media (max-width: 590px) {
    .bd-shell { width: calc(100% - 36px); }
    .bd-breadcrumb { margin-bottom: 24px; font-size: 11px; gap: 7px; }
    .bd-meta { font-size: 11px; gap: 7px; }
    .bd-intro { font-size: 15px; }
    .bd-content { font-size: 15px; line-height: 1.85; }
    .bd-content :is(h1,h2) { font-size: 24px; }
    .bd-content h3 { font-size: 20px; }
    .bd-sidebar-stack, .bd-related-grid { grid-template-columns: minmax(0, 1fr); }
    .bd-author-card { padding: 20px; gap: 14px; }
    .bd-author-avatar { flex-basis: 44px; width: 44px; height: 44px; font-size: 24px; }
    .bd-related { padding: 44px 0 60px; }
    .bd-meta-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Static guides and illustrative case-study resources. */
.bd-sidebar-guides > h2 { padding-bottom: 15px; border-bottom: 2px solid #2563eb; text-align: center; font-size: 18px; }
.bd-guide { border-bottom: 1px solid #f1f5f9; }
.bd-guide:last-child { border-bottom: 0; }
.bd-guide summary { position: relative; padding: 11px 0 11px 17px; list-style: none; color: #475569; font-size: 13px; line-height: 1.6; cursor: pointer; }
.bd-guide summary::-webkit-details-marker { display: none; }
.bd-guide summary::before { content: ''; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; background: #2563eb; }
.bd-guide[open] summary { color: #2563eb; font-weight: 600; }
.bd-guide ol { margin: 0 0 12px; padding-left: 19px; color: #64748b; font-size: 12px; line-height: 1.8; }
.bd-guide li { margin-bottom: 7px; }
.bd-guide > a { display: inline-block; margin: 0 0 15px; font-size: 11px; font-weight: 600; }
.bd-resource-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.bd-resource-heading h2 { margin: 0; font-size: 16px; }
.bd-case-controls { display: flex; gap: 6px; }
.bd-case-controls[hidden], .bd-case-concept[hidden] { display: none; }
.bd-case-controls button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; border-radius: 4px; cursor: pointer; font-size: 10px; }
.bd-case-controls button:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.bd-resource-note { margin: 10px 0 18px; color: #64748b; font-size: 11px; line-height: 1.6; }
.bd-case-concept { min-width: 0; padding: 18px; border: 1px solid #e2e8f0; background: #fff; border-radius: 5px; }
.bd-case-concept:not([hidden]) + .bd-case-concept:not([hidden]) { margin-top: 12px; }
.bd-case-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 15px; border-radius: 8px; background: #eff6ff; color: #2563eb; }
.bd-case-concept .bd-eyebrow { font-size: 9px; }
.bd-case-concept h3 { margin: 9px 0 14px; color: #0f172a; font-size: 18px; line-height: 1.45; }
.bd-case-concept p { margin: 0 0 13px; color: #64748b; font-size: 12px; line-height: 1.8; }
.bd-case-concept p strong { color: #475569; }
.bd-case-concept .bd-read-link { margin-top: 3px; padding: 0; border: 0; font-size: 11px; }
.bd-case-status { display: block; margin: 10px 0 0; color: #64748b; font-size: 10px; text-align: right; }
.bd-case-status:empty { display: none; }
.bd-resource-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12px; font-weight: 600; }
