/**
 * Shared layout for inner pages — same stack as index.html
 * (landing-sections, wireframe, theme, style, print, Bootstrap).
 * Load after print.css, before or after Bootstrap (this file avoids !important).
 */

body.site-content-page {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, sans-serif;
	color: var(--text-dark);
	line-height: 1.6;
	overflow-x: hidden;
}

/* Jusmundi / CV chrome pages bring their own surface (cv-theme, jusmundi.css). */

body.site-content-page:not(.jusmundi-page):not(.page-dark) {
	background-color: var(--bg-white);
}
/*
body.site-content-page #main-content {
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: 3rem;
}
*/
body.site-content-page #main-content.container {
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Optional title band (homepage hero gradient) */
/*
body.site-content-page .site-page-hero {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 2.5rem 1.5rem;
	text-align: center;
	border-radius: 12px;
	margin-bottom: 2rem;
	box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

body.site-content-page .site-page-hero h1 {
	margin: 0;
	font-size: clamp(1.65rem, 4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
}

body.site-content-page .site-page-hero .site-page-hero-lead {
	margin: 0.75rem 0 0;
	opacity: 0.95;
	font-size: 1.05rem;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}
 */
/* Policy / long-form prose */
body.site-content-page.policy-legal #main-content h1 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--text-dark);
}

body.site-content-page.policy-legal #main-content h2 {
	font-size: 1.3rem;
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 0.65rem;
	color: var(--text-dark);
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--border-color);
}

body.site-content-page.policy-legal #main-content p,
body.site-content-page.policy-legal #main-content li {
	color: var(--text-dark);
}

body.site-content-page.policy-legal #main-content a {
	color: var(--primary-color);
	font-weight: 500;
}

body.site-content-page.policy-legal #main-content a:hover {
	color: var(--secondary-color);
}

body.site-content-page.policy-legal #main-content ul {
	padding-left: 1.25rem;
}

@media (prefers-color-scheme: dark) {
	body.site-content-page.policy-legal #main-content a:hover {
		filter: brightness(1.15);
	}
}

/* --------------------------------------------------------------------------
   TrueNAS hardware section — theme-aware intro (light/dark toggle + responsive)
   -------------------------------------------------------------------------- */

body.site-content-page .hardware-section {
	background: linear-gradient(
		168deg,
		var(--bg-secondary) 0%,
		var(--bg-primary) 55%,
		var(--bg-secondary) 100%
	);
	border-bottom: 1px solid var(--border-color);
	transition:
		background 0.35s ease,
		border-color 0.35s ease;
}

body.site-content-page .hardware-section .display-4 {
	color: var(--text-primary);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.site-content-page .hardware-heading-with-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	text-align: center;
	margin-bottom: 1rem;
}

@media (min-width: 576px) {
	body.site-content-page .hardware-heading-with-icon {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.85rem;
	}
}

body.site-content-page .hardware-heading-with-icon__glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 0.9rem;
	background: linear-gradient(
		145deg,
		color-mix(in srgb, var(--primary-color) 35%, transparent),
		color-mix(in srgb, var(--secondary-color) 22%, transparent)
	);
	color: var(--button-text);
	font-size: 1.35rem;
	box-shadow: 0 4px 14px var(--shadow-color);
	border: 1px solid
		color-mix(in srgb, var(--primary-color) 45%, var(--border-color));
}

body.site-content-page .hardware-heading-with-icon__text {
	line-height: 1.15;
}

body.site-content-page .hardware-platform-band {
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
}

body.site-content-page .hardware-platform-band__tagline {
	font-size: clamp(1rem, 2.8vw, 1.2rem);
	line-height: 1.6;
	color: var(--text-secondary);
	font-weight: 500;
	text-wrap: balance;
	hyphens: auto;
	margin: 0 auto;
	max-width: 42rem;
}

body.site-content-page .hardware-platform-band__tagline strong {
	color: var(--text-primary);
	font-weight: 650;
}

body.site-content-page .hardware-pill-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
	margin: 1.35rem 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

@media (min-width: 480px) {
	body.site-content-page .hardware-pill-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	body.site-content-page .hardware-pill-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.75rem;
	}
}

body.site-content-page .hardware-pill {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.75rem 0.85rem;
	border-radius: 0.75rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	box-shadow: 0 1px 3px var(--shadow-color);
	color: var(--text-primary);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
	min-height: 100%;
}

