/* PetConnect Help Center — standalone, website theme, modern */

:root {
  /* Match common/css/home.css exactly */
  --kb-primary: #71ADDD;
  --kb-primary-dark: #5599c9;
  --kb-primary-deep: #4f8fb8;
  --kb-primary-soft: rgba(113, 173, 221, 0.14);
  --kb-ink: #0f172a;
  --kb-slate: #334155;
  --kb-muted: #64748b;
  --kb-bg: #f4fafc;
  --kb-surface: #ffffff;
  --kb-radius: 16px;
  --kb-radius-sm: 12px;
  --kb-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --kb-shadow-sm: 0 8px 28px rgba(15, 23, 42, 0.06);
  --kb-font: "DM Sans", system-ui, -apple-system, sans-serif;
  --kb-font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --kb-container: 1140px;
  --kb-gradient: linear-gradient(135deg, #71ADDD 0%, #4f8fb8 100%);
  --kb-hero-bg:
    radial-gradient(900px 360px at 12% -10%, rgba(113, 173, 221, 0.16), transparent 70%),
    radial-gradient(700px 300px at 95% 0%, rgba(113, 173, 221, 0.10), transparent 70%),
    var(--kb-bg);
  --kb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --kb-header-bar-height: calc(38px + (2 * 0.65rem));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.kb-site {
  margin: 0;
  font-family: var(--kb-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--kb-slate);
  background: var(--kb-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--kb-primary-dark); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--kb-primary-deep); }

.kb-container {
  width: min(100% - 2rem, var(--kb-container));
  margin-inline: auto;
}

.kb-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.kb-skip {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--kb-primary-deep); color: #fff; border-radius: 8px;
}
.kb-skip:focus { left: 0.5rem; top: 0.5rem; }

/* ── Header + hero: one banner at top; nav pins on scroll ── */
.kb-header {
  position: relative;
  overflow: visible;
  background: var(--kb-hero-bg);
  z-index: 30;
}

.kb-header__bar {
  position: relative;
  z-index: 120;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background 0.28s var(--kb-ease),
    border-color 0.28s var(--kb-ease),
    box-shadow 0.28s var(--kb-ease);
}

.kb-header__bar.is-pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--kb-hero-bg);
  border-bottom-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.kb-header__pin-sentinel {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  pointer-events: none;
  visibility: hidden;
}

.kb-header__bar-spacer {
  display: none;
  height: var(--kb-header-bar-height);
  pointer-events: none;
}

.kb-header__bar.is-pinned + .kb-header__bar-spacer {
  display: block;
}

.kb-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.08), transparent);
  pointer-events: none;
}

.kb-header__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  padding: 0.65rem 0;
  min-height: calc(38px + (2 * 0.65rem));
}

.kb-header__hero-band {
  position: relative;
  z-index: 1;
  background: transparent;
  overflow: visible;
}

.kb-header__hero-band::after {
  display: none;
}

/* Logo — same as .site-nav */
.kb-logo { display: inline-flex; align-items: center; line-height: 0; margin-right: auto; }
.kb-logo .pc-brand-logo,
.kb-logo .pc-brand-logo-svg {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
  transition: height 0.25s ease;
}
.kb-logo .pc-brand-logo-svg { flex-shrink: 0; }
.kb-logo .pc-brand-logo-svg #Rectangle_1937,
.kb-logo .pc-brand-logo-svg #Rectangle_1939,
.kb-logo .pc-brand-logo-svg #Rectangle_1941,
.kb-logo .pc-brand-logo-svg #Rectangle_1959,
.kb-logo .pc-brand-logo-svg #Rectangle_1961,
.kb-logo .pc-brand-logo-svg #Rectangle_1963,
.kb-logo .pc-brand-logo-svg #Rectangle_1965,
.kb-logo .pc-brand-logo-svg #Rectangle_1967 {
  fill: var(--kb-ink);
}

/* Subnav — same colours as .site-nav .nav-link */
.kb-subnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: none;
  border: none;
}

