/* =====================================================================
   The Ten Plagues (js/plagues.js), set as the other studies are (css/manuscript.css): the introduction, a drawing,
   the chart to choose from, one study card, and the tables beneath. What is the page's own is here:
   - the drawing, "The light goes out": a strip of sky over the ten, gold over the first six and darkening from the
     seventh to midnight, with the words of each part of it beneath (on a phone, one beneath another, each by its
     colour);
   - the pictures of the overview (js/plagues-world.js), a frame to each round of three, framed and stepped through by
     the rules every chapter's pictures share (css/parallels.css): here are the inks of their three columns, the three
     ways a plague is announced; the row of buttons beneath each frame, one to each plague of the round; the banners of
     the sign above them and the tenth below; and, at the foot of this file, the inks of the drawings' own figures;
   - the chart those pictures stand in place of, drawn only where they are missing: three rounds of three, a row to
     each round and a column to each way a plague was announced; round three and the tenth are set in the dark of the
     drawing;
   - in the study, the four sections (what Yahweh said, what Moses and Aaron did, what Pharaoh said, what happened),
     two by two on a wide screen, and the words that come back picked out in colour, with their key;
   - the table of those words, a row to each and a column to each plague.
   Every colour is a token of css/styles.css but the sky's, which is the dark itself and nearly the same in both
   themes, and "behold", which has a magenta of its own, as the rubric would be the gold of "rise up early" in the
   dark and the red of the hardened heart in the light. Within the dark (.pl-night) the dark theme's inks are used in
   either theme, so that its words stand light on the night.
   ===================================================================== */

/* the colours of the words picked out: a wash under the words and a rule beneath them */
#panel-plagues {
  --k-early: var(--genB-edge);  --k-early-bg: var(--genB-soft);
  --k-behold: #e384b4;          --k-behold-bg: color-mix(in srgb, #e384b4 17%, transparent);
  --k-hand: var(--heaven-edge); --k-hand-bg: var(--heaven-soft);
  --k-go: var(--cov-edge);      --k-go-bg: var(--cov-soft);
  --k-know: var(--beat-edge);   --k-know-bg: var(--beat-soft);
  --k-heart: var(--earth-edge); --k-heart-bg: var(--earth-soft);
  --k-spoken: var(--bronze);    --k-spoken-bg: color-mix(in srgb, var(--bronze) 16%, transparent);
  --k-apart: var(--genA-edge);  --k-apart-bg: var(--genA-soft);
  /* the sky of the drawing, from the day of the first six to the midnight of the tenth, and what is drawn in it */
  --sky0: #6e5222; --sky7: #3b3348; --sky8: #241c2b; --sky9: #0e0a12; --sky10: #060408;
  --sky-sun: #f6d47c; --sky-day-ink: #fbe6ad; --sky-land: rgba(255, 236, 190, 0.5);
  --sky-ink: #d8cde3; --sky-dim: #6b5e78; --sky-gold: #f2c14e; --sky-blood: #e0675a; --sky-hail: #ece6f3;
}
:root[data-theme="light"] #panel-plagues {
  --k-behold: #a3317a; --k-behold-bg: color-mix(in srgb, #a3317a 13%, transparent);
  --sky0: #efd99b; --sky7: #6a6376; --sky8: #3b3442; --sky9: #17131b; --sky10: #0a080c;
  --sky-sun: #b07d12; --sky-day-ink: #5a3f0a; --sky-land: rgba(90, 63, 10, 0.45); --sky-blood: #d6493a;
}
#panel-plagues .s0 { --sky: var(--sky0); }
#panel-plagues .s7 { --sky: var(--sky7); }
#panel-plagues .s8 { --sky: var(--sky8); }
#panel-plagues .s9 { --sky: var(--sky9); }
#panel-plagues .s10 { --sky: var(--sky10); }
/* within the dark, the dark theme's inks, in either theme */
.pl-night {
  --ink: #ece5f0; --muted: #c6bad2; --rubric: #e6bd5c; --rule: #5f4a6c; --press: #9c7a45; --focus: #f3ecf8;
  --genB-soft: #33231b; --genB-edge: #e2b959; --genB-ink: #efcb74;
  color: var(--ink);
}

