/* Shared styling for web/docs-*.html pages - kept theme-agnostic (borders/accents only, no
   fixed light/dark backgrounds) since MockMotor's themes are separate compiled stylesheets,
   not CSS-variable driven, and these pages must read correctly under any of them. */

.doc-ai-badge {
	display: inline-block;
	font-size: 0.5em;
	font-weight: normal;
	vertical-align: middle;
	margin-left: 0.6em;
	padding: 0.15em 0.6em;
	border: 1px solid #7a5cff;
	border-radius: 1em;
	color: #7a5cff;
	white-space: nowrap;
}
.doc-ai-badge i {
	margin-right: 0.3em;
}

.doc-ai-notice {
	display: block;
	margin: 0.5em 0 1.5em 0;
	padding: 0.6em 1em;
	border: 1px dashed #7a5cff;
	border-radius: 6px;
	font-size: 0.85em;
	opacity: 0.85;
}

/* Top-level nav strip, shared across every docs-*.html page (see docs-nav.html) - styled after
   the application's own breadcrumb trail (.hoverableblock card, fa-slash-forward separator,
   compact inline links) rather than the app's actual breadcrumb markup, which is JS-bound to
   live envid/srvid/respid data that doesn't apply to a static content page. */
.doc-topnav {
	margin: 0 0 1em 0;
	padding: 0.6em 1em;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9em;
	font-size: 0.85em;
}
.doc-topnav a { text-decoration: none; opacity: 0.75; white-space: nowrap; }
.doc-topnav a:hover { text-decoration: underline; opacity: 1; }
.doc-topnav-home { font-weight: bold; opacity: 0.9 !important; }
.doc-topnav-sep { opacity: 0.5; margin: 0 -0.3em 0 -0.5em; }
.doc-topnav-current {
	font-weight: bold;
	opacity: 1 !important;
	color: #7a5cff;
	text-decoration: none !important;
}

.doc-body h2 {
	margin-top: 1.6em;
	margin-bottom: 0.5em;
	padding-bottom: 0.2em;
	border-bottom: 1px solid rgba(128,128,128,0.3);
}
.doc-body h3 {
	margin-top: 1.2em;
	margin-bottom: 0.4em;
}
.doc-body ul, .doc-body ol {
	margin-bottom: 1em;
}
.doc-body code, .doc-body pre {
	font-family: 'Courier New', monospace;
}
.doc-body pre {
	padding: 0.8em 1em;
	border: 1px solid rgba(128,128,128,0.3);
	border-radius: 6px;
	overflow-x: auto;
	background: rgba(128,128,128,0.07);
}
.doc-body code {
	background: rgba(128,128,128,0.12);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}
.doc-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}
.doc-body table th, .doc-body table td {
	border: 1px solid rgba(128,128,128,0.3);
	padding: 0.4em 0.7em;
	text-align: left;
	vertical-align: top;
}
.doc-body table th {
	background: rgba(128,128,128,0.1);
}

.doc-callout {
	border-left: 4px solid #7a5cff;
	padding: 0.5em 1em;
	margin: 1em 0;
	background: rgba(122,92,255,0.06);
}
.doc-callout.warn {
	border-left-color: #db2a2a;
	background: rgba(219,42,42,0.06);
}

.doc-index-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1em;
	margin: 1.5em 0;
}
.doc-index-card {
	border: 1px solid rgba(128,128,128,0.3);
	border-radius: 8px;
	padding: 1em 1.2em;
	text-decoration: none;
	color: inherit;
	display: block;
}
.doc-index-card:hover {
	border-color: #7a5cff;
	text-decoration: none;
}
.doc-index-card h4 {
	margin: 0 0 0.3em 0;
}
.doc-index-card p {
	margin: 0;
	font-size: 0.85em;
	opacity: 0.8;
}

.doc-related {
	margin-top: 2.5em;
	padding-top: 1em;
	border-top: 1px solid rgba(128,128,128,0.3);
	font-size: 0.9em;
}
.doc-related a { margin-right: 1.2em; }
