/* SYSTEMS — technical document sheets */

.site-page--systems .site-header .site-header__rail {
	width: min(100%, 96rem);
	margin-inline: auto;
	padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.site-page--systems .site-header__series {
	padding-left: 0.05rem;
}

.systems-doc__title-rule {
	display: block;
	width: clamp(3rem, 10vw, 5rem);
	height: 2px;
	margin: 0.5rem auto 0;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	box-shadow: 0 0 6px var(--glow-soft);
	opacity: 0.9;
}

:root,
[data-theme="dark"] {
	--systems-hero-bg: #040608;
	--systems-panel-bg: color-mix(in srgb, var(--bg-deep) 70%, transparent);
}

[data-theme="light"] {
	--systems-hero-bg: var(--surface);
	--systems-panel-bg: var(--bg-secondary);
}

.systems-doc {
	min-height: calc(100vh - 4rem);
	padding: 0.75rem 0 2rem;
}

.systems-doc__container {
	width: min(100%, 96rem);
	margin: 0 auto;
	padding: 0 clamp(1rem, 2.5vw, 2rem);
}

/* ── Field Record button + popover ──────────────────────── */

/* Wrapper stretches the full height of the header so we can
   center the icon when closed and snap to the top when open. */
.systems-doc__record-wrap {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	pointer-events: none; /* let clicks fall through to page */
}

/* Popover participates in the flex column.
   When hidden it auto-centers (button only); when open it sticks to the top. */
.systems-doc__record-popover {
	pointer-events: all;
	z-index: 10;
}

/* [hidden] override: only show the icon button, vertically centered */
.systems-doc__record-popover[hidden] {
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	margin-top: auto;
	margin-bottom: auto;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
	width: auto;
}

.systems-doc__record-popover[hidden] .systems-doc__record-popover-type,
.systems-doc__record-popover[hidden] .systems-doc__record-grid,
.systems-doc__record-popover[hidden] .systems-doc__record-note {
	display: none;
}

.systems-doc__record-popover[hidden] .systems-doc__record-header {
	margin: 0;
}

/* Open card: snaps to the top of the header */
.systems-doc__record-popover:not([hidden]) {
	margin-top: 1.1rem;
	margin-bottom: auto;
	transform: translateX(1.13rem);
	width: 22rem;
	max-width: calc(100vw - 2rem);
	padding: 0.6rem 1.1rem 1rem;
	border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
	border-top: 2px solid var(--highlight);
	border-radius: 6px;
	background: var(--bg-deep, var(--bg));
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Mobile: cancel the translateX shift and constrain width */
@media (max-width: 640px) {
	.systems-doc__record-popover:not([hidden]) {
		transform: none;
		width: auto;
		max-width: calc(100vw - 1.5rem);
		right: 0;
	}
}

/* Header row: title left, icon button right */
.systems-doc__record-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

/* Title */
.systems-doc__record-popover-type {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--highlight);
}

/* Icon button */
.systems-doc__record-btn {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	background: none;
	border: 1px solid var(--muted);
	border-radius: 50%;
	color: var(--muted);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.systems-doc__record-btn:hover,
.systems-doc__record-btn[aria-expanded="true"] {
	color: var(--highlight);
	border-color: var(--highlight);
}

.systems-doc__record-btn span {
	font-family: Georgia, serif;
	font-size: 0.8rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1;
	pointer-events: none;
}

.systems-doc__record-grid {
	display: table;
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.systems-doc__record-field {
	display: table-row;
}

.systems-doc__record-field dt,
.systems-doc__record-field dd {
	display: table-cell;
	padding: 0.3rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
	font-size: 0.72rem;
	line-height: 1.4;
	vertical-align: middle;
}

.systems-doc__record-field:last-child dt,
.systems-doc__record-field:last-child dd {
	border-bottom: none;
}

.systems-doc__record-field dt {
	color: var(--muted);
	width: 50%;
	text-align: left;
}

.systems-doc__record-field dd {
	margin: 0;
	color: var(--text);
	font-weight: 500;
	text-align: right;
}

.systems-doc__record-note {
	margin: 0.75rem 0 0;
	padding-top: 0.65rem;
	border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
	font-size: 0.68rem;
	font-style: italic;
	line-height: 1.55;
	color: var(--text);
}


/* ── Header ──────────────────────────────────────────────── */

.systems-doc__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.65rem;
	text-align: center;
}

.systems-doc__header-meta,
.systems-doc__header-detail {
	display: grid;
	gap: 0.35rem;
	justify-items: center;
	min-width: 0;
}

.systems-doc__header-detail {
	width: 100%;
	max-width: 36rem;
}

.systems-doc__series {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--text);
}

.systems-doc__code {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--highlight);
}

.systems-doc__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4.5vw, 2.6rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--text);
}

.systems-doc__prose p + p {
	margin-top: 0.65rem;
}

.systems-doc__quote {
	margin: 0;
	padding-left: 0.85rem;
	border-left: 2px solid var(--highlight);
	font-size: 0.72rem;
	line-height: 1.45;
	font-style: italic;
	color: var(--text);
}

.systems-doc__quote--inline {
	font-size: 0.72rem;
}

.systems-doc__table-note {
	margin: 0.65rem 0 0;
	font-size: 0.66rem;
	line-height: 1.4;
	color: var(--muted);
}

.systems-doc__footer-grid--pair {
	margin-top: 0;
}

.systems-doc__footer-grid--triple {
	margin-top: 0;
	width: 100%;
	align-items: stretch;
}

.systems-doc__footer-grid--triple .systems-doc__block {
	height: 100%;
}

.systems-doc__legend--compact {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.systems-doc__legend--compact .systems-doc__legend-item {
	display: block;
	padding-left: 0.75rem;
	border-left: 1px solid color-mix(in srgb, var(--highlight) 45%, var(--border));
	font-size: 0.72rem;
	line-height: 1.45;
	color: var(--muted);
}

.systems-doc__subtitle {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(0.68rem, 1.8vw, 0.82rem);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--highlight);
}

.systems-doc__sheet {
	display: grid;
	gap: 0.85rem;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* ── Extended analysis disclosure ────────────────────────── */

.systems-doc__extended-disclosure {
	margin-top: 0;
}

.systems-doc__extended-content {
	text-align: left;
	margin-top: 0.75rem;
}

.systems-doc__body-footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: -0.65rem;
	position: relative;
	z-index: 1;
	transform: translateY(0.315rem);
}

.systems-doc__extended-disclosure.is-expanded .systems-doc__body-footer {
	margin-top: 0.25rem;
}

.systems-doc__extended-more,
.systems-doc__extended-less {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	border: 1.5px solid var(--highlight);
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1;
	color: var(--highlight);
	background: transparent;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s ease, color 0.15s ease;
	padding: 0;
}

