/* BabianNest — Prisma-style docs site
 * Brand color: #16A394 (teal/turquoise)
 * Three-column layout: left sidebar + main + right TOC
 * Top tab nav (Getting Started / Official / App / Guide / More)
 */

:root {
  --bn-teal: #16A394;
  --bn-teal-2: #0E867A;
  --bn-teal-soft: #E6F7F4;
  --bn-teal-line: #BFE7E0;
  --bn-bg: #ffffff;
  --bn-bg-alt: #fafbfb;
  --bn-bg-code: #f6f8f9;
  --bn-text: #131D2C;
  --bn-text-2: #4B5666;
  --bn-text-mut: #8794A2;
  --bn-line: #E5E9EE;
  --bn-line-soft: #EFF1F4;
  --bn-link: #0E867A;
  --bn-warn-bg: #FFF8E6;
  --bn-warn-line: #F0D88A;
  --bn-radius: 6px;
  --bn-radius-lg: 10px;
  --bn-shadow: 0 1px 2px rgba(15, 30, 45, 0.04);
  --bn-shadow-pop: 0 4px 16px rgba(15, 30, 45, 0.08);
  --bn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --bn-mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --bn-header-h: 64px;
  --bn-tabnav-h: 46px;
  --bn-sidebar-w: 264px;
  --bn-toc-w: 220px;
  --bn-content-max: 960px;
}
[data-theme="dark"] {
  --bn-bg: #0E1117;
  --bn-bg-alt: #161B22;
  --bn-bg-code: #1C2128;
  --bn-text: #E6EDF3;
  --bn-text-2: #B7C0CC;
  --bn-text-mut: #7E8A99;
  --bn-line: #21262D;
  --bn-line-soft: #1A1F26;
  --bn-link: #2DD4BF;
  --bn-teal-soft: rgba(22, 163, 148, 0.12);
  --bn-teal-line: rgba(22, 163, 148, 0.3);
  --bn-warn-bg: rgba(240, 216, 138, 0.08);
  --bn-warn-line: rgba(240, 216, 138, 0.3);
  --bn-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --bn-shadow-pop: 0 4px 16px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.bn-body {
  font-family: var(--bn-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--bn-text);
  background: var(--bn-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--bn-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ===== Header ===== */
.bn-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bn-bg);
  border-bottom: 1px solid var(--bn-line);
}
.bn-header__inner {
  display: flex; align-items: center; gap: 14px;
  height: var(--bn-header-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.bn-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--bn-text); font-weight: 600;
  text-decoration: none; flex-shrink: 0;
}
.bn-brand:hover { text-decoration: none; }
.bn-brand__icon { display: inline-flex; }
.bn-brand__name {
  font-size: 17px;
  letter-spacing: -0.012em;
  color: var(--bn-text);
}
.bn-brand__sep {
  color: var(--bn-line);
  font-weight: 300;
  font-size: 22px;
  padding: 0 4px;
  line-height: 1;
}
.bn-brand__sub {
  color: var(--bn-text-2);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.005em;
}

.bn-search {
  flex: 1;
  max-width: 540px;
  position: relative;
  margin: 0 auto;
}
.bn-search__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--bn-text-mut);
}
.bn-search__input {
  width: 100%; height: 38px;
  padding: 0 88px 0 36px;
  border: 1px solid var(--bn-line);
  border-radius: 8px;
  background: var(--bn-bg-alt);
  font-size: 14px; color: var(--bn-text);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.bn-search__input::placeholder { color: var(--bn-text-mut); }
.bn-search__input:focus {
  outline: none;
  border-color: var(--bn-teal);
  box-shadow: 0 0 0 3px var(--bn-teal-soft);
  background: var(--bn-bg);
}
.bn-search__kb {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; gap: 3px;
}
.bn-search__kb kbd,
.bn-ai-btn__kb kbd {
  display: inline-block;
  font-family: var(--bn-mono);
  font-size: 10.5px;
  color: var(--bn-text-mut);
  background: var(--bn-bg);
  border: 1px solid var(--bn-line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.3;
  min-width: 14px;
  text-align: center;
}

.bn-header__right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.bn-ai-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px 0 12px;
  border: 1px solid var(--bn-line);
  border-radius: 8px;
  background: var(--bn-bg);
  color: var(--bn-text); font-size: 13px;
  cursor: pointer; font-family: inherit;
}
.bn-ai-btn:hover { border-color: var(--bn-teal); color: var(--bn-teal); }
.bn-ai-btn svg { color: var(--bn-teal); }
.bn-ai-btn__kb {
  display: inline-flex; gap: 3px;
  margin-left: 4px;
}

.bn-version {
  position: relative;
  margin-left: 6px;
}
.bn-version__btn {
  display: inline-flex; align-items: center; gap: 2px;
  height: 28px; padding: 0 6px 0 10px;
  border: 1px solid var(--bn-line);
  border-radius: 6px;
  background: var(--bn-bg);
  color: var(--bn-text-2); font-size: 12.5px;
  cursor: pointer; font-family: inherit;
  font-weight: 500;
}
.bn-version__btn:hover { color: var(--bn-text); border-color: var(--bn-text-mut); }

.bn-lang { position: relative; margin-left: 4px; }
.bn-lang__btn {
  width: 32px; height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--bn-text-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.bn-lang__btn:hover { background: var(--bn-bg-alt); color: var(--bn-text); }
.bn-lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: 6px;
  background: var(--bn-bg);
  border: 1px solid var(--bn-line);
  border-radius: 8px;
  box-shadow: var(--bn-shadow-pop);
  min-width: 160px;
  display: none;
  z-index: 60;
}
.bn-lang:hover .bn-lang__menu { display: block; }
.bn-lang__menu a {
  display: block; padding: 6px 10px;
  color: var(--bn-text-2); font-size: 13px;
  border-radius: 4px; text-decoration: none;
}
.bn-lang__menu a:hover { background: var(--bn-bg-alt); color: var(--bn-text); }
.bn-lang__menu a.is-current { color: var(--bn-teal); font-weight: 500; }

.bn-icon-btn {
  width: 32px; height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bn-text-2);
  cursor: pointer;
  text-decoration: none;
}
.bn-icon-btn:hover { background: var(--bn-bg-alt); color: var(--bn-text); }
.bn-theme-toggle .bn-theme-light { display: inline-flex; }
.bn-theme-toggle .bn-theme-dark { display: none; }
[data-theme="dark"] .bn-theme-toggle .bn-theme-light { display: none; }
[data-theme="dark"] .bn-theme-toggle .bn-theme-dark { display: inline-flex; }