@media (hover: hover) and (pointer: fine) {
	body.site-content-page .hardware-pill:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 18px var(--shadow-hover);
		border-color: color-mix(
			in srgb,
			var(--primary-color) 35%,
			var(--border-color)
		);
	}
}

body.site-content-page .hardware-pill:focus-within {
	outline: 2px solid var(--link-color);
	outline-offset: 2px;
}

body.site-content-page .hardware-pill__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background: color-mix(in srgb, var(--primary-color) 18%, var(--bg-secondary));
	color: var(--primary-color);
	font-size: 1rem;
}

body.site-content-page .hardware-pill__title {
	display: block;
	font-weight: 650;
	font-size: 0.9rem;
	line-height: 1.3;
	color: var(--text-primary);
}

body.site-content-page .hardware-pill__sub {
	display: block;
	font-size: 0.8rem;
	line-height: 1.35;
	color: var(--text-muted);
	margin-top: 0.15rem;
}

/* Bill of materials — intro blurb + section headings + row icons (theme-aware) */

body.site-content-page .hardware-bom-intro {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
}

body.site-content-page .hardware-bom-intro__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-top: 0.1rem;
	border-radius: 0.5rem;
	background: color-mix(
		in srgb,
		var(--accent-color, #f59e0b) 22%,
		var(--bg-secondary)
	);
	color: color-mix(
		in srgb,
		var(--accent-color, #d97706) 90%,
		var(--text-primary)
	);
	font-size: 0.95rem;
}

body.site-content-page .hardware-bom-intro__text {
	flex: 1;
	min-width: 0;
}

body.site-content-page .hardware-bom-heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

body.site-content-page .hardware-bom-heading__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 0.45rem;
	background: color-mix(in srgb, var(--primary-color) 16%, var(--bg-secondary));
	color: var(--primary-color);
	font-size: 0.95rem;
	flex-shrink: 0;
}

body.site-content-page .hardware-bom-heading--sub {
	font-size: inherit;
	font-weight: 600;
}

body.site-content-page .hardware-bom-heading--sub .hardware-bom-heading__icon {
	width: 1.55rem;
	height: 1.55rem;
	font-size: 0.82rem;
}

body.site-content-page .hardware-bom-li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

/* Override wireframe Bootstrap #fff list rows — theme-aware surfaces + readable type */
body.site-content-page .hardware-section
	.hardware-bom-list.list-group-flush
	> .list-group-item.hardware-bom-li {
	background-color: var(--bg-secondary);
	color: var(--text-primary);
	border-color: var(--border-color);
	padding: 0.85rem 1rem;
	line-height: 1.6;
	font-size: 1rem;
	border-radius: 0;
}

body.site-content-page
	.hardware-section
	.hardware-bom-list.list-group-flush
	> .list-group-item.hardware-bom-li:not(:last-child) {
	margin-bottom: -1px;
}

body.site-content-page
	.hardware-section
	.hardware-bom-list.list-group-flush
	> .list-group-item.hardware-bom-li:nth-child(even) {
	background-color: color-mix(in srgb, var(--bg-secondary) 65%, var(--bg-card));
}

body.site-content-page .hardware-section .hardware-bom-list {
	border: 1px solid var(--border-color);
	border-radius: 0.65rem;
	overflow: hidden;
	box-shadow: inset 0 1px 0
		color-mix(in srgb, var(--text-primary) 6%, transparent);
}

body.site-content-page
	.hardware-section
	.hardware-bom-list.list-group-flush
	> .list-group-item.hardware-bom-li:first-child {
	border-top: none;
}

body.site-content-page
	.hardware-section
	.hardware-bom-list.list-group-flush
	> .list-group-item.hardware-bom-li:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

body.site-content-page .hardware-bom-li__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-top: 0.05rem;
	border-radius: 0.5rem;
	text-align: center;
	font-size: 0.95rem;
	color: var(--primary-color);
	background: color-mix(in srgb, var(--primary-color) 14%, var(--bg-card));
	border: 1px solid
		color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
}

body.site-content-page .hardware-bom-li__body {
	flex: 1;
	min-width: 0;
	color: var(--text-primary);
	font-weight: 500;
	letter-spacing: 0.01em;
	overflow-wrap: anywhere;
	word-break: break-word;
}

body.site-content-page .hardware-bom-li__body a {
	font-weight: 600;
	text-underline-offset: 0.15em;
}

body.site-content-page .hardware-section .hardware-bom-total {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.9rem 1rem;
	border-radius: 0.65rem;
	border: 1px solid var(--border-color);
	background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-secondary));
}

