/* Big screens: one rule for the whole site (Kyle, 11 Nov, after the events page went wide: "can we do that for allt he pages",
   "it just doesnt go full full with which is dine i think"). Loaded last on every page by includes/frontend.php.
   The standard set on the listing pages (pages/filters.css): from 1440px the page frame grows to --ld-wide (1680px) with 32px sides,
   never edge to edge, and grids add columns rather than stretching cards. Hubs and grids take the full frame; designed marketing pages
   (home, How it works, Founding) take --ld-wide-mk (1440px) so their two-column layouts stay together; reading and form pages
   (single event, job, business, listing, forms, settings, legal) keep their own narrow columns and are not touched here.
   Below 1440px nothing in this file applies. */
@media (min-width: 1440px) {
	:root { --ld-wide: 1680px; --ld-wide-mk: 1440px; --ld-wide-pad: 32px; }

	/* The community, group and profile pages already break out of BuddyBoss's 1200px .container (width:100vw), so only their own frames change */

	/* Communities hub (/groups/): head, pinned card and the country communities grid go to the frame; cards add columns */
	body.ld-comm-page:not(.ld-group-page) .ld-comm :is(.wrap, .ld-head > .wrap) { width: 100%; max-width: var(--ld-wide); padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); }
	body.ld-comm-page:not(.ld-group-page) .ld-comm .ld-main { grid-template-columns: minmax(0, 1fr) 360px; }
	body.ld-comm-page:not(.ld-group-page) .ld-comm .ld-feed { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

	/* A group's page: cover, crumbs, tabs and shell go to the frame; the rails sit at its edges and the posts column stays 760px
	   in the middle (reading width). Events and members tabs use the whole middle. */
	body.ld-group-page .ld-comm :is(.ld-ch-g, .gh-b, .ld-crumb) { max-width: var(--ld-wide); padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); }
	body.ld-group-page .ld-comm .ld-tabbar .ld-tabs { max-width: var(--ld-wide); padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); }
	body.ld-group-page .ld-comm .ld-shell { max-width: var(--ld-wide); grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 32px; padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); }
	body.ld-group-page .ld-comm .ld-mid > :is(.ld-p-posts, .ld-p-about) { max-width: 760px; margin-left: auto; margin-right: auto; }
	body.ld-group-page .ld-comm .pg.wrap > :is(.ld-p, .ld-empty, .pv, .abg) { max-width: var(--ld-wide); padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); }

	/* Group sub pages (pages/groups-extra.css): head strip, members, media. These sit inside BuddyBoss's 1200px .container, so lift it */
	:is(body.ld-gx--sub, body.ld-gx--media) :is(#content > .container, .site-content > .container, #primary, .buddypress-wrap) { max-width: none; width: 100%; }
	.ldx-w { max-width: var(--ld-wide); padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); }
	body.ld-gx--sub .bp-wrap, .ldx-ph { max-width: var(--ld-wide); padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); }
	body.ld-gx--media #primary { max-width: var(--ld-wide); padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); }

	/* Members directory (signed in): #buddypress capped at 1280 and sat on the left at 1920; the frame centres it */
	body.ld-filters.members #buddypress { max-width: none; }
	body.ld-filters.members .ldf.idu-archive { margin-left: auto; margin-right: auto; }

	/* A member's profile: cover, tabs and the page grid go to the frame; listings add columns; the About card and the
	   single-column tabs keep their reading width in the middle */
	.ldpf-hd__w, .ldpf-tabs, .ldpf-note { max-width: var(--ld-wide); }
	.ldpf-hd__w, .ldpf-note { padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); }
	.ldpf-tabs { padding-left: calc(var(--ld-wide-pad) - 8px); padding-right: calc(var(--ld-wide-pad) - 8px); }
	.ldpf-page { max-width: var(--ld-wide); padding-left: var(--ld-wide-pad); padding-right: var(--ld-wide-pad); box-sizing: border-box; }
	.ldpf-ab { max-width: 1136px; margin-left: auto; margin-right: auto; }
	.ldpf-ls:not([data-view="list"]) .ldpf-ls__g { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
	.ldpf-gts--all { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

	/* Designed marketing pages: a wider frame, not the full one */
	body.home { --ld-wrap: var(--ld-wide-mk); }
	.hiw-wrap { max-width: var(--ld-wide-mk); }
}