.systems-doc__extended-more:hover,
.systems-doc__extended-less:hover {
	background: var(--highlight);
	color: var(--bg);
}

.systems-doc__extended-less[hidden],
.systems-doc__extended-more[hidden] {
	display: none;
}


/* ── Specs disclosure (details/summary) ──────────────────── */

.systems-doc__specs-disclosure {
	margin-top: -0.95rem;
	text-align: left;
	position: relative;
	z-index: 1;
}

.systems-doc__specs-disclosure[open] {
	margin-top: -0.95rem;
}


.systems-doc__specs-disclosure summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	border: 1.5px solid var(--highlight);
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1;
	color: var(--highlight);
	background: transparent;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.systems-doc__specs-disclosure summary::-webkit-details-marker {
	display: none;
}

.systems-doc__specs-disclosure summary:hover {
	background: var(--highlight);
	color: var(--bg);
}

/* Toggle Ver más / Ver menos */
.systems-doc__specs-toggle--less {
	display: none;
}

.systems-doc__specs-disclosure[open] .systems-doc__specs-toggle--more {
	display: none;
}

.systems-doc__specs-disclosure[open] .systems-doc__specs-toggle--less {
	display: inline;
}

.systems-doc__specs-disclosure .systems-doc__specs {
	margin-top: 0.6rem;
}

.systems-doc__specs-disclosure .systems-doc__specs th,
.systems-doc__specs-disclosure .systems-doc__specs td {
	padding: 0.2rem 0;
	font-size: 0.65rem;
	line-height: 1.4;
	border-bottom-color: color-mix(in srgb, var(--border) 45%, transparent);
}

.systems-doc__specs-disclosure .systems-doc__specs th {
	color: color-mix(in srgb, var(--muted) 70%, transparent);
	font-weight: 500;
}

.systems-doc__specs-disclosure .systems-doc__specs td {
	color: var(--muted);
}

/* ── Context lead paragraph (inside aside) ───────────────── */


.systems-doc__context-lead {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	line-height: 1.6;
	color: var(--muted);
}

.systems-doc__context-lead:last-of-type {
	margin-bottom: 0;
}

.systems-doc__context-rule {
	margin: 0.75rem 0;
	border: none;
	border-top: 1px solid var(--border);
}

/* ── Specs section (bottom) ──────────────────────────────── */

/* ── Device profile kv (inside opinion) ──────────────────── */

.systems-doc__opinion .systems-doc__profile-kv {
	width: 100%;
	max-width: 52rem;
	margin-left: auto;
	margin-right: auto;
}

.systems-doc__profile-kv td[data-level] { color: var(--text); }

.systems-doc__opinion .systems-doc__profile-kv td { text-align: right; }

.systems-doc__opinion .systems-doc__profile-kv th { width: 70%; }
.systems-doc__opinion .systems-doc__profile-kv td { width: 30%; }

.profile-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: center;
	margin-top: clamp(0.75rem, 2vw, 1.25rem);
	padding-top: clamp(0.75rem, 2vw, 1.25rem);
	border-top: 1px solid var(--border);
	max-width: 52rem;
	margin-inline: auto;
}

@media (min-width: 640px) {
	.profile-layout {
		grid-template-columns: 1fr 1fr;
	}
}

.radar-chart {
	width: 100%;
	height: auto;
	display: block;
}

.radar-grid {
	fill: none;
	stroke: var(--border);
	opacity: 0.7;
}

.radar-axis {
	stroke: var(--border);
	opacity: 0.6;
}

.radar-fill {
	fill: var(--highlight);
	fill-opacity: 0.12;
	stroke: var(--highlight);
}

.radar-dot {
	fill: var(--highlight);
}

.radar-cat {
	fill: var(--muted);
	font-family: inherit;
}

.radar-val {
	fill: var(--highlight);
	font-family: inherit;
}

.profile-overall {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}


.profile-overall__label {
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--highlight);
	margin-top: 0.1rem;
}

.profile-overall__desc {
	font-size: 0.8rem;
	line-height: 1.6;
	color: var(--muted);
	margin-top: 0.75rem;
	text-align: left;
}


.systems-doc__specs-section {
	padding: 0;
	border: none;
	background: transparent;
}

.systems-doc__specs-section .section-title {
	margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

.systems-doc__specs-section .systems-doc__specs {
	max-width: 540px;
}

.systems-doc__main {
	display: block;
}

.systems-doc__hero {
	display: grid;
	gap: clamp(0.75rem, 2vw, 1.25rem);
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
}

.systems-doc__body {
	display: grid;
	gap: 0.75rem;
	padding: 0.85rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--systems-panel-bg);
	position: relative;
	z-index: 1;
}

.systems-doc__body-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--highlight);
}

.systems-doc__body-intro {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--muted);
}

.systems-doc__opinion {
	margin-top: clamp(1rem, 2vw, 1.5rem);
	padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(0.5rem, 2vw, 1rem);
	border-top: none;
	text-align: center;
}

.systems-doc__opinion .section-title {
	margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.systems-doc__opinion .section-title::after {
	width: clamp(3rem, 10vw, 5rem);
	height: 2px;
	margin: 1rem auto 0;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	box-shadow: 0 0 6px var(--glow-soft);
	opacity: 0.9;
}

.systems-doc__opinion .lead {
	margin-inline: auto;
	max-width: 52rem;
	font-size: clamp(0.92rem, 1.6vw, 1.05rem);
	line-height: 1.65;
}

.systems-doc__operation {
	padding: clamp(1.25rem, 3vw, 2rem) 0 0;
	border-top: 1px solid var(--border);
}

.systems-doc__operation-title {
	margin: 0 0 clamp(1rem, 2.5vw, 1.35rem);
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	color: var(--text);
}

.systems-doc__steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.65rem, 1.8vw, 0.85rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.systems-doc__step {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 0.75rem;
	min-width: 0;
	padding: 0.75rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--systems-panel-bg);
}

.systems-doc__step-index {
	margin: 0 0 0.2rem;
	font-family: var(--font-display);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--highlight);
}

.systems-doc__step-figure {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 4.25rem;
	margin: 0;
	padding: 0.45rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--systems-hero-bg);
}

.systems-doc__step-figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.systems-doc__step-body {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
}

.systems-doc__step-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text);
}

.systems-doc__step-desc {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.45;
	color: var(--muted);
}

@media (max-width: 720px) {
	.systems-doc__steps {
		grid-template-columns: 1fr;
	}
}

/* Exploded blueprint — floating layers between Diagnóstico and Fuerzas */
.systems-doc__blueprint-window {
	position: relative;
	z-index: 0;
	isolation: isolate;
	overflow: hidden;
	margin: 0;
	padding: 0.75rem 0 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	border-top: none;
}

