@import url("https://fonts.googleapis.com/css2?family=Newsreader:wght@600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --kb-content-max: 1160px;
  --kb-content-narrow: 760px;
  --kb-reading-max: 720px;
  --kb-canvas: #edf2fb;
  --kb-canvas-strong: #dce9ff;
  --kb-surface: rgba(255, 255, 255, 0.94);
  --kb-surface-solid: #ffffff;
  --kb-surface-soft: #f4f8ff;
  --kb-surface-muted: #eef4ff;
  --kb-line: rgba(95, 113, 135, 0.16);
  --kb-line-strong: rgba(95, 113, 135, 0.28);
  --kb-text: #0f1b2d;
  --kb-text-muted: #42546b;
  --kb-text-soft: #5f7187;
  --kb-accent: #2f6fe1;
  --kb-accent-strong: #245fc9;
  --kb-accent-cyan: #18a7d0;
  --kb-accent-warm: #f4b740;
  --kb-accent-soft: rgba(47, 111, 225, 0.14);
  --kb-accent-ghost: rgba(47, 111, 225, 0.08);
  --kb-success: #2f7d57;
  --kb-success-soft: rgba(47, 125, 87, 0.14);
  --kb-shadow-soft: 0 16px 38px rgba(15, 27, 45, 0.08);
  --kb-shadow-strong: 0 24px 60px rgba(15, 27, 45, 0.14);
  --kb-radius-xs: 12px;
  --kb-radius-sm: 18px;
  --kb-radius-md: 26px;
  --kb-radius-lg: 34px;
  --kb-transition: 180ms ease;
}

*,
*::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: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 225, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(244, 183, 64, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f2f7ff 38%, var(--kb-canvas) 100%);
}

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: "Newsreader", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--kb-text);
}

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

code,
pre,
kbd {
  font-family: "Consolas", "SFMono-Regular", "Cascadia Code", monospace;
}

:focus-visible {
  outline: 3px solid rgba(47, 111, 225, 0.38);
  outline-offset: 3px;
}

.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(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(95, 113, 135, 0.1);
}

.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: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(47, 111, 225, 0.18), rgba(24, 167, 208, 0.1));
  border: 1px solid rgba(47, 111, 225, 0.18);
  color: var(--kb-accent-strong);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.kb-brand--logo .kb-brand-mark {
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
}

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

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

.kb-brand-name {
  color: var(--kb-text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}

.kb-brand-sub {
  color: var(--kb-text-soft);
  font-size: 0.92rem;
}

.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: 0;
}

.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-accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  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-accent);
  box-shadow: 0 0 0 6px rgba(47, 111, 225, 0.12);
}

.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: linear-gradient(135deg, var(--kb-accent) 0%, var(--kb-accent-strong) 100%);
  color: #fff;
}

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

.kb-empty {
  padding: 30px;
  border: 1px solid rgba(95, 113, 135, 0.14);
  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-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 rgba(95, 113, 135, 0.12);
  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 rgba(95, 113, 135, 0.16);
  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 rgba(95, 113, 135, 0.16);
  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 rgba(95, 113, 135, 0.18);
  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: rgba(47, 111, 225, 0.08);
  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 rgba(95, 113, 135, 0.14);
  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(-3px);
  border-color: rgba(47, 111, 225, 0.28);
  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: 14px;
  background: linear-gradient(160deg, rgba(47, 111, 225, 0.16), rgba(47, 111, 225, 0.06));
  color: var(--kb-accent-strong);
  font-weight: 700;
}

.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 rgba(95, 113, 135, 0.14);
  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: rgba(47, 111, 225, 0.08);
  border-color: rgba(47, 111, 225, 0.22);
  transform: translateY(-2px);
}

.kb-support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 30px;
  border: 1px solid rgba(47, 111, 225, 0.18);
  border-radius: var(--kb-radius-lg);
  background:
    linear-gradient(135deg, rgba(47, 111, 225, 0.1) 0%, rgba(255, 255, 255, 0.78) 44%, rgba(244, 183, 64, 0.16) 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: 28px;
}

.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 rgba(95, 113, 135, 0.14);
  color: var(--kb-text-muted);
  font-weight: 700;
}

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

.kb-article-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(95, 113, 135, 0.12);
  border-radius: 20px;
  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-article-list-main {
  min-width: 0;
}

.kb-article-list-title {
  margin-bottom: 6px;
  color: var(--kb-text);
  font-size: 1.12rem;
  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-accent-strong);
  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 rgba(95, 113, 135, 0.12);
  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 rgba(95, 113, 135, 0.12);
}

