/**
 * Text Panel Styles
 *
 * Generic text content panel with optional sidebar/aside
 *
 * Dependencies: ssa-base
 * Extracted from: styles.css lines 722-766, responsive rules from 768px, 480px
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.text-panel .content {
	padding-top: var(--space-9);
	padding-bottom: var(--space-9);
	display: grid;
	grid-template-columns: 70% 25%;
	gap: 5%;
}

/* text panel - when no aside element, use full width */
.text-panel .content:not(:has(.aside)) {
	display: block;
}

.text-panel .content:not(:has(.aside)) .content-area {
	width: 100%;
}

/* text panel - center align headings in full-width text panels */
.text-panel .content:not(:has(.aside)) .content-area h2 {
	text-align: center;
}

.text-panel .content .content-area {
	/* Grid item - no float needed */
}

.text-panel .content .aside {
	/* Grid item - no float needed */
}

.text-panel .content h1 {
	color: var(--brand-main);
	font-size: 42px;
	font-weight: 900;
	line-height: 46px;
	margin-bottom: var(--space-8);
}

.text-panel .content h2,
.text-panel .content h3 {
	color: var(--black);
	font-size: 24px;
	line-height: 30px;
	margin-bottom: var(--space-8);
}

/* ==========================================================================
   Responsive: Tablet (768px and below)
   ========================================================================== */

@media (max-width: 768px) {
	.text-panel .content .content-area {
		margin: 0 0 var(--space-9);
		width: 100%;
	}

	.text-panel .aside {
		display: none;
	}
}

/* ==========================================================================
   Responsive: Mobile (480px and below)
   ========================================================================== */

@media (max-width: 480px) {
	.text-panel .content {
		padding-top: var(--space-7);
		padding-bottom: var(--space-7);
	}

	.text-panel .content-area h1 {
		font-size: 34px;
		line-height: 42px;
	}
}