.kb-subnav__link {
  display: inline-flex;
  align-items: center;
  color: var(--kb-slate);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.78rem;
  border-radius: 10px;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.kb-subnav__link:hover,
.kb-subnav__link:focus {
  color: var(--kb-ink);
  background: rgba(113, 173, 221, 0.08);
  text-decoration: none;
}

.kb-subnav__link.is-active {
  color: var(--kb-primary-dark);
  background: rgba(113, 173, 221, 0.1);
}

/* Email — plain text link, lighter than nav */
.kb-header__email {
  display: inline-flex;
  align-items: center;
  color: var(--kb-muted);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.kb-header__email:hover {
  color: var(--kb-primary-dark);
  background: rgba(113, 173, 221, 0.06);
  text-decoration: none;
}

.kb-nav-toggle {
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  background: transparent;
  color: var(--kb-slate);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kb-nav-toggle:hover {
  background: rgba(113, 173, 221, 0.08);
  border-color: rgba(113, 173, 221, 0.25);
}

.kb-nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(113, 173, 221, 0.18);
}

/* Hero */
.kb-hero {
  padding: 1.75rem 0 2.25rem;
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.kb-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--kb-primary-dark); margin-bottom: 0.65rem;
}
.kb-hero__eyebrow i { font-size: 0.5rem; color: var(--kb-primary); }

.kb-hero__title {
  font-family: var(--kb-font-head);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 800; margin: 0 0 0.55rem; line-height: 1.15;
  letter-spacing: -0.025em; color: var(--kb-ink);
}

.kb-hero__accent {
  display: inline-block;
  background: var(--kb-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.kb-hero__subtitle {
  margin: 0 auto 1.35rem; max-width: 38rem;
  font-size: 1.05rem; line-height: 1.6; color: var(--kb-muted);
}

/* Breadcrumb */
.kb-breadcrumb { margin-bottom: 1rem; text-align: left; }
.kb-breadcrumb--center { text-align: center; }
.kb-breadcrumb--center .kb-breadcrumb__list { justify-content: center; }

.kb-breadcrumb__list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.kb-breadcrumb__item:not(:last-child)::after { content: '›'; margin-left: 0.35rem; opacity: 0.55; }
.kb-breadcrumb__item a, .kb-breadcrumb__item span { color: var(--kb-muted); }
.kb-breadcrumb__item a:hover { color: var(--kb-primary-dark); text-decoration: none; }
.kb-breadcrumb__item.is-active span { color: var(--kb-slate); font-weight: 700; }

/* Pill search */
.kb-search {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 50;
}

.kb-search__pill {
  position: relative;
  z-index: 51;
  display: flex; align-items: stretch;
  background: #fff;
  border-radius: 999px;
  padding: 5px 5px 5px 0;
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s var(--kb-ease), transform 0.25s var(--kb-ease);
}
.kb-search__pill:focus-within {
  box-shadow:
    0 6px 28px rgba(113, 173, 221, 0.16),
    0 0 0 2px rgba(113, 173, 221, 0.22);
  transform: translateY(-1px);
}

.kb-search__icon {
  position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%);
  color: var(--kb-muted); pointer-events: none; z-index: 1; font-size: 0.95rem;
}

.kb-search__input {
  flex: 1; width: 100%; min-width: 0;
  height: 50px; border: none; background: transparent;
  padding: 0 6.5rem 0 2.75rem;
  font-size: 1rem; font-family: inherit; color: var(--kb-ink);
  border-radius: 999px; outline: none;
}
.kb-search__input::placeholder { color: var(--kb-muted); opacity: 0.85; }
.kb-search__input::-webkit-search-cancel-button { display: none; }

.kb-search__clear {
  position: absolute; right: 5.75rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--kb-muted); background: rgba(15,23,42,0.06); font-size: 0.65rem; z-index: 2;
  transition: background 0.15s ease, color 0.15s ease;
}
.kb-search__clear:hover { background: rgba(15,23,42,0.1); color: var(--kb-ink); text-decoration: none; }

.kb-search__submit {
  flex-shrink: 0; border: none; cursor: pointer;
  padding: 0 1.35rem; min-width: 5.5rem;
  font-family: inherit; font-size: 0.9375rem; font-weight: 600; color: #fff;
  background: var(--kb-gradient);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(113, 173, 221, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.kb-search__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(113, 173, 221, 0.42);
  filter: brightness(1.02);
}

.kb-search__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 200;
  background: var(--kb-surface);
  border-radius: var(--kb-radius-sm);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(113, 173, 221, 0.18);
  max-height: 340px;
  overflow: auto;
  text-align: left;
}
.kb-search__item {
  display: block; padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  color: var(--kb-ink); text-decoration: none;
  transition: background 0.15s ease;
}
.kb-search__item:hover, .kb-search__item.is-active {
  background: var(--kb-primary-soft); text-decoration: none;
}
.kb-search__item-title { display: block; font-weight: 700; font-size: 0.95rem; }
.kb-search__item-snippet { display: block; font-size: 0.85rem; color: var(--kb-muted); margin-top: 0.2rem; line-height: 1.45; }
.kb-search__item-meta { display: block; font-size: 0.72rem; font-weight: 600; color: var(--kb-primary-dark); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.kb-search__item mark { background: rgba(113, 173, 221, 0.28); padding: 0 0.12em; border-radius: 3px; }
.kb-search__loading, .kb-search__empty, .kb-search__seeall { padding: 0.85rem 1.1rem; font-size: 0.9rem; color: var(--kb-muted); }
.kb-search__seeall { display: block; font-weight: 700; color: var(--kb-primary-dark); border-top: 1px solid rgba(15,23,42,0.06); }

/* Subnav block removed — lives inside .kb-header__bar */

/* Main */
.kb-main {
  position: relative;
  z-index: 1;
  padding: 2.75rem 0 4rem;
  min-height: 55vh;
  background:
    radial-gradient(900px 320px at 8% -5%, rgba(113, 173, 221, 0.12), transparent 65%),
    radial-gradient(700px 280px at 95% 0%, rgba(113, 173, 221, 0.08), transparent 70%),
    var(--kb-bg);
}

.kb-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 2.5rem 2.75rem;
}

.kb-landing-block {
  opacity: 0;
  transform: translateY(12px);
  animation: kbFadeUp 0.55s var(--kb-ease) forwards;
}
.kb-landing-block:nth-child(2) { animation-delay: 0.06s; }
.kb-landing-block:nth-child(3) { animation-delay: 0.12s; }
.kb-landing-block:nth-child(4) { animation-delay: 0.18s; }
.kb-landing-block:nth-child(5) { animation-delay: 0.24s; }
.kb-landing-block:nth-child(6) { animation-delay: 0.3s; }

.kb-landing-block__title {
  display: block;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  font-family: var(--kb-font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--kb-primary-dark);
}

.kb-landing-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kb-landing-block__list li {
  margin-bottom: 0.5rem;
}

.kb-landing-block__list li:last-child {
  margin-bottom: 0;
}

.kb-landing-block__list a {
  display: block;
  color: var(--kb-slate);
  font-size: 0.9375rem;
  line-height: 1.45;
  padding: 0.15rem 0;
  transition: color 0.15s ease;
}

.kb-landing-block__list a:hover {
  color: var(--kb-primary-dark);
  text-decoration: none;
}

.kb-landing-block__more {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--kb-primary) !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.kb-landing-block__more:hover {
  color: var(--kb-primary-deep) !important;
  text-decoration: none;
}

.kb-section-title {
  font-family: var(--kb-font-head); font-size: 1.4rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--kb-ink); margin: 0;
}

