/* Events, a single event and the main activity feed in the round 6 look (area "events-feed", 14 Oct restyle).
   Loaded by includes/pages/events-feed.php on these pages only. Built from the approved parts: the ld-event card (landdu.css), the ld-btn, the community post card
   (community-posts.css: white card, row shadow, 22px radius) and the tokens. Adrian's header, footer and join band are not touched here. */

body.ld-evf { --ef-gap: 20px; }
/* the header is fixed, so the page starts below it (the same ground as the listings pages) */
body.ld-evf #content.site-content, body.ld-evf .site-content { background: var(--ld-surface); padding-top: 32px; }
body.ld-evf .site-content-grid { padding-bottom: var(--ld-section-y); }
body.ld-evf #primary, body.ld-evf .content-area { width: 100%; max-width: none; margin: 0; }
@media (max-width: 599px) { body.ld-evf #content.site-content, body.ld-evf .site-content { padding-top: 16px; } }

/* =========================================================== /events/ */
.ld-evf-wrap { width: 100%; font-family: var(--ld-text); color: var(--ld-ink); }
.ld-evf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.ld-evf-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.ld-evf-title h1 { margin: 0; font: var(--ld-weight-display) var(--ld-fs-h2)/1.02 var(--ld-heading); font-stretch: var(--ld-stretch-h2); letter-spacing: -.01em; color: var(--ld-midnight); text-shadow: var(--ld-lift-light); }
.ld-evf-count { font: 500 14px/1 var(--ld-text); color: var(--ld-text-faint); }
.ld-evf-head .ld-btn { flex: none; }



/* the grid of ld-event cards */
.ld-evf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--ef-gap); }
.ld-evf-grid .ld-event { background: var(--ld-white); box-shadow: var(--ld-shadow-row); min-width: 0; }
.ld-evf-grid .ld-event__body h3 { overflow-wrap: anywhere; }
/* grid / list switch (Adrian's idu-view-btn, parity 15 Oct): a white pill pair like the members page; list view lays each card as a row, photo left */
.ld-evf .idu-view-switch.ld-evf-view { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 4px; box-sizing: border-box; border: 0; border-radius: var(--ld-r-pill); background: var(--ld-white); box-shadow: var(--ld-shadow-row); }
.ld-evf .ld-evf-view .idu-view-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 32px; padding: 0; border: 0; border-radius: var(--ld-r-pill); background: transparent; color: var(--ld-text-faint); box-shadow: none; cursor: pointer; transition: background .15s, color .15s; }
.ld-evf .ld-evf-view .idu-view-btn.is-active { background: var(--ld-midnight); color: var(--ld-white); }
.ld-evf .ld-evf-view .idu-view-btn svg { width: 18px; height: 18px; }
.ld-evf .ld-evf-view .idu-view-btn svg path { fill: currentColor; }
.ld-evf .ld-evf-view--phone { display: none; }
@media (min-width: 901px) {
	body.ld-evf .ldf .idu-results.idu-view-list .ld-evf-grid { grid-template-columns: 1fr; gap: 14px; }
	body.ld-evf .ldf .idu-results.idu-view-list .ld-evf-grid .ld-event { flex-direction: row; }
	body.ld-evf .ldf .idu-results.idu-view-list .ld-evf-grid .ld-event__img { flex: 0 0 260px; aspect-ratio: auto; min-height: 170px; }
	body.ld-evf .ldf .idu-results.idu-view-list .ld-evf-grid .ld-event__body { min-width: 0; }
}
.ld-evf-empty { margin: 0; padding: 36px 24px; border-radius: var(--ld-r-card); background: var(--ld-white); box-shadow: var(--ld-shadow-row); font: 500 16px/1.5 var(--ld-text); color: var(--ld-text-muted); text-align: center; }

/* numbered pages */
.ld-evf-pages { margin: 36px 0 0; }
.ld-evf-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; margin: 0 4px 6px 0; padding: 0 14px; box-sizing: border-box; border-radius: var(--ld-r-pill); background: var(--ld-white); color: var(--ld-midnight); box-shadow: inset 0 0 0 1px var(--ld-line); font: 600 14px/1 var(--ld-text); text-decoration: none; }
.ld-evf-pages a.page-numbers:hover { box-shadow: inset 0 0 0 1.5px var(--ld-electric); }
.ld-evf-pages .page-numbers.current { background: var(--ld-midnight); color: var(--ld-white); box-shadow: none; }

/* =========================================================== a single event
   Adrian's single-event template (child theme tribe-events/single-event.php) uses the same idu-single parts as a listing, so it takes the same round 6 treatment as the listings singles (listings.css, same rules, scoped to this page). */