.pl-m { padding: 0 1px; color: inherit; border-bottom: 2px solid var(--kc); background: var(--kb); -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color 0.2s ease, border-color 0.2s ease; }
.k-early { --kc: var(--k-early); --kb: var(--k-early-bg); }
.k-behold { --kc: var(--k-behold); --kb: var(--k-behold-bg); }
.k-hand { --kc: var(--k-hand); --kb: var(--k-hand-bg); }
.k-go { --kc: var(--k-go); --kb: var(--k-go-bg); }
.k-know { --kc: var(--k-know); --kb: var(--k-know-bg); }
.k-heart { --kc: var(--k-heart); --kb: var(--k-heart-bg); }
.k-spoken { --kc: var(--k-spoken); --kb: var(--k-spoken-bg); }
.k-apart { --kc: var(--k-apart); --kb: var(--k-apart-bg); }
/* one word followed: the others go back to plain words */
#panel-plagues[data-focus] .pl-m { background: none; border-bottom-color: transparent; }
#panel-plagues[data-focus="early"] .pl-m.k-early, #panel-plagues[data-focus="behold"] .pl-m.k-behold,
#panel-plagues[data-focus="hand"] .pl-m.k-hand, #panel-plagues[data-focus="go"] .pl-m.k-go,
#panel-plagues[data-focus="know"] .pl-m.k-know, #panel-plagues[data-focus="heart"] .pl-m.k-heart,
#panel-plagues[data-focus="spoken"] .pl-m.k-spoken, #panel-plagues[data-focus="apart"] .pl-m.k-apart { background: var(--kb); border-bottom-color: var(--kc); font-weight: 600; }
.pl-sw { flex: none; width: 0.95em; height: 0.95em; border-bottom: 2px solid var(--kc); background: var(--kb); }

