/* The Bow, the Enemy, and the Song (js/shiggaion.js). The chapter is set in the pieces the other chapters use — the
   printer's rule over each card's head, the section roundels in a thick-and-thin rule (.tb-cover), the folds with their
   pointing hand (.tb-drop, .pr-full), the notes under a passage (.gl-btn, .gloss), the cards that open a page (.pg-card)
   and the version banner first made for Noah's page (.nh-tr) — and adds only what its three readings need:
     the frame of a passage (.sg-scr): its reference and version in capitals, a rule of the poem's ink down its left
       side, and the verses one to a line, each number in the margin — so that Scripture never runs into the page's
       own words, which carry a label saying what kind of statement they are (.sg-said: ◆ observation, ◇ interpretation,
       ⇄ arrangement; a caution in amber), never color alone;
     the tabs of the reading page (.sg-tabs, after Noah's old ones, which the pager hides), and the rows of Compare, two columns
       on a wide screen and one card above the other on a phone;
     the movements, the frame and the chiasms of the structure, and the stages of the braid.
   Psalm 7 is in the heaven ink, Habakkuk 3 in the genA ink, and Psalm 68, set beside them once, in the cov ink: each is
   also named wherever it stands.
   The overview's pictures of what the two poems share (js/shiggaion-world.js) are framed by the rules every chapter's
   pictures share (css/parallels.css): here are the two poems' inks for them, in the theme and in the night's palette of
   a drawing, and, at the foot of this file, the inks of the figures the pictures add (.pw-sg-…). */

