/* Finite full-article continuation: five stories total, footer remains reachable. */
.dvp-scroll-divider{max-width:760px;margin:64px auto 20px;border-top:2px solid var(--line,#dce1e8)}
#dvp-scroll-stories .dvp-scroll-story .intro-header .post-heading{padding-top:32px}
.dvp-scroll-story .dvp-related{padding-bottom:18px}
.dvp-scroll-marker{height:1px;pointer-events:none}
@media(max-width:767px){.dvp-scroll-divider{margin:42px 20px 12px}}

/* Virtualized older stories: reserve their scroll height after unloading DOM. */
.dvp-scroll-placeholder{display:block;min-height:1px;contain:layout style;pointer-events:none}
.dvp-scroll-story{overflow-anchor:auto}


/* Compact floating article navigator (five-story reading chain). */
.dvp-story-nav{position:fixed;left:max(12px,calc((100vw - 1080px)/2 - 76px));top:50%;transform:translateY(-50%);z-index:80;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 5px;border:1px solid var(--line,#ddd);border-radius:12px;background:var(--surface,#fff);background:#fff;box-shadow:0 3px 18px rgba(0,0,0,.09);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility .18s ease}
.dvp-story-nav.is-visible{opacity:1;visibility:visible;pointer-events:auto}
.dvp-story-nav-button{appearance:none;border:0;background:transparent;color:var(--ink,#263238);width:38px;height:38px;display:grid;place-items:center;border-radius:8px;font:600 23px/1 system-ui,sans-serif;cursor:pointer}
.dvp-story-nav-button:hover{background:#eef1f2}
.dvp-story-nav-button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.dvp-story-nav-button[hidden]{display:none}
.dvp-story-nav-button:disabled{opacity:.35;cursor:default}
.dvp-story-nav-count{font:600 12px/1.5 system-ui,sans-serif;color:var(--ink,#263238);padding:5px 0;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:1100px){.dvp-story-nav{left:8px}}
@media(max-width:767px){.dvp-story-nav{top:auto;bottom:18px;left:10px;transform:none;padding:5px 3px;gap:0;border-radius:10px}.dvp-story-nav-button{width:34px;height:34px;font-size:20px}.dvp-story-nav-count{font-size:11px;padding:3px 0}}
@media(prefers-reduced-motion:reduce){.dvp-story-nav{transition:none}}


/* Subtle entrance for automatically loaded articles; no movement of layout. */
.dvp-scroll-story.dvp-story-arriving{opacity:0;transform:translateY(18px);transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.2,1)}
.dvp-scroll-story.dvp-story-arriving.dvp-story-arrived{opacity:1;transform:translateY(0)}
.dvp-scroll-divider.dvp-divider-arriving{opacity:0;transition:opacity .55s ease}
.dvp-scroll-divider.dvp-divider-arriving.dvp-divider-arrived{opacity:1}
@media(prefers-reduced-motion:reduce){
 .dvp-scroll-story.dvp-story-arriving,.dvp-scroll-divider.dvp-divider-arriving{opacity:1;transform:none;transition:none}
}


/* Flash the boundary at the moment the next story reaches the viewport.
   Prefetched stories stay normal until the reader scrolls to them. */
.dvp-scroll-divider.dvp-divider-flash{
  position:relative;
  border-top-color:#009688;
  animation:dvp-boundary-pulse .95s ease-out both;
}
.dvp-scroll-divider.dvp-divider-flash::after{
  content:"";
  position:absolute;
  left:-8px;right:-8px;top:-19px;height:38px;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 0%,rgba(0,150,136,.23) 50%,transparent 100%);
  animation:dvp-boundary-glow .95s ease-out both;
}
.dvp-scroll-story.dvp-story-flash .intro-header{
  animation:dvp-story-highlight .95s ease-out both;
}
@keyframes dvp-boundary-pulse{
  0%{border-top-color:var(--line,#dce1e8);box-shadow:none}
  22%{border-top-color:#009688;box-shadow:0 0 18px rgba(0,150,136,.38)}
  100%{border-top-color:var(--line,#dce1e8);box-shadow:none}
}
@keyframes dvp-boundary-glow{
  0%{opacity:0;transform:scaleX(.45)}
  24%{opacity:1;transform:scaleX(1)}
  100%{opacity:0;transform:scaleX(1)}
}
@keyframes dvp-story-highlight{
  0%{filter:brightness(1)}
  26%{filter:brightness(1.09)}
  100%{filter:brightness(1)}
}
@media(prefers-reduced-motion:reduce){
  .dvp-scroll-divider.dvp-divider-flash,
  .dvp-scroll-divider.dvp-divider-flash::after,
  .dvp-scroll-story.dvp-story-flash .intro-header{animation:none}
}


@media(max-width:767px){body.admin-bar .dvp-story-nav{bottom:64px}}