.kb-muted { color: var(--kb-muted); }
.kb-hidden { display: none !important; }

.kb-empty {
  text-align: center; padding: 3.5rem 1.5rem; color: var(--kb-muted);
  background: var(--kb-surface); border-radius: var(--kb-radius);
  border: 1px dashed rgba(113, 173, 221, 0.35);
  box-shadow: var(--kb-shadow-sm);
}
.kb-empty p { margin: 0; max-width: 28rem; margin-inline: auto; line-height: 1.65; }
.kb-empty a { font-weight: 700; }

/* Lists — flat */
.kb-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.kb-article-list li { border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
.kb-article-list li:last-child { border-bottom: none; }

.kb-article-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  color: var(--kb-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.kb-article-list a:hover {
  background: none;
  color: var(--kb-primary-dark);
  text-decoration: none;
}
.kb-article-list__title { font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; }
.kb-article-list__meta { font-size: 0.78rem; font-weight: 600; color: var(--kb-muted); white-space: nowrap; }
.kb-article-list mark { background: rgba(113, 173, 221, 0.28); padding: 0 0.1em; border-radius: 3px; }

.kb-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem;
}
.kb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--kb-muted);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  transition: color 0.15s ease;
}
.kb-back:hover { color: var(--kb-primary-dark); text-decoration: none; transform: none; box-shadow: none; }

/* Article page — no hero banner; nav pinned from load */
.kb-article-page .kb-header {
  background: #fff;
}

