/* BI Blog Template */
.bi-blog-v2 {
  --bi-ink: #282621;
  --bi-text: #45433f;
  --bi-muted: #8a857d;
  --bi-line: #e8e2d9;
  --bi-stone: #f6f2ec;
  --bi-dark: #1f1e1b;
  --bi-accent: #c4785a;
  --bi-accent-dark: #a95f43;
}

.bi-post { font-family: "Nunito Sans", sans-serif; color: var(--bi-text); }
.bi-post *, .bi-post *::before, .bi-post *::after { box-sizing: border-box; }
.bi-wrap { max-width: 1228px; margin: 0 auto; padding: 0 24px; }

/* reading progress */
.bi-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100000; pointer-events: none; }
.bi-progress span { display: block; height: 100%; width: 0; background: var(--bi-accent); transition: width .1s linear; }

/* hero */
.bi-hero { background: var(--bi-dark); color: #fff; }
.bi-hero-inner { padding-top: 56px; padding-bottom: 56px; max-width: 1228px; }
.bi-hero-inner > * { max-width: 860px; }
.bi-crumbs { font-size: 13px; letter-spacing: .02em; color: rgba(255,255,255,.6); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.bi-crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.bi-crumbs a:hover { color: #fff; }
.bi-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-accent); text-decoration: none; margin-bottom: 16px; }
.bi-kicker:hover { color: #e3a184; }
.bi-post .bi-title { font-size: 52px; line-height: 1.12; font-weight: 700; color: #fff; margin: 0 0 20px; letter-spacing: -.01em; }
.bi-dek { font-size: 20px; line-height: 1.6; color: rgba(255,255,255,.78); margin: 0 0 28px; }
.bi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: 14px; color: rgba(255,255,255,.7); }
.bi-meta a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.bi-meta a:hover { border-color: #fff; }
.bi-meta-author { display: inline-flex; align-items: center; gap: 10px; }
.bi-meta-item { position: relative; }
.bi-meta-item::before { content: ""; position: absolute; left: -15px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: rgba(255,255,255,.35); }
.bi-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bi-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; flex: none; }
.bi-avatar-lg { width: 64px; height: 64px; font-size: 18px; }

.bi-hero-media { background: linear-gradient(var(--bi-dark) 0, var(--bi-dark) 45%, #fff 45%, #fff 100%); }
.bi-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 10; object-fit: cover; }

/* layout */
.bi-body { display: block; padding-top: 56px; padding-bottom: 72px; }
.bi-body.has-toc { display: grid; grid-template-columns: 240px minmax(0, 740px); gap: 72px; justify-content: center; }
.bi-body:not(.has-toc) .bi-article { max-width: 740px; margin: 0 auto; }

/* table of contents */
.bi-blog-v2 .inteco-body-outer-wrapper { overflow: visible; overflow-x: clip; }
.bi-toc-list.is-collapsed .bi-toc-extra { display: none; }
.bi-post .bi-toc-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 16px; padding: 0; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--bi-accent-dark); background: none; border: 0; cursor: pointer; }
.bi-post .bi-toc-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.bi-post .bi-toc-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.bi-post .bi-toc-toggle:hover, .bi-post .bi-toc-toggle.is-active { color: var(--bi-ink); text-decoration: underline; }
.bi-post .bi-copy-field { width: 100%; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--bi-accent); background: #fff; color: var(--bi-ink); }
.bi-share .bi-copy-field { flex: 1 1 240px; }
.bi-toc-actions { display: flex; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bi-line); }
.bi-post .bi-toc-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1; color: var(--bi-ink); background: none; border: 1px solid var(--bi-line); padding: 9px 12px; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.bi-post .bi-toc-btn:hover, .bi-post .bi-toc-btn:focus-visible { border-color: var(--bi-accent); color: var(--bi-accent-dark); }
.bi-post .bi-toc-icon { justify-content: center; width: 36px; padding: 0; align-self: stretch; }
.bi-post .bi-toc-icon svg { display: block; width: 16px; height: 16px; min-width: 16px; flex: none; }
.bi-toc { position: -webkit-sticky; position: sticky; top: 120px; align-self: start; max-height: calc(100vh - 140px); overflow: auto; padding-right: 8px; }
.bi-toc-title, .bi-toc-mobile summary { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-ink); margin: 0 0 14px; }
.bi-toc ol, .bi-toc-mobile ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--bi-line); }
.bi-toc li, .bi-toc-mobile li { margin: 0; }
.bi-toc a, .bi-toc-mobile a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.45; color: var(--bi-muted); text-decoration: none; transition: color .15s, border-color .15s; }
.bi-toc a:hover, .bi-toc-mobile a:hover { color: var(--bi-ink); }
.bi-toc a.is-active { color: var(--bi-ink); border-left-color: var(--bi-accent); font-weight: 600; }
.bi-toc-mobile { display: none; border: 1px solid var(--bi-line); padding: 16px 20px; margin-bottom: 32px; background: var(--bi-stone); }
.bi-toc-mobile summary { cursor: pointer; margin: 0; list-style: none; display: flex; justify-content: space-between; }
.bi-toc-mobile summary::-webkit-details-marker { display: none; }
.bi-toc-mobile summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--bi-accent); }
.bi-toc-mobile[open] summary::after { content: "\2013"; }
.bi-toc-mobile ol { margin-top: 14px; }

