:root {
  color-scheme: light;

  /* brand */
  --kb-navy:           #3F497F;
  --kb-navy-600:       #384171;
  --kb-navy-700:       #2F375E;
  --kb-navy-800:       #252B48;
  --kb-navy-300:       #8A93BA;
  --kb-navy-200:       #C7CBDD;
  --kb-navy-100:       #E7E9F1;
  --kb-navy-50:        #F3F4F9;

  --kb-orange:         #EB780E;
  --kb-orange-600:     #D26A07;
  --kb-orange-300:     #F5B06B;
  --kb-orange-200:     #FBDDBD;
  --kb-orange-100:     #FDEEDB;
  --kb-orange-50:      #FFF7EF;

  /* aliases (used by existing selectors) */
  --kb-accent:         var(--kb-navy);
  --kb-accent-strong:  var(--kb-navy-700);
  --kb-accent-warm:    var(--kb-orange);
  --kb-accent-soft:    var(--kb-navy-100);
  --kb-accent-ghost:   var(--kb-navy-50);
  --kb-accent-cyan:    var(--kb-navy-300);

  /* neutrals */
  --kb-canvas:         #F6F7FA;
  --kb-canvas-strong:  #EEEFF4;
  --kb-surface:        rgba(255, 255, 255, 0.96);
  --kb-surface-solid:  #FFFFFF;
  --kb-surface-soft:   var(--kb-navy-50);
  --kb-surface-muted:  var(--kb-navy-100);
  --kb-line:           rgba(63, 73, 127, 0.12);
  --kb-line-strong:    rgba(63, 73, 127, 0.22);
  --kb-text:           #22263C;
  --kb-text-muted:     #4B5068;
  --kb-text-soft:      #6B7088;

  /* status */
  --kb-success:        #1F9D6A;
  --kb-success-soft:   #E4F5ED;

  /* shadows — navy-tinted */
  --kb-shadow-soft:    0 1px 3px rgba(37, 43, 72, 0.07), 0 4px 12px rgba(37, 43, 72, 0.07);
  --kb-shadow-strong:  0 8px 24px rgba(37, 43, 72, 0.12), 0 2px 6px rgba(37, 43, 72, 0.06);

  /* radii */
  --kb-radius-xs:  6px;
  --kb-radius-sm:  8px;
  --kb-radius-md:  12px;
  --kb-radius-lg:  16px;

  /* layout */
  --kb-content-max:    1600px;
  --kb-content-narrow: 760px;
  --kb-reading-max:    720px;
  --kb-transition:     160ms cubic-bezier(0.2, 0.8, 0.2, 1);

  /* fonts — overschreven door tenant-branding via een inline :root in _Layout */
  --kb-font:           "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --kb-font-headings:  "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--kb-text);
  font-family: var(--kb-font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--kb-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.kb-embed-frame {
  background: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2 {
  margin: 0;
  font-family: var(--kb-font-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--kb-text);
}

h3,
h4,
h5,
h6 {
  font-family: var(--kb-font-headings);
}

h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin-top: 0;
}

code,
pre,
kbd {
  font-family: "JetBrains Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--kb-navy) 30%, transparent);
}

.kb-page-wrap {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
}

.kb-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.kb-skip-link {
  position: absolute;
  left: 20px;
  top: 12px;
  z-index: 110;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--kb-text);
  color: #fff;
  transform: translateY(-180%);
  transition: transform var(--kb-transition);
}

.kb-skip-link:focus {
  transform: translateY(0);
}

.kb-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--kb-line-strong);
}

.kb-header-inner {
  position: relative;
  width: min(calc(100% - 32px), var(--kb-content-max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.kb-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.kb-brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--kb-navy) 0%, var(--kb-navy-700) 100%);
  border: 1px solid var(--kb-navy-700);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(37, 43, 72, 0.18);
}

.kb-brand--logo .kb-brand-mark {
  width: auto;
  height: auto;
  max-height: 36px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.kb-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kb-brand--logo .kb-brand-mark img {
  display: block;
  width: auto;
  height: auto;
  max-height: 36px;
  max-width: 160px;
  object-fit: contain;
}

.kb-brand-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.kb-brand-name {
  color: var(--kb-text);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.kb-brand-sub {
  color: var(--kb-orange-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kb-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kb-header-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--kb-text-muted);
  font-size: 0.96rem;
  font-weight: 600;
  transition:
    background var(--kb-transition),
    color var(--kb-transition),
    transform var(--kb-transition);
}

.kb-header-nav a:hover,
.kb-header-nav a:focus-visible {
  color: var(--kb-text);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.kb-header-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--kb-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--kb-text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.kb-header-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.kb-main {
  flex: 1;
  padding: 22px 0 0;
}

.kb-main > .kb-home-hero,
.kb-main > .kb-section,
.kb-main > .kb-support-band,
.kb-main > .kb-breadcrumbs,
.kb-main > .kb-collection-content,
.kb-main > .kb-article-layout,
.kb-main > .kb-related {
  width: min(calc(100% - 32px), var(--kb-content-max));
  margin-inline: auto;
}

.kb-main > .kb-empty {
  width: min(calc(100% - 32px), var(--kb-content-narrow));
  margin: 56px auto 0;
}

.kb-main > .kb-home-hero {
  margin-top: 10px;
}

.kb-main > .kb-section,
.kb-main > .kb-support-band,
.kb-main > .kb-related {
  margin-top: clamp(22px, 7vw, 38px);
}

.kb-main > .kb-breadcrumbs {
  margin-top: 10px;
}

.kb-main > .kb-collection-content {
  margin-top: 20px;
}

.kb-main > .kb-article-layout {
  margin-top: 12px;
}

.kb-page-kicker,
.kb-footer-kicker,
.kb-chat-capture-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--kb-navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kb-page-kicker::before,
.kb-footer-kicker::before,
.kb-chat-capture-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--kb-orange);
  box-shadow: 0 0 0 5px rgba(235, 120, 14, 0.14);
}

.kb-lead {
  font-size: clamp(1.04rem, 0.98rem + 0.38vw, 1.24rem);
  color: var(--kb-text-muted);
}

.kb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--kb-surface-solid);
  color: var(--kb-text);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    transform var(--kb-transition),
    box-shadow var(--kb-transition),
    background var(--kb-transition),
    border-color var(--kb-transition);
}

.kb-button:hover,
.kb-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--kb-shadow-soft);
}

.kb-button--primary {
  background: var(--kb-orange);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(235, 120, 14, 0.3);
}

.kb-button--primary:hover,
.kb-button--primary:focus-visible {
  background: var(--kb-orange-600);
  box-shadow: 0 6px 18px -2px rgba(235, 120, 14, 0.36);
}

.kb-button--secondary {
  border-color: var(--kb-line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--kb-text);
}

.kb-empty {
  padding: 30px;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--kb-shadow-soft);
}

.kb-empty h1,
.kb-empty h3 {
  margin-bottom: 10px;
}

.kb-empty p:last-child,
.kb-empty .kb-button {
  margin-bottom: 0;
}

.kb-not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.kb-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.kb-section-heading h2 {
}

.kb-section-heading p:last-child {
  margin-bottom: 0;
  max-width: 52ch;
  color: var(--kb-text-muted);
}

.kb-home-hero {
  position: relative;
  overflow: visible;
  padding: clamp(16px, 2.6vw, 26px);
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--kb-shadow-soft);
}

.kb-home-hero::before,
.kb-home-hero::after {
  display: none;
}

.kb-home-hero::before {
  content: none;
}

.kb-home-hero::after {
  content: none;
}

.kb-home-hero-main {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  text-align: center;
}

.kb-home-hero .kb-page-kicker {
  margin-bottom: 8px;
  font-size: 0.74rem;
}

.kb-home-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(1.72rem, 1.54rem + 0.92vw, 2.45rem);
  line-height: 1.02;
}

.kb-home-hero .kb-lead {
  margin: 0 auto;
  font-size: clamp(0.98rem, 0.94rem + 0.18vw, 1.08rem);
  line-height: 1.5;
}