.kb-article-page .kb-header__bar,
.kb-article-page .kb-header__bar.is-pinned {
  position: fixed;
  background: #fff;
  border-bottom-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.kb-article-page .kb-header__bar-spacer {
  display: block;
}

.kb-article-page .kb-main {
  padding: 2rem 0 4.5rem;
  background: #fff;
}

.kb-container--article {
  width: min(100% - 2rem, 1280px);
}

.kb-article-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .kb-article-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1200px) {
  .kb-article-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.kb-doc-sidebar-toggle {
  display: none;
}

@media (max-width: 991px) {
  .kb-article-shell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .kb-doc-sidebar-toggle {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    order: 0;
    width: 100%;
    margin: 0;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    background: #fff;
    color: var(--kb-slate);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--kb-shadow-sm);
    transition:
      color 0.15s ease,
      border-color 0.15s ease,
      background 0.15s ease,
      box-shadow 0.15s ease;
  }

  .kb-doc-sidebar-toggle__icon {
    color: var(--kb-primary-dark);
    font-size: 0.95rem;
  }

  .kb-doc-sidebar-toggle__text {
    min-width: 0;
  }

  .kb-doc-sidebar-toggle__chevron {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--kb-muted);
    transition: transform 0.2s var(--kb-ease), color 0.15s ease;
  }

  .kb-doc-sidebar-toggle:hover {
    color: var(--kb-primary-dark);
    border-color: rgba(113, 173, 221, 0.35);
    background: rgba(113, 173, 221, 0.06);
  }

  .kb-doc-sidebar-toggle:hover .kb-doc-sidebar-toggle__chevron {
    color: var(--kb-primary-dark);
  }

  .kb-doc-sidebar-toggle[aria-expanded="true"] {
    color: var(--kb-primary-dark);
    border-color: rgba(113, 173, 221, 0.35);
    background: rgba(113, 173, 221, 0.08);
    box-shadow: 0 4px 16px rgba(113, 173, 221, 0.12);
  }

  .kb-doc-sidebar-toggle[aria-expanded="true"] .kb-doc-sidebar-toggle__chevron {
    transform: rotate(180deg);
    color: var(--kb-primary-dark);
  }

  .kb-article-center {
    min-width: 0;
  }

  /* Bottom-sheet popup over content */
  body.kb-doc-drawer-open {
    overflow: hidden;
  }

  .kb-doc-drawer__backdrop {
    position: fixed;
    inset: 0;
    z-index: 280;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(15, 23, 42, 0.48);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--kb-ease), visibility 0.28s var(--kb-ease);
  }

  .kb-doc-drawer__backdrop:not([hidden]) {
    opacity: 1;
    visibility: visible;
  }

  .kb-doc-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 290;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(88vh, 640px);
    margin: 0;
    background: #fff;
    border: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.18);
    transform: translateY(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.34s var(--kb-ease), visibility 0.34s var(--kb-ease);
  }

  .kb-doc-sidebar.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .kb-doc-drawer__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.85rem 1rem 0.65rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .kb-doc-drawer__grab {
    position: absolute;
    top: 0.45rem;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.14);
  }

  .kb-doc-drawer__title {
    flex: 1 1 auto;
    margin: 0.35rem 0 0;
    padding: 0;
    font-family: var(--kb-font-head);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--kb-ink);
  }

  .kb-doc-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: 0.2rem 0 0;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #fff;
    color: var(--kb-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }

  .kb-doc-drawer__close:hover {
    color: var(--kb-primary-dark);
    border-color: rgba(113, 173, 221, 0.35);
    background: rgba(113, 173, 221, 0.06);
  }

  .kb-doc-sidebar__label {
    display: none;
  }

  .kb-doc-sidebar__inner {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0.5rem 0.85rem 1.25rem;
  }
}

.kb-doc-drawer__head {
  display: none;
}

.kb-doc-drawer__backdrop {
  display: none;
}

.kb-doc-sidebar {
  display: none;
  max-height: min(70vh, 640px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
}

.kb-doc-sidebar.is-open {
  display: block;
}

@media (max-width: 991px) {
  .kb-doc-drawer__backdrop {
    display: block;
  }

  .kb-doc-sidebar,
  .kb-doc-sidebar.is-open {
    display: flex;
  }
}

@media (min-width: 992px) {
  .kb-doc-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--kb-header-bar-height) + 1.5rem);
    max-height: calc(100vh - var(--kb-header-bar-height) - 3rem);
    background: transparent;
    border: none;
    border-radius: 0;
  }
}

.kb-doc-sidebar__inner {
  padding: 0.5rem 0.75rem;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(113, 173, 221, 0.3) transparent;
}

@media (min-width: 992px) {
  .kb-doc-sidebar__inner {
    padding: 0;
    max-height: calc(100vh - var(--kb-header-bar-height) - 3rem);
  }
}

.kb-doc-sidebar__label {
  display: none;
  margin: 0 0 0.65rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kb-muted);
}

.kb-doc-sidebar.is-open .kb-doc-sidebar__label {
  display: block;
}

@media (min-width: 992px) {
  .kb-doc-sidebar__label { display: none !important; }
}

.kb-doc-nav__group {
  margin-bottom: 0.35rem;
  border-bottom: none;
}

.kb-doc-nav__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 0.35rem 0.35rem;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.kb-doc-nav__heading span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--kb-muted);
  line-height: 1.35;
}

.kb-doc-nav__heading i {
  flex-shrink: 0;
  font-size: 0.6rem;
  color: var(--kb-muted);
  transition: transform 0.2s var(--kb-ease);
}

