Facts

The parties are Canadian nationals and the parents of the sons [C.] (born 2004) and [D.] (born 2007). By decision of 19 May 2014, the President of the District Court of the Richteramt Dorneck-Thierstein, in the separation proceedings, established the separation since September 2013, confirmed joint parental authority and regulated alternating custody.

Upon the mother's application of 11 September 2014, in which she requested custody of both sons and consent to their departure for Canada, the President of the District Court obtained an expert report from the Child and Adolescent Psychiatry service [T.] (issued 28 May 2015, supplementary report of 12 August 2015). He ordered representation of the children. On 13 August 2015 he withdrew the parents' right to determine residence on a superprovisional basis and placed the children in the transitional home [F.] ; this order was revoked on 19 October 2015.

By judgment of 19 October 2015, the President of the District Court allocated custody of [C.] to the father and custody of [D.] to the mother, approved [D.] 's relocation to Canada and found that the mother was not able to pay maintenance for [C.] . The mother has lived in Canada with [D.] since the end of October 2015.

By judgment of 26 February 2016, the Solothurn Cantonal Court of Appeal partially upheld the father's appeal, revoked the mother's exemption from maintenance and ordered her to pay maintenance contributions of CHF 1'000.-- per month for [C.] . It dismissed the mother's appeal. Attorney Thomas Schütt was appointed as new representative of the son [C.] .

The mother filed a civil law appeal (5A_236/2016) and requested custody of both sons, or of [C.] , as well as a finding that she fulfils her maintenance obligation through care and upbringing or is financially incapable of paying; the father filed an appeal (5A_239/2016) and requested custody of [D.] . Both proceedings concern custody and maintenance. The father and the children's representative requested dismissal of the mother's appeal, and the children's representative requested that the father's appeal be upheld. The mother's counsel withdrew her mandate; the mother's application for provisional measures was dismissed.

Considerations

Proceedings 5A_236/2016 and 5A_239/2016 were joined because they concern the same custody arrangement and maintenance obligation (Art. 71 FSCA in conjunction with Art. 24 FCPA). The appeals are directed against a decision of a higher cantonal authority in a civil matter, and the appellants have lost on their requests. The mother's personally drafted supplement to the appeal of 23 March 2016 was not considered for lack of a legally sufficient engagement with the reasons of the decision (Art. 42 para. 2 FSCA); further submissions filed after the expiry of the appeal period (31 March 2016) and after the expiry of the 30-day period for the response (11 September 2017) remained unconsidered.

On jurisdiction: Canada is not a contracting state to the HKsÜ. Under Art. 85 para. 1 PILA, jurisdiction is determined by the HKsÜ. Art. 5 para. 2 HKsÜ, which provides for a shift of jurisdiction upon change of habitual residence to another contracting state, does not apply vis-à-vis non-contracting states (BGE 142 III 1 E. 2.1). The jurisdiction of the Swiss courts, once established, therefore remains; the mother's objection is unfounded.

On the violation of the right to be heard: the father complained that a red folder of documents had not been served on him for inspection. The Cantonal Court of Appeal accepted a violation of the right to be heard but found it cured, since the official and investigative maxims apply in child matters and the appellate instance has full power of review (Art. 296 and Art. 310 CC). The father could have commented on the contents of the folder in the appeal proceedings. This acceptance of a cure is not objectionable; the complaint of violation of Art. 29 para. 2 Cst. and Art. 6 no. 1 ECHR is unfounded.

On the duty to give reasons: the requirements for the statement of appeal (Art. 311 CPC) apply generally and are not limited to proceedings governed by the party-disposition principle (BGE 137 III 617 E. 4.2.2). Neither the investigative nor the official maxim relieves the parties of the duty to give reasons. The father, who merely referred to a submission to the lower court, did not comply with this duty; there is no violation of Art. 29 para. 2 Cst. or Art. 6 ECHR.

On custody: decisive factors are the welfare of the child (which takes precedence over parental wishes), parenting capacity, the possibilities of care for young and school-age children, stability of circumstances, the child's will depending on age, the parents' willingness to cooperate, and the principle of not separating siblings. A separation is permissible where different needs, levels of maturity and emotional bonds exist (BGE 142 III 612 E. 4.3 and 4.4). The cantonal courts have a wide margin of discretion; the Federal Supreme Court only examines whether there is a manifest abuse of discretion, and only from the perspective of constitutional rights (Art. 98 FSCA).

On arbitrariness regarding the expert report: in summary separation proceedings, costly evidentiary measures are in principle to be avoided (Art. 254 CPC). However, the judge may depart from an expert opinion only for substantial reasons; where there are serious doubts as to its consistency, the judge is obliged to conduct supplementary taking of evidence (BGE 138 III 193 E. 4.3.1). The lower court comprehensibly explained that the developments since the report was issued, and the relativisation by the experts themselves, justified a departure, in particular the parental alienation between the mother and [C.] . A second expert opinion could be dispensed with. There is no violation of Art. 9 Cst.

On custody of the sons: the lower court took into account the parenting capacity of both parents, the father's commitment, the support from his partner and grandmother, the close bond between [D.] and the mother, as well as the different maturity and the different needs of the brothers. The allocation of custody does not manifestly contradict the welfare of the child and is not arbitrary. The objection of contradictory reasoning concerning the father's manipulation does not succeed, since the lower court did not decisively take the child's will into account alone. The complaints under Art. 13 f. Cst. and Art. 8 ECHR were not raised in the cantonal proceedings and are therefore inadmissible for failure to exhaust the instances (BGE…