/* FocalShift parts on her site: the box-shadow level and Match my theme.
   Enqueued only while the `wp_look` switch is on. The part wrapper carries data-fs-shadow (her
   choice: the part's own, else the site's Style setting, else soft) and, when the part follows her
   theme, data-fs-look="theme". Every box shadow inside a part reads one of the four variables
   below with the soft value as its own fallback, so a level changes the shadow and nothing else.
   None keeps the soft lift on pop-ups and drawers; it removes shadows from boxes and cards only. */

.fset-module[data-fs-shadow] {
	--fs-sh-card: 0 1px 2px rgba(23,28,48,.04), 0 4px 12px rgba(49,46,129,.05);
	--fs-sh-small: 0 1px 2px rgba(23,28,48,.04), 0 2px 6px rgba(49,46,129,.04);
	--fs-sh-glass: 0 4px 14px rgba(49,46,129,.08);
	--fs-sh-pop: 0 8px 24px rgba(23,28,48,.12);
}
.fset-module[data-fs-shadow="none"] {
	--fs-sh-card: none;
	--fs-sh-small: none;
	--fs-sh-glass: none;
}
.fset-module[data-fs-shadow="medium"] {
	--fs-sh-card: 0 2px 4px rgba(23,28,48,.05), 0 8px 20px rgba(49,46,129,.08);
	--fs-sh-small: 0 1px 2px rgba(23,28,48,.05), 0 4px 10px rgba(49,46,129,.06);
	--fs-sh-glass: 0 8px 22px rgba(49,46,129,.14);
	--fs-sh-pop: 0 12px 32px rgba(23,28,48,.16);
}
.fset-module[data-fs-shadow="strong"] {
	--fs-sh-card: 0 1px 2px rgba(23,28,48,.05), 0 6px 16px rgba(49,46,129,.06), 0 22px 48px rgba(49,46,129,.07);
	--fs-sh-small: 0 1px 2px rgba(23,28,48,.05), 0 4px 12px rgba(49,46,129,.05);
	--fs-sh-glass: 0 1px 2px rgba(13,17,36,.12), 0 16px 40px rgba(49,46,129,.22);
	--fs-sh-pop: 0 2px 6px rgba(13,17,36,.2), 0 30px 80px rgba(13,17,36,.45);
}

/* Dark: the approved dark screens' shadows softened the same way as light (deep wide layer dropped,
   about half the opacity). Applies when her page or the part says dark. */
.fset-dark .fset-module[data-fs-shadow],
.fs-dark .fset-module[data-fs-shadow],
.fset-module[data-fs-shadow][data-fs-scheme="dark"] {
	--fs-sh-card: 0 1px 2px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.18);
	--fs-sh-small: 0 1px 2px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.15);
	--fs-sh-glass: 0 4px 14px rgba(0,0,0,.2);
	--fs-sh-pop: 0 8px 24px rgba(0,0,0,.3);
}
.fset-dark .fset-module[data-fs-shadow="none"],
.fs-dark .fset-module[data-fs-shadow="none"],
.fset-module[data-fs-shadow="none"][data-fs-scheme="dark"] {
	--fs-sh-card: none;
	--fs-sh-small: none;
	--fs-sh-glass: none;
}
.fset-dark .fset-module[data-fs-shadow="medium"],
.fs-dark .fset-module[data-fs-shadow="medium"],
.fset-module[data-fs-shadow="medium"][data-fs-scheme="dark"] {
	--fs-sh-card: 0 2px 4px rgba(0,0,0,.25), 0 8px 20px rgba(0,0,0,.25);
	--fs-sh-small: 0 1px 2px rgba(0,0,0,.25), 0 4px 10px rgba(0,0,0,.2);
	--fs-sh-glass: 0 8px 22px rgba(0,0,0,.28);
	--fs-sh-pop: 0 12px 32px rgba(0,0,0,.36);
}
.fset-dark .fset-module[data-fs-shadow="strong"],
.fs-dark .fset-module[data-fs-shadow="strong"],
.fset-module[data-fs-shadow="strong"][data-fs-scheme="dark"] {
	--fs-sh-card: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
	--fs-sh-small: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);
	--fs-sh-glass: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
	--fs-sh-pop: 0 2px 6px rgba(0,0,0,.4), 0 30px 80px rgba(0,0,0,.55);
}

/* T20 (lane A's A-23): "device" = the dark shadows above only while the visitor's device prefers dark. */
@media (prefers-color-scheme: dark) {
	.fset-module[data-fs-shadow][data-fs-scheme="device"] {
		--fs-sh-card: 0 1px 2px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.18);
		--fs-sh-small: 0 1px 2px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.15);
		--fs-sh-glass: 0 4px 14px rgba(0,0,0,.2);
		--fs-sh-pop: 0 8px 24px rgba(0,0,0,.3);
	}
	.fset-module[data-fs-shadow="none"][data-fs-scheme="device"] {
		--fs-sh-card: none;
		--fs-sh-small: none;
		--fs-sh-glass: none;
	}
	.fset-module[data-fs-shadow="medium"][data-fs-scheme="device"] {
		--fs-sh-card: 0 2px 4px rgba(0,0,0,.25), 0 8px 20px rgba(0,0,0,.25);
		--fs-sh-small: 0 1px 2px rgba(0,0,0,.25), 0 4px 10px rgba(0,0,0,.2);
		--fs-sh-glass: 0 8px 22px rgba(0,0,0,.28);
		--fs-sh-pop: 0 12px 32px rgba(0,0,0,.36);
	}
	.fset-module[data-fs-shadow="strong"][data-fs-scheme="device"] {
		--fs-sh-card: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
		--fs-sh-small: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);
		--fs-sh-glass: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
		--fs-sh-pop: 0 2px 6px rgba(0,0,0,.4), 0 30px 80px rgba(0,0,0,.55);
	}
}