.kb-doc-nav__group.is-open .kb-doc-nav__heading i {
  transform: rotate(90deg);
}

@media (min-width: 992px) {
  .kb-doc-nav__heading {
    padding: 1rem 0 0.35rem;
    cursor: default;
    pointer-events: none;
  }

  .kb-doc-nav__heading i { display: none; }
}

.kb-doc-nav__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: none;
}

.kb-doc-nav__group.is-open .kb-doc-nav__list {
  display: block;
}

@media (min-width: 992px) {
  .kb-doc-nav__list {
    display: block !important;
    padding-bottom: 0.25rem;
  }
}

.kb-doc-nav__link {
  display: block;
  padding: 0.38rem 0.65rem;
  margin: 0.1rem 0;
  border-left: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--kb-slate);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.kb-doc-nav__link:hover {
  color: var(--kb-ink);
  background: rgba(113, 173, 221, 0.08);
  text-decoration: none;
}

.kb-doc-nav__link.is-active {
  color: var(--kb-ink);
  font-weight: 600;
  background: rgba(113, 173, 221, 0.18);
  box-shadow: inset 3px 0 0 var(--kb-primary);
}

.kb-article-center {
  min-width: 0;
}

.kb-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .kb-article-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .kb-article-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 3rem;
  }
}

.kb-article-main {
  min-width: 0;
}

.kb-article-toolbar {
  --kb-toolbar-h: 44px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 40;
}

.kb-article-toolbar__search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.kb-article-page .kb-article-toolbar .kb-search {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
}

.kb-article-page .kb-article-toolbar .kb-search__pill {
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--kb-toolbar-h);
  padding: 3px;
  box-sizing: border-box;
}

.kb-article-page .kb-article-toolbar .kb-search__input {
  height: calc(var(--kb-toolbar-h) - 6px);
  font-size: 0.9375rem;
  padding-right: 6rem;
  line-height: calc(var(--kb-toolbar-h) - 6px);
}

.kb-article-page .kb-article-toolbar .kb-search__submit {
  height: calc(var(--kb-toolbar-h) - 6px);
  min-width: 4.75rem;
  padding: 0 1.1rem;
  font-size: 0.875rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(113, 173, 221, 0.32);
  align-self: center;
}

.kb-article-page .kb-article-toolbar .kb-search__pill:focus-within {
  transform: none;
}

.kb-article-toolbar .kb-copy-menu {
  flex-shrink: 0;
  align-self: center;
}

.kb-copy-menu {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: stretch;
  height: var(--kb-toolbar-h, 44px);
  box-sizing: border-box;
}

.kb-copy-menu__main,
.kb-copy-menu__toggle {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: var(--kb-slate);
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.kb-copy-menu__main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 100%;
  min-height: 100%;
  padding: 0 0.9rem;
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
}

.kb-copy-menu__main i {
  font-size: 0.95rem;
  color: var(--kb-muted);
}

.kb-copy-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  min-height: 100%;
  padding: 0;
  border-radius: 0 10px 10px 0;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--kb-muted);
  font-size: 0.72rem;
  box-sizing: border-box;
}

.kb-copy-menu__main:hover,
.kb-copy-menu__toggle:hover,
.kb-copy-menu.is-open .kb-copy-menu__toggle {
  color: var(--kb-primary-dark);
  border-color: rgba(113, 173, 221, 0.35);
  background: rgba(113, 173, 221, 0.06);
}

.kb-copy-menu__main:hover i,
.kb-copy-menu.is-open .kb-copy-menu__toggle {
  color: var(--kb-primary-dark);
}

.kb-copy-menu__main:focus-visible,
.kb-copy-menu__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(113, 173, 221, 0.18);
  z-index: 1;
}

.kb-copy-menu.is-copied .kb-copy-menu__main {
  color: var(--kb-primary-dark);
  border-color: rgba(113, 173, 221, 0.35);
  background: rgba(113, 173, 221, 0.1);
}

.kb-copy-menu.is-open .kb-copy-menu__toggle i {
  transform: rotate(180deg);
}

.kb-copy-menu__toggle i {
  transition: transform 0.2s var(--kb-ease);
}

.kb-copy-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  z-index: 220;
}

.kb-copy-menu__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--kb-slate);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.kb-copy-menu__item:hover {
  background: rgba(113, 173, 221, 0.08);
  color: var(--kb-ink);
  text-decoration: none;
}

.kb-copy-menu__item-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  line-height: 0;
}

.kb-copy-menu__item-icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.kb-copy-menu__item-icon--md {
  background: rgba(15, 23, 42, 0.06);
  color: var(--kb-slate);
  font-size: 0.85rem;
}

