/* ================================================================
   Onenessheart Network Posts — shared styles (frontend + editor)
   ================================================================ */

/* ----- Alignment (wide / full) --------------------------------- */

/*
 * Block themes: WordPress core layout CSS handles this automatically via
 * --wp--style--global--wide-size / --wp--style--global--content-size.
 *
 * Classic themes: provide a sensible fallback here.
 */
.wp-block-oh-network-posts-grid.alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.wp-block-oh-network-posts-grid.alignfull {
	max-width: 100vw;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

/* ----- Grid ---------------------------------------------------- */

.oh-net-grid {
	display: grid;
	gap: 1.75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.oh-net-cols-2,
	.oh-net-cols-3,
	.oh-net-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.oh-net-cols-3 { grid-template-columns: repeat(3, 1fr); }
	.oh-net-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ----- Card (grid item) ---------------------------------------- */

.oh-net-item {
	display: flex;
	flex-direction: column;
}

.oh-net-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f0f0f0;
}

.oh-net-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.oh-net-thumb:hover img,
.oh-net-thumb:focus img {
	transform: scale(1.05);
}

.oh-net-body {
	padding: 0.85rem 0 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.oh-net-date {
	display: block;
	font-size: 0.75rem;
	color: #1a1a1a;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.4rem;
}

.oh-net-title {
	font-size: 1rem;
	line-height: 1.35;
	margin: 0 0 0.5rem;
}

.oh-net-item .oh-net-title a,
.oh-net-item .oh-net-title a:visited,
.oh-net-item .oh-net-title a:hover,
.oh-net-item .oh-net-title a:focus {
	color: #1a1a1a;
	text-decoration: none;
}

.oh-net-item .oh-net-title a:hover,
.oh-net-item .oh-net-title a:focus {
	text-decoration: underline;
}

.oh-net-excerpt {
	font-size: 0.875rem;
	color: #555;
	line-height: 1.55;
	margin: 0;
}

.oh-net-empty {
	color: #888;
	font-style: italic;
}

/* ----- Sidebar / widget list ----------------------------------- */

.oh-net-sidebar-heading {
	font-weight: 700;
	font-size: 1rem;
	margin: 0 0 0.6rem;
}

.oh-net-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oh-net-sidebar-item {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid #eee;
}

.oh-net-sidebar-item:last-child {
	border-bottom: none;
}

.oh-net-sidebar-thumb {
	flex-shrink: 0;
	display: block;
	width: 62px;
	height: 62px;
	overflow: hidden;
}

.oh-net-sidebar-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.oh-net-sidebar-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.oh-net-sidebar-link {
	font-size: 0.875rem;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.oh-net-sidebar-link:hover,
.oh-net-sidebar-link:focus {
	text-decoration: underline;
}

.oh-net-sidebar-date {
	font-size: 0.72rem;
	color: #999;
}

/* ----- Single post view (/network-post/slug/) ------------------- */

.oh-net-single {
	max-width: 780px;
	margin: 2rem auto;
}

.oh-net-single-hero {
	margin-bottom: 1.5rem;
}

.oh-net-single-hero img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	display: block;
}

.oh-net-single-header h1 {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.oh-net-single-meta {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.85rem;
	color: #777;
	margin-bottom: 1.5rem;
}

.oh-net-single-content {
	line-height: 1.75;
}

.oh-net-single-footer {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e5e5;
	font-size: 0.9rem;
}