.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-accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.kb-article-body blockquote {
  margin-left: 0;
  padding: 12px 20px 8px 20px;
  border-left: 4px solid rgba(47, 111, 225, 0.42);
  border-radius: 0 var(--kb-radius-sm) var(--kb-radius-sm) 0;
  background: rgba(47, 111, 225, 0.08);
  color: var(--kb-text-muted);
}

.kb-article-body code {
  padding: 0.12em 0.38em;
  border-radius: 8px;
  background: rgba(95, 113, 135, 0.1);
  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: rgba(95, 113, 135, 0.16);
}

.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 rgba(95, 113, 135, 0.14);
  text-align: left;
  vertical-align: top;
}

.kb-article-body th {
  background: rgba(95, 113, 135, 0.06);
}

.kb-article-body :where(.callout, .note, .alert, .warning, .tip) {
  padding: 16px 18px;
  border: 1px solid rgba(47, 111, 225, 0.18);
  border-radius: 18px;
  background: rgba(47, 111, 225, 0.06);
}

.kb-article-feedback {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(95, 113, 135, 0.12);
}

.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 rgba(95, 113, 135, 0.14);
  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: rgba(47, 111, 225, 0.28);
  background: rgba(47, 111, 225, 0.08);
}

.kb-article-feedback-btn--negative:hover,
.kb-article-feedback-btn--negative:focus-visible {
  border-color: rgba(95, 113, 135, 0.2);
}

.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 rgba(95, 113, 135, 0.12);
  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: rgba(47, 111, 225, 0.08);
}

.kb-article-outline-link.is-active {
  color: var(--kb-accent-strong);
  background: rgba(47, 111, 225, 0.12);
  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 rgba(95, 113, 135, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(242, 247, 255, 0.94) 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: linear-gradient(135deg, var(--kb-accent) 0%, var(--kb-accent-cyan) 100%);
  color: #fff;
  box-shadow: 0 22px 42px rgba(47, 111, 225, 0.22);
  cursor: pointer;
  transition:
    transform var(--kb-transition),
    box-shadow var(--kb-transition);
}

.kb-chat-fab:hover,
.kb-chat-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 52px rgba(47, 111, 225, 0.3);
}

.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-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(468px, calc(100vw - 32px));
  height: min(80vh, 760px);
  border: 1px solid rgba(95, 113, 135, 0.14);
  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(95, 113, 135, 0.1);
  background:
    radial-gradient(circle at top right, rgba(47, 111, 225, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.kb-chat-header h2 {
  margin-bottom: 4px;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.kb-chat-header p {
  margin-bottom: 0;
  color: var(--kb-text-muted);
  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(95, 113, 135, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--kb-text-muted);
  cursor: pointer;
  transition:
    background var(--kb-transition),
    border-color var(--kb-transition),
    color var(--kb-transition),
    transform var(--kb-transition);
}

.kb-chat-close:hover,
.kb-chat-close:focus-visible {
  background: rgba(47, 111, 225, 0.08);
  border-color: rgba(47, 111, 225, 0.18);
  color: var(--kb-accent-strong);
  transform: translateY(-1px);
}

.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 {
  padding: 10px 14px 8px;
}

.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 rgba(95, 113, 135, 0.14);
  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: 10px;
  width: 100%;
  justify-content: space-between;
}

.kb-chat-history-toggle:hover,
.kb-chat-history-toggle:focus-visible,
.kb-chat-new-thread:hover,
.kb-chat-new-thread:focus-visible {
  background: rgba(47, 111, 225, 0.08);
  border-color: rgba(47, 111, 225, 0.18);
  color: var(--kb-accent-strong);
  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: var(--kb-accent-strong);
}

.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 rgba(95, 113, 135, 0.1);
  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: rgba(47, 111, 225, 0.05);
  border-color: rgba(47, 111, 225, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.05);
}

.kb-chat-thread-item.is-active {
  border-color: rgba(47, 111, 225, 0.26);
  background: rgba(47, 111, 225, 0.08);
}

.kb-chat-thread-item.is-unread {
  border-color: rgba(47, 111, 225, 0.2);
}

.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: var(--kb-accent);
}

.kb-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 14px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 242, 251, 0.88) 100%);
}

.kb-chat-empty {
  padding: 18px;
  border: 1px dashed rgba(95, 113, 135, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--kb-text-muted);
  text-align: center;
}

.kb-chat-msg-block {
  display: grid;
  gap: 8px;
}

.kb-chat-msg-block + .kb-chat-msg-block,
.kb-chat-msg-row + .kb-chat-msg-block {
  margin-top: 12px;
}