.kb-home-search-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  margin-top: 14px;
  margin-inline: auto;
}

.kb-search {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
}

.kb-search-label {
  display: none;
  margin-bottom: 6px;
  color: var(--kb-text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.kb-search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--kb-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--kb-shadow-soft);
}

.kb-search-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--kb-text-soft);
}

.kb-search-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kb-text);
  font-size: 0.96rem;
  outline: none;
}

.kb-search-input input::placeholder {
  color: #7a8ea8;
}

.kb-search-kbd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
  color: var(--kb-text-soft);
  white-space: nowrap;
}

.kb-search-kbd kbd {
  min-width: 28px;
  padding: 4px 8px;
  border: 1px solid var(--kb-line);
  border-radius: 10px;
  background: var(--kb-surface-soft);
  font-size: 0.78rem;
  text-align: center;
}

.kb-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  padding: 8px;
  border: 1px solid var(--kb-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--kb-shadow-strong);
}

.kb-search-panel.is-open {
  display: block;
}

.kb-search-list {
  display: grid;
  gap: 4px;
}

.kb-search-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  transition: background var(--kb-transition), transform var(--kb-transition);
}

.kb-search-item:hover,
.kb-search-item:focus-visible {
  background: var(--kb-navy-50);
  transform: translateY(-1px);
}

.kb-search-title {
  color: var(--kb-text);
  font-weight: 700;
}

.kb-search-intro,
.kb-search-loading,
.kb-search-empty,
.kb-home-popular-empty {
  color: var(--kb-text-muted);
}

.kb-search-loading,
.kb-search-empty {
  padding: 14px 16px;
}

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

.kb-topic-card,
.kb-collection-child-item,
.kb-related-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--kb-shadow-soft);
  transition:
    transform var(--kb-transition),
    box-shadow var(--kb-transition),
    border-color var(--kb-transition);
}

.kb-topic-card:hover,
.kb-topic-card:focus-visible,
.kb-collection-child-item:hover,
.kb-collection-child-item:focus-visible,
.kb-related-card:hover,
.kb-related-card:focus-visible,
.kb-article-list-item:hover,
.kb-article-list-item:focus-visible {
  transform: translateY(-2px);
  border-color: var(--kb-navy-200);
  box-shadow: var(--kb-shadow-strong);
}

.kb-topic-icon,
.kb-related-card-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--kb-navy-50);
  border: 1px solid var(--kb-navy-200);
  color: var(--kb-navy);
  font-weight: 700;
  font-size: 1.1rem;
}

.kb-related-card-icon {
  grid-row: 1 / span 2;
}

.kb-topic-body,
.kb-related-card-body,
.kb-collection-child-main {
  min-width: 0;
}

.kb-topic-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.kb-topic-card h3,
.kb-collection-child-main h3,
.kb-related-card-title {
  margin-bottom: 6px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.kb-topic-card p,
.kb-collection-child-main p,
.kb-related-card-intro {
  margin-bottom: 0;
  color: var(--kb-text-muted);
}

.kb-topic-count,
.kb-collection-child-meta span,
.kb-related-card-cta {
  color: var(--kb-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.kb-popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kb-popular-list li {
  margin: 0;
}

.kb-popular-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--kb-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--kb-text);
  font-weight: 700;
  transition:
    background var(--kb-transition),
    transform var(--kb-transition),
    border-color var(--kb-transition);
}

.kb-popular-list a::after,
.kb-article-list-link::after,
.kb-related-card-cta::after {
  content: "";
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(0.02em) rotate(45deg);
  transform-origin: center;
  opacity: 0.82;
  transition:
    transform var(--kb-transition),
    opacity var(--kb-transition);
  flex: 0 0 auto;
}

.kb-popular-list a:hover::after,
.kb-popular-list a:focus-visible::after,
.kb-article-list-item:hover .kb-article-list-link::after,
.kb-article-list-item:focus-visible .kb-article-list-link::after,
.kb-related-card:hover .kb-related-card-cta::after,
.kb-related-card:focus-visible .kb-related-card-cta::after {
  transform: translate(2px, 0.02em) rotate(45deg);
  opacity: 1;
}

.kb-popular-list a:hover,
.kb-popular-list a:focus-visible {
  background: var(--kb-navy-50);
  border-color: var(--kb-navy-200);
  transform: translateY(-2px);
}

.kb-support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 30px;
  border: 1px solid var(--kb-navy-200);
  border-radius: var(--kb-radius-lg);
  background:
    linear-gradient(135deg, var(--kb-navy-50) 0%, #ffffff 50%, var(--kb-orange-50) 100%);
  box-shadow: var(--kb-shadow-soft);
}

.kb-support-band-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 1.72rem + 1vw, 2.65rem);
}

.kb-support-band-copy p:last-child {
  margin-bottom: 0;
  max-width: 44ch;
  color: var(--kb-text-muted);
}

.kb-support-band-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kb-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 2px 0;
  color: var(--kb-text-soft);
  font-size: 0.96rem;
}

.kb-breadcrumbs a {
  color: var(--kb-text-muted);
}

.kb-breadcrumbs a:hover,
.kb-breadcrumbs a:focus-visible {
  color: var(--kb-text);
}

.kb-breadcrumb-current {
  color: var(--kb-text);
  font-weight: 700;
}

.kb-collection-content {
  display: grid;
  gap: 16px;
}

.kb-collection-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 6px;
}

.kb-page-intro-copy {
  max-width: 58rem;
}

.kb-page-intro-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 2.1rem + 1.4vw, 3.4rem);
}

.kb-page-intro-copy .kb-lead {
  margin-bottom: 0;
}

.kb-page-intro-meta {
  flex: 0 0 auto;
}

.kb-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--kb-line);
  color: var(--kb-text-muted);
  font-weight: 700;
}

.kb-article-list {
  display: grid;
  gap: 8px;
}

.kb-article-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-md);
  background: var(--kb-canvas);
  transition:
    transform var(--kb-transition),
    box-shadow var(--kb-transition),
    border-color var(--kb-transition);
}

.kb-article-list-main {
  flex: 1;
  min-width: 0;
}

.kb-article-list-title {
  margin-bottom: 4px;
  color: var(--kb-text);
  font-size: 0.95rem;
  line-height: 1.25;
}

.kb-article-list-intro {
  margin-bottom: 0;
  color: var(--kb-text-muted);
}

.kb-article-list-meta {
  flex: 0 0 auto;
}

.kb-article-list-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kb-navy);
  font-weight: 700;
}

.kb-subcollection-block {
  display: grid;
  gap: 18px;
}

.kb-subcollection-heading {
  margin-bottom: 0;
}

.kb-collection-children-list,
.kb-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kb-collection-child-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.kb-collection-child-main h3 {
  margin-bottom: 4px;
}

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

.kb-article {
  width: 100%;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--kb-shadow-soft);
}

.kb-article-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--kb-line);
}

.kb-article-header h1 {
  margin-bottom: 7px;
}

.kb-article-header .kb-lead {
  margin-bottom: 0;
}

.kb-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--kb-text-soft);
  font-size: 0.95rem;
}

.kb-article-meta a {
  color: var(--kb-accent-strong);
  font-weight: 700;
}

.kb-article-body {
  padding-top: 28px;
  color: #2b2118;
  font-size: 1.05rem;
}

.kb-article-body > :first-child {
  margin-top: 0;
}

.kb-article-body > :last-child {
  margin-bottom: 0;
}

.kb-article-body h2,
.kb-article-body h3,
.kb-article-body h4 {
  margin: 0.9em 0 0.7em;
  color: var(--kb-text);
  scroll-margin-top: 110px;
}

.kb-article-body h2 {
}

.kb-article-body h3 {
  font-size: 1.3rem;
}

.kb-article-body h4 {
  font-size: 1.12rem;
}

.kb-article-body p,
.kb-article-body ul,
.kb-article-body ol,
.kb-article-body blockquote,
.kb-article-body table,
.kb-article-body pre {
  margin-bottom: 0.3em;
}

.kb-article-body ul,
.kb-article-body ol {
  padding-left: 1.4em;
}