/* Match my theme (PROVISIONAL names until the contract fixes the parts' token names): her fonts and
   her accent colour; layout, corners and depth stay FocalShift's. The site's fonts arrive as
   --fset-font-body / --fset-font-head (set by the renderer in inherit mode), her accent as --fs-theme-accent. */
.fset-module[data-fs-look="theme"],
.fset-module[data-fs-look="theme"] .fs {
	--f: var(--fset-font-body, inherit);
	--fh: var(--fset-font-head, var(--fset-font-body, inherit));
	--a: var(--fs-theme-accent, #615dfa);
	--a2: var(--fs-theme-accent, #5551e8);
	--pink: var(--fs-theme-accent, #e5006f);
}

/* WP-PLUGINS-FINISH-1125 (0.7.1): the host theme's look (filter fset_host_look; FocalShift Collaborate for WordPress by its
   theme.json). The theme sets only these variables on the part's own wrapper; the part keeps its layout, corners and depth. */
.fset-module[data-fs-look="host"],
.fset-module[data-fs-look="host"] .fs {
	--a: var(--fs-host-a, #615dfa);
	--a2: var(--fs-host-a2, #5551e8);
	--a3: var(--fs-host-a3, #41c7e0);
	--pink: var(--fs-host-pink, #e5006f);
	--live: var(--fs-host-pink, #e5006f);
	--f: var(--fs-host-f, Inter, sans-serif);
	--fh: var(--fs-host-fh, Urbanist, Inter, sans-serif);
}
.fset-module[data-fs-look="host"]:not(.fs-dark):not([data-fs-scheme="dark"]),
.fset-module[data-fs-look="host"]:not(.fs-dark):not([data-fs-scheme="dark"]) .fs {
	--t: var(--fs-host-t, #171c30);
	--s: var(--fs-host-s, #fff);
	--s2: var(--fs-host-s2, #f2f4fb);
	--mut: var(--fs-host-mut, #5f6783);
	--line: var(--fs-host-line, #e3e7f2);
}

/* Whole-page parts: how wide they sit in her theme (contract section 2, `width`). */
.fset-part[data-fs-width="text"] { max-width: var(--wp--style--global--content-size, 720px); margin-left: auto; margin-right: auto; }
.fset-part[data-fs-width="wide"] { max-width: var(--wp--style--global--wide-size, 1200px); margin-left: auto; margin-right: auto; }
.fset-part[data-fs-width="full"] { max-width: none; }

/* T28 (WP-PLUGINS-FIX-R10-1123, lane G's run 13: the Community "Here now" band, which carries the cover photo, read as a grey empty
   slot): a slot whose picture is a child <img> (a band or a frame the kit draws: an element with data-fs-pic-slot and an <img> inside)
   has no `src` of its own, so it matched the empty-slot rule and pulsed at .55 opacity over a grey block forever. A slot that holds a
   picture is no longer a placeholder. */
/* The picture placeholder (founder note 20; one class shared with the FocalShift admin): a blank block in the soft
   surface colour, the picture's own size and 8px corners, gently fading while the picture loads; a slot with no
   picture at all keeps it. The picture fades in once loaded. Still, with no fade, for reduced motion. */
.fs-skel:not(:has(> img[src])),
.fset-part [data-fs-pic-slot]:not([src]):not([style*="url("]):not([data-fs-pic-own]):not(:has(> img[src])) {
	background: var(--s2, #f2f4fb);
	border-radius: 8px;
	animation: fs-skel 1.6s ease-in-out infinite;
}
.fset-dark .fs-skel:not(:has(> img[src])), .fs-dark .fs-skel:not(:has(> img[src])),
.fset-dark .fset-part [data-fs-pic-slot]:not([src]):not([style*="url("]):not([data-fs-pic-own]):not(:has(> img[src])),
.fs-dark .fset-part [data-fs-pic-slot]:not([src]):not([style*="url("]):not([data-fs-pic-own]):not(:has(> img[src])) { background: var(--s2, #20253c); }
img.fs-skel { color: transparent; }
@keyframes fs-skel { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.fs-pic-in { animation: fs-pic-in .2s ease-out; }
@keyframes fs-pic-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.fs-skel:not(:has(> img[src])),
	.fset-part [data-fs-pic-slot]:not([src]):not([style*="url("]):not([data-fs-pic-own]):not(:has(> img[src])) { animation: none; opacity: 1; }
	.fs-pic-in { animation: none; }
}

/* T26: the Theme Toggle (data-fset-theme-toggle) shows the side the page is on. Its markup marks the sun `.on`; while the page
   is dark (the visitor's toggle on <html>, a dark part, or a device part on a dark device) the moon is the chosen side. */
.fset-dark .fs .tg[data-fset-theme-toggle] > span, .fs-dark .fs .tg[data-fset-theme-toggle] > span { background: transparent; color: var(--mut); box-shadow: none; }
.fset-dark .fs .tg[data-fset-theme-toggle] > span:last-child, .fs-dark .fs .tg[data-fset-theme-toggle] > span:last-child { background: var(--s); color: var(--a2); box-shadow: var(--fs-sh-small, var(--fsk-sh-small)); }
@media (prefers-color-scheme: dark) {
	html:not(.fset-light) [data-fs-scheme="device"] .fs .tg[data-fset-theme-toggle] > span { background: transparent; color: var(--mut); box-shadow: none; }
	html:not(.fset-light) [data-fs-scheme="device"] .fs .tg[data-fset-theme-toggle] > span:last-child { background: var(--s); color: var(--a2); box-shadow: var(--fs-sh-small, var(--fsk-sh-small)); }
}
