/* The Live page's show pieces (includes/live-show.php). */

.slop-show {
	--slop-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--slop-serif: Georgia, "Times New Roman", Times, serif;
	--slop-rule: 1.5px solid var(--wp--preset--color--ink);
}
/* Every piece measures its boxes with their padding and border. */
.slop-show *,
.slop-show *::before,
.slop-show *::after { box-sizing: border-box; }
/* What a script hides stays hidden, whatever display a piece has. */
.slop-show [hidden] { display: none !important; }
/* The page's running-text links are underlined (a rule this specific can only be met with !important); the pieces' own links are styled here. */
.slop-show a { text-decoration-line: none !important; }

.slop-show__empty,
.slop-show__stale {
	margin: 1rem 0 0;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.75;
}

/* ---------- a face: a portrait on its own colour ---------- */

.slop-face {
	display: inline-grid;
	flex: none;
	place-items: center;
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--slop-accent, var(--wp--preset--color--oat));
}
.slop-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.slop-face__initial { font-family: var(--wp--preset--font-family--archivo-condensed); font-size: 1.5em; font-weight: 900; color: var(--wp--preset--color--ink); }
.slop-face--s { width: 1.75rem; border: 1.5px solid var(--wp--preset--color--ink); }
.slop-face--credit { width: 3rem; border: var(--slop-rule); }

/* ---------- the newest headlines: a ticker that runs on by itself ---------- */

/* The bar's drip edge starts with a flat band of paint (drip.svg's first 24 of
   its 120 units); the same depth above keeps the headlines in the middle of
   all the orange. */
.slop-show--ticker { padding-top: calc(clamp(48px, 8.4vw, 120px) * 0.2); }
.slop-ticker {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
}
.slop-ticker__tag {
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0 clamp(0.75rem, 2vw, 1.5rem);
	padding: 0.55rem 1rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}
.slop-ticker__dot { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--wp--preset--color--orange); }
/* Headlines fade out as they run in under the label, rather than being cut. */
.slop-ticker__window {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 2rem);
	mask-image: linear-gradient(to right, transparent, #000 2rem);
}
.slop-ticker__track {
	display: flex;
	width: max-content;
	animation: slop-ticker-run var(--slop-ticker-s, 90s) linear infinite;
}
.slop-ticker:is(:hover, :focus-within) .slop-ticker__track { animation-play-state: paused; }
@keyframes slop-ticker-run {
	to { transform: translateX(-50%); }
}
.slop-ticker__list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.slop-ticker__item { flex: none; }
.slop-ticker__item a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	height: 100%;
	padding: 0.45rem 1.5rem 0.45rem 1.25rem;
	border-right: 1.5px solid color-mix(in oklab, currentColor 30%, transparent);
	color: inherit;
	white-space: nowrap;
}
.slop-ticker__item a:is(:hover, :focus-visible) .slop-ticker__title { text-decoration-line: underline !important; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.slop-ticker__item a:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.slop-ticker__title { font-weight: 700; }
.slop-ticker__by { font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.75rem; opacity: 0.7; }

/* ---------- the newest story, and who made it ---------- */

.slop-story { display: grid; gap: 2rem; }
.slop-clip {
	display: grid;
	gap: 0.75rem;
	padding: clamp(1rem, 2.2vw, 1.5rem);
	border: var(--slop-rule);
	border-radius: 6px;
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--wp--preset--shadow--hard);
	transform: rotate(-1deg);
	transition: transform 0.25s var(--slop-spring), box-shadow 0.25s var(--slop-spring);
}
.slop-clip:is(:hover, :focus-visible) { transform: rotate(-1deg) translate(-4px, -4px); box-shadow: 12px 12px 0 var(--wp--preset--color--ink); }
.slop-clip:focus-visible { outline: 3px solid var(--wp--preset--color--orange); outline-offset: 4px; }
.slop-clip__mast {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 4px double var(--wp--preset--color--ink);
}
.slop-clip__mast span:first-child { font-family: var(--slop-serif); font-size: 1.375rem; font-weight: 700; }
.slop-clip__mast span:last-child { font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.75rem; text-transform: uppercase; }
.slop-clip__picture { display: block; width: 100%; height: auto; border: 1px solid color-mix(in oklab, var(--wp--preset--color--ink) 25%, transparent); }
.slop-clip__title { font-family: var(--slop-serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.1; }
.slop-clip__excerpt { font-family: var(--slop-serif); font-size: 1.0625rem; line-height: 1.45; }
.slop-clip__read { font-weight: 700; color: var(--wp--preset--color--orange); }
.slop-clip:is(:hover, :focus-visible) .slop-clip__read { text-decoration-line: underline !important; text-decoration-thickness: 2px; }

.slop-credits { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin: 0; padding: 0; list-style: none; }
.slop-credits li { display: flex; align-items: center; gap: 0.75rem; }
.slop-credits li > span:last-child { display: grid; line-height: 1.2; }
.slop-credits__what { font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.7; }
.slop-credits strong { font-family: var(--wp--preset--font-family--archivo-condensed); font-size: 1.375rem; font-weight: 900; text-transform: uppercase; }
.slop-credits__job { font-size: 0.8125rem; opacity: 0.7; }

/* ---------- three numbers ---------- */

.slop-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1.25rem 1.5rem; max-width: 30rem; margin: 0; }
.slop-facts__one { display: grid; gap: 0.35rem; align-content: start; }
.slop-facts__one dd {
	margin: 0;
	font-family: var(--wp--preset--font-family--archivo-condensed);
	font-size: clamp(2.5rem, 3.6vw, 3.25rem);
	font-weight: 900;
	line-height: 0.85;
	font-variant-numeric: tabular-nums;
}
.slop-facts__one dt { font-family: var(--wp--preset--font-family--plex-mono); font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.75; }
.slop-facts__one.is-zero dd { color: var(--wp--preset--color--orange); }
.slop-show [data-count].is-rolling { display: inline-block; animation: slop-show-roll 0.5s var(--slop-spring); }
@keyframes slop-show-roll {
	from { transform: translateY(0.35em); opacity: 0.2; }
	to { transform: none; opacity: 1; }
}

