/* Snug: endless scrolling for lists of posts (Settings → Appearance), and the footer kept in view that may go with it.
   Loaded only on lists of posts of a blog that has endless scrolling on. The list's pager stays in the page: this
   file's script (endless.js) hides it once it has taken over, so without scripts the list has its pages. */

/* the foot of the list: Load more (a real button, for the keyboard and for when scrolling alone does not load),
   which says what is happening while it works, and the line that ends the list */
.endless-on > .pagination{display:none}
.endless{display:grid;justify-items:center;gap:10px;margin-top:40px;clear:both;text-align:center;font-size:.92rem;color:var(--ink-2)}
.endless-btn{background:transparent;color:var(--ink);border-color:var(--rule)}
.endless-btn:hover{border-color:var(--ink)}
.endless-btn[aria-busy="true"]{cursor:progress;transform:none}
.endless-spin{flex:none;width:1em;height:1em;border:2px solid var(--rule);border-top-color:var(--ink);border-radius:50%;animation:endless-spin .8s linear infinite}
.endless-spin[hidden]{display:none}
@keyframes endless-spin{to{transform:rotate(360deg)}}
.endless-end{margin:0;display:flex;align-items:center;gap:14px;width:100%;color:var(--ink-2);font-size:.86rem}
.endless-end::before,.endless-end::after{content:"";flex:1;height:1px;background:var(--rule)}
.endless-end:focus{outline:0}
.endless-newer{display:flex;margin:0 0 24px;font-size:.92rem}
.endless-newer a{font-weight:600;text-decoration:none}
/* waterfall: each page added is balanced on its own, so the posts already on screen stay where they are */
.endless-break{height:0;margin:0;padding:0;border:0}

/* ---------- the footer kept in view: one slim line at the foot of the screen ---------- */
.frozen-foot{position:fixed;z-index:23;left:0;right:0;bottom:0;padding-bottom:env(safe-area-inset-bottom,0px);border-top:1px solid var(--rule);background:color-mix(in srgb,var(--paper) 90%,transparent);-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);color:var(--ink-2);font-size:.8rem;line-height:1.3;transition:transform .3s var(--ease,ease),visibility 0s}
.frozen-foot[hidden]{display:none}
.frozen-foot.is-away{transform:translateY(100%);visibility:hidden;transition:transform .3s var(--ease,ease),visibility 0s .3s}
/* one line: the logo, the words, the badge. The words are in the middle when they fit; when they do not they go
   round as a ticker between the other two, which stay put (assets/site/roll.js, data-roll="ticker"). With "reduce
   motion", and without scripts, they end in an ellipsis. */
.frozen-row{display:flex;align-items:center;justify-content:center;gap:18px;padding:9px max(16px,env(safe-area-inset-right,0px)) 9px max(16px,env(safe-area-inset-left,0px));white-space:nowrap}
.frozen-row > *{flex:none;margin:0}
.frozen-row > .ff-run{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;--roll-gap:3.2em}
.ff-run .ff-line + .ff-line{margin-inline-start:18px}
.frozen-row a{color:var(--ink-2);text-decoration:none}
.frozen-row a:hover{color:var(--ink);text-decoration:underline}
.frozen-row .ff-dot{opacity:.6}
.ff-logo{display:flex;align-items:center}
.ff-logo img{display:block;height:20px;width:auto;max-width:9rem}
.frozen-row .powered a{gap:8px;padding:calc(4px - var(--lg-band)) calc(14px - var(--lg-band));color:var(--ink)}
.frozen-row .powered a:hover{text-decoration:none}
.frozen-row .powered .pb-tile{width:20px;height:20px;border-radius:6px}
.frozen-row .powered .pb-tile svg{width:12px}
.frozen-row .powered .pb-words{display:flex;align-items:baseline;gap:0}
.frozen-row .powered small{font-size:8px}
.frozen-row .powered b{font-size:12px;margin-left:.45em}
/* room for it under the page, and the round buttons stand above it */
body.has-frozen{padding-bottom:var(--frozen-h,2.6rem)}
body.has-frozen .to-top{bottom:calc(var(--frozen-h,2.6rem) + 14px)}
body.has-frozen .lay-turn{bottom:calc(var(--frozen-h,2.6rem) + 10px)}
@media (max-width:640px){.frozen-foot{font-size:.76rem}.frozen-row{gap:14px;padding-top:8px;padding-bottom:8px}.ff-run .ff-line + .ff-line{margin-inline-start:14px}}

@media (prefers-reduced-motion:reduce){
  .endless-spin{animation:none;border-top-color:var(--rule);border-style:dotted}
  .frozen-foot,.frozen-foot.is-away{transition:none}
}
@media print{.frozen-foot,.endless{display:none}}