#panel-shiggaion {
  --pa-ink: var(--heaven-ink); --pa-soft: var(--heaven-soft); --pa-edge: var(--heaven-edge);
  --pb-ink: var(--genA-ink);   --pb-soft: var(--genA-soft);   --pb-edge: var(--genA-edge);
  --pc-ink: var(--cov-ink);    --pc-soft: var(--cov-soft);    --pc-edge: var(--cov-edge);
  --sg-line: color-mix(in srgb, var(--muted) 50%, var(--rule));      /* a rule that holds 3:1 against the page */
  /* the pictures: two columns, Psalm 7 and Habakkuk 3, each in the ink it has on every page of the chapter */
  --pt-mid: 30rem; --pt-cols: 2;
  --pt-ring: conic-gradient(var(--heaven-edge) 0 50%, var(--genA-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(--genA-ink);   --g1-edge: var(--genA-edge);   --g1-soft: var(--genA-soft);   --pw-g1: #9bdcbb; --pw-g1-soft: #172d2c;
}
/* the two heads, each over its half of the frame */
#panel-shiggaion .pt-heads { max-width: var(--pt-mid); }
#panel-shiggaion .pa { --sg-ink: var(--pa-ink); --sg-soft: var(--pa-soft); --sg-edge: var(--pa-edge); }
#panel-shiggaion .pb { --sg-ink: var(--pb-ink); --sg-soft: var(--pb-soft); --sg-edge: var(--pb-edge); }
#panel-shiggaion .pc { --sg-ink: var(--pc-ink); --sg-soft: var(--pc-soft); --sg-edge: var(--pc-edge); }
#panel-shiggaion [lang="he"] { font-family: "Noto Serif Hebrew", "SBL Hebrew", "Ezra SIL", "Times New Roman", serif; font-size: 1.1em; unicode-bidi: isolate; }
#panel-shiggaion [hidden]:not([hidden="until-found"]) { display: none !important; }   /* (a folded note stays findable) */
#panel-shiggaion h4[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.sg-ink-pa { color: var(--pa-ink); }
.sg-ink-pb { color: var(--pb-ink); }

/* ---------------------------------------------------------------- the kinds of statement */
.sg-kind { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap; color: var(--rubric); }
.sg-kind-g { font-family: var(--sym); font-size: 0.78em; }
.sg-kind.k-caut { color: var(--warn); }
.sg-said { margin: 12px 0; padding: 2px 0 2px 13px; border-left: 2px solid var(--sg-line); text-wrap: pretty; }
.sg-said.k-int, .sg-said.k-syn { border-left-style: dashed; }
.sg-said.k-arr { border-left: 3px dotted var(--rubric); }
.sg-said.k-caut { padding: 8px 12px 8px 13px; border-left-color: var(--warn); background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }
.sg-said > b { font-weight: 600; }

/* ---------------------------------------------------------------- a passage, framed */
.sg-scr { margin: 14px 0 16px; padding: 10px 14px 12px 14px; border-left: 3px solid var(--sg-edge); background: color-mix(in srgb, var(--sg-soft) 60%, transparent); }
.sg-scr-cap { margin: 0 0 8px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.98rem; letter-spacing: 0.01em; line-height: 1.3; color: var(--sg-ink); }
.sg-scr-v { letter-spacing: 0.05em; color: var(--muted); }
.sg-q { margin: 0; padding: 0; font-size: 1.07rem; line-height: 1.6; }
.sg-vl { position: relative; margin: 0 0 0.4em; padding-left: 1.7em; text-wrap: pretty; }
.sg-vl:last-child { margin-bottom: 0; }
.sg-vn { position: absolute; left: 0; top: 0.5em; width: 1.4em; font-family: var(--text); font-size: 0.66em; line-height: 1; font-feature-settings: "lnum"; text-align: right; color: var(--sg-ink, var(--rubric)); }
.sg-ln { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.sg-it { font-style: italic; }                    /* the KJV's supplied words */
.sg-selah { font-family: var(--caps); font-weight: var(--caps-wt); letter-spacing: 0.01em; color: var(--muted); }
.sg-gap { margin: 0.2em 0 0.5em 1.7em; color: var(--muted); }
.sg-wait { margin: 0; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.sg-wait.is-err { font-style: normal; color: var(--warn); }
.sg-wait .link-btn { margin-left: 6px; }
.sg-status { max-width: 40rem; margin: 0 auto 14px; padding: 8px 12px; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn-soft) 55%, transparent); font-size: 0.95rem; color: var(--ink); }
.sg-status .link-btn { margin-left: 6px; }
.gloss:focus { outline: none; }
.gloss:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------------------------------------------------------------- the overview */
.sg-sub { margin: -8px 0 18px; text-align: center; font-family: var(--display); font-weight: 400; font-size: 1.12rem; font-style: normal; color: var(--muted); }
.sg-qbox { max-width: 44rem; margin: 26px auto 0; padding: 16px 0 6px; border-top: 2px solid var(--press); border-bottom: 1px solid var(--press); }
.sg-qbox-k { margin: 0 0 6px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1rem; letter-spacing: 0.01em; text-align: center; color: var(--rubric); }
.sg-qbox-q { margin: 0 auto 14px; max-width: 38rem; font-family: var(--display); font-weight: 400; font-size: 1.22rem; line-height: 1.4; text-align: center; text-wrap: balance; }
.sg-qbox-go { margin: 6px 0 10px; text-align: center; }
.sg-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; max-width: 62rem; margin: 0 auto; }
.sg-kinds-i { margin: 0; padding: 4px 0 4px 13px; border-left: 2px solid var(--sg-line); }
.sg-kinds-i.k-int { border-left-style: dashed; }
.sg-kinds-i.k-arr { border-left: 3px dotted var(--rubric); }
.sg-kinds dt { margin: 0 0 4px; }
.sg-kinds dd { margin: 0; font-size: 0.97rem; line-height: 1.5; text-wrap: pretty; }
.sg-kinds-note { max-width: 40rem; margin: 16px auto 0; font-size: 0.95rem; font-style: normal; text-align: center; color: var(--muted); text-wrap: balance; }
.sg-ways-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 62rem; margin: 0 auto; padding: 0; list-style: none; }
.sg-ways-l > li { display: flex; margin: 0; }
.sg-ways-l .pg-card { width: 100%; }

/* the pictures' threads: how sure the link is, as the question's page writes it, then the link's own sentence */
#panel-shiggaion .sg-thread .sg-level { margin: 0; }
#panel-shiggaion .sg-thread .sg-kind { font-size: 1em; }