.kb-article-body li + li {
  margin-top: 0.3em;
}

.kb-article-body a {
  color: var(--kb-navy);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.kb-article-body a:hover {
  color: var(--kb-navy-700);
}

.kb-article-body blockquote {
  margin-left: 0;
  padding: 12px 20px 8px 20px;
  border-left: 4px solid var(--kb-navy-300);
  border-radius: 0 var(--kb-radius-sm) var(--kb-radius-sm) 0;
  background: var(--kb-navy-50);
  color: var(--kb-text-muted);
}

.kb-article-body code {
  padding: 0.12em 0.38em;
  border-radius: 8px;
  background: var(--kb-line);
  font-size: 0.94em;
}

.kb-article-body pre {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 18px;
  background: #1f1711;
  color: #f8efe6;
}

.kb-article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.kb-article-body img {
  border-radius: 18px;
  box-shadow: var(--kb-shadow-soft);
  margin-top: 14px;
  margin-bottom: 14px;
}

.kb-article-body hr {
  height: 1px;
  margin: 1em 0;
  border: 0;
  background: var(--kb-line);
}

.kb-article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.kb-article-body th,
.kb-article-body td {
  padding: 12px 14px;
  border: 1px solid var(--kb-line);
  text-align: left;
  vertical-align: top;
}

.kb-article-body th {
  background: var(--kb-navy-50);
}

.kb-article-body :where(.callout, .note, .alert, .warning, .tip) {
  padding: 16px 18px;
  border: 1px solid var(--kb-navy-200);
  border-radius: var(--kb-radius-sm);
  background: var(--kb-navy-50);
}

.kb-article-feedback {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--kb-line);
}

.kb-article-feedback-question {
  margin-bottom: 12px;
  color: var(--kb-text);
  font-weight: 700;
}

.kb-article-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kb-article-feedback-btn {
  min-width: 104px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--kb-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--kb-text);
  font-weight: 700;
  cursor: pointer;
}

.kb-article-feedback-btn:hover,
.kb-article-feedback-btn:focus-visible {
  border-color: var(--kb-navy-200);
  background: var(--kb-navy-50);
}

.kb-article-feedback-btn--negative:hover,
.kb-article-feedback-btn--negative:focus-visible {
  border-color: var(--kb-line-strong);
}

.kb-article-feedback-thanks {
  margin-bottom: 0;
  color: var(--kb-success);
  font-weight: 700;
}

.kb-article-outline {
  position: sticky;
  top: 102px;
  padding: 20px 18px;
  border: 1px solid var(--kb-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--kb-shadow-soft);
}

.kb-article-outline-title {
  margin: 0 0 12px;
  color: var(--kb-text);
  font-size: 0.96rem;
  font-weight: 700;
}

.kb-article-outline-nav {
  display: grid;
  gap: 6px;
}

.kb-article-outline-link {
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--kb-text-muted);
  font-size: 0.95rem;
  line-height: 1.35;
  transition: background var(--kb-transition), color var(--kb-transition);
}

.kb-article-outline-link:hover,
.kb-article-outline-link:focus-visible {
  color: var(--kb-text);
  background: var(--kb-navy-50);
}

.kb-article-outline-link.is-active {
  color: var(--kb-navy);
  background: var(--kb-navy-100);
  font-weight: 700;
}

.kb-article-outline-level-2 {
  padding-left: 18px;
}

.kb-article-outline-level-3 {
  padding-left: 26px;
}

.kb-article-outline-level-4,
.kb-article-outline-level-5,
.kb-article-outline-level-6 {
  padding-left: 34px;
}

.kb-related-title {
  font-size: clamp(1.95rem, 1.72rem + 0.8vw, 2.45rem);
}

.kb-related-card {
  align-items: start;
}

.kb-related-card-cta {
  grid-column: 2;
  align-self: end;
  color: var(--kb-accent-strong);
}

.kb-footer {
  margin-top: clamp(68px, 8vw, 110px);
  border-top: 1px solid var(--kb-line);
  background: linear-gradient(180deg, #ffffff 0%, var(--kb-navy-50) 100%);
}

.kb-footer-inner {
  width: min(calc(100% - 32px), var(--kb-content-max));
  margin: 0 auto;
  padding: 38px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.kb-footer-brand strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.kb-footer-brand p {
  margin-bottom: 0;
  max-width: 34ch;
  color: var(--kb-text-muted);
}

.kb-footer-nav,
.kb-footer-links {
  align-content: start;
  display: grid;
  gap: 10px;
}

.kb-footer-nav:empty,
.kb-footer-links:empty {
  display: none;
}

.kb-footer-nav:not(:empty)::before,
.kb-footer-links:not(:empty)::before {
  margin-bottom: 4px;
  color: var(--kb-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kb-footer-nav:not(:empty)::before {
  
}

.kb-footer-links:not(:empty)::before {
}

.kb-footer-nav a,
.kb-footer-links a {
  color: var(--kb-text-muted);
  font-weight: 600;
}

.kb-footer-nav a:hover,
.kb-footer-links a:hover,
.kb-footer-nav a:focus-visible,
.kb-footer-links a:focus-visible {
  color: var(--kb-text);
}

.kb-chat-fab {
  position: fixed;
  right: clamp(18px, 3vw, 30px);
  bottom: clamp(18px, 3vw, 30px);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 18px 10px 12px;
  border: 0;
  border-radius: 999px;
  background: #3F497F;
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(37, 43, 72, 0.28);
  cursor: pointer;
  transition:
    background var(--kb-transition),
    box-shadow var(--kb-transition);
}

.kb-chat-fab:hover,
.kb-chat-fab:focus-visible {
  background: #384171;
  box-shadow: 0 16px 32px -8px rgba(37, 43, 72, 0.34);
}

.kb-chat-fab-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.kb-chat-fab-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kb-chat-fab-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.kb-chat-fab--icon-only {
  gap: 0;
  padding: 11px;
}

.kb-chat-fab-text {
  font-weight: 700;
}

.kb-chat-fab.has-unread::after {
  content: attr(data-unread-count);
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--kb-accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 27, 45, 0.12);
}

.kb-chat-overlay {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 95;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(640px, calc(100vw - 32px));
  height: min(85vh, 760px);
  border: 1px solid var(--kb-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--kb-shadow-strong);
  overflow: hidden;
  font-size: 0.95rem;
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
}

.kb-chat-overlay.is-open {
  pointer-events: auto;
  animation: kb-chat-open 220ms ease forwards;
}

.kb-chat-overlay.is-closing {
  pointer-events: none;
  animation: kb-chat-close 220ms ease forwards;
}

@keyframes kb-chat-open {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kb-chat-close {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.kb-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(37, 43, 72, 0.18);
  background: #3F497F;
  color: #fff;
}

.kb-chat-header h2 {
  margin-bottom: 4px;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.kb-chat-header p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.kb-chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition:
    background var(--kb-transition),
    border-color var(--kb-transition),
    color var(--kb-transition);
}

.kb-chat-close:hover,
.kb-chat-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.kb-chat-close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.kb-chat-close-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kb-chat-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.kb-chat-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.kb-chat-thread-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px 4px;
}

.kb-chat-new-chat-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--kb-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--kb-text);
  cursor: pointer;
  transition:
    background var(--kb-transition),
    border-color var(--kb-transition),
    color var(--kb-transition);
}

.kb-chat-new-chat-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kb-chat-new-chat-btn:hover,
.kb-chat-new-chat-btn:focus-visible {
  background: #F3F4F9;
  border-color: #C7CBDD;
  color: #3F497F;
}

.kb-chat-new-chat-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.kb-chat-history-toggle,
.kb-chat-new-thread,
.kb-chat-feedback-button,
.kb-chat-capture-open,
.kb-chat-capture-dismiss,
.kb-chat-capture-submit,
.kb-chat-capture-later {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--kb-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--kb-text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--kb-transition),
    border-color var(--kb-transition),
    color var(--kb-transition),
    transform var(--kb-transition);
}