.kb-copy-menu__item-text {
  flex: 1 1 auto;
  min-width: 0;
}

.kb-copy-menu__item-external {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--kb-muted);
}

.kb-copy-menu__divider {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: rgba(15, 23, 42, 0.08);
}

@media (max-width: 575px) {
  .kb-helpful {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .kb-article-body h2 {
    margin-top: 1.75rem;
    font-size: 1.15rem;
  }

}

.kb-article-head {
  margin-bottom: 1.75rem;
}

.kb-article-head__cat {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kb-article-head__cat a {
  color: var(--kb-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.kb-article-head__cat a:hover {
  color: var(--kb-primary-dark);
  text-decoration: none;
}

.kb-article-head__title {
  margin: 0 0 0.55rem;
  font-family: var(--kb-font-head);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--kb-ink);
}

.kb-article-head__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--kb-muted);
}

.kb-article-head__rule {
  margin: 1.35rem 0 0;
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.kb-article-aside {
  min-width: 0;
}

@media (max-width: 991px) {
  .kb-site .kb-search__input::placeholder {
    opacity: 0;
    color: transparent;
  }

  .kb-article-aside {
    display: none;
  }

  .kb-article-page .kb-main {
    padding: 1.25rem 0 3rem;
  }

  .kb-container--article {
    width: min(100% - 1.25rem, 1280px);
  }

  .kb-article-layout {
    gap: 0;
  }

  .kb-article-head {
    margin-bottom: 1.25rem;
  }

  .kb-article-head__title {
    font-size: clamp(1.5rem, 6.5vw, 1.85rem);
    line-height: 1.18;
  }

  .kb-article-toolbar {
    --kb-toolbar-h: 42px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  /* Search 80% · copy 20% — same row on mobile */
  .kb-article-toolbar__search {
    flex: 0 0 calc((100% - 0.5rem) * 0.8);
    max-width: calc((100% - 0.5rem) * 0.8);
    min-width: 0;
  }

  .kb-article-toolbar .kb-copy-menu {
    flex: 0 0 calc((100% - 0.5rem) * 0.2);
    max-width: calc((100% - 0.5rem) * 0.2);
    min-width: 0;
    height: var(--kb-toolbar-h);
    align-self: center;
  }

  .kb-article-page .kb-article-toolbar .kb-search__icon {
    left: 0.85rem;
    font-size: 0.85rem;
  }

  .kb-article-page .kb-article-toolbar .kb-search__input {
    padding-left: 2.35rem;
    padding-right: 3.65rem;
    font-size: 0.875rem;
    line-height: calc(var(--kb-toolbar-h) - 6px);
  }

  .kb-article-page .kb-article-toolbar .kb-search__clear {
    right: 3.35rem;
  }

  .kb-article-page .kb-article-toolbar .kb-search__submit {
    min-width: 0;
    padding: 0 0.7rem;
    font-size: 0.8125rem;
  }

  .kb-article-page .kb-article-toolbar .kb-copy-menu__label {
    display: none;
  }

  .kb-article-page .kb-article-toolbar .kb-copy-menu__main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.4rem;
    justify-content: center;
  }

  .kb-article-page .kb-article-toolbar .kb-copy-menu__toggle {
    width: 26px;
    flex-shrink: 0;
  }

  .kb-article-page .kb-article-toolbar .kb-copy-menu__dropdown {
    left: auto;
    right: 0;
    min-width: min(240px, calc(100vw - 1.5rem));
    width: max-content;
    max-width: calc(100vw - 1.5rem);
  }
}

@media (min-width: 992px) {
  .kb-article-aside {
    position: sticky;
    top: calc(var(--kb-header-bar-height) + 1.5rem);
    align-self: start;
  }
}

.kb-article-body {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-size: 1.125rem;
  line-height: 1.82;
  color: var(--kb-slate);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.kb-article-body .kb-article-prose {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.kb-article-body .kb-lead {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--kb-ink);
  margin-bottom: 1.5rem;
}

.kb-article-body > :first-child {
  margin-top: 0;
}

.kb-article-body h2,
.kb-article-body h3 {
  font-family: var(--kb-font-head);
  color: var(--kb-ink);
  letter-spacing: -0.02em;
}

.kb-article-body h2,
.kb-article-body .kb-article-prose h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.kb-article-body h3,
.kb-article-body .kb-article-prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.85rem;
  margin-bottom: 0.6rem;
}

.kb-article-body p {
  margin: 0 0 1rem;
}

.kb-article-body ul,
.kb-article-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.kb-article-body li {
  margin-bottom: 0.35rem;
}

.kb-article-body a {
  color: var(--kb-primary-dark);
  font-weight: 500;
  text-underline-offset: 3px;
}

.kb-article-body img {
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.kb-article-body pre,
.kb-article-body code {
  background: rgba(113, 173, 221, 0.08);
  border-radius: 6px;
  font-size: 0.88em;
}

.kb-article-body pre {
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.kb-article-body .kb-adyen-regions {
  margin: 1.5rem 0;
}

.kb-article-body .kb-adyen-region {
  margin-bottom: 1.5rem;
}

.kb-article-body .kb-adyen-region:last-child {
  margin-bottom: 0;
}

.kb-article-body .kb-adyen-region__name {
  margin: 0 0 0.4rem;
  font-family: var(--kb-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kb-ink);
}

.kb-article-body .kb-adyen-region__countries {
  margin: 0;
  padding-left: 1.25rem;
}

.kb-article-body .kb-adyen-region__countries li {
  margin-bottom: 0.2rem;
}

.kb-article-body .kb-adyen-region--europe .kb-adyen-region__countries {
  column-count: 2;
  column-gap: 2rem;
  list-style-position: inside;
  padding-left: 0;
}

@media (max-width: 640px) {
  .kb-article-body .kb-adyen-region--europe .kb-adyen-region__countries {
    column-count: 1;
  }
}

.kb-article-body .kb-adyen-footnotes {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.kb-article-body .kb-adyen-footnotes p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--kb-muted);
}

.kb-article-body .kb-adyen-footnotes p:last-child {
  margin-bottom: 0;
}

.kb-article-body blockquote,
.kb-article-body .kb-callout {
  margin: 1.35rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid rgba(113, 173, 221, 0.55);
  background: rgba(113, 173, 221, 0.08);
  border-radius: 0 10px 10px 0;
  color: var(--kb-slate);
}

.kb-article-body .kb-callout p {
  margin: 0;
}

.kb-toc {
  display: block;
}

.kb-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.kb-toc-list a {
  color: var(--kb-muted);
  display: block;
  padding: 0.32rem 0 0.32rem 0.85rem;
  border-left: 2px solid transparent;
  font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.kb-toc-list a:hover,
.kb-toc-list a.is-active {
  color: var(--kb-ink);
  font-weight: 600;
  text-decoration: none;
  border-left-color: var(--kb-primary);
}

.kb-toc-sub {
  padding-left: 0.75rem;
}

.kb-toc-sub a {
  font-weight: 400;
}

.kb-helpful {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: none;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kb-helpful__label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--kb-ink);
}

.kb-helpful__thanks {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--kb-muted);
}

.kb-helpful-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.kb-helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--kb-slate);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.kb-helpful-btn i {
  font-size: 1rem;
  line-height: 1;
}

.kb-helpful-btn__count {
  font-variant-numeric: tabular-nums;
  min-width: 1.1rem;
  text-align: center;
}

.kb-helpful-btn:hover:not(:disabled) {
  border-color: rgba(113, 173, 221, 0.45);
  color: var(--kb-primary-dark);
  background: rgba(113, 173, 221, 0.06);
  transform: none;
  box-shadow: none;
}

.kb-helpful-btn.is-selected {
  border-color: rgba(113, 173, 221, 0.55);
  color: var(--kb-primary-dark);
  background: rgba(113, 173, 221, 0.14);
}

.kb-helpful-btn:disabled:not(.is-selected) {
  opacity: 0.55;
  cursor: default;
}

.kb-article-foot {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--kb-muted);
}

