/* Multi-page video analytics guide (12-11-2026 handoff): chapter layout, Contents list + mobile sheet, FAQ cards, pager. */
/* Hub: clear fixed header so hero image is fully visible */
.va-chapter-hub .content-sec{
  padding-top:calc(var(--header-h) + 36px);
  padding-bottom:80px;
}
.va-chapter-hub .content-aside{
  top:calc(var(--header-h) + 28px);
}
.va-chapter-hub .float-toc{
  max-height:calc(100vh - var(--header-h) - 64px);
  padding:12px 8px 14px;
}
.va-chapter-hub #faq{
  scroll-margin-top:calc(var(--header-h) + 24px);
  margin-top:2.75rem;
}
.va-chapter-hub .chapter-faq{margin-top:1rem}
.va-chapter-hub .content-main > picture{
  display:block;
  margin:0 0 1.75rem;
}
.va-chapter-hub .feature-img{
  display:block;
  width:100%;
  height:auto;
  border-radius:18px;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#f0f0f0;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

/* Chapter pages — clear fixed header + breathing room */
.va-chapter-page .content-sec{
  padding-top:calc(var(--header-h) + 72px);
  padding-bottom:88px;
}
.va-chapter-page .content-aside{
  top:calc(var(--header-h) + 36px);
}
.va-chapter-page .float-toc{
  max-height:calc(100vh - var(--header-h) - 72px);
  padding:12px 8px 14px;
}
.va-chapter-page .chapter-page-title{
  margin:0 0 1.15rem;
  scroll-margin-top:calc(var(--header-h) + 32px);
}
.va-chapter-page .chapter-lede{
  margin:0 0 1.5rem;
  color:#5c5a5b;
  font-size:1.05rem;
  line-height:1.65;
  max-width:42rem;
}
.va-chapter-page .blog-article-body > .chapter-lede,
.va-chapter-page .blog-article-body > p:first-of-type{
  margin-top:0;
}
@media(max-width:960px){
  .va-chapter-hub .content-sec,
  .va-chapter-page .content-sec{
    padding-top:calc(var(--header-h) + 48px);
    padding-bottom:80px;
  }
}

/* Contents — separate hover / active pills so they don't merge */
.float-toc .sidebar-toc{
  display:flex;
  flex-direction:column;
  gap:6px;
  list-style:none;
  margin:0;
  padding:0;
}
.float-toc .sidebar-toc li{margin:0;padding:0;list-style:none}
.float-toc .sidebar-toc a{
  display:block;
  padding:8px 10px;
  margin:0;
  border-radius:8px;
  color:#3a3a3a;
  text-decoration:none;
  font-size:.75rem;
  font-weight:500;
  line-height:1.35;
  background:transparent;
  transition:color .15s ease, background .15s ease;
}
.float-toc .sidebar-toc a:hover{
  color:#be1e2d;
  background:rgba(0,0,0,.045);
}
.float-toc .sidebar-toc a.is-active{
  color:#be1e2d;
  background:rgba(190,30,45,.1);
  font-weight:600;
}
.float-toc .sidebar-toc a.is-active:hover{
  background:rgba(190,30,45,.14);
}

/* FAQ chapter — match other pages (stacked cards, not raw table) */
.chapter-faq{
  margin:0;
  padding:0;
  border:0;
}
.chapter-faq .hub-tools{margin:0 0 14px}
.chapter-faq .search-box{
  display:flex;align-items:center;gap:8px;
  border:1px solid rgba(0,0,0,.12);border-radius:999px;
  padding:10px 16px;background:#fff;width:100%;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.chapter-faq .search-box input{border:0;outline:0;width:100%;font:inherit;background:transparent}
.chapter-faq .search-box svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;opacity:.55}
.chapter-faq .filter-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.chapter-faq .chip{
  border:1px solid rgba(0,0,0,.12);background:#fff;border-radius:999px;
  padding:7px 13px;cursor:pointer;font:inherit;font-size:.8125rem;color:#1a1a1a;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.chapter-faq .chip:hover{border-color:rgba(190,30,45,.35);color:#be1e2d}
.chapter-faq .chip.is-active{background:#be1e2d;color:#fff;border-color:#be1e2d}
.chapter-faq .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.chapter-faq .faq-table-wrap{width:100%;overflow:visible;margin:0}
.chapter-faq .faq-table{
  width:100%;border-collapse:separate;border-spacing:0 12px;
  background:transparent;border:0;
}
.chapter-faq .faq-table thead{display:none}
.chapter-faq .faq-table tbody{display:block}
.chapter-faq .faq-row{
  display:block;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:18px 20px;
  margin:0 0 12px;
  box-shadow:0 4px 14px rgba(0,0,0,.03);
}
.chapter-faq .faq-row[hidden]{display:none}
.chapter-faq .faq-q,
.chapter-faq .faq-a{
  display:block;width:100%;border:0;padding:0;vertical-align:top;
}
.chapter-faq .faq-q{
  margin:0 0 10px;color:#1a1a1a;font-size:1.05rem;line-height:1.4;
}
.chapter-faq .faq-q strong{font-weight:700}
.chapter-faq .faq-a{color:#5c5a5b;font-size:.95rem;line-height:1.65}
.chapter-faq .faq-a p{margin:0 0 .55em}
.chapter-faq .faq-a p:last-child{margin-bottom:0}
.chapter-faq .faq-a ul{margin:.35em 0 .55em;padding-left:1.15em}

.chapter-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:2rem 0 1rem;padding-top:1.25rem;border-top:1px solid rgba(0,0,0,.08)}
.chapter-pager a{color:#be1e2d;font-weight:600;text-decoration:none;font-size:.9rem}
.chapter-pager a:hover{text-decoration:underline}
.chapter-page-title{font-size:clamp(1.55rem,3vw,2.05rem);font-weight:750;line-height:1.25;margin:0 0 1rem;color:#1a1a1a;text-wrap:balance}
.blog-article-body > h2:first-of-type{margin-top:1.5rem}
.float-toc-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.float-toc-close{display:none;border:0;background:transparent;color:#5c5a5b;font-size:1.5rem;line-height:1;cursor:pointer;padding:2px 6px}
.toc-mobile-fab,.toc-mobile-backdrop{display:none}

@media(max-width:960px){
  .content-row{grid-template-columns:1fr!important;max-width:820px}
  .content-aside{display:block!important;position:static;z-index:auto}
  .float-toc{
    display:none;
    position:fixed;
    left:12px;right:12px;bottom:12px;
    top:auto;
    width:auto;
    max-height:min(70vh,560px);
    z-index:80;
    padding:12px 10px 14px;
    border-radius:16px;
    box-shadow:0 16px 40px rgba(0,0,0,.18);
  }
  .float-toc.is-mobile-open{display:block}
  .float-toc-close{display:inline-flex}
  .float-toc.is-collapsed .sidebar-toc{display:block} /* keep list visible in mobile sheet */
  .toc-mobile-fab{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    position:fixed;
    right:16px;
    bottom:18px;
    z-index:70;
    border:0;
    border-radius:999px;
    padding:12px 18px;
    background:#be1e2d;
    color:#fff;
    font:inherit;
    font-size:.875rem;
    font-weight:700;
    letter-spacing:.02em;
    box-shadow:0 10px 24px rgba(190,30,45,.35);
    cursor:pointer;
  }
  .toc-mobile-fab[hidden]{display:none!important}
  .toc-mobile-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:75;
    background:rgba(0,0,0,.35);
  }
  .toc-mobile-backdrop[hidden]{display:none!important}
  body.toc-open{overflow:hidden}
  .chapter-pager{position:sticky;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);padding:12px 0;margin-bottom:4.5rem;z-index:5}
}

/* FAQ cards: the question runs the full card width (one line), no table-cell width or divider lines */
.va-extended .chapter-faq .faq-table .faq-q{width:100%;min-width:0;padding:0;border:0;margin:0 0 10px}
.va-extended .chapter-faq .faq-table .faq-a{width:100%;padding:0;border:0}

/* "Why ... matters" word tiles: long words such as "Understand" must fit inside their card */
.blog-article-body .highlight-stat{padding:22px 10px;min-width:0}
.blog-article-body .highlight-stat .num-text{font-size:clamp(1.25rem,2.3vw,1.7rem);letter-spacing:-0.02em;overflow-wrap:anywhere}

/* Tile rows (e.g. "Capability groups" with 4 tiles): stretch the tiles to fill the row instead of leaving an empty fifth column */
.blog-article-body .info-benefits,
.blog-article-body .info-usecases{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}

/* Numbered step rows (e.g. "Checker tooling ladder", "Acceptance ingredients"): fill the row, 6 steps as 3x2, 7-8 as 4 per row */
.blog-article-body .info-flow{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.blog-article-body .info-flow:has(.info-step:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.blog-article-body .info-flow:has(.info-step:nth-child(7):last-child),
.blog-article-body .info-flow:has(.info-step:nth-child(8):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:991px){
  .blog-article-body .info-flow:has(.info-step:nth-child(6):last-child),
  .blog-article-body .info-flow:has(.info-step:nth-child(7):last-child),
  .blog-article-body .info-flow:has(.info-step:nth-child(8):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}