.bn-avatar {
  background: var(--bn-teal-soft);
  border: 1px solid var(--bn-teal-line);
}
.bn-avatar:hover {
  background: var(--bn-teal-soft);
  border-color: var(--bn-teal);
}
.bn-avatar__dot {
  width: 10px; height: 10px;
  background: var(--bn-teal);
  border-radius: 50%;
  display: inline-block;
}
.bn-mobile-only { display: none; }

/* ===== Tab Nav ===== */
.bn-tabnav {
  background: var(--bn-bg);
  border-bottom: 1px solid var(--bn-line);
}
.bn-tabnav__inner {
  display: flex; gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bn-tabnav__inner::-webkit-scrollbar { display: none; }
.bn-tabnav__item {
  position: relative;
  display: inline-flex; align-items: center;
  height: var(--bn-tabnav-h); padding: 0 16px;
  color: var(--bn-text-2); font-size: 14.5px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  letter-spacing: -0.005em;
}
.bn-tabnav__item:hover { color: var(--bn-text); text-decoration: none; }
.bn-tabnav__item:first-child { padding-left: 0; }
.bn-tabnav__item.is-active {
  color: var(--bn-teal);
  font-weight: 600;
}
.bn-tabnav__item.is-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px;
  height: 2px; background: var(--bn-teal);
  border-radius: 1px;
}
.bn-tabnav__item:first-child.is-active::after {
  left: 0;
}