.systems-doc__blueprint-window-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	pointer-events: none;
}

.systems-doc__exploded-stack {
	position: relative;
	width: 100%;
	max-width: 52rem;
	aspect-ratio: 1055 / 997;
	pointer-events: auto;
	cursor: pointer;
}

.systems-doc__exploded-stack[data-exploded-device="grigri"] {
	aspect-ratio: 1055 / 997;
}

.systems-doc__exploded-stack[data-exploded-device="neox"] {
	aspect-ratio: 1352 / 1006;
}

.systems-doc__exploded-stack[data-exploded-device="atc"] {
	aspect-ratio: 932 / 838;
}

.systems-doc__exploded-stack[data-exploded-device="friend"] {
	aspect-ratio: 922 / 901;
}

.systems-doc__blueprint-hint {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	text-align: center;
	transition: opacity 0.25s ease;
}

[data-theme="light"] .systems-doc__blueprint-hint {
	color: #111;
}

.systems-doc__blueprint-window:has(.has-selection) .systems-doc__blueprint-hint {
	opacity: 0;
}

.exploded-layer {
	position: absolute;
	display: block;
	max-width: none;
	object-fit: fill;
	animation: exploded-float 6s ease-in-out infinite;
	opacity: 0.2;
	filter: var(--watermark-filter);
	pointer-events: none;
	transition: opacity 0.3s ease, filter 0.3s ease;
}

[data-theme="dark"] .exploded-layer {
	opacity: 0.18;
	filter: var(--watermark-filter);
}

[data-theme="light"] .exploded-layer {
	opacity: 0.28;
	filter: brightness(0) opacity(0.55);
}

.systems-doc__exploded-stack.has-selection .exploded-layer:not(.is-active) {
	opacity: 0.05;
}

[data-theme="light"] .systems-doc__exploded-stack.has-selection .exploded-layer:not(.is-active) {
	opacity: 0.1;
	filter: brightness(0) opacity(0.25);
}

.exploded-layer.is-active,
[data-theme="dark"] .exploded-layer.is-active,
[data-theme="light"] .exploded-layer.is-active {
	opacity: 1;
	filter: none;
	animation-play-state: paused;
}

/* Cropped part sprites — Grigri canvas 1055×997 (gg proposal) */
.systems-doc__exploded-stack[data-exploded-device="grigri"] .exploded-layer[data-part="1"],
.systems-doc__exploded-stack:not([data-exploded-device]) .exploded-layer[data-part="1"] {
	left: 0.000%;
	top: 36.108%;
	width: 33.934%;
	height: 63.290%;
	--float-y: 0px;
	animation-delay: 0s;
}

.systems-doc__exploded-stack[data-exploded-device="grigri"] .exploded-layer[data-part="2"],
.systems-doc__exploded-stack:not([data-exploded-device]) .exploded-layer[data-part="2"] {
	left: 25.782%;
	top: 8.225%;
	width: 28.815%;
	height: 65.597%;
	--float-y: -10px;
	animation-delay: -1s;
}

.systems-doc__exploded-stack[data-exploded-device="grigri"] .exploded-layer[data-part="3"],
.systems-doc__exploded-stack:not([data-exploded-device]) .exploded-layer[data-part="3"] {
	left: 26.730%;
	top: 53.159%;
	width: 39.242%;
	height: 31.695%;
	--float-y: -8px;
	animation-delay: -2s;
}

.systems-doc__exploded-stack[data-exploded-device="grigri"] .exploded-layer[data-part="4"],
.systems-doc__exploded-stack:not([data-exploded-device]) .exploded-layer[data-part="4"] {
	left: 54.028%;
	top: 28.084%;
	width: 15.355%;
	height: 18.857%;
	--float-y: -12px;
	animation-delay: -1.5s;
}

.systems-doc__exploded-stack[data-exploded-device="grigri"] .exploded-layer[data-part="5"],
.systems-doc__exploded-stack:not([data-exploded-device]) .exploded-layer[data-part="5"] {
	left: 51.185%;
	top: 43.430%;
	width: 38.389%;
	height: 38.215%;
	--float-y: -10px;
	animation-delay: -3s;
}

.systems-doc__exploded-stack[data-exploded-device="grigri"] .exploded-layer[data-part="6"],
.systems-doc__exploded-stack:not([data-exploded-device]) .exploded-layer[data-part="6"] {
	left: 49.573%;
	top: 0.000%;
	width: 50.047%;
	height: 61.685%;
	--float-y: -14px;
	animation-delay: -4s;
}

/* Neox canvas 1352×1006 — softer float (parts sit high in frame) */
.systems-doc__exploded-stack[data-exploded-device="neox"] .exploded-layer[data-part="1"] {
	left: 0.000%;
	top: 59.245%;
	width: 40.089%;
	height: 40.755%;
	--float-y: 0px;
	animation-delay: 0s;
}

.systems-doc__exploded-stack[data-exploded-device="neox"] .exploded-layer[data-part="2"] {
	left: 31.065%;
	top: 25.547%;
	width: 23.891%;
	height: 55.666%;
	--float-y: -8px;
	animation-delay: -1s;
}

.systems-doc__exploded-stack[data-exploded-device="neox"] .exploded-layer[data-part="3"] {
	left: 3.180%;
	top: 7.753%;
	width: 43.343%;
	height: 48.410%;
	--float-y: -10px;
	animation-delay: -2s;
}

.systems-doc__exploded-stack[data-exploded-device="neox"] .exploded-layer[data-part="4"] {
	left: 52.441%;
	top: 47.515%;
	width: 47.559%;
	height: 50.298%;
	--float-y: -8px;
	animation-delay: -1.5s;
}

.systems-doc__exploded-stack[data-exploded-device="neox"] .exploded-layer[data-part="5"] {
	left: 50.222%;
	top: 10.835%;
	width: 35.133%;
	height: 40.954%;
	--float-y: -12px;
	animation-delay: -3s;
}

.systems-doc__exploded-stack[data-exploded-device="neox"] .exploded-layer[data-part="6"] {
	left: 53.476%;
	top: 0.000%;
	width: 39.497%;
	height: 58.052%;
	--float-y: -14px;
	animation-delay: -4s;
}

/* ATC canvas 932×838 */
.systems-doc__exploded-stack[data-exploded-device="atc"] .exploded-layer[data-part="1"] {
	left: 15.343%;
	top: 55.489%;
	width: 37.876%;
	height: 44.153%;
	--float-y: 0px;
	animation-delay: 0s;
}