/* ---------------------------------------------------------------- the reading page, and its tabs */
.sg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin: 18px 0 26px; padding-top: 10px; border-top: 1px solid var(--rule); }
.sg-tabs [role="tab"] { display: flex; flex-direction: column; align-items: center; min-height: 44px; padding: 6px 2px 5px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; font: inherit; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sg-tab-t { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1.08rem; letter-spacing: 0.01em; line-height: 1.25; }
.sg-tab-s { font-size: 0.95rem; font-style: normal; line-height: 1.2; }
.sg-tabs [role="tab"]:hover { color: var(--ink); }
.sg-tabs [role="tab"][aria-selected="true"] { color: var(--rubric); border-bottom-color: var(--rubric); }
.sg-tabs [role="tab"][aria-selected="true"] .sg-tab-t::before { content: "◆ "; content: "◆ " / ""; font-family: var(--sym); font-size: 0.7em; vertical-align: 0.12em; }
.sg-tabs [role="tab"]:focus-visible, .sg-mode:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-mode:focus:not(:focus-visible) { outline: none; }
.sg-lede { max-width: 44rem; margin: 0 auto 20px; font-size: 0.98rem; font-style: normal; line-height: 1.5; text-align: center; color: var(--muted); text-wrap: pretty; }

/* toggles: which poem, themes or structure */
.sg-pick, .sg-views { display: flex; justify-content: center; flex-wrap: wrap; margin: 0 auto 14px; }
.sg-pick button, .sg-views button { min-height: 44px; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.sg-pick button { font-size: 1.12rem; }
.sg-pick button:focus-visible, .sg-views button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; max-width: 46rem; margin: 0 auto 8px; font-size: 0.95rem; text-align: center; color: var(--muted); }
.sg-key-i { min-width: 0; }
.sg-key-head { font-family: var(--caps); font-weight: var(--caps-wt); letter-spacing: 0.01em; color: var(--rubric); }
/* this page's summary of a section, told from the poem's own words by a rule at its left (once by italics) */
.sg-key-gist { padding-left: 7px; border-left: 3px solid color-mix(in srgb, var(--rubric) 50%, transparent); color: var(--ink); }

/* ---------------------------------------------------------------- Read Separately */
.sg-poem { margin-top: 26px; }
.sg-poem .tb-cover-head .kicker { display: block; }
.sg-brief { margin: 0 0 6px; font-style: normal; text-align: center; color: var(--muted); text-wrap: balance; }
.sg-whole { margin: 0 0 4px; text-align: center; }
.sg-heading { margin: 22px 0 6px; padding: 14px 16px 6px; border: 1px solid var(--sg-line); }
.sg-heading-t { margin: 0 0 8px; font-weight: 400; font-size: 1rem; line-height: 1.35; }
.sg-heading-tag { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1.05rem; letter-spacing: 0.01em; color: var(--rubric); }
.sg-heading-where { font-style: normal; color: var(--muted); }
.sg-he { margin: 0 0 6px; font-size: 1.32rem; line-height: 1.75; }
.sg-gls { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.sg-gls-k { font-style: normal; }
.sg-gls-w { color: var(--ink); white-space: nowrap; }
.sg-head-none { margin: 4px 0 10px; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.sg-heading-word { margin: 6px 0 8px; font-size: 0.97rem; }
.sg-heading .gloss-b { margin-bottom: 10px; }
.sg-sec { margin: 34px 0 0; }
.sg-sec-t { margin: 0 0 2px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1.14rem; letter-spacing: 0.01em; line-height: 1.3; color: var(--sec-ink); text-wrap: balance; }
.sg-sec-m { margin-right: 0.35em; font-family: var(--text); font-size: 0.95em; color: var(--muted); }
.sg-gist { margin: 0 0 6px; padding-left: 12px; border-left: 3px solid color-mix(in srgb, var(--rubric) 50%, transparent); text-wrap: pretty; }
.sg-gist .gl-btn { font-style: normal; }
.sg-tags, .sg-row-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; font-size: 0.95rem; color: var(--muted); }
.sg-tags-k { font-family: var(--caps); font-weight: var(--caps-wt); letter-spacing: 0.01em; }
.sg-tag { display: inline-flex; align-items: center; min-height: 34px; padding: 3px 10px; border: 1px solid var(--sg-line); border-radius: 0; background: none; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sg-tag::after { content: " →"; content: " →" / ""; margin-left: 0.3em; color: var(--rubric); }
@media (hover: hover) { .sg-tag:hover { border-color: var(--rubric); color: var(--rubric); } }
.sg-tag:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* the notes this chapter adds: a reading, a limit, and where the words came from */
.n-int .gloss-k { font-style: normal; color: var(--ink); }
.n-int .gloss-k::before { content: "◇ "; content: "◇ " / ""; font-family: var(--sym); font-size: 0.8em; font-style: normal; }
.n-caut .gloss-k { color: var(--warn); }
.n-src { font-size: 0.92em; color: var(--muted); }
.n-src .gloss-k { color: var(--muted); }
.sg-gl { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95em; letter-spacing: 0.01em; }
.sg-tri { display: block; margin: 10px 0 2px; border-top: 1px dotted var(--sg-line); }
.sg-tri-h { display: block; padding: 6px 0 2px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--muted); }
.sg-tri-row { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 0 8px; padding: 6px 0; border-bottom: 1px dotted var(--sg-line); }
.sg-tri-v { font-family: var(--caps); font-weight: var(--caps-wt); letter-spacing: 0.01em; color: var(--rubric); }
.sg-tri-t .sg-vn { position: static; display: inline; margin-right: 0.2em; font-size: 0.7em; vertical-align: 0.4em; color: var(--muted); }
.sg-tri-wait { display: block; padding: 4px 0; font-style: normal; color: var(--muted); }

/* ---------------------------------------------------------------- Compare: by theme */
.sg-filter { max-width: 56rem; margin: 0 auto 6px; text-align: center; }
.sg-filter-k { margin: 0 0 6px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.98rem; letter-spacing: 0.01em; color: var(--rubric); }
.sg-filter-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sg-filter-b button { min-height: 40px; padding: 4px 11px; border: 1px solid var(--sg-line); border-radius: 0; background: none; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sg-filter-b button[aria-pressed="true"] { border-color: var(--rubric); color: var(--rubric); background: color-mix(in srgb, var(--rubric) 10%, transparent); }
.sg-filter-b button[aria-pressed="true"]::before { content: "◆ "; content: "◆ " / ""; font-family: var(--sym); font-size: 0.75em; }
@media (hover: hover) { .sg-filter-b button:hover { border-color: var(--rubric); } }
.sg-filter-b button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-filter-say { min-height: 1.4em; margin: 6px 0 14px; font-size: 0.95rem; font-style: normal; text-align: center; color: var(--muted); }
.sg-cmp-head, .sg-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.sg-cmp-head { max-width: 66rem; margin: 0 auto; padding-bottom: 6px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1.05rem; letter-spacing: 0.01em; }
.sg-cmp-head .pa { color: var(--pa-ink); }
.sg-cmp-head .pb { color: var(--pb-ink); }
.sg-rows { max-width: 66rem; margin: 0 auto; padding: 0; list-style: none; }
.sg-row { margin: 0; padding: 20px 0 30px; border-top: 1px solid var(--rule); }
.sg-row-t { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 1.42rem; line-height: 1.2; scroll-margin-top: 12px; }
.sg-mainly { margin: -4px 0 10px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--muted); }
.sg-mainly-g { font-family: var(--sym); color: var(--rubric); }
.sg-cell { min-width: 0; padding: 10px 14px 4px; border-top: 3px solid var(--sg-edge); background: color-mix(in srgb, var(--sg-soft) 55%, transparent); }
.sg-cell.is-none { border-top-style: dashed; background: none; }
.sg-cell-k { margin: 0 0 6px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1rem; letter-spacing: 0.01em; color: var(--sg-ink); }
.sg-cell-q { margin: 0 0 8px; font-size: 1.04rem; line-height: 1.5; text-wrap: pretty; }
.sg-none { margin: 0 0 10px; font-size: 0.98rem; line-height: 1.5; color: var(--muted); }
.sg-none-k { font-family: var(--caps); font-weight: var(--caps-wt); letter-spacing: 0.01em; color: var(--ink); }
.sg-cell-more { margin: 0 0 10px; font-size: 0.95rem; color: var(--muted); }
.sg-full { margin: 8px 0 6px; }
.sg-full .sg-scr { margin: 6px 0 4px; }
.sg-beside { margin: 14px 0 0; padding: 10px 14px 4px; border-top: 3px solid var(--pc-edge); border-left: 0; --sg-ink: var(--pc-ink); --sg-soft: var(--pc-soft); --sg-edge: var(--pc-edge); }
.sg-beside-k { margin: 0 0 6px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.98rem; letter-spacing: 0.01em; color: var(--muted); }
.sg-beside-k b { font-weight: 400; color: var(--pc-ink); }
.sg-row-said { max-width: 52rem; margin: 14px 0 0; }
.sg-src { margin: 8px 0 0; font-size: 0.95rem; color: var(--muted); }
.sg-src-k { font-family: var(--caps); font-weight: var(--caps-wt); letter-spacing: 0.01em; }
.sg-row-tag.is-on { color: var(--rubric); text-decoration: underline; text-underline-offset: 3px; }
.sg-row-tag.is-on::before { content: "◆ "; content: "◆ " / ""; font-family: var(--sym); font-size: 0.75em; }

/* ---------------------------------------------------------------- Compare: the structure */
.sg-part { max-width: 66rem; margin: 40px auto 0; }
.sg-h4 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 1.36rem; line-height: 1.2; text-align: center; }
.sg-h4::before { content: ""; display: block; width: 90px; height: 1px; margin: 0 auto 18px; background: var(--press); }
.sg-part-s { max-width: 44rem; margin: 0 auto 16px; font-size: 0.95rem; font-style: normal; text-align: center; color: var(--muted); text-wrap: pretty; }
.sg-part > .sg-said { max-width: 52rem; margin-left: auto; margin-right: auto; }
.sg-moves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.sg-moves-col { min-width: 0; }
.sg-col-k { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 3px solid var(--sg-edge); font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1.05rem; letter-spacing: 0.01em; color: var(--sg-ink); }
.sg-col-n { color: var(--muted); }
.sg-mv { margin: 0 0 12px; padding: 0; list-style: none; }
.sg-mv-i { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); column-gap: 0.6em; padding: 7px 0; border-bottom: 1px dotted var(--sg-line); }
.sg-mv-i.is-head .sg-mv-t { font-style: normal; color: var(--muted); }
.sg-mv-r { grid-row: span 2; font-feature-settings: "lnum"; white-space: nowrap; color: var(--sg-ink); }
.sg-mv-t { line-height: 1.35; }
.sg-mv-b { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.sg-bar { display: block; flex: none; width: calc(var(--n) / var(--of) * 9rem); height: 7px; background: var(--sg-edge); }
.sg-mv-n { font-size: 0.95rem; color: var(--muted); }
.sg-al { margin: 0; padding: 0; list-style: none; }
.sg-al-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 9px 0; border-bottom: 1px dotted var(--sg-line); }
.sg-al-t { font-family: var(--display); font-weight: 400; font-size: 1.08rem; line-height: 1.3; }
.sg-al-c { padding-left: 9px; border-left: 3px solid var(--sg-edge); }
.sg-al-c.is-none { border-left-style: dashed; color: var(--muted); }
.sg-al-p { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; color: var(--sg-ink); }
.sg-al-c.is-none .sg-al-p { color: var(--muted); }
.sg-al-r { font-feature-settings: "lnum"; white-space: nowrap; }
.sg-al-note { grid-column: 1 / -1; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.sg-frame { max-width: 40rem; margin: 0 auto 10px; }
.sg-fr-box { padding: 6px 0 6px 16px; border: 2px solid var(--sg-edge); border-right: 0; }
.sg-fr-end, .sg-fr-mid, .sg-fr-after { margin: 6px 0; line-height: 1.45; }
.sg-fr-mid { padding-left: 1.6em; font-style: normal; color: var(--muted); }
.sg-fr-after { padding-left: 18px; font-style: normal; color: var(--muted); }
.sg-fr-r { display: inline-block; min-width: 3.4em; font-feature-settings: "lnum"; white-space: nowrap; font-style: normal; color: var(--sg-ink); }
.sg-fr-t { font-style: normal; }
.sg-fr-end em { color: var(--muted); }
.sg-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 52rem; margin: 18px auto 0; }
.sg-terms > div { padding: 10px 14px; border: 1px solid var(--sg-line); }
.sg-terms dt { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1rem; letter-spacing: 0.01em; color: var(--rubric); }
.sg-terms dd { margin: 4px 0 0; font-size: 0.96rem; line-height: 1.5; }
.sg-chi-acc { max-width: 52rem; }
.sg-chi-tag { margin: 0 0 12px; font-size: 0.95rem; color: var(--muted); }
.sg-chi-l { margin: 0 0 16px; padding: 10px 14px; list-style: none; border-left: 3px solid var(--sg-edge); background: color-mix(in srgb, var(--sg-soft) 55%, transparent); }
.sg-chi-i { margin: 4px 0; padding-left: calc(var(--d) * 1.7em); line-height: 1.4; }
.sg-chi-i.is-out { margin-top: 10px; padding-top: 8px; border-top: 1px dotted var(--sg-line); font-style: normal; color: var(--muted); }
.sg-chi-m { display: inline-block; min-width: 1.8em; font-family: var(--display); font-weight: 400; font-size: 1.12rem; color: var(--sg-ink); }
.sg-chi-r { display: inline-block; min-width: 3em; font-feature-settings: "lnum"; white-space: nowrap; color: var(--muted); }
.sg-chi-for, .sg-chi-against { margin: 0 0 14px; padding-left: 1.2em; }
.sg-chi-for li, .sg-chi-against li { margin-bottom: 6px; text-wrap: pretty; }