.kb-chat-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.kb-chat-msg-row.user {
  flex-direction: row-reverse;
}

.kb-chat-msg-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(95, 113, 135, 0.12);
  color: var(--kb-text);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

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

.kb-chat-msg-avatar.user {
  background: rgba(47, 111, 225, 0.16);
  color: var(--kb-accent-strong);
}

.kb-chat-msg-avatar.operator {
  background: rgba(47, 125, 87, 0.16);
  color: var(--kb-success);
}

.kb-chat-msg-content {
  max-width: min(100%, 372px);
  display: grid;
  gap: 4px;
}

.kb-chat-msg-row.user .kb-chat-msg-content {
  align-items: end;
}

.kb-chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 2px;
  color: var(--kb-text-soft);
  font-size: 0.7rem;
}

.kb-chat-msg-row.user .kb-chat-msg-meta {
  justify-content: flex-end;
}

.kb-chat-msg {
  padding: 10px 12px;
  border: 1px solid rgba(95, 113, 135, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--kb-text);
  font-size: 0.9rem;
  line-height: 1.48;
  box-shadow: 0 10px 24px rgba(15, 27, 45, 0.08);
  overflow-wrap: anywhere;
}

.kb-chat-msg.user {
  border-color: transparent;
  background: linear-gradient(135deg, var(--kb-accent) 0%, var(--kb-accent-strong) 100%);
  color: #fff;
}

.kb-chat-msg.operator {
  border-color: rgba(47, 125, 87, 0.18);
  background: rgba(232, 245, 238, 0.96);
}

.kb-chat-msg.is-animated {
  animation: kb-chat-bubble-in 220ms ease both;
}

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

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

.kb-chat-msg 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.45em;
}

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

.kb-chat-msg a,
.kb-chat-citation {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.kb-chat-msg.user a {
  color: #fff;
}

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

.kb-chat-msg.user code {
  background: rgba(255, 255, 255, 0.18);
}

.kb-chat-citations {
  margin: 4px 0 0;
}

.kb-chat-citations-summary {
  cursor: pointer;
  color: var(--kb-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.kb-chat-citations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.kb-chat-citation {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(47, 111, 225, 0.08);
  color: var(--kb-accent-strong);
  font-size: 0.72rem;
  font-weight: 600;
}

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

.kb-chat-feedback-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.kb-chat-feedback-button.is-selected {
  border-color: rgba(47, 111, 225, 0.26);
  background: rgba(47, 111, 225, 0.12);
  color: var(--kb-accent-strong);
}

.kb-chat-feedback-button-escalate {
  border-color: rgba(47, 125, 87, 0.26);
  color: var(--kb-success);
}

.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-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kb-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 27, 45, 0.4);
  animation: kb-chat-dot 900ms ease-in-out infinite;
}

.kb-chat-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.kb-chat-typing span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes kb-chat-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

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

.kb-chat-capture-shell {
  padding: 13px;
  border: 1px solid rgba(47, 111, 225, 0.18);
  border-radius: 18px;
  background: rgba(255, 248, 241, 0.96);
  box-shadow: var(--kb-shadow-soft);
}

.kb-chat-capture.is-required .kb-chat-capture-shell {
  border-color: rgba(47, 111, 225, 0.3);
  background: rgba(255, 244, 234, 0.98);
}

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

.kb-chat-capture-title {
  margin-bottom: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  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 rgba(95, 113, 135, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--kb-text);
}

.kb-chat-capture-submit {
  background: linear-gradient(135deg, var(--kb-accent) 0%, var(--kb-accent-strong) 100%);
  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 rgba(95, 113, 135, 0.1);
  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 rgba(95, 113, 135, 0.14);
  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: 1px solid rgba(47, 111, 225, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 111, 225, 0.96) 0%, rgba(24, 167, 208, 0.92) 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(47, 111, 225, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform var(--kb-transition),
    box-shadow var(--kb-transition),
    border-color var(--kb-transition),
    filter var(--kb-transition);
}

.kb-chat-form button:hover,
.kb-chat-form button:focus-visible,
#kb-chat-send:hover,
#kb-chat-send:focus-visible {
  border-color: rgba(47, 111, 225, 0.2);
  box-shadow:
    0 10px 22px rgba(47, 111, 225, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.kb-chat-form button:disabled,
.kb-chat-feedback-button:disabled,
.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;
}

@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 rgba(95, 113, 135, 0.12);
    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-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 {
    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-msg-content {
    max-width: min(100%, 260px);
  }

  .kb-chat-feedback {
    margin-left: 0;
  }
}

@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;
  }
}
