/* THE TALES STRAND of the shelves (A2, 2026-11; boards Shelves SH-3/4, Rooms RMS-5/6):
   templates/comics/shelf.html, on the frame's static/css/a2/shelves.css. A tale needs no steps,
   so this strand has no own pearl and no sorting thread: from 700px its rail starts where the
   board starts it (the first pearl's centre 112px into the content, the line under the rail at
   the page's text edge, the thread nearer the name), and its beads run to both edges of the
   window, as on RMS-5. The frame's rail script reads --ox (its xf is --ox + 268px, or + 240px
   from 700 to 1100px), so --ox is set to put xf at 112px; --xf (the place before the script
   runs) is set with it. Below 700px the frame's one column stands as it is.
   Flat: no nesting (tests/test_stylesheets_are_flat.py). */

@media (min-width:700px) and (orientation:landscape),(min-width:1200px){
  .sh:has(> [data-sh-strand="tales"]){margin-left:calc(-1 * var(--sh-bleed));padding-left:var(--sh-bleed)}
  [data-sh-strand="tales"] .sh-body{--ox:-156px;--xf:112px;--ry:160px;height:calc(var(--ry) + 250px)}
  [data-sh-strand="tales"] .sh-body > .sh-th{left:calc(-1 * var(--sh-bleed))}
  [data-sh-strand="tales"] .sh-dt{top:calc(var(--ry) + 176px)}
}
@media (min-width:700px) and (max-width:1099px) and (orientation:landscape){
  [data-sh-strand="tales"] .sh-body{--ox:-128px}
}

/* (the opening roll to the chosen tale is the frame's own, `shelf.roll_to_sel`, unanimated by its .sh-still) */

/* below 700px: no own pearl above the rail, so it keeps a little air under the name. (A locked
   tale's line wrapping above its "Sign up free" is the frame's own rule now, shelves.css Round 2,
   and the taller dock it makes is measured by the shell's one dock script, static/js/a2/dock.js.) */
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  [data-sh-strand="tales"] .sh-rail{margin-top:22px}
}

/* nothing published yet (never in production): the thread and the old shelf's own sentence */
[data-sh-strand="tales"] .sh-body.tsh-none{height:calc(var(--ry) + 120px)}
.tsh-none .tsh-none-l{position:absolute;left:24px;right:24px;top:calc(var(--ry) + 36px);margin:0}
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  [data-sh-strand="tales"] .sh-body.tsh-none{height:auto;padding:22px 0 8px}
  .tsh-none .tsh-none-l{position:static}
}
