/* Sponsored creatives (generated by build.py from _build/ads-base.css + _build/ads.json). No «Publicitate» label (v7). */
.bm-ad img{display:block;max-width:100%;height:auto;border:0}
.bm-ad a{display:block;text-decoration:none}
/* top billboard: same box as the house banner */
.ad.bm-top{padding:6px 0 4px;margin-bottom:6px;text-align:center}
.ad.bm-top picture,.ad.bm-top img{display:block;width:100%;height:auto;margin:0 auto}
.home-v2 .ad.bm-top{width:100%;max-width:none;margin-left:0;margin-right:0}
/* sidebar panel: cream like the creative, thin warm border; creative centred */
.ad.box.bm-side{margin:0 0 24px;background:#fefaf9;border:1px solid #ece4d6;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.bm-side .bm-tall,.bm-side .bm-compact{width:100%}
.bm-side .bm-tall{max-width:320px}
.bm-side .bm-compact{display:none;max-width:300px}
.bm-side a img{width:100%}
/* homepage «grow» slots fill the leftover sidebar height: compact by default, tall only when it fits (rules appended below) */
@media (min-width:1181px){
  .home-v2 .ad.box.bm-side.grow{margin:0;width:100%;flex:1 1 auto;container-type:size;min-height:252px}
  .home-v2 .bm-side.grow .bm-tall{display:none}
  .home-v2 .bm-side.grow .bm-compact{display:block}
}
@media (max-width:1180px){
  .home-v2 .ad.box.bm-side{margin:0;width:100%;flex:0 0 auto}
  .home-v2 .bm-side .bm-tall{display:none}
  .home-v2 .bm-side .bm-compact{display:block}
}
@media (max-width:760px){
  .bm-side .bm-tall{display:none}
  .bm-side .bm-compact{display:block;max-width:none}
}
/* small 300x250 box (Medicina Inteligentă) */
.ad-rez.bm-rez .bm-side{margin:0}
/* creative without a compact variant: always show it; shrink to fit a short grow box; full width on phones */
.bm-side.bm-nocompact .bm-tall{display:block!important}
@media (min-width:1181px){
  .home-v2 .bm-side.grow.bm-nocompact .bm-tall{height:100%;display:flex!important;align-items:center;justify-content:center}
  .home-v2 .bm-side.grow.bm-nocompact .bm-tall img{max-height:100%;width:auto;max-width:100%}
}
@media (max-width:1180px){.home-v2 .bm-side.bm-nocompact .bm-tall{max-width:none}}
@media (max-width:760px){.bm-side.bm-nocompact .bm-tall{max-width:none}}
/* mid-page billboard (between homepage sections): same box as the top one, section rhythm above/below */
.home-v2 .ad.bm-top.bm-mid{margin:18px 0 0;padding:0}
.home-v2 .ad.bm-mid + .home-hd{margin-top:18px}   /* tighter gap only before the section that follows the mid banner (owner 13:38) */
@media (max-width:760px){.home-v2 .ad.bm-top.bm-mid{margin:6px 0 0}.home-v2 .ad.bm-mid + .home-hd{margin-top:16px}}
/* Medicina Inteligentă box: creative fills the box, no cream panel/border around it */
.ad-rez.bm-rez .bm-side{border:0;background:none}
@media (min-width:1181px){@container (min-height:244px){.bm-side.grow.bm-fit-250 .bm-tall{display:block}.bm-side.grow.bm-fit-250 .bm-compact{display:none}}}
@media (min-width:1181px){@container (min-height:361px){.bm-side.grow.bm-fit-367 .bm-tall{display:block}.bm-side.grow.bm-fit-367 .bm-compact{display:none}}}
@media (min-width:1181px){@container (min-height:560px){.bm-side.grow.bm-fit-566 .bm-tall{display:block}.bm-side.grow.bm-fit-566 .bm-compact{display:none}}}
