.kb-hero {
  padding-bottom: 72px;
}

.kb-hero .hero-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.kb-hero .hero-content {
  max-width: 920px;
}

.kb-hero .hero-lead {
  max-width: 70ch;
}

.kb-proofbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 32px;
}

.kb-proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: white;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.kb-proof-item strong {
  display: block;
  font-size: 15px;
  color: white;
}

.kb-proof-item span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.kb-proof-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.16);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
  font-size: 17px;
  font-weight: 700;
}

.kb-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.kb-main.kb-article-layout {
  padding-top: 48px;
}

.kb-section-header {
  margin-bottom: 34px;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.kb-card,
.persona-card,
.kb-featured-card,
.kb-service-panel,
.kb-start-card,
.content-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.kb-card,
.persona-card,
.kb-service-panel,
.kb-start-card {
  padding: 24px;
  transition: var(--transition);
}

.kb-card:hover,
.persona-card:hover,
.kb-service-panel:hover,
.kb-start-card:hover,
.kb-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 86, 219, 0.2);
}

.kb-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kb-card-tag,
.kb-chip,
.article-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(26, 86, 219, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-card h2,
.kb-card h3,
.persona-card h3,
.kb-service-panel h3,
.kb-start-card h3 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--navy);
}

.kb-card p,
.persona-card p,
.kb-service-panel p,
.kb-start-card p {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.68;
}

.kb-card-meta,
.article-meta-line,
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--gray-500);
  font-size: 13px;
}

.kb-link-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.kb-link:hover {
  color: var(--accent-hover);
}

.kb-personas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.persona-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.persona-links {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.persona-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--off-white);
  border: 1px solid transparent;
  transition: var(--transition);
}

.persona-links a:hover {
  color: var(--accent);
  border-color: rgba(26, 86, 219, 0.18);
  background: rgba(26, 86, 219, 0.05);
}

.kb-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  overflow: hidden;
}

.kb-featured-copy,
.kb-featured-side {
  padding: 32px;
}

.kb-featured-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kb-featured-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  color: var(--navy);
}

.kb-featured-copy p {
  color: var(--gray-600);
  line-height: 1.72;
  font-size: 16px;
}

.kb-featured-side {
  background:
    linear-gradient(180deg, rgba(26, 86, 219, 0.1) 0%, rgba(26, 86, 219, 0.03) 100%),
    linear-gradient(135deg, var(--off-white) 0%, #ffffff 100%);
  border-left: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.kb-featured-note {
  color: var(--gray-700);
  line-height: 1.7;
}

.kb-start-grid,
.kb-services-grid,
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kb-services-strip {
  margin-top: 64px;
}

.kb-service-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kb-service-panel .service-card-link,
.related-cards .service-card-link {
  margin-top: auto;
}

.kb-final-cta {
  margin-top: 64px;
  border-radius: 24px;
  padding: 36px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  box-shadow: var(--shadow-lg);
}

.kb-final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  margin-bottom: 14px;
}

.kb-final-cta p {
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.72;
  margin-bottom: 22px;
}

.kb-final-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 24px;
}

.kb-final-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 14px;
}

.kb-final-benefits span::before {
  content: "\2713";
  color: var(--gold-light);
}

.kb-final-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 24px;
}

.kb-contact-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: white;
  text-decoration: none;
}

.kb-contact-pill small {
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.kb-contact-pill strong {
  font-size: 16px;
}

.kb-final-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.kb-final-actions .btn-secondary {
  color: white;
}

.kb-article-hero {
  padding-bottom: 56px;
}

.kb-article-hero .hero-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.kb-article-hero .hero-content {
  max-width: 920px;
}

.article-hero-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.article-keypoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.article-keypoint {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: background var(--transition), border-color var(--transition);
  color: var(--white);
}

.article-keypoint:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(201,168,76,.4);
}

.article-keypoint-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  opacity: .45;
  margin-bottom: 12px;
  line-height: 1;
}

.article-keypoint-body {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.6;
}

.article-keypoint-body strong {
  color: var(--white);
  font-weight: 700;
}

.kb-article-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: 28px;
  align-items: start;
}

.kb-article-sidebar {
  position: sticky;
  top: 88px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.kb-article {
  padding: 36px;
}

.kb-sidebar-card,
.article-cta,
.kb-contact-card,
.kb-highlight,
.kb-faq .faq-item {
  border-radius: 18px;
}

.kb-sidebar-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.kb-sidebar-card h2 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 14px;
}

.kb-toc {
  margin: 0;
}

