/* ---------- Profile block (photo above text) ---------- */

.kh-brand.kh-brand--stacked{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 0 18px 0;
}

.kh-brand--stacked .kh-brand__logo{
  margin-bottom: 12px;
  line-height: 0;
}

.kh-brand--stacked .kh-brand__logo img{
  width: 200px;
  height: 200px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.kh-brand--stacked .kh-brand__text{
  min-width: 0;
}

.kh-brand--stacked .kh-brand__name{
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px 0;
}

.kh-brand--stacked .kh-brand__sub{
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0.8;
  margin: 0;
}

/* ---------- Details list (icons + links) ---------- */

.kh-brand--stacked .kh-brand__details{
  list-style: none;
  padding: 10px 0 0 0;
  margin: 0;
}

.kh-brand--stacked .kh-detail{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.kh-brand--stacked .kh-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.kh-brand--stacked .kh-icon svg{
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.kh-brand--stacked .kh-brand__details a{
  text-decoration: none;
}

.kh-brand--stacked .kh-brand__details a:hover{
  text-decoration: underline;
}

/* Remove search bar entirely */
.sidebar-search-container,
.sidebar-search,
.search-button {
  display: none !important;
}



/* ---------- Make Furo sidebar navigation cleaner ---------- */

/* Give sidebar a bit more breathing room */
.sidebar-drawer{
  padding-top: 8px;
}

/* Navigation container spacing */
.sidebar-tree{
  margin-top: 14px;
}

/* Remove bullets and tighten list */
.sidebar-tree ul{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Each nav item as a “soft row” */
.sidebar-tree li{
  margin: 4px 0;
}

/* Links look more like a menu */
.sidebar-tree a{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}

/* Hover */
.sidebar-tree a:hover{
  background: rgba(127, 127, 127, 0.12);
}

/* Current page highlight */
.sidebar-tree .current > a,
.sidebar-tree a.current{
  background: rgba(127, 127, 127, 0.18);
  font-weight: 700;
}

/* Tone down deep nesting (docs-y look) */
.sidebar-tree ul ul{
  margin-top: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(127, 127, 127, 0.18);
}

/* Optional: hide very deep levels (uncomment if you want simpler) */
/*
.sidebar-tree ul ul ul{
  display: none;
}
*/

/* ---------- Sidebar menu as buttons ---------- */

/* Bigger clickable area */
.sidebar-tree a{
  display: block;
  padding: 12px 14px;        /* bigger buttons */
  border-radius: 14px;
  font-size: 1.05rem;        /* bigger text */
  font-weight: 600;
  transition: background 0.15s ease, transform 0.05s ease;
}

/* Hover = button lift */
.sidebar-tree a:hover{
  background: rgba(127, 127, 127, 0.16);
  transform: translateY(-1px);
}

/* Active page = pressed button */
.sidebar-tree .current > a,
.sidebar-tree a.current{
  background: rgba(127, 127, 127, 0.25);
  font-weight: 700;
}

/* Space between buttons */
.sidebar-tree li{
  margin: 8px 0;
}

/* Remove docs-y nesting look */
.sidebar-tree ul ul{
  padding-left: 0;
  border-left: none;
}
/* ---------- Make sidebar menu look like real buttons ---------- */

/* Remove link look completely */
.sidebar-tree a,
.sidebar-tree a:visited{
  color: inherit;                 /* no blue / purple */
  text-decoration: none;          /* no underline */
}

/* Button base */
.sidebar-tree a{
  background: rgba(127,127,127,0.10);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

/* Hover = soft raised button */
.sidebar-tree a:hover{
  background: rgba(127,127,127,0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Active/current = pressed button */
.sidebar-tree .current > a,
.sidebar-tree a.current{
  background: rgba(127,127,127,0.28);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
  font-weight: 700;
}

/* Spacing between buttons */
.sidebar-tree li{
  margin: 10px 0;
}

/* ---------- Force sidebar button text color ---------- */

.sidebar-tree a,
.sidebar-tree a:visited,
.sidebar-tree a:hover,
.sidebar-tree a:active{
  color: var(--color-foreground-primary);
}

/* ---------- REALLY force sidebar menu text color ---------- */

.sidebar-tree a,
.sidebar-tree a span,
.sidebar-tree a:visited,
.sidebar-tree a:hover,
.sidebar-tree a:active,
.sidebar-tree a:focus{
  color: var(--color-foreground-primary) !important;
  text-decoration: none !important;
}


