/* The Patriarchs (js/patriarchs.js, js/patriarchs-world.js), a chapter of parallels: the rules it shares with every such
   chapter are css/parallels.css's (the overview's pictures and their steps, the foundation, the second pattern, the
   studies, the table, and the page of the four generations). Here is what is its own: the inks of the four generations,
   in the theme and in the night's palette of the drawing, given to the shared rules on the panel; and the inks of the
   figures and grounds its pictures are drawn with (js/patriarchs-world.js). */

/* the four generations, each in an ink of its own, in the theme: Abraham the gold, Isaac the blue of heaven, Jacob the
   red of earth, Joseph the green of the covenant; and the thread beneath all four in the violet of rest (Day 7's) */
#panel-patriarchs {
  --pt-mid: 40rem;
  --pt-a: var(--genB-ink);   --pt-a-edge: var(--genB-edge);   --pt-a-soft: var(--genB-soft);
  --pt-i: var(--heaven-ink); --pt-i-edge: var(--heaven-edge); --pt-i-soft: var(--heaven-soft);
  --pt-j: var(--earth-ink);  --pt-j-edge: var(--earth-edge);  --pt-j-soft: var(--earth-soft);
  --pt-o: var(--cov-ink);    --pt-o-edge: var(--cov-edge);    --pt-o-soft: var(--cov-soft);
  --pt-ring: conic-gradient(var(--pt-a-edge) 0 25%, var(--pt-i-edge) 0 50%, var(--pt-j-edge) 0 75%, var(--pt-o-edge) 0);
  /* and in the drawing, whatever the theme: the four inks the stations are drawn in, and the ground of Egypt */
  --pw-a: #efcb74; --pw-a-soft: #3a2a17; --pw-i: #a3bff1; --pw-i-soft: #1f2748; --pw-j: #f2a88c; --pw-j-soft: #3b1a27; --pw-o: #8fd6d2; --pw-o-soft: #132d30;
  --pw-egypt: #1c1422;
  /* given to the shared rules (css/parallels.css): the four columns, Abraham's to Joseph's */
  --g0-ink: var(--pt-a); --g0-edge: var(--pt-a-edge); --g0-soft: var(--pt-a-soft); --pw-g0: var(--pw-a); --pw-g0-soft: var(--pw-a-soft);
  --g1-ink: var(--pt-i); --g1-edge: var(--pt-i-edge); --g1-soft: var(--pt-i-soft); --pw-g1: var(--pw-i); --pw-g1-soft: var(--pw-i-soft);
  --g2-ink: var(--pt-j); --g2-edge: var(--pt-j-edge); --g2-soft: var(--pt-j-soft); --pw-g2: var(--pw-j); --pw-g2-soft: var(--pw-j-soft);
  --g3-ink: var(--pt-o); --g3-edge: var(--pt-o-edge); --g3-soft: var(--pt-o-soft); --pw-g3: var(--pw-o); --pw-g3-soft: var(--pw-o-soft);
}

/* ---- the inks of the Patriarchs' own figures (js/patriarchs-world.js); the shared ones, and each station's ink, are
   css/parallels.css's ---- */
