/**
 * phpBB SEO Core Design System - Utilities & Layout Grid
 * Universal Stylesheet for styles/all
 * Purely neutral - ZERO theme-specific naming or dependencies.
 */

/* ==========================================================================
   1. Two-Column Extension Layout (Main Content + Sidebar)
   ========================================================================== */
.pseo-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	width: 100%;
}

.pseo-layout-main {
	flex: 1 1 0%;
	min-width: 0;
}

.pseo-layout-sidebar {
	width: 310px;
	flex-shrink: 0;
}

@media (max-width: 992px) {
	.pseo-layout {
		flex-direction: column;
	}
	.pseo-layout-sidebar {
		width: 100%;
	}
}

/* ==========================================================================
   2. Responsive Grid System
   ========================================================================== */
.pseo-grid {
	display: grid;
	gap: 20px;
}

.pseo-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pseo-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pseo-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
	.pseo-grid-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.pseo-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.pseo-grid-4,
	.pseo-grid-3,
	.pseo-grid-2 {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   3. Flexbox Helpers
   ========================================================================== */
.pseo-flex { display: flex; }
.pseo-inline-flex { display: inline-flex; }
.pseo-flex-col { flex-direction: column; }
.pseo-flex-wrap { flex-wrap: wrap; }
.pseo-items-center { align-items: center; }
.pseo-items-start { align-items: flex-start; }
.pseo-items-end { align-items: flex-end; }
.pseo-justify-between { justify-content: space-between; }
.pseo-justify-center { justify-content: center; }
.pseo-justify-end { justify-content: flex-end; }

.pseo-gap-1 { gap: 4px; }
.pseo-gap-2 { gap: 8px; }
.pseo-gap-3 { gap: 12px; }
.pseo-gap-4 { gap: 16px; }
.pseo-gap-6 { gap: 24px; }

/* ==========================================================================
   4. Text Helpers & Line Clamps
   ========================================================================== */
.pseo-truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pseo-line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pseo-line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pseo-text-sm { font-size: 0.85rem; }
.pseo-text-xs { font-size: 0.75rem; }
.pseo-text-muted { color: var(--pseo-text-muted) !important; }
.pseo-text-sub { color: var(--pseo-text-sub) !important; }
.pseo-font-bold { font-weight: 700 !important; }
.pseo-font-semibold { font-weight: 600 !important; }

/* ==========================================================================
   5. Margins & Spacings
   ========================================================================== */
.pseo-mt-1 { margin-top: 4px; }
.pseo-mt-2 { margin-top: 8px; }
.pseo-mt-3 { margin-top: 12px; }
.pseo-mt-4 { margin-top: 16px; }
.pseo-mt-6 { margin-top: 24px; }
.pseo-mb-1 { margin-bottom: 4px; }
.pseo-mb-2 { margin-bottom: 8px; }
.pseo-mb-3 { margin-bottom: 12px; }
.pseo-mb-4 { margin-bottom: 16px; }
.pseo-mb-6 { margin-bottom: 24px; }
.pseo-hidden { display: none !important; }