/* ---------------------------------------------------------------- Braided Reading */
.sg-notice { max-width: 44rem; margin: 0 auto 18px; padding: 12px 16px; border: 1px solid var(--rubric); background: color-mix(in srgb, var(--rubric) 7%, transparent); }
.sg-notice p { margin: 0; line-height: 1.5; text-wrap: pretty; }
.sg-steps { max-width: 56rem; margin: 0 auto 10px; }
.sg-steps ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.sg-steps button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 10px 4px 5px; border: 1px solid var(--sg-line); border-radius: 0; background: none; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sg-steps-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1px solid var(--rubric); border-radius: 50%; font-family: var(--display); font-weight: 400; font-size: 0.95rem; line-height: 1; color: var(--rubric); }
@media (hover: hover) { .sg-steps button:hover { border-color: var(--rubric); color: var(--rubric); } }
.sg-steps button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-braid { max-width: 62rem; margin: 0 auto; padding: 0; list-style: none; }
.sg-stage { margin: 46px 0 0; }
.sg-stage-head { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 14px; align-items: center; margin-bottom: 10px; }
.sg-stage-n { grid-row: span 2; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: 3px double var(--rubric); border-radius: 50%; font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--rubric); }
.sg-stage-t { margin: 0; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1.2rem; letter-spacing: 0.04em; line-height: 1.25; text-transform: uppercase; scroll-margin-top: 12px; }
.sg-stage-line { margin: 2px 0 0; font-style: normal; color: var(--muted); text-wrap: pretty; }
.sg-parts { max-width: 40rem; }
.sg-parts.is-along { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 12px; align-items: start; max-width: none; }
.sg-join { margin: 4px 0; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.95rem; letter-spacing: 0.01em; text-align: center; color: var(--muted); }
.sg-join.is-along { align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); }
.sg-join span::before, .sg-join span::after { content: " — "; content: " — " / ""; }
.sg-stage-said { max-width: 46rem; }
.sg-synth { max-width: 36rem; margin: 50px auto 0; padding: 16px 22px 18px; border: 1px dashed var(--sg-line); }
.sg-synth-k { margin: 0 0 4px; font-size: 0.95rem; font-style: normal; color: var(--muted); }
.sg-synth .sg-h4 { text-align: left; }
.sg-synth .sg-h4::before { margin-left: 0; }
.sg-synth-l { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: syn; }
.sg-synth-l li { position: relative; margin: 0; padding: 4px 0 4px 2rem; font-family: var(--display); font-weight: 400; font-size: 1.16rem; line-height: 1.4; counter-increment: syn; }
.sg-synth-l li::before { content: counter(syn); position: absolute; left: 0; top: 0.55em; font-family: var(--text); font-size: 0.95rem; font-feature-settings: "lnum"; color: var(--muted); }
.sg-insight { max-width: 46rem; margin: 40px auto 0; }

