/* v1.1.4 — lightweight bridge only when SachYHoc Super App truly owns the document shell. */
body.tvm-site .syh-reco-visual-card img[hidden]{display:none!important}
body.tvm-site .syh-reco-visual-card.is-illustrated img{transform:none!important}
body.tvm-site .syh-reco-ipa,body.tvm-site .syh-reco-meaning{overflow:visible!important}


/* v1.2.6 — Preserve semantic hidden states inside Super App cards. */
body.tvm-site .syh-app [data-syh-library-item][hidden]{display:none!important}
/* v1.2.7 — Compact MEDIPHARM journal fallback */
.tvm-spotlines-home{margin:18px 0 6px}
.tvm-spotlines-home .mmspot-home-module{max-width:100%}
@media(max-width:640px){.tvm-spotlines-home{margin:12px 0 4px}}

/* v1.2.14 — bridge inherits canonical typography from Super App. */
:root{--med-ui-font-sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans","Helvetica Neue",Arial,sans-serif;}

/* v1.2.19 — compact Inspiration bridge for SachYHoc Super App v0.71.4+. */
body.tvm-site #syh-app .syh-home-inspiration-feed .mpi-grid{grid-auto-rows:auto!important;align-items:start!important}
body.tvm-site #syh-app .syh-home-inspiration-feed .mpi-grid>.mpi-card{height:auto!important;min-height:0!important;max-height:none!important;align-self:start!important;overflow:hidden!important}
body.tvm-site #syh-app .syh-home-inspiration-feed .mpi-card-tools .mpi-action-icon:not([data-mpi-refresh]){display:none!important}
body.tvm-site #syh-app .syh-home-inspiration-feed .mpi-card .mpi-en-row,
body.tvm-site #syh-app .syh-home-inspiration-feed .mpi-card .mpi-en,
body.tvm-site #syh-app .syh-home-inspiration-feed .mpi-card .mpi-source{display:none!important}



/* Homepage editorial compatibility bridge */
body .syh-app .syh-home-inspiration--hero-cluster,
body .yhls-app .yhls-inspiration-hero-cluster{position:relative;z-index:1}
body .syh-app .syh-tools-section .syh-explorer--compact-home,
body .yhls-app .syh-tools-section .syh-explorer--compact-home{overflow:clip}
body .syh-app .syh-home-inspiration--hero-cluster .mpi-card h3,
body .yhls-app .yhls-inspiration-hero-cluster .mpi-card h3{word-break:normal;overflow-wrap:anywhere}

/* vNext homepage hierarchy bridge */
body .syh-suite-promo,body .syh-clinical-qa-promo,body .yhls-clinical-qa-promo{position:relative;z-index:1}
body .syh-home-inspiration--library-stage .mpi-grid>.mpi-card,body .yhls-inspiration-library-stage .mpi-grid>.mpi-card{overflow:hidden}

/* vNext bridge: keep homepage inspiration cards in a stable single desktop row */
body .syh-home-inspiration--library-stage .mpi-grid>.mpi-card,body .yhls-inspiration-library-stage .mpi-grid>.mpi-card{grid-column:auto!important;grid-row:auto!important}


/* v1.2.23 — final homepage Inspiration ownership handoff.
 * Theme loads after Super App, so explicitly stop legacy bridge rules from
 * defeating the canonical 3-card desktop grid owned by the Super App. */
@media (min-width:981px){
  body.tvm-site #syh-app .syh-home-inspiration--library-stage .mpi-grid{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-rows:1fr!important;align-items:stretch!important;gap:12px!important;
  }
  body.tvm-site #syh-app .syh-home-inspiration--library-stage .mpi-grid>.mpi-card{
    grid-column:auto!important;grid-row:auto!important;grid-area:auto!important;
    height:100%!important;min-height:0!important;max-height:none!important;
    align-self:stretch!important;width:100%!important;min-width:0!important;max-width:none!important;
  }
}


