/* BADEN BOWER EDITORIAL STYLE. Navy: var(--brand-navy,#0B1E3D), Gold: var(--brand-gold,#C9A84C), Cream: var(--brand-cream,#F7F5F0). */
  #bb *, #bb *::before, #bb *::after { box-sizing: border-box; }
  #bb h1, #bb h2, #bb h3, #bb h4, #bb p, #bb ul, #bb li { margin: 0; padding: 0; }
  #bb {
    font-family: 'Radio Canada', sans-serif;
    color: #374151; line-height: 1.75; font-size: 16px; background: #ffffff;
  }

  .bb-pw  { max-width: 1200px !important; margin: 0 auto !important; padding: 0 48px !important; }
  .bb-pw-wide  { max-width: 1200px !important; margin: 0 auto !important; padding: 0 48px !important; } .bb-pw-wide > .bb-pw { padding-left: 0 !important; padding-right: 0 !important; }
  .bb-ps  { padding: 56px 0 !important; }

  /* Eyebrow */
  .bb-eyebrow {
    font-family: 'Newsreader', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand-gold,#C9A84C);
    margin-bottom: 14px !important;
    display: block;
  }

  /* Headings */
  .bb-h2 {
    font-family: 'Newsreader', sans-serif;
    font-size: clamp(24px, 2.8vw, 30px); font-weight: 700;
    color: var(--brand-navy,#0B1E3D); line-height: 1.2; margin: 0 0 20px !important;
    letter-spacing: -.01em;
  }

  /* Body paragraphs */
  #bb .bb-prose p {
    font-size: 16px; color: #374151; line-height: 1.85; margin: 0 0 18px !important;
  }
  #bb .bb-prose p:last-child { margin-bottom: 0 !important; }
  #bb .bb-prose a { color: var(--brand-navy,#0B1E3D); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(201,168,76,.55); transition: color .2s, border-color .2s; }
  #bb .bb-prose a:hover { color: var(--brand-gold,#C9A84C); border-color: var(--brand-gold,#C9A84C); }
  #bb .bb-prose strong { color: var(--brand-navy,#0B1E3D); font-weight: 700; }

  /* Buttons */
  .bb-btn-gold {
    display: inline-block; background: var(--brand-gold,#C9A84C); color: #ffffff !important;
    font-family: 'Newsreader', sans-serif; font-size: 14px; font-weight: 700;
    padding: 13px 28px !important; border-radius: 8px;
    text-decoration: none !important; transition: background .2s;
  }
  .bb-btn-gold:hover { background: #b8973f; }
  .bb-btn-navy {
    display: inline-block; background: var(--brand-navy,#0B1E3D); color: #ffffff !important;
    font-family: 'Newsreader', sans-serif; font-size: 14px; font-weight: 700;
    padding: 13px 28px !important; border-radius: 8px;
    text-decoration: none !important; transition: background .2s;
  }
  .bb-btn-navy:hover { background: #122847; }

  /* KEY POINTS callout (cream box with bullets) */
  #bb-keypoints {
    background: var(--brand-cream,#F7F5F0);
    border-left: 4px solid var(--brand-gold,#C9A84C);
    border-radius: 4px;
    padding: 28px 32px !important;
    margin-top: 8px !important;
  }
  #bb-keypoints h2 {
    font-family: 'Newsreader', sans-serif;
    font-size: 17px; font-weight: 700; color: var(--brand-navy,#0B1E3D);
    margin: 0 0 16px !important;
    text-transform: uppercase; letter-spacing: .06em;
  }
  #bb-keypoints ul { list-style: none; padding: 0; margin: 0; }
  #bb-keypoints li {
    font-size: 14.5px; color: #374151; line-height: 1.7;
    padding: 8px 0 8px 26px !important;
    position: relative;
    border-bottom: 1px solid rgba(11,30,61,.07);
  }
  #bb-keypoints li:last-child { border-bottom: none; }
  #bb-keypoints li::before {
    content: "\2713"; color: var(--brand-gold,#C9A84C); font-weight: 700; font-size: 14px;
    position: absolute; left: 4px; top: 8px;
  }

  /* TABLE OF CONTENTS */
  #bb-toc {
    background: #ffffff;
    border: 1px solid #E2E0DA;
    border-radius: 8px;
    padding: 24px 28px !important;
    margin-top: 32px !important;
  }
  #bb-toc h3 {
    font-family: 'Newsreader', sans-serif;
    font-size: 12px; font-weight: 700; color: #888;
    margin: 0 0 14px !important;
    text-transform: uppercase; letter-spacing: .12em;
  }
  #bb-toc ol {
    list-style: none; padding: 0; margin: 0;
    counter-reset: toc;
  }
  #bb-toc li {
    counter-increment: toc;
    padding: 6px 0 !important; line-height: 1.5;
  }
  #bb-toc li::before {
    content: counter(toc) ". ";
    color: var(--brand-gold,#C9A84C); font-weight: 700; font-family: 'Newsreader', sans-serif;
    margin-right: 6px;
  }
  #bb-toc a {
    color: var(--brand-navy,#0B1E3D); text-decoration: none; font-size: 14.5px;
    transition: color .2s;
  }
  #bb-toc a:hover { color: var(--brand-gold,#C9A84C); }

  /* SECTION DIVIDER */
  .bb-divider { height: 1px; background: #F0EDE7; margin: 0 0 40px !important; }

  /* RANKINGS section: cream background, 10 firms as cards */
  #bb-rankings { background: #F7F9FC; padding: 60px 0 !important; }
  .bb-rank-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px !important;  list-style: none; padding-left: 0; margin-left: 0 !important; }
  .bb-rank-card {
    background: #ffffff;
    border: 1px solid #E2E0DA;
    border-radius: 10px; padding: 28px 32px !important;
    transition: border-color .2s, box-shadow .2s;
   list-style: none; display: block; }
  .bb-rank-card:hover { border-color: var(--brand-gold,#C9A84C); box-shadow: 0 4px 16px rgba(11,30,61,.06); }
  .bb-rank-card.featured {
    border: 2px solid var(--brand-gold,#C9A84C);
    box-shadow: 0 4px 20px rgba(201,168,76,.12);
  }
  .bb-rank-title {
    font-family: 'Newsreader', sans-serif;
    font-size: 22px; font-weight: 700; color: var(--brand-navy,#0B1E3D);
    margin: 0 0 4px !important; line-height: 1.2;
  }
  .bb-rank-title .bb-rank-n {
    color: var(--brand-gold,#C9A84C); margin-right: 6px;
  }
  .bb-rank-spec {
    font-family: 'Newsreader', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--brand-gold,#C9A84C);
    margin-bottom: 14px !important; display: block;
  }
  .bb-rank-desc { font-size: 15px; color: #4B5563; line-height: 1.75; }
  .bb-rank-badge {
    display: inline-block; background: var(--brand-gold,#C9A84C); color: #ffffff;
    font-family: 'Newsreader', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 12px !important; border-radius: 100px;
    margin-bottom: 10px !important;
  }

  /* STATISTICS TABLE */
  #bb-stats { background: #ffffff; }
  .bb-stats-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: #ffffff; border-radius: 10px; overflow: hidden;
    border: 1px solid #E2E0DA;
    font-size: 14.5px; margin-top: 16px !important;
  }
  .bb-stats-table th, .bb-stats-table td {
    padding: 14px 18px !important; text-align: left;
    border-bottom: 1px solid #F0EDE7;
  }
  .bb-stats-table thead th {
    background: var(--brand-navy,#0B1E3D); color: #ffffff; font-weight: 700;
    font-family: 'Newsreader', sans-serif; font-size: 12px;
    letter-spacing: .04em; text-transform: uppercase;
  }
  .bb-stats-table tbody tr:last-child td { border-bottom: none; }
  .bb-stats-table tbody tr:nth-child(even) { background: #FAFAF7; }
  .bb-stats-table .bb-metric { color: var(--brand-navy,#0B1E3D); font-weight: 600; }
  .bb-stats-table .bb-figure {
    font-family: 'Newsreader', sans-serif;
    font-weight: 700; color: var(--brand-navy,#0B1E3D);
  }
  .bb-stats-table .bb-source { color: #888; font-style: italic; font-size: 13px; }

  /* INLINE NAVY CTA STRIP */
  #bb-cta-strip {
    background: var(--brand-navy,#0B1E3D);
    padding: 44px 0 !important;
    text-align: center;
  }
  #bb-cta-strip .bb-pw { max-width: 720px !important; }
  #bb-cta-strip p {
    font-size: 16px; color: rgba(255,255,255,.85); line-height: 1.65;
    margin: 0 0 22px !important;
  }
  #bb-cta-strip strong { color: var(--brand-gold,#C9A84C); font-family: 'Newsreader', sans-serif; font-weight: 700; }

  /* COMPARISON TABLE */
  #bb-tbl { background: #F7F9FC; }
  .bb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 16px !important; }
  .bb-tbl-cmp {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: #ffffff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(11,30,61,.04);
    font-size: 14px; min-width: 720px;
  }
  .bb-tbl-cmp th, .bb-tbl-cmp td {
    padding: 14px 16px !important; text-align: left;
    border-bottom: 1px solid #F0EDE7; vertical-align: top;
  }
  .bb-tbl-cmp thead th {
    background: var(--brand-navy,#0B1E3D); color: #ffffff; font-weight: 700;
    font-family: 'Newsreader', sans-serif; font-size: 12px;
    letter-spacing: .04em;
  }
  .bb-tbl-cmp thead th.bb-col { background: var(--brand-gold,#C9A84C); color: #ffffff; }
  .bb-tbl-cmp tbody tr:last-child td { border-bottom: none; }
  .bb-tbl-cmp tbody tr:nth-child(even) { background: #FAFAF7; }
  .bb-tbl-cmp .feature {
    font-family: 'Newsreader', sans-serif;
    font-weight: 700; color: var(--brand-navy,#0B1E3D);
  }
  .bb-tbl-cmp .yes { color: #1B8A5A; font-weight: 600; }
  .bb-tbl-cmp .no  { color: #C0392B; }
  .bb-tbl-cmp .bb-col-cell { background: rgba(201,168,76,.05); }

  /* FAQ */
  #bb-faq { background: #ffffff; overflow-x: clip; }
  details.bb-faq-item {
    border-bottom: 1px solid #E2E0DA;
    padding: 20px 0 !important;
  }
  details.bb-faq-item summary {
    list-style: none; cursor: pointer;
    font-family: 'Newsreader', sans-serif;
    font-weight: 700; font-size: 16px; color: var(--brand-navy,#0B1E3D);
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
  }
  details.bb-faq-item summary::-webkit-details-marker { display: none; }
  details.bb-faq-item summary::after {
    content: "+"; font-size: 22px; color: var(--brand-gold,#C9A84C);
    font-weight: 400; flex-shrink: 0; transition: transform .2s;
  }
  details.bb-faq-item[open] summary::after { content: "\2212"; }
  details.bb-faq-item p {
    margin: 14px 0 0 !important; font-size: 14.5px;
    color: #4B5563; line-height: 1.8;
  }
  details.bb-faq-item a { color: var(--brand-navy,#0B1E3D); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(201,168,76,.55); transition: color .2s, border-color .2s; }
  details.bb-faq-item a:hover { color: var(--brand-gold,#C9A84C); border-color: var(--brand-gold,#C9A84C); }

  /* CLOSING CTA: full-width gold background, navy text, wider container. !important required to override Elementor parent container styles. */
  .bb-faq-end {
    background: var(--brand-gold,#C9A84C) !important;
    background-color: var(--brand-gold,#C9A84C) !important;
    text-align: center !important;
    margin-top: 56px !important;
    padding: 64px 24px !important;
    border-radius: 0 !important;
    /* Full-width breakout: escape any Elementor parent container. Uses negative margin trick. */
    position: relative !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
  }
  .bb-faq-end-inner {
    max-width: 880px !important;
    margin: 0 auto !important;
  }
  .bb-faq-end h3 {
    font-family: 'Newsreader', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--brand-navy,#0B1E3D) !important;
    margin: 0 0 16px !important;
    line-height: 1.2 !important;
  }
  .bb-faq-end p {
    color: rgba(11,30,61,.82) !important;
    margin: 0 auto 28px !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    max-width: 720px !important;
  }
  .bb-faq-end .bb-btn-gold,
  .bb-faq-end a.bb-btn-gold {
    background: var(--brand-navy,#0B1E3D) !important;
    background-color: var(--brand-navy,#0B1E3D) !important;
    color: #ffffff !important;
    padding: 15px 36px !important;
    font-size: 15px !important;
    border: none !important;
  }
  .bb-faq-end .bb-btn-gold:hover,
  .bb-faq-end a.bb-btn-gold:hover {
    background: #122847 !important;
    background-color: #122847 !important;
  }

  @media (max-width: 900px) {
    .bb-pw, .bb-pw-wide { padding: 0 24px !important; }
    .bb-ps { padding: 44px 0 !important; }
    #bb-rankings { padding: 48px 0 !important; }
    .bb-rank-card { padding: 22px 22px !important; }
    .bb-rank-title { font-size: 19px; }
    #bb-keypoints { padding: 22px 24px !important; }
    #bb-cta-strip { padding: 36px 0 !important; }
    .bb-faq-end { padding: 48px 24px !important; }
    .bb-faq-end h3 { font-size: 24px; }
    .bb-faq-end p { font-size: 15px; }
  }

  /* ================= TABLE OF CONTENTS (refined) ================= */
  #bb-toc {
    background: linear-gradient(180deg,#FFFFFF 0%,#FCFBF8 100%);
    border: 1px solid #E6E3DB; border-radius: 10px;
    padding: 0 !important; margin-top: 32px !important;
    overflow: hidden; box-shadow: 0 1px 3px rgba(11,30,61,.05);
  }
  #bb-toc h3 {
    font-family: 'Newsreader', sans-serif;
    font-size: 11.5px; font-weight: 700; color: var(--brand-navy,#0B1E3D);
    margin: 0 !important; padding: 15px 26px 14px !important;
    text-transform: uppercase; letter-spacing: .14em;
    background: var(--brand-cream,#F7F5F0); border-bottom: 1px solid #E6E3DB;
    display: flex; align-items: center; gap: 11px;
  }
  #bb-toc h3::before {
    content: ""; display: block; flex: 0 0 auto;
    width: 12px; height: 2px; background: var(--brand-gold,#C9A84C);
    box-shadow: 0 4px 0 var(--brand-gold,#C9A84C), 0 8px 0 var(--brand-gold,#C9A84C);
    margin-bottom: 8px;
  }
  #bb-toc ol {
    list-style: none; margin: 0 !important;
    padding: 12px 14px 16px !important;
    counter-reset: toc;
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px;
  }
  #bb-toc li {
    counter-increment: toc; border: none;
    padding: 0 !important; margin: 0 !important; line-height: 1.45;
  }
  #bb-toc li::before { content: none !important; margin: 0 !important; }
  #bb-toc li a {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 12px; border-radius: 7px;
    font-size: 14.5px; font-weight: 500; color: var(--brand-navy,#0B1E3D); text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }
  #bb-toc li a::before {
    content: counter(toc, decimal-leading-zero);
    flex: 0 0 auto; min-width: 20px; padding-top: 2px;
    font-family: 'Newsreader', sans-serif;
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--brand-gold,#C9A84C);
  }
  #bb-toc li a:hover { background: var(--brand-cream,#F7F5F0); color: var(--brand-navy,#0B1E3D); transform: translateX(2px); }
  #bb-toc li a:hover::before { color: var(--brand-navy,#0B1E3D); }
  #bb-toc li a:focus-visible { outline: 2px solid var(--brand-gold,#C9A84C); outline-offset: 2px; }

  /* ================= VIDEO / YOUTUBE EMBED ================= */
  .bb-video-card {
    background: #FFFFFF; border: 1px solid #E6E3DB; border-radius: 12px;
    overflow: hidden; box-shadow: 0 3px 14px rgba(11,30,61,.06);
    margin-top: 26px;
  }
  .bb-video-frame { position: relative; width: 100%; padding-top: 56.25%; background: var(--brand-navy,#0B1E3D); }
  .bb-video-frame iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 0; display: block;
  }
  .bb-video-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px;
    padding: 14px 22px; background: #FCFBF8; border-top: 1px solid #EFECE5;
    font-family: 'Newsreader', sans-serif; font-size: 12.5px; color: #6B7280;
  }
  .bb-video-meta span { display: inline-flex; align-items: center; gap: 7px; }
  .bb-video-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-gold,#C9A84C); flex: 0 0 auto; }
  .bb-video-meta strong { color: var(--brand-navy,#0B1E3D); font-weight: 700; }
  #bb .bb-video-caption { font-size: 12.5px; color: #9CA3AF; line-height: 1.6; margin: 12px 0 0 !important; }
  #bb .bb-video-caption em { color: #6B7280; }

  .bb-vh3 {
    font-family: 'Newsreader', sans-serif;
    font-size: 17px; font-weight: 700; color: var(--brand-navy,#0B1E3D);
    margin: 34px 0 0 !important; letter-spacing: -.005em;
  }
  .bb-chapters { list-style: none; padding: 0 !important; margin: 14px 0 0 !important; border-top: 1px solid #F0EDE7; }
  .bb-chapters li { margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #F0EDE7; }
  .bb-chapters li::before { content: none; }
  .bb-chapters a {
    display: flex; gap: 16px; align-items: baseline;
    padding: 11px 6px; text-decoration: none; color: var(--brand-navy,#0B1E3D); font-size: 14.5px;
    transition: background .18s ease, padding-left .18s ease;
  }
  .bb-chapters a:hover { background: #FCFBF8; padding-left: 12px; }
  .bb-chapters time {
    flex: 0 0 44px; font-family: 'Newsreader', sans-serif;
    font-size: 12px; font-weight: 700; color: var(--brand-gold,#C9A84C); letter-spacing: .03em;
  }
  .bb-chapters a:hover time { color: var(--brand-navy,#0B1E3D); }

  .bb-transcript {
    margin-top: 30px; border: 1px solid #E6E3DB; border-radius: 8px;
    background: #FFFFFF; overflow: hidden;
  }
  .bb-transcript > summary {
    cursor: pointer; list-style: none; display: flex;
    justify-content: space-between; align-items: center; gap: 14px;
    padding: 15px 22px; background: var(--brand-cream,#F7F5F0);
    font-family: 'Newsreader', sans-serif; font-size: 14px; font-weight: 700; color: var(--brand-navy,#0B1E3D);
  }
  .bb-transcript > summary::-webkit-details-marker { display: none; }
  .bb-transcript > summary::after { content: "+"; color: var(--brand-gold,#C9A84C); font-size: 20px; font-weight: 400; line-height: 1; }
  .bb-transcript[open] > summary::after { content: "–"; }
  .bb-transcript-body { padding: 4px 22px 18px; }
  #bb .bb-transcript-body p {
    display: flex; gap: 16px; font-size: 14px; line-height: 1.75; color: #374151;
    margin: 0 !important; padding: 9px 0 !important; border-bottom: 1px solid #F5F2EC;
  }
  #bb .bb-transcript-body p:last-of-type { border-bottom: none; }
  .bb-transcript-body .bb-ts {
    flex: 0 0 40px; font-family: 'Newsreader', sans-serif;
    font-size: 11.5px; font-weight: 700; color: var(--brand-gold,#C9A84C); padding-top: 4px;
  }
  #bb .bb-transcript-note { font-size: 12px; color: #9CA3AF; margin: 14px 0 0 !important; display: block; }

  @media (max-width: 640px) {
    #bb-toc ol { grid-template-columns: 1fr; padding: 10px 12px 14px !important; }
    #bb-toc h3 { padding: 14px 20px 13px !important; }
    .bb-video-meta { padding: 12px 18px; font-size: 12px; gap: 6px 14px; }
    .bb-transcript > summary { padding: 14px 18px; font-size: 13.5px; }
    .bb-transcript-body { padding: 4px 18px 16px; }
  }

  /* --- link resets so theme styles do not leak into the video block --- */
  #bb .bb-chapters a, #bb .bb-chapters a:hover, #bb .bb-chapters a:focus { text-decoration: none !important; border-bottom: none !important; }
  #bb .bb-chapters a span { color: var(--brand-navy,#0B1E3D); }
  #bb .bb-chapters a:hover span { color: var(--brand-navy,#0B1E3D); }
  #bb .bb-chapters a:focus-visible { outline: 2px solid var(--brand-gold,#C9A84C); outline-offset: -2px; }
  #bb .bb-video-caption a {
    color: var(--brand-navy,#0B1E3D); font-weight: 600; text-decoration: none;
    border-bottom: 1.5px solid rgba(201,168,76,.55); transition: color .2s, border-color .2s;
  }
  #bb .bb-video-caption a:hover { color: var(--brand-gold,#C9A84C); border-color: var(--brand-gold,#C9A84C); }
  #bb .bb-transcript > summary, #bb .bb-transcript > summary:hover { text-decoration: none !important; }
  #bb .bb-transcript > summary:hover { background: #F2EFE8; }