/* ===== Shell + Sidebar ===== */
.bn-shell {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - var(--bn-header-h) - var(--bn-tabnav-h) - 200px);
}
.bn-sidebar {
  width: var(--bn-sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid var(--bn-line);
  padding: 24px 14px 60px 22px;
  position: sticky;
  top: calc(var(--bn-header-h) + var(--bn-tabnav-h));
  height: calc(100vh - var(--bn-header-h) - var(--bn-tabnav-h));
  overflow-y: auto;
}
.bn-sidebar__group {
  margin-bottom: 18px;
}
.bn-sidebar__heading {
  font-size: 13px; font-weight: 600;
  color: var(--bn-text);
  padding: 6px 8px;
  letter-spacing: -0.005em;
}
.bn-sidebar__heading--clickable {
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
.bn-sidebar__chev {
  color: var(--bn-text-mut);
  transition: transform .15s;
}
.bn-sidebar__group.is-collapsed .bn-sidebar__chev { transform: rotate(-90deg); }
.bn-sidebar__group.is-collapsed .bn-sidebar__list--inner { display: none; }
.bn-sidebar__list {
  list-style: none; margin: 0; padding: 0;
}
.bn-sidebar__list--inner { padding-left: 0; }
.bn-sidebar__link {
  display: block;
  padding: 5px 10px;
  margin-left: 8px;
  border-left: 1px solid var(--bn-line);
  color: var(--bn-text-2);
  font-size: 13.5px;
  text-decoration: none;
  line-height: 1.5;
}
.bn-sidebar__link:hover {
  color: var(--bn-text);
  text-decoration: none;
  border-left-color: var(--bn-text-mut);
}
.bn-sidebar__link.is-active {
  color: var(--bn-teal);
  font-weight: 500;
  border-left-color: var(--bn-teal);
  background: var(--bn-teal-soft);
  border-radius: 0 4px 4px 0;
}
.bn-sidebar__link--cat {
  font-weight: 500;
  color: var(--bn-text);
}

.bn-main {
  flex: 1;
  min-width: 0;
  padding: 28px 36px 80px;
}
.bn-main--full {
  padding: 28px 22px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Doc content (index, page) ===== */
.bn-doc {
  max-width: var(--bn-content-max);
}
.bn-doc__crumb {
  font-size: 12px; color: var(--bn-text-mut);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.bn-doc__h1 {
  font-size: 36px; line-height: 1.2;
  font-weight: 700;
  color: var(--bn-text);
  margin: 0 0 12px;
  letter-spacing: -0.018em;
}
.bn-doc__h2 {
  font-size: 24px; line-height: 1.3;
  font-weight: 600;
  margin: 38px 0 12px;
  letter-spacing: -0.01em;
}
.bn-doc__lede {
  font-size: 18px;
  color: var(--bn-text-2);
  margin: 0 0 28px;
  line-height: 1.55;
}
.bn-doc__p {
  color: var(--bn-text-2);
  margin: 0 0 18px;
}

/* ===== Card grid ===== */
.bn-cardgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0 32px;
}
.bn-cardgrid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.bn-card {
  display: block;
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius-lg);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--bn-text);
  background: var(--bn-bg);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bn-card:hover {
  border-color: var(--bn-teal);
  box-shadow: 0 4px 12px rgba(22, 163, 148, 0.08);
  text-decoration: none;
}
.bn-card__icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bn-teal);
  background: var(--bn-teal-soft);
  border-radius: 6px;
  margin-bottom: 10px;
}
.bn-card__title {
  font-size: 15px; font-weight: 600;
  color: var(--bn-text);
  margin-bottom: 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.bn-card__arrow { color: var(--bn-text-mut); font-weight: 400; }
.bn-card:hover .bn-card__arrow { color: var(--bn-teal); }
.bn-card__desc {
  font-size: 13.5px;
  color: var(--bn-text-2);
  line-height: 1.55;
  margin: 0;
}
.bn-card__count {
  font-size: 12px;
  color: var(--bn-text-mut);
  margin-top: 8px;
}

/* ===== List (latest posts / posts.njk) ===== */
.bn-list {
  list-style: none; margin: 0 0 32px; padding: 0;
}
.bn-list__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--bn-line-soft);
}
.bn-list__meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
  font-size: 12.5px;
}
.bn-list__date { color: var(--bn-text-mut); }
.bn-list__chip {
  font-size: 11.5px;
  color: var(--bn-teal);
  background: var(--bn-teal-soft);
  border: 1px solid var(--bn-teal-line);
  padding: 1px 8px;
  border-radius: 12px;
}
.bn-list__title {
  display: block;
  font-size: 16px; font-weight: 600;
  color: var(--bn-text);
  margin-bottom: 4px;
  text-decoration: none;
}
.bn-list__title:hover { color: var(--bn-teal); text-decoration: none; }
.bn-list__desc {
  font-size: 13.5px;
  color: var(--bn-text-2);
  margin: 0;
  line-height: 1.6;
}
.bn-viewall {
  margin-top: 12px;
}
.bn-viewall a {
  font-size: 14px; font-weight: 500;
}

