/* Page-specific rhythm; preserve content and reading order on small screens. */
@media(min-width:821px){
 body:has(.fo-layout-farmaquiz-it) .fo-product-hero-grid,
 body:has(.fo-layout-farmacast) .fo-product-hero-grid,
 body:has(.fo-layout-time-py) .fo-product-hero-grid{grid-template-columns:1fr 1.12fr}
 body:has(.fo-layout-farmaquiz-it) .fo-product-hero-grid>figure,
 body:has(.fo-layout-farmacast) .fo-product-hero-grid>figure,
 body:has(.fo-layout-time-py) .fo-product-hero-grid>figure{grid-column:1;grid-row:1}
 body:has(.fo-layout-farmaquiz-it) .fo-product-hero-grid>div,
 body:has(.fo-layout-farmacast) .fo-product-hero-grid>div,
 body:has(.fo-layout-time-py) .fo-product-hero-grid>div{grid-column:2;grid-row:1}
 /* Balanced rows for four, five or seven cards instead of a stranded card. */
 .fo-imported :is(.farma-grid,.farma-cards,.farma-images):has(>:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
 .fo-imported :is(.farma-grid,.farma-cards,.farma-images):has(>:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}
 .fo-imported :is(.farma-grid,.farma-cards,.farma-images):has(>:nth-child(5):last-child)>*{grid-column:span 2}
 .fo-imported :is(.farma-grid,.farma-cards,.farma-images):has(>:nth-child(5):last-child)>:nth-last-child(-n+2){grid-column:span 3}
 .fo-imported :is(.farma-grid,.farma-cards,.farma-images):has(>:nth-child(7):last-child){grid-template-columns:repeat(12,minmax(0,1fr))}
 .fo-imported :is(.farma-grid,.farma-cards,.farma-images):has(>:nth-child(7):last-child)>*{grid-column:span 4}
 .fo-imported :is(.farma-grid,.farma-cards,.farma-images):has(>:nth-child(7):last-child)>:nth-last-child(-n+4){grid-column:span 3}
 .fo-layout-farmaquiz-it .farma-row{grid-template-columns:1.2fr 1fr}
 .fo-layout-time-py .farma-row{grid-template-columns:1fr 1.2fr}
 .fo-layout-farmaprices .farma-feature:nth-of-type(even)>:first-child{order:2}
}
.fo-layout-wingesfar .farma-box{border-radius:12px;border-top:3px solid #087ba4;background:#f4f9fd;box-shadow:none}
.fo-layout-farmadem .farma-row{padding:30px;border-radius:24px;background:#f1faf7;gap:32px}
.fo-layout-farmadem .farma-box{background:white;border-top:3px solid #24877b;border-radius:12px}
.fo-layout-farmaquiz-it .farma-row{border-bottom:1px solid #e8dff1;padding-bottom:40px}
.fo-layout-farmaquiz-it .farma-box{background:#f6f1fa;border-color:#e7d9f0}
.fo-layout-farmacast .farma-strip{background:linear-gradient(120deg,#fff4e9,#faead8)}
.fo-layout-farmacast .farma-grid .farma-box{background:#fffaf5;border-color:#eedecb;padding:30px;box-shadow:none}
.fo-layout-farmacast .farma-card{background:white;border-radius:18px;overflow:hidden}
.fo-layout-farmaprices .farma-feature{padding:32px;background:#f5f9ed;border-radius:24px;gap:32px}
.fo-layout-farmaprices .farma-strip{background:#eef5e2}
.fo-layout-time-py .farma-row{padding:28px;border-left:4px solid #8296c5;background:#f5f7fc;border-radius:0 22px 22px 0}
.fo-layout-time-py .farma-strip{background:linear-gradient(120deg,#ecf0fb,#e3eafa)}
.fo-layout-click-rate .farma-highlight{background:#fcf3f5;padding:36px;border-radius:26px}
.fo-layout-click-rate .farma-feedback-box{background:white;border-color:#efdee4;box-shadow:none}
@media(max-width:820px){
 .fo-imported .farma-row,.fo-imported .farma-feature,.fo-imported .farma-highlight{padding:22px;gap:24px}
}