.kb-toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.kb-toc ol a {
  display: block;
  padding: 4px 0;
  color: var(--color-gray-500, #64748b);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.5;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.2s, border-color 0.2s;
}

.kb-toc ol a:hover,
.kb-toc ol a.active {
  color: var(--blue, #1a56db);
  border-left-color: var(--blue, #1a56db);
}

.kb-prose {
  color: var(--gray-700);
  max-width: 100%;
}

.kb-prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.16;
  color: var(--navy);
  margin: 54px 0 18px;
}

.kb-prose h3 {
  font-size: 22px;
  line-height: 1.28;
  color: var(--navy);
  margin: 30px 0 14px;
}

.kb-prose p,
.kb-prose li {
  font-size: 17px;
  line-height: 1.86;
  color: var(--gray-700);
}

.kb-prose p + p,
.kb-prose ul + p,
.kb-prose ol + p {
  margin-top: 16px;
}

.kb-prose ul,
.kb-prose ol {
  margin: 18px 0 0 22px;
}

.kb-prose li + li {
  margin-top: 10px;
}

.kb-highlight {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  background: rgba(26, 86, 219, 0.06);
}

.kb-highlight strong {
  color: var(--navy);
}

.threshold-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 18px;
}

.threshold-item {
  padding: 20px;
  border-radius: 18px;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.threshold-item strong {
  display: block;
  color: var(--gray-700);
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.threshold-item span {
  display: block;
  color: var(--navy);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.threshold-note {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.checklist-box,
.faq-box {
  margin-top: 30px;
  padding: 24px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.checklist-box h3,
.faq-box h2,
.faq-box h3 {
  color: var(--navy);
}

.cta-micro-proof {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.7;
}

.article-cta {
  margin: 30px 0;
  padding: 24px;
  border: 1px solid rgba(26, 86, 219, 0.14);
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.06) 0%, rgba(26, 86, 219, 0.02) 100%);
}

.article-cta h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
}

.article-cta p {
  margin-bottom: 16px;
}

.article-cta .btn-primary {
  justify-content: center;
}

.kb-faq {
  margin-top: 48px;
}

.kb-faq .faq-list {
  max-width: none;
}

.kb-faq .faq-item {
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.kb-faq .faq-question {
  padding: 20px 22px;
}

.kb-faq .faq-answer {
  color: var(--gray-600);
}

.kb-contact-card {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.kb-contact-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 14px;
  line-height: 1.14;
  color: #fff;
}

.kb-contact-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 20px;
}

.kb-prose .kb-contact-card h2,
.kb-prose .kb-contact-card p,
.kb-prose .kb-contact-card a {
  color: inherit;
}

.kb-prose .kb-contact-card h2 {
  color: #fff;
}

.kb-prose .kb-contact-card p {
  color: rgba(255, 255, 255, 0.8);
}

.kb-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 22px;
}

.kb-contact-links a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.kb-contact-links a:hover {
  color: var(--gold-light);
}

.kb-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.kb-contact-card .btn-primary {
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.3);
}

.kb-inline-section {
  margin-top: 42px;
}

.kb-inline-section.section {
  padding: 0;
}

.kb-inline-section .section-header {
  margin-bottom: 24px;
}

.kb-inline-section .section-title {
  font-size: 28px;
}

.related-cards .service-card,
.kb-start-grid .kb-start-card,
.kb-services-grid .kb-service-panel {
  height: 100%;
}

@media (max-width: 1100px) {
  .kb-grid,
  .kb-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kb-featured-card,
  .kb-split,
  .kb-article-shell {
    grid-template-columns: 1fr;
  }

  .kb-article-sidebar {
    position: static;
  }

  .kb-main.kb-article-layout {
    padding-top: 36px;
  }
}

@media (max-width: 900px) {
  .kb-proofbar,
  .kb-personas,
  .kb-start-grid,
  .related-cards,
  .article-keypoints,
  .threshold-box {
    grid-template-columns: 1fr;
  }

  .kb-main {
    padding: 56px 20px 0;
  }

  .kb-grid,
  .kb-services-grid {
    grid-template-columns: 1fr;
  }

  .kb-hero,
  .kb-article-hero {
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .kb-main.kb-article-layout {
    padding-top: 24px;
  }

  .breadcrumb .container {
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-hero-meta {
    gap: 8px;
  }

  .article-hero-meta span {
    width: 100%;
  }

  .kb-toc ol {
    gap: 12px;
  }

  .kb-toc a {
    display: inline-block;
    padding: 2px 0;
  }

  .kb-prose p,
  .kb-prose li {
    font-size: 16px;
    line-height: 1.78;
  }

  .kb-prose h2 {
    margin-top: 38px;
    margin-bottom: 14px;
    font-size: clamp(26px, 7vw, 34px);
  }

  .kb-prose h3 {
    font-size: 20px;
    margin-top: 24px;
  }

  .threshold-item span {
    font-size: 24px;
  }

  .checklist-box,
  .faq-box {
    padding: 20px;
  }

  .kb-contact-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .kb-contact-links a {
    width: 100%;
  }

  .cta-micro-proof {
    font-size: 13px;
  }

  .kb-featured-copy,
  .kb-featured-side,
  .kb-card,
  .persona-card,
  .kb-service-panel,
  .kb-start-card,
  .kb-sidebar-card,
  .kb-article,
  .kb-contact-card,
  .kb-final-cta {
    padding: 24px;
  }

  .kb-final-actions,
  .kb-contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

.kb-contact-pill {
    width: 100%;
  }
}

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

.kb-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1.5px solid var(--gray-100, #eef1f7);
}

.kb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 520px;
}

.kb-table thead th {
  background: var(--navy, #0d1f3c);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kb-table tbody tr:nth-child(even) {
  background: var(--off-white, #f7f9fc);
}

.kb-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100, #eef1f7);
  vertical-align: top;
  line-height: 1.55;
  color: var(--gray-700, #334155);
}

.kb-table td:first-child {
  font-weight: 600;
  color: var(--navy, #0d1f3c);
}

.kb-table tbody tr:last-child td {
  border-bottom: none;
}

.kb-highlight.kb-tip {
  border-left-color: #26A69A;
  background: #e8f7f6;
}

.kb-highlight.kb-warn {
  border-left-color: #ef9f27;
  background: #fef6e7;
}

.kb-highlight.kb-example {
  border-left-color: #1a56db;
  background: #eef3fd;
}

.kb-checklist {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.kb-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100, #eef1f7);
  font-size: 14px;
  color: var(--gray-700, #334155);
  line-height: 1.5;
}

.kb-checklist li::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--blue, #1a56db);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}

.kb-checklist li:last-child {
  border-bottom: none;
}
