/* Corridor, the building's own social network, as a social app of its own:
   a tab bar (Feed, Users), then the view the address asks for. The feed is
   one column of post cards (face, name and job, the shot at its own
   proportions, likes and comments, the caption, the first comments) with
   three plain lines on what Corridor is beside it on a wide screen, above it
   on a narrow one. A profile is a header (a big face on its own colour, the
   name, handle, job, counts) over a grid of square posts; Users is a grid
   of cards; a post's own page sets the shot beside its whole thread on a
   wide screen. Everything in Slop's own hand: Ink rules, Card, hard shadows,
   Archivo Condensed for names, Plex Mono for the small print. */

.slop-corridor { display: grid; gap: 2rem; }
.slop-corridor * { box-sizing: border-box; }
.slop-corridor [hidden] { display: none !important; }
.slop-corridor a { color: inherit; text-decoration-line: none !important; }
.slop-corridor :is(a, button):focus-visible { outline: 2px solid var(--wp--preset--color--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- the page's introduction steps back on a profile, a post or Users ---------- */

.slop-corridor-sub .is-style-drip:has(> .slop-corridor-apptitle) { padding-bottom: var(--wp--preset--spacing--40) !important; }
.slop-corridor-sub .is-style-drip:has(> .slop-corridor-apptitle) > p.has-large-font-size { display: none; }
.slop-corridor-apptitle { font-size: clamp(1.75rem, 4vw, 2.75rem) !important; }

/* ---------- tabs: the bar (Feed, Users) and a view's switch ---------- */

.slop-corridor__bar,
.slop-corridor__switch { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.slop-corridor:not(.is-users) .slop-corridor__bar { justify-content: center; }
.slop-corridor__tab,
.slop-corridor__switch a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1.1rem;
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--card);
	font-weight: 700;
	white-space: nowrap;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.slop-corridor__tab:hover,
.slop-corridor__switch a:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--wp--preset--color--ink); }
.slop-corridor__tab[aria-current],
.slop-corridor__switch a[aria-current] { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.slop-corridor__n { font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.75rem; font-weight: 600; opacity: 0.7; }

/* ---------- faces ---------- */

.slop-cface {
	display: inline-grid;
	flex: none;
	place-items: center;
	overflow: hidden;
	aspect-ratio: 1;
	border: 1.5px solid var(--wp--preset--color--ink);
	border-radius: 50%;
	background: var(--slop-accent, var(--wp--preset--color--oat));
}
.slop-cface img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.slop-cface .slop-face__initial { font-family: var(--wp--preset--font-family--archivo-condensed); font-weight: 900; color: var(--wp--preset--color--ink); }
.slop-cface--s { width: 2rem; }
.slop-cface--s .slop-face__initial { font-size: 0.95rem; }
.slop-cface--m { width: 2.75rem; border-width: 2px; }
.slop-cface--m .slop-face__initial { font-size: 1.25rem; }
.slop-cface--l { width: 4.5rem; border-width: 2px; }
.slop-cface--l .slop-face__initial { font-size: 2rem; }
.slop-cface--xl { width: clamp(6rem, 18vw, 8.5rem); border-width: 2px; box-shadow: var(--wp--preset--shadow--hard-small); }
.slop-cface--xl .slop-face__initial { font-size: 3.5rem; }
.slop-cface-link { display: inline-flex; flex: none; border-radius: 50%; transition: transform 0.18s ease; }
.slop-cface-link:hover { transform: scale(1.06) rotate(-3deg); }

.slop-cname { font-weight: 700; }
a.slop-cname:hover,
.slop-cmention:hover { color: var(--wp--preset--color--orange); }
.slop-cmention { font-weight: 600; text-decoration-line: underline !important; text-decoration-color: color-mix(in oklab, var(--wp--preset--color--orange) 60%, transparent); text-decoration-thickness: 2px; text-underline-offset: 2px; }

.slop-cicon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slop-cicon.is-play { fill: currentColor; stroke: none; }

/* ---------- the feed ---------- */

.slop-corridor__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
	.slop-corridor__layout { grid-template-columns: minmax(0, 34rem) minmax(0, 20rem); justify-content: center; column-gap: clamp(2.5rem, 6vw, 6rem); }
	.slop-corridor__about { grid-column: 2; grid-row: 1; position: sticky; top: 6.5rem; }
	.slop-corridor__main { grid-column: 1; grid-row: 1; }
}
.slop-corridor__about {
	padding: 1.5rem;
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--oat);
}
.slop-corridor__about-title {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--archivo-condensed);
	font-size: 1.75rem;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}
