/* ============================================================
   G-Integrator Help Center — wiki layout
   Two-column layout: collapsible multi-level tree (left)
   + article content (right).
   ============================================================ */

.wiki-shell {
	display: flex;
	align-items: flex-start;
	gap: 2.5rem;
	max-width: 1420px;
	margin: 0 auto;
	padding: 1.5rem 2rem 4rem;
}

/* ---------------- Sidebar ---------------- */

.wiki-sidebar {
	flex: 0 0 300px;
	position: sticky;
	top: 90px;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	padding: 1rem 0.75rem 2rem 0;
	border-right: 1px solid #E8E8E8;
	font-size: 0.95em;
}

.wiki-sidebar .wiki-nav-title {
	font-weight: 700;
	font-size: 1.05em;
	color: #212529;
	padding: 0 0.5rem 0.6rem;
	margin: 0;
}

.wiki-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wiki-nav a,
.wiki-nav .wiki-group-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	width: 100%;
	padding: 0.35rem 0.5rem;
	color: #444;
	border-radius: 4px;
	text-decoration: none;
	background: none;
	border: none;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.wiki-nav a:hover,
.wiki-nav .wiki-group-toggle:hover {
	background: #F4F7F9;
	color: #0088CC;
}

.wiki-nav .wiki-group-toggle {
	font-weight: 600;
	color: #212529;
}

.wiki-nav .wiki-group-toggle .wiki-caret {
	transition: transform 0.15s ease;
	font-size: 0.75em;
	color: #999;
	flex: 0 0 auto;
}

.wiki-group.expanded > .wiki-group-toggle .wiki-caret {
	transform: rotate(90deg);
}

.wiki-group > ul {
	display: none;
	margin-left: 0.55rem;
	padding-left: 0.9rem;
	border-left: 1px solid #ECECEC;
}

.wiki-group.expanded > ul {
	display: block;
}

.wiki-nav li.active > a {
	background: #E7F3FA;
	color: #0077B3;
	font-weight: 600;
}

.wiki-nav .wiki-external i {
	font-size: 0.7em;
	color: #AAA;
	flex: 0 0 auto;
}

/* Mobile toggle button (hidden on desktop) */
.wiki-nav-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.5rem 1rem;
	border: 1px solid #DDD;
	border-radius: 4px;
	background: #FFF;
	font-weight: 600;
	cursor: pointer;
}

/* ---------------- Content column ---------------- */

.wiki-content {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 900px;
}

.wiki-breadcrumbs {
	font-size: 0.9em;
	color: #999;
	margin-bottom: 1rem;
}

.wiki-breadcrumbs a {
	color: #777;
}

.wiki-breadcrumbs .sep {
	margin: 0 0.4rem;
	color: #CCC;
}

.wiki-article h1 {
	font-weight: 700;
	margin-bottom: 1.25rem;
}

.wiki-article .wiki-product-links {
	color: #999;
	margin-bottom: 1.5rem;
}

/* Topic blocks (migrated from the old single-page Help Center) */
.wiki-article .help-topic {
	margin-bottom: 2rem;
}

.wiki-article .help-topic h2 {
	font-size: 1.4em;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.wiki-article .menu-path {
	background: #F4F4F4;
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	padding: 0.1rem 0.4rem;
	font-family: "Courier New", monospace;
	font-size: 0.9em;
	white-space: nowrap;
}

.wiki-article .doc-shot {
	margin: 0.75rem 0 1rem;
}

.wiki-article .doc-shot img {
	max-width: 480px;
	width: 100%;
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	cursor: zoom-in;
}

.wiki-article .doc-shot figcaption {
	font-size: 0.85em;
	color: #777;
	margin-top: 0.3rem;
}

/* Missing screenshot -> visible "coming soon" placeholder */
.wiki-article .doc-shot.pending a {
	display: none;
}

.wiki-article .doc-shot.pending::before {
	content: "\1F4F7  Screenshot coming soon";
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 480px;
	height: 140px;
	border: 2px dashed #C9C9C9;
	border-radius: 4px;
	background: #FAFAFA;
	color: #999;
	font-size: 0.9em;
}

.wiki-article .report-catalog h3 {
	font-size: 1.1em;
	margin: 1.25rem 0 0.4rem;
	font-weight: 700;
	color: #212529;
}

.wiki-article .report-catalog ul {
	padding-left: 1.2rem;
	margin-bottom: 0.5rem;
}

.wiki-article .report-catalog li {
	margin-bottom: 0.3rem;
}

/* ---------------- Prev / next pager ---------------- */

.wiki-pager {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #E8E8E8;
}

.wiki-pager a {
	max-width: 46%;
	text-decoration: none;
}

.wiki-pager .pager-label {
	display: block;
	font-size: 0.8em;
	color: #999;
}

.wiki-pager .pager-next {
	margin-left: auto;
	text-align: right;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 991px) {
	.wiki-shell {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem 1rem 3rem;
	}

	.wiki-nav-toggle {
		display: inline-flex;
	}

	.wiki-sidebar {
		display: none;
		position: static;
		flex: none;
		width: 100%;
		max-height: none;
		border-right: none;
		border-bottom: 1px solid #E8E8E8;
		padding: 0 0 1rem;
	}

	.wiki-sidebar.open {
		display: block;
	}
}