body.ld-evf--single .idu-wrap { color: var(--ld-ink); font-family: var(--ld-text); overflow-wrap: break-word; }
body.ld-evf--single .idu-wrap h1, body.ld-evf--single .idu-wrap h2, body.ld-evf--single .idu-wrap h3 { font-family: var(--ld-heading); }
body.ld-evf--single .idu-single { padding: 8px 0 72px; }
body.ld-evf--single #tribe-events-content.idu-wrap, body.ld-evf--single #tribe-events-pg-template, body.ld-evf--single .tribe-events-pg-template { background: none; box-shadow: none; border: 0; }
body.ld-evf--single .idu-single .idu-gallery-main, body.ld-evf--single .idu-single .idu-gallery-img { border-radius: var(--ld-r-card); }
body.ld-evf--single .idu-single .idu-gallery-main { box-shadow: var(--ld-shadow-card); overflow: hidden; }
body.ld-evf--single .idu-single .idu-gallery-nav { background: var(--ld-glass); color: var(--ld-midnight); border: 0; box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); }
body.ld-evf--single .idu-single .idu-gallery-thumb-btn { border-radius: var(--ld-r-chip); border: 0; overflow: hidden; }
body.ld-evf--single .idu-single .idu-gallery-thumb-btn.is-active { box-shadow: 0 0 0 2px var(--ld-electric); }
body.ld-evf--single .idu-single .idu-sidebar-top, body.ld-evf--single .idu-single .idu-panel, body.ld-evf--single .idu-single .idu-related {
	background: var(--ld-white); border: 0; border-radius: var(--ld-r-card); box-shadow: var(--ld-shadow-card);
}
/* the sidebar card holds the buy box, seller and share flat inside it, so no card inside a card */
body.ld-evf--single .idu-single .idu-buybox, body.ld-evf--single .idu-single .idu-share-card { background: none; border: 0; box-shadow: none; }
body.ld-evf--single .idu-single .idu-seller-card { background: var(--ld-pearl); border: 0; border-radius: var(--ld-r-chip); box-shadow: none; }
body.ld-evf--single .idu-single .idu-keyfact { background: var(--ld-pearl); border: 0; border-radius: var(--ld-r-pill); box-shadow: none; }
body.ld-evf--single .idu-single .idu-gallery-noimg { background: var(--ld-pearl); }
/* no photo: the colour band and icon (same classes as the /events/ cards), sized like the photo area */
body.ld-evf--single .idu-single .idu-gallery-noimg.ld-event__img--band { width: 100%; aspect-ratio: 16 / 10; min-height: 220px; }
body.ld-evf--single .idu-single .idu-gallery-noimg.ld-event__img--band { display: grid; place-items: center; position: relative; }
body.ld-evf--single .idu-single .idu-gallery-noimg.ld-event__img--band .ld-event__band-ic { position: static; inset: auto; width: 18%; max-width: 110px; height: auto; aspect-ratio: 1; }
body.ld-evf--single .idu-single .idu-gallery-noimg.ld-event__img--blue { background: linear-gradient(135deg, var(--ld-electric) 0%, var(--ld-ice-soft) 100%); }
body.ld-evf--single .idu-single .idu-gallery-noimg.ld-event__img--night { background: linear-gradient(135deg, var(--ld-midnight) 0%, var(--ld-ink-night) 100%); }
body.ld-evf--single .idu-single .idu-gallery-noimg.ld-event__img--gold { background: linear-gradient(135deg, var(--ld-gold) 0%, var(--ld-gold-2) 100%); }
body.ld-evf--single .idu-single .idu-single-title { font: var(--ld-weight-display) clamp(26px, 5vw, 36px)/1.08 var(--ld-heading); font-stretch: var(--ld-stretch-h2); letter-spacing: -.01em; color: var(--ld-midnight); overflow-wrap: anywhere; }
body.ld-evf--single .idu-single .idu-price { font: var(--ld-weight-display) 30px/1 var(--ld-heading); font-stretch: 112%; color: var(--ld-midnight); }
body.ld-evf--single .idu-single .idu-price .idu-per { font: 500 14px/1 var(--ld-text); color: var(--ld-text-faint); }
body.ld-evf--single .idu-single .idu-section-title { font: var(--ld-weight-display) 22px/1.15 var(--ld-heading); color: var(--ld-midnight); }
body.ld-evf--single .idu-single .idu-desc, body.ld-evf--single .idu-single .idu-desc p { font: 400 16px/1.6 var(--ld-text); color: var(--ld-ink); overflow-wrap: anywhere; }
body.ld-evf--single .idu-single .idu-keyfact { color: var(--ld-ink); }
body.ld-evf--single .idu-single .idu-ico { color: var(--ld-electric); }
body.ld-evf--single .idu-single .idu-specs li { border-color: var(--ld-hairline); }
body.ld-evf--single .idu-single .idu-spec-label { color: var(--ld-text-muted); }
body.ld-evf--single .idu-single .idu-spec-value { color: var(--ld-midnight); }
body.ld-evf--single .idu-single .idu-feature { background: var(--ld-info-bg); color: var(--ld-deep); border-radius: var(--ld-r-pill); }
body.ld-evf--single .idu-single .idu-related-title { font: var(--ld-weight-display) var(--ld-fs-h2)/1.02 var(--ld-heading); font-stretch: var(--ld-stretch-h2); color: var(--ld-midnight); }
body.ld-evf--single .idu-single .idu-map iframe { border-radius: var(--ld-r-chip); }
body.ld-evf--single .idu-single .idu-message-text { border: 0; border-radius: var(--ld-r-chip); background: var(--ld-pearl); font: 400 15px/1.5 var(--ld-text); }
body.ld-evf--single .idu-single .idu-message-text:focus { outline: 2px solid var(--ld-electric); outline-offset: 2px; }

/* ---- Phone: nothing runs sideways ---- */
body.ld-evf--single .idu-wrap { overflow-wrap: break-word; }
/* related events (Adrian's fallback card): the same family as .ld-card */
body.ld-evf--single .idu-card-title { font: 600 var(--ld-fs-card)/1.3 var(--ld-text); letter-spacing: 0; color: var(--ld-ink); }
body.ld-evf--single .idu-card-price { padding: 7px 12px; font: var(--ld-weight-display) 15px/1 var(--ld-heading); letter-spacing: 0; color: var(--ld-midnight); background: var(--ld-glass); backdrop-filter: blur(8px); }
body.ld-evf--single .idu-card-loc { font: 400 var(--ld-fs-meta)/1.3 var(--ld-text); color: var(--ld-text-faint); }
body.ld-evf--single .idu-card-loc::after { display: none; }
body.ld-evf--single .idu-badge { background: var(--ld-scrim); color: var(--ld-white); font: 600 var(--ld-fs-pill)/1 var(--ld-text); letter-spacing: 0; box-shadow: none; }
body.ld-evf--single .idu-featured-flag { background: linear-gradient(90deg, var(--ld-gold), var(--ld-gold-2)); color: var(--ld-gold-ink); font: 700 var(--ld-fs-pill)/1 var(--ld-text); letter-spacing: .06em; text-transform: uppercase; }
@media (hover: hover) { body.ld-evf--single .idu-card:hover { transform: translateY(-6px); } }

