/* KhanAtlas: business ad preview only; no global styles or functionality */
#advertise .ka-business-ads{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:16px;align-items:stretch}
#advertise .ka-business-ad{min-width:0;min-height:214px;display:flex;flex-direction:column;align-items:flex-start;text-align:start;justify-content:center;gap:11px;padding:23px;border:1px solid #dbe5ed;border-radius:18px;background:linear-gradient(155deg,#fff,#f4f7f9);box-sizing:border-box}
#advertise .ka-business-ad b{font-size:19px;color:#102d44;line-height:1.45}
#advertise .ka-business-ad small{font-size:13px;line-height:1.75;color:#536b80}
#advertise .ka-business-ad-featured{position:relative;overflow:hidden;background:#102d44;border-color:#294e65;color:#fff;justify-content:flex-end;min-height:214px}
#advertise .ka-business-ad-featured:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,37,57,.96),rgba(11,37,57,.7)),url('/assets/images/tea.webp') center/cover;opacity:.9}
#advertise .ka-business-ad-featured>*{position:relative;z-index:1}
#advertise .ka-business-ad-featured b{color:#fff}
#advertise .ka-business-ad-featured small{color:#dce9f0}
#advertise .ka-business-tag{align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:.03em;color:#ffdb9d;border:1px solid #b18a53;border-radius:50px;padding:6px 10px}
#advertise .ka-business-ad-symbol{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e9f0f4;color:#aa7944;font-size:26px}
#advertise .ka-business-status{font-size:11px;color:#946a35;border-top:1px solid #dbe5ed;padding-top:10px;margin-top:auto}
html[data-theme="dark"] #advertise .ka-business-ad:not(.ka-business-ad-featured){background:#1b344a;color:#e5edf4;border-color:#35556b}
html[data-theme="dark"] #advertise .ka-business-ad:not(.ka-business-ad-featured) b{color:#f0f5f8}
html[data-theme="dark"] #advertise .ka-business-ad:not(.ka-business-ad-featured) small{color:#c2d0dc}
@media(max-width:850px){#advertise .ka-business-ads{grid-template-columns:1fr 1fr}#advertise .ka-business-ad-featured{grid-column:1/-1}}
@media(max-width:560px){#advertise .ka-business-ads{grid-template-columns:1fr}#advertise .ka-business-ad-featured{grid-column:auto}#advertise .ka-business-ad{min-height:160px;padding:19px}#advertise .ka-business-ad-featured{min-height:215px}}

/* Demo imagery for all three placements: strictly scoped to the business section */
#advertise .ka-business-ad-sector,#advertise .ka-business-ad-sponsor{position:relative;overflow:hidden;justify-content:flex-end;isolation:isolate;border-color:#365469;background:#102d44;color:#fff}
#advertise .ka-business-ad-sector::before,#advertise .ka-business-ad-sponsor::before{content:"";position:absolute;inset:0;z-index:-1;background-size:cover;background-position:center;transition:none}
#advertise .ka-business-ad-sector::before{background-image:linear-gradient(180deg,rgba(7,28,45,.26),rgba(7,28,45,.93)),url('/assets/images/saffron.webp')}
#advertise .ka-business-ad-sponsor::before{background-image:linear-gradient(180deg,rgba(7,28,45,.22),rgba(7,28,45,.93)),url('/assets/images/honey.webp')}
#advertise .ka-business-ad-sector b,#advertise .ka-business-ad-sponsor b{color:#fff}
#advertise .ka-business-ad-sector small,#advertise .ka-business-ad-sponsor small{color:#e7eef4}
#advertise .ka-business-ad-sector .ka-business-status,#advertise .ka-business-ad-sponsor .ka-business-status{color:#ffdda9;border-top-color:rgba(255,255,255,.3);margin-top:0}
#advertise .ka-business-ad-sector .ka-business-tag,#advertise .ka-business-ad-sponsor .ka-business-tag{color:#ffdda9;border-color:#bd9861;background:rgba(8,31,49,.55)}
@media(max-width:560px){#advertise .ka-business-ad-sector,#advertise .ka-business-ad-sponsor{min-height:190px;gap:8px;padding:18px}#advertise .ka-business-ad-sector b,#advertise .ka-business-ad-sponsor b{font-size:17px}}

/* Approved preview refinement: equal desktop placements and legible mobile copy. */
@media(min-width:851px){#advertise .ka-business-ads{grid-template-columns:repeat(3,minmax(0,1fr))}#advertise .ka-business-ad{min-height:230px}}
@media(max-width:560px){#advertise .ka-business-ad b{font-size:18px;line-height:1.45}#advertise .ka-business-ad small{font-size:14px;line-height:1.65}#advertise .ka-business-tag{font-size:12px}#advertise .ka-business-status{font-size:12px}}

/* English demo card: separate heading and description; no other placements changed. */
html[lang="en"] #advertise .ka-business-ad-featured .ka-business-ad-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;width:100%}
html[lang="en"] #advertise .ka-business-ad-featured .ka-business-ad-copy b{display:block;overflow-wrap:break-word;line-height:1.4}
html[lang="en"] #advertise .ka-business-ad-featured .ka-business-ad-copy small{display:block;overflow-wrap:break-word;line-height:1.65}