.systems-doc__exploded-stack[data-exploded-device="atc"] .exploded-layer[data-part="2"] {
	left: 3.219%;
	top: 41.169%;
	width: 18.884%;
	height: 20.644%;
	--float-y: -8px;
	animation-delay: -1s;
}

.systems-doc__exploded-stack[data-exploded-device="atc"] .exploded-layer[data-part="3"] {
	left: 0.000%;
	top: 14.678%;
	width: 21.781%;
	height: 27.446%;
	--float-y: -10px;
	animation-delay: -2s;
}

.systems-doc__exploded-stack[data-exploded-device="atc"] .exploded-layer[data-part="4"] {
	left: 0.215%;
	top: 5.012%;
	width: 66.202%;
	height: 66.348%;
	--float-y: -8px;
	animation-delay: -1.5s;
}

.systems-doc__exploded-stack[data-exploded-device="atc"] .exploded-layer[data-part="5"] {
	left: 49.249%;
	top: 0.358%;
	width: 36.159%;
	height: 45.585%;
	--float-y: -12px;
	animation-delay: -3s;
}

.systems-doc__exploded-stack[data-exploded-device="atc"] .exploded-layer[data-part="6"] {
	left: 11.695%;
	top: 24.224%;
	width: 88.305%;
	height: 68.138%;
	--float-y: -10px;
	animation-delay: -4s;
}

/* Friend canvas 922×901 — full-frame pre-composited layers */
.systems-doc__exploded-stack[data-exploded-device="friend"] .exploded-layer {
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

.systems-doc__exploded-stack[data-exploded-device="friend"] .exploded-layer[data-part="1"] {
	--float-y: 0px;
	animation-delay: 0s;
}

.systems-doc__exploded-stack[data-exploded-device="friend"] .exploded-layer[data-part="2"] {
	--float-y: -8px;
	animation-delay: -1s;
}

.systems-doc__exploded-stack[data-exploded-device="friend"] .exploded-layer[data-part="3"] {
	--float-y: -10px;
	animation-delay: -2s;
}

.systems-doc__exploded-stack[data-exploded-device="friend"] .exploded-layer[data-part="4"] {
	--float-y: -8px;
	animation-delay: -1.5s;
}

.systems-doc__exploded-stack[data-exploded-device="friend"] .exploded-layer[data-part="5"] {
	--float-y: -12px;
	animation-delay: -3s;
}

.systems-doc__exploded-stack[data-exploded-device="friend"] .exploded-layer[data-part="6"] {
	--float-y: -10px;
	animation-delay: -2.5s;
}

.systems-doc__exploded-stack[data-exploded-device="friend"] .exploded-layer[data-part="7"] {
	--float-y: -14px;
	animation-delay: -4s;
}

@keyframes exploded-float {
	0%, 100% { transform: translateY(var(--float-y, 0px)); }
	50%       { transform: translateY(calc(var(--float-y, 0px) - 10px)); }
}

.exploded-card {
	position: absolute;
	z-index: 4;
	width: min(16.5rem, calc(100% - 1.5rem));
	padding: 0.7rem 0.85rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
	border-top: 2px solid color-mix(in srgb, var(--highlight) 65%, transparent);
	border-radius: 6px;
	background: color-mix(in srgb, var(--bg-deep, var(--bg)) 22%, transparent);
	backdrop-filter: blur(12px) saturate(1.15);
	-webkit-backdrop-filter: blur(12px) saturate(1.15);
	box-shadow:
		0 8px 28px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
	pointer-events: auto;
}

[data-theme="light"] .exploded-card {
	background: color-mix(in srgb, #fff 28%, transparent);
	border-color: color-mix(in srgb, var(--border) 55%, transparent);
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.08),
		inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.exploded-card {
		background: color-mix(in srgb, var(--bg-deep, var(--bg)) 72%, transparent);
	}

	[data-theme="light"] .exploded-card {
		background: color-mix(in srgb, #fff 78%, transparent);
	}
}

.exploded-card[hidden] {
	display: none;
}

.exploded-card__close {
	position: absolute;
	top: 0.35rem;
	right: 0.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: none;
	background: none;
	color: var(--muted);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.exploded-card__close:hover {
	color: var(--highlight);
}

.exploded-card__kicker {
	margin: 0 1.5rem 0.25rem 0;
	font-family: var(--font-display);
	font-size: 0.56rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--highlight);
}

.exploded-card__title {
	margin: 0 1.5rem 0.4rem 0;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--text);
}

.exploded-card__desc {
	margin: 0;
	font-size: 0.74rem;
	line-height: 1.5;
	color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
	.exploded-layer {
		animation: none;
		transform: translateY(var(--float-y, 0px));
	}
}

.systems-doc__forces {
	--force-gravity: var(--primary);
	--force-tension: var(--accent);
	--force-torque: var(--highlight);
	--force-friction: color-mix(in srgb, var(--highlight) 55%, white 45%);
	display: grid;
	gap: 0.75rem;
	padding: 0.85rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--systems-panel-bg);
}

.systems-doc__forces-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--highlight);
}

.systems-doc__forces-intro {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--muted);
}

.systems-doc__forces-caption {
	margin: 0 auto 0.85rem;
	max-width: 42rem;
	font-size: 0.68rem;
	line-height: 1.45;
	text-align: center;
	color: color-mix(in srgb, var(--muted) 88%, var(--highlight));
}

.systems-doc__forces-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(0.85rem, 2vw, 1.25rem);
	align-items: center;
	padding: clamp(0.85rem, 2vw, 1.15rem);
	border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
	border-radius: 6px;
	background:
		radial-gradient(circle at 50% 18%, var(--glow-soft), transparent 58%),
		color-mix(in srgb, var(--bg-deep) 55%, transparent);
}

