.nomon-social-wall {
	--feed-size: 16px;
	--feed-size-sm: 13px;
	--feed-bg: rgba(0, 0, 0, .55);
	--feed-text: #f5f5f5;
	--feed-muted: rgba(245, 245, 245, .6);
	--feed-accent: #f7a82a;
	--feed-border: 1px solid rgba(255, 255, 255, .08);
	--feed-gap: 16px;
	position: relative;
	z-index: 2;
	color: var(--feed-text);
	font-size: var(--feed-size);
	line-height: 1.5;
}

/* Editor preview only: clicks must select the block, not follow its links. */
[data-type="nomon/social-wall"] .nomon-social-wall { pointer-events: none; }

.nomon-social-wall__items {
	columns: 3;
	column-gap: var(--feed-gap);
}

.nomon-social-wall__item {
	break-inside: avoid;
	margin-bottom: var(--feed-gap);
}

.nomon-social-wall__footer {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.nomon-social-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: var(--feed-border);
	background: var(--feed-bg);
}

.nomon-social-card__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px;
}

.nomon-social-card__avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.nomon-social-card__meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.nomon-social-card__name {
	overflow: hidden;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nomon-social-card__time {
	color: var(--feed-muted);
	font-size: var(--feed-size-sm);
}

.nomon-social-card__network {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--feed-muted);
}

.nomon-social-card__text {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 16px 16px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow-wrap: anywhere;
}

.nomon-social-card__text.is-expanded {
	display: block;
	-webkit-line-clamp: none;
}

.nomon-social-card__text p {
	margin: 0 0 .75em;
	font-size: var(--feed-size);
	line-height: 1.5;
	font-weight: 400;
}

.nomon-social-card__text p:last-child { margin-bottom: 0; }

.nomon-social-card__text a {
	color: inherit;
	text-decoration: underline;
}

.nomon-social-card__more {
	align-self: flex-start;
	margin: -8px 16px 16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--feed-muted);
	font-size: var(--feed-size);
	line-height: 20px;
	cursor: pointer;
}

.nomon-social-card__more[hidden] { display: none; }

.nomon-social-card__media {
	position: relative;
	display: block;
	line-height: 0;
}

/* The card clips overflow, and the link marker would add a line under the image. */
.nomon-social-card__media:focus-visible { outline-offset: -2px; }
.nomon-social-card__media.is-new-window::after { content: none; }

.nomon-social-card__image {
	display: block;
	width: 100%;
	height: auto;
}

.nomon-social-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--feed-bg);
	color: var(--feed-text);
	transform: translate(-50%, -50%);
}

.nomon-social-card__play svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.nomon-social-card__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
	padding: 16px;
}

.nomon-social-card__link {
	color: var(--feed-accent);
	font-size: var(--feed-size-sm);
	text-decoration: none;
}

@media (max-width: 1024px) {
	.nomon-social-wall__items { columns: 2; }
}

@media (max-width: 640px) {
	.nomon-social-wall__items { columns: 1; }
	.nomon-social-wall__item.is-desktop-only { display: none; }
}