/* ===== FAQ ===== */
.bn-faq {
  margin: 12px 0 40px;
}
.bn-faq__item {
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius);
  margin-bottom: 8px;
  background: var(--bn-bg);
}
.bn-faq__item[open] { border-color: var(--bn-teal-line); }
.bn-faq__q {
  padding: 12px 16px;
  font-weight: 500;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.bn-faq__q::after {
  content: "+";
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--bn-text-mut); font-size: 18px;
  font-weight: 400;
}
.bn-faq__item[open] .bn-faq__q::after { content: "−"; }
.bn-faq__q::-webkit-details-marker { display: none; }
.bn-faq__a {
  padding: 0 16px 14px;
  color: var(--bn-text-2);
  font-size: 14px;
  border-top: 1px solid var(--bn-line-soft);
  padding-top: 12px;
}
.bn-faq__a p { margin: 0 0 6px; }

/* ===== Post page ===== */
.bn-post {
  max-width: var(--bn-content-max);
}
.bn-post--page { max-width: var(--bn-content-max); }

.bn-crumb {
  font-size: 12.5px;
  color: var(--bn-text-mut);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
}
.bn-crumb a {
  color: var(--bn-text-mut);
  text-decoration: none;
}
.bn-crumb a:hover { color: var(--bn-teal); }
.bn-crumb__sep { color: var(--bn-text-mut); display: inline-flex; }
.bn-crumb__current { color: var(--bn-text-2); }

