/* Reading progress */
.kb-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent, #1a56db);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Sidebar CTA */
.sidebar-cta {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(26, 86, 219, .06) 0%, rgba(26, 86, 219, .02) 100%);
  border: 1px solid rgba(26, 86, 219, .15);
}

.sidebar-cta p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.sidebar-cta .btn-primary {
  font-size: 13px;
  padding: 10px 16px;
  justify-content: center;
  width: 100%;
}

/* Practice pull quote */
.kb-highlight.kb-warn strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy, #0d1f3c);
}

/* Article meta line: author + update date directly under H1 */
.article-meta-line {
  font-size: 13px;
  color: var(--gray-500, #9ca3af);
  margin: 6px 0 18px;
  line-height: 1.5;
}

/* Smooth scroll offset for fixed header */
[id] {
  scroll-margin-top: 88px;
}

/* TOC active link */
.kb-toc ol a {
  transition: color .2s, border-color .2s, padding-left .2s;
}

.kb-toc ol a.active {
  color: var(--accent, #1a56db);
  border-left-color: var(--accent, #1a56db);
  padding-left: 14px;
}

/* Article keypoint hover */
.article-keypoint {
  transition: background .2s, border-color .2s;
  cursor: default;
}

/* Related cards equal height */
.related-cards {
  align-items: stretch;
}

.related-cards .service-card {
  height: 100%;
}

/* Author byline under article hero */
.article-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--gray-600, #6b7280);
  flex-wrap: wrap;
}

.article-byline-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.08);
}

.article-byline-name {
  font-weight: 600;
  color: var(--navy, #0d1f3c);
}

.article-byline-role {
  color: var(--gray-500, #9ca3af);
}

.article-byline-sep {
  color: var(--gray-300, #d1d5db);
}

.article-byline time {
  color: var(--gray-500, #9ca3af);
}

/* Author bio card at bottom of article */
.article-author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 40px 0 8px;
  padding: 24px;
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 10px;
}

.author-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.author-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #0d1f3c);
  margin-bottom: 2px;
}

.author-card-title {
  font-size: 12px;
  color: var(--accent, #1a56db);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.author-card-bio {
  font-size: 14px;
  color: var(--gray-600, #6b7280);
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-card-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.author-card-links a {
  color: var(--accent, #1a56db);
  text-decoration: none;
  font-weight: 500;
}

.author-card-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .kb-progress-bar {
    height: 2px;
  }

  .sidebar-cta {
    display: none;
  }

  .kb-contact-actions {
    flex-direction: column;
  }

  .kb-contact-actions .btn-primary,
  .kb-contact-actions .btn-secondary {
    justify-content: center;
  }

  .article-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-card-links {
    justify-content: center;
  }
}
