/* GNxM AdTech v0.4.2: visually independent, scoped renderers. Never style the host theme/widgets. */
.gnxm-adtech-slot{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;container-type:inline-size}
.gnxm-adtech-slot *, .gnxm-adtech-slot *::before, .gnxm-adtech-slot *::after{box-sizing:border-box}
.gnxm-adtech-slot .gnxm-adtech-sidebar-list{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;list-style:none!important}
.gnxm-adtech-slot .gnxm-adtech-banner-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important}
.gnxm-adtech-slot .gnxm-adtech-feed-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card,
.gnxm-adtech-slot .gnxm-adtech-feed-card{display:block!important;position:relative!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #dde6ee!important;border-radius:9px!important;box-shadow:0 1px 3px rgba(0,36,75,.06);background:#fff!important;font-family:inherit!important;line-height:1.3!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card .gnxm-adtech-link,
.gnxm-adtech-slot .gnxm-adtech-feed-card .gnxm-adtech-link{display:flex!important;flex-direction:column!important;gap:0!important;position:static!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;color:#132c47!important;text-decoration:none!important;background:transparent!important;align-items:stretch!important}
.gnxm-adtech-slot .gnxm-adtech-media{display:block!important;position:relative!important;width:100%!important;aspect-ratio:7/5!important;overflow:hidden!important;margin:0!important;padding:0!important;background:#f2f5f8!important;flex:0 0 auto!important}
.gnxm-adtech-slot .gnxm-adtech-media img.gnxm-adtech-image,
.gnxm-adtech-slot .gnxm-adtech-media .gnxm-adtech-image-placeholder{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;aspect-ratio:7/5!important;object-fit:cover!important;object-position:center!important;box-shadow:none!important;background:#edf3f8!important}
.gnxm-adtech-slot .gnxm-adtech-media .gnxm-adtech-sponsored{display:inline-block!important;position:absolute!important;top:7px!important;left:7px!important;z-index:1!important;margin:0!important;padding:3px 6px!important;border:0!important;border-radius:4px!important;background:#0b345b!important;color:#fff!important;font-size:10px!important;font-weight:600!important;line-height:1.2!important;white-space:nowrap!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card .gnxm-adtech-body,
.gnxm-adtech-slot .gnxm-adtech-feed-card .gnxm-adtech-body{display:block!important;position:relative!important;flex:1 0 auto!important;min-height:60px!important;margin:0!important;padding:8px 34px 10px 9px!important;border:0!important;background:#fff!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card .gnxm-adtech-kind,
.gnxm-adtech-slot .gnxm-adtech-feed-card .gnxm-adtech-kind{display:block!important;margin:0 0 3px!important;padding:0!important;font-size:10px!important;line-height:1.2!important;font-weight:500!important;color:#587188!important;text-transform:none!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card h3.gnxm-adtech-title,
.gnxm-adtech-slot .gnxm-adtech-feed-card h3.gnxm-adtech-title{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important;max-height:2.8em!important;font-family:inherit!important;font-size:13px!important;font-weight:650!important;line-height:1.4!important;letter-spacing:normal!important;color:#102c49!important;text-transform:none!important;text-align:left!important}
.gnxm-adtech-slot .gnxm-adtech-feed-card h3.gnxm-adtech-title{font-size:12px!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card .gnxm-adtech-cta,
.gnxm-adtech-slot .gnxm-adtech-feed-card .gnxm-adtech-cta{display:flex!important;position:absolute!important;bottom:10px!important;right:8px!important;width:25px!important;height:25px!important;margin:0!important;padding:0!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;background:#eaf3fc!important;color:#11518c!important;font-size:16px!important;line-height:1!important;font-weight:600!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card .gnxm-adtech-link:hover,
.gnxm-adtech-slot .gnxm-adtech-feed-card .gnxm-adtech-link:hover{outline:1px solid #bad0e7!important;outline-offset:-1px!important}
.gnxm-adtech-slot .gnxm-adtech-link:focus-visible{outline:2px solid #11518c!important;outline-offset:-2px!important}
/* Container queries respond to the feed column width, not the entire browser. */
@container (max-width: 470px){.gnxm-adtech-slot .gnxm-adtech-feed-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}}
@container (max-width: 295px){.gnxm-adtech-slot .gnxm-adtech-feed-grid{grid-template-columns:minmax(0,1fr)!important}}
/* Explicit legacy mode kept for rollback only. */
.gnxm-adtech-slot .gnxm-adtech-sidebar-card{margin:0;border:1px solid #dce4eb;border-radius:8px;overflow:hidden;background:#fff}
.gnxm-adtech-slot .gnxm-adtech-sidebar-card .gnxm-adtech-link{display:flex;gap:9px;align-items:center;padding:8px;text-decoration:none;color:#153550}
.gnxm-adtech-slot .gnxm-adtech-sidebar-card img.gnxm-adtech-image{width:82px;min-width:82px;height:60px;object-fit:contain}
.gnxm-adtech-slot .gnxm-adtech-sidebar-card .gnxm-adtech-body{min-width:0;flex:1;position:relative}
.gnxm-adtech-slot .gnxm-adtech-sidebar-card .gnxm-adtech-sponsored{font-size:10px;color:#7b3900;background:#fff2d8;padding:1px 4px}
.gnxm-adtech-slot .gnxm-adtech-sidebar-card .gnxm-adtech-kind{font-size:10px;color:#55718c}
.gnxm-adtech-slot .gnxm-adtech-sidebar-card h3.gnxm-adtech-title{font-size:12px;line-height:1.35;max-height:2.7em;overflow:hidden;margin:4px 0;font-weight:650}
.gnxm-adtech-slot .gnxm-adtech-sidebar-card .gnxm-adtech-cta{position:absolute;right:0;bottom:0;color:#11518c}
/* v0.4.2: tightly capped 7:5 previews; at 230px wide the image is ~164px high. */
.gnxm-adtech-slot .gnxm-adtech-visual-card{max-width:230px!important;margin-inline:auto!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card .gnxm-adtech-media{width:100%!important;aspect-ratio:7/5!important;height:auto!important;max-height:164px!important}
.gnxm-adtech-slot .gnxm-adtech-feed-card .gnxm-adtech-media{width:100%!important;aspect-ratio:7/5!important;height:auto!important;max-height:164px!important}
.gnxm-adtech-slot .gnxm-adtech-type-item .gnxm-adtech-image{object-fit:contain!important;background:#fff!important}
.gnxm-adtech-slot .gnxm-adtech-type-article .gnxm-adtech-image{object-fit:cover!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card .gnxm-adtech-body{min-height:61px!important;padding:7px 32px 8px 8px!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card h3.gnxm-adtech-title{font-size:12px!important;line-height:1.32!important;max-height:2.64em!important}
.gnxm-adtech-slot .gnxm-adtech-category{display:block!important;font-size:10px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#617386!important;margin:3px 0 0!important;padding:0!important}
/* AWL owns the actual label markup, individual positions and inline styling. */
.gnxm-adtech-slot .gnxm-adtech-awl-image{position:absolute!important;inset:0!important;z-index:2!important;pointer-events:none!important}
.gnxm-adtech-slot .gnxm-adtech-awl-image .awl-labels,
.gnxm-adtech-slot .gnxm-adtech-awl-image .awl-label-wrap{pointer-events:none!important}
.gnxm-adtech-slot .gnxm-adtech-awl-title:empty,
.gnxm-adtech-slot .gnxm-adtech-awl-image:empty{display:none!important}
.gnxm-adtech-slot .gnxm-adtech-visual-card .gnxm-adtech-sponsored{top:auto!important;bottom:5px!important;left:5px!important;z-index:3!important;font-size:9px!important;padding:2px 5px!important}
@media(max-width:600px){
 .gnxm-adtech-slot .gnxm-adtech-visual-card{max-width:230px!important}
 .gnxm-adtech-slot .gnxm-adtech-feed-card .gnxm-adtech-media{max-height:none!important}
}

.gnxm-adtech-slot .gnxm-adtech-visual-card .gnxm-adtech-sponsored-inline{display:inline-block!important;vertical-align:top!important;margin:-1px 0 2px!important;padding:1px 4px!important;background:#edf4fc!important;border-radius:3px!important;color:#11518c!important;font-size:9px!important;font-weight:600!important;line-height:1.1!important}

/* v0.6.0: Native BuddyPress Activity slot is a proper list child, not an Activity record. */
li.gnxm-adtech-activity-slot{display:block!important;list-style:none!important;clear:both!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:12px 0!important;padding:8px!important;background:transparent!important}
li.gnxm-adtech-activity-slot .gnxm-adtech-slot{width:100%!important}
li.gnxm-adtech-activity-slot .gnxm-adtech-feed-grid{grid-template-columns:repeat(var(--gnxm-feed-columns,3),minmax(0,1fr))!important}
@container (max-width:470px){li.gnxm-adtech-activity-slot .gnxm-adtech-feed-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@container (max-width:295px){li.gnxm-adtech-activity-slot .gnxm-adtech-feed-grid{grid-template-columns:minmax(0,1fr)!important}}