.slop-corridor__about ol { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.slop-corridor__about li { font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.slop-corridor__about strong { display: block; }
.slop-corridor__about-no {
	display: block;
	margin-bottom: 0.15rem;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--orange);
}
.slop-corridor__main { position: relative; }
.slop-corridor__empty { margin: 0; font-size: var(--wp--preset--font-size--large); }
.slop-corridor__feed { display: grid; gap: 2rem; }

/* Someone has posted since the page was opened: a pill that brings them in. */
.slop-corridor__fresh {
	position: sticky;
	z-index: 3;
	top: 5.5rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 auto 1.25rem;
	padding: 0.55rem 1.15rem;
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--wp--preset--shadow--hard-small);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	animation: slop-corridor-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.slop-corridor__fresh:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--wp--preset--color--ink); }

/* ---------- a post ---------- */

.slop-cpost {
	overflow: hidden;
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--card);
	box-shadow: var(--wp--preset--shadow--hard);
}
.slop-cpost.is-new { animation: slop-corridor-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.slop-cpost__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; }
.slop-cpost__who { display: grid; min-width: 0; line-height: 1.25; }
.slop-cpost__who .slop-cname { justify-self: start; font-size: var(--wp--preset--font-size--small); }
.slop-cpost__sub { grid-column: 1 / -1; overflow: hidden; font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; opacity: 0.7; }
.slop-cpost__when { margin-left: auto; align-self: start; padding-top: 0.2rem; font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.6875rem; white-space: nowrap; opacity: 0.6; }
.slop-cpost__when:hover { opacity: 1; color: var(--wp--preset--color--orange); }
.slop-cpost__shot { border-block: var(--wp--custom--border--rule); background: var(--wp--preset--color--ink); }
.slop-cpost__open { display: block; }
.slop-cpost__shot .slop-shot__media { display: block; width: 100%; height: auto; max-height: 42rem; object-fit: contain; }
.slop-cpost__body { display: grid; gap: 0.5rem; padding: 0.75rem 1rem 1.1rem; }
.slop-cpost__body p { margin: 0; }
.slop-cpost__stats { display: flex; align-items: center; gap: 1rem; }
.slop-cpost__stat { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.8125rem; font-weight: 600; }
.slop-cpost__stat.is-likes .slop-cicon { fill: var(--wp--preset--color--orange); stroke: var(--wp--preset--color--ink); stroke-width: 1.5; }
a.slop-cpost__stat:hover { color: var(--wp--preset--color--orange); }
.slop-cpost__share {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
	padding: 0.3rem 0.75rem;
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.2s ease;
}
.slop-cpost__share .slop-cicon { width: 1rem; height: 1rem; }
.slop-cpost__share:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--wp--preset--color--ink); }
.slop-cpost__share.is-done { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.slop-cpost__share.is-done .slop-cicon path { stroke-dasharray: 24; animation: slop-corridor-draw 0.4s ease-out both; }
.slop-cpost__likes { font-size: 0.875rem; }
.slop-cpost__caption { font-size: var(--wp--preset--font-size--small); line-height: 1.45; }
.slop-cpost__comments { display: grid; gap: 0.35rem; margin: 0.15rem 0 0; padding: 0.6rem 0 0; border-top: 1px solid color-mix(in oklab, var(--wp--preset--color--ink) 15%, transparent); list-style: none; font-size: 0.875rem; line-height: 1.4; }
.slop-ccomment p { margin: 0; }
.slop-cpost__all { justify-self: start; font-size: 0.8125rem; font-weight: 600; opacity: 0.7; }
.slop-cpost__all:hover { opacity: 1; color: var(--wp--preset--color--orange); }

/* A post's own page: the shot beside its whole thread on a wide screen. */
.slop-corridor__single { width: 100%; max-width: 62rem; margin-inline: auto; }
@media (min-width: 900px) {
	.slop-cpost.is-full { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
	.slop-cpost.is-full .slop-cpost__shot { grid-column: 1; grid-row: 1 / span 2; display: grid; align-items: center; border-block: 0; border-right: var(--wp--custom--border--rule); }
	.slop-cpost.is-full .slop-cpost__head { grid-column: 2; border-bottom: 1px solid color-mix(in oklab, var(--wp--preset--color--ink) 15%, transparent); }
	.slop-cpost.is-full .slop-cpost__body { grid-column: 2; align-content: start; }
}
.slop-cpost__label { margin: 0.75rem 0 0.35rem; font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.slop-cpost__faces { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.slop-cpost__faces li { display: inline-flex; align-items: center; gap: 0.4rem; }
.slop-cpost__comments.is-full { gap: 0.75rem; padding-top: 0; border-top: 0; }
.slop-cpost__comments.is-full .slop-ccomment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.slop-cpost__comments.is-full time { display: block; margin-top: 0.15rem; font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.6875rem; opacity: 0.6; }
.slop-cpost__none { font-size: 0.875rem; opacity: 0.7; }

/* ---------- People ---------- */

.slop-corridor__head { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.slop-corridor__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--archivo-condensed);
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 900;
	line-height: 0.95;
	text-transform: uppercase;
}
.slop-corridor__lede { max-width: 40rem; margin: 0; font-size: var(--wp--preset--font-size--medium); line-height: 1.5; opacity: 0.8; }
.slop-cpeople { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.slop-cperson {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--card);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.slop-cperson:has(a:hover) { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--wp--preset--color--ink); }
.slop-cperson__text { display: grid; gap: 0.15rem; min-width: 0; line-height: 1.25; }
.slop-cperson__name { font-family: var(--wp--preset--font-family--archivo-condensed); font-size: 1.35rem; font-weight: 900; text-transform: uppercase; }
/* The whole card is its name's link. */
a.slop-cperson__name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.slop-cperson__job { overflow-wrap: anywhere; font-size: 0.875rem; }
.slop-cperson__count { font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.6875rem; opacity: 0.65; }

/* ---------- a profile ---------- */

.slop-cprofile { display: grid; gap: 1.5rem; width: 100%; max-width: 58rem; margin-inline: auto; }
.slop-cprofile__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.75rem; align-items: center; }
.slop-cprofile__id { display: grid; gap: 0.35rem; min-width: 0; }
.slop-cprofile__id p { margin: 0; }
.slop-cprofile__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--archivo-condensed);
	font-size: clamp(2.25rem, 7vw, 4rem);
	font-weight: 900;
	line-height: 0.9;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
.slop-cprofile__handle { font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.875rem; opacity: 0.7; }
.slop-cprofile__job { font-weight: 700; line-height: 1.35; }
.slop-cprofile__job span { font-weight: 400; }
.slop-cprofile__counts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; grid-column: 1 / -1; margin: 0; padding: 0.85rem 0 0; border-top: var(--wp--custom--border--rule); list-style: none; font-size: 0.9375rem; }
.slop-cprofile__counts strong { font-family: var(--wp--preset--font-family--archivo-condensed); font-size: 1.6rem; font-weight: 900; }
@media (min-width: 700px) {
	.slop-cprofile__head { grid-template-columns: auto minmax(0, 1fr) auto; }
	.slop-cprofile__counts { grid-column: auto; padding: 0; border: 0; text-align: center; }
	.slop-cprofile__counts li { display: grid; }
}
.slop-cprofile__about { max-width: 44rem; margin: 0; font-size: var(--wp--preset--font-size--medium); line-height: 1.55; }
.slop-cprofile__extra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.slop-cprofile__extra p { margin: 0; }
.slop-cprofile__now {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.55rem 0.85rem;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--oat);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
}
.slop-cprofile__now .is-style-label { margin-right: 0.3rem; }
.slop-cprofile__pulse { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: color-mix(in oklab, var(--wp--preset--color--ink) 35%, transparent); translate: 0 0.05rem; }
.slop-cprofile__pulse.is-live { background: var(--wp--preset--color--orange); animation: slop-corridor-pulse 2.4s ease-out 3; }
.slop-cprofile__out { font-size: var(--wp--preset--font-size--small); font-weight: 700; }
.slop-cprofile__out:hover { color: var(--wp--preset--color--orange); }
.slop-cprofile__tabs { padding-top: 0.25rem; border-top: var(--wp--custom--border--rule); padding-top: 1.25rem; }
.slop-cprofile__none { margin: 0; padding: 2rem 0; font-size: var(--wp--preset--font-size--large); opacity: 0.75; }