.kb-chat-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 32px;
  padding: 0 14px;
  align-self: flex-start;
}

.kb-chat-history-toggle:hover,
.kb-chat-history-toggle:focus-visible,
.kb-chat-new-thread:hover,
.kb-chat-new-thread:focus-visible {
  background: #F3F4F9;
  border-color: #C7CBDD;
  color: #3F497F;
  transform: translateY(-1px);
}

.kb-chat-history-toggle:hover .kb-chat-history-toggle-icon,
.kb-chat-history-toggle:hover .kb-chat-history-toggle-caret,
.kb-chat-history-toggle:focus-visible .kb-chat-history-toggle-icon,
.kb-chat-history-toggle:focus-visible .kb-chat-history-toggle-caret {
  color: #3F497F;
}

.kb-chat-history-toggle-icon {
  width: 18px;
  height: 18px;
  color: var(--kb-text-soft);
  transition: color var(--kb-transition);
}

.kb-chat-history-toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kb-chat-history-toggle-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--kb-text-soft);
  transition: transform var(--kb-transition), color var(--kb-transition);
}

.kb-chat-history-toggle-caret svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kb-chat-history-toggle[aria-expanded="true"] .kb-chat-history-toggle-caret {
  transform: rotate(180deg);
}

.kb-chat-history-panel {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 14px 10px;
}

.kb-chat-overlay.is-history-open .kb-chat-thread-toolbar {
  padding-bottom: 10px;
}

.kb-chat-overlay.is-history-open .kb-chat-history-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  gap: 10px;
  padding: 0 14px 14px;
}

.kb-chat-overlay.is-history-open .kb-chat-thread-list {
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
  padding-right: 2px;
}

.kb-chat-overlay.is-history-open .kb-chat-messages,
.kb-chat-overlay.is-history-open .kb-chat-form {
  display: none;
}

.kb-chat-new-thread {
  justify-self: start;
}

.kb-chat-thread-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  max-height: 168px;
  overflow-y: auto;
  padding-right: 4px;
}

.kb-chat-thread-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 7px 10px;
  border: 1px solid var(--kb-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--kb-text);
  text-align: left;
  cursor: pointer;
  transition:
    background var(--kb-transition),
    border-color var(--kb-transition),
    transform var(--kb-transition),
    box-shadow var(--kb-transition);
}

.kb-chat-thread-item:hover,
.kb-chat-thread-item:focus-visible {
  background: #F3F4F9;
  border-color: #C7CBDD;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 43, 72, 0.06);
}

.kb-chat-thread-item.is-active {
  border-color: #3F497F;
  background: #F3F4F9;
}

.kb-chat-thread-item.is-unread {
  border-color: #C7CBDD;
}

.kb-chat-thread-item-title {
  font-size: 0.82rem;
  font-weight: 600;
}

.kb-chat-thread-item-meta {
  color: var(--kb-text-soft);
  font-size: 0.72rem;
}

.kb-chat-thread-item-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3F497F;
}

.kb-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 16px 16px;
  background: var(--kb-surface-soft);
}

.kb-chat-launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 18px;
}

.kb-chat-launcher-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--kb-surface-solid);
  border: 1px solid var(--kb-line);
  box-shadow: var(--kb-shadow-soft);
  overflow: hidden;
}

.kb-chat-launcher-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-chat-launcher-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--kb-text);
}

.kb-chat-launcher-intro {
  margin: 0;
  max-width: 420px;
  color: var(--kb-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.kb-chat-starters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.kb-chat-starter {
  border: 1px solid var(--kb-line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--kb-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--kb-transition),
    border-color var(--kb-transition),
    transform var(--kb-transition);
}

.kb-chat-starter:hover {
  background: #F3F4F9;
  border-color: #C7CBDD;
  transform: translateY(-1px);
}

.kb-chat-starter:focus-visible {
  outline: 2px solid #3F497F;
  outline-offset: 2px;
}

.kb-chat-msg-block.user {
  margin-top: 24px;
}

.kb-chat-msg-block.assistant,
.kb-chat-msg-block.operator {
  margin-top: 8px;
}

.kb-chat-messages > .kb-chat-msg-block:first-child {
  margin-top: 2px;
}

.kb-chat-qa {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
}

.kb-chat-qa-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--kb-navy);
}

.kb-chat-question {
  margin: 0;
  color: var(--kb-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kb-chat-answer {
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-md);
  background: var(--kb-surface-solid);
  color: var(--kb-text);
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  box-shadow: var(--kb-shadow-soft);
  overflow-wrap: anywhere;
}

.kb-chat-answer.is-animated,
.kb-chat-qa.is-animated,
.kb-chat-bubble.is-animated,
.kb-chat-note.is-animated {
  animation: kb-chat-bubble-in 220ms ease both;
}

/* Gesprek-modus (na escalatie naar een mens) */
.kb-chat-msg-block.is-conversation {
  margin-top: 10px;
}

.kb-chat-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: var(--kb-text-soft);
  font-size: 0.74rem;
  text-align: center;
}

.kb-chat-note::before,
.kb-chat-note::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--kb-line-strong);
}

.kb-chat-note .kb-chat-md-paragraph {
  margin: 0;
}

.kb-chat-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.kb-chat-bubble-user {
  max-width: 80%;
  margin-left: auto;
  background: var(--kb-navy);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.kb-chat-bubble-user a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.kb-chat-bubble-operator {
  background: var(--kb-surface-solid);
  border: 1px solid var(--kb-line);
  color: var(--kb-text);
  border-bottom-left-radius: 5px;
}

.kb-chat-bubble-operator a {
  color: var(--kb-navy);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.kb-chat-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
}

.kb-chat-bubble-row-assistant {
  align-items: flex-start;
  max-width: 100%;
}

.kb-chat-bubble-row-assistant .kb-chat-bubble-col {
  flex: 1 1 auto;
}

.kb-chat-bubble-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--kb-navy-100);
  color: var(--kb-navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.kb-chat-bubble-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-chat-bubble-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.kb-chat-bubble-author {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--kb-text-muted);
}

.kb-chat-bubble-time {
  font-size: 0.66rem;
  color: var(--kb-text-soft);
}

.kb-chat-bubble-user .kb-chat-bubble-time {
  display: block;
  margin-top: 3px;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes kb-chat-bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kb-chat-answer p:last-child,
.kb-chat-md-paragraph:last-child,
.kb-chat-md-list:last-child {
  margin-bottom: 0;
}

.kb-chat-md-paragraph {
  margin-bottom: 0.55em;
}

.kb-chat-md-list {
  margin: 0 0 0.55em;
  padding-left: 1.2em;
}

.kb-chat-answer a {
  color: #3F497F;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.kb-chat-answer code {
  padding: 0.12em 0.36em;
  border-radius: 8px;
  background: rgba(31, 23, 17, 0.08);
  font-size: 0.92em;
}

.kb-chat-sources {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--kb-line);
}

.kb-chat-sources-title {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kb-text-soft);
}

.kb-chat-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kb-chat-sources-list li {
  display: flex;
  min-width: 0;
}

.kb-chat-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--kb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--kb-text);
  text-decoration: none;
  font-size: 0.8rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.kb-chat-source:hover,
.kb-chat-source:focus-visible {
  border-color: #3F497F;
  background: rgba(63, 73, 127, 0.06);
}

.kb-chat-source-num {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(63, 73, 127, 0.1);
  color: #3F497F;
  font-size: 0.7rem;
  font-weight: 700;
}

.kb-chat-source-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-chat-sources-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #3F497F;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.kb-chat-sources-toggle:hover,
.kb-chat-sources-toggle:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.kb-chat-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.kb-chat-feedback-button {
  min-height: 32px;
}

.kb-chat-feedback-button-positive,
.kb-chat-feedback-button-negative {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
}

.kb-chat-feedback-button-positive svg,
.kb-chat-feedback-button-negative svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.kb-chat-feedback-button.is-selected {
  opacity: 1;
  cursor: default;
}

.kb-chat-feedback-button.is-selected svg {
  fill: currentColor;
}

