/* ======================================================================
   OKU v30.16.286 · READER LAST-READ CARD / LONG SURAH NAME FIX
   Layout-only override. No reader, audio, sync or auto-scroll logic touched.
   ====================================================================== */

@media (min-width: 960px){
  /* Give the "Kaldığın Sûre" card more of the intentionally empty left area. */
  #screen-reader .reader-page-heading,
  .reader-screen .reader-page-heading,
  .reader-page-heading{
    grid-template-columns:minmax(190px, .48fr) minmax(720px, 1.52fr)!important;
    column-gap:clamp(22px, 3vw, 54px)!important;
    align-items:stretch!important;
  }

  .reader-page-last-read{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0, 1fr) clamp(190px, 16vw, 244px)!important;
    align-items:center!important;
    gap:clamp(22px, 2.4vw, 44px)!important;
    padding-left:clamp(38px, 3.8vw, 72px)!important;
    padding-right:clamp(22px, 2.2vw, 42px)!important;
  }

  .reader-page-last-read .last-read-card__copy{
    min-width:0!important;
    width:100%!important;
    overflow:visible!important;
  }

  .reader-page-last-read .aside-label{
    display:block!important;
    white-space:nowrap!important;
  }

  #readerPageLastReadTitle{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:8px 0 0!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:clamp(48px, 4.45vw, 82px)!important;
    line-height:.92!important;
    letter-spacing:-.045em!important;
  }

  .reader-page-last-read .last-read-card__action{
    width:100%!important;
    min-width:0!important;
    justify-self:end!important;
    display:grid!important;
    grid-template-rows:auto auto!important;
    justify-items:stretch!important;
    align-content:center!important;
    gap:clamp(14px, 1.4vw, 24px)!important;
  }

  #readerPageLastReadRef{
    display:block!important;
    width:100%!important;
    text-align:center!important;
    white-space:nowrap!important;
  }

  #readerPageLastReadButton{
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}

/* Medium desktop/laptop: still keep a generous card, but prevent the page title
   column from collapsing to an unusable size. */
@media (min-width: 960px) and (max-width: 1180px){
  #screen-reader .reader-page-heading,
  .reader-screen .reader-page-heading,
  .reader-page-heading{
    grid-template-columns:minmax(150px, .38fr) minmax(650px, 1.62fr)!important;
    column-gap:20px!important;
  }

  .reader-page-last-read{
    grid-template-columns:minmax(0, 1fr) 190px!important;
    gap:20px!important;
    padding-left:34px!important;
    padding-right:24px!important;
  }

  #readerPageLastReadTitle{
    font-size:clamp(44px, 5vw, 68px)!important;
  }
}