/* ---- Single listing ---- */
/* the date chip on the photo: the ld-event date block */
body.ld-evf--single .idu-ev-date, body.ld-evf--single .idu-event-media .idu-ev-date { border-radius: 14px; background: var(--ld-white); color: var(--ld-midnight); box-shadow: 0 8px 20px -10px rgba(11,13,26,.5); }
body.ld-evf--single .idu-ev-date-day { font: 800 24px/1.05 var(--ld-heading); color: var(--ld-midnight); }
body.ld-evf--single .idu-ev-date-month { font: 600 10.5px/1 var(--ld-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ld-electric); }
body.ld-evf--single .idu-ev-when { font: 500 var(--ld-fs-meta)/1.3 var(--ld-text); color: var(--ld-text-faint); }
body.ld-evf--single .idu-event-actions .idu-btn { border-radius: var(--ld-r-pill); }
/* Adrian's "I will attend" (idu-listings event-attend.php, 15 Oct) in our pills: off is the primary electric pill, on ("Attending · N going") is the Joined ice pill. His script and labels unchanged. */
body.ld-evf--single .idu-event-single .idu-attend__btn { min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--ld-r-pill); background: var(--ld-electric); color: var(--ld-white); box-shadow: none; font: 600 15px/1 var(--ld-text); transition: background .15s, transform .15s, opacity .15s; }
body.ld-evf--single .idu-event-single .idu-attend__btn:hover, body.ld-evf--single .idu-event-single .idu-attend__btn:focus { background: var(--ld-deep, #1f3fd1); color: var(--ld-white); filter: none; }
body.ld-evf--single .idu-event-single .idu-attend__btn:active { transform: scale(.97); }
body.ld-evf--single .idu-event-single .idu-attend__btn:focus-visible { outline: 2px solid var(--ld-electric); outline-offset: 3px; }
body.ld-evf--single .idu-event-single .idu-attend__btn.is-going, body.ld-evf--single .idu-event-single .idu-attend__btn.is-going:hover, body.ld-evf--single .idu-event-single .idu-attend__btn.is-going:focus, body.ld-evf--single .idu-event-single .idu-attend__btn.is-past { border: 0; background: var(--ld-ice); color: var(--ld-midnight); }
body.ld-evf--single .idu-event-single .idu-attend__btn .idu-attend__count { color: inherit; opacity: .75; font-weight: 500; }
body.ld-evf--single .idu-event-single .idu-attend__btn[aria-busy="true"] { opacity: .6; }
body.ld-evf--single .idu-event-single .idu-attend__btn svg { stroke: currentColor; }
body.ld-evf--single .idu-related .idu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
body.ld-evf--single .idu-grid > .idu-card { min-width: 0; }
body.ld-evf--single .idu-card-title, body.ld-evf--single .idu-card-loc, body.ld-evf--single .idu-ev-when { overflow-wrap: anywhere; }

/* =========================================================== the activity feed */
body.ld-evf--feed main#main, body.ld-evf--feed article.bp_activity { max-width: 760px; margin: 0 auto; }
body.ld-evf--feed article.bp_activity header.entry-header h1.entry-title, body.ld-evf--feed .bp-screen-title { margin: 0 0 18px; font: var(--ld-weight-display) var(--ld-fs-h2)/1.02 var(--ld-heading); font-stretch: var(--ld-stretch-h2); letter-spacing: -.01em; color: var(--ld-midnight); text-shadow: var(--ld-lift-light); }
body.ld-evf--feed #buddypress, body.ld-evf--feed #buddypress .screen-content { background: none; font-family: var(--ld-text); color: var(--ld-ink); }

/* composer (the "what's on your mind" bar) */
body.ld-evf--feed #buddypress #whats-new-form-placeholder { margin: 0 0 14px; padding: 14px 18px; border: 0; border-radius: var(--ld-r-card); background: var(--ld-white); box-shadow: var(--ld-shadow-row); }
body.ld-evf--feed #buddypress #whats-new-content-placeholder, body.ld-evf--feed #buddypress #whats-new-content-placeholder input { font: 500 15.5px/1.4 var(--ld-text); color: var(--ld-text-faint); }
body.ld-evf--feed #buddypress .activity-form-placeholder .bp-activity-huddle img.avatar { border-radius: 50%; }

/* search, sort */
body.ld-evf--feed #buddypress .activity-head-bar { margin: 0 0 14px; padding: 0; border: 0; background: none; }
body.ld-evf--feed #buddypress .subnav-filters .subnav-search input[type=search], body.ld-evf--feed #buddypress .subnav-filters input[type=search] { height: 44px; padding-left: 40px; border: 0; border-radius: var(--ld-r-pill); background-color: var(--ld-white); box-shadow: inset 0 0 0 1px var(--ld-line); font: 500 15px var(--ld-text); }
body.ld-evf--feed #buddypress .subnav-filters-opener, body.ld-evf--feed #buddypress .bb-subnav-filters-label { font: 600 14px/1 var(--ld-text); color: var(--ld-midnight); }

/* Adrian's tabs: the pill look of the community page chips */
body.ld-evf--feed .idu-activity-tabs__bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; background: none; }
body.ld-evf--feed button.idu-activity-tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--ld-r-pill); background: var(--ld-white); color: var(--ld-midnight); box-shadow: inset 0 0 0 1px var(--ld-line); font: 600 14.5px/1 var(--ld-text); text-transform: none; letter-spacing: 0; cursor: pointer; transition: background-color 160ms ease-out, box-shadow 160ms ease-out; }
body.ld-evf--feed button.idu-activity-tab:hover { background: var(--ld-white); color: var(--ld-midnight); box-shadow: inset 0 0 0 1.5px var(--ld-electric); }
body.ld-evf--feed button.idu-activity-tab.is-active { background: var(--ld-midnight); color: var(--ld-white); box-shadow: none; }
body.ld-evf--feed .idu-activity-group { margin: 0 0 14px; padding: 16px 18px; border: 0; border-radius: var(--ld-r-card); background: var(--ld-white); box-shadow: var(--ld-shadow-row); }
body.ld-evf--feed .idu-activity-subtabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--ld-r-pill); background: var(--ld-pearl); }
body.ld-evf--feed .idu-activity-subtabs a, body.ld-evf--feed .idu-activity-subtabs button { flex: 1; text-align: center; padding: 10px 8px; border: 0; border-radius: var(--ld-r-pill); background: none; color: var(--ld-midnight); font: 600 14px/1 var(--ld-text); text-decoration: none; }
body.ld-evf--feed .idu-activity-subtabs .is-active, body.ld-evf--feed .idu-activity-subtabs [aria-current], body.ld-evf--feed .idu-activity-subtabs .current { background: var(--ld-white); box-shadow: 0 1px 3px rgba(20,26,102,.18); }

