/* MEDIPHARM v1.14.4 — Hero Inset & Category Book-Deck Rebalance
   Visual-only correction. Root-scoped selectors do not depend on WP body classes.
   Gutter policy: ~14px mobile, 20px tablet, 24px desktop.
   Desktop Right Rail allowance is applied to all module widths equally.
*/
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app {
  --syh144-max:1180px;
  --syh144-gutter:clamp(14px,2.2vw,28px);
  --syh144-rail:var(--med-host-right-rail-safe,0px);
  --syh144-width:min(var(--syh144-max),calc(100% - 2 * var(--syh144-gutter) - var(--syh144-rail)));
  --syh144-left:max(var(--syh144-gutter),calc((100% - var(--syh144-max) - var(--syh144-rail)) / 2));
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  grid-template-areas:none!important;
  grid-template-columns:none!important;
}
/* Section frame: one shared visual canvas; don't let older per-section widths win. */
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > section,
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > .syh-home-inspiration-feed,
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > :is(.mpi-section,.syh-home-inspiration),
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > footer.syh-footer,
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > :is(.syh-home-inspiration-feed,.mpi-section,.syh-home-inspiration) {
  display:block;
  flex:0 0 auto!important;
  width:var(--syh144-width)!important;
  min-width:0!important;
  max-width:var(--syh144-max)!important;
  margin-left:var(--syh144-left)!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
/* Hero: explicitly override historical 100%-viewport/negative-margin rules. */
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > section.syh-hero.syh-hero-compact {
  position:relative!important;
  width:var(--syh144-width)!important;
  max-width:var(--syh144-max)!important;
  min-width:0!important;
  margin:clamp(12px,1.7vw,24px) 0 0 var(--syh144-left)!important;
  border-radius:clamp(18px,1.8vw,26px)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  padding-left:0!important;
  padding-right:0!important;
}
/* One shell fills the section; padding is only applied to the HERO copy/art grid. */
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > section > .syh-shell,
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > .syh-home-inspiration-feed > :is(.syh-shell,.mpi-shell,.mpi-section),
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > :is(.mpi-section,.syh-home-inspiration) > :is(.mpi-shell,.syh-shell),
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > footer.syh-footer > .syh-shell {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > .syh-hero > .syh-hero-grid.syh-shell {
  padding-inline:clamp(18px,2.5vw,34px)!important;
  box-sizing:border-box!important;
}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-hero-copy,
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-ecosystem-visual {min-width:0!important;max-width:100%!important;}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-hero h1 {overflow-wrap:normal!important;}
/* Provider-injected content may have a second wrapper. */
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-home-inspiration-feed,
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-home-inspiration-feed > :is(.syh-shell,.mpi-section,.mpi-shell),
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-home-inspiration-feed > .mpi-section > .mpi-shell,
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-spotlines-shell,
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .mmspot-home-module {
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > .syh-home-inspiration-feed > :is(.syh-shell,.mpi-section,.mpi-shell),
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > .syh-home-inspiration-feed > .mpi-section > .mpi-shell {
  width:100%!important;
  margin-inline:0!important;
}
/* Category books: retain 3 overlapping jackets but scale back the overall fan. */
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card-media {
  position:relative!important;
  height:162px!important;
  min-height:0!important;
  width:100%!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,#fcfeff 0%,#eff7fb 100%)!important;
}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card-media > span.syh-category-deck {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  grid-template-columns:none!important;
}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card-media .syh-category-deck > img.syh-category-deck-cover {
  position:absolute!important;
  inset:auto auto 12px 50%!important;
  display:block!important;
  width:35%!important;
  max-width:90px!important;
  min-width:0!important;
  height:73%!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  border:1px solid rgba(192,213,225,.72)!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:0 9px 18px rgba(20,51,77,.15)!important;
  transform-origin:50% 95%!important;
}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-category-deck--count-3 > img.syh-category-deck-cover--1 {transform:translateX(-100%) rotate(-11deg)!important;z-index:1!important;}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-category-deck--count-3 > img.syh-category-deck-cover--2 {transform:translateX(-50%) rotate(-1deg)!important;z-index:3!important;}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-category-deck--count-3 > img.syh-category-deck-cover--3 {transform:translateX(0%) rotate(10deg)!important;z-index:2!important;}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-category-deck--count-2 > img.syh-category-deck-cover--1 {transform:translateX(-76%) rotate(-9deg)!important;z-index:1!important;}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-category-deck--count-2 > img.syh-category-deck-cover--2 {transform:translateX(-20%) rotate(8deg)!important;z-index:2!important;}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-category-deck--count-1 > img.syh-category-deck-cover {transform:translateX(-50%) rotate(-1deg)!important;z-index:2!important;}
#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card-media img.syh-category-deck-ghost {display:none!important;}
/* Preserve legibility and prevent hover fan from running outside card. */
@media(hover:hover) and (pointer:fine) {
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card:hover .syh-category-deck--count-3 > img.syh-category-deck-cover--1 {transform:translateX(-105%) rotate(-13deg) translateY(-2px)!important;}
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card:hover .syh-category-deck--count-3 > img.syh-category-deck-cover--2 {transform:translateX(-50%) rotate(-1deg) translateY(-4px)!important;}
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card:hover .syh-category-deck--count-3 > img.syh-category-deck-cover--3 {transform:translateX(5%) rotate(12deg) translateY(-2px)!important;}
}
@media(min-width:1200px) {#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app {--syh144-rail:var(--med-host-right-rail-safe,72px);}}
@media(max-width:1199px) {#syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app {--syh144-rail:0px;}}
@media(max-width:768px) {
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app {--syh144-gutter:14px;}
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card-media {height:138px!important;}
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card-media .syh-category-deck>img.syh-category-deck-cover {max-width:74px!important;height:72%!important;}
}
@media(max-width:480px) {
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app {--syh144-gutter:12px;}
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card-media {height:116px!important;}
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-library-section .syh-parent-category-card-media .syh-category-deck>img.syh-category-deck-cover {width:33%!important;max-width:62px!important;height:71%!important;bottom:9px!important;border-radius:6px!important;}
  #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app > main > .syh-hero > .syh-hero-grid.syh-shell {padding-inline:16px!important;}
}
@media(prefers-reduced-motion:reduce) {
 #syh-app.syh-home-v1144.syh-home-v1143.syh-home-v1142.syh-app .syh-category-deck-cover {transition:none!important;}
}