.kb-chat-feedback-button-positive.is-selected {
  border-color: rgba(47, 125, 87, 0.45);
  background: rgba(47, 125, 87, 0.14);
  color: var(--kb-success);
}

.kb-chat-feedback-button-negative.is-selected {
  border-color: #C2C7DA;
  background: #ECEEF5;
  color: #3F497F;
}

.kb-chat-feedback-button.is-muted {
  opacity: 0.32;
}

.kb-chat-feedback-button.is-busy {
  opacity: 0.6;
}

.kb-chat-feedback-button-escalate {
  width: auto;
  padding: 0 12px;
  min-height: 32px;
  font-size: 0.76rem;
}

.kb-chat-feedback-status {
  color: var(--kb-text-soft);
  font-size: 0.72rem;
}

.kb-chat-feedback-status.is-saved {
  color: var(--kb-success);
  font-weight: 700;
}

.kb-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--kb-text-soft);
  font-size: 0.8rem;
}

.kb-chat-status-spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(63, 73, 127, 0.25);
  border-top-color: #3F497F;
  animation: kb-chat-spin 700ms linear infinite;
}

.kb-chat-status-operator .kb-chat-status-spinner {
  border-color: rgba(47, 125, 87, 0.25);
  border-top-color: var(--kb-success);
}

.kb-chat-status-text {
  color: inherit;
}

@keyframes kb-chat-spin {
  to {
    transform: rotate(360deg);
  }
}

.kb-chat-powered {
  display: block;
  padding: 0 14px 12px;
  color: var(--kb-text-soft);
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.kb-chat-powered:hover,
.kb-chat-powered:focus-visible {
  color: var(--kb-navy);
  text-decoration: underline;
}

.kb-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.kb-chat-capture {
  margin-top: 12px;
}

.kb-chat-capture-shell {
  padding: 13px;
  border: 1px solid var(--kb-orange-200);
  border-radius: 18px;
  background: var(--kb-orange-50);
  box-shadow: var(--kb-shadow-soft);
}

.kb-chat-capture.is-required .kb-chat-capture-shell {
  border-color: var(--kb-orange-300);
  background: var(--kb-orange-100);
}

.kb-chat-capture-header {
  display: grid;
  gap: 6px;
}

.kb-chat-capture-title {
  margin-bottom: 0;
  font-family: var(--kb-font);
  font-size: 0.94rem;
  line-height: 1.3;
}

.kb-chat-capture-description {
  margin: 8px 0 0;
  color: var(--kb-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.kb-chat-capture-compact-actions,
.kb-chat-capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.kb-chat-capture-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.kb-chat-capture-field {
  display: grid;
  gap: 4px;
}

.kb-chat-capture-label {
  color: var(--kb-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.kb-chat-capture-field input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--kb-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--kb-text);
}

.kb-chat-capture-submit {
  background: #EB780E;
  color: #fff;
}

.kb-chat-capture-error {
  margin: 0;
  color: #a53420;
  font-size: 0.82rem;
  font-weight: 600;
}

.kb-chat-form {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--kb-line);
  background: rgba(255, 255, 255, 0.96);
  position: relative;
  z-index: 1;
}

.kb-chat-form textarea,
.kb-chat-form #kb-chat-input {
  width: 100%;
  min-height: 48px;
  max-height: 96px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--kb-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--kb-text);
  font-size: 0.9rem;
}

.kb-chat-form button,
#kb-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 88px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #EB780E;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px -2px rgba(235, 120, 14, 0.26);
  transition:
    background var(--kb-transition),
    box-shadow var(--kb-transition);
}

.kb-chat-form button:hover,
.kb-chat-form button:focus-visible,
#kb-chat-send:hover,
#kb-chat-send:focus-visible {
  background: #D26A07;
  box-shadow: 0 6px 14px -2px rgba(235, 120, 14, 0.32);
}

.kb-chat-form button:disabled,
.kb-chat-feedback-button:disabled:not(.is-selected):not(.is-muted),
.kb-chat-history-toggle:disabled,
.kb-chat-new-thread:disabled,
.kb-chat-capture-open:disabled,
.kb-chat-capture-dismiss:disabled,
.kb-chat-capture-submit:disabled,
.kb-chat-capture-later:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

/* ============================================================
   Two-column app shell (sidebar + main)
   ============================================================ */
.kb-layout {
  display: flex;
  flex: 1;
  align-items: stretch;
}

.kb-sidebar {
  width: 260px;
  flex: none;
  border-right: 1px solid var(--kb-line);
  background: #fff;
  padding: 18px 14px 28px;
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

.kb-layout .kb-main {
  padding: 28px clamp(18px, 2.5vw, 36px) 60px;
}

.kb-side__group {
  margin-bottom: 18px;
}

.kb-side__head {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-text-soft);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kb-side__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--kb-radius-sm);
  font-size: 0.875rem;
  color: var(--kb-text-muted);
  text-decoration: none;
  transition: background var(--kb-transition), color var(--kb-transition);
}

.kb-side__item:hover {
  background: var(--kb-navy-50);
  color: var(--kb-navy);
  border-bottom-color: transparent;
}

.kb-side__item.is-active {
  background: var(--kb-navy-50);
  color: var(--kb-navy-800);
  font-weight: 600;
}

.kb-side__item svg { color: var(--kb-text-soft); flex: none; }
.kb-side__item.is-active svg { color: var(--kb-navy); }

.kb-side__item-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--kb-text-soft);
  font-weight: 500;
}

.kb-side__item.is-active .kb-side__item-count { color: var(--kb-navy); }

.kb-tree__node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--kb-radius-sm);
  font-size: 0.875rem;
  color: var(--kb-text-muted);
  text-decoration: none;
  transition: background var(--kb-transition), color var(--kb-transition);
}

.kb-tree__node:hover {
  background: var(--kb-navy-50);
  color: var(--kb-navy);
  border-bottom-color: transparent;
}

.kb-tree__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: none;
  background: var(--kb-navy-300);
  transition: background var(--kb-transition), transform var(--kb-transition);
}

.kb-tree__node:hover .kb-tree__dot,
.kb-tree__node.is-active .kb-tree__dot,
.kb-tree__summary:hover .kb-tree__dot,
.kb-tree__group[open] > .kb-tree__summary .kb-tree__dot {
  background: var(--kb-orange);
  transform: scale(1.25);
}

.kb-tree__count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--kb-text-soft);
}

/* Category tree: details/summary expandable groups */
.kb-tree__group {
  margin: 1px 0;
}

.kb-tree__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--kb-radius-sm);
  transition: background var(--kb-transition);
}

.kb-tree__summary::-webkit-details-marker { display: none; }
.kb-tree__summary::marker { display: none; }

.kb-tree__summary:hover {
  background: var(--kb-navy-50);
}

.kb-tree__chevron {
  flex: none;
  margin-left: 2px;
  color: var(--kb-navy-300);
  transition: transform var(--kb-transition);
}

.kb-tree__group[open] > .kb-tree__summary .kb-tree__chevron {
  transform: rotate(90deg);
}

.kb-tree__parent-link {
  flex: 1;
  font-size: 0.875rem;
  color: var(--kb-text-muted);
  text-decoration: none;
  transition: color var(--kb-transition);
}

.kb-tree__parent-link:hover,
.kb-tree__parent-link.is-active {
  color: var(--kb-navy);
}

.kb-tree__parent-link.is-active {
  font-weight: 600;
  color: var(--kb-navy-800);
}

.kb-tree__summary:has(.kb-tree__parent-link.is-active) {
  background: var(--kb-navy-50);
  box-shadow: inset 3px 0 0 var(--kb-orange);
}

.kb-tree__leaf.is-active {
  box-shadow: inset 3px 0 0 var(--kb-orange);
}

.kb-tree__node.is-active {
  background: var(--kb-navy-50);
  color: var(--kb-navy-800);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--kb-orange);
}

.kb-tree__children {
  list-style: none;
  margin: 2px 0 4px;
  padding-left: 20px;
}

