/* Figure geometry uses the page's family and colour tokens in both looks. */
figure svg.plot.graph-layout text {
  font-family: var(--ui);
  font-size: 15px;
  fill: var(--ink);
  stroke: var(--panel);
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
figure svg.plot.graph-layout .tk { font-weight: 500; }
figure svg.plot.graph-layout .lb { font-weight: 600; }
svg.graph-layout { min-width: 320px; }
figure svg.plot.graph-layout { background: var(--panel); }
:is(.lesson-page, .unit-reading) figure.fig svg.plot { max-height: none; }
figure svg.plot text { stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke fill; }
figure svg.plot.graph-layout .ax { stroke: var(--ink); stroke-width: 1.25; }
figure svg.plot.graph-layout .grid { stroke: var(--dim); stroke-opacity: .3; stroke-width: .7; }
figure svg.plot.graph-layout .label-leader { stroke: var(--ink); stroke-width: .8; fill: none; }
figure svg.plot.graph-layout .pt { fill: var(--ink); stroke: var(--panel); stroke-width: 1; }
@media (forced-colors: active) {
  figure svg.plot.graph-layout { background: Canvas; }
  figure svg.plot.graph-layout text { fill: CanvasText; stroke: Canvas; }
  figure svg.plot.graph-layout :is(.ax, .grid, .c1, .c2, .c3, .label-leader) { stroke: CanvasText; }
  figure svg.plot.graph-layout .pt { fill: CanvasText; stroke: Canvas; }
}

/* Wide tables and function machines retain their readable scale in a scrolling figure. */
svg.plot.pw-920 { min-width: 920px; }
svg.plot.pw-940 { min-width: 940px; }
svg.plot.pw-960 { min-width: 960px; }
svg.plot.pw-980 { min-width: 980px; }
svg.plot.pw-1000 { min-width: 1000px; }
svg.plot.pw-1020 { min-width: 1020px; }
svg.plot.pw-1040 { min-width: 1040px; }
svg.plot.pw-1060 { min-width: 1060px; }
svg.plot.pw-1080 { min-width: 1080px; }
svg.plot.pw-1100 { min-width: 1100px; }
svg.plot.pw-1120 { min-width: 1120px; }
svg.plot.pw-1140 { min-width: 1140px; }
svg.plot.pw-1160 { min-width: 1160px; }
svg.plot.pw-1180 { min-width: 1180px; }
svg.plot.pw-1200 { min-width: 1200px; }
svg.plot.pw-1220 { min-width: 1220px; }
svg.plot.pw-1240 { min-width: 1240px; }
svg.plot.pw-1260 { min-width: 1260px; }
svg.plot.pw-1280 { min-width: 1280px; }
svg.plot.pw-1300 { min-width: 1300px; }
svg.plot.pw-1320 { min-width: 1320px; }
svg.plot.pw-1340 { min-width: 1340px; }
svg.plot.pw-1360 { min-width: 1360px; }
svg.plot.pw-1380 { min-width: 1380px; }
svg.plot.pw-1400 { min-width: 1400px; }
svg.plot.pw-1420 { min-width: 1420px; }
svg.plot.pw-1440 { min-width: 1440px; }
svg.plot.pw-1460 { min-width: 1460px; }
svg.plot.pw-1480 { min-width: 1480px; }
svg.plot.pw-1500 { min-width: 1500px; }
svg.plot.pw-1520 { min-width: 1520px; }
svg.plot.pw-1540 { min-width: 1540px; }
svg.plot.pw-1560 { min-width: 1560px; }
svg.plot.pw-1580 { min-width: 1580px; }
svg.plot.pw-1600 { min-width: 1600px; }
svg.plot.pw-1620 { min-width: 1620px; }
svg.plot.pw-1640 { min-width: 1640px; }
svg.plot.pw-1660 { min-width: 1660px; }
svg.plot.pw-1680 { min-width: 1680px; }
svg.plot.pw-1700 { min-width: 1700px; }
svg.plot.pw-1720 { min-width: 1720px; }
svg.plot.pw-1740 { min-width: 1740px; }
svg.plot.pw-1760 { min-width: 1760px; }
svg.plot.pw-1780 { min-width: 1780px; }
svg.plot.pw-1800 { min-width: 1800px; }
svg.plot.pw-1820 { min-width: 1820px; }
svg.plot.pw-1840 { min-width: 1840px; }
svg.plot.pw-1860 { min-width: 1860px; }
svg.plot.pw-1880 { min-width: 1880px; }
svg.plot.pw-1900 { min-width: 1900px; }
svg.plot.pw-1920 { min-width: 1920px; }
svg.plot.pw-1940 { min-width: 1940px; }
svg.plot.pw-1960 { min-width: 1960px; }
svg.plot.pw-1980 { min-width: 1980px; }
svg.plot.pw-2000 { min-width: 2000px; }
svg.plot.pw-2020 { min-width: 2020px; }
svg.plot.pw-2040 { min-width: 2040px; }
svg.plot.pw-2060 { min-width: 2060px; }
svg.plot.pw-2080 { min-width: 2080px; }
svg.plot.pw-2100 { min-width: 2100px; }
svg.plot.pw-2120 { min-width: 2120px; }
svg.plot.pw-2140 { min-width: 2140px; }
svg.plot.pw-2160 { min-width: 2160px; }
svg.plot.pw-2180 { min-width: 2180px; }
svg.plot.pw-2200 { min-width: 2200px; }
svg.plot.pw-2220 { min-width: 2220px; }
svg.plot.pw-2240 { min-width: 2240px; }
svg.plot.pw-2260 { min-width: 2260px; }
svg.plot.pw-2280 { min-width: 2280px; }
svg.plot.pw-2300 { min-width: 2300px; }
svg.plot.pw-2320 { min-width: 2320px; }
svg.plot.pw-2340 { min-width: 2340px; }
svg.plot.pw-2360 { min-width: 2360px; }
svg.plot.pw-2380 { min-width: 2380px; }
svg.plot.pw-2400 { min-width: 2400px; }
svg.plot.pw-2420 { min-width: 2420px; }
svg.plot.pw-2440 { min-width: 2440px; }
svg.plot.pw-2460 { min-width: 2460px; }
svg.plot.pw-2480 { min-width: 2480px; }
svg.plot.pw-2500 { min-width: 2500px; }
svg.plot.pw-2520 { min-width: 2520px; }
svg.plot.pw-2540 { min-width: 2540px; }
svg.plot.pw-2560 { min-width: 2560px; }
svg.plot.pw-2580 { min-width: 2580px; }
svg.plot.pw-2600 { min-width: 2600px; }
svg.plot.pw-2620 { min-width: 2620px; }
svg.plot.pw-2640 { min-width: 2640px; }
svg.plot.pw-2660 { min-width: 2660px; }
svg.plot.pw-2680 { min-width: 2680px; }
svg.plot.pw-2700 { min-width: 2700px; }
svg.plot.pw-2720 { min-width: 2720px; }
svg.plot.pw-2740 { min-width: 2740px; }
svg.plot.pw-2760 { min-width: 2760px; }
svg.plot.pw-2780 { min-width: 2780px; }
svg.plot.pw-2800 { min-width: 2800px; }
svg.plot.pw-2820 { min-width: 2820px; }
svg.plot.pw-2840 { min-width: 2840px; }
svg.plot.pw-2860 { min-width: 2860px; }
svg.plot.pw-2880 { min-width: 2880px; }
svg.plot.pw-2900 { min-width: 2900px; }
svg.plot.pw-2920 { min-width: 2920px; }
svg.plot.pw-2940 { min-width: 2940px; }
svg.plot.pw-2960 { min-width: 2960px; }
svg.plot.pw-2980 { min-width: 2980px; }
svg.plot.pw-3000 { min-width: 3000px; }
svg.plot.pw-3020 { min-width: 3020px; }
svg.plot.pw-3040 { min-width: 3040px; }
svg.plot.pw-3060 { min-width: 3060px; }
svg.plot.pw-3080 { min-width: 3080px; }
svg.plot.pw-3100 { min-width: 3100px; }
svg.plot.pw-3120 { min-width: 3120px; }
svg.plot.pw-3140 { min-width: 3140px; }
svg.plot.pw-3160 { min-width: 3160px; }
svg.plot.pw-3180 { min-width: 3180px; }
svg.plot.pw-3200 { min-width: 3200px; }
svg.plot.pw-3220 { min-width: 3220px; }
svg.plot.pw-3240 { min-width: 3240px; }
svg.plot.pw-3260 { min-width: 3260px; }
svg.plot.pw-3280 { min-width: 3280px; }
svg.plot.pw-3300 { min-width: 3300px; }
svg.plot.pw-3320 { min-width: 3320px; }
svg.plot.pw-3340 { min-width: 3340px; }
svg.plot.pw-3360 { min-width: 3360px; }
svg.plot.pw-3380 { min-width: 3380px; }
svg.plot.pw-3400 { min-width: 3400px; }
svg.plot.pw-3420 { min-width: 3420px; }
svg.plot.pw-3440 { min-width: 3440px; }
svg.plot.pw-3460 { min-width: 3460px; }
svg.plot.pw-3480 { min-width: 3480px; }
svg.plot.pw-3500 { min-width: 3500px; }
svg.plot.pw-3520 { min-width: 3520px; }
svg.plot.pw-3540 { min-width: 3540px; }
svg.plot.pw-3560 { min-width: 3560px; }
svg.plot.pw-3580 { min-width: 3580px; }
svg.plot.pw-3600 { min-width: 3600px; }
svg.plot.pw-3620 { min-width: 3620px; }
svg.plot.pw-3640 { min-width: 3640px; }
svg.plot.pw-3660 { min-width: 3660px; }
svg.plot.pw-3680 { min-width: 3680px; }
svg.plot.pw-3700 { min-width: 3700px; }
svg.plot.pw-3720 { min-width: 3720px; }
svg.plot.pw-3740 { min-width: 3740px; }
svg.plot.pw-3760 { min-width: 3760px; }
svg.plot.pw-3780 { min-width: 3780px; }
svg.plot.pw-3800 { min-width: 3800px; }
svg.plot.pw-3820 { min-width: 3820px; }
svg.plot.pw-3840 { min-width: 3840px; }
svg.plot.pw-3860 { min-width: 3860px; }
svg.plot.pw-3880 { min-width: 3880px; }
svg.plot.pw-3900 { min-width: 3900px; }
svg.plot.pw-3920 { min-width: 3920px; }
svg.plot.pw-3940 { min-width: 3940px; }
svg.plot.pw-3960 { min-width: 3960px; }
svg.plot.pw-3980 { min-width: 3980px; }
svg.plot.pw-4000 { min-width: 4000px; }
