/* v1.0.75 — reading-end hierarchy and compact rhythm
   Promise: the emotional ending stays close. Kabir S2: gift first, next release second, stay-with-series third; navigation contains only navigation. */

/* Kabir shelf: latest season is structurally and visually first. */
.kabir-reading-room #season-two-episodes{display:flex;flex-direction:column}
.kabir-reading-room #season-two-shelf{order:1;margin-top:0}
.kabir-reading-room #season-one-shelf{order:2;margin-top:2rem}
.kabir-reading-room #season-two-shelf .shelf-status.live{font-weight:600;letter-spacing:.12em}

/* Reading endings: remove the large pauses that interrupt the emotional moment. */
.reader-shell .gift-box,.stills-reader .gift-box{margin-top:2rem!important;margin-bottom:0!important;padding-top:1.45rem!important;padding-bottom:1.45rem!important}
.reader-shell .series-cta,.stills-reader .series-cta{margin-top:.9rem!important;margin-bottom:0!important}
.reader-shell .next-shelf-card,.stills-reader .next-shelf-card,.csja-reader .next-shelf-card{margin-top:1.25rem!important;margin-bottom:0!important}
.reader-shell .reader-nav,.stills-reader .reader-nav{margin-top:1.6rem!important}

/* Kabir: gift and continuing relationship are two separate decisions. */
.reader-actions{margin-top:2rem!important;margin-bottom:1.4rem!important;padding-top:1.5rem!important;padding-bottom:1.5rem!important}
.reader-actions .actions.gift-first{margin:.9rem 0 .7rem!important}
.reader-actions .continue-copy{margin:.8rem auto .55rem!important}
.reader-actions .actions.follow-second{margin:.55rem 0 0!important}
.post-story-follow{max-width:760px;margin:.85rem auto 0;text-align:center}
.post-story-follow .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.75rem 1rem;border:1px solid #1f8f4e;border-radius:2px;background:#1f8f4e;color:#fff;text-decoration:none;font:600 .76rem Inter,Arial,sans-serif;letter-spacing:.075em;text-transform:uppercase}

/* CSJA: preserve its thoughtful travel note, but keep the actions close together. */
.csja-reader .story-ending{padding-top:1.6rem!important}
.csja-reader .story-ending .csja-story-travel-v66{margin-bottom:1rem!important}
.csja-reader .story-ending .gift-block{margin:.7rem 0!important}
.csja-reader .story-nav{margin-top:1.5rem!important}

@media(max-width:620px){
  .post-story-follow .btn{width:100%;box-sizing:border-box}
  .reader-actions{padding-left:.9rem!important;padding-right:.9rem!important}
}


/* Kabir Season 2 — one continuous ending, no duplicate release information.
   Story ends -> gift -> next release -> stay with Kabir -> simple navigation. */
.kabir-s2-reader .story{margin-bottom:0!important}
.kabir-s2-reader .gift-box{
  max-width:46rem;
  margin:.85rem auto 0!important;
  padding:1.1rem 0 1.05rem!important;
  border-top:1px solid var(--line)!important;
  border-bottom:0!important;
}
.kabir-s2-reader .gift-box h2{margin:0 0 .32rem!important}
.kabir-s2-reader .gift-box p{margin:.2rem auto .72rem!important;line-height:1.52!important}
.kabir-s2-reader .next-shelf-card{
  max-width:46rem;
  margin:.65rem auto 0!important;
  padding:.95rem 0 1rem!important;
  border-top:1px solid var(--line)!important;
  border-bottom:0!important;
}
.kabir-s2-reader .next-shelf-card .nsc-label{margin-bottom:.32rem!important}
.kabir-s2-reader .next-shelf-card .nsc-title{margin-bottom:.12rem!important}
.kabir-s2-reader .next-shelf-card .nsc-sub{margin-bottom:.38rem!important}
.kabir-s2-reader .next-shelf-card .nsc-date{margin:.18rem 0 0!important}
.kabir-s2-reader .next-shelf-card .nsc-actions{margin-top:.65rem!important}
.kabir-s2-reader .post-story-follow{
  max-width:46rem;
  margin:.65rem auto 0!important;
  padding:.9rem 0 0!important;
  border-top:1px solid var(--line);
}
.kabir-s2-reader .reader-nav{
  max-width:46rem;
  margin:.8rem auto 0!important;
  padding:.9rem 0 0!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  border-top:1px solid var(--line)!important;
}
.kabir-s2-reader .reader-nav .home{justify-self:end;text-align:right!important}
.kabir-s2-reader .reader-nav .next{display:none!important}
.kabir-s2-reader .reader-nav > .disabled:only-child{display:none!important}

@media(max-width:720px){
  .kabir-s2-reader .gift-box{margin-top:.65rem!important;padding:.9rem .15rem!important}
  .kabir-s2-reader .next-shelf-card{margin-top:.5rem!important;padding:.85rem .15rem!important}
  .kabir-s2-reader .post-story-follow{margin-top:.5rem!important;padding:.8rem .15rem 0!important}
  .kabir-s2-reader .reader-nav{
    margin-top:.65rem!important;
    padding:.8rem .15rem 0!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:.7rem!important;
  }
  .kabir-s2-reader .reader-nav .home{grid-column:auto!important;grid-row:auto!important;justify-self:end!important}
  .kabir-s2-reader .reader-nav > :first-child{grid-column:auto!important;grid-row:auto!important}
}


/* v76 — Kabir latest-first invariant. The latest live shelf is physically first in HTML,
   and these rules preserve that order across desktop and mobile. */
.kabir-reading-room #season-two-episodes{display:flex!important;flex-direction:column!important;}
.kabir-reading-room #season-two-shelf{order:-100!important;margin-top:0!important;}
.kabir-reading-room #season-one-shelf{order:100!important;margin-top:2rem!important;}