/* v1.2.24 — Super App v0.71.10 homepage responsive compatibility. */
@media (max-width:1080px){
  body .syh-app .syh-related-books{max-width:none!important}
}
body .syh-app .mpi-card .mpi-card-deep-link{order:20!important}
body .syh-app .mpi-card .mpi-related-terms{order:30!important}


/* v1.2.29 — Spotlines fallback equal-size responsive carousel cards. */
.tvm-spotlines-home .mmspot-home-grid{display:flex!important;align-items:stretch!important;gap:14px!important;grid-template-columns:none!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 2px 10px!important;scroll-snap-type:x mandatory!important;scrollbar-width:thin}
.tvm-spotlines-home .mmspot-home-card,.tvm-spotlines-home .mmspot-home-card:first-child{flex:0 0 clamp(268px,28vw,322px)!important;width:clamp(268px,28vw,322px)!important;min-height:262px!important;height:auto!important;display:flex!important;flex-direction:column!important;grid-column:auto!important;grid-row:auto!important;padding:18px!important;border-radius:18px!important;scroll-snap-align:start!important}
.tvm-spotlines-home .mmspot-home-card h3,.tvm-spotlines-home .mmspot-home-card:first-child h3{display:-webkit-box!important;overflow:hidden!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;font-size:18px!important;line-height:1.38!important}
.tvm-spotlines-home .mmspot-home-card p,.tvm-spotlines-home .mmspot-home-card:first-child p{display:-webkit-box!important;overflow:hidden!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;font-size:14px!important;line-height:1.6!important}
.tvm-spotlines-home .mmspot-home-source{margin-top:auto!important;padding-top:12px!important}
@media(max-width:1180px){.tvm-spotlines-home .mmspot-home-card,.tvm-spotlines-home .mmspot-home-card:first-child{flex-basis:calc(50% - 7px)!important;width:calc(50% - 7px)!important;min-width:calc(50% - 7px)!important}}
@media(max-width:720px){.tvm-spotlines-home .mmspot-home-card,.tvm-spotlines-home .mmspot-home-card:first-child{flex-basis:min(84vw,308px)!important;width:min(84vw,308px)!important;min-width:min(84vw,308px)!important;min-height:236px!important;padding:16px!important}}


