/* =========================================================
   Librarian's Pick
   - white content area fills the blue column
   - book cover uses the same 430px visual height as Notice Board
   - image + text stay vertically aligned
   ========================================================= */

@media (min-width:901px){

  #curated .pick-column{
    display:flex !important;
    flex-direction:column !important;
  }

  #curated .pick-column .column-head{
    flex:0 0 auto;
  }

  #curated .pick-column .single-card-carousel{
    flex:1 1 auto;
    display:flex !important;
    align-items:stretch !important;
    min-height:430px !important;
  }

  #curated .pick-column .side-carousel-viewport{
    width:100% !important;
    height:430px !important;
    min-height:430px !important;
    border-radius:16px !important;
    background:#fff !important;
  }

  #curated .pick-column .side-carousel-track{
    height:100% !important;
    align-items:stretch !important;
  }

  #curated .librarian-pick-slide{
    height:430px !important;
    min-height:430px !important;
    width:100% !important;
    min-width:100% !important;

    display:grid !important;
    grid-template-columns:minmax(255px,285px) minmax(0,1fr) !important;
    gap:30px !important;
    align-items:stretch !important;

    padding:22px 28px !important;
    box-sizing:border-box !important;
    background:#fff !important;
    border-radius:16px !important;
  }

  /* Image area uses the full height of the white reading panel */
  #curated .pick-book-cover-wrap{
    width:100% !important;
    height:100% !important;
    min-height:386px !important;
    max-height:none !important;
    margin:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    background:#f7f7f7 !important;
    border-radius:10px !important;
    overflow:hidden !important;
    box-shadow:0 8px 22px rgba(15,30,74,.12) !important;
  }

  #curated .pick-book-cover{
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    max-width:none !important;
    max-height:none !important;

    display:block !important;
    object-fit:contain !important;
    object-position:center !important;
    background:#fff !important;
  }

  /* Text occupies and centers within full panel height */
  #curated .pick-book-copy{
    height:100% !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:flex-start !important;
    padding:12px 4px !important;
    box-sizing:border-box !important;
  }

  #curated .pick-book-copy h3{
    font-size:25px !important;
    line-height:1.2 !important;
  }

  #curated .pick-book-copy p{
    margin:18px 0 22px !important;
    line-height:1.72 !important;
  }

  /* Keep dots inside the blue card without reducing white panel height */
  #curated .pick-column .side-dots{
    flex:0 0 auto;
    margin-top:14px !important;
  }
}

/* Tablet */
@media (max-width:900px) and (min-width:601px){
  #curated .pick-column .side-carousel-viewport,
  #curated .librarian-pick-slide{
    height:400px !important;
    min-height:400px !important;
  }

  #curated .librarian-pick-slide{
    grid-template-columns:220px minmax(0,1fr) !important;
    gap:22px !important;
    padding:20px !important;
    align-items:stretch !important;
  }

  #curated .pick-book-cover-wrap{
    height:100% !important;
    min-height:360px !important;
  }

  #curated .pick-book-cover{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }

  #curated .pick-book-copy{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
  }
}

/* Mobile: preserve readable stacked layout */
@media (max-width:600px){
  #curated .pick-column .side-carousel-viewport{
    height:auto !important;
    min-height:0 !important;
  }

  #curated .librarian-pick-slide{
    height:auto !important;
    min-height:0 !important;
    grid-template-columns:1fr !important;
    padding:20px !important;
  }

  #curated .pick-book-cover-wrap{
    width:min(260px,78vw) !important;
    height:360px !important;
    min-height:360px !important;
    margin:0 auto !important;
  }

  #curated .pick-book-cover{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }
}