/* ---------------------------------------------------------------- the question, and the sources */
.sg-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; max-width: 62rem; margin: 0 auto; padding: 0; list-style: none; }
.sg-link { margin: 0; padding: 12px 16px 4px; border: 1px solid var(--sg-line); border-top: 2px solid var(--press); }
.sg-link-t { margin: 0 0 2px; font-family: var(--display); font-weight: 400; font-size: 1.24rem; line-height: 1.25; }
.sg-level { margin: 0 0 6px; font-family: var(--caps); font-weight: var(--caps-wt); font-size: 0.98rem; letter-spacing: 0.01em; color: var(--muted); }
.sg-level-d { font-family: var(--sym); font-size: 0.8em; letter-spacing: 0.1em; }
.lv-strong .sg-level { color: var(--rubric); }
.lv-moderate .sg-level { color: var(--ink); }
.sg-beside-page { max-width: var(--measure); margin: 0 auto; --sg-ink: var(--pc-ink); --sg-soft: var(--pc-soft); --sg-edge: var(--pc-edge); }
.sg-question .pg-part > .sg-said { max-width: 46rem; margin-left: auto; margin-right: auto; }
.sg-not { max-width: 46rem; margin: 0 auto; padding-left: 1.2em; }
.sg-not li { margin-bottom: 8px; text-wrap: pretty; }
.sg-srcs { max-width: 46rem; margin: 0 auto; }
.sg-srcs > div { padding: 12px 0; border-bottom: 1px dotted var(--sg-line); }
.sg-srcs dt { font-family: var(--caps); font-weight: var(--caps-wt); font-size: 1.02rem; letter-spacing: 0.01em; color: var(--rubric); }
.sg-srcs dd { margin: 4px 0 0; line-height: 1.55; text-wrap: pretty; }