/* the list of posts */
body.ld-evf--feed #buddypress #activity-stream { margin: 0; padding: 0; }
body.ld-evf--feed #buddypress #activity-stream ul.activity-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; border: 0; background: none; }
body.ld-evf--feed #buddypress #activity-stream ul.activity-list > li.activity-item { position: relative; margin: 0; padding: 16px 20px 6px; list-style: none; border: 0; border-radius: var(--ld-r-card); background: var(--ld-white); box-shadow: var(--ld-shadow-row); color: var(--ld-ink); overflow: visible; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .bp-activity-head { margin: 0; padding: 0 44px 0 0; min-height: 48px; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-avatar img, body.ld-evf--feed #buddypress #activity-stream li.activity-item .author-avatar img, body.ld-evf--feed #buddypress #activity-stream li.activity-item img.avatar { border-radius: 50%; object-fit: cover; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-header, body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-header p { font: 500 14px/1.4 var(--ld-text); color: var(--ld-text-muted); margin-top: 0; margin-bottom: 0; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-header a { font-weight: 650; color: var(--ld-ink); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-header a[href*="/groups/"] { font-weight: 600; color: var(--ld-midnight); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-time-since, body.ld-evf--feed #buddypress #activity-stream li.activity-item .time-since { font: 500 12.5px/1.3 var(--ld-text); color: var(--ld-text-faint); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item > .bb-activity-more-options-wrap { position: absolute; top: 12px; right: 10px; margin: 0; z-index: 3; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .bb-activity-more-options-action { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ld-text-faint); cursor: pointer; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .bb-activity-more-options-action:hover { background: var(--ld-pearl); color: var(--ld-ink); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-inner { margin: 14px 0 0; padding: 0; font: 400 15.5px/1.55 var(--ld-text); color: var(--ld-ink); overflow-wrap: anywhere; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-inner p { margin: 0 0 8px; font: inherit; color: inherit; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-inner a { color: var(--ld-electric); font-weight: 600; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-inner img { max-width: 100%; height: auto; border-radius: 14px; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-link-preview-container { margin-top: 12px; border-radius: 14px; overflow: hidden; background: var(--ld-pearl); box-shadow: inset 0 0 0 1px var(--ld-line); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-meta { margin: 8px -20px 0; padding: 4px 12px; border-top: 1px solid var(--ld-hairline); display: flex; gap: 4px; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-meta .generic-button { flex: 1; margin: 0; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-meta a.button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; border-radius: var(--ld-r-pill); background: none; color: var(--ld-midnight); box-shadow: none; font: 600 14px/1 var(--ld-text); text-transform: none; letter-spacing: 0; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-meta a.button:hover { background: var(--ld-pearl); color: var(--ld-midnight); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-meta a.button.has-like, body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-meta a.button.unfav { color: var(--ld-electric); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-comments { margin: 0 -20px; padding: 0 20px; }
body.ld-evf--feed #buddypress #activity-stream .load-more { list-style: none; text-align: center; }
body.ld-evf--feed #buddypress #activity-stream .load-more a { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: var(--ld-r-pill); background: var(--ld-white); box-shadow: var(--ld-shadow-row); font: 600 14px var(--ld-text); color: var(--ld-midnight); }
body.ld-evf--feed #buddypress .bp-feedback { border-radius: 16px; background: var(--ld-white); box-shadow: var(--ld-shadow-row); padding: 18px 20px; font: 500 15px var(--ld-text); color: var(--ld-text-muted); }