/* MEDIPHARM v15 Spotlines homepage carousel — real Spotlines 1.7.x DOM.
 * v0.71.21 / v1.09.37 presentation bridge. */
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"]{
  padding:clamp(14px,2vw,22px)!important;
  overflow:hidden!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-head{
  display:flex!important;
  position:relative!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px 16px!important;
  min-height:0!important;
  margin:0 0 14px!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-head>div{
  display:block!important;
  flex:1 1 360px!important;
  width:auto!important;
  min-width:0!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-head>div>span{
  display:block!important;
  max-width:none!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-head>a{
  position:static!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid rgba(10,101,165,.20)!important;
  border-radius:13px!important;
  background:#edf7ff!important;
  color:#075f9b!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-carousel{
  display:flex!important;
  align-items:stretch!important;
  gap:14px!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:2px 2px 8px!important;
  scroll-snap-type:x mandatory!important;
  scroll-padding-inline:2px!important;
  overscroll-behavior-x:contain!important;
  scrollbar-width:thin!important;
  -webkit-overflow-scrolling:touch!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card{
  flex:0 0 calc((100% - 28px)/3)!important;
  width:calc((100% - 28px)/3)!important;
  min-width:260px!important;
  height:430px!important;
  min-height:430px!important;
  max-height:430px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  scroll-snap-align:start!important;
  border:1px solid rgba(17,64,105,.10)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff 0%,#f7fbff 100%)!important;
  box-shadow:0 12px 28px rgba(13,47,80,.07)!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-hero.med-v15-topic-card{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  align-items:stretch!important;
  padding:14px!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card .mmspot-v15-cover,
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card .mmspot-v15-cover.is-large{
  flex:0 0 176px!important;
  width:100%!important;
  height:176px!important;
  min-height:176px!important;
  max-height:176px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border-radius:15px!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-copy{
  display:flex!important;
  flex:1 1 auto!important;
  min-height:0!important;
  flex-direction:column!important;
  padding:12px 2px 0!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-copy h3{
  display:-webkit-box!important;
  overflow:hidden!important;
  margin:8px 0 7px!important;
  font-family:inherit!important;
  font-size:20px!important;
  line-height:1.28!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-copy h3 strong{display:inline!important;font-size:inherit!important}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-meta{
  display:flex!important;
  gap:7px!important;
  overflow:hidden!important;
  max-height:24px!important;
  font-size:14px!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-featured{
  margin-top:8px!important;
  padding-top:8px!important;
  overflow:hidden!important;
  max-height:74px!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-featured>strong{display:none!important}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-featured .mmspot-v15-featured-list{margin:0!important}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-featured .mmspot-v15-featured-list a{padding:3px 0!important}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-featured .mmspot-v15-featured-list a:nth-child(n+3){display:none!important}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-primary{
  margin-top:auto!important;
  align-self:flex-start!important;
  padding:9px 13px!important;
  font-size:14px!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-recent-card.med-v15-topic-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:0!important;
  padding:14px!important;
  color:#15324f!important;
  text-decoration:none!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-recent-card>span{
  display:flex!important;
  flex:1 1 auto!important;
  min-height:0!important;
  flex-direction:column!important;
  padding:12px 2px 0!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-recent-card>span small{font-size:14px!important}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-recent-card>span b{
  display:-webkit-box!important;
  overflow:hidden!important;
  margin:7px 0!important;
  font-size:18px!important;
  line-height:1.35!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:4!important;
}
.mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-recent-card>span em{
  margin-top:auto!important;
  font-size:14px!important;
}
:is(html.yhlsm-dark,html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html.nah-sdp-night-mode,html[data-theme="dark"]) .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card{
  border-color:#29435f!important;
  background:linear-gradient(180deg,#15263a 0%,#101e2e 100%)!important;
  box-shadow:none!important;
}
:is(html.yhlsm-dark,html.tvm-dark,html.nah-sdp-dark-mode,html.nah-sdp-night-active,html.nah-sdp-night-mode,html[data-theme="dark"]) .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-head>a{
  border-color:#315576!important;
  background:#132c44!important;
  color:#7dd3fc!important;
}
@media(max-width:1024px){
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card{
    flex-basis:calc((100% - 14px)/2)!important;
    width:calc((100% - 14px)/2)!important;
    min-width:290px!important;
    height:414px!important;
    min-height:414px!important;
    max-height:414px!important;
  }
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card .mmspot-v15-cover,
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card .mmspot-v15-cover.is-large{height:164px!important;min-height:164px!important;max-height:164px!important;flex-basis:164px!important}
}
@media(max-width:640px){
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"]{padding:12px!important;border-radius:18px!important}
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-head{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-head>div{width:100%!important}
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-head h2{font-size:22px!important;margin-top:5px!important}
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-head>a{
    width:100%!important;
    min-height:40px!important;
    justify-content:center!important;
    padding:0 12px!important;
  }
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-carousel{gap:11px!important;padding-bottom:6px!important}
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card{
    flex-basis:min(84vw,292px)!important;
    width:min(84vw,292px)!important;
    min-width:min(84vw,292px)!important;
    height:392px!important;
    min-height:392px!important;
    max-height:392px!important;
    padding:12px!important;
    border-radius:17px!important;
  }
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card .mmspot-v15-cover,
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .med-v15-topic-card .mmspot-v15-cover.is-large{height:152px!important;min-height:152px!important;max-height:152px!important;flex-basis:152px!important}
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-copy h3{font-size:18px!important;-webkit-line-clamp:3!important}
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-featured{max-height:58px!important}
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-featured .mmspot-v15-featured-list a:nth-child(n+2){display:none!important}
  .mmspot-home-module.mmspot-v15-home[data-med-v15-carousel="1"] .mmspot-v15-home-recent-card>span b{font-size:17px!important;-webkit-line-clamp:4!important}
}
/* Unified public-home editorial cleanup: internal Spotlines random-discovery metadata is not end-user copy. */
.mmspot-home-module.mmspot-v15-home .mmspot-v15-home-meta{display:none!important}