.systems-doc__forces-diagram {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.systems-force__baseline {
	fill: none;
	stroke: color-mix(in srgb, var(--border) 80%, transparent);
	stroke-width: 1;
	opacity: 0.5;
}

.systems-force__anchor-dot {
	fill: color-mix(in srgb, var(--muted) 40%, transparent);
	stroke: color-mix(in srgb, var(--highlight) 35%, var(--muted));
	stroke-width: 1;
}

.systems-force__actors {
	opacity: 0.55;
}

.systems-force__figure-head {
	fill: color-mix(in srgb, var(--muted) 8%, transparent);
	stroke: color-mix(in srgb, var(--muted) 85%, var(--border-strong));
	stroke-width: 1.35;
}

.systems-force__figure-body {
	fill: none;
	stroke: color-mix(in srgb, var(--muted) 85%, var(--border-strong));
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.systems-force__label {
	font-family: var(--font-display);
	font-size: 7px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	fill: var(--muted);
	opacity: 0.5;
}

.systems-force__label--device {
	opacity: 0.62;
	fill: color-mix(in srgb, var(--accent) 35%, var(--muted));
}

.systems-force__device-group {
	opacity: 0.92;
}

.systems-force__device-glow {
	fill: url(#force-device-glow);
	stroke: none;
}

.systems-force__device,
.systems-force__device > path,
.systems-force__cam,
.systems-force__handle,
.systems-force__carabiner path {
	fill: color-mix(in srgb, var(--surface) 82%, var(--bg-secondary));
	stroke: color-mix(in srgb, var(--border-strong) 85%, var(--muted));
	stroke-width: 1.15;
}

.systems-force__wall {
	fill: none;
	stroke: color-mix(in srgb, var(--muted) 70%, var(--border-strong));
	stroke-width: 1.5;
	stroke-linecap: round;
	opacity: 0.28;
}

.systems-force__cam {
	fill: color-mix(in srgb, var(--primary) 18%, var(--surface));
	stroke: color-mix(in srgb, var(--accent) 45%, var(--muted));
	transform-box: fill-box;
	transform-origin: center;
	animation: systems-force-cam-bite 4.5s ease-in-out infinite;
}

.systems-force__handle {
	fill: color-mix(in srgb, var(--surface) 90%, var(--bg-secondary));
}

.systems-force__rope {
	stroke-dasharray: 5 6;
}

.systems-force__rope--load,
.systems-force__rope--brake {
	animation: systems-force-rope 3.2s linear infinite;
}

.systems-force__rope--wrap {
	stroke-dasharray: 4 5;
	animation: systems-force-rope-wrap 2.4s linear infinite;
}

.systems-force--vectors > g {
	opacity: 0.32;
	transition: opacity 0.25s ease;
}

.systems-force--vectors line,
.systems-force--vectors path {
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
}

.systems-doc__forces-stage:has(.systems-doc__forces-item--gravity:hover) .systems-force--gravity,
.systems-doc__forces-stage:has(.systems-doc__forces-item--gravity:focus-within) .systems-force--gravity,
.systems-doc__forces-stage:has(.systems-doc__forces-item--gravity.is-active) .systems-force--gravity,
.systems-doc__forces-stage:has(.systems-doc__forces-item--tension:hover) .systems-force--tension,
.systems-doc__forces-stage:has(.systems-doc__forces-item--tension:focus-within) .systems-force--tension,
.systems-doc__forces-stage:has(.systems-doc__forces-item--tension.is-active) .systems-force--tension,
.systems-doc__forces-stage:has(.systems-doc__forces-item--torque:hover) .systems-force--torque,
.systems-doc__forces-stage:has(.systems-doc__forces-item--torque:focus-within) .systems-force--torque,
.systems-doc__forces-stage:has(.systems-doc__forces-item--torque.is-active) .systems-force--torque,
.systems-doc__forces-stage:has(.systems-doc__forces-item--friction:hover) .systems-force--friction,
.systems-doc__forces-stage:has(.systems-doc__forces-item--friction:focus-within) .systems-force--friction,
.systems-doc__forces-stage:has(.systems-doc__forces-item--friction.is-active) .systems-force--friction {
	opacity: 1;
}

.systems-force--gravity line {
	stroke: var(--force-gravity);
	stroke-dasharray: 8 6;
	animation: systems-force-pulse 2.2s ease-in-out infinite;
}

.systems-force--tension line {
	stroke: var(--force-tension);
	stroke-dasharray: 7 5;
	animation: systems-force-flow 1.9s linear infinite;
}

.systems-force--torque path {
	stroke: var(--force-torque);
	stroke-width: 2.15;
	stroke-dasharray: 6 4;
	animation: systems-force-flow 2.2s linear infinite;
}

.systems-force__friction-pulse {
	fill: none;
	stroke: var(--force-friction);
	stroke-width: 1.2;
	transform-box: fill-box;
	transform-origin: center;
	animation: systems-force-friction-pulse 4s ease-out infinite;
}

.systems-doc__forces-legend {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.systems-doc__forces-item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.65rem;
	align-items: start;
	padding: 0.65rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: color-mix(in srgb, var(--systems-panel-bg) 88%, transparent);
	cursor: pointer;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.systems-doc__forces-item--gravity {
	--force-item-color: var(--force-gravity);
}

.systems-doc__forces-item--tension {
	--force-item-color: var(--force-tension);
}

.systems-doc__forces-item--torque {
	--force-item-color: var(--force-torque);
}

.systems-doc__forces-item--friction {
	--force-item-color: var(--force-friction);
}

.systems-doc__forces-item:hover,
.systems-doc__forces-item:focus-within,
.systems-doc__forces-item.is-active {
	border-color: var(--border-strong);
	box-shadow: 0 0 16px var(--glow-soft);
}

.systems-doc__forces-item:hover .systems-doc__forces-swatch,
.systems-doc__forces-item:focus-within .systems-doc__forces-swatch,
.systems-doc__forces-item.is-active .systems-doc__forces-swatch {
	filter: brightness(1.15);
	transform: scale(1.05);
}

.systems-doc__forces-swatch {
	position: relative;
	width: 0.65rem;
	height: 0.65rem;
	margin-top: 0.2rem;
	border-radius: 50%;
	background: var(--force-item-color);
	box-shadow: 0 0 10px color-mix(in srgb, var(--force-item-color) 65%, transparent);
	transition: filter 0.25s ease, transform 0.25s ease;
}

.systems-doc__forces-swatch::after {
	content: "";
	position: absolute;
	inset: -0.2rem;
	border-radius: inherit;
	border: 1px solid color-mix(in srgb, var(--force-item-color) 45%, transparent);
	animation: systems-force-pulse 2s ease-in-out infinite;
}

.systems-doc__forces-copy strong {
	display: block;
	margin-bottom: 0.15rem;
	font-family: var(--font-display);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--force-item-color);
}

.systems-doc__forces-copy p {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.45;
	color: var(--muted);
}

@keyframes systems-force-flow {
	to {
		stroke-dashoffset: -26;
	}
}

@keyframes systems-force-pulse {
	0%,
	100% {
		opacity: 0.45;
	}
	50% {
		opacity: 1;
	}
}

@keyframes systems-force-rope {
	to {
		stroke-dashoffset: -24;
	}
}

@keyframes systems-force-rope-wrap {
	to {
		stroke-dashoffset: -20;
	}
}

@keyframes systems-force-cam-bite {
	0%,
	62% {
		transform: rotate(0deg);
	}
	74% {
		transform: rotate(10deg);
	}
	88%,
	100% {
		transform: rotate(0deg);
	}
}

@keyframes systems-force-friction-pulse {
	0% {
		transform: scale(2.4);
		opacity: 0;
		stroke-width: 0.3;
	}
	100% {
		transform: scale(1);
		opacity: 0.65;
		stroke-width: 1.4;
	}
}

/* Friend (and others): friction pulse expands from contact outward */
@keyframes systems-force-friction-pulse-out {
	0% {
		transform: scale(1);
		opacity: 0.65;
		stroke-width: 1.4;
	}
	100% {
		transform: scale(2.4);
		opacity: 0;
		stroke-width: 0.3;
	}
}

.systems-doc__forces--friction-out .systems-force__friction-pulse {
	animation-name: systems-force-friction-pulse-out;
}

@media (max-width: 900px) {
	.systems-doc__forces-stage {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.systems-force__rope,
	.systems-force__cam,
	.systems-force line,
	.systems-force path,
	.systems-force__friction-pulse,
	.systems-doc__forces-swatch::after {
		animation: none;
	}
}

.systems-doc__forces-equations {
	margin-top: 0;
	padding-top: 0;
}

.systems-doc__forces-model-title {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	color: var(--highlight);
}

.systems-doc__equations-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.55rem, 1.5vw, 0.75rem);
}

@media (min-width: 901px) {
	.systems-doc__equations-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.systems-doc__equation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.55rem 0.65rem;
	align-items: center;
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: color-mix(in srgb, var(--bg-deep) 55%, transparent);
	transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Cuando hay una fuerza seleccionada/hover: atenúa todas las tarjetas */
.systems-doc__forces:has(.systems-doc__forces-item:hover) .systems-doc__equation,
.systems-doc__forces:has(.systems-doc__forces-item.is-active) .systems-doc__equation {
	opacity: 0.3;
	filter: saturate(0.2);
}

/* Resalta la tarjeta correspondiente a la fuerza activa */
.systems-doc__forces:has(.systems-doc__forces-item--gravity:hover) .systems-doc__equation--gravity,
.systems-doc__forces:has(.systems-doc__forces-item--gravity.is-active) .systems-doc__equation--gravity,
.systems-doc__forces:has(.systems-doc__forces-item--tension:hover) .systems-doc__equation--tension,
.systems-doc__forces:has(.systems-doc__forces-item--tension.is-active) .systems-doc__equation--tension,
.systems-doc__forces:has(.systems-doc__forces-item--torque:hover) .systems-doc__equation--torque,
.systems-doc__forces:has(.systems-doc__forces-item--torque.is-active) .systems-doc__equation--torque,
.systems-doc__forces:has(.systems-doc__forces-item--friction:hover) .systems-doc__equation--friction,
.systems-doc__forces:has(.systems-doc__forces-item--friction.is-active) .systems-doc__equation--friction {
	opacity: 1;
	filter: none;
	transform: translateY(-2px);
	border-color: var(--border-strong);
	box-shadow: 0 0 16px var(--glow-soft);
}

.systems-doc__equation-figure {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	height: 5.5rem;
	margin: 0;
	padding: 0;
}

.systems-doc__equation-figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.systems-doc__equation-copy {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
}

.systems-doc__equation--gravity {
	--equation-color: var(--force-gravity);
}

.systems-doc__equation--tension {
	--equation-color: var(--force-tension);
}

.systems-doc__equation--torque {
	--equation-color: var(--force-torque);
}

.systems-doc__equation--friction {
	--equation-color: var(--force-friction);
}

.systems-doc__equation-label {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.56rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--equation-color);
}

.systems-doc__equation-formula {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(0.82rem, 1.5vw, 0.95rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: var(--text);
	text-shadow: 0 0 14px color-mix(in srgb, var(--equation-color) 35%, transparent);
	animation: systems-equation-glow 3s ease-in-out infinite;
}

.systems-doc__equation-formula sub,
.systems-doc__equation-formula sup {
	font-size: 0.72em;
	font-weight: 600;
	color: var(--equation-color);
}

.systems-doc__equation-note {
	margin: 0;
	font-size: 0.66rem;
	line-height: 1.4;
	color: var(--muted);
}

.systems-doc__forces-disclaimer {
	margin: 0.65rem 0 0;
	font-size: 0.66rem;
	line-height: 1.45;
	text-align: center;
	color: var(--muted);
}

@keyframes systems-equation-glow {
	0%,
	100% {
		opacity: 0.82;
	}
	50% {
		opacity: 1;
	}
}

@media (max-width: 520px) {
	.systems-doc__equations-grid {
		grid-template-columns: 1fr;
	}

	.systems-doc__equation-figure {
		width: 4.75rem;
		height: 4.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.systems-doc__equation-formula {
		animation: none;
	}
}

.systems-doc__layout {
	display: grid;
	gap: clamp(0.75rem, 2vw, 1.25rem);
	--systems-side: 1fr;
	--systems-main: 2fr;
}

.systems-doc__intro-panel {
	display: grid;
	gap: 0.75rem;
	align-items: start;
	padding: 0.85rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--systems-panel-bg);
}

.systems-doc__facts {
	min-width: 0;
	width: fit-content;
	max-width: 100%;
}

.systems-doc__facts .systems-doc__specs--compact {
	width: auto;
	font-size: 0.68rem;
}

.systems-doc__facts .systems-doc__specs--compact th,
.systems-doc__facts .systems-doc__specs--compact td {
	padding: 0.22rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}

.systems-doc__facts .systems-doc__specs--compact tr:last-child th,
.systems-doc__facts .systems-doc__specs--compact tr:last-child td {
	border-bottom: none;
}

.systems-doc__facts .systems-doc__specs--compact th {
	width: auto;
	padding-right: 0.85rem;
	font-family: var(--font-display);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--highlight);
	white-space: nowrap;
}

.systems-doc__facts .systems-doc__specs--compact td {
	color: var(--text);
	white-space: nowrap;
}

.systems-doc__summary {
	min-width: 0;
}

.systems-doc__summary .systems-doc__prose p {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.5;
	color: var(--muted);
}

.systems-doc__summary .systems-doc__prose p + p {
	margin-top: 0.65rem;
}

@media (min-width: 640px) {
	.systems-doc__intro-panel {
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 1.15rem;
	}

	.systems-doc__summary {
		padding-left: 1.15rem;
		border-left: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
	}
}

.systems-doc__visual {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-width: 0;
	min-height: 100%;
}

.systems-doc__gallery-section {
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-width: 0;
	min-height: 100%;
	margin: 0;
	padding: 0;
}

.systems-doc__info {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
	padding: 0.85rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--systems-panel-bg);
}

.systems-doc__info .systems-doc__block--inline {
	padding: 0.65rem 0 0;
	border: none;
	border-radius: 0;
	background: transparent;
}

.systems-doc__info > .systems-doc__block--inline:first-child {
	padding-top: 0;
	border-top: none;
}

.systems-spin {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-width: 0;
	--pos: 0;
	--frames: 24;
}

.systems-spin__viewport {
	overflow: hidden;
	width: 100%;
	border-radius: 0;
	touch-action: none;
	cursor: ew-resize;
	line-height: 0;
}

.systems-spin--sprite {
	--spin-max-h: min(58vh, 34rem);
}

.systems-spin--sprite .systems-spin__viewport {
	position: relative;
	width: min(100%, calc(var(--spin-max-h) * 868 / 771));
	aspect-ratio: 868 / 771;
	max-height: var(--spin-max-h);
	margin-inline: auto;
}

.systems-spin__guide {
	position: absolute;
	right: 0.45rem;
	bottom: 0.45rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.3rem 0.5rem;
	border: 1px solid color-mix(in srgb, var(--highlight) 35%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--control-bg) 82%, transparent);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	font-family: var(--font-display);
	font-size: 0.56rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--highlight);
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.systems-spin__guide-icon {
	flex-shrink: 0;
	width: 0.9rem;
	height: 0.9rem;
}