/* ---------- Corridor's newest photos ---------- */

.slop-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.75rem, 2.5vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.slop-posts__one { display: grid; gap: 0.75rem; align-content: start; }
.slop-posts__one a { display: block; }
.slop-posts__one img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border: 1.5px solid var(--wp--preset--color--paper);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: 8px 8px 0 var(--wp--preset--color--orange);
}
.slop-posts__one:nth-child(1) img { transform: rotate(-1.5deg); }
.slop-posts__one:nth-child(3) img { transform: rotate(1.2deg); }
.slop-posts__one p { margin: 0; font-size: var(--wp--preset--font-size--small); line-height: 1.4; opacity: 0.85; }
.slop-posts__one strong { margin-right: 0.25rem; }

/* ---------- a business card, from the floor plan ---------- */

.slop-biz {
	position: relative;
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	gap: 1rem;
	padding: 1.1rem 1.1rem 1.2rem;
	border: var(--slop-rule);
	border-top: 8px solid var(--slop-accent);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--wp--preset--shadow--hard);
	text-align: left;
}
.slop-face--biz { width: 4.5rem; border: var(--slop-rule); border-radius: var(--wp--custom--radius--small); }
.slop-biz__body { display: grid; gap: 0.3rem; min-width: 0; padding-right: 1.5rem; }
.slop-biz__body p { margin: 0; }
.slop-biz__name {
	font-family: var(--wp--preset--font-family--archivo-condensed);
	font-size: 1.75rem;
	font-weight: 900;
	line-height: 0.95;
	text-transform: uppercase;
}
.slop-biz__job { font-weight: 700; line-height: 1.25; }
.slop-biz__desk { font-family: var(--wp--preset--font-family--plex-mono); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
.slop-biz__now {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-top: 0.4rem !important;
	padding: 0.5rem 0.7rem;
	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-biz__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-biz__pulse.is-live { background: var(--wp--preset--color--orange); }
.slop-biz__now .is-style-label { margin-right: 0.3rem; }
.slop-biz__now.is-new { animation: slop-show-flash 1.2s ease-out; }
.slop-biz__credit { font-size: 0.8125rem; line-height: 1.4; }
.slop-biz__credit a { color: inherit; font-weight: 600; text-decoration-line: underline !important; text-decoration-color: var(--wp--preset--color--orange); text-decoration-thickness: 2px; }
.slop-biz__more { justify-self: start; margin-top: 0.3rem; color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--small); font-weight: 700; }
.slop-biz__more:is(:hover, :focus-visible) { color: var(--wp--preset--color--orange); }
.slop-biz__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.slop-biz__close:is(:hover, :focus-visible) { background: var(--wp--preset--color--oat); }
.slop-biz__close:focus-visible { outline: 2px solid var(--wp--preset--color--orange); }
.slop-biz-pop { position: absolute; z-index: 20; width: min(22rem, 100%); }
.slop-biz-pop.is-sheet { position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); width: auto; z-index: 1000; }
.slop-biz-pop.is-in { animation: slop-show-pop 0.35s var(--slop-spring); }
.slop-biz-pop.is-sheet.is-in { animation-name: slop-show-sheet; }
@keyframes slop-show-pop {
	from { transform: scale(0.9) translateY(0.5rem); opacity: 0; }
	to { transform: none; opacity: 1; }
}
@keyframes slop-show-sheet {
	from { transform: translateY(110%); }
	to { transform: none; }
}

@keyframes slop-show-flash {
	from { background: color-mix(in oklab, var(--wp--preset--color--orange) 45%, var(--wp--preset--color--oat)); }
	to { background: var(--wp--preset--color--oat); }
}

@media (max-width: 599px) {
	.slop-ticker__tag { padding: 0.6rem; }
	.slop-ticker__tag-words { display: none; }
	.slop-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
	.slop-posts__one p { display: none; }
	.slop-posts__one img { box-shadow: 4px 4px 0 var(--wp--preset--color--orange); }
	.slop-clip { transform: rotate(-0.5deg); }
	.slop-clip:is(:hover, :focus-visible) { transform: rotate(-0.5deg) translate(-3px, -3px); }
}

@media (prefers-reduced-motion: reduce) {
	.slop-show *,
	.slop-show *::before,
	.slop-show *::after { animation: none !important; transition: none !important; }
	.slop-ticker__window { overflow-x: auto; scrollbar-width: none; }
	.slop-ticker__window::-webkit-scrollbar { display: none; }
	.slop-ticker__list[aria-hidden="true"] { display: none; }
}