/* =========================================================== phone */
@media (max-width: 900px) {
	.ld-evf-head { align-items: center; margin-bottom: 18px; }
	.ld-evf-title h1 { font-size: var(--ld-fs-h2); }
	.ld-evf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--ld-wrap-pad) * -1); margin-right: calc(var(--ld-wrap-pad) * -1); padding: 0 var(--ld-wrap-pad) 2px; }
	.ld-evf-chips::-webkit-scrollbar { display: none; }
	a.ld-evf-chip { flex: none; }
	.ld-evf-bar { grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
	.ld-evf-field--search { grid-column: 1 / -1; }
	.ld-evf-grid { grid-template-columns: 1fr; }
	.ld-evf .ld-evf-tools .ld-evf-view { display: none; }
	.ld-evf .idu-archive-mobile-toolbar .ld-evf-view--phone { display: inline-flex; flex: none; height: 44px; }
	body.ld-filters.ld-evf .ldf--events .idu-archive-mobile-toolbar { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; }
	body.ld-filters.ld-evf .ldf--events .idu-archive-mobile-toolbar .ld-evf-view--phone { height: 40px; }
	/* phone: the list is the approved row list (filters.css) and the default (script in events-feed.php); grid is two columns of photo tiles */
	body.ld-filters.ld-evf .ldf .idu-results.idu-view-grid .ld-evf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
	body.ld-filters.ld-evf .ldf .idu-results.idu-view-grid .ld-evf-grid .ld-event { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 1px solid var(--lv-hair); border-bottom: 1px solid var(--lv-hair); border-radius: 16px; overflow: hidden; background: #fff; }
	body.ld-filters.ld-evf .ldf .idu-results.idu-view-grid .ld-evf-grid .ld-event__img { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
	body.ld-filters.ld-evf .ldf .idu-results.idu-view-grid .ld-evf-grid .ld-event__body { padding: 10px 12px 12px; }
	body.ld-filters.ld-evf .ldf .idu-results.idu-view-grid .ld-evf-grid .ld-event__body h3 { font-size: 14.5px; }
	body.ld-filters.ld-evf .ldf .idu-results.idu-view-grid .ld-evf-grid .ld-event__body p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
	body.ld-evf--feed button.idu-activity-tab { height: 42px; padding: 0 14px; }
}
@media (max-width: 480px) {
	.ld-evf-head .ld-btn { padding: 0 16px; }
	.ld-evf-bar { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { a.ld-evf-chip, .ld-evf-field input, .ld-evf-field select { transition: none; } }

/* feed: headings inside a post, and the comment line under it */
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-inner :is(h1, h2, h3, h4, strong, b) { font-family: var(--ld-heading); color: var(--ld-midnight); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .acomment-options, body.ld-evf--feed #buddypress #activity-stream li.activity-item .acomment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .acomment-options a { font: 600 13px/1 var(--ld-text); color: var(--ld-midnight); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-title { margin: 0 0 6px; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-title h2, body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-title h3 { margin: 0; font: 700 18px/1.25 var(--ld-heading); letter-spacing: 0; color: var(--ld-midnight); }
body.ld-evf--feed a.idu-activity-group__open { color: var(--ld-electric); font: 600 13px/1 var(--ld-text); }
body.ld-evf--feed #buddypress .bb-subnav-filters-search button.subnav-filters-opener { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ld-white); box-shadow: inset 0 0 0 1px var(--ld-line); color: var(--ld-midnight); }
body.ld-evf--feed #buddypress .bb-subnav-filters-search button.subnav-filters-opener:hover { box-shadow: inset 0 0 0 1.5px var(--ld-electric); }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .acomment-content a, body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-comments a:not(.button) { color: var(--ld-electric); font-weight: 600; overflow-wrap: anywhere; }
body.ld-evf--feed #buddypress #activity-stream li.activity-item .activity-state .comments-count { color: var(--ld-text-muted); font: 500 14px/1 var(--ld-text); }

/* ---- an event with no photo: the category's colour band and icon, never a stock photo (ldef_event_card in includes/pages/events-feed.php) ---- */
.ld-event__img--band { display: grid; place-items: center; }
.ld-event__img--blue { background: linear-gradient(135deg, var(--ld-electric) 0%, var(--ld-ice-soft) 100%); color: var(--ld-white); }
.ld-event__img--night { background: linear-gradient(135deg, var(--ld-midnight) 0%, var(--ld-ink-night) 100%); color: var(--ld-ice); }
.ld-event__img--gold { background: linear-gradient(135deg, var(--ld-gold) 0%, var(--ld-gold-2) 100%); color: var(--ld-gold-ink); }
.ld-event__img--band .ld-event__band-ic { width: 25%; max-width: 76px; min-width: 44px; aspect-ratio: 1; opacity: .92; }
.ld-event__img--band .ld-event__date { z-index: 1; }
/* QA A, 15 Oct: the event's Google map at 200px on a phone, not 320px (same as the listings) */
@media (max-width: 600px) { body.ld-evf--single .idu-single .idu-map iframe { height: 200px; } }
/* QA A, 15 Oct: a member with no photo gets a letter avatar (community-posts.php ldcp-av) carrying an inline 300px size; in the feed it stretched into a 62x131 oval. A 48px circle, like a photo avatar. */
body.ld-evf--feed #buddypress li.activity-item :is(.activity-avatar, .author-avatar, .comment-avatar, .acomment-avatar) .ldcp-av { display: grid !important; place-items: center; width: 48px !important; height: 48px !important; min-width: 48px; border-radius: 50% !important; font: 700 19px/1 var(--ld-text) !important; color: #fff !important; }
body.ld-evf--feed #buddypress li.activity-item :is(.acomment-avatar, .comment-avatar) .ldcp-av { width: 32px !important; height: 32px !important; min-width: 32px; font-size: 14px !important; }
/* QA A, 15 Oct (Chatty): a single event with no photo opens on its group's cover (events-feed.php ldef_group_cover), the date badge over it as on a photo;
   with no group the colour band is a slim 140px strip, not Adrian's tall block. */
body.ld-evf--single .idu-single img.idu-gallery-noimg.ld-event__img--cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
body.ld-evf--single .idu-single .idu-gallery-noimg.ld-event__img--band { aspect-ratio: auto; height: 140px; min-height: 0; }
body.ld-evf--single .idu-single .idu-gallery-noimg.ld-event__img--band .ld-event__band-ic { width: 52px; }
/* QA A, 15 Oct (Chatty): "posted a new event", "joined the group" and other mini cards carry an empty, padded content block, a ~40px gap above Like.
   BuddyBoss marks the empty body (.activity-inner.bb-empty-content) and leaves the likes/comments strip without a has-* class when there are none: hide both, and the content box goes when nothing is left in it. */
body.ld-evf--feed #buddypress li.activity-item .activity-inner.bb-empty-content,
body.ld-evf--feed #buddypress li.activity-item .activity-state:not([class*="has-"]) { display: none !important; }
body.ld-evf--feed #buddypress li.activity-item .activity-content:has(> .activity-inner.bb-empty-content):not(:has(> .activity-state[class*="has-"])) { display: none; }
/* =========================================================== Flow 5 redesign (28 Oct): the events list, date-first (events-feed.php, .lev).
   Quick chips under the search, results grouped under This week / Next week / month headings, one row per event (phone and list view) or
   a card (grid view, desktop): date tile, when, title, place, price and who it is for, who is going. The whole row is the link. */
body.ld-evf .lev { --lev-ink: var(--ld-midnight, #0a0e24); --lev-mut: #667089; --lev-hair: #e4e7ef; --lev-tint: #eef1f7; --lev-acc: var(--ld-electric, #3d63ff); --lev-yes: #0f6b46; --lev-yes-bg: #e7f6ee; }
.lev .ld-evf-head { margin-bottom: 16px; }
.lev .lev-create { display: inline-flex; align-items: center; gap: 8px; }
.lev .lev-create svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lev .ldf-search { margin-bottom: 12px; }

/* quick chips */

/* groups */
.lev-list { display: grid; gap: 28px; }
.lev-group__h { margin: 0 0 12px; font: 800 20px/1.2 var(--ld-heading); letter-spacing: -.01em; color: var(--lev-ink); text-shadow: none; }
.lev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

/* a card (grid view) */
.lev-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--lev-hair); color: var(--lev-ink); text-decoration: none; transition: box-shadow 200ms, transform 200ms cubic-bezier(.2,0,0,1); }
.lev-card:hover { color: var(--lev-ink); box-shadow: 0 0 0 1px var(--lev-hair), 0 18px 34px -22px rgba(10,14,36,.45); transform: translateY(-2px); }
.lev-card:active { transform: scale(.985); }
.lev-card:focus-visible { outline: 2px solid var(--lev-acc); outline-offset: 2px; }
.lev-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--lev-tint); overflow: hidden; }
.lev-media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lev-media__band { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.lev-media__band svg { width: 22%; max-width: 64px; height: auto; }
.lev-media__band--blue { background: linear-gradient(135deg, var(--ld-electric, #3d63ff) 0%, var(--ld-ice-soft, #9fb6ff) 100%); }
.lev-media__band--night { background: linear-gradient(135deg, var(--ld-midnight, #0a0e24) 0%, var(--ld-ink-night, #1e2fa8) 100%); }
.lev-media__band--gold { background: linear-gradient(135deg, var(--ld-gold, #e9b949) 0%, var(--ld-gold-2, #f4d58a) 100%); color: var(--lev-ink); }
.lev-tile { position: absolute; top: 10px; left: 10px; display: grid; justify-items: center; min-width: 44px; padding: 6px 6px 5px; border-radius: 10px; background: #fff; box-shadow: 0 6px 14px -8px rgba(10,14,36,.5); color: var(--lev-ink); }
.lev-tile small { font: 700 10px/1.1 var(--ld-text); letter-spacing: .06em; text-transform: uppercase; color: var(--lev-mut); }
.lev-tile b { font: 800 20px/1.05 var(--ld-heading); }
.lev-body { display: grid; gap: 4px; padding: 14px 16px 16px; min-width: 0; align-content: start; }
.lev-when { font: 700 13px/1.3 var(--ld-text); color: var(--lev-acc); letter-spacing: .01em; }
.lev-title { font: 700 17px/1.25 var(--ld-heading); color: var(--lev-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lev-place { font: 400 14px/1.35 var(--ld-text); color: var(--lev-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lev-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }
.lev-price { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--lev-tint); font: 700 12.5px/1 var(--ld-text); color: var(--lev-ink); }
.lev-price.is-free { background: var(--lev-yes-bg); color: var(--lev-yes); }
.lev-aud { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 500 13px/1.2 var(--ld-text); color: var(--lev-mut); }
.lev-aud > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lev-aud img, .lev-aud svg { flex: none; width: 20px; height: 20px; }
.lev-going { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 600 13px/1.2 var(--ld-text); color: var(--lev-ink); }
.lev-going.is-me { color: var(--lev-yes); }
.lev-going svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lev-faces { display: inline-flex; }
.lev-face { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; margin-left: -6px; background: var(--lev-tint); }
.lev-faces > :first-child { margin-left: 0; }
.lev-face--i { display: inline-grid; place-items: center; font: 700 10px/1 var(--ld-text); color: var(--lev-ink); background: #dfe6ff; }
.lev-card.is-past { opacity: .75; }

/* =========================================================== flow 5 v2 (28 Oct, after Kyle's 10:10pm no): cover-led cards on phone and desktop.
   The cover leads (photo, group cover or the designed category cover), the date tile and price sit on it, Eventbrite style.
   Desktop list switch: the same card as a row, cover on the left. Phones: always the big cover card, one per line, separated by space. */
.lev-card { border-radius: 14px; }
.lev-media { aspect-ratio: 16 / 9; }
.lev-tile { top: 12px; left: 12px; min-width: 46px; padding: 6px 7px 6px; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 8px 20px -10px rgba(10,14,36,.55); }
.lev-tile small { color: var(--lev-acc); font-size: 10.5px; letter-spacing: .08em; }
.lev-tile b { font-size: 22px; line-height: 1; margin-top: 1px; }
.lev-price--on { position: absolute; top: 12px; right: 12px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(10,14,36,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13px; }
.lev-price--on.is-free { background: rgba(255,255,255,.95); color: var(--lev-yes); }
.lev-media__band { overflow: hidden; }
.lev-band__big { position: absolute; right: -8%; bottom: -22%; width: 62%; opacity: .16; }
.lev-band__big svg { width: 100% !important; max-width: none !important; height: auto; stroke-width: 1.2; }
.lev-band__ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lev-band__ic svg { width: 30px !important; height: 30px; }
.lev-band__stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%); line-height: 0; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.lev-band__stamp img { width: 72px; height: 72px; }
.lev-band__cat { position: absolute; left: 0; right: 0; top: calc(50% + 26px); text-align: center; font: 700 12px/1.2 var(--ld-text); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.lev-media__band--night { background: radial-gradient(120% 90% at 0% 0%, #1e2fa8 0%, #141a66 45%, #0a0e24 100%); }
.lev-media__band--blue { background: radial-gradient(120% 90% at 0% 0%, #9fbcff 0%, #3d63ff 55%, #2741c9 100%); }
.lev-media__band--gold { background: radial-gradient(120% 90% at 0% 0%, #f8e2a6 0%, #e9b949 60%, #d39a26 100%); }
.lev-body { gap: 5px; padding: 14px 16px 16px; }
.lev-when { font-size: 13px; text-transform: none; }
.lev-title { font-size: 18px; line-height: 1.22; letter-spacing: -.01em; }
.lev-place { display: flex; align-items: center; gap: 5px; }
.lev-place svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.lev-meta { justify-content: space-between; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--lev-hair); }
.lev-going { margin-top: 0; }
.lev-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* desktop list view: the card as a row, cover left */
.idu-results.idu-view-list .lev-grid { grid-template-columns: 1fr; gap: 14px; }
.idu-results.idu-view-list .lev-card { flex-direction: row; }
.idu-results.idu-view-list .lev-media { flex: none; width: 300px; aspect-ratio: 16 / 10; }
.idu-results.idu-view-list .lev-body { flex: 1; padding: 18px 22px; align-content: center; }
.idu-results.idu-view-list .lev-title { font-size: 20px; }

/* related and "More events" lists elsewhere reuse the card */

/* empty */
.lev-empty { padding: 36px 24px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--lev-hair); text-align: center; }
.lev-empty__h { margin: 0 0 6px; font: 800 20px/1.2 var(--ld-heading); color: var(--lev-ink); }
.lev-empty__p { margin: 0 0 18px; font: 400 15px/1.5 var(--ld-text); color: var(--lev-mut); }
.lev-empty__acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.lev-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--lev-ink); color: #fff; font: 700 14.5px/1 var(--ld-text); text-decoration: none; }
.lev-btn:hover { color: #fff; background: #1a2150; }
.lev-btn--ghost { background: #fff; color: var(--lev-ink); box-shadow: inset 0 0 0 1px var(--lev-hair); }
.lev-btn--ghost:hover { color: var(--lev-ink); background: var(--lev-tint); }
.lev-next { margin-top: 28px; }

@media (max-width: 900px) {
	.lev .ld-evf-tools .ld-evf-sort { display: none; } /* lane 1: sort lives in the Filters sheet on a phone; the view switch stays */
	.lev-list { gap: 22px; }
	.lev-group__h { position: sticky; top: var(--ld-header-h, 64px); z-index: 2; margin: 0 calc(var(--ld-wrap-pad, 16px) * -1) 8px; padding: 8px var(--ld-wrap-pad, 16px); background: var(--ld-surface, #f5f6f9); font-size: 17px; }
	/* phone grid: the big cover card, one per line (lane 1: list view now works on a phone too, see the lane 1 block) */
	.lev .idu-results.idu-view-grid .lev-grid { grid-template-columns: 1fr; gap: 16px; }
	.lev .idu-results.idu-view-grid .lev-body { padding: 13px 14px 14px; }
	.lev .idu-results.idu-view-grid .lev-title { font-size: 17.5px; }
}
@media (prefers-reduced-motion: reduce) { .lev-card { transition: none; } }
/* flow 5 v2: a category with nothing on is greyed and not a link (Codex F11) */
body .ldf.lev .ldf-opt.is-off { cursor: default; opacity: .45; }

/* =========================================================== lane 1 (28 Oct): events list view, phone and desktop.
   Kyle's Adrian page had grid and list; v2 only drew covers. List is the scan view: one surface, hairline rows, a cover thumbnail on the
   left (photo, group cover or the designed crest cover), when in accent, title, place, then price and who is going on one line.
   Create event is labelled at every width (Kyle: "I can't see the button"). */
.lev .lev-create { height: 40px; padding: 0 16px; border-radius: 999px; white-space: nowrap; }
.lev .ld-evf-tools { display: flex; align-items: center; gap: 10px; }
.idu-results.idu-view-list .lev-grid { grid-template-columns: 1fr; gap: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--lev-hair); }
.idu-results.idu-view-list .lev-card { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 0; box-shadow: none; background: transparent; }
.idu-results.idu-view-list .lev-card + .lev-card { border-top: 1px solid var(--lev-hair); }
.idu-results.idu-view-list .lev-card:hover { transform: none; box-shadow: none; background: var(--lev-tint); }
.idu-results.idu-view-list .lev-media { flex: none; width: 156px; aspect-ratio: 4 / 3; border-radius: 12px; }
.idu-results.idu-view-list .lev-tile { top: 8px; left: 8px; min-width: 38px; padding: 4px 5px; border-radius: 8px; }
.idu-results.idu-view-list .lev-tile small { font-size: 9px; }
.idu-results.idu-view-list .lev-tile b { font-size: 17px; }
.idu-results.idu-view-list .lev-price--on { display: none; }
.idu-results.idu-view-list .lev-band__cat, .idu-results.idu-view-list .lev-band__big { display: none; }
.idu-results.idu-view-list .lev-band__stamp, .idu-results.idu-view-list .lev-band__ic { transform: translate(-50%, -50%); }
.idu-results.idu-view-list .lev-band__stamp img { width: 52px; height: 52px; }
.idu-results.idu-view-list .lev-body { flex: 1; padding: 0; gap: 3px; align-content: center; }
.idu-results.idu-view-list .lev-title { font-size: 18px; -webkit-line-clamp: 2; }
.idu-results.idu-view-list .lev-meta { margin-top: 4px; padding-top: 0; border-top: 0; justify-content: flex-start; gap: 6px 14px; }
.lev-lprice { display: none; }
.idu-results.idu-view-list .lev-lprice { display: inline-flex; justify-self: start; margin-top: 2px; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--lev-tint); font: 700 12.5px/1 var(--ld-text); color: var(--lev-ink); }
.idu-results.idu-view-list .lev-lprice.is-free { background: var(--lev-yes-bg); color: var(--lev-yes); }
@media (max-width: 900px) {
	.lev .ld-evf-head { align-items: center; gap: 10px; }
	.lev .ld-evf-tools { gap: 8px; }
	.lev .ld-evf-tools .ld-evf-view { display: inline-flex; }
	.lev .lev-create { height: 38px; padding: 0 14px; font-size: 14px; }
	.lev .lev-create svg { width: 16px; height: 16px; }
	.lev .idu-results.idu-view-list .lev-grid { margin: 0 calc(var(--ld-wrap-pad, 16px) * -1); border-radius: 0; box-shadow: 0 1px 0 var(--lev-hair), 0 -1px 0 var(--lev-hair); }
	.lev .idu-results.idu-view-list .lev-card { gap: 12px; padding: 12px 16px; align-items: flex-start; }
	.lev .idu-results.idu-view-list .lev-media { width: 92px; aspect-ratio: 1; border-radius: 10px; }
	.lev .idu-results.idu-view-list .lev-tile { display: none; }
	.lev .idu-results.idu-view-list .lev-band__stamp img { width: 40px; height: 40px; }
	.lev .idu-results.idu-view-list .lev-band__ic { width: 40px; height: 40px; border-radius: 12px; }
	.lev .idu-results.idu-view-list .lev-band__ic svg { width: 22px !important; height: 22px; }
	.lev .idu-results.idu-view-list .lev-title { font-size: 16px; }
	.lev .idu-results.idu-view-list .lev-when { font-size: 12.5px; }
	.lev .idu-results.idu-view-list .lev-place { font-size: 13.5px; }
	.lev .idu-results.idu-view-list .lev-aud { display: none; }
	.lev .idu-results.idu-view-list .lev-group__h { margin-bottom: 0; }
}

/* lane 1: desktop right rail (Kyle, 11:05pm on the events list: "Don't like how bare this looks") */
.lev-cols { display: block; }
.lev-rail { display: none; }
@media (min-width: 1200px) {
	.lev-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
	.lev-rail { display: grid; gap: 14px; position: sticky; top: calc(var(--ld-header-h, 64px) + 16px); }
	.lev .idu-results.idu-view-grid .lev-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
.lev-rail__card, .lev-rail__sec { padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--lev-hair); }
.lev-rail__create { background: radial-gradient(120% 120% at 0% 0%, #1e2fa8 0%, #141a66 50%, #0a0e24 100%); box-shadow: none; color: #fff; }
.lev-rail__h { margin: 0 0 8px; font: 800 16px/1.25 var(--ld-heading); color: var(--lev-ink); letter-spacing: -.01em; }
.lev-rail__create .lev-rail__h { color: #fff; font-size: 18px; }
.lev-rail__p { margin: 0 0 14px; font: 400 14px/1.45 var(--ld-text); color: rgba(255,255,255,.8); }
.lev-rail__create .lev-btn { gap: 8px; width: 100%; background: #fff; color: var(--lev-ink); }
.lev-rail__create .lev-btn:hover { background: #eef2ff; color: var(--lev-ink); }
.lev-rail__create .lev-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lev-mini { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--lev-ink); }
.lev-mini + .lev-mini { border-top: 1px solid var(--lev-hair); }
.lev-mini:hover .lev-mini__t { color: var(--lev-acc); }
.lev-mini__th { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; color: #fff; }
.lev-mini__th img { width: 100%; height: 100%; object-fit: cover; }
.lev-mini__th svg { width: 24px; height: 24px; }
.lev-mini__th .ld-stamp, .lev-mini__th > img[width] { width: 30px; height: 30px; }
.lev-mini__b { display: grid; gap: 2px; min-width: 0; }
.lev-mini__t { font: 700 14.5px/1.25 var(--ld-heading); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lev-mini__w { font: 600 12.5px/1.3 var(--ld-text); color: var(--lev-acc); }
.lev-mini__g { font: 500 12.5px/1.3 var(--ld-text); color: var(--lev-mut); }
.lev-rail__more { display: inline-block; margin-top: 6px; font: 700 13.5px/1 var(--ld-text); color: var(--lev-acc); text-decoration: none; }
.lev-active { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: -4px 0 18px; font: 500 14px/1.4 var(--ld-text); color: var(--lev-mut); }
.lev-active b { color: var(--lev-ink); font-weight: 700; }
.lev-active a { margin-left: 6px; font-weight: 700; color: var(--lev-acc); text-decoration: none; }
@media (min-width: 1200px) { .lev .ld-evf-tools .lev-create { display: none; } } /* the rail's Create event card leads instead; one button, not two */
/* ---- filters2 (28 Oct, Kyle note 3 "I liked the little date icon that used to be in the list view"): on a phone the list row leads with the
   month and day tile again. An event with its own photo keeps the photo, the tile sits on its corner; one with no photo shows the tile alone
   instead of the group crest (the group is named on the row already). ---- */
@media (max-width: 900px) {
	body .lev .idu-results.idu-view-list .lev-media:has(.lev-media__band) { width: 60px; height: 64px; aspect-ratio: auto; align-self: flex-start; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--lev-hair); }
	body .lev .idu-results.idu-view-list .lev-media:has(.lev-media__band) .lev-media__band { display: none; }
	body .lev .idu-results.idu-view-list .lev-media:has(.lev-media__band) .lev-tile { display: grid; position: absolute; inset: 0; min-width: 0; align-content: center; gap: 2px; padding: 0; border-radius: 14px; background: none; box-shadow: none; }
	body .lev .idu-results.idu-view-list .lev-media:has(.lev-media__band) .lev-tile small { font: 700 11px/1 var(--ld-text); letter-spacing: .08em; color: var(--ld-electric, #3d63ff); }
	body .lev .idu-results.idu-view-list .lev-media:has(.lev-media__band) .lev-tile b { font: 800 24px/1 var(--ld-heading); color: var(--lev-ink); }
	/* filters3 (28 Oct): the month on a photo tile was 8.5px, under the 11px floor for phone text (blind test 19); the chip grows a little to hold 11px */
	body .lev .idu-results.idu-view-list .lev-media:not(:has(.lev-media__band)) .lev-tile { display: grid; justify-items: center; top: 6px; left: 6px; min-width: 38px; padding: 4px 5px; border-radius: 8px; }
	body .lev .idu-results.idu-view-list .lev-media:not(:has(.lev-media__band)) .lev-tile small { font-size: 11px; line-height: 1; letter-spacing: .04em; }
	body .lev .idu-results.idu-view-list .lev-media:not(:has(.lev-media__band)) .lev-tile b { font-size: 15px; line-height: 1.05; }
}

/* events-restore (28 Oct): status pill (Postponed, Cancelled) and the category tag on the card; a cancelled card greys its cover and strikes its title */
.lev-st { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 var(--ld-text, Inter, sans-serif); letter-spacing: .01em; }
.lev-st::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.lev-st--postponed { background: #FFF4E0; color: #8A5200; }
.lev-st--canceled { background: #FDECEC; color: #A3200F; }
.lev-card .lev-st { align-self: flex-start; margin: 2px 0 2px; }
.lev-card.is-canceled .lev-title { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ld-text-muted, rgba(11,13,26,.66)); }
.lev-card.is-canceled .lev-media > img, .lev-card.is-canceled .lev-media__band { filter: grayscale(1); opacity: .65; }
.lev-cat { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 600 12.5px/1.2 var(--ld-text, Inter, sans-serif); color: var(--ld-text-muted, rgba(11,13,26,.66)); }
.lev-cat svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lev-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-evf-allev { align-self: center; margin-left: 4px; font: 600 14px/1 var(--ld-text, Inter, sans-serif); color: var(--ld-electric, #3D6BFF) !important; text-decoration: none !important; }
.ld-evf-org { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(10,14,36,.04), 0 12px 32px -24px rgba(10,14,36,.35); }
.ld-evf-org__av { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--ld-midnight, #0a0e24); color: #fff; font: 700 15px/1 var(--ld-text, Inter, sans-serif); }
.ld-evf-org > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ld-evf-org small { font: 500 13px/1.2 var(--ld-text, Inter, sans-serif); color: var(--ld-text-muted, rgba(11,13,26,.66)); }
.ld-evf-org strong { font: 800 20px/1.2 var(--ld-heading, "Inter Tight", sans-serif); color: var(--ld-ink, #0B0D1A); overflow-wrap: anywhere; }