.systems-spin__guide-text {
	line-height: 1.2;
	white-space: nowrap;
}

.systems-spin__guide-text--desktop {
	display: inline;
}

.systems-spin__guide-text--touch {
	display: none;
}

@media (max-width: 768px) {
	.systems-spin__guide-text--desktop {
		display: none !important;
	}

	.systems-spin__guide-text--touch {
		display: inline !important;
	}
}

.systems-spin--touch-guide .systems-spin__guide-text--desktop {
	display: none !important;
}

.systems-spin--touch-guide .systems-spin__guide-text--touch {
	display: inline !important;
}

.systems-spin--desktop-guide .systems-spin__guide-text--desktop {
	display: inline !important;
}

.systems-spin--desktop-guide .systems-spin__guide-text--touch {
	display: none !important;
}

.systems-spin--engaged .systems-spin__guide {
	opacity: 0;
	transform: translateY(0.2rem);
}

@media (prefers-reduced-motion: reduce) {
	.systems-spin__guide {
		transition: none;
	}
}

.systems-spin__sprite {
	display: block;
	width: calc(var(--frames) * 100%);
	height: auto;
	max-width: none;
	will-change: transform;
	transform: translateX(calc(var(--pos) * -100% / var(--frames)));
	user-select: none;
	-webkit-user-drag: none;
}

