/*
 * Oninit Nexus - page-specific CSS overlay.
 *
 * Loaded by /nexus/content.php so it applies to every nexus
 * page without touching the shared site CSS. Mirrors the logwalker /
 * ripper overlays so headings, paragraphs, lists, tables, and inline
 * code identifiers render in line with the surrounding legacy.css
 * typography.
 */

/* Tables: visible grid, tahoma cells matching legacy <td>/<th> rules */
.nexus-content table.legacy {
	border-collapse: collapse;
	margin: 8px 4px 12px 4px;
	font-family: tahoma;
	font-size: 12px;
	color: #000000;
	width: auto;
	max-width: 100%;
	text-align: left;
}

.nexus-content table.legacy th,
.nexus-content table.legacy td {
	border: 1px solid #c0a880;
	padding: 6px 10px;
	vertical-align: top;
	text-align: left;
}

.nexus-content table.legacy th {
	background-color: #f2eddc;
	color: #7e4400;
	font-weight: bold;
}

.nexus-content table.legacy tr:nth-child(even) td {
	background-color: #fbf8ee;
}

/* Lists: legacy.css sets font but not list-style; round bullets plus
 * an indent so the bullet shows up against the cream background. */
.nexus-content ul.legacy {
	list-style-type: disc;
	margin-left: 24px;
	padding-left: 16px;
	font-family: tahoma;
	font-size: 12px;
	color: #000000;
}

.nexus-content ul.legacy li {
	margin-top: 2px;
	margin-bottom: 2px;
	color: #000000;
}

/* Ordered lists: explicit decimal numbering so site-wide CSS doesn't
 * reset list-style to none and leave the steps unnumbered. */
.nexus-content ol.legacy {
	list-style-type: decimal;
	list-style-position: outside;
	margin: 8px 4px 12px 24px;
	padding-left: 16px;
	font-family: tahoma;
	font-size: 12px;
	color: #000000;
}

.nexus-content ol.legacy li {
	display: list-item;
	margin-top: 2px;
	margin-bottom: 2px;
	color: #000000;
}

/* Headings: legacy.css styles h2.legacy / h3.legacy; bring raw <h3>
 * (page title) and <h2> without class in line. */
.nexus-content h3 {
	font-size: 16px;
	font-family: tahoma;
	color: #7e4400;
	margin-top: 8px;
	margin-bottom: 12px;
}

.nexus-content h2.legacy {
	margin-top: 18px;
	margin-bottom: 6px;
}

/* Inline em used for code-ish identifiers - olive shade so it reads
 * as code inline, matching pre.legacy / .command. */
.nexus-content em.legacy,
.nexus-content em {
	color: #6b5a1f;
	font-style: normal;
}

/* Body paragraphs: comfortable line-height, capped width so long
 * lines stay readable. */
.nexus-content p,
.nexus-content p.legacy {
	line-height: 1.45;
	max-width: 64em;
	text-align: left;
}

/* Code blocks: faint cream wash so pre blocks separate from prose. */
.nexus-content pre.legacy {
	background-color: #fbf8ee;
	border: 1px solid #e8e0c8;
	padding: 8px 10px;
	overflow-x: auto;
	max-width: 100%;
	white-space: pre;
	margin: 8px 0;
}

/* Sidenav section divider. Groups "Documentation" / "Related" links
 * under a non-clickable label without nesting markup. */
.sidenav .sidenav-section {
	display: block;
	margin-top: 14px;
	margin-bottom: 4px;
	padding: 4px 12px 4px 12px;
	border-top: 1px solid #d8c8a8;
	font-family: tahoma;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #7e4400;
}

/* Icon copy button: small, transparent, hover ring. Selectors use
 * `button.copy-icon-btn` per CODE_ACTIONS.MD §"Specificity note". */
button.copy-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	margin: 0 0 0 6px;
	border: 1px solid #c0a880;
	border-radius: 4px;
	background: transparent;
	color: #7e4400;
	cursor: pointer;
	vertical-align: middle;
}
button.copy-icon-btn:hover { background: #f2eddc; }
button.copy-icon-btn svg { width: 14px; height: 14px; display: block; }
button.copy-icon-btn .icon-check { display: none; }
button.copy-icon-btn.copied { color: #2e7d32; border-color: #2e7d32; }
button.copy-icon-btn.copied .icon-copy  { display: none; }
button.copy-icon-btn.copied .icon-check { display: block; }
.code-block { position: relative; margin: 0 0 12px 0; }
.code-block pre { margin: 0; padding-right: 36px; }
button.copy-icon-btn--inset {
	position: absolute;
	top: 6px;
	right: 6px;
	margin: 0;
	background: #fbf8ee;
}
.code-actions {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	gap: 4px;
}
.code-actions button.copy-icon-btn { margin: 0; background: #fbf8ee; }