/* Their posts, square, three to a row. */
.slop-cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.3rem, 1vw, 0.75rem); margin: 0; padding: 0; list-style: none; }
.slop-cgrid__one a { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border: var(--wp--custom--border--rule); border-radius: var(--wp--custom--radius--small); background: var(--wp--preset--color--ink); }
.slop-cgrid__one :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.slop-cgrid__one a:hover :is(img, video) { transform: scale(1.05); }
.slop-cgrid__video { position: absolute; top: 0.45rem; right: 0.45rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: color-mix(in oklab, var(--wp--preset--color--ink) 70%, transparent); color: var(--wp--preset--color--paper); }
.slop-cgrid__video .slop-cicon { width: 0.9rem; height: 0.9rem; }
.slop-cgrid__over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1rem; background: color-mix(in oklab, var(--wp--preset--color--ink) 55%, transparent); color: var(--wp--preset--color--paper); font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.875rem; font-weight: 600; opacity: 0; transition: opacity 0.2s ease; }
.slop-cgrid__over span { display: inline-flex; align-items: center; gap: 0.3rem; }
.slop-cgrid__over .slop-cicon { width: 1.1rem; height: 1.1rem; }
.slop-cgrid__one a:is(:hover, :focus-visible) .slop-cgrid__over { opacity: 1; }

