/* Signed out: limited previews and the one "Sign in to continue" gate (includes/pages/signed-out.php). Signed-out pages only.
   The gate card matches the profile gate (profile-home.css .ldpf-out): white 20px card, Inter Tight title, Sign in primary #3D6BFF, Join free hairline, 48px. */
.ld-sop{--sop-ink:#0d1224;--sop-grey:#5b6478;--sop-line:#e4e8f1;--sop-bg:#F5F7FB;box-sizing:border-box;font-family:var(--ld-text,Inter,sans-serif);color:var(--sop-ink)}
.ld-sop *,.ld-sop *::before,.ld-sop *::after{box-sizing:border-box}
main.ld-sop--page{display:block;padding:24px 16px 56px;background:var(--sop-bg)}
.ld-sop__w{max-width:1120px;margin:0 auto}

.ld-sop--post .ld-sop__w,.ld-sop--group{max-width:640px;margin-left:auto;margin-right:auto}

/* the gate */
.ld-gate{position:relative;z-index:1;width:100%;max-width:440px;margin:0 auto;padding:32px 24px 24px;background:#fff;border-radius:20px;text-align:center;box-shadow:0 0 0 1px var(--sop-line),0 24px 48px -28px rgba(13,18,36,.35)}
.ld-gate__m{display:block;width:56px;height:56px;margin:0 auto 16px}
.ld-sop .ld-gate__h,.ld-gate__h{margin:0!important;font:700 22px/1.2 "Inter Tight","Inter",sans-serif!important;letter-spacing:-.01em;color:var(--sop-ink,#0d1224)}
.ld-gate__p{margin:12px auto 0!important;max-width:340px;color:var(--sop-grey,#5b6478);font-size:15px!important;line-height:1.55!important}
.ld-gate__a{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}
.ld-gate__b{display:flex;align-items:center;justify-content:center;height:48px;padding:0 16px;border-radius:999px;background:#fff;color:#0d1224!important;box-shadow:inset 0 0 0 1.5px #c3cadb;font:600 15px/1 var(--ld-text,Inter,sans-serif);text-decoration:none!important;white-space:nowrap;transition:background .15s,transform .1s}
.ld-gate__b.is-primary{background:#3D6BFF;color:#fff!important;box-shadow:0 8px 18px -10px rgba(61,107,255,.7)}
.ld-gate .ld-gate__b:not(.is-primary){box-shadow:inset 0 0 0 1.5px #c3cadb!important;background:#fff}
.ld-gate .ld-gate__b.is-primary{box-shadow:0 8px 18px -10px rgba(61,107,255,.7)!important}
.ld-gate__b:hover{background:#F5F7FB}.ld-gate__b.is-primary:hover{background:#2F5BEE}
.ld-gate__b:active{transform:scale(.98)}
.ld-gate__b:focus-visible{outline:3px solid rgba(61,107,255,.45);outline-offset:2px}

/* placeholders under the gate, shaped like what is behind it: decoration only, never data */
.ld-sop__sks{display:grid;gap:12px;-webkit-mask-image:linear-gradient(#000 0,transparent 85%);mask-image:linear-gradient(#000 0,transparent 85%);pointer-events:none;user-select:none}
.ld-sop__sk{display:flex;gap:12px;padding:16px;background:#fff;border-radius:16px;box-shadow:0 0 0 1px var(--sop-line)}
.ld-sop__sk i{flex:none;width:40px;height:40px;border-radius:50%;background:#e6eaf3}
.ld-sop__sk span{flex:1;display:grid;gap:8px;padding-top:4px}
.ld-sop__sk b{display:block;height:10px;border-radius:6px;background:#e6eaf3}
.ld-sop__sk b:nth-child(1){width:38%}.ld-sop__sk b:nth-child(3){width:72%}
.ld-sop__sk.is-person{flex-direction:column;align-items:center;text-align:center;padding:20px 16px}
.ld-sop__sk.is-person i{width:64px;height:64px}
.ld-sop__sk.is-person span{width:100%;justify-items:center}
.ld-sop__sk.is-person b:nth-child(1){width:55%}.ld-sop__sk.is-person b:nth-child(2){width:40%}
.ld-sop__sk.is-person em{display:block;width:100%;height:36px;border-radius:999px;background:#eef2fb}
.ld-sop__sks.is-person,.ld-sop__sks.is-tile{grid-template-columns:repeat(2,minmax(0,1fr))}
.ld-sop__sk.is-tile{aspect-ratio:1;padding:0;background:#e9edf5;box-shadow:none}
.ld-sop__sks+.ld-gate{margin-top:-88px}
.ld-sop__sks.is-person+.ld-gate,.ld-sop__sks.is-tile+.ld-gate{margin-top:-200px}
@media (max-width:899px){.ld-sop__sks.is-person .ld-sop__sk:nth-child(n+5),.ld-sop__sks.is-tile .ld-sop__sk:nth-child(n+5){display:none}}

/* the group's tab row signed out: the same bar, each tab goes to the gate */
.ld-comm .ld-sop__bar .ld-tabs a.ld-sop__tab{flex:none;display:flex;align-items:center;gap:4px;padding:13px 15px;color:var(--ld-muted,#5b6478);font:600 15px var(--ld-text,Inter,sans-serif);border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap;text-decoration:none}
.ld-comm .ld-sop__bar .ld-tabs a.ld-sop__tab small{font-weight:500;color:var(--ld-muted,#5b6478);margin-left:3px;font-size:inherit}
.ld-comm .ld-sop__bar .ld-tabs a.ld-sop__tab.is-on{color:var(--ld-ink,#0d1224);border-bottom-color:var(--ld-electric,#3D6BFF)}

/* a post shown without its author */
.ld-sop__post{padding:16px;background:#fff;border-radius:16px;box-shadow:0 0 0 1px var(--sop-line);margin-bottom:12px}
.ld-sop__post header{display:flex;align-items:center;gap:12px}
.ld-sop__anon{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#eef1f7;color:#8a93a8}
.ld-sop__post header b{display:block;font-size:15px;font-weight:600;line-height:1.3}
.ld-sop__post header small{display:block;margin-top:2px;color:var(--sop-grey);font-size:13px}
.ld-sop .ld-sop__x{margin:12px 0 0;font-size:16px;line-height:1.55;overflow-wrap:anywhere}
.ld-sop .ld-sop__x.is-q{font:600 19px/1.4 "Inter Tight","Inter",sans-serif;letter-spacing:-.005em}
.ld-sop__in{display:inline-flex;align-items:center;gap:8px;height:36px;margin:0 0 12px;padding:0 14px 0 6px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px var(--sop-line);color:var(--sop-ink)!important;font-size:14px;font-weight:600;text-decoration:none!important}
.ld-sop__in img{width:24px;height:24px;border-radius:50%}
.ld-sop__in:not(:has(img)){padding-left:14px}

/* gate-only pages: members list, Photos, Videos, Documents */
.ld-sop__hd{max-width:640px;margin:8px auto 20px}
.ld-sop .ld-sop__hd h1{margin:0;font:700 28px/1.15 "Inter Tight","Inter",sans-serif;letter-spacing:-.015em}
.ld-sop__hd p{margin:6px 0 0;color:var(--sop-grey);font-size:15px}

/* inside a group or community page, in place of the tab panels */
.ld-sop--group{padding:20px 0 56px}

/* a single room, car, item, job, event or business */
.ld-sop__item{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 0 0 1px var(--sop-line)}
.ld-sop__media{aspect-ratio:16/10;background:#e6eaf3}
.ld-sop__media img{display:block;width:100%;height:100%;object-fit:cover}
.ld-sop__body{padding:20px 16px 20px}
.ld-sop__logo{display:block;width:56px;height:56px;margin-bottom:14px;border-radius:12px;object-fit:cover;box-shadow:0 0 0 1px var(--sop-line)}
.ld-sop .ld-sop__k{margin:0 0 6px;color:#3D6BFF;font-size:13px;font-weight:600}
.ld-sop .ld-sop__t{margin:0;font:700 26px/1.15 "Inter Tight","Inter",sans-serif;letter-spacing:-.015em;overflow-wrap:anywhere}
.ld-sop .ld-sop__pr{margin:8px 0 0;font:700 20px/1.3 "Inter Tight","Inter",sans-serif;color:var(--sop-ink)}
.ld-sop .ld-sop__f{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px 16px;margin:16px 0 0!important;padding:0!important;list-style:none!important}
.ld-sop__f li{display:flex;align-items:flex-start;gap:8px;margin:0!important;color:var(--sop-ink);font-size:14.5px;line-height:1.4}
.ld-sop__f li svg{flex:none;width:18px;height:18px;margin-top:1px;color:#3D6BFF;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ld-sop .ld-sop__x.is-fade{margin-top:16px}
.ld-sop__x.is-fade{max-height:7.8em;overflow:hidden;-webkit-mask-image:linear-gradient(#000 35%,transparent);mask-image:linear-gradient(#000 35%,transparent)}
.ld-sop__item .ld-gate{max-width:none;margin-top:8px;padding:24px 0 4px;border-top:1px solid var(--sop-line);border-radius:0;box-shadow:none;background:none}

@media (min-width:900px){
	main.ld-sop--page{padding:48px 24px 96px}
	.ld-sop__item.has-img{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
	.ld-sop__item.has-img .ld-sop__media{aspect-ratio:auto;min-height:460px}
	.ld-sop__item:not(.has-img) .ld-sop__body{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:48px;align-content:start}
	.ld-sop__item:not(.has-img) .ld-sop__body>*{grid-column:1}
	.ld-sop__item:not(.has-img) .ld-gate{grid-column:2;grid-row:1/span 8;align-self:start;position:sticky;top:96px;margin-top:0;padding:28px 0 0 32px;border-top:0;border-left:1px solid var(--sop-line)}
	.ld-sop--page .ld-sop__hd{max-width:none}
	.ld-sop__sks.is-person,.ld-sop__sks.is-tile{grid-template-columns:repeat(4,minmax(0,1fr))}
	.ld-sop__body{display:flex;flex-direction:column;justify-content:center;padding:36px 36px 32px}
	.ld-sop .ld-sop__t{font-size:34px}
	.ld-sop__x.is-fade{margin-bottom:24px}
	.ld-gate{padding:36px 32px 28px}
	.ld-sop__item .ld-gate{padding:28px 0 0}
}
@media (prefers-reduced-motion:reduce){.ld-gate__b{transition:none}}

/* Create forms signed out (13 Nov): the front door card over the form, then the real form as a disabled preview (ld_sop_create_gate). */
.ld-gate--create{max-width:none;margin:0 0 20px;text-align:left;padding:24px}
.ld-gate--create .ld-gate__m{margin:0 0 12px;width:44px;height:44px}
.ld-gate--create .ld-gate__p{margin-left:0!important;max-width:620px}
.ld-gate--create .ld-gate__a{grid-template-columns:auto auto;justify-content:start}
.ld-gate--create .ld-gate__b{padding:0 22px}
.ld-gate__note{margin:16px 0 0!important;font-size:14px!important;line-height:1.5!important;color:var(--sop-grey,#5b6478)}
.ld-gate__note b{color:var(--sop-ink,#0d1224);font-weight:600}
.ld-gate__note a{color:#3D6BFF;font-weight:600;text-decoration:none}.ld-gate__note a:hover{text-decoration:underline}
.ld-preview-tag{display:flex;align-items:center;gap:10px;margin:0 0 12px!important;font-size:14px!important;line-height:1.4!important;color:var(--sop-grey,#5b6478)}
.ld-preview-tag span{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:#EEF2FF;color:#2741c9;font:700 12px/1 var(--ld-text,Inter,sans-serif);letter-spacing:.04em;text-transform:uppercase}
fieldset.ld-preview-set{margin:0;padding:0;border:0;min-width:0}
/* 19 Nov (Kyle: "Remove the preview"): signed out, the create pages show the front door card only. The disabled form stays in the page (a check reads it) but is not shown. LD-NO-PREVIEW */
fieldset.ld-preview-set,.ld-preview-tag,form#ldbf-preview{display:none!important}
fieldset.ld-preview-set :is(input,select,textarea,button,label){cursor:not-allowed}
fieldset.ld-preview-set :is(input,select,textarea):disabled{opacity:1;background-color:#F7F8FB;-webkit-text-fill-color:currentColor}
@media (max-width:560px){.ld-gate--create{padding:20px 16px}.ld-gate--create .ld-gate__a{grid-template-columns:1fr}}
