/* Keep SVG text colour consistent with its paint colour on the pale cards.
   A browser recolouring SVG text via currentColor must not inherit the page's
   cream foreground. Limit automatic darkening to this fixed-palette diagram. */
.clado-viewport{color-scheme:only light}
.clado-space .clado-node text{color:#223625;fill:currentColor;-webkit-text-fill-color:currentColor}
.clado-space .clado-node .clado-caption{color:#46543a}

/* Interactive SVGs need paired system colours when the user forces a palette.
   Use their palette for the complete drawing, including the SVG backgrounds,
   rather than disabling accessibility colours for the page. */
@media(forced-colors:active){
 .clado-viewport{background:Canvas}
 .clado-space svg{forced-color-adjust:none}
 .clado-space .clado-node rect{fill:ButtonFace;stroke:ButtonText}
 .clado-space .clado-node text,.clado-space .clado-node .clado-caption{color:ButtonText}
 .clado-space .clado-node:hover rect,
 .clado-space .clado-node[aria-pressed="true"] rect,
 .clado-space .clado-node:focus-visible rect{fill:ButtonFace;stroke:ButtonText;stroke-dasharray:4 2}
 .clado-space .clado-edges path{stroke:CanvasText}
 .clado-space .clado-edges path.on-lineage{stroke:Highlight}
}
