/* L.1347 – Home quick access parity, on-duty tile, pharmacist hero, canonical Brand carousel.
   Only Home selectors; preserve all approved seasonal/event imagery and non-Home pages. */
body.ama-site .ama-home-hero__slide.is-pharmacist>a{
 background:linear-gradient(105deg,rgba(231,247,255,.99) 0%,rgba(210,238,251,.97) 43%,rgba(140,199,231,.78) 100%),url('/wp-content/uploads/2026/10/amafarmacia-editorial-hires-services.webp') right center/cover no-repeat!important;
 background-size:cover!important;
 background-position:right center!important;
}
body.ama-site .ama-home-hero__slide.is-pharmacist .ama-home-hero__symbol{display:none!important}
body.ama-site .ama-home-hero__slide.is-pharmacist .ama-home-hero__copy{max-width:760px!important}
body.ama-site .ama-home-card-strip .ama-home-card.is-turni{
 --ama-tile-bg:#dcf2fa!important;
 position:relative!important;
 background:linear-gradient(135deg,#e4f5fc 0%,#c6e7f7 100%)!important;
 border-color:#afdbec!important;
 overflow:hidden!important;
 isolation:isolate!important;
}
body.ama-site .ama-home-card-strip .ama-home-card.is-turni .ama-home-card__eyebrow,
body.ama-site .ama-home-card-strip .ama-home-card.is-turni strong,
body.ama-site .ama-home-card-strip .ama-home-card.is-turni b{
 position:relative!important;z-index:2!important;color:#19536b!important;
}
body.ama-site .ama-home-card-strip .ama-home-card.is-turni>span:not(.ama-home-card__turni-art){
 position:relative!important;z-index:2!important;
}
body.ama-site .ama-home-card-strip .ama-home-card.is-turni>.ama-home-card__turni-art{
 position:absolute!important;inset:0 0 0 auto!important;z-index:0!important;
 display:grid!important;place-items:center!important;
 margin:0!important;padding:0!important;
 width:57%!important;max-width:none!important;height:100%!important;
 pointer-events:none!important;opacity:.63!important;
 color:#247b99!important;transform:rotate(-9deg)!important;
 background:none!important;
}
body.ama-site .ama-home-card-strip .ama-home-card.is-turni>.ama-home-card__turni-art svg{
 display:block;width:100%;height:100%;max-width:100%;max-height:100%;
}
@media(min-width:1181px){
 /* Fixed-size tiles. In a short final row, justify-content:space-between keeps
    the leftmost and rightmost tile aligned with the full-width hero above. */
 body.ama-site .ama-main>.ama-home-card-strip>.ama-shell{
  width:min(1840px,calc(100vw - 32px))!important;
  max-width:1840px!important;margin-inline:auto!important;
 }
 body.ama-site main#top.ama-main .ama-home-card-strip__rail{
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
  justify-content:space-between!important;align-items:stretch!important;
  gap:10px!important;
  width:100%!important;max-width:100%!important;
  margin:0!important;padding:6px 0 14px!important;
  overflow:visible!important;box-sizing:border-box!important;
 }
 body.ama-site .ama-home-card-strip__rail>.ama-home-card,
 body.ama-site .ama-home-card-strip__rail>.ama-home-card-favorite-shell{
  flex:0 0 calc((100% - 30px)/4)!important;
  width:calc((100% - 30px)/4)!important;max-width:none!important;
  height:292px!important;min-height:292px!important;
  box-sizing:border-box!important;
 }
 body.ama-site .ama-home-card-strip__rail .ama-home-card-favorite-shell>.ama-home-card{
  height:100%!important;min-height:100%!important;
  width:100%!important;box-sizing:border-box!important;
 }
 body.ama-site .ama-home-card-strip__rail>.ama-home-card{
  aspect-ratio:auto!important;
 }
}
@media(min-width:1600px){
 /* Grid, not flex: favourite wrappers must have precisely the same width
    as regular cards. The extra calendar card only appears in its season. */
 body.ama-site main#top.ama-main .ama-home-card-strip__rail{
  display:grid!important;grid-auto-flow:row!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  grid-auto-rows:292px!important;
  gap:10px!important;
 }
 body.ama-site main#top.ama-main .ama-home-card-strip__rail:has([data-ama-home-card="calendari"]){
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
 }
 body.ama-site .ama-home-card-strip__rail>.ama-home-card,
 body.ama-site .ama-home-card-strip__rail>.ama-home-card-favorite-shell{
  flex:none!important;width:100%!important;max-width:100%!important;
  min-width:0!important;height:292px!important;min-height:292px!important;
 }
}
@media(max-width:1180px){
 body.ama-site .ama-home-card-strip__rail>.ama-home-card,
 body.ama-site .ama-home-card-strip__rail>.ama-home-card-favorite-shell{
  height:292px!important;min-height:292px!important;
  aspect-ratio:auto!important;box-sizing:border-box!important;
 }
 body.ama-site .ama-home-card-strip__rail .ama-home-card-favorite-shell>.ama-home-card{
  height:100%!important;min-height:100%!important;
  aspect-ratio:auto!important;
 }
}
@media(max-width:760px){
 body.ama-site .ama-home-hero__slide.is-pharmacist>a{
  background:linear-gradient(180deg,rgba(229,245,254,.99) 0%,rgba(201,234,249,.97) 49%,rgba(125,198,232,.46) 100%),url('/wp-content/uploads/2026/10/amafarmacia-editorial-hires-services.webp') right bottom/cover no-repeat!important;
 }
}
/* All brands: original logos, one card at a time and a single canonical source. */
body.ama-site .ama-brand-home-carousel{position:relative;min-width:0}
body.ama-site .ama-brand-home-controls{
 display:flex;justify-content:flex-end;align-items:center;gap:10px;
 margin:10px 0 12px;
}
body.ama-site .ama-brand-home-controls>button{
 display:grid;place-items:center;width:44px;height:44px;min-width:44px;
 border:1px solid #c9d7ce;border-radius:50%;background:#fff;color:#335b46;
 font:750 1.1rem/1 sans-serif;cursor:pointer;
}
body.ama-site .ama-brand-home-controls>button:hover{background:#e9f3eb}
body.ama-site .ama-brand-home-controls>button:focus-visible,
body.ama-site .ama-brand-home-card:focus-visible,
body.ama-site .ama-brand-home-rail:focus-visible{
 outline:3px solid #236344;outline-offset:3px;
}
body.ama-site .ama-brand-home-count{
 font-size:.86rem;font-weight:800;color:#3e6651;
 min-width:92px;text-align:center;font-variant-numeric:tabular-nums;
}
body.ama-site .ama-brand-home-rail{
 --ama-brand-visible:5;
 display:flex!important;gap:14px!important;
 overflow-x:auto!important;overflow-y:hidden!important;
 overscroll-behavior-x:contain;
 -webkit-overflow-scrolling:touch;
 scrollbar-width:none;scroll-snap-type:x mandatory;
 scroll-padding-inline:0;
 padding:3px 0 12px!important;
}
body.ama-site .ama-brand-home-rail::-webkit-scrollbar{display:none}
body.ama-site .ama-brand-home-card{
 flex:0 0 calc((100% - 56px)/5);box-sizing:border-box;
 min-width:0;min-height:254px;
 display:flex;flex-direction:column;align-items:center;
 padding:18px 13px 16px;gap:7px;
 background:var(--ama-brand-home-bg,#f5f7f3);
 border:1px solid #d9e4da;border-radius:17px;
 color:#2a4838;text-decoration:none;text-align:center;
 box-shadow:0 6px 17px rgba(37,64,47,.06);
 scroll-snap-align:start;scroll-snap-stop:always;
}
body.ama-site .ama-brand-home-card:hover{border-color:#8bb49a;box-shadow:0 10px 22px rgba(37,64,47,.12)}
body.ama-site .ama-brand-home-visual{
 width:100%;height:137px;min-height:137px;
 display:grid;place-items:center;
 padding:10px 13px;box-sizing:border-box;
 background:#fff;border-radius:12px;
}
body.ama-site .ama-brand-home-visual img{
 display:block!important;max-width:100%!important;max-height:112px!important;
 width:100%!important;height:112px!important;
 object-fit:contain!important;object-position:center!important;
 mix-blend-mode:normal!important;filter:none!important;
}
body.ama-site .ama-brand-home-category{
 font-size:.72rem;line-height:1.2;font-weight:650;color:#60776a;
 max-width:100%;
}
body.ama-site .ama-brand-home-card strong{
 font-family:Georgia,'Times New Roman',serif;
 color:#254d37;font-size:1.22rem;line-height:1.15;
 overflow-wrap:anywhere;
}
body.ama-site .ama-brand-home-more{
 display:block;margin-top:auto;padding-top:7px;font-size:.74rem;
 font-weight:800;color:#326d4d;
}
@media(min-width:1181px) and (max-width:1599px){
 body.ama-site .ama-brand-home-rail{--ama-brand-visible:4;gap:12px!important}
 body.ama-site .ama-brand-home-card{flex-basis:calc((100% - 36px)/4)}
}
@media(min-width:761px) and (max-width:1180px){
 body.ama-site .ama-brand-home-rail{--ama-brand-visible:3;gap:12px!important}
 body.ama-site .ama-brand-home-card{flex-basis:calc((100% - 24px)/3)}
}
@media(min-width:481px) and (max-width:760px){
 body.ama-site .ama-brand-home-rail{--ama-brand-visible:2;gap:12px!important}
 body.ama-site .ama-brand-home-card{flex-basis:calc((100% - 12px)/2)}
}
@media(max-width:480px){
 body.ama-site .ama-brand-home-rail{--ama-brand-visible:1;gap:10px!important}
 body.ama-site .ama-brand-home-card{flex-basis:min(78vw,294px);min-height:245px}
 body.ama-site .ama-brand-home-controls{justify-content:space-between}
}
@media(prefers-reduced-motion:reduce){
 body.ama-site .ama-brand-home-rail{scroll-behavior:auto!important}
}