.systems-spin__strip {
	display: flex;
	will-change: transform;
	transform: translateX(calc(var(--pos) * -100%));
}

.systems-spin__frame {
	flex: 0 0 100%;
	width: 100%;
	height: auto;
	max-height: min(42vh, 22rem);
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
	.systems-spin__strip,
	.systems-spin__sprite {
		transition: none;
	}
}

.systems-doc__view-caption {
	margin: 0 0 0.65rem;
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: left;
	color: var(--highlight);
}

.systems-doc__gallery {
	display: grid;
	gap: 0.55rem;
	min-width: 0;
}

.systems-doc__gallery-viewport {
	overflow: hidden;
	border-radius: 4px;
}

.systems-doc__gallery-track {
	display: flex;
	transition: transform 0.28s ease;
	will-change: transform;
}

.systems-doc__gallery-slide {
	flex: 0 0 100%;
	min-width: 0;
}

.systems-doc__gallery-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.systems-doc__gallery--single .systems-doc__gallery-controls {
	display: none;
}

.systems-doc__gallery-status {
	min-width: 3.25rem;
	font-family: var(--font-display);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--muted);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.systems-doc__gallery-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--control-bg);
	color: var(--highlight);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}

.systems-doc__gallery-btn:hover:not(:disabled) {
	color: var(--text);
	border-color: var(--border-strong);
}

.systems-doc__gallery-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.systems-doc__gallery-btn:focus-visible {
	outline: 2px solid var(--highlight);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.systems-doc__gallery-track {
		transition: none;
	}
}

.systems-doc__figure--photo {
	flex-direction: column;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
}

.systems-doc__figure--photo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(42vh, 22rem);
	object-fit: contain;
}

.systems-doc__metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	border: none;
}

.systems-doc__info .systems-doc__metrics {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.systems-doc__metric {
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: color-mix(in srgb, var(--control-bg) 80%, transparent);
}

[data-theme="light"] .systems-doc__metric {
	background: var(--bg-secondary);
}

.systems-doc__metric dt {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--highlight);
}

.systems-doc__metric dd {
	margin: 0.2rem 0 0;
	font-size: 0.72rem;
	line-height: 1.35;
	color: var(--text);
}

.systems-doc__legend-wrap {
	padding: 0.85rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--systems-panel-bg);
}

.systems-doc__info .systems-doc__block--inline p,
.systems-doc__info .systems-doc__block--inline li,
.systems-doc__info .systems-doc__block--inline .systems-doc__prose p {
	font-size: 0.72rem;
	line-height: 1.45;
	color: var(--muted);
}

.systems-doc__info .systems-doc__block--inline .systems-doc__prose p + p {
	margin-top: 0.55rem;
}

.systems-doc__info .systems-doc__specs th,
.systems-doc__info .systems-doc__specs td {
	font-size: 0.72rem;
	line-height: 1.45;
}

.systems-doc__info .systems-doc__specs th {
	width: 48%;
}

.systems-doc__info .systems-doc__specs td {
	color: var(--text);
}

.systems-doc__legend-title {
	margin: 0 0 0.65rem;
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--highlight);
}

.systems-doc__legend {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.3rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.68rem;
	line-height: 1.35;
	color: var(--muted);
}

.systems-doc__legend-item {
	display: grid;
	grid-template-columns: 1.35rem minmax(0, 1fr);
	gap: 0.5rem;
	align-items: baseline;
}

.systems-doc__legend-letter {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: lowercase;
	color: var(--highlight);
}

.systems-doc__legend-num {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--highlight);
}

.systems-doc__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 14rem;
	margin: 0;
	padding: 0.75rem;
	border: 1px dashed color-mix(in srgb, var(--highlight) 35%, var(--border));
	border-radius: 4px;
	background:
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 23px,
			color-mix(in srgb, var(--grid-line) 80%, transparent) 24px
		),
		color-mix(in srgb, var(--surface) 70%, transparent);
}

.systems-doc__figure img {
	display: block;
	max-width: 100%;
	max-height: 28rem;
	width: auto;
	height: auto;
	object-fit: contain;
}

.systems-doc__figure--placeholder {
	flex-direction: column;
	gap: 0.65rem;
	text-align: center;
}

.systems-doc__placeholder-text {
	margin: 0;
	max-width: 22rem;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--muted);
}

