/* ==========================================================================
   Thought Leadership — listing (/thought-leadership, .tl-listing) and
   article detail (/thought-leadership/{slug}, .tl-detail).
   Moved out of the inline <style> blocks of thought-leadership.php and
   thought-leadership-details.php. Every rule is scoped under .tl-listing / .tl-detail.
   ========================================================================== */

/* ---------- LISTING PAGE ---------- */
/* ===== Thought Leadership listing — own independent styles, all scoped under .tl-listing ===== */
.tl-listing .tl-page-title { font-family: Montserrat, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.2; margin: 0; }

/* cards (markup from tl_render_card) */
.tl-listing .tl-card { position: relative; margin-bottom: 50px; }
.tl-listing .tl-card a { color: #1b1b1c; text-decoration: none; }
.tl-listing .tl-card-body { padding: 24px; border-bottom: 2px solid #5f5f60; }
.tl-listing .tl-card a:hover .tl-card-body { background: #f9f9f9; border-bottom-color: #2249ff; }
/* Title: max 2 lines, fixed 2-line height so all cards align; arrow stays visible */
.tl-listing .tl-card-title { display: flex; align-items: flex-start; gap: 4px; height: 2.4em; font-size: 18px; font-weight: 700; line-height: 1.2; }
.tl-listing .tl-card a:hover .tl-card-title { color: #2249ff; }
.tl-listing .tl-title-text { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-listing .tl-card-title > span { flex-shrink: 0; position: relative; top: 5px; display: inline-block; visibility: hidden; transform: translateX(-20%); transition: .2s ease-in; }
.tl-listing .tl-card a:hover .tl-card-title > span { visibility: inherit; transform: translateX(20%); }
.tl-listing .tl-excerpt { font-size: 15px; line-height: 1.5; color: #555; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl-listing .tl-card-tags { list-style: none; padding: 0; }
.tl-listing .tl-card-tags li { display: inline-block; position: relative; margin-right: 15px; font-size: 14px; }
.tl-listing .tl-card-tags li + li::before { content: ''; position: absolute; left: -9px; top: 4px; width: 1px; height: 14px; background: #1b1b1c; }
.tl-listing .tl-card-tags li:last-child { margin-right: 0; }
.tl-listing .tl-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.tl-listing .tl-card-author span { font-weight: 700; }
.tl-listing .tl-card-author img { border-radius: 50%; width: 30px; height: 30px; margin-right: 10px; }
.tl-listing .tl-card-date { text-align: right; white-space: nowrap; }
.tl-listing .tl-card-date i { margin-right: 10px; }
.tl-listing .tl-empty { padding: 40px 0; text-align: center; }

/* buttons: pill + slide-fill hover (same look as the new bp-* pages) */
.tl-listing .tl-btn { display: inline-block; width: auto; height: 56px; padding: 0 34px; border: 0; border-radius: 50px; line-height: 56px; font-size: 15px; font-weight: 500; color: #fff; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer;
    background: linear-gradient(to right, #0f27a8 50%, #2249ff 50%); background-size: 200% 100%; background-position: right bottom; transition: all .2s ease-in; }
.tl-listing .tl-btn-dark { background-image: linear-gradient(to right, #2249ff 50%, #000 50%); }
.tl-listing .tl-btn:hover { background-position: left bottom; color: #fff; }
.tl-listing .tl-btn:focus-visible { outline: 2px solid #2249ff; outline-offset: 2px; }
.tl-listing .tl-btn[hidden] { display: none; }
.tl-listing .tl-loadmore { margin-bottom: 50px; text-align: center; }

/* bottom CTA band */
.tl-listing .tl-cta-band { background: #e8e8e8; }
.tl-listing .tl-cta-kicker { color: #5f5f60; }
.tl-listing .tl-cta-title { color: #2249ff; font-size: 24px; font-weight: 600; }
.tl-listing .tl-cta-action { display: flex; justify-content: flex-end; }

/* responsive: images never overflow, meta row may wrap on narrow cards */
/* card image: fixed banner ratio so CDN banners of slightly different sizes line up */
.tl-listing .tl-card > a > img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; object-fit: cover; }
.tl-listing .tl-card-author img { flex-shrink: 0; }
.tl-listing .tl-card-meta { flex-wrap: wrap; }
.tl-listing .tl-card-author { display: flex; align-items: center; min-width: 0; }
.tl-listing .tl-card-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* tags: always one line (extra tags hidden) so cards in a row stay the same height */
.tl-listing .tl-card-tags { height: 20px; line-height: 20px; overflow: hidden; }
/* equal-height cards: author/date row + bottom border line up across a row */
.tl-listing #tlItems > [class*="col-"] { display: flex; flex-direction: column; }
.tl-listing .tl-card { flex: 1 1 auto; display: flex; flex-direction: column; }
.tl-listing .tl-card > a { flex: 1 1 auto; display: flex; flex-direction: column; }
.tl-listing .tl-card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.tl-listing .tl-card-meta { margin-top: auto; }

@media (max-width: 1366px) {
    .tl-listing .tl-page-title { font-size: 32px; }
    .tl-listing .tl-card { margin-bottom: 40px; }
    .tl-listing .tl-card-body { padding: 20px; }
    .tl-listing .tl-card-title { font-size: 17px; }
    .tl-listing .tl-excerpt { font-size: 14px; }
    .tl-listing .tl-card-meta, .tl-listing .tl-card-tags li { font-size: 12px; }
    .tl-listing .tl-card-tags li + li::before { top: 5px; height: 11px; }
    .tl-listing .tl-cta-title { font-size: 22px; }
}
@media (max-width: 1199.98px) {
    .tl-listing .tl-card-body { padding: 18px 15px; }
    .tl-listing .tl-card-date i { margin-right: 6px; }
}
@media (max-width: 991.98px) {
    .tl-listing .tl-page-title { font-size: 30px; }
    .tl-listing .tl-card { margin-bottom: 30px; }
    .tl-listing .tl-cta-title { font-size: 20px; }
    .tl-listing .tl-btn { height: 50px; line-height: 50px; padding: 0 28px; }
}
@media (max-width: 768px) {
    .tl-listing .tl-card-title > span { display: none; }
}
@media (max-width: 767.98px) {
    .tl-listing .tl-hero.space50 { padding: 30px 0; }
    .tl-listing .tl-cta-band.space50 { padding: 35px 0; }
    .tl-listing .tl-cta-action { justify-content: flex-start; margin-top: 15px; }
    .tl-listing .tl-card-title { height: auto; }
    .tl-listing .tl-loadmore { margin-bottom: 35px; }
}
@media (max-width: 431px) {
    .tl-listing .tl-page-title { font-size: 26px; }
    .tl-listing .tl-card { margin-bottom: 25px; }
    .tl-listing .tl-card-body { padding: 15px 0; }
    .tl-listing .tl-card-title { font-size: 17px; }
    .tl-listing .tl-cta-title { font-size: 18px; }
    .tl-listing .tl-btn { height: 46px; line-height: 46px; padding: 0 24px; font-size: 14px; }
}

/* ---------- ARTICLE DETAIL PAGE ---------- */
/* ===== Thought Leadership article — own independent styles, all scoped under .tl-detail ===== */
.tl-detail i { font-synthesis: initial; }
.tl-detail .tl-preview-bar { background: #fff3cd; color: #664d03; padding: 10px 16px; text-align: center; font-weight: 600; }

/* back link */
.tl-detail .tl-back { margin-bottom: 30px; }
.tl-detail .tl-back a { color: #1b1b1c; text-decoration: none; }
.tl-detail .tl-back a i { color: #ffd822; }
.tl-detail .tl-back a:hover, .tl-detail .tl-back a:hover i { color: #2249ff; }

/* title row */
.tl-detail .tl-title { font-family: Montserrat, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.2; margin-bottom: 30px; }
.tl-detail .tl-top-right { background: #ffd822; padding: 20px; }
.tl-detail .tl-meta-label { color: #5f5f60; }
.tl-detail .tl-author-list { list-style: none; padding: 0; margin: 0; }
.tl-detail .tl-author-list li { margin-bottom: 15px; overflow: hidden; }
.tl-detail .tl-author-list img { float: left; border-radius: 50%; width: 30px; height: 30px; margin-right: 10px; }
.tl-detail .tl-author-list span { display: block; font-size: 14px; line-height: 1.3; }
.tl-detail .tl-author-list b { display: block; }
.tl-detail .tl-updated span { color: #5f5f60; font-size: 14px; }

/* banner + category/tag chips */
.tl-detail .tl-banner img { width: 100%; height: auto; object-fit: cover; }
.tl-detail .tl-chips { list-style: none; padding: 0; margin: 15px 0 0; }
.tl-detail .tl-chips li { display: inline-block; position: relative; margin-right: 15px; }
.tl-detail .tl-chips li::before { content: ''; position: absolute; right: -9px; top: 4px; width: 1px; height: 16px; background: #1b1b1c; }
.tl-detail .tl-chips li:last-child { margin-right: 0; }
.tl-detail .tl-chips li:last-child::before { display: none; }

/* sidebar: Table of Content */
.tl-detail .tl-aside { position: sticky; top: 60px; }
.tl-detail .tl-toc { border-left: 1px solid #ccc; height: 100%; padding: 0 0 0 20px; }
.tl-detail .tl-toc-title { color: #5f5f60; font-weight: 700; margin-bottom: 30px; }
.tl-detail .tl-toc ul { list-style: none; padding: 0; margin: 0; }
.tl-detail .tl-toc li { padding-left: 10px; margin-bottom: 15px; font-size: 14px; line-height: 1.2; }
.tl-detail .tl-toc li:last-child { margin-bottom: 0; }
.tl-detail .tl-toc a { display: block; position: relative; font-weight: 500; color: #1b1b1c; text-decoration: none; }
.tl-detail .tl-toc a.active, .tl-detail .tl-toc a:hover { color: #2249ff; padding-left: 10px; border-left: 5px solid #2249ff; margin-left: -15px; }

/* article body (HTML from the admin editor) */
.tl-detail .tl-body { padding-right: 30px; overflow-wrap: anywhere; }
.tl-detail .tl-body p, .tl-detail .tl-body ul, .tl-detail .tl-body ol { font-size: 18px; font-weight: 400; }
.tl-detail .tl-body h2, .tl-detail .tl-body h3, .tl-detail .tl-body h4, .tl-detail .tl-body h5, .tl-detail .tl-body h6 { line-height: 1.2; font-weight: 700; margin-bottom: 30px; }
.tl-detail .tl-body > h2, .tl-detail .tl-body > h3, .tl-detail .tl-body > h4, .tl-detail .tl-body > h5, .tl-detail .tl-body > h6 { margin-top: 50px; scroll-margin-top: 80px; }
.tl-detail .tl-body > :first-child { margin-top: 0; }
.tl-detail .tl-body h2 { font-size: 36px; }
.tl-detail .tl-body h3 { font-size: 32px; }
.tl-detail .tl-body h4 { font-size: 26px; }
.tl-detail .tl-body h5 { font-size: 24px; }
.tl-detail .tl-body h6 { font-size: 22px; }
.tl-detail .tl-body img { max-width: 100%; height: auto; }
.tl-detail .tl-body > table { display: block; max-width: 100%; overflow-x: auto; } /* plain tables scroll on mobile */

/* content blocks (inserted from admin "Blocks") */
.tl-detail .tl-list-dot li { list-style: disc; display: list-item; margin-left: 20px; }
.tl-detail .tl-list-arrow { list-style: none; padding-left: 0; }
.tl-detail .tl-list-arrow li { background: url(../img/orange-arrow-right.svg) 2px 7px no-repeat; padding-left: 30px; margin-bottom: 15px; }
.tl-detail .tl-list-num li { list-style: decimal; display: list-item; margin-left: 25px; margin-bottom: 15px; }
.tl-detail .tl-list-num li::marker { color: #2249ff; }
.tl-detail .tl-table-wrap { margin-bottom: 1rem; }
.tl-detail .tl-table td, .tl-detail .tl-table th { border: 1px solid #1b1b1c; font-size: 20px; }
.tl-detail .tl-cta { margin: 30px 0; padding: 20px; border: 1px solid #a3a3a4; background: #ecebeb; }
.tl-detail .tl-cta p { font-size: 16px; }
.tl-detail .tl-cta-title { position: relative; font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 30px; }
.tl-detail .tl-cta-title::after { content: ''; position: absolute; display: block; width: 100px; height: 2px; margin-top: 10px; background: #1b1b1c; }
.tl-detail .tl-highlight { background: #ecebeb; padding: 30px; }
.tl-detail .tl-highlight li { margin-bottom: 10px; }
.tl-detail .tl-highlight-title { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.tl-detail .tl-link-box { border-top: 1px solid #5f5f60; border-bottom: 1px solid #5f5f60; }
.tl-detail .tl-link-box-title { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.tl-detail .tl-link-box-cta { font-size: 18px; font-weight: 700; text-transform: uppercase; color: #1b1b1c; }
.tl-detail .tl-quote { position: relative; margin: 50px 0 50px 50px; font-size: 1.25rem; }
.tl-detail .tl-quote::before { content: '\F6B0'; position: absolute; left: -56px; font-family: bootstrap-icons; font-size: 40px; color: #ffd822; }
.tl-detail .tl-quote-author { position: relative; margin: 50px 0 50px 50px; }
.tl-detail .tl-quote-author::before { content: ''; position: absolute; left: -40px; width: 10px; height: 100%; background: #ffd822; }
.tl-detail .tl-quote-text { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.tl-detail .tl-quote-author p { font-size: 20px; }
.tl-detail .tl-figure { text-align: center; }
.tl-detail .tl-video { width: 100%; margin: 0 auto 1rem; aspect-ratio: 16 / 9; }
.tl-detail .tl-video iframe { width: 100%; height: 100%; border: 0; }
.tl-detail .tl-faq .accordion-item { margin-bottom: .5rem; border-radius: 10px; border-top: 1px solid rgba(0, 0, 0, .125); background: #f7f7f7; }
.tl-detail .tl-faq .accordion-button { border-radius: 10px; }
.tl-detail .tl-faq .accordion-button h5 { font-size: 20px; margin-bottom: 0; }
.tl-detail .tl-faq .accordion-button:focus { box-shadow: none; }
.tl-detail .tl-faq .accordion-button:not(.collapsed) { color: #1b1b1c; background-color: #ffd822; border-radius: 10px 10px 0 0; }
.tl-detail .tl-faq .accordion-collapse.show { border-radius: 0 0 10px 10px; }
.tl-detail .tl-body .btn-yellow { display: inline-block; background: #ffd822; color: #1b1b1c; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 5px; text-decoration: none; text-align: center; letter-spacing: .5px; transition: opacity .2s; }
.tl-detail .tl-body .btn-yellow:hover { opacity: .85; }
.tl-detail .tl-body ol:not([class]) li, .tl-detail .tl-body ul:not([class]) li { margin-bottom: 10px; }
.tl-detail .tl-icon-list { list-style: none; padding-left: 0; }
.tl-detail .tl-icon-list li { position: relative; padding-left: 34px; margin-bottom: 15px; }
.tl-detail .tl-icon-list li::before { content: '\F26A'; position: absolute; left: 0; top: 1px; font-family: bootstrap-icons; font-size: 20px; line-height: 1.2; color: #2249ff; } /* bi-check-circle-fill */
.tl-detail .tl-icon-cards { margin-bottom: 1rem; }
.tl-detail .tl-icon-card { height: 100%; padding: 25px 20px; background: #f7f7f7; border-top: 4px solid #ffd822; }
.tl-detail .tl-icon-card .bi { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #ffd822; color: #1b1b1c; font-size: 24px; margin-bottom: 15px; }
.tl-detail .tl-icon-card-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tl-detail .tl-icon-card p { font-size: 16px; margin-bottom: 0; }


.tl-detail .tl-label { color: #5f5f60; }

/* related articles */
.tl-detail .tl-related { background: #e8e8e8; }
.tl-detail .tl-related-title { font-size: 24px; font-weight: 600; line-height: 1.2; margin-bottom: 15px; }
.tl-detail .tl-related-title a { color: #1b1b1c; text-decoration: none; }
.tl-detail .tl-related-title a:hover { color: #2249ff; }
.tl-detail .tl-related-author { font-size: 14px; }
.tl-detail .tl-related-author img { border-radius: 50%; width: 30px; height: 30px; margin-right: 10px; }

/* back to top */
.tl-detail .tl-totop { display: none; position: fixed; right: 2px; top: 75%; z-index: 20; width: 50px; height: 50px; padding: 15px 10px 10px; border-radius: 50%; background: #fdd623; color: #000; text-align: center; cursor: pointer; }

/* ---- responsive (detail) ---- */
/* tighter vertical rhythm: banner + content were stacking 100px+ of empty space */
.tl-detail .tl-banner.space50 { padding: 40px 0 0; }
.tl-detail .tl-middle.pmt-50 { margin-top: 50px; }
.tl-detail .tl-related-author { display: flex; align-items: center; }
.tl-detail .tl-related-author img { flex-shrink: 0; }
/* tables: never break words letter-by-letter (body uses overflow-wrap:anywhere); scroll sideways instead */
.tl-detail .tl-body table { overflow-wrap: normal; word-break: normal; }
.tl-detail .tl-body table th, .tl-detail .tl-body table td { overflow-wrap: normal; word-break: normal; vertical-align: top; }
.tl-detail .tl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tl-detail .tl-body iframe, .tl-detail .tl-body video { max-width: 100%; }
.tl-detail .tl-body pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }

@media (min-width: 992px) {
    .tl-detail .tl-top .row { align-items: flex-start; }
}
@media (max-width: 1366px) {
    .tl-detail .tl-title { font-size: 32px; }
    .tl-detail .tl-body p, .tl-detail .tl-body ul, .tl-detail .tl-body ol { font-size: 17px; }
    .tl-detail .tl-body h2 { font-size: 30px; }
    .tl-detail .tl-body h3 { font-size: 26px; }
    .tl-detail .tl-body h4 { font-size: 23px; }
    .tl-detail .tl-body h5 { font-size: 21px; }
    .tl-detail .tl-body h6 { font-size: 19px; }
    .tl-detail .tl-body h2, .tl-detail .tl-body h3, .tl-detail .tl-body h4, .tl-detail .tl-body h5, .tl-detail .tl-body h6 { margin-bottom: 20px; }
    .tl-detail .tl-body > h2, .tl-detail .tl-body > h3, .tl-detail .tl-body > h4, .tl-detail .tl-body > h5, .tl-detail .tl-body > h6 { margin-top: 40px; }
    .tl-detail .tl-table td, .tl-detail .tl-table th { font-size: 17px; }
    .tl-detail .tl-cta-title, .tl-detail .tl-highlight-title, .tl-detail .tl-link-box-title, .tl-detail .tl-quote-text { font-size: 22px; }
    .tl-detail .tl-related-title { font-size: 21px; }
    .tl-detail .tl-related-author { font-size: 12px; }
}
@media (max-width: 1199.98px) {
    .tl-detail .tl-title { font-size: 30px; }
    .tl-detail .tl-body { padding-right: 15px; }
    .tl-detail .tl-icon-card { padding: 20px 15px; }
    .tl-detail .tl-icon-card-title { font-size: 18px; }
    .tl-detail .tl-icon-card p { font-size: 15px; }
    .tl-detail .tl-toc { padding-left: 15px; }
}
@media (max-width: 991.98px) {
    .tl-detail .tl-back { margin-bottom: 20px; }
    .tl-detail .tl-title { font-size: 28px; margin-bottom: 0; }
    .tl-detail .tl-top-right { background: transparent; padding: 0; margin-top: 20px; }
    .tl-detail .tl-banner.space50 { padding-top: 30px; }
    .tl-detail .tl-middle.pmt-50 { margin-top: 30px; }
    .tl-detail .tl-aside { position: static; }
    /* TOC above the article on tablet/mobile: compact box instead of a side rail */
    .tl-detail .tl-toc { height: auto; border-left: 4px solid #ffd822; background: #f7f7f7; padding: 20px; }
    .tl-detail .tl-toc-title { margin-bottom: 15px; }
    .tl-detail .tl-toc li { padding-left: 0; margin-bottom: 12px; }
    .tl-detail .tl-toc a.active, .tl-detail .tl-toc a:hover { border-left: 0; margin-left: 0; padding-left: 0; }
    .tl-detail .tl-body { padding-right: 0; margin-top: 30px; }
    .tl-detail .tl-related .col-lg-4 { margin-bottom: 30px; }
    .tl-detail .tl-related .col-lg-4:last-child { margin-bottom: 0; }
}
@media (max-width: 767.98px) {
    .tl-detail .tl-article.space50, .tl-detail .tl-related.space50 { padding: 30px 0; }
    .tl-detail .tl-body p, .tl-detail .tl-body ul, .tl-detail .tl-body ol { font-size: 16px; }
    .tl-detail .tl-body h2 { font-size: 26px; }
    .tl-detail .tl-body h3 { font-size: 23px; }
    .tl-detail .tl-body h4 { font-size: 21px; }
    .tl-detail .tl-body h5 { font-size: 19px; }
    .tl-detail .tl-body h6 { font-size: 18px; }
    .tl-detail .tl-body > h2, .tl-detail .tl-body > h3, .tl-detail .tl-body > h4, .tl-detail .tl-body > h5, .tl-detail .tl-body > h6 { margin-top: 35px; }
    .tl-detail .tl-table { min-width: 520px; } /* scrolls inside .table-responsive instead of squeezing */
    .tl-detail .tl-table td, .tl-detail .tl-table th { font-size: 15px; }
    .tl-detail .tl-icon-cards > [class*="col-"] { margin-bottom: 15px; }
    .tl-detail .tl-cta { padding: 18px; margin: 25px 0; }
    .tl-detail .tl-cta-title { margin-bottom: 20px; }
    .tl-detail .tl-cta .btn-yellow, .tl-detail .tl-cta .row > [class*="col-"]:last-child { margin-top: 10px; }
    .tl-detail .tl-highlight { padding: 20px; }
    .tl-detail .tl-quote { margin: 35px 0 35px 40px; font-size: 1.1rem; }
    .tl-detail .tl-quote::before { left: -44px; font-size: 32px; }
    .tl-detail .tl-quote-author { margin: 35px 0 35px 25px; }
    .tl-detail .tl-quote-author::before { left: -25px; width: 6px; }
    .tl-detail .tl-quote-author p { font-size: 17px; }
    .tl-detail .tl-link-box .row > [class*="col-"] + [class*="col-"] { margin-top: 12px; }
    .tl-detail .tl-link-box-cta { font-size: 16px; }
    .tl-detail .tl-faq .accordion-button h5 { font-size: 17px; }
    .tl-detail .tl-totop { right: 12px; top: auto; bottom: 90px; width: 44px; height: 44px; padding: 11px 8px 8px; }
}
@media (max-width: 431px) {
    .tl-detail .tl-title { font-size: 24px; }
    .tl-detail .tl-body h2 { font-size: 23px; }
    .tl-detail .tl-body h3, .tl-detail .tl-body h4 { font-size: 20px; }
    .tl-detail .tl-body h5, .tl-detail .tl-body h6 { font-size: 18px; }
    .tl-detail .tl-cta-title, .tl-detail .tl-highlight-title, .tl-detail .tl-quote-text, .tl-detail .tl-link-box-title { font-size: 19px; }
    .tl-detail .tl-related-title { font-size: 19px; }
    .tl-detail .tl-chips li { font-size: 14px; }
}
