/* Branch hierarchy uses coordinated shades of the selected interface palette. */
:root{--map-color:var(--branch-blue);--map-wash:var(--branch-blue-soft)}
:root[data-appearance=paper]{color-scheme:light}
body{color:var(--theme-ink)}
#logic-atlas{color-scheme:inherit;--line:var(--theme-line-strong)}
#logic-atlas .visual-lane.visual-own,#logic-atlas .cognition-lane.lane-own{--lane:var(--branch-blue);--wash:var(--branch-blue-soft)}
#logic-atlas .visual-lane.visual-other,#logic-atlas .cognition-lane.lane-other{--lane:var(--branch-purple);--wash:var(--branch-purple-soft)}
#logic-atlas .visual-lane.visual-world,#logic-atlas .cognition-lane.lane-world{--lane:var(--branch-teal);--wash:var(--branch-teal-soft)}
#logic-atlas[data-dimension=own] .atlas-work{--theme-green:var(--branch-blue);--theme-green-soft:var(--branch-blue-soft);--theme-green-wash:var(--branch-blue-soft)}
#logic-atlas[data-dimension=other] .atlas-work{--theme-green:var(--branch-purple);--theme-green-soft:var(--branch-purple-soft);--theme-green-wash:var(--branch-purple-soft)}
#logic-atlas[data-dimension=world] .atlas-work{--theme-green:var(--branch-teal);--theme-green-soft:var(--branch-teal-soft);--theme-green-wash:var(--branch-teal-soft)}
#logic-atlas .visual-lane{padding:16px 14px;border:1px solid var(--theme-line);border-top:3px solid var(--lane);border-radius:9px;background:var(--theme-reader)}
#logic-atlas .visual-lane h2{color:var(--lane)}
#logic-atlas .ability-structure .node,#logic-atlas .ability-structure .result-node{fill:var(--wash);stroke:var(--lane);stroke-width:1.4}
#logic-atlas .ability-structure .input-node{fill:var(--theme-surface);stroke:var(--lane);stroke-width:1.4}
#logic-atlas .ability-structure text{fill:var(--theme-ink)}
#logic-atlas .ability-structure .structure-line{stroke:var(--lane);stroke-width:1.8}
#logic-atlas .ability-structure .test-boundary{fill:var(--wash);stroke:var(--lane)}
#logic-atlas .ability-structure .test-grid{stroke:var(--lane);opacity:.6}
#logic-atlas .visual-choice,#logic-atlas .judgment-draft .map-button{border:1px solid var(--theme-green);border-left-width:3px;color:var(--theme-ink)}
#logic-atlas .visual-choice[aria-pressed=true],#logic-atlas .judgment-draft .map-button[aria-pressed=true]{background:var(--theme-green-soft);box-shadow:0 0 0 2px var(--theme-green)}
#logic-atlas .mini-structure rect{fill:var(--theme-green-soft);stroke:var(--theme-green);stroke-width:1.2}
#logic-atlas .mini-structure text{fill:var(--theme-ink)}
#logic-atlas .mini-structure path{stroke:var(--theme-green);stroke-width:1.8}
#logic-atlas .judgment-draft .draft-claim{background:var(--theme-green-soft);color:var(--theme-ink)}
#logic-atlas .judgment-draft .draft-claim span{color:var(--theme-muted)}
[data-module=strategy],[data-view=strategy]{--map-color:var(--branch-blue);--map-wash:var(--branch-blue-soft)}
[data-module=people],[data-view=people]{--map-color:var(--branch-purple);--map-wash:var(--branch-purple-soft)}
[data-module=work],[data-view=work]{--map-color:var(--branch-coral);--map-wash:var(--branch-coral-soft)}
[data-module=org],[data-view=org]{--map-color:var(--branch-gold);--map-wash:var(--branch-gold-soft)}
[data-module=self],[data-view=self]{--map-color:var(--branch-teal);--map-wash:var(--branch-teal-soft)}
.architect-house [data-module],.mini-house [data-module],.context-mini [data-module]{background:var(--map-wash);color:var(--map-color);border:1px solid var(--map-color);border-radius:6px}
.architect-house [data-module] strong,.architect-house [data-module] span{color:inherit}
.module-view{--theme-green:var(--map-color);--theme-green-soft:var(--map-wash);--theme-green-wash:var(--map-wash);--theme-green-hover:var(--map-color)}
.house .relation-node,.house .phase-node{border:1px solid var(--map-color);border-left:3px solid var(--map-color);background:var(--map-wash);color:var(--theme-ink);border-radius:6px}
.house .relation-node strong,.house .phase-node strong{color:var(--theme-ink)}
.house .relation-node span,.house .phase-node span{color:var(--theme-muted)}
.house .relation-node:hover,.house .phase-node:hover{outline:2px solid var(--map-color);outline-offset:2px}
.detail-diagram{color:var(--theme-ink)}
#career-explore .context-mini [data-module],#career-explore .mini-house [data-module]{background:var(--map-wash);color:var(--map-color);border:1px solid var(--map-color)}
#career-explore .context-mini [data-module] strong,#career-explore .context-mini [data-module] small{color:inherit}
#logic-atlas .visual-home .ability-structure .node,#logic-atlas .visual-home .ability-structure .result-node{fill:var(--wash);stroke:var(--lane);stroke-width:1.4}
#logic-atlas .visual-home .ability-structure .input-node{fill:var(--theme-reader);stroke:var(--lane);stroke-width:1.4}
#logic-atlas .visual-home .ability-structure text{fill:var(--theme-ink)}
#logic-atlas .visual-home .ability-structure .test-boundary{fill:var(--wash);stroke:var(--lane)}
@media(max-width:600px){#logic-atlas .visual-lane{padding:16px 10px}}
:root:is([data-appearance=cyan],[data-appearance=rose],[data-appearance=editorial]){color-scheme:light}
:root:is([data-appearance=cyan],[data-appearance=rose],[data-appearance=editorial]) #logic-atlas{color-scheme:light}

/* Match book recommendations to the library's violet cards. */
:root:is([data-appearance="violet"],:not([data-appearance])) body :is(.book,.book-item,.inline-book) {
  --theme-muted:#d4c8e3;
  background:linear-gradient(120deg,#382d52,#493156);
  border-color:#70578c;
  color:var(--theme-ink);
}
