/**
 * HOTFIX — rail lateral: fondo blanco puro + sticky persistente en scroll.
 * Anula overrides de composicion-004 (#fafaf9 y height:auto en el rail).
 */

@media (min-width: 768px) {
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-pres-panel__nav,
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-pres-rail-d1d,
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-shell-rail {
		position: sticky !important;
		top: 0 !important;
		align-self: start !important;
		z-index: 2;
		background: #ffffff !important;
		min-height: 100vh !important;
		max-height: 100vh !important;
		height: auto !important;
		box-sizing: border-box;
		margin: 0 !important;
		border: none !important;
		border-right: none !important;
		box-shadow: inset -1px 0 0 rgba(28, 25, 23, 0.1) !important;
		border-radius: 0 !important;
		overflow: hidden;
	}

	body.psb-pres-portal-shell.admin-bar .psb-pres-panel__grid--shell3 > .psb-pres-panel__nav,
	body.psb-pres-portal-shell.admin-bar .psb-pres-panel__grid--shell3 > .psb-pres-rail-d1d,
	body.psb-pres-portal-shell.admin-bar .psb-pres-panel__grid--shell3 > .psb-shell-rail {
		top: 32px !important;
		min-height: calc(100vh - 32px) !important;
		max-height: calc(100vh - 32px) !important;
	}

	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-shell-rail {
		display: flex !important;
		flex-direction: column !important;
	}

	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-pres-rail-d1d:not(.psb-shell-rail),
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-pres-panel__nav:not(.psb-shell-rail) {
		overflow-x: hidden;
		overflow-y: auto;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-shell-rail .psb-shell-rail__body {
		flex: 1 1 auto;
		min-height: 0;
		overflow: auto;
		scrollbar-width: thin;
	}

	/* Superficie blanca en toda la columna (sin stone ni grises en bloques internos) */
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-pres-rail-d1d--premium,
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-pres-rail-d1d--premium.psb-shell-rail,
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-pres-rail-d1d--premium.psb-pres-panel__nav {
		background: #ffffff !important;
	}

	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-shell-rail .psb-shell-rail__brand,
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-shell-rail .psb-shell-rail__body,
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-pres-rail-d1d .psb-pres-rail-d1d__block {
		background: transparent !important;
		box-shadow: none !important;
	}

	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-shell-rail .psb-shell-rail__brand-mark,
	body.psb-pres-portal-shell .psb-shell-rail__brand-mark {
		background: transparent !important;
	}

	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-shell-rail .psb-pres-rail-d1d__block--primary,
	body.psb-pres-portal-shell .psb-pres-panel__grid--shell3 > .psb-pres-rail-d1d .psb-pres-rail-d1d__block--primary {
		background: transparent !important;
	}
}
