/* MEDIPHARM Super App v1.3.4 — Book Title Readability.
   This is a typography-only patch: no cover, taxonomy, access, or sorting changes.
   The v1.3.1 tree previously forced titles to 14px at every width. */

/* Homepage book collections: viewed most, trending, recent, including dynamically
   loaded specialty cards. The selector outranks the historical home CSS cascade. */
body #syh-app.syh-material-v134 .syh-library-section .syh-home-book-results
  .syh-library-card .syh-library-copy h3 {
  font-family:inherit!important;
  font-size:clamp(16px,1.08vw,17.5px)!important;
  font-weight:780!important;
  line-height:1.4!important;
  letter-spacing:-.012em!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  hyphens:none!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 0 8px!important;
  -webkit-line-clamp:3!important;
}

/* Allow the larger headings sufficient space, without stretching media images
   or forcing hard-coded heights. CTA stays pinned by the existing flex rules. */
body #syh-app.syh-material-v134 .syh-library-section .syh-home-book-results
  .syh-library-card .syh-library-copy {
  height:auto!important;
  max-height:none!important;
  min-width:0!important;
}

/* Canonical /thu-vien-sach and library taxonomy archive listing. */
body .syh-book-app .syh-library-book-grid .syh-archive-card-copy h2,
body .syh-book-app .syh-library-guest-book-grid .syh-archive-card-copy h2 {
  font-size:clamp(16px,1.07vw,17px)!important;
  line-height:1.42!important;
  font-weight:780!important;
  letter-spacing:-.01em!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  min-height:0!important;
}

@media(max-width:780px){
  body #syh-app.syh-material-v134 .syh-library-section .syh-home-book-results
    .syh-library-card .syh-library-copy h3 {
    font-size:16px!important;
    line-height:1.43!important;
    -webkit-line-clamp:4!important;
  }
  body .syh-book-app .syh-library-book-grid .syh-archive-card-copy h2,
  body .syh-book-app .syh-library-guest-book-grid .syh-archive-card-copy h2 {
    font-size:16px!important;
    line-height:1.43!important;
  }
}
@media(max-width:360px){
  body #syh-app.syh-material-v134 .syh-library-section .syh-home-book-results
    .syh-library-card .syh-library-copy h3 {font-size:15.5px!important;}
}