.pw-veil { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.pw-o .pw-veil { stroke: var(--pw-pale); }
.pw-thicket { opacity: 0.8; }
.pw-wet { fill: var(--pw-water); }
.pw-ripple { fill: none; stroke: var(--pw-blue); stroke-width: 1.1; }
.pw-ray { stroke-width: 1.6; opacity: 0.85; }
.pw-dream { opacity: 0.62; }
.pw-angel { opacity: 0.8; }
.pw-dust { fill: var(--ink); opacity: 0.75; }
.pw-blood { fill: var(--pw-blood); }
.pw-pit { fill: var(--pw-hole); }
.pw-cave { fill: var(--pw-hole); stroke: var(--ink); stroke-width: 1.8; }
.pw-o.pw-hill { opacity: 0.35; }
.pw-arm, .pw-hands { stroke-width: 2.4; }
.pw-chain { stroke-width: 1.6; }
.pw-road { stroke-width: 2.6; }
.pw-bar { stroke-width: 3.6; }
.pw-lip { stroke-width: 3; }
.pw-tally { stroke-width: 2.6; }
.pw-hope { stroke-dasharray: 4 5; }
.pw-throne { opacity: 0.6; }
.pw-hair { stroke: var(--soft); stroke-width: 1.4; }
.pw-num { fill: var(--ink); opacity: 0.3; font-family: var(--display); font-weight: 400; font-size: 64px; text-anchor: middle; }
.pw-pack { fill: var(--soft); stroke: var(--ink); stroke-width: 1.2; }
.pw-o .pw-pack { fill: var(--pw-pale); stroke: var(--pw-pale); }
/* inks added for particular pictures (js/patriarchs-world.js), each set kept with the pictures it was first drawn for */
/* for the voice of God, the promise, and the child of promise */
.pw-walkstaff { stroke-width: 2.2; }
.pw-callway { stroke-dasharray: 2 5; }
.pw-voicearc { stroke-width: 1.8; }
.pw-heavenbeam { fill: var(--ink); opacity: 0.24; }
.pw-heavenbeam.pw-beamaura { opacity: 0.1; }
.pw-beamcore { opacity: 0.85; }
.pw-dreamcloud { stroke-width: 1.3; }
.pw-dreamseen { opacity: 0.9; }
.pw-fruitvine { stroke-width: 2.6; }
.pw-swaddle { fill: color-mix(in srgb, var(--ink) 22%, #f6f1e8); stroke: var(--pw-air); stroke-width: 1.2; stroke-linejoin: round; paint-order: stroke; }
.pw-swaddleband { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; }
.pw-cradlehalo { fill: none; stroke: var(--pw-air); stroke-width: 3.6; stroke-linecap: round; }
.pw-s.pw-cradlearm { stroke-width: 1.7; }
.pw-babyhead { stroke: var(--pw-air); stroke-width: 0.9; paint-order: stroke; }

/* for the younger over the elder, the son in danger, and famine and Egypt */
.pw-sheafband { fill: var(--pw-air); opacity: 0.85; }
.pw-cutout { stroke: var(--pw-air); stroke-width: 2.4px; paint-order: stroke; }
.pw-o.pw-cutout { opacity: 1; fill: color-mix(in srgb, var(--pw-pale) 72%, var(--pw-air)); }
.pw-wilt { stroke-width: 1.5; }
.pw-rent { fill: none; stroke: var(--pw-air); stroke-width: 1.6; stroke-linejoin: round; }
.pw-awn { stroke-width: 0.9; }
.pw-armhalo { fill: none; stroke: var(--pw-air); stroke-width: 6; stroke-linecap: round; }
.pw-huntbow { stroke-width: 2.6; }
.pw-knife { opacity: 0.9; }
.pw-prison { fill: var(--soft); stroke: var(--ink); stroke-width: 1.8; opacity: 0.9; }
.pw-prisonbars { stroke-width: 2.6; }
.pw-withered { opacity: 0.9; }
.pw-downway { stroke-width: 2.2; stroke-dasharray: 5 4; }
.pw-storegrain { opacity: 0.8; }
.pw-storedoor { fill: var(--pw-hole); stroke: var(--ink); stroke-width: 1.2; }
.pw-sheafstraw { fill: none; stroke: var(--pw-air); stroke-width: 0.8; opacity: 0.6; }
.pw-grainsack { fill: var(--pw-mute); stroke: var(--pw-pale); stroke-width: 1.2; stroke-linejoin: round; }

/* for the foreign court, a marriage concealed, and the garment and the goat */
.pw-cg-staff { stroke-width: 2.4; }
.pw-cg-limb { stroke-width: 1.8; }
.pw-cg-chain { fill: none; stroke: var(--pw-deep); stroke-width: 1.8; stroke-linecap: round; }
.pw-cg-wall { fill: var(--pw-pale); fill-opacity: 0.1; stroke: var(--pw-pale); stroke-opacity: 0.55; stroke-width: 1.4; stroke-linejoin: round; }
.pw-cg-window { fill: var(--pw-hole); stroke: var(--pw-pale); stroke-opacity: 0.7; stroke-width: 1.4; }
.pw-cg-sill { fill: none; stroke: var(--pw-pale); stroke-opacity: 0.8; stroke-width: 2.4; stroke-linecap: round; }
.pw-cg-sight { fill: none; stroke: var(--pw-pale); stroke-width: 1.3; stroke-dasharray: 2 4; stroke-linecap: round; opacity: 0.75; }
.pw-cg-veil { fill: var(--soft); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.pw-cg-fold { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.6; }
.pw-cg-couch { opacity: 0.5; }
.pw-cg-fur { fill: var(--soft); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.pw-cg-trim { fill: var(--soft); }
.pw-cg-rent { fill: none; stroke: var(--pw-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pw-cg-door { fill: var(--pw-hole); stroke: var(--pw-pale); stroke-opacity: 0.6; stroke-width: 1.4; }
.pw-cg-lintel { fill: none; stroke: var(--pw-pale); stroke-opacity: 0.7; stroke-width: 2.6; stroke-linecap: round; }

/* for the well and the pit, altars and holy places, and brothers and peace */
.pw-stream { fill: none; stroke: var(--pw-blue); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2.4 2.6; }
.pw-taken { fill: var(--pw-air); stroke-dasharray: 3 2.6; }
.pw-wname { fill: var(--ink); font-family: var(--draw-text); font-style: italic; font-size: 15px; text-anchor: middle; paint-order: stroke; stroke: var(--pw-air); stroke-width: 3px; stroke-linejoin: round; }
.pw-wname.pale { fill: var(--pw-pale); }
.pw-cut { stroke-width: 1.6; }
.pw-tear { fill: var(--pw-blue); }
.pw-oil { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1 3.6; }
.pw-far { opacity: 0.55; }
.pw-plateau { fill: var(--pw-ground); }

/* for seven, ten, and burial and the bones */
.pw-ten-water { fill: none; stroke: var(--pw-blue); stroke-width: 1.4; stroke-linecap: round; }
.pw-ten-pour { fill: none; stroke: var(--pw-blue); stroke-width: 1.6; stroke-linecap: round; }
.pw-ten-mark { fill: var(--soft); }
.pw-ten-stripe { fill: none; stroke: var(--soft); stroke-width: 1.1; stroke-linecap: round; }
.pw-seven-lean { opacity: 0.62; }
.pw-bones-band { fill: none; stroke: var(--soft); stroke-width: 1.3; stroke-linecap: round; }

/* the grounds of famine and of Egypt: the land of Egypt by its river, the border, and the names of the two lands */
.pw-egypt { fill: var(--pw-egypt); }
.pw-wave { fill: none; stroke: var(--pw-blue); stroke-width: 1.3; opacity: 0.4; }
.pw-border { fill: none; stroke: var(--pw-rule); stroke-width: 1.4; stroke-dasharray: 6 5; }
.pw-rg { fill: var(--pw-pale); font-family: var(--draw-caps); font-size: 15px; letter-spacing: 0.12em; text-anchor: end; }
.pw-nm:is(.on-famine, .on-egypt) { stroke: var(--pw-egypt); }