.kb-tree__leaf {
  display: block;
  padding: 5px 10px;
  border-radius: var(--kb-radius-sm);
  font-size: 0.8125rem;
  color: var(--kb-text-muted);
  text-decoration: none;
  transition: background var(--kb-transition), color var(--kb-transition);
}

.kb-tree__leaf:hover {
  background: var(--kb-navy-50);
  color: var(--kb-navy);
}

.kb-tree__leaf.is-active {
  background: var(--kb-navy-50);
  color: var(--kb-navy);
  font-weight: 600;
}

.kb-side__cta {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--kb-radius-md);
  background: linear-gradient(135deg, var(--kb-navy-50), var(--kb-orange-50));
  border: 1px solid var(--kb-line);
}

.kb-side__cta p {
  font-size: 0.78125rem;
  color: var(--kb-text-soft);
  margin: 0 0 10px;
  line-height: 1.45;
}

.kb-side__cta-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--kb-navy-800);
  margin: 0 0 4px;
  display: block;
}

.kb-side__cta button {
  width: 100%;
  background: var(--kb-navy);
  color: #fff;
  border: 0;
  border-radius: var(--kb-radius-sm);
  padding: 7px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--kb-transition);
}

.kb-side__cta button:hover { background: var(--kb-navy-700); }

/* ============================================================
   Hero section (new design)
   ============================================================ */
.kba-hero {
  background:
    radial-gradient(130% 130% at 100% 0%, var(--kb-orange-100) 0%, transparent 46%),
    radial-gradient(130% 150% at 0% 100%, var(--kb-navy-100) 0%, transparent 52%),
    linear-gradient(135deg, var(--kb-navy-50) 0%, #ffffff 50%, var(--kb-orange-50) 100%);
  border: 1px solid var(--kb-line-strong);
  border-radius: var(--kb-radius-lg);
  padding: 36px 32px 30px;
  position: relative;
  overflow: hidden;
}

.kba-hero::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--kb-orange) 32%, transparent), transparent 70%);
  pointer-events: none;
}

.kba-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-orange-600);
  margin-bottom: 12px;
}

.kba-hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--kb-orange);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--kb-orange) 18%, transparent);
}

.kba-hero h1 {
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--kb-navy-800);
  margin: 0 0 6px;
  max-width: 28ch;
}

.kba-hero > p {
  color: var(--kb-text-soft);
  font-size: 0.9375rem;
  margin: 0 0 20px;
  max-width: 60ch;
}

/* ============================================================
   Sarrai input
   ============================================================ */
.kb-ask {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-md);
  padding: 8px 8px 8px 14px;
  box-shadow: var(--kb-shadow-soft);
  transition: border-color var(--kb-transition), box-shadow var(--kb-transition);
}

.kb-ask:focus-within {
  border-color: var(--kb-navy-300);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--kb-navy) 14%, transparent), var(--kb-shadow-soft);
}

.kb-ask__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  background: var(--kb-navy-100);
  display: grid;
  place-items: center;
}

.kb-ask__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-ask__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 0.90625rem;
  color: var(--kb-text);
  height: 36px;
  font-family: inherit;
}

.kb-ask__input:focus { outline: none; }
.kb-ask__input::placeholder { color: #9A9FB0; }

.kb-ask__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--kb-orange);
  color: #fff;
  border: 0;
  border-radius: var(--kb-radius-sm);
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--kb-transition);
}

.kb-ask__btn:hover { background: var(--kb-orange-600); }

.kb-suggested {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.kb-suggested span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--kb-text-soft);
  margin-right: 4px;
  align-self: center;
}

.kb-suggested button {
  font-size: 0.78125rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--kb-line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--kb-text-muted);
  cursor: pointer;
  transition: background var(--kb-transition), color var(--kb-transition), border-color var(--kb-transition);
}

.kb-suggested button:hover {
  background: #fff;
  border-color: var(--kb-navy-200);
  color: var(--kb-navy);
}

.kba-hero .kb-home-search-wrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--kb-line);
}

/* ============================================================
   Section head (new design)
   ============================================================ */
.kba-sec {
  margin-top: 48px;
}

.kba-sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}

.kba-sec__head h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--kb-text);
  margin: 0;
  line-height: 1.3;
}

.kba-sec__head h2 small {
  font-weight: 500;
  color: var(--kb-text-soft);
  margin-left: 8px;
  font-size: 0.8125rem;
}

.kba-sec__more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--kb-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex: none;
}

.kba-sec__more:hover { color: var(--kb-navy-700); border-bottom-color: transparent; }

.kba-sec__more svg { transition: transform var(--kb-transition); }
.kba-sec__more:hover svg { transform: translateX(2px); }

/* ============================================================
   Category cards (new design)
   ============================================================ */
.kba-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.kba-cat {
  position: relative;
  background: #fff;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-md);
  padding: 18px 18px 16px;
  display: block;
  text-decoration: none;
  transition: box-shadow var(--kb-transition), border-color var(--kb-transition), transform var(--kb-transition);
}

.kba-cat:hover {
  box-shadow: var(--kb-shadow-strong);
  border-color: var(--kb-navy-200);
  transform: translateY(-1px);
}

.kba-cat::after {
  content: "→";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--kb-navy-300);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--kb-transition), transform var(--kb-transition), color var(--kb-transition);
}

.kba-cat:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--kb-orange);
}

.kba-cat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-right: 18px;
}

.kba-cat__ico {
  width: 40px;
  height: 40px;
  border-radius: var(--kb-radius-sm);
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.kba-cat__ico--navy   { background: var(--kb-navy-100);   color: var(--kb-navy-700); }
.kba-cat__ico--orange { background: var(--kb-orange-100); color: var(--kb-orange-600); }
.kba-cat__ico--green  { background: #D6F0E2; color: #0F6B47; }
.kba-cat__ico--info   { background: #DBE7F6; color: #1F4578; }
.kba-cat__ico--warn   { background: #FBE8C4; color: #8A5400; }
.kba-cat__ico--gray   { background: var(--kb-navy-100); color: var(--kb-navy-600); }

.kba-cat__title {
  font-size: 0.90625rem;
  font-weight: 700;
  color: var(--kb-text);
  margin: 0;
}

.kba-cat__count {
  font-size: 0.75rem;
  color: var(--kb-text-soft);
  margin-top: 2px;
}

.kba-cat__desc {
  font-size: 0.8125rem;
  color: var(--kb-text-soft);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Article grid (popular)
   ============================================================ */
.kba-art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.kba-art {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-md);
  text-decoration: none;
  transition: border-color var(--kb-transition), background var(--kb-transition);
}

.kba-art:hover {
  border-color: var(--kb-navy-200);
  background: var(--kb-navy-50);
}

.kba-art__ico {
  width: 30px;
  height: 30px;
  border-radius: var(--kb-radius-sm);
  background: var(--kb-navy-50);
  color: var(--kb-navy);
  display: grid;
  place-items: center;
  flex: none;
}

.kba-art__body { min-width: 0; flex: 1; }

.kba-art__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--kb-text);
  margin: 0 0 4px;
  line-height: 1.35;
}

.kba-art__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--kb-text-soft);
}

.kba-art__meta .sep { color: #CBCED9; }

.kba-art__cat {
  font-weight: 600;
  color: var(--kb-navy);
}

/* ============================================================
   Recently updated table
   ============================================================ */
.kba-list {
  background: #fff;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-md);
  overflow: hidden;
}

.kba-list__row {
  display: grid;
  grid-template-columns: 1fr 180px 120px 90px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--kb-line);
  font-size: 0.84375rem;
  text-decoration: none;
  color: var(--kb-text-muted);
  transition: background var(--kb-transition);
}

.kba-list__row:first-child { border-top: 0; }

a.kba-list__row:hover { background: var(--kb-navy-50); }

.kba-list__row--head {
  background: var(--kb-navy-50);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-text-soft);
  padding: 10px 18px;
}

.kba-list__title {
  font-weight: 600;
  color: var(--kb-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kba-list__title svg { color: var(--kb-text-soft); flex: none; }

.kba-list__cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--kb-text-muted);
}

.kba-list__cat-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

