(1)(a) In counties having a population of less than one hundred fifty thousand inhabitants:
(i) When any juvenile court petition is filed alleging jurisdiction of a juvenile pursuant to subdivision (2) of section 43-247, counsel shall be appointed for such juvenile; and
(ii) In any other instance in which a juvenile is brought without counsel before a juvenile court, the court shall advise such juvenile and his or her parent or guardian of their right to retain counsel and shall inquire of such juvenile and his or her parent or guardian as to whether they desire to retain counsel.
(b) In counties having a population of one hundred fifty thousand or more inhabitants, when any juvenile court petition is filed alleging jurisdiction of a juvenile pursuant to subdivision (1), (2), (3)(b), or (4) of section 43-247, counsel shall be appointed for such juvenile.
(c) The court shall inform any juvenile described in this subsection and his or her parent or guardian of such juvenile's right to counsel at county expense if none of them is able to afford counsel. If the juvenile or his or her parent or guardian desires to have counsel appointed for such juvenile, or the parent or guardian of such juvenile cannot be located, and the court ascertains that none of such persons are able to afford an attorney, the court shall forthwith appoint an attorney to represent such juvenile for all proceedings before the juvenile court, except that if an attorney is appointed to represent such juvenile and the court later determines that a parent of such juvenile is able to afford an attorney, the court shall order such parent or juvenile to pay for services of the attorney to be collected in the same manner as provided by section 43-290. If the parent willfully refuses to pay any such sum, the court may commit him or her for contempt, and execution may issue at the request of the appointed attorney or the county attorney or by the court without a request.
(2) The court, on its own motion or upon application of a party to the proceedings, shall appoint a guardian ad litem for the juvenile: (a) If the juvenile has no parent or guardian of his or her person or if the parent or guardian of the juvenile cannot be located or cannot be brought before the court; (b) if the parent or guardian of the juvenile is excused from participation in all or any part of the proceedings; (c) if the parent is a juvenile or an incompetent; (d) if the parent is indifferent to the interests of the juvenile; or (e) in any proceeding pursuant to the provisions of subdivision (3)(a) of section 43-247.
A guardian ad litem shall have the duty to protect the interests of the juvenile for whom he or she has been appointed guardian, and shall be deemed a parent of the juvenile as to those proceedings with respect to which his or her guardianship extends.
(3) The court shall appoint an attorney as guardian ad litem. A guardian ad litem shall act as his or her own counsel and as counsel for the juvenile, unless there are special reasons in a particular case why the guardian ad litem or the juvenile or both should have separate counsel. In such cases the guardian ad litem shall have the right to counsel, except that the guardian ad litem shall be entitled to appointed counsel without regard to his or her financial ability to retain counsel. Whether such appointed counsel shall be provided at the cost of the county shall be determined as provided in subsection (1) of this section.
(4) By July 1, 2015, the Supreme Court shall provide by court rule standards for guardians ad litem for juveniles in juvenile court proceedings.
(5) By July 1, 2017, the Supreme Court shall provide guidelines setting forth standards for all attorneys who practice in juvenile court.