/* article typography */
.bi-content { font-size: 18px; line-height: 1.75; color: var(--bi-text); }
.bi-content > *:first-child { margin-top: 0; }
.bi-post .bi-content p { font-size: 18px; line-height: 1.75; margin: 0 0 22px; color: var(--bi-text); }
.bi-post .bi-content h2 { font-size: 32px; line-height: 1.25; font-weight: 400; color: var(--bi-ink); margin: 56px 0 18px; scroll-margin-top: 110px; letter-spacing: -.005em; }
.bi-post .bi-content h3 { font-size: 22px; line-height: 1.35; font-weight: 700; color: var(--bi-ink); margin: 36px 0 12px; scroll-margin-top: 110px; }
.bi-post .bi-content h4 { font-size: 18px; font-weight: 700; color: var(--bi-ink); margin: 28px 0 10px; }
.bi-content a { color: var(--bi-accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bi-content a:hover { color: var(--bi-ink); }
.bi-content strong { color: var(--bi-ink); }
.bi-post .bi-content ul, .bi-post .bi-content ol { margin: 0 0 26px; padding-left: 22px; font-size: inherit; line-height: inherit; }
.bi-post .bi-content li { margin: 0 0 10px; padding-left: 4px; font-size: inherit; line-height: inherit; font-weight: 400; color: var(--bi-text); }
.bi-post .bi-content li p { font-size: inherit; line-height: inherit; margin: 0; }
.bi-post .bi-content li ul, .bi-post .bi-content li ol { margin: 10px 0 0; }
.bi-post .bi-content h2 strong, .bi-post .bi-content h2 b { font-weight: inherit; }
.bi-content ul li::marker { color: var(--bi-accent); }
.bi-content ol li::marker { color: var(--bi-accent); font-weight: 700; }

/* media */
.bi-content figure, .bi-content .wp-block-image { margin: 36px 0; }
.bi-content img { max-width: 100%; height: auto; display: block; }
.bi-content figcaption, .bi-content .wp-element-caption { font-size: 14px; line-height: 1.5; color: var(--bi-muted); margin-top: 12px; text-align: left; }

/* quick answer */
.bi-post .bi-content p.bi-answer { background: var(--bi-stone); border-left: 3px solid var(--bi-accent); padding: 24px 28px; margin: 0 0 36px; font-size: 18px; color: var(--bi-ink); }
.bi-content p.bi-answer > strong:first-child { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-accent-dark); margin-bottom: 8px; }

/* key takeaways */
.bi-takeaways { border: 1px solid var(--bi-line); padding: 28px 32px 12px; margin: 0 0 40px; }
.bi-post .bi-takeaways h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-ink); margin: 0 0 18px; }
.bi-takeaways ul { list-style: none; padding: 0; }
.bi-post .bi-takeaways li { position: relative; padding-left: 30px; }
.bi-takeaways li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--bi-accent); border-bottom: 2px solid var(--bi-accent); transform: rotate(-45deg); }

/* tables */
.bi-content .wp-block-table, .bi-table-scroll { margin: 32px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bi-content table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.55; border: 0; }
.bi-content table th, .bi-content table td { text-align: left; vertical-align: top; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--bi-line); background: none; color: var(--bi-text); }
.bi-content table thead th { background: var(--bi-ink); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.bi-content table tbody tr:nth-child(even) td { background: #faf8f5; }
.bi-content table td:first-child { color: var(--bi-ink); }

/* in-content call to action */
.bi-content blockquote, .bi-content .wp-block-quote { background: var(--bi-dark); color: #fff; border: 0; margin: 44px 0; padding: 32px 36px; font-style: normal; }
.bi-post .bi-content blockquote p { color: rgba(255,255,255,.85); font-size: 19px; line-height: 1.6; margin: 0; }
.bi-content blockquote strong { color: #fff; }
.bi-content blockquote a { color: #f0b296; font-weight: 700; }
.bi-content blockquote a:hover { color: #fff; }
.bi-content blockquote::before, .bi-content blockquote::after { display: none; }

/* FAQ */
.bi-faq { border-top: 1px solid var(--bi-line); margin: 8px 0 32px; }
.bi-faq-item { border-bottom: 1px solid var(--bi-line); padding: 22px 0 6px; }
.bi-post .bi-faq-item h3 { margin: 0 0 10px; font-size: 19px; }
.bi-post .bi-faq-item p { margin-bottom: 16px; }

/* share + author */
.bi-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--bi-line); }
.bi-share-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-ink); margin-right: 8px; }
.bi-share a, .bi-share button { font: inherit; font-size: 14px; color: var(--bi-ink); background: none; border: 1px solid var(--bi-line); padding: 7px 14px; text-decoration: none; cursor: pointer; line-height: 1.3; transition: border-color .15s, color .15s; }
.bi-share a:hover, .bi-share button:hover { border-color: var(--bi-accent); color: var(--bi-accent-dark); }
.bi-author { display: flex; gap: 22px; align-items: flex-start; margin-top: 36px; padding: 28px 30px; background: var(--bi-stone); }
.bi-post .bi-author p { margin: 0; }
.bi-post .bi-author-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-muted); }
.bi-post .bi-author-name { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--bi-ink); margin: 4px 0 10px; }
.bi-author-name a { color: inherit; text-decoration: none; }
.bi-author-name a:hover { color: var(--bi-accent-dark); }
.bi-post .bi-author-bio { font-size: 15px; line-height: 1.65; color: var(--bi-text); }