/* ---------------------------------------------------------------- a phone */
@media (max-width: 780px) {
  .sg-tabs { gap: 2px 14px; }
  .sg-tab-t { font-size: 0.98rem; }
  .sg-tab-s { font-size: 0.95rem; }
  .sg-kinds, .sg-ways-l, .sg-terms, .sg-links { grid-template-columns: minmax(0, 1fr); }
  .sg-cmp-head { display: none; }
  .sg-pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sg-row-t { font-size: 1.28rem; }
  .sg-moves { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sg-al-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sg-al-t { grid-column: 1 / -1; }
  .sg-tag { min-height: 40px; }
  .sg-q { font-size: 1.04rem; }
  .sg-scr { padding: 9px 11px 10px 11px; }
  .sg-said, .sg-gist, .sg-cell-q, .sg-none, .sg-q, .sg-synth-l li, .sg-srcs dd { hyphens: auto; hyphenate-limit-chars: 7 3 3; }
}
/* passages read in parallel stand beside each other down to a small tablet, then one above the other */
@media (max-width: 700px) {
  .sg-parts.is-along { display: block; }
  .sg-join.is-along { writing-mode: horizontal-tb; transform: none; }
}
@media (max-width: 370px) {
  .sg-tabs [role="tab"] { padding-left: 0; padding-right: 0; }
  .sg-tab-t { font-size: clamp(0.85rem, 4.4vw, 0.98rem); }
  .sg-key { flex-direction: column; gap: 2px; }
  .sg-stage-head { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .sg-stage-n { width: 2.6rem; height: 2.6rem; font-size: 1.25rem; }
  .sg-he { font-size: 1.18rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-tag, .sg-filter-b button, .sg-steps button { transition: none; }
}

/* printed, every reading stands open, one after another */
@media print {
  .sg-tabs, .sg-pick, .sg-views, .sg-filter, .sg-filter-say, .sg-steps, .sg-tags, .sg-whole { display: none !important; }
  #panel-shiggaion .sg-mode[hidden], #panel-shiggaion .sg-view[hidden], #panel-shiggaion .sg-poem[hidden], #panel-shiggaion .sg-row[hidden] { display: block !important; }
  .sg-chi::details-content, .sg-full::details-content { content-visibility: visible; }
  .sg-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sg-tri:empty, .sg-tri:has(.sg-tri-wait), .sg-status { display: none !important; }
}

/* ---------------------------------------------------------------- the pictures' own figures (js/shiggaion-world.js)
   Each station is drawn in its poem's ink (--ink, --soft: css/parallels.css) on the night's palette of a drawing, which
   it keeps in both themes; here are the inks its figures add, each set kept with the pictures it was first drawn for. */
/* for the scrolls: heading, music */
.pw-sg-sheet { fill: color-mix(in srgb, var(--ink) 12%, var(--pw-air)); stroke: var(--ink); stroke-width: 1.2; }
.pw-sg-writ { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; opacity: 0.7; }
.pw-sg-writ.far { stroke-width: 1.8; opacity: 0.32; }
/* a Hebrew word of the text, in the face the chapter sets its Hebrew in */
.pw-sg-he { font-family: "Noto Serif Hebrew", "SBL Hebrew", "Ezra SIL", "Times New Roman", serif; fill: color-mix(in srgb, var(--ink) 38%, #fffaf0); }
.pw-sg-song { stroke-width: 1.6; opacity: 0.8; }
.pw-sg-string { fill: none; stroke: color-mix(in srgb, var(--ink) 45%, #fffaf0); stroke-width: 0.9; stroke-linecap: round; }

/* for the weapons: bow, reversal */
.pw-sg-bow { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.pw-sg-grip { fill: none; stroke: color-mix(in srgb, var(--ink) 45%, #fffaf0); stroke-width: 4.6; stroke-linecap: butt; }
.pw-sg-shaft { stroke-width: 1.8; }
.pw-sg-flame { fill: #f08a4b; }
.pw-sg-ember { fill: #ffe2a0; }
.pw-sg-blade { fill: color-mix(in srgb, var(--ink) 45%, #fffaf0); }
.pw-sg-spark { fill: none; stroke: #ffe2a0; stroke-width: 1.4; stroke-linecap: round; }
.pw-sg-case { fill: var(--soft); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.pw-sg-mouth { fill: var(--pw-hole); stroke: var(--ink); stroke-width: 1.3; }
.pw-sg-fold { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; opacity: 0.6; }
.pw-sg-streak { fill: none; stroke: #fff1c4; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 9 4 3 4; opacity: 0.75; }
.pw-sg-glint { fill: #fff1c4; }
.pw-sg-pit { fill: var(--pw-hole); }
.pw-sg-pitside { fill: none; stroke: var(--pw-rule); stroke-width: 1.6; }
.pw-sg-heap { fill: color-mix(in srgb, var(--ink) 22%, var(--pw-ground)); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.pw-sg-clod { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: 0.7; }
/* what turns back on the one who sent it: its path, dashed, in the poem's ink; and the strokes of a blow where it lands */
.pw-sg-return { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 4.6 3.6; }
.pw-sg-blow { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

/* for the people and the beasts: movement, head */
.pw-sg-tail { stroke: var(--pw-pale); stroke-width: 2.2; }
.pw-sg-mane { fill: var(--pw-mute); }
.pw-sg-bough { stroke-width: 2.4; }
.pw-sg-rock { fill: color-mix(in srgb, var(--ink) 14%, var(--pw-ground)); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.pw-sg-crack { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; opacity: 0.45; }
.pw-sg-breach { fill: var(--pw-hole); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.pw-sg-stone { fill: color-mix(in srgb, var(--ink) 30%, var(--pw-ground)); stroke: var(--ink); stroke-width: 1.4; }
.pw-sg-bolt { fill: #fff1c4; stroke: var(--ink); stroke-width: 0.9; stroke-linejoin: round; }
