/* Site search results (13 Nov redesign). Loaded only on ?bp_search=1 (includes/pages/search.php), after each kind's own stylesheet:
   filters.css (the Businesses row), jobs.css (the Jobs row), events-feed.css (the Events card), member-card.css (the Members card).
   This file only lays the page out around those cards: the head, the tabs, the pinned best match, the main column and side rail, the
   sections, and the empty states. Values from the approved list pages: page #f5f6f9, hairline #e4e7ef, ink #0d1224, muted #667089,
   electric #3d63ff, Inter Tight headings, Inter text. */
body.ld-search { --s-page: #f5f6f9; --s-line: #e4e7ef; --s-ink: #0d1224; --s-navy: #0a0e24; --s-mut: #667089; --s-acc: #3d63ff; --s-acc-ink: #2342c9; --s-tint: #eef1f7; --s-head: var(--ld-heading, "Inter Tight", "SF Pro Display", -apple-system, sans-serif); --s-text: var(--ld-text, "Inter", -apple-system, "SF Pro Text", sans-serif); --s-r: 14px; }
body.ld-search { display: block; width: auto; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; } /* something on a body.search page caps it at 600px as a flex box */
body.ld-search #page.site { display: block; width: 100%; }
body.ld-search .site-content, body.ld-search #content { width: 100%; background: var(--s-page); padding-top: 0; }
body.ld-search .site-content > .container { width: 100%; }
body.ld-search .bb-grid.site-content-grid { display: block; margin: 0; }
body.ld-search .site-content > .container, body.ld-search .site-content-grid { max-width: none; width: 100%; padding-left: 0; padding-right: 0; }
body.ld-search #primary, body.ld-search .content-area { width: 100%; max-width: none; margin: 0; padding: 0; float: none; }

.lds { box-sizing: border-box; max-width: 1240px; margin: 0 auto; padding: 20px 16px 72px; color: var(--s-ink); font: 400 15px/1.45 var(--s-text);
	/* the Events card's tokens (events-feed.css sets them only on the Events page) */
	--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; }
.lds *, .lds *::before, .lds *::after { box-sizing: border-box; }
.lds a { text-decoration: none; }
.lds mark { background: none; color: inherit; font-weight: 700; }
.lds-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Head: the title and total, the field with the term ---- */
.lds-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lds-head > * { min-width: 0; }
.lds-head__t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
body.ld-search .lds-title { margin: 0; font: 800 26px/1.15 var(--s-head); letter-spacing: -.025em; color: var(--s-navy); text-shadow: none; overflow-wrap: anywhere; }
.lds-title span { color: var(--s-navy); }
.lds-count { font: 500 14px/1.3 var(--s-text); color: var(--s-mut); white-space: nowrap; }
.lds-field { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; margin: 0; padding: 0 5px 0 14px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--s-line); transition: box-shadow .2s cubic-bezier(.2, .8, .2, 1); }
.lds-field:focus-within { box-shadow: 0 0 0 2px var(--s-acc); }
.lds-field > .lds-i { width: 19px; height: 19px; color: var(--s-mut); }
body.ld-search .lds-field input[type="search"] { flex: 1; min-width: 0; height: 100%; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; color: var(--s-ink); font: 500 16px var(--s-text); -webkit-appearance: none; appearance: none; }
.lds-field input[type="search"]::-webkit-search-cancel-button { display: none; }
.lds-field input::placeholder { color: #8a93a8; }
.lds-field__x { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--s-mut); }
.lds-field__x:hover { background: var(--s-tint); color: var(--s-ink); }
.lds-field__x .lds-i { width: 16px; height: 16px; }
body.ld-search .lds-field__go { flex: none; height: 38px; padding: 0 16px; margin: 0; border: 0; border-radius: 9px; background: var(--s-navy); color: #fff; font: 600 14.5px var(--s-text); cursor: pointer; transition: transform .15s ease, background .2s ease; }
body.ld-search .lds-field__go:hover { background: #1a2147; }
.lds-field__go:active { transform: scale(.97); }

/* ---- Tabs: the approved community tab bar (underline, count beside); a phone scrolls them inside the bar with a fade ---- */
.lds-tabbar { position: sticky; top: 0; z-index: 30; margin: 14px -16px 0; padding: 0 16px; background: var(--s-page); box-shadow: 0 1px 0 var(--s-line); }
.lds-tabs { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.lds-tabs::-webkit-scrollbar { display: none; }
.lds-tabbar.is-over .lds-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.lds-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 12px 11px 11px; color: var(--s-mut); font: 600 14.5px/1.2 var(--s-text); white-space: nowrap; transition: color .15s ease; }
.lds-tab small { font: 500 13px var(--s-text); color: #8a93a8; font-variant-numeric: tabular-nums; }
.lds-tab__l { display: none; }
.lds-tab:hover { color: var(--s-ink); }
.lds-tab[aria-current] { color: var(--s-ink); }
.lds-tab[aria-current] small { color: var(--s-acc-ink); }
.lds-tab[aria-current]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 2.5px; border-radius: 2px 2px 0 0; background: var(--s-acc); }
.lds a:focus-visible, .lds button:focus-visible { outline: 2px solid var(--s-acc); outline-offset: 2px; border-radius: 8px; }

/* ---- The best match, pinned: a community or group on its own colours (the Communities page's pinned card), a business on white ---- */
.lds-bestw { margin-top: 18px; }
.lds-best { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 18px; border-radius: 16px; overflow: hidden; }
.lds-best__hit { position: absolute; inset: 0; z-index: 1; }
.lds-best__a { position: relative; z-index: 2; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.lds-best__b { min-width: 0; }
.lds-best__eb { margin: 0 0 2px; font: 700 11.5px/1.2 var(--s-text); letter-spacing: .08em; text-transform: uppercase; }
body.ld-search .lds-best__t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; font: 800 22px/1.15 var(--s-head); letter-spacing: -.02em; text-shadow: none; overflow-wrap: anywhere; }
.lds-best__m { margin: 4px 0 0; font: 500 14px/1.35 var(--s-text); }
.lds-best__d { margin: 6px 0 0; font: 400 14.5px/1.45 var(--s-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lds-best--comm { background: linear-gradient(120deg, var(--c-base, #0b0d1a) 0%, var(--c-mid, #1e2fa8) 100%); color: #fff; box-shadow: 0 18px 40px -28px rgba(10, 14, 36, .7); }
.lds-best--comm .lds-best__t { color: #fff; }
.lds-best--comm .lds-best__eb, .lds-best--comm .lds-best__m { color: rgba(255, 255, 255, .78); }
.lds-best--comm .lds-best__d { color: rgba(255, 255, 255, .9); }
.lds-best__tk { display: block; width: auto; height: 52px; max-width: 132px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.lds-best__pic { --ld-gpic: 56px !important; }
.lds-best .ld-btn { position: relative; z-index: 2; }
.lds-best--comm .lds-best__join:not(.ld-btn--on):not(.ld-btn--ghost) { background: #fff; color: var(--s-navy); }
.lds-best--comm .ld-btn--on, .lds-best--comm .ld-btn--ghost { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.lds-best__open { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; color: #fff; font: 600 14px var(--s-text); }
.lds-best__open svg, .lds-best__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lds-best__open:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lds-best--biz { background: #fff; box-shadow: 0 0 0 1px var(--s-line); color: var(--s-ink); }
.lds-best--biz .lds-best__t { color: var(--s-navy); }
.lds-best--biz .lds-best__eb { color: var(--s-acc-ink); }
.lds-best--biz .lds-best__m { color: #3a4260; }
.lds-best--biz .lds-best__d { color: var(--s-mut); }
.lds-best__logo { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--s-line); }
.lds-best__logo > img:first-child { width: 100%; height: 100%; border-radius: 14px; object-fit: contain; }
.lds-best__go { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Columns: the main kinds, and Communities and Members in a rail from 1100px. On a phone both open up and the sections run in the tabs' order. ---- */
.lds-cols { display: flex; flex-direction: column; gap: 26px; margin-top: 22px; }
.lds-main, .lds-rail { display: contents; }
.lds-sec { min-width: 0; }
.lds-sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
body.ld-search .lds-sec__h h2 { margin: 0; font: 800 19px/1.2 var(--s-head); letter-spacing: -.015em; color: var(--s-navy); text-shadow: none; }
.lds-sec__all { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 32px; color: var(--s-acc-ink); font: 600 14px/1.2 var(--s-text); white-space: nowrap; }
.lds-sec__all .lds-i { width: 15px; height: 15px; stroke-width: 2; transition: transform .15s ease; }
.lds-sec__all:hover { color: var(--s-acc); }
.lds-sec__all:hover .lds-i { transform: translateX(2px); }

/* one white sheet of rows, hairlines between (the Jobs, Businesses and Groups lists) */
.lds-panel { display: block; margin: 0; padding: 0; list-style: none; background: #fff; border-radius: var(--s-r); box-shadow: 0 0 0 1px var(--s-line); overflow: hidden; }
.lds-panel > * + * { border-top: 1px solid var(--s-line) !important; }
.lds-panel .ljob { padding: 14px 16px; }
@media (max-width: 699px) { /* LD-VCHECK-CITY: on a phone a wide logo takes 72px, not 112px, so the job's words get the card (the words started 44% of the way in) */
	.lds .lds-panel--jobs:has(.ljob__logo.is-wide) > .ljob { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
	.lds .lds-panel--jobs .ljob__logo.is-wide { width: 72px; height: 36px; }
}
body.ld-filters .ldf.lds-ldf { display: block; margin: 0 !important; padding: 0 !important; }
body.ld-filters .ldf.lds-ldf .idu-biz-grid { margin: 0 !important; border: 0 !important; border-radius: var(--s-r) !important; box-shadow: 0 0 0 1px var(--s-line) !important; overflow: hidden; } /* the Businesses page runs its sheet edge to edge on a phone; here it sits in the column like the other kinds */
body.ld-filters .ldf.lds-ldf .idu-biz-card + .idu-biz-card { border-top: 0; }
/* LD-VCHECK-CITY (Kyle 26 Nov): business cards on the city pages and the search, laid out like the Businesses page. The place goes under the
   category when both don't fit (it was squeezed to "S..." on a phone); the buttons are the directory's pills: our icon 6px from its word,
   both on one line, an icon-only button's icon in its middle, midnight words and an electric icon. */
body.ld-filters .ldf.lds-ldf .idu-biz-card-meta { flex-wrap: wrap; white-space: normal; }
body.ld-filters .ldf.lds-ldf .idu-biz-card-loc { flex: none; max-width: 100%; white-space: nowrap; }
@media (max-width: 699px) { /* a phone: the place always on its own line under the category, with no dot left hanging at the end of the first line */
	body.ld-filters .ldf.lds-ldf .idu-biz-card-loc { flex-basis: 100%; }
	body.ld-filters .ldf.lds-ldf .idu-biz-card-cat:has(+ .idu-biz-card-loc)::after { content: none; }
}
body.ld-filters .ldf.lds-ldf .idu-biz-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--lv-tint, #eef1f7); color: #141a66; font: 600 13px/1 var(--s-text); text-decoration: none; white-space: nowrap; }
body.ld-filters .ldf.lds-ldf .idu-biz-link:hover { background: #e3e8f3; }
body.ld-filters .ldf.lds-ldf .idu-biz-link svg { display: block; flex: none; width: 16px; height: 16px; color: var(--s-acc, #3d63ff); }
body.ld-filters .ldf.lds-ldf .idu-biz-link--icon { width: 34px; padding: 0; }
.lds-panel--mc .ldmc { padding: 12px 16px !important; }
@media (max-width: 899px) { .lds-mgrid .ldmc-list { margin: 0; padding: 0; list-style: none; background: #fff; border-radius: var(--s-r); box-shadow: 0 0 0 1px var(--s-line); overflow: hidden; } .lds-mgrid .ldmc + .ldmc { border-top: 1px solid var(--s-line) !important; } }

/* Events: the Events page's own cards. All on a phone: the same card as the Events list view's row (thumbnail, when, title, place). */
.lds-ev .lev-grid { grid-template-columns: 1fr; gap: 14px; }

/* other rows (groups, posts, rooms and listings) */
.lds-row { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 16px; list-style: none; transition: background .15s ease; }
.lds-row:hover { background: #fafbfd; }
.lds-row__hit { position: absolute; inset: 0; z-index: 1; }
.lds-row .lds-btn, .lds-row .ld-btn { position: relative; z-index: 2; flex: none; }
.lds-row__b { display: grid; gap: 2px; flex: 1; min-width: 0; }
.lds-row__t { display: flex; align-items: center; gap: 6px; min-width: 0; font: 700 15.5px/1.3 var(--s-text); color: var(--s-ink); letter-spacing: -.01em; overflow-wrap: anywhere; }
.lds-row__m { font: 400 13.5px/1.35 var(--s-text); color: var(--s-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lds-row__by { font: 400 14px/1.35 var(--s-text); color: var(--s-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lds-row__by b { color: var(--s-ink); font-weight: 600; }
.lds-row__d { font: 400 14.5px/1.45 var(--s-text); color: #2a3150; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lds-row__px { font: 800 15px/1.2 var(--s-head); color: var(--s-navy); }
.lds-row--post { align-items: flex-start; }
.lds-av { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--s-tint); }
.lds-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lds-gpic { flex: none; }
.lds-logo { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--s-tint); color: var(--s-navy); }
.lds-ph { position: relative; flex: none; display: grid; place-items: center; align-content: center; gap: 2px; width: 72px; height: 72px; border-radius: 12px; background: var(--s-tint) center / cover no-repeat; color: var(--s-navy); }
.lds-ph--none { background: linear-gradient(135deg, var(--ld-midnight, #141a66), var(--ld-deep, #1e2fa8)); color: #fff; }
.lds-ph--none b { max-width: 64px; font: 600 10.5px/1.1 var(--s-text); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Members signed out: a calm way in where they would be */
.lds-signin__c { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: start; padding: 18px; background: #fff; border-radius: var(--s-r); box-shadow: 0 0 0 1px var(--s-line); }
.lds-signin__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--s-tint); color: var(--s-navy); }
.lds-signin__ic .lds-i { width: 22px; height: 22px; }
.lds-signin__c p { margin: 0; font: 400 14.5px/1.45 var(--s-text); color: #2a3150; }
.lds-signin__c p b { display: block; margin-bottom: 2px; color: var(--s-ink); font-weight: 700; }
.lds-signin__a { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.lds-signin__a .ld-btn { flex: 1 1 0; min-width: 120px; }

/* paging */
.lds-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.lds-pager__n { font: 500 14px var(--s-text); color: var(--s-mut); }
.lds-pbtn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--s-line); color: var(--s-ink); font: 600 14.5px var(--s-text); }
.lds-pbtn.is-go { background: var(--s-navy); color: #fff; box-shadow: none; }
.lds-pbtn[aria-disabled] { opacity: .45; }
.lds-sec--full { margin-top: 22px; }

/* empty, too short and nothing typed: what to try, then where to start */
.lds-empty { margin-top: 22px; padding: 24px 20px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--s-line); }
body.ld-search .lds-empty h2 { margin: 0 0 6px; font: 800 22px/1.2 var(--s-head); letter-spacing: -.02em; color: var(--s-navy); text-shadow: none; overflow-wrap: anywhere; }
.lds-empty > p { max-width: 640px; margin: 0; font: 400 15.5px/1.55 var(--s-text); color: #3a4260; }
.lds-empty > p a { color: var(--s-acc-ink); font-weight: 600; }
body.ld-search .lds-dirs__h { margin: 22px 0 10px; font: 700 13px/1.2 var(--s-text); letter-spacing: .06em; text-transform: uppercase; color: var(--s-mut); }
.lds-dirs { display: grid; grid-template-columns: 1fr; border-radius: 12px; box-shadow: 0 0 0 1px var(--s-line); overflow: hidden; }
.lds-dirs a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; background: #fff; color: var(--s-ink); transition: background .15s ease; }
.lds-dirs a + a { border-top: 1px solid var(--s-line); }
.lds-dirs a:hover { background: #fafbfd; }
.lds-dirs__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--s-tint); color: var(--s-navy); }
.lds-dirs__t { display: grid; flex: 1; min-width: 0; }
.lds-dirs__t b { font: 700 15px/1.25 var(--s-text); }
.lds-dirs__t small { font: 400 13px/1.3 var(--s-text); color: var(--s-mut); }
.lds-dirs a > .lds-i:last-child { width: 16px; height: 16px; color: #9aa2b8; }
.lds-empty .lds-panel { margin-top: 0; }
.lds-sec--dirs .lds-dirs__h { margin-top: 0; }
.lds-sec--fill { display: none; } /* the rail's filler: desktop only */
@media (max-width: 699px) { .lds-row .ld-btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; } .lds-row__m { white-space: normal; } }

/* ---- iPad and up ---- */
@media (min-width: 700px) {
	.lds { padding: 26px 24px 80px; }
	.lds-tabbar { margin-left: -24px; margin-right: -24px; padding: 0 24px; }
	.lds-tab__l { display: inline; }
	.lds-tab__s { display: none; }
	.lds-best { grid-template-columns: auto minmax(0, 1fr) auto; padding: 22px 24px; gap: 20px; }
	.lds-best__a { grid-column: auto; }
	.lds-best__tk { height: 64px; max-width: 160px; }
	.lds-ev .lev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.lds-sec--events .lds-ev .lev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lds-dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lds-dirs a + a { border-top: 0; }
	.lds-dirs a { box-shadow: 0 -1px 0 var(--s-line), -1px 0 0 var(--s-line); }
	.lds-empty { padding: 28px 28px 30px; }
}
@media (min-width: 901px) {
	.lds-head { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: center; gap: 24px; }
	.lds-tabbar { top: 72px; } /* under the sticky menu bar */
	body.admin-bar .lds-tabbar { top: 104px; }
	.lds-tab { padding: 13px 13px 12px; font-size: 15px; }
}
@media (min-width: 1100px) {
	.lds { padding: 30px 32px 88px; }
	.lds-tabbar { margin-left: -32px; margin-right: -32px; padding: 0 32px; }
	.lds-cols.has-rail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
	.lds-cols.has-rail .lds-main, .lds-cols.has-rail .lds-rail { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
	.lds-cols.has-rail .lds-rail { position: sticky; top: 140px; }
	.lds-cols:not(.has-rail) { gap: 28px; }
	.lds-cols:not(.has-rail) .lds-sec--events .lds-ev .lev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lds-rail .lds-row { padding: 12px 14px; }
	.lds-rail .lds-sec--fill { display: block; }
	.lds-rail .lds-dirs { grid-template-columns: 1fr; }
	.lds-rail .lds-dirs a { box-shadow: none; }
	.lds-rail .lds-dirs a + a { border-top: 1px solid var(--s-line); }
	.lds-rail .ld-btn--sm { height: 36px; padding: 0 14px; }
	/* a kind's own tab: events four across, rows in two columns, members as the directory's tiles */
	.lds-sec--full .lds-ev .lev-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
	.lds-panel.is-2, body.ld-filters .ldf.lds-ldf .idu-biz-grid.is-2 { display: grid; grid-template-columns: 1fr 1fr; }
	.lds-panel.is-2 > * + *, body.ld-filters .ldf.lds-ldf .is-2 > * { border-top: 0 !important; }
	.lds-panel.is-2 > *, body.ld-filters .ldf.lds-ldf .is-2 > * { border-bottom: 1px solid var(--s-line) !important; }
	.lds-panel.is-2 > :nth-child(odd), body.ld-filters .ldf.lds-ldf .is-2 > :nth-child(odd) { border-right: 1px solid var(--s-line) !important; }
	.lds-mgrid .ldmc-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
	.lds-dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lds-best__b { max-width: 760px; }
	/* the sign-in card across the main column (no rail): one line, its two buttons on the right, sized to their words */
	.lds-main .lds-signin__c { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
	.lds-main .lds-signin__c p b { display: inline; margin: 0 4px 0 0; }
	.lds-main .lds-signin__a { grid-column: auto; flex-wrap: nowrap; }
	.lds-main .lds-signin__a .ld-btn { flex: none; min-width: 0; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
	.lds-cols.has-rail { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
	.lds-cols.has-rail .lds-sec--events .lds-ev .lev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* two across on small tablets, three on iPad landscape; which cards show is LD-EV-ROWS below */
@media (min-width: 700px) and (max-width: 899px) { .lds-sec--events .lds-ev .lev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1099px) { .lds-sec--events .lds-ev .lev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* iPad landscape (1024): three fit across */
/* LD-EV-ROWS (visual check 26 Nov: on a city page four community events at three across left the 4th alone beside an empty gap). A section of up
   to six event cards shows only whole rows from 700px up: at two across an odd last card is left off, at three across the one or two cards of a
   short last row are. The phone keeps every card (one list), the section's "All events" link has the rest, and a kind's own tab (--full) is left
   alone. This replaces the old "hide the 3rd card" rules, which only knew the three-card sections. */
@media (min-width: 700px) and (max-width: 899px) { .lds-sec--events:not(.lds-sec--full) .lds-ev .lev-grid > .lev-card:nth-child(2n+3):last-child { display: none; } }
@media (min-width: 1100px) and (max-width: 1279px) { .lds-cols.has-rail .lds-sec--events:not(.lds-sec--full) .lds-ev .lev-grid > .lev-card:nth-child(2n+3):last-child { display: none; } }
@media (min-width: 900px) and (max-width: 1099px), (min-width: 1280px) {
	.lds-sec--events:not(.lds-sec--full) .lds-ev .lev-grid > .lev-card:nth-child(3n+4):nth-last-child(-n+2),
	.lds-sec--events:not(.lds-sec--full) .lds-ev .lev-grid > .lev-card:nth-child(3n+4):nth-last-child(2) + .lev-card { display: none; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
	.lds-cols:not(.has-rail) .lds-sec--events:not(.lds-sec--full) .lds-ev .lev-grid > .lev-card:nth-child(3n+4):nth-last-child(-n+2),
	.lds-cols:not(.has-rail) .lds-sec--events:not(.lds-sec--full) .lds-ev .lev-grid > .lev-card:nth-child(3n+4):nth-last-child(2) + .lev-card { display: none; }
}


/* ---- Phone: All lists events as the Events list view does (thumbnail rows in one sheet), so three fit on a screen ---- */
@media (max-width: 699px) {
	body.ld-search .lds-title { font-size: 23px; }
	.lds-cols .lds-sec--events .lev-grid { gap: 0; border-radius: var(--s-r); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--lev-hair); }
	.lds-cols .lds-sec--events .lev-card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 0; box-shadow: none; background: transparent; }
	.lds-cols .lds-sec--events .lev-card + .lev-card { border-top: 1px solid var(--lev-hair); }
	.lds-cols .lds-sec--events .lev-card:hover { transform: none; box-shadow: none; }
	.lds-cols .lds-sec--events .lev-media { flex: none; width: 84px; aspect-ratio: 1; border-radius: 10px; }
	.lds-cols .lds-sec--events :is(.lev-tile, .lev-price--on, .lev-band__cat, .lev-band__big, .lev-aud, .lev-cat) { display: none; }
	.lds-cols .lds-sec--events .lev-band__stamp, .lds-cols .lds-sec--events .lev-band__ic { transform: translate(-50%, -50%); }
	.lds-cols .lds-sec--events .lev-band__stamp img { width: 40px; height: 40px; }
	.lds-cols .lds-sec--events .lev-band__ic { width: 38px; height: 38px; border-radius: 11px; }
	.lds-cols .lds-sec--events .lev-band__ic svg { width: 20px !important; height: 20px; }
	.lds-cols .lds-sec--events .lev-body { flex: 1; padding: 0; gap: 2px; }
	.lds-cols .lds-sec--events .lev-title { font-size: 16px; }
	.lds-cols .lds-sec--events .lev-when { font-size: 12.5px; }
	.lds-cols .lds-sec--events .lev-place { font-size: 13.5px; }
	.lds-cols .lds-sec--events .lev-lprice { display: inline-flex; justify-self: start; margin-top: 3px; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--lev-tint); font: 700 12px/1 var(--s-text); color: var(--lev-ink); }
	.lds-cols .lds-sec--events .lev-lprice.is-free { background: var(--lev-yes-bg); color: var(--lev-yes); }
	.lds-cols .lds-sec--events .lev-meta { display: none; }
	.lds-best__a .ld-btn, .lds-best__a .lds-best__open { flex: 1 1 0; justify-content: center; }
	.lds-best--comm { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.lds-best__tk { height: 40px; }
	body.ld-search .lds-field__go { display: none; } /* the keyboard's Search key sends it; the clear button stays */
	.lds-field { padding-right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .lds-sec__all .lds-i, .lds-field, .lds-tab, .lds-row, .lds-dirs a { transition: none; } }

/* members' Resources rows (resources.php ld_res_row, LD-RESOURCES): in search results and the "Resources for you" strip on city pages */
.ldr-row__pic { flex: none; width: 76px; aspect-ratio: 1200 / 630; border-radius: 8px; overflow: hidden; background: var(--s-navy, #0a0e24); align-self: center; }
.ldr-row__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ldr-strip__n { margin: 8px 4px 0; font: 400 13px/1.4 var(--s-text); color: var(--s-mut); }
