/* RiderPress event states. Decorative overlays; original artwork is untouched. */
.rp-event-poster-frame,.rp-detail-poster-frame,.rp-featured-poster-frame{position:relative;display:block;overflow:hidden;isolation:isolate}
.rp-event-poster-frame{flex:0 0 auto;align-self:flex-start;max-width:100%}
.rp-event-poster-frame img,.rp-detail-poster-frame img,.rp-featured-poster-frame img{display:block;max-width:100%;height:auto}
.rp-event-poster-frame .rp-event-poster{max-width:100%}
.rp-status-ribbons{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.rp-status-ribbon{--rp-bg:#ffcc00;--rp-fg:#111;position:absolute;left:-54px;top:27px;display:block;box-sizing:border-box;width:220px;max-width:none;transform:rotate(-35deg);background:var(--rp-bg);color:var(--rp-fg);font:800 11px/1.15 system-ui,sans-serif;text-align:center;letter-spacing:.015em;padding:8px 15px;box-shadow:0 2px 6px #0007;white-space:normal}
.rp-status-ribbon:nth-child(2){top:79px}.rp-status-ribbon:nth-child(3){top:131px}.rp-status-ribbon:nth-child(4){top:183px}
.rp-status-date_provisional{--rp-bg:#ffcc00;--rp-fg:#151515}
.rp-status-poster_provisional{--rp-bg:#f47a12;--rp-fg:#fff}
.rp-status-verified{--rp-bg:#168b28;--rp-fg:#fff}
.rp-status-unverified{--rp-bg:#506c82;--rp-fg:#fff}
.rp-detail-poster-frame .rp-status-ribbon,.rp-featured-poster-frame .rp-status-ribbon{width:295px;left:-62px;top:42px;font-size:13px;padding:11px 24px}
.rp-detail-poster-frame .rp-status-ribbon:nth-child(2),.rp-featured-poster-frame .rp-status-ribbon:nth-child(2){top:112px}
.rp-detail-poster-frame .rp-status-ribbon:nth-child(3),.rp-featured-poster-frame .rp-status-ribbon:nth-child(3){top:182px}
.rp-detail-poster-frame .rp-status-ribbon:nth-child(4),.rp-featured-poster-frame .rp-status-ribbon:nth-child(4){top:252px}
.rp-status-banners{display:grid;gap:8px;margin:12px 0 18px}
.rp-status-banner{--rp-bg:#ffcc00;--rp-fg:#151515;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:11px 16px;border-left:5px solid #151515;background:var(--rp-bg);color:var(--rp-fg);border-radius:3px;line-height:1.35}
.rp-status-banner.rp-status-date_provisional{--rp-bg:#ffcc00;--rp-fg:#151515}
.rp-status-banner.rp-status-poster_provisional{--rp-bg:#f47a12;--rp-fg:#fff}
.rp-status-banner.rp-status-verified{--rp-bg:#168b28;--rp-fg:#fff}
.rp-status-banner.rp-status-unverified{--rp-bg:#506c82;--rp-fg:#fff}
.rp-status-banner strong{font-weight:900;letter-spacing:.02em}.rp-status-banner span{font-size:.94em}
@media(max-width:600px){.rp-status-ribbon{width:180px;left:-47px;top:22px;font-size:9px;padding:6px 11px}.rp-status-ribbon:nth-child(2){top:64px}.rp-status-ribbon:nth-child(3){top:106px}.rp-status-ribbon:nth-child(4){top:148px}.rp-status-banner{padding:10px 12px}.rp-status-banner span{font-size:.85em}}
/* Restore original card geometry. Status wrappers ONLY exist for selected events. */
.rp-event-row:has(>.rp-event-poster-frame){grid-template-columns:70px 52px minmax(0,1fr);gap:12px}
.rp-event-row>.rp-event-poster-frame{width:70px;max-width:none;min-width:0;align-self:center}
.rp-event-row>.rp-event-poster-frame .rp-event-poster{display:block;width:70px;height:90px;object-fit:contain}
.rp-event-row:has(>.rp-event-poster-frame)>.rp-event-action{grid-column:3}
.rp-home-upcoming .rp-event-row:has(>.rp-event-poster-frame){grid-template-columns:50px minmax(0,1fr)}
.rp-home-upcoming .rp-event-row>.rp-event-poster-frame{width:50px}
.rp-home-upcoming .rp-event-row>.rp-event-poster-frame .rp-event-poster{width:50px;height:70px}
.rp-home-upcoming .rp-event-row:has(>.rp-event-poster-frame)>.rp-event-date{display:none}
.rp-home-upcoming .rp-event-row:has(>.rp-event-poster-frame)>.rp-event-action{grid-column:2}
.rp-agenda-event>.rp-event-poster-frame{width:104px!important;max-width:104px;align-self:center;background:#0a0a0a}
.rp-agenda-event>.rp-event-poster-frame .rp-event-poster{width:104px!important;height:136px!important;object-fit:contain!important}
.rp-agenda-event:has(>.rp-event-poster-frame){grid-template-columns:104px 96px minmax(0,1fr)!important}
.rp-detail-poster-frame{width:100%}
.single-rp_event .rp-detail-poster-frame img{width:100%;height:auto;max-height:700px;object-fit:contain}
.rp-event-row>.rp-event-poster-frame .rp-status-ribbon{width:150px;left:-40px;top:18px;font-size:8px;padding:5px 10px}
.rp-event-row>.rp-event-poster-frame .rp-status-ribbon:nth-child(2){top:47px}
.rp-event-row>.rp-event-poster-frame .rp-status-ribbon:nth-child(3){top:76px}
.rp-event-row>.rp-event-poster-frame .rp-status-ribbon:nth-child(4){top:105px}
@media(max-width:720px){
 .rp-event-row:has(>.rp-event-poster-frame){grid-template-columns:55px minmax(0,1fr)}
 .rp-event-row>.rp-event-poster-frame{width:55px}
 .rp-event-row>.rp-event-poster-frame .rp-event-poster{width:55px;height:75px}
 .rp-event-row:has(>.rp-event-poster-frame)>.rp-event-date{display:none}
 .rp-event-row:has(>.rp-event-poster-frame)>.rp-event-action{grid-column:2}
 .rp-agenda-event:has(>.rp-event-poster-frame){grid-template-columns:78px minmax(0,1fr)!important}
 .rp-agenda-event>.rp-event-poster-frame{width:78px!important;max-width:78px;grid-column:1;grid-row:1/3}
 .rp-agenda-event>.rp-event-poster-frame .rp-event-poster{width:78px!important;height:108px!important}
}


/* RiderPress 4.10.325 · compatibility fix for wrapped posters in event cards/listings */
body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame){display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;align-items:start;gap:18px;padding:16px}
body.riderpress-ui .rp-agenda-event>.rp-event-poster-frame{display:block;grid-column:1!important;grid-row:1!important;width:180px!important;max-width:180px!important;min-width:180px!important;align-self:start;justify-self:start;background:transparent!important;overflow:hidden}
body.riderpress-ui .rp-agenda-event>.rp-event-poster-frame .rp-event-poster{display:block;width:180px!important;max-width:180px!important;height:auto!important;max-height:320px!important;object-fit:contain!important;object-position:top center!important;background:#0a0a0a}
body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame)>.rp-event-info{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important}
body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame) .rp-agenda-tools{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0!important}
body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame) .rp-agenda-event-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:10px!important;width:100%!important;min-width:0!important}
body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame) .rp-agenda-event-actions>.rp-btn{display:inline-flex!important;width:auto!important;min-width:0!important;flex:0 1 auto!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame) .rp-event-days-left{margin:0!important}
body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame)>.rp-recommend{grid-column:1/-1!important;grid-row:1!important;order:-1}
body.riderpress-ui .rp-agenda-event:has(>.rp-recommend):has(>.rp-event-poster-frame)>.rp-event-poster-frame,
body.riderpress-ui .rp-agenda-event:has(>.rp-recommend):has(>.rp-event-poster-frame)>.rp-event-info{grid-row:2!important}

/* Home / related lists using the wrapped poster */
body.riderpress-ui .rp-home-upcoming .rp-event-row:has(>.rp-event-poster-frame){display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;gap:10px 12px!important;align-items:start}
body.riderpress-ui .rp-home-upcoming .rp-event-row>.rp-event-poster-frame{grid-column:1!important;grid-row:1 / span 3!important;width:52px!important;max-width:52px!important;min-width:52px!important;align-self:start}
body.riderpress-ui .rp-home-upcoming .rp-event-row>.rp-event-poster-frame .rp-event-poster{width:52px!important;max-width:52px!important;height:auto!important;max-height:86px!important;object-fit:contain!important}
body.riderpress-ui .rp-home-upcoming .rp-event-row:has(>.rp-event-poster-frame) .rp-event-date{grid-column:2!important}
body.riderpress-ui .rp-home-upcoming .rp-event-row:has(>.rp-event-poster-frame) .rp-event-info{grid-column:2!important;min-width:0!important}
body.riderpress-ui .rp-home-upcoming .rp-event-row:has(>.rp-event-poster-frame)>.rp-event-action{grid-column:2!important}

@media(max-width:900px){
 body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame){grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:12px!important}
 body.riderpress-ui .rp-agenda-event>.rp-event-poster-frame{grid-column:1!important;grid-row:auto!important;width:auto!important;max-width:100%!important;min-width:0!important;justify-self:center!important}
 body.riderpress-ui .rp-agenda-event>.rp-event-poster-frame .rp-event-poster{width:auto!important;max-width:100%!important;height:auto!important;max-height:320px!important}
 body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame)>.rp-event-info{grid-column:1!important;grid-row:auto!important;width:100%!important}
 body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame) .rp-agenda-event-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster-frame) .rp-agenda-event-actions>.rp-btn{display:flex!important;width:100%!important;max-width:100%!important;height:46px!important;padding:6px 4px!important;font-size:11px!important;justify-content:center!important;text-align:center!important}
}


/* RiderPress 4.10.327: original poster geometry, horizontal status bars only. */
.rp-status-ribbons,.rp-status-ribbon{display:none!important}
.rp-status-banners--compact{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.rp-status-banners--compact .rp-status-banner{display:inline-flex;min-height:0;padding:7px 12px;border-left:0;border-radius:2px}
.rp-status-banners--compact .rp-status-banner strong{font-size:12px;line-height:1.2}
.rp-status-banners--compact .rp-status-banner span{display:none}
body.riderpress-ui .rp-agenda-event{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;column-gap:18px!important;row-gap:12px!important;align-items:stretch!important;padding:16px!important;min-height:330px}
body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster){grid-template-columns:220px minmax(0,1fr)!important}
body.riderpress-ui .rp-agenda-event>.rp-recommend,
body.riderpress-ui .rp-agenda-event>.rp-status-banners{grid-column:1/-1!important;grid-row:auto!important;width:100%!important;box-sizing:border-box;margin:0!important}
body.riderpress-ui .rp-agenda-event>.rp-event-poster{grid-column:1!important;grid-row:auto!important;display:block!important;width:220px!important;min-width:220px!important;max-width:220px!important;height:320px!important;min-height:0!important;max-height:320px!important;object-fit:contain!important;object-position:center center!important;justify-self:start!important;align-self:center!important;margin:0!important;background:#0a0a0a}
body.riderpress-ui .rp-agenda-event>.rp-event-info{grid-column:2!important;grid-row:auto!important;min-width:0!important;width:100%!important;align-self:center!important}
body.riderpress-ui .rp-agenda-event .rp-agenda-tools{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0!important}
body.riderpress-ui .rp-agenda-event .rp-agenda-event-actions{display:flex!important;flex-wrap:wrap!important;flex-direction:row!important;gap:10px!important;width:100%!important;min-width:0!important}
body.riderpress-ui .rp-agenda-event .rp-agenda-event-actions>.rp-btn{display:inline-flex!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;white-space:normal!important}
/* At smaller widths, retain the original poster proportions while avoiding forced cropping. */
@media(max-width:720px){
 body.riderpress-ui .rp-agenda-event,
 body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster){grid-template-columns:140px minmax(0,1fr)!important;gap:10px!important;min-height:270px;padding:12px!important}
 body.riderpress-ui .rp-agenda-event>.rp-event-poster{grid-column:1!important;grid-row:auto!important;width:140px!important;min-width:140px!important;max-width:140px!important;height:240px!important;max-height:240px!important;object-fit:contain!important;align-self:start!important}
 body.riderpress-ui .rp-agenda-event>.rp-event-info{grid-column:2!important;grid-row:auto!important;align-self:start!important}
 body.riderpress-ui .rp-agenda-event .rp-agenda-event-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 body.riderpress-ui .rp-agenda-event .rp-agenda-event-actions>.rp-btn{display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:44px!important;padding:6px 4px!important;font-size:11px!important;align-items:center;justify-content:center;text-align:center}
}
@media(max-width:380px){
 body.riderpress-ui .rp-agenda-event,
 body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster){grid-template-columns:120px minmax(0,1fr)!important}
 body.riderpress-ui .rp-agenda-event>.rp-event-poster{width:120px!important;min-width:120px!important;max-width:120px!important;height:210px!important;max-height:210px!important}
}
.single-rp_event .rp-detail-media img{display:block;width:100%;max-width:100%;height:auto;max-height:700px;object-fit:contain}