.bn-post__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.bn-post__h1 {
  font-size: 32px; line-height: 1.25;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.014em;
  flex: 1;
}
.bn-post__head-actions {
  flex-shrink: 0;
}
.bn-post__lede {
  font-size: 17px;
  color: var(--bn-text-2);
  margin: 0 0 18px;
  line-height: 1.55;
}
.bn-post__meta {
  font-size: 13px;
  color: var(--bn-text-mut);
  margin: 0 0 24px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.bn-dot { color: var(--bn-text-mut); }
.bn-chip {
  display: inline-block;
  font-size: 12px;
  color: var(--bn-teal);
  background: var(--bn-teal-soft);
  border: 1px solid var(--bn-teal-line);
  padding: 2px 8px;
  border-radius: 12px;
  text-decoration: none;
}

.bn-post-grid {
  display: grid;
  grid-template-columns: 1fr var(--bn-toc-w);
  gap: 40px;
}
.bn-post__body {
  min-width: 0;
  font-size: 15px;
  line-height: 1.75;
}
.bn-post__body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--bn-header-h) + var(--bn-tabnav-h) + 16px);
}
.bn-post__body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
  scroll-margin-top: calc(var(--bn-header-h) + var(--bn-tabnav-h) + 16px);
}
.bn-post__body p {
  margin: 0 0 14px;
}
.bn-post__body ul,
.bn-post__body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.bn-post__body li { margin-bottom: 4px; }
.bn-post__body a {
  color: var(--bn-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.bn-post__body strong {
  color: var(--bn-text);
  font-weight: 600;
}
.bn-post__body code {
  font-family: var(--bn-mono);
  font-size: 13px;
  padding: 2px 6px;
  background: var(--bn-bg-code);
  border: 1px solid var(--bn-line-soft);
  border-radius: 4px;
  color: var(--bn-text);
}
.bn-post__body pre {
  font-family: var(--bn-mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--bn-bg-code);
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 12px 0 18px;
}
.bn-post__body pre code {
  padding: 0; background: transparent; border: 0;
}
.bn-post__body blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--bn-teal);
  background: var(--bn-teal-soft);
  color: var(--bn-text);
  border-radius: 0 var(--bn-radius) var(--bn-radius) 0;
}
.bn-post__body blockquote p:last-child { margin-bottom: 0; }
.bn-post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius);
  overflow: hidden;
}
.bn-post__body table th,
.bn-post__body table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--bn-line-soft);
  text-align: left;
}
.bn-post__body table th {
  background: var(--bn-bg-alt);
  font-weight: 600;
  font-size: 13px;
  color: var(--bn-text);
}
.bn-post__body table tr:last-child td { border-bottom: 0; }

/* ===== TOC ===== */
.bn-toc {
  position: relative;
}
.bn-toc__inner {
  position: sticky;
  top: calc(var(--bn-header-h) + var(--bn-tabnav-h) + 16px);
  font-size: 13px;
}
.bn-toc__head {
  font-size: 13px; font-weight: 600;
  color: var(--bn-text);
  margin-bottom: 8px;
}
.bn-toc__list {
  list-style: none; margin: 0 0 18px; padding: 0;
  border-left: 1px solid var(--bn-line);
}
.bn-toc__item a {
  display: block;
  padding: 4px 12px;
  color: var(--bn-text-2);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.bn-toc__item--lv3 a {
  padding-left: 24px;
  font-size: 12.5px;
  color: var(--bn-text-mut);
}
.bn-toc__item a:hover { color: var(--bn-text); text-decoration: none; }
.bn-toc__item a.is-active {
  color: var(--bn-teal);
  border-left-color: var(--bn-teal);
  font-weight: 500;
}
.bn-toc__more { margin-top: 18px; }

/* ===== Buttons ===== */
.bn-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius);
  background: var(--bn-bg);
  color: var(--bn-text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.bn-btn:hover {
  border-color: var(--bn-teal);
  color: var(--bn-teal);
  text-decoration: none;
}
.bn-btn--primary {
  background: var(--bn-teal);
  color: #fff;
  border-color: var(--bn-teal);
}
.bn-btn--primary:hover {
  background: var(--bn-teal-2);
  color: #fff;
  border-color: var(--bn-teal-2);
}
.bn-btn--ghost {
  background: var(--bn-bg-alt);
}

/* ===== Prev / Next ===== */
.bn-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--bn-line);
}
.bn-prevnext > a {
  display: flex; flex-direction: column;
  padding: 12px 14px;
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius);
  text-decoration: none;
  color: var(--bn-text);
  background: var(--bn-bg);
}
.bn-prevnext > a:hover {
  border-color: var(--bn-teal);
  text-decoration: none;
}
.bn-prevnext__lab {
  font-size: 12px;
  color: var(--bn-text-mut);
  margin-bottom: 4px;
}
.bn-prevnext__t {
  font-size: 14px;
  font-weight: 500;
  color: var(--bn-text);
}
.bn-prevnext__next { text-align: right; }