.kb-article-foot a {
  font-weight: 600;
  color: var(--kb-primary-dark);
}

.kb-related {
  margin-top: 2.75rem;
  padding: 1.35rem 1.25rem 1.15rem;
  background: linear-gradient(180deg, rgba(113, 173, 221, 0.08) 0%, rgba(113, 173, 221, 0.03) 100%);
  border: 1px solid rgba(113, 173, 221, 0.16);
  border-radius: var(--kb-radius-sm);
}

.kb-related__head {
  margin-bottom: 1rem;
}

.kb-related__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kb-primary-dark);
}

.kb-related__title {
  margin: 0;
  font-family: var(--kb-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--kb-ink);
}

.kb-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kb-related__item {
  margin: 0;
}

.kb-related__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  color: var(--kb-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s var(--kb-ease);
}

.kb-related__link:hover {
  border-color: rgba(113, 173, 221, 0.4);
  box-shadow: 0 8px 22px rgba(113, 173, 221, 0.14);
  color: var(--kb-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.kb-related__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: rgba(113, 173, 221, 0.12);
  color: var(--kb-primary-dark);
  font-size: 0.95rem;
}

.kb-related__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.kb-related__link-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.kb-related__meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--kb-muted);
}

.kb-related__arrow {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--kb-muted);
  transition: color 0.15s ease, transform 0.15s var(--kb-ease);
}