body.site-content-page .hardware-section .hardware-bom-total__label {
	font-weight: 650;
	font-size: 0.95rem;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

body.site-content-page .hardware-section .hardware-bom-total__amount {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--text-primary);
	font-variant-numeric: tabular-nums;
}

body.site-content-page .hardware-section .hardware-bom-total__note {
	font-size: 0.82rem;
	color: var(--text-muted);
	line-height: 1.4;
	margin: 0;
}

body.site-content-page .hardware-section .hardware-bom-upgrade-note {
	padding: 0.85rem 1rem;
	border-radius: 0.65rem;
	border: 1px dashed var(--border-color);
	background: color-mix(in srgb, var(--bg-secondary) 92%, var(--primary-color));
}

body.site-content-page .hardware-section .hardware-bom-upgrade-note__title {
	font-weight: 650;
	font-size: 0.9rem;
	color: var(--text-primary);
	margin: 0;
}

body.site-content-page .hardware-section .hardware-bom-upgrade-note__list {
	padding-left: 1.15rem;
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--text-secondary);
}

body.site-content-page
	.hardware-section
	.hardware-bom-upgrade-note__list
	li
	+ li {
	margin-top: 0.5rem;
}

body.site-content-page
	.hardware-section
	.hardware-bom-upgrade-note__list
	strong {
	color: var(--text-primary);
}

html[data-theme="light"]
	body.site-content-page
	.hardware-section
	.hardware-bom-list.list-group-flush
	> .list-group-item.hardware-bom-li:nth-child(even) {
	background-color: color-mix(
		in srgb,
		var(--primary-color) 5%,
		var(--bg-secondary)
	);
}

/* --------------------------------------------------------------------------
   Stack / infra pages (truenas, freenas, …) — hero band, sections, tool links
   -------------------------------------------------------------------------- */

