.pg-ad{box-sizing:border-box;margin:1rem 0;padding:.8rem;border:1px solid #d2d2d2;border-radius:8px;background:#fff;color:#222;overflow-wrap:anywhere}.pg-ad-label{display:block;color:#555;margin-bottom:.5rem;font-size:.8rem}.pg-ad a{display:flex;align-items:center;gap:.8rem;color:#184d82;text-decoration:none}.pg-ad img{max-width: min(35%,160px);height:auto;object-fit:contain}.pg-ad-body{display:block;margin-top:.3rem;color:#333;font-size:.9rem}@media(max-width:480px){.pg-ad a{align-items:flex-start}.pg-ad img{max-width:30%}}

.pg-ad-slot{min-width:0;max-width:100%;box-sizing:border-box}.pg-ad-slot .pg-ad{margin:8px 0;border-color:#e7d7e1;background:#fff;box-shadow:0 2px 6px #5730470a}.pg-ad-slot .pg-ad a{color:#914060;text-decoration:none!important;min-width:0}.pg-ad-slot .pg-ad a::before{content:none!important}.pg-ad-slot .pg-ad a>span{min-width:0}.pg-ad-slot .pg-ad a strong::before{content:"▶ ";color:#d53e51}.pg-ad-slot .pg-ad-label{color:#914060;font-size:11px}.pg-ad-slot--sidebar_top .pg-ad a,.pg-ad-slot--sidebar_bottom .pg-ad a{flex-direction:column;align-items:stretch}.pg-ad-slot--sidebar_top .pg-ad img,.pg-ad-slot--sidebar_bottom .pg-ad img{width:100%;max-width:100%;height:auto;object-fit:contain}.pg-ad-slot--sidebar_text .pg-ad a{display:block}.pg-ad-slot--page_bottom{max-width:1200px;margin:0 auto;padding:0 12px}.pg-ad-slot--content_middle .pg-ad img,.pg-ad-slot--page_bottom .pg-ad img{max-width:35%;height:auto}

/* Compact shared ad frames; contain preserves complete creative. */
.pg-reference-layout .pg-ad-slot .pg-ad{margin:0;padding:7px;font-size:12px;line-height:1.4}
.pg-reference-layout .pg-ad-slot .pg-ad-label{margin-bottom:4px}
.pg-reference-layout .pg-ad-slot .pg-ad-body{font-size:11px;margin-top:3px}
.pg-reference-layout .pg-ad-slot--content_middle .pg-ad img{max-width:30%;max-height:100px;object-fit:contain}
.pg-reference-layout .pg-ad-slot--sidebar_top .pg-ad img{max-height:150px;object-fit:contain}
.pg-reference-layout .pg-ad-slot--sidebar_bottom .pg-ad img{max-height:240px;object-fit:contain}
/* 0.3.8.6: keep bottom banner horizontal on wide screens, without cropping creative. */
.pg-design-shell:has(.pg-reference-layout) .pg-ad-slot--page_bottom{width:min(100%,1500px);max-width:none;padding:0 10px;box-sizing:border-box}
.pg-design-shell:has(.pg-reference-layout) .pg-ad-slot--page_bottom .pg-ad{margin:0 0 8px;padding:7px;font-size:12px}
.pg-design-shell:has(.pg-reference-layout) .pg-ad-slot--page_bottom .pg-ad img{max-width:30%;max-height:100px;object-fit:contain}
