/* Rich member offers: compact image-and-text cards, two cards per wide row. */
.txb-rich-offers{clear:both;padding:14px;margin:22px auto;border:1px solid #a4b8ce;border-radius:10px;max-width:1240px;background:#f5f8fc;color:#233956;font-family:system-ui,sans-serif}
.txb-rich-offers h2{font-size:17px;margin:0 0 12px}
.txb-rich-offers-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.txb-rich-offer{display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);grid-template-rows:auto 1fr;align-items:start;column-gap:12px;row-gap:5px;min-width:0;min-height:138px;text-decoration:none;color:#1f5caf;border:1px solid #d7e0ea;border-radius:9px;padding:9px;background:#fff;font-size:14px}
.txb-rich-offer img{grid-column:1;grid-row:1 / span 3;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:5px}
.txb-rich-offer-copy{grid-column:2;grid-row:1 / span 3;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;height:100%}
.txb-rich-offer strong{overflow-wrap:anywhere;line-height:1.3;font-size:15px}
.txb-rich-offer-description{display:block;color:#40556d;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.txb-rich-offer-count{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:auto;color:#40556d;font-size:12px;line-height:1.3}.txb-rich-members-icon{display:inline-flex;align-items:center;justify-content:center;color:#0d6efd;flex:0 0 auto}.txb-rich-count-number{color:#c52b45;font-size:14px;line-height:1;font-weight:700}.txb-rich-count-label{color:#40556d}
.txb-rich-offers p{font-size:11px;color:#607187;margin:10px 0 0}
@media(max-width:850px){.txb-rich-offers-grid{grid-template-columns:1fr}}
@media(max-width:470px){.txb-rich-offer{grid-template-columns:1fr;grid-template-rows:auto auto;min-height:0}.txb-rich-offer img{grid-column:1;grid-row:1}.txb-rich-offer-copy{grid-column:1;grid-row:2;min-height:80px}}

/* Side placements use the member feed itself, not a duplicate ad unit.
   Container queries depend on the actual available column width (including
   narrow 200px panels) rather than viewport-wide media queries. */
.txb-rich-offers{container-type:inline-size;min-width:0;max-width:100%;box-sizing:border-box}
.txb-rich-offers *, .txb-rich-offers *::before,.txb-rich-offers *::after{box-sizing:border-box}
.txb-rich-offers-grid,.txb-rich-offer,.txb-rich-offer-copy{min-width:0}
.txb-rich-placement{min-width:0;max-width:100%;width:100%;height:100%}
.txb-rich-placement .txb-rich-offers{margin:0;max-width:none;width:100%;height:100%;display:flex;flex-direction:column}
.txb-rich-placement .txb-rich-offers-grid{flex:1 0 auto;align-content:start}
.txb-rich-offers-empty{min-height:155px;justify-content:center}
.txb-rich-offers-empty p{font-size:13px}
@container (max-width: 760px){
 .txb-rich-offers-grid{grid-template-columns:minmax(0,1fr)}
}
@container (max-width: 420px){
 .txb-rich-offer{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;min-height:0;gap:7px}
 .txb-rich-offer img{grid-column:1;grid-row:1;width:100%;height:auto;aspect-ratio:16/9}
 .txb-rich-offer-copy{grid-column:1;grid-row:2;height:auto;min-height:0;width:100%}
 .txb-rich-offer-count{margin-top:5px}
}
@container (max-width: 240px){
 .txb-rich-offers{padding:8px}
 .txb-rich-offer{padding:6px;gap:6px}
 .txb-rich-offer strong{font-size:13px}
 .txb-rich-offer-description{font-size:12px}
 .txb-rich-offer-count{font-size:11px;gap:4px}
}

/* Member workspace: a restrained teal-blue offer rail distinct from the dark
   workspace. The creative cards stay light and readable; admin pages and public
   Rich embeds retain their existing styles. */
.txb-adminlte .txb-member-side-offers .txb-rich-placement{height:auto}
.txb-adminlte .txb-member-side-offers .txb-rich-offers{
 background:linear-gradient(155deg,#25475a 0%,#1e374a 100%);
 color:#eefaff;border:1px solid #43778a;border-top:3px solid #42b8d1;
 border-radius:12px;padding:12px;box-shadow:0 6px 20px rgba(0,0,0,.12);
}
.txb-adminlte .txb-member-side-offers .txb-rich-offers h2{color:#f1fbff;font-size:16px;line-height:1.35}
.txb-adminlte .txb-member-side-offers .txb-rich-offers>p{color:#bcd5e1}
.txb-adminlte .txb-member-side-offers .txb-rich-offer{
 background:#eef5fa;color:#185b9b;border:1px solid #b8d4e3;
}
.txb-adminlte .txb-member-side-offers .txb-rich-offer:focus-visible{outline:3px solid #56cbe1;outline-offset:2px}
.txb-adminlte .txb-member-side-offers .txb-rich-offer-description,
.txb-adminlte .txb-member-side-offers .txb-rich-offer-count,
.txb-adminlte .txb-member-side-offers .txb-rich-count-label{color:#354f65}
@media (max-width:1199.98px){
 .txb-adminlte .txb-member-side-offers .txb-rich-offers{margin-top:.4rem}
}