/* a plague's number in its roundel; the sign's is the rod that became a serpent */
.pl-n { display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border: 2px solid var(--genB-edge); border-radius: 50%; background: var(--genB-soft); font-family: var(--display); font-size: 1.3rem; font-weight: 400; line-height: 1; color: var(--rubric); transition: background-color 0.15s ease, color 0.15s ease; }
.pl-rod { display: block; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pl-rod circle { fill: currentColor; stroke: none; }

/* ---- the light goes out: the strip of sky, framed thick-and-thin, and the words beneath each part of it ---- */
.pl-sky {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
  max-width: 66rem;
  margin: 6px auto 0;
  padding: 9px 0;
  background:
    linear-gradient(var(--press), var(--press)) top / 100% 3px no-repeat,
    linear-gradient(var(--press), var(--press)) 0 6px / 100% 1px no-repeat,
    linear-gradient(var(--press), var(--press)) bottom / 100% 3px no-repeat,
    linear-gradient(var(--press), var(--press)) 0 calc(100% - 6px) / 100% 1px no-repeat;
}
.pl-sky-c { position: relative; height: 8.6rem; overflow: hidden; background: var(--sky); }
.pl-sky-c + .pl-sky-c { box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.4); }
.pl-sky-c svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-sky-n { position: absolute; top: 0.45rem; left: 0.65rem; font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--sky-gold); }
.pl-sky-c.s0 .pl-sky-n { color: var(--sky-day-ink); }
.pl-sky svg * { vector-effect: non-scaling-stroke; }
.sk-sun circle { fill: var(--sky-sun); }
.sk-sun path { fill: none; stroke: var(--sky-sun); stroke-width: 2; stroke-linecap: round; }
.sk-land { fill: none; stroke: rgba(216, 205, 227, 0.3); stroke-width: 1.5; }
.s0 .sk-land { stroke: var(--sky-land); }
.sk-cloud { fill: #231d2b; stroke: var(--sky-ink); stroke-width: 1.5; stroke-linejoin: round; }
.sk-bolt { fill: none; stroke: var(--sky-gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sk-hail circle { fill: var(--sky-hail); }
.sk-black { fill: #030204; }
.sk-swarm ellipse { fill: #050307; stroke: rgba(216, 205, 227, 0.4); stroke-width: 0.8; }
.sk-glow { fill: var(--sky-gold); opacity: 0.2; }
.sk-house { fill: #07050a; stroke: var(--sky-dim); stroke-width: 1.5; stroke-linejoin: round; }
.sk-window { fill: var(--sky-gold); }
.sk-inside { fill: rgba(242, 193, 78, 0.12); }
.sk-frame { fill: none; stroke: var(--sky-dim); stroke-width: 1.8; }
.sk-blood { fill: none; stroke: var(--sky-blood); stroke-width: 3.2; stroke-linecap: round; }

.pl-dks { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); max-width: 66rem; margin: 0 auto; padding: 0; list-style: none; }
.pl-dk { min-width: 0; padding: 16px 14px 6px; }
.pl-dk + .pl-dk { border-left: 1px dotted var(--rule); }
.pl-dk-go { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pl-dk-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pl-dk-k { display: block; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; line-height: 1.3; color: var(--muted); }
.pl-dk-t { display: block; margin: 2px 0 8px; font-family: var(--display); font-size: 1.5rem; font-weight: 400; line-height: 1.15; color: var(--ink); }
.pl-dk-go .pl-dk-t::after { content: " →"; font-size: 0.75em; color: var(--rubric); }
.pl-dk-go:hover .pl-dk-t, .pl-dk-go:focus-visible .pl-dk-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pl-dk-q { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
.pl-dk-s { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.pl-dk-notes { max-width: 46rem; margin: 30px auto 0; }
.pl-dk-notes p { margin: 0 0 14px; text-align: justify; hyphens: auto; }
.pl-dk-notes p.bt-caution { margin: 0 auto; }

/* ---- the chart: the sign, the three rounds, the tenth ---- */
.pl-week { max-width: 64rem; margin: 0 auto; }
.pl-end {
  position: relative;
  display: block;
  width: 100%;
  padding: 2.3rem 20px 1.1rem;
  border: 0;
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  background:
    linear-gradient(var(--press), var(--press)) top / 100% 3px no-repeat,
    linear-gradient(var(--press), var(--press)) 0 6px / 100% 1px no-repeat,
    linear-gradient(var(--press), var(--press)) bottom / 100% 3px no-repeat,
    linear-gradient(var(--press), var(--press)) 0 calc(100% - 6px) / 100% 1px no-repeat,
    color-mix(in srgb, var(--genB-soft) 45%, transparent);
  transition: background-color 0.15s ease;
}
.pl-end.top { margin: 2.2rem 0 0; }
.pl-end.foot { margin: 2.4rem 0 0; background-color: var(--sky); }
.pl-end .pl-n { position: absolute; top: 3px; left: 50%; transform: translate(-50%, -50%); }
.pl-end-k { display: block; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--muted); }
.pl-end-ref { margin-left: 0.35em; font-family: var(--text); font-style: normal; letter-spacing: 0; }
.pl-end .pl-cell-t { margin-top: 2px; font-size: 1.75rem; }
.pl-week-h, .pl-round { display: grid; grid-template-columns: 9.5rem repeat(3, minmax(0, 1fr)); column-gap: 12px; }
.pl-week-h { align-items: end; margin-top: 26px; padding-bottom: 10px; border-bottom: 1px solid var(--press); }
.pl-week-c b { display: block; font-family: var(--caps); font-size: 1.02rem; font-weight: var(--caps-wt); letter-spacing: 0.01em; line-height: 1.3; color: var(--rubric); }
.pl-week-c small { display: block; margin-top: 5px; font-size: 0.95rem; font-style: normal; line-height: 1.4; color: var(--muted); }
.pl-short { display: none; }
.pl-rounds { margin: 0; padding: 0; list-style: none; }
.pl-round { align-items: stretch; padding: 6px 0; border-bottom: 1px dotted var(--rule); }
.pl-round.r3 { border-bottom: 0; }
.pl-round-k { align-self: center; padding-right: 6px; }
.pl-round-k b { display: block; font-family: var(--caps); font-size: 1rem; font-weight: var(--caps-wt); letter-spacing: 0.01em; color: var(--ink); }
.pl-round-k small { display: block; margin-top: 3px; font-size: 0.95rem; font-style: normal; line-height: 1.35; color: var(--muted); }
.pl-cell { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; width: 100%; padding: 12px 10px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 0.15s ease; }
.pl-cell.pl-night { background-color: var(--sky); }
.pl-cell-tx { min-width: 0; }
.pl-cell-t { display: block; font-family: var(--display); font-size: 1.32rem; font-weight: 400; line-height: 1.15; }
.pl-cell-s { display: block; margin-top: 2px; font-size: 0.95rem; line-height: 1.35; color: var(--muted); }
.pl-cell:hover .pl-cell-t, .pl-cell:focus-visible .pl-cell-t, .pl-end:hover .pl-cell-t, .pl-end:focus-visible .pl-cell-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pl-cell:focus-visible, .pl-end:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-cell.sel, .pl-end.sel { background-color: color-mix(in srgb, var(--rubric) 12%, transparent); }
.pl-cell.pl-night.sel, .pl-end.pl-night.sel { background-color: color-mix(in srgb, var(--rubric) 14%, var(--sky)); box-shadow: inset 0 0 0 2px var(--rubric); }
.pl-cell.sel .pl-n, .pl-end.sel .pl-n { background: var(--rubric); color: var(--bg); }
.pl-night.sel .pl-n { color: #1b1020; }

/* ---- the study ---- */
.pl-facts { display: flex; flex-wrap: wrap; justify-content: center; max-width: 50rem; margin: -12px auto 26px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1rem; letter-spacing: 0.01em; line-height: 1.5; color: var(--ink); text-align: center; }
/* (each fact has its own mark before it, a small lozenge of the rubric, and the facts stand apart by a gap: where the
   line wraps, no point is left to begin the next) */
.pl-facts { gap: 0 1.3em; }
.pl-facts > span::before { content: ""; display: inline-block; width: 0.36em; height: 0.36em; margin-right: 0.55em; vertical-align: 0.16em; background: var(--rubric); transform: rotate(45deg); }
.pl-to-dark { color: var(--rubric); text-decoration: none; }
.pl-to-dark:hover, .pl-to-dark:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.pl-to-dark:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the key: each word picked out, with how often it comes in this plague; a tap follows it alone */
.pl-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; max-width: 60rem; margin: 0 auto 34px; }
.pl-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 2.2rem; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pl-chip.none { border-style: dotted; color: var(--muted); }
.pl-chip.none .pl-sw { opacity: 0.45; }
.pl-chip:hover { border-color: var(--rubric); }
.pl-chip[aria-pressed="true"] { border-color: var(--rubric); background: color-mix(in srgb, var(--rubric) 10%, transparent); color: var(--rubric); }
.pl-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-cnt { font-family: var(--text); font-size: 0.95rem; font-feature-settings: "lnum"; color: var(--muted); }
/* what Yahweh said, what Moses and Aaron did, what Pharaoh said, what happened */
.pl-says { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; max-width: 72rem; margin: 0 auto; }
.pl-say { min-width: 0; }
.pl-say-h { margin: 0 0 14px; padding-bottom: 7px; border-bottom: 1px solid var(--press); font-family: var(--caps); font-size: 1.08rem; font-weight: var(--caps-wt); letter-spacing: 0.01em; color: var(--rubric); }
.pl-say .moments { margin: 0; }
.pl-say .moments > li:last-child { margin-bottom: 0; }
.pl-say .m-text { text-align: left; hyphens: manual; }       /* two columns read better ragged-right than justified */
.pl-who { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95em; letter-spacing: 0.01em; color: var(--rubric); }
.pl-note .m-text { font-style: normal; color: var(--muted); }
.pl-echo-more { margin: 18px 0 0; text-align: center; }
.pl-echo-more .link-btn { display: inline-flex; gap: 7px; text-decoration: none; }
/* the roll: round three and the tenth in the dark */
.rl-node.pl-night { background: var(--sky); }
.rl-node .pl-rod { width: 1.05em; height: 1.05em; }

/* ---- the words that come back: a row to each, a column to each plague ---- */
table.pl-lg { max-width: 68rem; margin: 0 auto; }
table.pl-lg col.pl-col-r { width: 15.5rem; }
table.pl-lg col.pl-col-tot { width: 4.2rem; }
table.pl-lg thead th { vertical-align: bottom; }
table.pl-lg thead th.lg-genh { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; }
.pl-lg-by { color: var(--muted); }
table.pl-lg th.pl-lg-ph.pl-night { background: var(--sky); }
.pl-lg-p { display: grid; place-items: center; width: 100%; min-height: 2.3rem; padding: 2px 0; border: 0; background: none; color: var(--rubric); font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.pl-lg-p:hover, .pl-lg-p:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.pl-lg-p:focus-visible, .pl-lg-k:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
table.pl-lg tbody th { padding-right: 10px; text-align: left; }
.pl-lg-k { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 2px; border: 0; background: none; color: var(--ink); font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.98rem; letter-spacing: 0.01em; line-height: 1.25; text-align: left; cursor: pointer; }
.pl-lg-k:hover { color: var(--rubric); }
tr.pl-lg-on .pl-lg-k { color: var(--rubric); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lg-cell.pl-lg-cell { display: flex; align-items: center; justify-content: center; gap: 0 3px; height: auto; min-height: 32px; padding: 2px 1px; border: 0; border-bottom: 2px solid var(--kc); background: var(--kb); }
.lg-cell.pl-lg-cell .vi { font-size: 0.95rem; color: var(--ink); }
table.pl-lg .lg-empty { height: 32px; }
.pl-lg-tot { text-align: center; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--rubric); }
table.pl-lg thead th.pl-lg-toth { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; color: var(--rubric); }
table.pl-lg td.pl-lg-sel { background: color-mix(in srgb, var(--rubric) 7%, transparent); }
table.pl-lg th.pl-lg-sel .pl-lg-p { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
table.pl-lg th.pl-lg-sel:not(.pl-night) { background: color-mix(in srgb, var(--rubric) 16%, transparent); }
#panel-plagues[data-focus] tr[data-k-row]:not(.pl-lg-on) td { opacity: 0.35; }

/* ---- beside the days of creation (a table of words, table.pr-tt) ---- */
table.pl-ctt tbody td:nth-of-type(1) { font-style: normal; color: var(--muted); }
table.pl-ctt tbody td:last-child { white-space: nowrap; }
.pl-cnote { display: block; margin-top: 5px; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.pl-after { max-width: 46rem; margin: 18px auto 0; font-style: normal; color: var(--muted); }
.pl-after a { color: var(--rubric); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pl-after a:hover { text-decoration-thickness: 2px; }
.pl-after a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bt-strength.st-thin { font-style: normal; }

/* ---- the sources, under How to read this page ---- */
ol.pl-src { margin: 2px 0 0; padding: 0 0 0 1.4rem; font-size: 0.95rem; line-height: 1.55; }
ol.pl-src li { margin: 0 0 10px; padding-left: 4px; }
ol.pl-src li::marker { font-feature-settings: "lnum"; color: var(--rubric); }
.pl-src-note { display: block; margin-top: 3px; font-size: 0.92em; font-style: normal; color: var(--muted); }

@media (max-width: 780px) {
  /* the drawing keeps its strip; the words beneath it stand one under another, each by its part of the sky */
  .pl-sky-c { height: 5.4rem; }
  .pl-sky-n { top: 0.3rem; left: 0.4rem; font-size: 1.1rem; }
  .pl-dks { grid-template-columns: minmax(0, 1fr); }
  .pl-dk, .pl-dk + .pl-dk { margin-top: 14px; padding: 2px 0 2px 14px; border-left: 6px solid var(--sky); }
  .pl-dk-t { margin-bottom: 6px; font-size: 1.35rem; }
  .pl-dk-notes { margin-top: 24px; }
  .pl-dk-notes p, .pl-dk-notes p.bt-caution { text-align: left; text-align-last: auto; }

  /* the chart: the three ways across the top, each round's name above its three, the sign and the tenth across */
  .pl-week-h, .pl-round { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6px; }
  .pl-week-h > .pl-week-c:first-child { display: none; }
  .pl-week-c { text-align: center; }
  .pl-week-c b { font-size: 0.95rem; letter-spacing: 0.05em; }
  .pl-long, .pl-week-c small { display: none; }
  .pl-short { display: inline; }
  .pl-round { row-gap: 6px; padding: 2px 0 8px; }
  .pl-round-k { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5em; padding: 8px 2px 0; line-height: 1.3; }
  .pl-round-k b { font-size: 0.95rem; }
  .pl-round-k small { margin: 0; font-size: 0.95rem; }
  .pl-cell { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; row-gap: 6px; padding: 10px 2px 11px; text-align: center; }
  .pl-cell-t { font-size: 1.04rem; }
  .pl-cell-s { display: none; }
  .pl-end { padding: 2rem 10px 0.9rem; }
  .pl-end .pl-cell-t { font-size: 1.4rem; }
  .pl-end .pl-cell-s { display: block; font-size: 0.95rem; }
  .pl-n { width: 2.3rem; height: 2.3rem; font-size: 1.12rem; }

  /* the study: the four sections one beneath another */
  .pl-facts { margin-top: -8px; font-size: 0.95rem; }
  .pl-key { gap: 5px 6px; margin-bottom: 28px; }
  .pl-chip { gap: 5px; min-height: 2rem; padding: 2px 8px; font-size: 0.95rem; }
  .pl-says { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pl-detail .bt-caution { text-align: left; text-align-last: auto; }

  /* the table of words: each word by its short name, the plagues' numbers across, the marks small */
  table.pl-lg { border-spacing: 1px; }
  table.pl-lg col.pl-col-r { width: 4.5rem; }
  table.pl-lg col.pl-col-tot { width: 1.9rem; }
  table.pl-lg .lg-full, .pl-lg-by { display: none; }
  table.pl-lg .lg-abbr { display: inline; }
  table.pl-lg tbody th { padding-right: 2px; }
  .pl-lg-k { gap: 4px; padding: 2px 0; font-size: 0.95rem; letter-spacing: 0; }
  .pl-lg-k .pl-sw { width: 0.7em; height: 0.7em; }
  .pl-lg-p { min-height: 1.9rem; font-size: 0.95rem; }
  /* two or three marks stand two to a line where the column is narrow */
  .lg-cell.pl-lg-cell { flex-wrap: wrap; align-content: center; gap: 0; min-height: 26px; padding: 2px 0; line-height: 1; }
  .lg-cell.pl-lg-cell .vi { font-size: 0.95rem; line-height: 1.05; }
  table.pl-lg .lg-empty { height: 26px; }
  .pl-lg-tot { font-size: 0.98rem; }
  table.pl-lg thead th.lg-genh, table.pl-lg thead th.pl-lg-toth { font-size: 0.95rem; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) { .pl-m, .pl-n, .pl-cell, .pl-end { transition: none; } }
@media print { .pl-key { display: none; } .pl-sky-c, .pl-cell.pl-night, .pl-end.foot { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* as Psalm 105 sings them: the table, and the note on each plague's page */
table.pl-pst tbody td:nth-of-type(1) { font-style: normal; color: var(--muted); white-space: nowrap; }
table.pl-pst tbody td:last-child { white-space: normal; }
.pl-psalm { margin-top: 26px; }

/* =====================================================================
   The pictures of the overview: a frame to each round (js/plagues.js, js/plagues-world.js; css/parallels.css)
   ===================================================================== */
/* the three ways a plague is announced, each in an ink of its own, in the theme and in the night's palette of the
   drawing: in the morning at the water, the blue of the river; in the palace, the gold of the throne (the page's own
   gold); without warning, the red of earth, the dust struck and the soot thrown */
#panel-plagues {
  --pt-cols: 3;
  --pt-mid: 34rem;
  --pt-ring: conic-gradient(var(--heaven-edge) 0 33.3%, var(--genB-edge) 0 66.6%, var(--earth-edge) 0);
  --g0-ink: var(--heaven-ink); --g0-edge: var(--heaven-edge); --g0-soft: var(--heaven-soft); --pw-g0: #a3bff1; --pw-g0-soft: #1f2748;
  --g1-ink: var(--genB-ink);   --g1-edge: var(--genB-edge);   --g1-soft: var(--genB-soft);   --pw-g1: #efcb74; --pw-g1-soft: #3a2a17;
  --g2-ink: var(--earth-ink);  --g2-edge: var(--earth-edge);  --g2-soft: var(--earth-soft);  --pw-g2: #f2a88c; --pw-g2-soft: #3b1a27;
}
.pl-world { margin-bottom: 34px; }
/* the three heads, each with the words that send Moses */
@media (min-width: 900px) { .pl-world .pt-heads { max-width: 58rem; } }
.pl-world .pt-h-d { margin-top: 3px; }
/* the sign over the pictures and the tenth beneath them: the banners of the chart, at the measure of the motif that
   lies beneath a chapter's pictures (.pt-found, css/parallels.css) */
.pl-world .pl-end { max-width: 40rem; margin-left: auto; margin-right: auto; }
.pl-world .pl-end.top { margin-top: 56px; }
.pl-world .pl-end.foot { margin-top: 64px; }
.pl-world .pl-end .pl-cell-s { max-width: 34rem; margin-left: auto; margin-right: auto; font-size: 1.02rem; }
.pl-world .pl-end.sel { box-shadow: inset 0 0 0 2px var(--rubric); }
/* beneath each frame, a button to each plague of the round, in the round's order: its number in its roundel, its
   name, and an arrow; those of round three in the dark of the drawing. The thread folds beneath them. */
#panel-plagues .pt-band { grid-template-areas: ". art ." ". order ." ". words ."; }
.pl-gos { grid-area: order; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; margin-top: 6px; }
.pl-go {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 4px 14px 4px 5px;
  border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--ink); cursor: pointer;
  font: inherit; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.98rem; letter-spacing: 0.01em; line-height: 1.15; text-align: left;
  -webkit-tap-highlight-color: transparent; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pl-go.pl-night { background-color: var(--sky); }
.pl-go .pl-n { position: relative; width: 2.1rem; height: 2.1rem; font-size: 1.08rem; }
.pl-go-a { color: var(--rubric); }
.pl-go:hover, .pl-go:focus-visible { border-color: var(--rubric); }
.pl-go:hover .pl-go-t, .pl-go:focus-visible .pl-go-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pl-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-go.sel { border-color: var(--rubric); background-color: color-mix(in srgb, var(--rubric) 12%, transparent); }
.pl-go.pl-night.sel { background-color: color-mix(in srgb, var(--rubric) 14%, var(--sky)); }
.pl-go.sel .pl-n { background: var(--rubric); color: var(--bg); }
.pl-go.pl-night.sel .pl-n { color: #1b1020; }
.pt-band:has(.pl-go:hover) .pt-frame, .pt-band:has(.pl-go:focus-visible) .pt-frame { border-color: var(--rubric); }
@media (max-width: 899px) {
  #panel-plagues .pt-band { grid-template-areas: "art art" "order order" "words words"; }
  .pl-gos { margin-top: 12px; }
  .pl-world .pl-end.top { margin-top: 46px; }
  .pl-world .pl-end.foot { margin-top: 54px; }
}
/* a phone: the three side by side, each its roundel over its name */
@media (max-width: 640px) {
  .pl-gos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .pl-go { flex-direction: column; justify-content: flex-start; gap: 5px; padding: 8px 4px 9px; border-radius: 14px; text-align: center; text-wrap: balance; }
  .pl-go-a { display: none; }
  /* a head's name on one line beside its dot, two heads to a row */
  .pl-world .pt-h-t { font-size: 1.22rem; }
}
@media (prefers-reduced-motion: reduce) { .pl-go { transition: none; } }
@media print { .pl-gos { display: none; } }

/* ---- inks added for particular pictures (js/plagues-world.js), each set kept with the pictures it was first drawn for ---- */
/* for every picture: Pharaoh, the rod, and what is scattered */
.pw-pl-crown { fill: #d3c8dc; }
.pw-pl-rod { stroke-width: 2.6; }
.pw-pl-rodhalo { fill: none; stroke: var(--pw-air); stroke-width: 5.4; stroke-linecap: round; opacity: 0.85; }
.pw-pl-fly { fill: var(--ink); }
.pw-pl-apart { fill: var(--pw-air); stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 2.4 3; stroke-linecap: round; }

/* for round one: blood, frogs, gnats */
.pw-pl-water { fill: #1b2a48; }
.pw-pl-ripple { fill: none; stroke: #5b7cb3; stroke-width: 1.1; stroke-linecap: round; opacity: 0.8; }
.pw-pl-farbank { fill: color-mix(in srgb, var(--pw-ground) 75%, var(--pw-air)); }
.pw-pl-shore { fill: none; stroke: var(--pw-rule); stroke-width: 1.3; }
.pw-pl-bloodwater { fill: #74202a; }
.pw-pl-bloodripple { fill: none; stroke: #d98080; stroke-width: 1.1; stroke-linecap: round; opacity: 0.75; }
.pw-pl-fish { fill: #e4dbea; stroke: #74202a; stroke-width: 0.7; }
.pw-pl-fin { fill: none; stroke: #e4dbea; stroke-width: 1.1; stroke-linejoin: round; }
.pw-pl-hall { fill: #120b17; fill-opacity: 0.78; }
.pw-pl-roof, .pw-pl-column { fill: color-mix(in srgb, var(--pw-pale) 46%, var(--pw-air)); }
.pw-pl-pool { fill: #1b2a48; stroke: #5b7cb3; stroke-width: 1.3; }
.pw-pl-frog { fill: var(--ink); stroke: var(--pw-air); stroke-width: 0.9; paint-order: stroke; }
.pw-pl-frogeye { fill: var(--pw-deep); stroke: none; }
.pw-pl-frogleg { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; paint-order: normal; }
.pw-pl-dust { fill: var(--pw-pale); opacity: 0.3; }
.pw-pl-gnat { fill: var(--ink); opacity: 0.9; }
.pw-pl-gnaton { fill: var(--pw-deep); }
.pw-pl-rodfallen { stroke-width: 2.4; }

/* for round two: flies, the livestock, boils */
.pw-pl-door { fill: var(--pw-hole); }
.pw-pl-dead { opacity: 0.55; }
.pw-pl-ember { fill: #e9935f; }
.pw-pl-smoke { fill: none; stroke: var(--pw-pale); stroke-width: 1.4; stroke-linecap: round; opacity: 0.6; }
.pw-pl-soot { fill: #d9cfe2; opacity: 0.8; }
.pw-pl-boil { fill: #e2574d; stroke: var(--pw-deep); stroke-width: 0.5; }

/* for round three: hail, locusts, darkness */
.pw-pl-stormsky { fill: #18131f; }
.pw-pl-tilth { fill: color-mix(in srgb, var(--pw-ground) 62%, var(--pw-air)); }
.pw-pl-furrow { fill: none; stroke: var(--pw-rule); stroke-width: 0.9; opacity: 0.55; }
.pw-pl-cloudrim { fill: var(--ink); opacity: 0.6; }
.pw-pl-cloud { fill: #0c0811; }
.pw-pl-bolt { fill: none; stroke: #f6d47c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-pl-fire { fill: #f0a04e; }
.pw-pl-hail { fill: #f1ecf6; }
.pw-pl-hailfall { fill: none; stroke: #f1ecf6; stroke-width: 0.9; stroke-linecap: round; opacity: 0.45; }
.pw-pl-stalk { fill: none; stroke: var(--pw-pale); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.pw-pl-ear { fill: var(--pw-pale); opacity: 0.75; }
.pw-pl-leaf { opacity: 0.8; }
.pw-pl-dimsky { fill: #150f1b; }
.pw-pl-swarmdark { fill: #040205; opacity: 0.62; }
.pw-pl-wind { opacity: 0.4; }
.pw-pl-hopper { fill: var(--ink); opacity: 0.5; }
.pw-pl-locust { fill: var(--ink); stroke: var(--pw-deep); stroke-width: 0.6; paint-order: stroke; }
.pw-pl-locust .pw-leg { stroke-width: 1.1; }
.pw-pl-bough { stroke-width: 1.8; }
.pw-pl-blackland { fill: #040205; }
.pw-pl-darksky { fill: #050307; }
.pw-pl-darkland { fill: #0c0811; }
.pw-pl-darkline { fill: none; stroke: #2e2439; stroke-width: 1.6; }
.pw-nm.on-plDark { stroke: #0c0811; }
.pw-pl-fold { fill: none; stroke: #221a2c; stroke-width: 7; stroke-linecap: round; opacity: 0.9; }
.pw-pl-unseen { fill: var(--pw-pale); opacity: 0.17; }
.pw-pl-glow { fill: #f2c14e; opacity: 0.11; }
.pw-pl-littent { fill: #2b2013; stroke: #f2c14e; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pw-pl-light { fill: #f8dc8e; }