.kba-list__updated {
  color: var(--kb-text-soft);
  font-size: 0.78125rem;
}

.kba-list__authors {
  display: flex;
}

.kba-list__authors .av {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--kb-navy-100);
  color: var(--kb-navy-800);
  display: grid;
  place-items: center;
  font-size: 0.65625rem;
  font-weight: 700;
  border: 2px solid #fff;
  margin-left: -8px;
}

.kba-list__authors .av:first-child { margin-left: 0; }

/* ============================================================
   Status pills
   ============================================================ */
.kba-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kba-pill--draft { background: #FDF1DA; color: #8A5400; }
.kba-pill--new   { background: var(--kb-orange-50); color: var(--kb-orange-600); }

/* ============================================================
   Inline footer (inside main)
   ============================================================ */
.kba-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--kb-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78125rem;
  color: var(--kb-text-soft);
}

.kba-foot__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kba-foot__left img { height: 14px; opacity: 0.6; }

.kba-foot__links { display: flex; gap: 16px; }

.kba-foot__links a {
  color: var(--kb-text-soft);
  text-decoration: none;
  border: 0;
}

.kba-foot__links a:hover { color: var(--kb-navy); }

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

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

  .kb-article {
    width: 100%;
  }

  .kb-article-outline {
    position: static;
    width: min(100%, var(--kb-reading-max));
  }
}

@media (max-width: 860px) {
  .kb-header-menu-toggle {
    display: inline-flex;
  }

  .kb-header-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    width: min(300px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--kb-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--kb-shadow-strong);
  }

  .kb-header-nav.is-open {
    display: flex;
  }

  .kb-header-nav a {
    border-radius: 14px;
  }

  .kb-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kb-sidebar {
    display: none;
  }

  .kba-cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .kba-list {
    overflow-x: auto;
  }

  .kb-support-band,
  .kb-collection-hero,
  .kb-section-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kb-support-band-actions {
    justify-content: flex-start;
  }

  .kb-popular-list,
  .kb-collection-children-list,
  .kb-related-grid {
    grid-template-columns: 1fr;
  }

  .kb-article-list-item,
  .kb-collection-child-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kb-article-list-meta,
  .kb-collection-child-meta {
    justify-self: start;
  }

  .kb-chat-overlay {
    right: 16px;
    bottom: 88px;
    width: min(430px, calc(100vw - 20px));
  }
}

@media (max-width: 680px) {
  .kb-main {
    padding-top: 16px;
  }

  .kb-main > .kb-home-hero,
  .kb-main > .kb-section,
  .kb-main > .kb-support-band,
  .kb-main > .kb-breadcrumbs,
  .kb-main > .kb-collection-content,
  .kb-main > .kb-article-layout,
  .kb-main > .kb-related,
  .kb-main > .kb-empty {
    width: min(calc(100% - 20px), var(--kb-content-max));
  }

  .kb-header-inner {
    width: min(calc(100% - 20px), var(--kb-content-max));
    min-height: 68px;
  }

  .kb-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .kb-brand-sub {
    display: none;
  }

  .kb-home-hero {
    padding: 18px 16px;
  }

  .kb-home-hero h1,
  .kb-page-intro-copy h1,
  .kb-article-header h1 {
    font-size: clamp(1.64rem, 1.44rem + 2.3vw, 2.08rem);
  }

  .kb-search-input {
    min-height: 52px;
    padding-inline: 13px;
  }

  .kb-search-kbd {
    display: none;
  }

  .kb-topic-grid,
  .kba-cats,
  .kba-art-grid {
    grid-template-columns: 1fr;
  }

  .kb-topic-card,
  .kb-related-card {
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .kb-support-band {
    padding: 22px 20px;
  }

  .kb-article {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .kb-article-feedback-actions,
  .kb-support-band-actions {
    width: 100%;
  }

  .kb-button,
  .kb-article-feedback-btn {
    width: 100%;
  }

  .kb-chat-fab {
    right: 14px;
    bottom: 14px;
    min-height: 54px;
  }

  .kb-chat-overlay {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    height: min(84vh, 720px);
    border-radius: 24px;
  }

  .kb-chat-header,
  .kb-chat-thread-toolbar,
  .kb-chat-history-panel,
  .kb-chat-messages,
  .kb-chat-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .kb-chat-form {
    grid-template-columns: 1fr;
  }

  .kb-chat-form button,
  #kb-chat-send {
    width: 100%;
  }

  .kb-chat-answer,
  .kb-chat-qa {
    max-width: 100%;
  }

  .kb-chat-bubble-user {
    max-width: 88%;
  }

  .kb-chat-bubble-row {
    max-width: 92%;
  }

  .kb-chat-starter {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   kbc: Category / Collection page
   ============================================================ */

.kbc-hero {
  position: relative;
  padding: 16px 20px;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-lg);
  background: var(--kb-canvas);
}

.kbc-hero__body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.kbc-hero__icon--lg {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: var(--kb-radius-sm);
  font-size: 1rem;
}

.kbc-hero__copy {
  min-width: 0;
  flex: 1;
}

.kbc-hero__copy .kb-page-kicker {
  display: none;
}

.kbc-hero__copy h1 {
  margin-bottom: 2px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--kb-navy-800);
}

.kbc-hero__copy .kb-lead {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--kb-text-muted);
}

.kbc-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.kbc-hero__search {
  padding-top: 12px;
  border-top: 1px solid var(--kb-line);
}

/* Article icon — left column in each kb-article-list-item */
.kbc-art-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: var(--kb-radius-sm);
  background: var(--kb-navy-50);
  color: var(--kb-navy);
}

/* Subsection — top border separates sibling child sections */
.kbc-subsection {
  padding-top: 28px;
  border-top: 1px solid var(--kb-line);
}

/* Empty state */
.kbc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 32px;
  border: 1px dashed var(--kb-line-strong);
  border-radius: var(--kb-radius-lg);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.kbc-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--kb-radius-lg);
  background: var(--kb-navy-50);
  color: var(--kb-navy-300);
}

.kbc-empty h3 {
  margin: 0;
  color: var(--kb-text);
}

.kbc-empty p {
  margin: 0;
  color: var(--kb-text-muted);
  max-width: 36ch;
}

/* Sarrai band */
.kbc-ask-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border: 1px solid var(--kb-navy-200);
  border-radius: var(--kb-radius-lg);
  background: linear-gradient(135deg, var(--kb-navy-50) 0%, #ffffff 100%);
  box-shadow: var(--kb-shadow-soft);
}

.kbc-ask-band__title {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--kb-text);
}

.kbc-ask-band__sub {
  margin: 0;
  color: var(--kb-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .kbc-ask-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
  }
}

@media (max-width: 680px) {
  .kbc-subsection {
    padding-top: 20px;
  }

  .kbc-empty {
    padding: 32px 20px;
  }

  .kbc-ask-band .kb-button {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Article detail — kba-* (redesign, matches kb-app.css design)
   ============================================================ */

/* ── Breadcrumb ────────────────────────────────────────────── */
.kba-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--kb-text-soft);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.kba-crumb a {
  color: var(--kb-text-soft);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: var(--kb-radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background var(--kb-transition), color var(--kb-transition);
}

.kba-crumb a:hover {
  background: var(--kb-canvas-strong);
  color: var(--kb-navy);
}

.kba-crumb__sep {
  color: var(--kb-navy-200);
  display: flex;
  align-items: center;
}

.kba-crumb__current {
  color: var(--kb-text-muted);
  font-weight: 600;
}

/* ── Layout: article column + sticky rail ─────────────────── */
.kba-with-rail {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

/* ── Right rail ────────────────────────────────────────────── */
.kba-rail {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 100px;
}

.kba-rail__card {
  background: var(--kb-surface-solid);
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-lg);
  padding: 16px 18px;
}

.kba-rail__card h6 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-text-soft);
  margin: 0 0 10px;
}

/* ── TOC (table of contents in rail) ──────────────────────── */
.kba-toc {
  display: grid;
  gap: 2px;
}