/* closing CTA */
.bi-cta { background: var(--bi-dark); color: #fff; padding: 64px 0; }
.bi-cta-inner { display: flex; gap: 48px; align-items: center; justify-content: space-between; }
.bi-cta-inner > div:first-child { max-width: 640px; }
.bi-post .bi-cta-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-accent); margin: 0 0 12px; }
.bi-post .bi-cta-title { font-size: 34px; line-height: 1.2; font-weight: 400; color: #fff; margin: 0 0 14px; }
.bi-post .bi-cta-text { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.72); margin: 0; }
.bi-cta-actions { display: flex; flex-direction: column; gap: 12px; flex: none; }
.bi-btn { display: inline-block; text-align: center; padding: 15px 26px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.bi-post a.bi-btn-primary { background: var(--bi-accent); color: #fff; border: 1px solid var(--bi-accent); }
.bi-post a.bi-btn-primary:hover { background: var(--bi-accent-dark); border-color: var(--bi-accent-dark); color: #fff; }
.bi-post a.bi-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.bi-post a.bi-btn-ghost:hover { border-color: #fff; color: #fff; }

/* related */
.bi-related { padding: 72px 0 88px; background: #fff; }
.bi-post .bi-related-title { font-size: 32px; font-weight: 400; color: var(--bi-ink); margin: 0 0 32px; }
.bi-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bi-card { display: block; text-decoration: none; color: inherit; }
.bi-card-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bi-stone); }
.bi-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bi-card:hover .bi-card-media img { transform: scale(1.04); }
.bi-card-body { display: block; padding-top: 18px; }
.bi-card-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-accent-dark); margin-bottom: 8px; }
.bi-card-title { display: block; font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--bi-ink); margin-bottom: 8px; }
.bi-card:hover .bi-card-title { color: var(--bi-accent-dark); }
.bi-card-meta { font-size: 14px; color: var(--bi-muted); }

/* page builder sections kept from older posts */
.bi-page-builder { clear: both; }

/* tablet */
@media (max-width: 1100px) {
  .bi-body.has-toc { display: block; }
  .bi-body.has-toc .bi-article { max-width: 740px; margin: 0 auto; }
  .bi-toc { display: none; }
  .bi-toc-mobile { display: block; }
  .bi-post .bi-title { font-size: 44px; }
}

/* mobile */
@media (max-width: 760px) {
  .bi-wrap { padding: 0 20px; }
  .bi-hero-inner { padding-top: 36px; padding-bottom: 36px; }
  .bi-crumbs { margin-bottom: 20px; }
  .bi-post .bi-title { font-size: 34px; line-height: 1.18; }
  .bi-dek { font-size: 17px; }
  .bi-meta { font-size: 13px; gap: 8px 22px; }
  .bi-meta-author { width: 100%; }
  .bi-meta-author + .bi-meta-item::before { display: none; }
  .bi-hero-media .bi-wrap { padding: 0; }
  .bi-hero-img { aspect-ratio: 4 / 3; }
  .bi-body { padding-top: 36px; padding-bottom: 48px; }
  .bi-content, .bi-post .bi-content p, .bi-content li { font-size: 17px; }
  .bi-post .bi-content h2 { font-size: 27px; margin-top: 44px; }
  .bi-post .bi-content h3 { font-size: 20px; }
  .bi-post .bi-content p.bi-answer { padding: 20px 22px; }
  .bi-takeaways { padding: 22px 22px 6px; }
  .bi-content blockquote, .bi-content .wp-block-quote { padding: 26px 24px; }
  .bi-author { flex-direction: column; gap: 14px; padding: 24px; }
  .bi-cta { padding: 48px 0; }
  .bi-cta-inner { flex-direction: column; align-items: stretch; gap: 28px; }
  .bi-post .bi-cta-title { font-size: 27px; }
  .bi-related { padding: 52px 0 64px; }
  .bi-post .bi-related-title { font-size: 27px; }
  .bi-related-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .bi-progress span, .bi-card-media img { transition: none; }
}
