/* ===============================
	Allotment Management Help Styles
	=============================== */

/* Layout */
.am-help-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	padding: 1rem;
	max-width: 1200px;
	margin: auto;
	font-family: "Segoe UI", sans-serif;
}

/* Sidebar */
.am-help-sidebar {
	min-width: 220px;
	flex: 0 0 220px;
	border-right: 1px solid var(--border-mid);
	padding-right: 1rem;
}

.am-help-sidebar h2 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.am-help-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.am-help-sidebar li {
	margin-bottom: 0.5rem;
}

.am-help-sidebar a {
	text-decoration: none;
	color: var(--color-accent-blue);
}

.am-help-sidebar a:hover,
.am-help-sidebar a:focus {
	text-decoration: underline;
	color: var(--color-accent-blue-dark);
}

/* Main Content */
.am-help-content {
	flex: 1;
	max-width: 100%;
	padding-bottom: 2rem;
}

.am-help-content h1,
.am-help-content h2,
.am-help-content h3 {
	color: var(--text-primary);
	margin-top: 1rem;
}

.am-help-content p,
.am-help-content li {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-primary);
}

.am-help-content code {
	background: var(--color-surface-subtle);
	padding: 2px 5px;
	border-radius: var(--radius-sm);
	font-size: 0.95em;
	font-family: Consolas, monospace;
}

/* Table Styling */
.am-help-content table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.am-help-content th,
.am-help-content td {
	border: 1px solid var(--border-mid);
}

/* Responsive tweak */
@media (max-width: 768px) {
	.am-help-wrapper {
	flex-direction: column;
	}

	.am-help-sidebar {
	border-right: none;
	border-bottom: 1px solid var(--border-mid);
	padding-right: 0;
	padding-bottom: 1rem;
	}

	/* Make tables responsive */
	.am-help-content table {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
	}
}

/* Accessibility: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
