
/* === KB Language Dropup (scoped) === */
:root{ --kb-lang-text-color: inherit; }
.kb-lang-center{
  display:flex;justify-content:center;align-items:center;margin-top:8px;
}
.kb-dropup{ position:relative; }
.kb-dropup-btn{
  display:flex;align-items:center;gap:8px;
  font-size:14px; line-height:1; cursor:pointer;
  background:transparent;border:1px solid rgba(0,0,0,.1);
  padding:8px 12px; border-radius:6px;
 color: var(--kb-lang-text-color); }
.kb-dropup-icon{ opacity:.7; }
.kb-dropup-btn[aria-expanded="true"] .kb-dropup-icon{ opacity:1; }
.kb-dropup-menu{
  position:absolute; left:50%; bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display:none; min-width:180px;
  background:#fff; border:1px solid rgba(0,0,0,.1); border-radius:6px;
  box-shadow:0 10px 20px rgba(0,0,0,.08);
  padding:6px; z-index:50;
}
.kb-dropup-menu.open{ display:block; }
.kb-dropup-menu li{ list-style:none; }
.kb-dropup-menu a{
  display:block; padding:8px 10px; text-decoration:none;
 color: var(--kb-lang-text-color); }
.kb-dropup-menu a:hover{ background:#f2f2f2; }
footer .kb-lang-center{ /* keep it centered in footer */ }


/* === KB sidebar visual fix (2025-10-15) === */
.kb-left { max-width: 320px; }
.kb-cat { margin: 10px 0 14px; }
.kb-cat-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: #f3f4f6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
}
.kb-cat-toggle .kb-cat-name{
  display: block;
  position: static !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
  rotate: 0deg !important;
  white-space: normal;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}
.kb-cat-pages{
  list-style: none;
  margin: 8px 0 0;
  padding-left: 16px;
}
.kb-cat-pages li{ margin: 6px 0; }
.kb-cat-pages a{ text-decoration: none; color: #2563eb; }
.kb-cat-pages a:hover{ text-decoration: underline; }
.kb-cat:not(.open) .kb-cat-pages{ display: none; }
.kb-cat-pages li::marker { content: "• "; color: #0f172a; }



/* === KB categories visual update (chevron + no gray box) === */
.kb-cat-toggle{
  background: transparent;
  border: none;
  padding: 8px 2px;
  gap: 10px;
}
.kb-cat-toggle .kb-cat-name{
  font-weight: 700;
  color: #0f172a;
}
.kb-chevron{
  width: 10px;
  height: 10px;
  border-right: 2px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  transform: rotate(-45deg);
  display: inline-block;
  transition: transform .2s ease;
  margin-right: 2px;
}
.kb-cat.open .kb-chevron{
  transform: rotate(45deg); /* down arrow */
}
.kb-cat-pages{
  margin: 6px 0 10px 20px;
  padding: 0;
  list-style: none;
}
.kb-cat-pages li{ margin: 6px 0; }
.kb-cat-pages a{ text-decoration: none; color: #2563eb; }
.kb-cat-pages a:hover{ text-decoration: underline; }
.kb-cat:not(.open) .kb-cat-pages{ display: none; }



/* === Minimal caret + cleanup (2025-10-15) === */
.kb-cat-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  padding:6px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.kb-cat-toggle .kb-cat-name{
  font-weight: 700;
  color: #0f172a;
}
.kb-chevron{
  width: 0;
  height: 0;
  border-left: 5px solid #0f172a; /* small triangle */
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .18s ease;
}
.kb-cat.open .kb-chevron{
  transform: rotate(90deg); /* points down when open */
}
.kb-cat-pages{
  margin: 6px 0 10px 16px;
  padding: 0;
  list-style: none;
}
.kb-cat-pages li{ margin: 6px 0; }
.kb-cat-pages a{ text-decoration: none; color: #2563eb; }
.kb-cat-pages a:hover{ text-decoration: underline; }
.kb-cat:not(.open) .kb-cat-pages{ display: none; }



/* === Minimal right caret (screenshot-like) === */
.kb-caret{
  display:inline-block;
  width: 8px;
  height: 8px;
  border-right: 3px solid #2b3543; /* dark gray */
  border-bottom: 3px solid #2b3543;
  transform: rotate(-45deg);
  transition: transform .18s ease;
  margin-right: 6px;
}
.kb-cat.open .kb-caret{ transform: rotate(45deg); } /* down */
.kb-cat-toggle{ background: transparent; border: 0; padding: 6px 0; }
.kb-cat-toggle .kb-cat-name{ font-weight:700; color:#0f172a; }



/* === Minimal caret (2.5px black) — 2025-10-15 === */
.kb-cat-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.kb-caret{
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2.5px solid #000;
  border-bottom: 2.5px solid #000;
  transform: rotate(-45deg);          /* points RIGHT by default */
  transition: transform .18s ease, opacity .18s ease;
  margin-right: 8px;
  opacity: 0.95;
}
.kb-cat.open .kb-caret{
  transform: rotate(45deg);           /* points DOWN when open */
}
.kb-cat-toggle .kb-cat-name{
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
/* Keep pages list tidy */
.kb-cat-pages{
  list-style: none;
  margin: 6px 0 10px 16px;
  padding: 0;
}
.kb-cat-pages li{ margin: 6px 0; }
.kb-cat-pages a{ text-decoration: none; color: #2563eb; }
.kb-cat-pages a:hover{ text-decoration: underline; }
.kb-cat:not(.open) .kb-cat-pages{ display: none; }



/* === Sleek chevron (iOS-like) 2025-10-15 === */
.kb-caret{
  position: relative;
  display: inline-block;
  width: 10px;             /* slightly larger for clarity */
  height: 10px;
  margin-right: 8px;
}
.kb-caret::before{
  content: "";
  position: absolute;
  inset: 0;
  border-right: 2.5px solid #2b3543; /* stroke */
  border-bottom: 2.5px solid #2b3543;
  transform: rotate(-45deg);         /* RIGHT */
  border-radius: 2px;                /* soft corners illusion */
  transition: transform .2s ease, opacity .2s ease;
  opacity: .96;
}
.kb-cat.open .kb-caret::before{
  transform: rotate(45deg);          /* DOWN */
}
.kb-cat-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.kb-cat-toggle .kb-cat-name{
  font-weight:700;
  color:#0f172a;
  line-height:1.2;
}
/* Keep list tidy */
.kb-cat-pages{
  list-style:none;
  margin:6px 0 10px 16px;
  padding:0;
}
.kb-cat-pages li{ margin:6px 0; }
.kb-cat-pages a{ text-decoration:none; color:#2563eb; }
.kb-cat-pages a:hover{ text-decoration:underline; }
.kb-cat:not(.open) .kb-cat-pages{ display:none; }