.systems-doc__aside {
	display: grid;
	gap: 0.75rem;
}

.systems-doc__panel {
	display: grid;
	gap: 0.55rem;
	padding: 0.75rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--systems-panel-bg);
}

.systems-doc__panel-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--highlight);
}

.systems-doc__panel-figure {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 7rem;
	margin: 0;
	padding: 0.5rem;
	border: 1px dashed color-mix(in srgb, var(--border-strong) 70%, var(--border));
	border-radius: 4px;
	background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.systems-doc__panel-figure img {
	display: block;
	max-width: 100%;
	max-height: 8rem;
	object-fit: contain;
}

.systems-doc__panel-note {
	margin: 0;
	font-size: 0.68rem;
	line-height: 1.4;
	color: var(--muted);
}

.systems-doc__footer-grid {
	display: grid;
	gap: 0.75rem;
	margin-top: 0;
}

.systems-doc__block--wide {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.systems-doc__footer-grid--pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.systems-doc__footer-grid--triple {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.systems-doc__block {
	padding: 0.85rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--systems-panel-bg);
}

.systems-doc__block--best,
.systems-doc__block--worst,
.systems-doc__block--mistakes,
.systems-doc__block--lifetime,
.systems-doc__block--maintenance,
.systems-doc__block--known-issues {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.systems-doc__block--best::before,
.systems-doc__block--worst::before,
.systems-doc__block--mistakes::before,
.systems-doc__block--lifetime::before,
.systems-doc__block--maintenance::before,
.systems-doc__block--known-issues::before {
	content: "";
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 3.75rem;
	height: 3.75rem;
	background-repeat: no-repeat;
	background-position: top right;
	background-size: contain;
	opacity: 0.14;
	filter: var(--watermark-filter);
	pointer-events: none;
	z-index: 0;
	transition: opacity 0.35s ease;
}

.systems-doc__block--best:hover::before,
.systems-doc__block--worst:hover::before,
.systems-doc__block--mistakes:hover::before,
.systems-doc__block--lifetime:hover::before,
.systems-doc__block--maintenance:hover::before,
.systems-doc__block--known-issues:hover::before {
	opacity: 0.2;
}

.systems-doc__block--best::before {
	background-image: url("../../assets/images/core/system/status/best.png");
}

.systems-doc__block--worst::before {
	background-image: url("../../assets/images/core/system/status/worst.png");
}

.systems-doc__block--mistakes::before {
	background-image: url("../../assets/images/core/system/status/mistakes.png");
}

.systems-doc__block--lifetime::before {
	background-image: url("../../assets/images/core/system/status/lifespan.png");
}

.systems-doc__block--maintenance::before {
	background-image: url("../../assets/images/core/system/status/maintenance.png");
}

.systems-doc__block--known-issues::before {
	background-image: url("../../assets/images/core/system/status/issues.png");
}

.systems-doc__block--best h2,
.systems-doc__block--best ul,
.systems-doc__block--worst h2,
.systems-doc__block--worst ul,
.systems-doc__block--mistakes h2,
.systems-doc__block--mistakes ul,
.systems-doc__block--lifetime h2,
.systems-doc__block--lifetime ul,
.systems-doc__block--maintenance h2,
.systems-doc__block--maintenance ul,
.systems-doc__block--known-issues h2,
.systems-doc__block--known-issues ul {
	position: relative;
	z-index: 1;
}

.systems-doc__block h2,
.systems-doc__block h3.systems-doc__context-label {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.55rem;
	font-family: var(--font-display);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--highlight);
}

.systems-doc__block .systems-doc__context-label + .systems-doc__context-lead {
	margin-bottom: 0.65rem;
}

.systems-doc__block .systems-doc__context-label:not(:first-child) {
	margin-top: 0.65rem;
}

.systems-doc__block p,
.systems-doc__block li {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.45;
	color: var(--muted);
}

.systems-doc__block ul {
	margin: 0;
	padding-left: 1rem;
}

.systems-doc__specs {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.72rem;
}

.systems-doc__specs th,
.systems-doc__specs td {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.systems-doc__specs th {
	width: 42%;
	font-weight: 500;
	color: var(--muted);
}

.systems-doc__specs td {
	color: var(--text);
}

@media (min-width: 768px) {
	.systems-doc__layout {
		grid-template-columns: var(--systems-side) var(--systems-main);
		align-items: stretch;
	}

	.systems-doc__info {
		align-self: stretch;
	}

	.systems-doc__visual {
		align-self: stretch;
		justify-content: center;
		align-items: center;
	}

	.systems-doc__info .systems-doc__metrics {
		grid-template-columns: 1fr;
	}

	.systems-doc__body .systems-doc__legend {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1.25rem;
	}
}

@media (min-width: 1100px) {
	.systems-doc__body .systems-doc__legend {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.systems-doc__visual {
		order: -1;
	}
}

@media (max-width: 767px) {
	.systems-doc__forces-equations {
		display: none;
	}

	.systems-doc__forces.has-active-force .systems-doc__forces-equations {
		display: block;
	}

	.systems-doc__forces.has-active-force .systems-doc__equations-grid {
		display: block;
	}

	.systems-doc__forces.has-active-force .systems-doc__equation {
		display: none;
	}

	.systems-doc__forces.active-force--gravity .systems-doc__equation--gravity,
	.systems-doc__forces.active-force--tension .systems-doc__equation--tension,
	.systems-doc__forces.active-force--torque .systems-doc__equation--torque,
	.systems-doc__forces.active-force--friction .systems-doc__equation--friction {
		display: grid;
		width: 100%;
	}
}

@media (min-width: 900px) {
	.systems-doc__footer-grid:not(.systems-doc__footer-grid--pair):not(.systems-doc__footer-grid--triple) {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.systems-doc__header-detail {
		align-self: center;
	}
}

.systems-doc__series-nav {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	margin-top: clamp(1.25rem, 3vw, 2rem);
	padding-top: clamp(0.85rem, 2vw, 1.15rem);
	border-top: 1px solid var(--border);
}

.systems-doc__series-nav-link {
	display: grid;
	gap: 0.2rem;
	max-width: min(100%, 18rem);
	font-size: 0.72rem;
	line-height: 1.35;
	text-decoration: none;
	color: var(--muted);
	transition: color 0.2s ease;
}

.systems-doc__series-nav-link--next {
	margin-left: auto;
	text-align: right;
}

.systems-doc__series-nav-dir {
	font-family: var(--font-display);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--highlight);
}

.systems-doc__series-nav-label {
	color: var(--text);
}

.systems-doc__series-nav-link:hover .systems-doc__series-nav-label,
.systems-doc__series-nav-link:focus-visible .systems-doc__series-nav-label {
	color: var(--highlight);
}