body.site-content-page.page-dark .stack-page-hero {
	padding-top: 3rem;
	padding-bottom: 3rem;
	background: color-mix(
		in srgb,
		var(--bg-secondary, #1e293b) 88%,
		var(--primary-color, #3b82f6) 12%
	);
	border-bottom: 1px solid var(--border-color, rgba(71, 85, 105, 0.5));
}

html[data-theme="light"] body.site-content-page.page-dark .stack-page-hero {
	background: color-mix(
		in srgb,
		var(--bg-secondary, #f1f5f9) 92%,
		var(--primary-color, #0d6efd) 8%
	);
}

body.site-content-page.page-dark .stack-page-hero .display-4 {
	color: var(--text-primary, #e2e8f0);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.site-content-page.page-dark .stack-page-hero__lead,
body.site-content-page.page-dark .stack-page-hero .lead {
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
	color: var(--text-secondary, #94a3b8);
}

body.site-content-page.page-dark .stack-page-section {
	padding-top: 3rem;
	padding-bottom: 3rem;
	background: var(--bg-primary, transparent);
}

body.site-content-page.page-dark .stack-page-section--alt {
	background: color-mix(in srgb, var(--bg-secondary, #1e293b) 82%, transparent);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

body.site-content-page.page-dark .stack-page-section__title {
	color: var(--text-primary);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.site-content-page.page-dark .stack-exchange-badge {
	text-align: center;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-color);
}

body.site-content-page.page-dark .stack-exchange-badge img {
	max-width: 100%;
	height: auto;
}

body.site-content-page.page-dark .stack-page-legacy-banner {
	border-radius: 0.65rem;
	border: 1px solid var(--border-color);
	background: color-mix(
		in srgb,
		var(--accent-color, #f59e0b) 14%,
		var(--bg-card, rgba(30, 41, 59, 0.7))
	);
	padding: 1rem 1.25rem;
	color: var(--text-primary);
}

body.site-content-page.page-dark .stack-page-legacy-banner h2,
body.site-content-page.page-dark .stack-page-legacy-banner .h2 {
	margin: 0;
	font-size: clamp(1.1rem, 2.5vw, 1.35rem);
	font-weight: 700;
	line-height: 1.35;
}

body.site-content-page.page-dark .stack-tool-link {
	color: inherit;
	background: var(--bg-card);
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

body.site-content-page.page-dark .stack-tool-link .text-body {
	color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
	body.site-content-page.page-dark .stack-tool-link:hover {
		background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-card));
		border-color: color-mix(
			in srgb,
			var(--primary-color) 38%,
			var(--border-color)
		);
		box-shadow: 0 4px 14px var(--shadow-color);
	}
}

body.site-content-page.page-dark .stack-tool-link:focus-visible {
	outline: 2px solid var(--link-color);
	outline-offset: 3px;
}

/* Homelab service cards (truenas.html + nabla.html — homelab-services-render.js) */
body.site-content-page .homelab-service-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-left: 4px solid var(--primary-color, #0d6efd);
	box-shadow: 0 4px 12px var(--shadow-color, rgba(0, 0, 0, 0.08));
}

/* Service name + icons: theme primary blue (nabla.html gets BS5 .text-primary; TrueNAS wireframe uses gray #cdcdcd) */
body.site-content-page .homelab-service-card .card-title {
	color: var(--primary-color, #0d6efd);
	font-weight: 650;
}

body.site-content-page .homelab-service-card .card-title i,
body.site-content-page .homelab-service-card .homelab-service-card__icon {
	color: inherit;
}

body.site-content-page .homelab-service-card .homelab-service-card__logo {
	width: 1.5rem;
	height: 1.5rem;
	object-fit: contain;
	flex-shrink: 0;
}

body.site-content-page .homelab-service-card a.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.28rem;
}

/*
 * TrueNAS page: wireframe Bootstrap fork sets .text-primary and .btn-outline-primary to ~#cdcdcd.
 * Restore theme primary blue for homelab Tunnel buttons, section icons, etc.
 */
body.site-content-page.page-truenas i.text-primary,
body.site-content-page.page-truenas .text-primary {
	color: var(--primary-color, #2563eb);
}

body.site-content-page.page-truenas .btn-outline-primary {
	color: var(--primary-color, #2563eb);
	border-color: var(--primary-color, #2563eb);
	background-color: transparent;
}

body.site-content-page.page-truenas .btn-outline-primary:hover,
body.site-content-page.page-truenas .btn-outline-primary:focus {
	color: var(--button-text, #fff);
	background-color: var(--primary-color, #2563eb);
	border-color: var(--primary-color, #2563eb);
}

body.site-content-page.page-truenas .btn-outline-primary:focus,
body.site-content-page.page-truenas .btn-outline-primary.focus {
	box-shadow: 0 0 0 0.2rem
		color-mix(in srgb, var(--primary-color, #2563eb) 35%, transparent);
}

/* Homelab reachability dots (nabla-service-status.js) — same on TrueNAS + Nabla */
body.site-content-page .nabla-svc-ping {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 0.55rem;
	height: 0.55rem;
	vertical-align: middle;
}

body.site-content-page .nabla-svc-ping::before {
	content: "";
	display: block;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.95;
}

body.site-content-page .nabla-svc-ping--pending {
	color: #94a3b8;
}

body.site-content-page .nabla-svc-ping--pending::before {
	opacity: 0.55;
	animation: homelab-svc-ping-pulse 1.1s ease-in-out infinite;
}

@keyframes homelab-svc-ping-pulse {
	50% {
		opacity: 0.2;
		transform: scale(0.92);
	}
}

body.site-content-page .nabla-svc-ping--ok {
	color: #22c55e;
}

body.site-content-page .nabla-svc-ping--fail {
	color: #ef4444;
}

body.site-content-page .nabla-svc-ping--unknown {
	color: #64748b;
}

html[data-theme="light"] body.site-content-page .nabla-svc-ping--ok {
	color: #16a34a;
}

html[data-theme="light"] body.site-content-page .nabla-svc-ping--fail {
	color: #dc2626;
}

/* Homelab Internal / Tunnel button row (truenas + nabla) */
body.site-content-page .homelab-service-card .truenas-app-actions .btn-group {
	width: 100%;
}

body.site-content-page
	.homelab-service-card
	.truenas-app-actions
	.btn-group
	.btn {
	flex: 1 1 0;
	min-width: 0;
	white-space: normal;
	line-height: 1.25;
}

/*
 * Tunnel button: HTTP status vs JSON reacheableFromOutside
 * (nabla-service-status.js + GET /api/homelab-tunnel-check).
 */
body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--ok {
	border-color: #22c55e !important;
	color: #16a34a !important;
	background-color: transparent !important;
}

body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--ok:hover,
body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--ok:focus {
	color: #14532d !important;
	border-color: #15803d !important;
	background-color: color-mix(in srgb, #22c55e 12%, transparent) !important;
}

body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--warn {
	border-color: #eab308 !important;
	color: #ca8a04 !important;
	background-color: transparent !important;
}

body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--warn:hover,
body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--warn:focus {
	color: #854d0e !important;
	border-color: #a16207 !important;
	background-color: color-mix(in srgb, #eab308 14%, transparent) !important;
}

body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--fail {
	border-color: #ef4444 !important;
	color: #dc2626 !important;
	background-color: transparent !important;
}

body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--fail:hover,
body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--fail:focus {
	color: #991b1b !important;
	border-color: #b91c1c !important;
	background-color: color-mix(in srgb, #ef4444 12%, transparent) !important;
}

body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--unknown {
	border-color: #64748b !important;
	color: #64748b !important;
	background-color: transparent !important;
}

body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--unknown:hover,
body.site-content-page
	.homelab-service-card
	a.btn.homelab-service-btn-tunnel.homelab-tunnel-tab--unknown:focus {
	color: #475569 !important;
	border-color: #475569 !important;
	background-color: color-mix(in srgb, #64748b 10%, transparent) !important;
}

/* Homelab HTTPS padlocks (homelab-services-render.js + nabla-service-status.js probe) */
body.site-content-page .homelab-service-card .homelab-tls-lock {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: 0.2em;
	font-size: 0.82em;
	line-height: 1;
	vertical-align: middle;
}

body.site-content-page .homelab-service-card .homelab-tls-lock i {
	color: inherit;
}

body.site-content-page .homelab-service-card .homelab-tls-lock--pending {
	color: #94a3b8;
	animation: homelab-tls-lock-pulse 1.1s ease-in-out infinite;
}

@keyframes homelab-tls-lock-pulse {
	50% {
		opacity: 0.45;
	}
}

body.site-content-page .homelab-service-card .homelab-tls-lock--ok {
	color: #22c55e;
}

body.site-content-page .homelab-service-card .homelab-tls-lock--fail {
	color: #ef4444;
}

html[data-theme="light"] body.site-content-page .homelab-service-card .homelab-tls-lock--ok {
	color: #16a34a;
}

html[data-theme="light"] body.site-content-page .homelab-service-card .homelab-tls-lock--fail {
	color: #dc2626;
}

body.site-content-page.page-truenas
	.page-truenas-secondary
	.card.border-secondary,
body.site-content-page.page-truenas .page-truenas-tools .border-secondary {
	border-color: var(--border-color);
}

/* --------------------------------------------------------------------------
   Workstation page (workstation.html) — sections, elevated cards
   -------------------------------------------------------------------------- */

body.site-content-page.page-workstation .workstation-service-card {
	box-shadow:
		0 0.35rem 1rem rgba(0, 0, 0, 0.08),
		0 0.12rem 0.35rem rgba(0, 0, 0, 0.06);
	transition:
		box-shadow 0.2s ease,
		transform 0.2s ease,
		border-color 0.2s ease;
	background: var(--bg-card);
}

@media (hover: hover) and (pointer: fine) {
	body.site-content-page.page-workstation .workstation-service-card:hover {
		box-shadow:
			0 0.55rem 1.35rem rgba(0, 0, 0, 0.12),
			0 0.2rem 0.5rem rgba(0, 0, 0, 0.08);
		transform: translateY(-2px);
		border-color: color-mix(
			in srgb,
			var(--primary-color) 28%,
			var(--border-color)
		);
	}
}

body.site-content-page.page-workstation .workstation-section-title {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
	color: var(--text-primary);
}

body.site-content-page.page-workstation .workstation-section-title__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--primary-color) 14%, var(--bg-secondary));
	color: var(--primary-color);
	font-size: 1.15rem;
}

body.site-content-page.page-workstation .workstation-section--alt {
	background: color-mix(
		in srgb,
		var(--bg-secondary) 88%,
		var(--primary-color) 12%
	);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

body.site-content-page.page-workstation .workstation-section--apps {
	background: var(--bg-primary);
}

body.site-content-page.page-workstation .workstation-repo-list {
	columns: 1;
}

@media (min-width: 576px) {
	body.site-content-page.page-workstation .workstation-repo-list {
		columns: 2;
		column-gap: 1.5rem;
	}
}

body.site-content-page.page-workstation .workstation-repo-list li {
	break-inside: avoid;
	margin-bottom: 0.35rem;
}

html[data-theme="light"]
	body.site-content-page.page-workstation
	.workstation-service-card {
	box-shadow:
		0 0.4rem 1.1rem rgba(15, 23, 42, 0.07),
		0 0.15rem 0.4rem rgba(15, 23, 42, 0.05);
}