/* ===== Pager ===== */
.bn-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.bn-pager__btn,
.bn-pager__num {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; min-width: 32px;
  padding: 0 10px;
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius);
  font-size: 13px;
  color: var(--bn-text-2);
  background: var(--bn-bg);
  text-decoration: none;
}
.bn-pager__btn:hover,
.bn-pager__num:hover {
  border-color: var(--bn-teal);
  color: var(--bn-teal);
  text-decoration: none;
}
.bn-pager__num.is-current {
  background: var(--bn-teal);
  color: #fff;
  border-color: var(--bn-teal);
}
.bn-pager__btn.is-disabled,
.bn-pager__num.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== 404 ===== */
.bn-404 {
  max-width: 480px;
  margin: 60px auto 80px;
  text-align: center;
  padding: 0 22px;
}
.bn-404__code {
  font-size: 80px;
  font-weight: 700;
  color: var(--bn-teal);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.bn-404__title {
  font-size: 24px;
  margin: 0 0 12px;
}
.bn-404__body {
  color: var(--bn-text-2);
  margin: 0 0 20px;
}

/* ===== Footer ===== */
.bn-footer {
  border-top: 1px solid var(--bn-line);
  background: var(--bn-bg-alt);
  margin-top: 60px;
}
.bn-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 22px 24px;
  display: grid;
  grid-template-columns: 1.4fr 3fr;
  gap: 36px;
}
.bn-footer__brand { }
.bn-footer__logo {
  font-size: 18px; font-weight: 700;
  color: var(--bn-text);
  margin-bottom: 8px;
}
.bn-footer__tag {
  font-size: 13px;
  color: var(--bn-text-2);
  margin: 0;
  line-height: 1.55;
}
.bn-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.bn-footer__h {
  font-size: 13px;
  font-weight: 600;
  color: var(--bn-text);
  margin-bottom: 10px;
}
.bn-footer__col ul {
  list-style: none; margin: 0; padding: 0;
}
.bn-footer__col li { margin-bottom: 6px; }
.bn-footer__col a {
  font-size: 13px;
  color: var(--bn-text-2);
  text-decoration: none;
}
.bn-footer__col a:hover { color: var(--bn-teal); text-decoration: none; }
.bn-footer__lang {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
}
.bn-footer__lang a {
  display: inline-block;
  padding: 1px 4px;
}
.bn-footer__lang a.is-current { color: var(--bn-teal); font-weight: 500; }
.bn-footer__bottom {
  border-top: 1px solid var(--bn-line);
  padding: 16px 22px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  font-size: 12.5px;
  color: var(--bn-text-mut);
  flex-wrap: wrap;
}
.bn-footer__rights { white-space: nowrap; }
.bn-footer__risk { flex: 1; line-height: 1.5; max-width: 760px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .bn-post-grid {
    grid-template-columns: 1fr;
  }
  .bn-toc {
    display: none;
  }
}
@media (max-width: 880px) {
  :root { --bn-sidebar-w: 240px; }
  .bn-cardgrid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .bn-mobile-only { display: inline-flex; }
  .bn-search { display: none; }
  .bn-ai-btn span:not(.bn-ai-btn__kb) { display: none; }
  .bn-ai-btn__kb { display: none; }
  .bn-lang__btn { padding: 0 6px; }
  .bn-shell { display: block; }
  .bn-sidebar {
    position: fixed;
    top: var(--bn-header-h);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--bn-header-h));
    background: var(--bn-bg);
    z-index: 40;
    transform: translateX(-100%);
    transition: transform .2s;
    border-right: 1px solid var(--bn-line);
  }
  .bn-sidebar.is-open { transform: translateX(0); }
  .bn-main { padding: 20px 18px 60px; }
  .bn-cardgrid,
  .bn-cardgrid--3 { grid-template-columns: 1fr; }
  .bn-doc__h1 { font-size: 28px; }
  .bn-post__h1 { font-size: 26px; }
  .bn-footer__inner { grid-template-columns: 1fr; }
  .bn-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .bn-prevnext { grid-template-columns: 1fr; }
}