.kb-related__link:hover .kb-related__arrow {
  color: var(--kb-primary-dark);
  transform: translateX(2px);
}

@media (max-width: 575px) {
  .kb-related {
    padding: 1.1rem 0.9rem 0.95rem;
  }

  .kb-related__link {
    padding: 0.75rem 0.85rem;
    gap: 0.7rem;
  }

  .kb-related__icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }
}

/* Legacy aside cards — other pages only */
.kb-aside-card {
  background: var(--kb-surface);
  border: 1px solid rgba(113, 173, 221, 0.14);
  border-radius: var(--kb-radius-sm);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--kb-shadow-sm);
}
.kb-aside-card h2 {
  font-family: var(--kb-font-head);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kb-primary-dark);
  margin: 0 0 0.75rem;
}
.kb-aside-card ul { list-style: none; margin: 0; padding: 0; }
.kb-aside-card li { margin-bottom: 0.35rem; font-size: 0.9rem; }
.kb-aside-card li a { color: var(--kb-slate); font-weight: 500; }
.kb-aside-card li a:hover { color: var(--kb-primary-dark); }

.kb-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--kb-muted);
  margin-bottom: 1.25rem;
}
.kb-article-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.kb-article-meta i { color: var(--kb-primary-dark); opacity: 0.8; }
.kb-article-meta a { font-weight: 700; color: var(--kb-primary-dark); }

.kb-support-box {
  margin-top: 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--kb-radius-sm);
  background: var(--kb-gradient);
  color: #fff;
  box-shadow: 0 12px 32px rgba(113, 173, 221, 0.35);
}
.kb-support-box strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.kb-support-box p { margin: 0; opacity: 0.92; font-size: 0.92rem; }
.kb-support-box a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.28);
  transition: background 0.15s ease;
}
.kb-support-box a:hover { background: rgba(255,255,255,0.28); text-decoration: none; }

.kb-read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent;
}
.kb-read-progress span {
  display: block; height: 100%; width: 0; background: var(--kb-gradient);
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(113, 173, 221, 0.6);
}

@keyframes kbFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .kb-header__menu {
    display: contents;
  }

}

@media (max-width: 767px) {
  :root {
    --kb-header-bar-height: calc(34px + (2 * 0.75rem));
  }

  .kb-header__row {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  .kb-logo {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
  }

  .kb-logo .pc-brand-logo,
  .kb-logo .pc-brand-logo-svg {
    height: 34px;
    max-width: min(200px, 62vw);
  }

  .kb-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin-left: 0;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    color: var(--kb-slate);
  }

  .kb-nav-toggle:hover {
    background: rgba(113, 173, 221, 0.08);
    border-color: rgba(113, 173, 221, 0.25);
    color: var(--kb-ink);
  }

  .kb-nav-toggle__icon {
    font-size: 1.05rem;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s var(--kb-ease);
  }

  .kb-nav-toggle__icon--close {
    display: none;
  }

  .kb-nav-toggle[aria-expanded="true"] .kb-nav-toggle__icon--open {
    display: none;
  }

  .kb-nav-toggle[aria-expanded="true"] .kb-nav-toggle__icon--close {
    display: block;
  }

  .kb-nav-toggle[aria-expanded="true"] {
    background: rgba(113, 173, 221, 0.12);
    border-color: rgba(113, 173, 221, 0.28);
    color: var(--kb-primary-dark);
  }

  .kb-header__menu {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    margin-top: 0.15rem;
    padding: 0.55rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  }

  .kb-header__menu.is-open {
    display: flex;
    animation: kbMenuIn 0.22s var(--kb-ease);
  }

  .kb-subnav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.15rem;
    padding: 0;
    margin: 0;
    border: none;
  }

  .kb-subnav__link {
    width: 100%;
    padding: 0.72rem 0.85rem;
    font-size: 0.9375rem;
  }

  .kb-header__email {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.65rem 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 0 0 10px 10px;
    font-size: 0.8125rem;
    font-weight: 400;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-all;
    color: var(--kb-muted);
  }

  .kb-header__email:hover {
    color: var(--kb-primary-dark);
    background: rgba(113, 173, 221, 0.06);
  }

  .kb-hero {
    padding-top: 1.35rem;
  }

  .kb-search__submit { min-width: 4.75rem; padding: 0 1rem; font-size: 0.82rem; }
  .kb-search__input { padding-right: 5.75rem; }
  .kb-search__clear { right: 5rem; }
}

@keyframes kbMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-landing-block { animation: none; opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