/* The comments they wrote, each beside the post it is on. */
.slop-cwrote { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.slop-cwrote__one { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.75rem; border: var(--wp--custom--border--rule); border-radius: var(--wp--custom--radius--medium); background: var(--wp--preset--color--card); }
.slop-cwrote__thumb { display: block; overflow: hidden; aspect-ratio: 1; border-radius: var(--wp--custom--radius--small); background: var(--wp--preset--color--ink); }
.slop-cwrote__thumb :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.slop-cwrote__one p { margin: 0; }
.slop-cwrote__on { font-size: 0.8125rem; opacity: 0.75; }
.slop-cwrote__on time { font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.6875rem; }
.slop-cwrote__text { font-size: var(--wp--preset--font-size--small); line-height: 1.45; }

/* ---------- more ---------- */

.slop-corridor__pages { display: flex; gap: 0.75rem; margin-top: 2rem; }
.slop-corridor__more {
	display: inline-block;
	padding: 0.55rem 1.2rem;
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--pill);
	font-weight: 600;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.slop-corridor__more:is(:hover, :focus-visible) { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--wp--preset--color--ink); }
.slop-corridor__more.is-loading { opacity: 0.6; pointer-events: none; }

/* ---------- motion ---------- */

@keyframes slop-corridor-in { from { opacity: 0; transform: translateY(-14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes slop-corridor-pop { from { opacity: 0; transform: translateY(-10px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes slop-corridor-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes slop-corridor-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--wp--preset--color--orange) 60%, transparent); } 100% { box-shadow: 0 0 0 0.6rem transparent; } }
@media (prefers-reduced-motion: reduce) {
	.slop-corridor *,
	.slop-corridor *::after { transition: none !important; animation: none !important; }
}

/* The block in the editor: a placeholder saying what it shows. */
.slop-live__editor { padding: 1.5rem; border: 1.5px dashed currentColor; }
.slop-live__editor-label { font-family: var(--wp--preset--font-family--plex-mono); font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; }
