/* V149: three existing home preview panels stacked as wide, horizontal cards.
   The original inner scroll tracks, selection morphs and glass transitions are preserved. */
body[data-page="home"] > .content-panels .panels-grid{
  width:min(94vw,1600px)!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:25px!important;
}
body[data-page="home"] > .content-panels :is(#homeGalleryPanel.home-gallery-puzzle-panel,#articlePanel.home-article-panel,#doctorPanel.home-doctor-panel){
  display:grid!important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr)!important;
  align-items:center!important;
  column-gap:26px!important;
  min-height:475px!important;
  height:auto!important;
  padding:28px!important;
  border-radius:36px!important;
}
body[data-page="home"] > .content-panels #homeGalleryPanel .home-gallery-hero-wrap,
body[data-page="home"] > .content-panels #articlePanel .home-article-detail-shell,
body[data-page="home"] > .content-panels #doctorPanel .home-doctor-detail-shell{
  grid-column:1!important;
  grid-row:1!important;
  aspect-ratio:auto!important;
  width:100%!important;
  height:400px!important;
  min-height:360px!important;
  max-height:none!important;
  margin:0!important;
  flex:0 0 auto!important;
  align-self:center!important;
}
body[data-page="home"] > .content-panels #homeGalleryPanel .home-gallery-list-shell,
body[data-page="home"] > .content-panels #articlePanel .home-article-list-shell,
body[data-page="home"] > .content-panels #doctorPanel .home-doctor-list-shell{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  height:calc(var(--cm-unified-row-height) * 4 + var(--cm-unified-row-gap) * 3 + 8px)!important;
  min-height:0!important;
  max-height:420px!important;
  margin:0!important;
  align-self:center!important;
  flex:0 0 auto!important;
}
body[data-page="home"] > .content-panels #homeGalleryPanel .home-gallery-circle{
  width:min(100%,335px)!important;
  max-width:335px!important;
}
body[data-page="home"] > .content-panels :is(#articlePanel,#doctorPanel) :is(.home-article-detail,.home-doctor-detail){
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  margin:0!important;
}
/* Preserve existing motion behavior; add only gentle ambient glass morph to the card silhouette. */
@keyframes cmPanelGlassMorphV149{
  0%,100%{border-radius:36px 48px 36px 42px;filter:saturate(1)}
  50%{border-radius:48px 36px 44px 34px;filter:saturate(1.035)}
}
@media (prefers-reduced-motion:no-preference){
  body[data-page="home"] > .content-panels :is(#homeGalleryPanel,#articlePanel,#doctorPanel){animation:cmPanelGlassMorphV149 12s ease-in-out infinite!important;}
  body[data-page="home"] > .content-panels #articlePanel{animation-delay:-3.5s!important}
  body[data-page="home"] > .content-panels #doctorPanel{animation-delay:-7s!important}
}
@media (max-width:850px){
  body[data-page="home"] > .content-panels :is(#homeGalleryPanel.home-gallery-puzzle-panel,#articlePanel.home-article-panel,#doctorPanel.home-doctor-panel){
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    min-height:0!important;height:auto!important;padding:16px!important;gap:15px!important;
  }
  body[data-page="home"] > .content-panels #homeGalleryPanel .home-gallery-hero-wrap,
  body[data-page="home"] > .content-panels #articlePanel .home-article-detail-shell,
  body[data-page="home"] > .content-panels #doctorPanel .home-doctor-detail-shell{
    width:100%!important;height:auto!important;min-height:295px!important;max-height:none!important;
  }
  body[data-page="home"] > .content-panels #homeGalleryPanel .home-gallery-list-shell,
  body[data-page="home"] > .content-panels #articlePanel .home-article-list-shell,
  body[data-page="home"] > .content-panels #doctorPanel .home-doctor-list-shell{
    width:100%!important;height:calc(var(--cm-unified-row-height) * 4 + var(--cm-unified-row-gap) * 3 + 8px)!important;max-height:none!important;
  }
}
/* Clickable hero: never capture clicks from links, menu or carousel controls. */
body[data-page="home"] .hero-has-link .hero-copy{cursor:pointer}