.kba-toc a {
  display: block;
  padding: 5px 8px 5px 12px;
  border-left: 2px solid var(--kb-line);
  font-size: 13px;
  color: var(--kb-text-soft);
  text-decoration: none;
  line-height: 1.35;
  transition: color var(--kb-transition), border-color var(--kb-transition);
}

.kba-toc a:hover {
  color: var(--kb-navy);
  border-left-color: var(--kb-navy-200);
}

.kba-toc a.is-active {
  color: var(--kb-navy-800);
  font-weight: 600;
  border-left-color: var(--kb-orange);
}

.kba-toc a.is-sub {
  padding-left: 22px;
  font-size: 12px;
}

/* ── Article card ──────────────────────────────────────────── */
.kba-article {
  background: var(--kb-surface-solid);
  border: 1px solid var(--kb-line);
  border-radius: 24px;
  padding: 36px clamp(24px, 4vw, 48px) 40px;
}

.kba-article__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-navy);
  margin-bottom: 12px;
}

.kba-article__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--kb-navy);
  flex: none;
}

.kba-article__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.kba-article__eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kba-article h1 {
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--kb-navy-800);
  margin: 0 0 14px;
  line-height: 1.2;
  max-width: 28ch;
}

.kba-article__lead {
  font-size: 16px;
  color: var(--kb-text-muted);
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 64ch;
}

.kba-article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--kb-line);
  border-bottom: 1px solid var(--kb-line);
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--kb-text-soft);
}

.kba-article__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kba-article__metasep {
  color: var(--kb-navy-200);
}


/* ── Prose (article body typography) ──────────────────────── */
.kba-prose {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--kb-text-muted);
  max-width: 68ch;
}

.kba-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--kb-navy-800);
  margin: 36px 0 12px;
  line-height: 1.25;
}

.kba-prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kb-text);
  margin: 28px 0 8px;
}

.kba-prose h4,
.kba-prose h5,
.kba-prose h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--kb-text);
  margin: 20px 0 6px;
}

.kba-prose p {
  margin: 0 0 14px;
}

.kba-prose ul,
.kba-prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.kba-prose li {
  margin: 0 0 6px;
}

.kba-prose strong {
  color: var(--kb-text);
  font-weight: 600;
}

.kba-prose a {
  color: var(--kb-navy);
  text-decoration: underline;
  text-decoration-color: var(--kb-navy-200);
  text-underline-offset: 3px;
}

.kba-prose a:hover {
  text-decoration-color: var(--kb-navy);
}

.kba-prose pre {
  background: #22263C;
  color: #E5E7F0;
  border-radius: var(--kb-radius-sm);
  padding: 14px 16px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 18px;
  overflow-x: auto;
}

.kba-prose code {
  background: var(--kb-navy-50);
  color: var(--kb-navy-800);
  padding: 2px 6px;
  border-radius: var(--kb-radius-xs);
  font-size: 0.9em;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.kba-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.kba-prose blockquote {
  border-left: 3px solid var(--kb-navy-200);
  margin: 16px 0;
  padding: 8px 16px;
  color: var(--kb-text-soft);
  font-style: italic;
}

.kba-prose img {
  border-radius: var(--kb-radius-md);
  max-width: 100%;
  height: auto;
}

.kba-prose hr {
  border: none;
  border-top: 1px solid var(--kb-line);
  margin: 28px 0;
}

.kba-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 18px;
}

.kba-prose th,
.kba-prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--kb-line);
}

.kba-prose th {
  font-weight: 700;
  color: var(--kb-text);
  background: var(--kb-navy-50);
}

/* ── Feedback block ────────────────────────────────────────── */
.kba-feedback {
  margin-top: 36px;
  padding: 20px 22px;
  background: var(--kb-navy-50);
  border: 1px solid var(--kb-navy-100);
  border-radius: var(--kb-radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.kba-feedback h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--kb-navy-800);
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}

.kba-feedback p {
  font-size: 13px;
  color: var(--kb-text-soft);
  margin: 2px 0 0;
}

.kba-feedback__buttons {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.kba-feedback__buttons button {
  background: var(--kb-surface-solid);
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kb-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--kb-transition), border-color var(--kb-transition), color var(--kb-transition);
}

.kba-feedback__buttons button:hover {
  border-color: var(--kb-navy-200);
  color: var(--kb-navy);
  background: var(--kb-surface-solid);
}

.kba-feedback__buttons button:disabled {
  opacity: 0.55;
  cursor: default;
}

.kba-feedback__thanks {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kb-navy-800);
  margin: 0;
}

/* ── Related articles ──────────────────────────────────────── */
.kba-related {
  margin-top: 32px;
}

.kba-related h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--kb-text);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.kba-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Article card used in related grid */
.kba-art {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--kb-surface-solid);
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-md);
  text-decoration: none;
  transition: border-color var(--kb-transition), background var(--kb-transition), transform var(--kb-transition);
}

.kba-art:hover {
  border-color: var(--kb-navy-200);
  background: var(--kb-navy-50);
  transform: translateY(-1px);
}

.kba-art__ico {
  width: 30px;
  height: 30px;
  border-radius: var(--kb-radius-xs);
  background: var(--kb-navy-50);
  color: var(--kb-navy);
  display: grid;
  place-items: center;
  flex: none;
}

.kba-art:hover .kba-art__ico {
  background: var(--kb-navy-100);
}

.kba-art__body {
  min-width: 0;
  flex: 1;
}

.kba-art__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kb-text);
  margin: 0 0 4px;
  line-height: 1.35;
  letter-spacing: 0;
}

.kba-art__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--kb-text-soft);
}

.kba-art__cat {
  font-weight: 600;
  color: var(--kb-navy);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .kba-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .kba-with-rail {
    grid-template-columns: 1fr;
  }

  .kba-rail {
    position: static;
    order: -1;
  }

  .kba-rail__card {
    border-radius: var(--kb-radius-md);
  }
}

@media (max-width: 760px) {
  .kba-article {
    padding: 24px 20px 28px;
    border-radius: var(--kb-radius-lg);
  }

  .kba-article h1 {
    max-width: none;
  }

  .kba-feedback {
    flex-direction: column;
    align-items: flex-start;
  }

  .kba-feedback__buttons {
    margin-left: 0;
    width: 100%;
  }

  .kba-feedback__buttons button {
    flex: 1;
    justify-content: center;
  }

  .kba-related__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Header actions + language switcher ──────────────────────────────── */
.kb-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kb-langswitch {
  position: relative;
}

.kb-langswitch__toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--kb-navy-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--kb-navy);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--kb-transition), background var(--kb-transition);
}

.kb-langswitch__toggle::-webkit-details-marker { display: none; }
.kb-langswitch__toggle::marker { content: ""; }

.kb-langswitch__toggle:hover,
.kb-langswitch[open] .kb-langswitch__toggle {
  background: var(--kb-navy-50);
  border-color: var(--kb-navy-300);
}

.kb-langswitch__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--kb-navy) 30%, transparent);
}

.kb-langswitch__globe,
.kb-langswitch__caret { color: var(--kb-navy-300); flex: none; }
.kb-langswitch__caret { transition: transform var(--kb-transition); }
.kb-langswitch[open] .kb-langswitch__caret { transform: rotate(180deg); }

.kb-langswitch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--kb-navy-200);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(37, 43, 72, 0.16);
  padding: 6px;
  z-index: 90;
  animation: kb-langswitch-in 0.13s ease;
}

@keyframes kb-langswitch-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.kb-langswitch__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--kb-navy);
  font-size: 0.92rem;
}

.kb-langswitch__item:hover { background: var(--kb-navy-50); }
.kb-langswitch__item.is-active { background: var(--kb-orange-50); }

.kb-langswitch__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--kb-navy-100);
  color: var(--kb-navy-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.kb-langswitch__item.is-active .kb-langswitch__code {
  background: var(--kb-orange);
  color: #fff;
}

.kb-langswitch__name { font-weight: 600; }

@media (max-width: 860px) {
  .kb-header-actions { gap: 8px; }
  .kb-langswitch__current { display: none; }
}
