/* Shared red-card look — the events.html design card, used by BOTH the event
   list and the crew / club listings. Enqueued globally ( vesper-community.php )
   because the cards appear on the events page, the group directories AND the
   in-page MotoHub / menu overlays. This file is the ONLY source of card CSS —
   nothing may duplicate these rules ( events.css used to, and because it
   loaded later its stale copy won, which distorted every card ).

   Design source: events (3).html, canvas 900x1600. Every card sits at
   x 90..810 ( 720 wide ) and is 430 tall: the photo fills the left 360 ( 50% ),
   the flat red panel the right 360 ( 50% ) — flush top and bottom, no
   overhang — and a 168x105 dark-red triangle hangs below the photo, 5px in
   from its left edge ( rows are pitched 430 + 157 apart ). The panel is FLAT
   #fc1817: the diagonal lattice visible in the Canva file is the editor's
   watermark and is deliberately absent from the design HTML. Every third card
   runs the design's red -> black gradient. */

/* grid — one card per row, the design's own 720 x 430 block, centred */
.vpe-grid{display:grid;grid-template-columns:minmax(0,720px);justify-content:center;gap:100px 0}
.vpe-grid[hidden]{display:none}
.vpe-empty{color:#8f8f8f;grid-column:1/-1}

/* card : image left, red panel right — locked to the design's 720 x 430.
   The card keeps that exact ratio at every width: the photo fills the left
   half, the flat red panel the right half, both flush top and bottom. This is
   what keeps the card tall like the design — the old media-driven height let
   it collapse to a short strip. */
.vpe-card{position:relative}
.vpe-card__link{
    display:flex;text-decoration:none;color:inherit;
    position:relative;background:#0C0D0F;
    aspect-ratio:720 / 430;
}
.vpe-card__media{position:relative;flex:0 0 50%;max-width:50%;overflow:hidden;background:#000}
.vpe-card__img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.vpe-card__img--ph{background:linear-gradient(135deg,#1a1a1a,#000)}
.vpe-card__status{position:absolute;top:10px;left:10px;z-index:3;background:#0C0D0F;color:#F10000;font-size:11px;font-weight:700;letter-spacing:.06em;padding:4px 9px;text-transform:uppercase}
.vpe-card__panel{
    position:relative;flex:0 0 50%;max-width:50%;
    background:#fc1817;
    --vpe-ink:#0C0D0F;
    overflow:hidden;
    display:flex;flex-direction:column;justify-content:space-between;gap:10px;
    padding:clamp(10px,2.2vw,18px);
}
/* third card of every row runs the design's red → black gradient */
.vpe-grid .vpe-card:nth-child(3n) .vpe-card__panel{
    --vpe-ink:#EDEBE6;
    background:linear-gradient(#fc1817 0,#fc1817 5%,#ab0a02 20%,#a61010 32%,#500607 65%,#1a0405 95%,#070101 100%);
}
.vpe-card__name{
    position:relative;z-index:1;
    font-family:"Oswald",sans-serif;
    font-size:clamp(17px,2.6vw,28px);font-weight:700;letter-spacing:.02em;line-height:1.1;
    color:rgba(0,0,0,.32);
    text-transform:uppercase;
    text-align:center;
    overflow:hidden;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-clamp:3;
    pointer-events:none;
}
.vpe-card__meta{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.vpe-card__meta-row{display:flex;align-items:center;gap:5px;min-width:0;max-width:100%;color:var(--vpe-ink);font-size:clamp(11px,1.5vw,14px);font-weight:600;line-height:1.3;letter-spacing:.01em}
.vpe-card__meta-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vpe-card__ico{display:inline-flex;flex:0 0 auto;line-height:0;opacity:.85}
.vpe-card__price{background:var(--vpe-ink);color:#F10000;padding:2px 8px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
/* dark red triangle hanging below the photo — design: left 5, 168 x 105 of
   the 720 x 430 card ( 23.33% wide, 24.42% of the card height ) */
.vpe-card__ptr{
    position:absolute;left:.7%;top:100%;width:23.33%;height:24.42%;
    background:#b80926;clip-path:polygon(0 0,100% 0,100% 100%);
    pointer-events:none;
}
.vpe-card__link:hover .vpe-card__panel{filter:brightness(1.05)}
