/**
 * Architecture layout system — structural CSS for 10 product shells.
 * Zero CDN. Packages skin further; this file defines shell geometry only.
 */

/* ── Shared shell primitives ─────────────────────────────────────────── */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #111;
	clip: auto !important;
	clip-path: none;
	color: #fff;
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}
.vgt-app {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
}
.vgt-app__main {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}
.vgt-shell-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: inherit;
	font-weight: 900;
	letter-spacing: 0.02em;
}
.vgt-shell-logo img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}
.vgt-shell-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.vgt-shell-actions button {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 0.45rem;
	line-height: 1;
}
.vgt-shell-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.25rem;
}
.vgt-shell-nav-list a {
	color: inherit;
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.72;
}
.vgt-shell-nav-list a:hover,
.vgt-shell-nav-list .current-menu-item > a {
	opacity: 1;
}

/* ── 1 cinematic-stage (ember) — overlay top ─────────────────────────── */
.vgt-arch-cinematic-stage .vgt-shell-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
	padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
	padding-bottom: 0.85rem;
	padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
	padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
	transition: background 0.35s ease;
	box-sizing: border-box;
}
.vgt-arch-cinematic-stage .vgt-shell-overlay.is-solid {
	background: rgba(10, 6, 4, 0.94);
	backdrop-filter: blur(16px);
}
.vgt-arch-cinematic-stage .vgt-shell-overlay__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 100%;
	gap: 1rem;
}
.vgt-arch-cinematic-stage .vgt-app__main {
	padding-top: 0;
}

/* ── 2 editorial-magazine (paper) — masthead sheet ───────────────────── */
.vgt-arch-editorial-magazine .vgt-shell-magazine {
	background: #f4efe6;
	color: #1a1612;
	border-bottom: 3px double #1a1612;
}
.vgt-arch-editorial-magazine .vgt-shell-magazine__inner {
	/* Sheet measure — never edge-flush; package may tighten further */
	max-width: min(72rem, calc(100vw - 2 * clamp(0.75rem, 2.5vw, 2rem)));
	margin: 0 auto;
	padding: 1rem max(1.25rem, env(safe-area-inset-right, 0px)) 0.85rem max(1.25rem, env(safe-area-inset-left, 0px));
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	gap: 1rem;
	box-sizing: border-box;
	width: 100%;
}
.vgt-arch-editorial-magazine .vgt-shell-magazine__brand {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: clamp(1.4rem, 3vw, 2rem);
	grid-column: 2;
	text-align: center;
}
.vgt-arch-editorial-magazine .vgt-shell-magazine__nav {
	grid-column: 1 / -1;
	border-top: 1px solid rgba(26, 22, 18, 0.15);
	padding-top: 0.65rem;
	margin-top: 0.5rem;
	justify-content: center;
	flex-wrap: wrap;
}
.vgt-arch-editorial-magazine .vgt-app__main {
	background: #f7f2ea;
	color: #1a1612;
}

/* ── 3 control-room (neon) — left sidebar dock (viewport-fixed) ──────── */
/* position:fixed (not sticky) — sticky fails when ancestors use overflow-x: clip */
.vgt-arch-control-room {
	--vgt-dock-w: 240px;
}
.vgt-arch-control-room .vgt-shell-control {
	display: block;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	box-sizing: border-box;
}
.vgt-arch-control-room .vgt-shell-control__dock {
	/* Viewport-fixed: survives overflow-x:clip ancestors; page scroll does not move dock */
	position: fixed;
	top: 0;
	left: 0;
	width: var(--vgt-dock-w, 240px);
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	overflow: hidden;
	overflow-x: hidden;
	overscroll-behavior: contain;
	z-index: 40;
	background: #07070c;
	border-right: 1px solid rgba(0, 240, 255, 0.2);
	padding: 1.25rem 0.9rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	box-sizing: border-box;
}
/* Nav is the only scroll region inside the dock */
.vgt-arch-control-room .vgt-shell-control__dock nav,
.vgt-arch-control-room .vgt-shell-control__dock > nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.vgt-arch-control-room .vgt-shell-control__dock .vgt-shell-nav-list {
	flex-direction: column;
	gap: 0.35rem;
}
.vgt-arch-control-room .vgt-shell-control__dock .vgt-shell-nav-list a {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid transparent;
	font-family: ui-monospace, Consolas, monospace;
	letter-spacing: 0.12em;
}
.vgt-arch-control-room .vgt-shell-control__dock .vgt-shell-nav-list a:hover {
	border-color: rgba(0, 240, 255, 0.35);
	background: rgba(0, 240, 255, 0.06);
}
.vgt-arch-control-room .vgt-shell-control__stage {
	/* Reserve space equal to fixed dock so content is never under chrome */
	margin-left: var(--vgt-dock-w, 240px);
	width: calc(100% - var(--vgt-dock-w, 240px));
	min-width: 0;
	max-width: none;
	overflow-x: clip;
	background: #05050a;
	box-sizing: border-box;
}
@media (max-width: 900px) {
	.vgt-arch-control-room .vgt-shell-control__dock {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: auto;
		max-height: none;
		z-index: auto;
		overflow: visible;
		border-right: 0;
		border-bottom: 1px solid rgba(0, 240, 255, 0.2);
	}
	.vgt-arch-control-room .vgt-shell-control__stage {
		margin-left: 0;
		width: 100%;
		max-width: 100%;
	}
	.vgt-arch-control-room .vgt-shell-control__dock nav,
	.vgt-arch-control-room .vgt-shell-control__dock > nav {
		flex: 0 1 auto;
		overflow: visible;
	}
	.vgt-arch-control-room .vgt-shell-control__dock .vgt-shell-nav-list {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* ── 4 channel-surf (blue) — TV top tabs ──────────────────────────────── */
.vgt-arch-channel-surf .vgt-shell-tv {
	background: #0a1018;
	border-bottom: 1px solid rgba(0, 194, 255, 0.25);
}
.vgt-arch-channel-surf .vgt-shell-tv__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.25rem;
	gap: 1rem;
}
.vgt-arch-channel-surf .vgt-shell-tv__tabs {
	display: flex;
	gap: 0.35rem;
	flex-wrap: wrap;
}
.vgt-arch-channel-surf .vgt-shell-tv__tabs a {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid rgba(0, 194, 255, 0.28);
	background: rgba(0, 194, 255, 0.06);
	color: #e8f7ff;
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 4px;
}
.vgt-arch-channel-surf .vgt-shell-tv__tabs .current-menu-item a,
.vgt-arch-channel-surf .vgt-shell-tv__tabs a:hover {
	background: #00c2ff;
	color: #031018;
	border-color: #00c2ff;
}

/* ── 5 story-journey (lumen) — soft minimal + vertical chapters ──────── */
.vgt-arch-story-journey .vgt-shell-journey {
	background: rgba(247, 242, 234, 0.96);
	color: #1c1915;
	border-bottom: 1px solid rgba(28, 25, 21, 0.08);
	padding: 0.85rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
/* Full-width stage for alternating sticky L/R chapters (package skins further) */
.vgt-arch-story-journey .vgt-app__main,
.vgt-arch-story-journey .vgt-main--journey {
	background: #f7f2ea;
	color: #1c1915;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0 0 4rem;
}
.vgt-arch-story-journey .vgt-lumen-journey {
	width: 100%;
}

/* ── 6 poster-museum (atelier) — floating minimal ────────────────────── */
.vgt-arch-poster-museum .vgt-shell-museum {
	position: fixed;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 0.55rem 1rem;
	background: rgba(255, 255, 255, 0.88);
	color: #121316;
	border: 1px solid rgba(18, 19, 22, 0.12);
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.vgt-arch-poster-museum .vgt-app__main {
	padding-top: 4.5rem;
	background: #f3f1ec;
	color: #121316;
}

/* ── 7 split-discovery (harbor) — workspace split ────────────────────── */
/* Master: position:fixed 100dvh (sticky fails under overflow-x:clip); list scrolls. */
.vgt-arch-split-discovery {
	--vgt-dock-w: 280px;
}
.vgt-arch-split-discovery .vgt-shell-split {
	display: block;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.vgt-arch-split-discovery .vgt-shell-split__master {
	border-right: 1px solid rgba(26, 152, 255, 0.22);
	background: #0c1218;
	padding: 1rem;
	position: fixed;
	top: 0;
	left: 0;
	width: var(--vgt-dock-w, 280px);
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overscroll-behavior: contain;
	z-index: 40;
	box-sizing: border-box;
}
/* Master chrome (logo / labels / nav / head / actions) stays put */
.vgt-arch-split-discovery .vgt-shell-split__master > .vgt-shell-logo,
.vgt-arch-split-discovery .vgt-shell-split__master > .vgt-shell-split__label,
.vgt-arch-split-discovery .vgt-shell-split__master > .vgt-shell-split__nav,
.vgt-arch-split-discovery .vgt-shell-split__master > .vgt-shell-split__list-head,
.vgt-arch-split-discovery .vgt-shell-split__master > .vgt-shell-split__master-actions {
	flex: 0 0 auto;
}
.vgt-arch-split-discovery .vgt-shell-split__master nav,
.vgt-arch-split-discovery .vgt-shell-split__nav {
	flex: 0 0 auto;
	min-height: 0;
	max-height: 28vh;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}
/* Internal scroll — curated title list only */
.vgt-arch-split-discovery .vgt-shell-split__list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.vgt-arch-split-discovery .vgt-shell-split__master-actions {
	margin-top: auto;
}
.vgt-arch-split-discovery .vgt-shell-split__detail {
	/* Reserve space equal to fixed master so detail is never under chrome */
	margin-left: var(--vgt-dock-w, 280px);
	width: calc(100% - var(--vgt-dock-w, 280px));
	min-width: 0;
	max-width: none;
	background: #0a0e14;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
}
.vgt-arch-split-discovery .vgt-shell-split__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(26, 152, 255, 0.18);
	background: #0f1419;
	flex: 0 0 auto;
}
.vgt-arch-split-discovery .vgt-main--split {
	flex: 1 1 auto;
	min-width: 0;
}
.vgt-arch-split-discovery .vgt-shell-nav-list--split {
	flex-direction: column;
	gap: 0.2rem;
}
@media (max-width: 900px) {
	.vgt-arch-split-discovery .vgt-shell-split {
		min-height: 0;
	}
	.vgt-arch-split-discovery .vgt-shell-split__master {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: auto;
		max-height: 40vh;
		z-index: 1;
	}
	.vgt-arch-split-discovery .vgt-shell-split__master nav,
	.vgt-arch-split-discovery .vgt-shell-split__nav {
		max-height: none;
	}
	.vgt-arch-split-discovery .vgt-shell-split__detail {
		margin-left: 0;
		width: 100%;
		max-width: 100%;
		min-height: 0;
	}
}

/* ── 8 broadcast-guide (noir) — left program rail (viewport-fixed) ───── */
/* position:fixed (not sticky) — sticky fails when ancestors use overflow-x: clip */
.vgt-arch-broadcast-guide {
	--vgt-dock-w: 200px;
}
.vgt-arch-broadcast-guide .vgt-shell-guide {
	display: block;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.vgt-arch-broadcast-guide .vgt-shell-guide__rail {
	/* Viewport-fixed: 100dvh · page scroll does not move rail */
	background: #0a0a0c;
	border-right: 1px solid rgba(255, 42, 58, 0.25);
	padding: 1rem 0.65rem;
	position: fixed;
	top: 0;
	left: 0;
	width: var(--vgt-dock-w, 200px);
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	min-height: 0;
	overflow: hidden;
	overflow-x: hidden;
	overscroll-behavior: contain;
	z-index: 40;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	box-sizing: border-box;
}
/* Nav is the only scroll region inside the EPG rail */
.vgt-arch-broadcast-guide .vgt-shell-guide__rail nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.vgt-arch-broadcast-guide .vgt-shell-guide__rail .vgt-shell-nav-list {
	flex-direction: column;
	gap: 0.2rem;
}
.vgt-arch-broadcast-guide .vgt-shell-guide__rail a {
	font-size: 0.68rem;
	padding: 0.55rem 0.5rem;
	border-left: 2px solid transparent;
}
.vgt-arch-broadcast-guide .vgt-shell-guide__rail .current-menu-item a,
.vgt-arch-broadcast-guide .vgt-shell-guide__rail a:hover {
	border-left-color: #ff2a3a;
	background: rgba(255, 42, 58, 0.08);
}
.vgt-arch-broadcast-guide .vgt-shell-guide__stage {
	/* Reserve space equal to fixed rail so stage is never under chrome */
	margin-left: var(--vgt-dock-w, 200px);
	width: calc(100% - var(--vgt-dock-w, 200px));
	min-width: 0;
	max-width: none;
	background: #050506;
	box-sizing: border-box;
}
@media (max-width: 860px) {
	.vgt-arch-broadcast-guide .vgt-shell-guide__rail {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: auto;
		max-height: none;
		z-index: auto;
		display: flex;
		align-items: center;
		gap: 0.75rem;
		overflow-x: auto;
	}
	.vgt-arch-broadcast-guide .vgt-shell-guide__stage {
		margin-left: 0;
		width: 100%;
		max-width: 100%;
	}
	.vgt-arch-broadcast-guide .vgt-shell-guide__rail .vgt-shell-nav-list {
		flex-direction: row;
	}
}

/* ── 9 community-pulse (aurora) — family app top ─────────────────────── */
.vgt-arch-community-pulse .vgt-shell-family {
	background: linear-gradient(180deg, #0a1c28 0%, #07141c 100%);
	border-bottom: 1px solid rgba(125, 211, 252, 0.15);
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.vgt-arch-community-pulse .vgt-shell-family .vgt-shell-nav-list a {
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	background: rgba(125, 211, 252, 0.08);
}
.vgt-arch-community-pulse .vgt-app__main {
	background: #06141d;
}

/* ── 10 minimal-focus (obsidian) — ghost chrome ──────────────────────── */
.vgt-arch-minimal-focus .vgt-shell-void {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	pointer-events: none;
	opacity: 0.35;
	transition: opacity 0.3s ease;
}
.vgt-arch-minimal-focus .vgt-shell-void:hover,
.vgt-arch-minimal-focus .vgt-shell-void:focus-within {
	opacity: 1;
	pointer-events: auto;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}
.vgt-arch-minimal-focus .vgt-shell-void .vgt-shell-actions,
.vgt-arch-minimal-focus .vgt-shell-void a {
	pointer-events: auto;
}
.vgt-arch-minimal-focus .vgt-app__main {
	background: #050505;
	min-height: 100vh;
}

/* Control room extras */
.vgt-shell-control__status {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.65rem;
	letter-spacing: 0.14em;
	color: rgba(0, 240, 255, 0.7);
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
}
.vgt-shell-control__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 8px #22c55e;
}
.vgt-shell-control__stage-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.55rem 1rem;
	border-bottom: 1px solid rgba(0, 240, 255, 0.15);
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.55);
}
.vgt-shell-control__dock-foot { margin-top: auto; }

/* Guide / split labels */
.vgt-shell-guide__epg,
.vgt-shell-split__label {
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.55;
	margin: 0.5rem 0 0.75rem;
}
.vgt-shell-guide__mobile {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 5;
}
.vgt-shell-split__master-actions { margin-top: 1.5rem; }

/* Magazine meta */
.vgt-shell-magazine__meta {
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.55;
}
.vgt-shell-magazine__tools { justify-self: end; }

/* ═══════════════════════════════════════════════════════════════════════
   EDGE GUTTERS / MAX-WIDTH CONTRACT (all 10 architectures)
   Content must never kiss the viewport edge — except intentional
   full-bleed heroes / billboards / void stages / story art spreads.
   Packages may strengthen tokens; this file is the safety floor.
   ═══════════════════════════════════════════════════════════════════════ */
body[data-vgt-arch] {
	--vgt-edge-gutter: clamp(0.75rem, 2.5vw, 2rem);
	--vgt-stage-gutter: clamp(0.85rem, 2.2vw, 1.75rem);
	--vgt-edge-gutter-l: max(var(--vgt-edge-gutter), env(safe-area-inset-left, 0px));
	--vgt-edge-gutter-r: max(var(--vgt-edge-gutter), env(safe-area-inset-right, 0px));
	--vgt-stage-gutter-l: max(var(--vgt-stage-gutter), env(safe-area-inset-left, 0px));
	--vgt-stage-gutter-r: max(var(--vgt-stage-gutter), env(safe-area-inset-right, 0px));
}

/* Ensure app shells full-bleed (break WP content max-width habits) */
body[data-vgt-arch] .vgt-app {
	width: 100%;
	max-width: none;
	overflow-x: clip;
}

/* Default: content never kisses viewport edges */
body[data-vgt-arch] .vgt-app__main {
	padding-left: var(--vgt-edge-gutter-l);
	padding-right: var(--vgt-edge-gutter-r);
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}

/* Stage-column architectures (content lives beside left chrome) */
body[data-vgt-arch].vgt-arch-control-room .vgt-app__main,
body[data-vgt-arch].vgt-arch-split-discovery .vgt-app__main,
body[data-vgt-arch].vgt-arch-broadcast-guide .vgt-app__main {
	padding-left: var(--vgt-stage-gutter-l);
	padding-right: var(--vgt-stage-gutter-r);
	padding-block-end: clamp(1.5rem, 3vw, 2.5rem);
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: clip;
}

/* Full-bleed main allowed — package owns content insets
   cinematic: billboard edge-to-edge; chapters/rail use package insets
   magazine: cream field full-bleed; sheet measure on containers/masthead
   story-journey: L/R chapter art may touch edges; copy has internal pad
   poster-museum / minimal-focus: full-bleed stage; inners hold gutters */
body[data-vgt-arch].vgt-arch-cinematic-stage .vgt-app__main,
body[data-vgt-arch].vgt-arch-editorial-magazine .vgt-app__main,
body[data-vgt-arch].vgt-arch-story-journey .vgt-app__main,
body[data-vgt-arch].vgt-arch-poster-museum .vgt-app__main,
body[data-vgt-arch].vgt-arch-minimal-focus .vgt-app__main {
	padding-left: 0;
	padding-right: 0;
}

/* Cinematic — chapter + sparse rail safety floor (package strengthens) */
body[data-vgt-arch].vgt-arch-cinematic-stage {
	/* Shared inset token so chapters + sparse rail stay aligned */
	--ember-chapter-inset: clamp(1rem, 3.6vw, 2.75rem);
}
body[data-vgt-arch].vgt-arch-cinematic-stage .vgt-ember-chapters,
body[data-vgt-arch].vgt-arch-cinematic-stage [data-vgt-ember-chapters] {
	/* Elegant stage inset — never viewport edge-kiss */
	padding-left: max(var(--ember-chapter-inset), env(safe-area-inset-left, 0px));
	padding-right: max(var(--ember-chapter-inset), env(safe-area-inset-right, 0px));
	box-sizing: border-box;
	max-width: 100%;
}
body[data-vgt-arch].vgt-arch-cinematic-stage .vgt-ember-stage-rail__inner,
body[data-vgt-arch].vgt-arch-cinematic-stage [data-vgt-ember-stage-rail] .vgt-ember-stage-rail__inner {
	padding-left: max(var(--ember-chapter-inset), env(safe-area-inset-left, 0px));
	padding-right: max(var(--ember-chapter-inset), env(safe-area-inset-right, 0px));
	box-sizing: border-box;
	max-width: min(88rem, 100%);
	margin-inline: auto;
	width: 100%;
}

/* Magazine — cream field may full-bleed; editorial sheet is measure-bound */
body[data-vgt-arch].vgt-arch-editorial-magazine .vg-container,
body[data-vgt-arch].vgt-arch-editorial-magazine .vgt-app__main .vg-container {
	max-width: min(var(--container-max, 72rem), calc(100vw - 2 * var(--vgt-edge-gutter)));
	margin-inline: auto;
	padding-left: max(var(--vgt-edge-gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--vgt-edge-gutter), env(safe-area-inset-right, 0px));
	box-sizing: border-box;
	width: 100%;
}

/* Shared containers (channel, community, default) — edge air + max measure */
body[data-vgt-arch] .vg-container,
body[data-vgt-arch] .vgt-app__main .vg-container {
	width: 100%;
	max-width: min(var(--container-max, 80rem), calc(100vw - 2 * var(--vgt-edge-gutter)));
	margin-inline: auto;
	padding-left: max(clamp(0.5rem, 1.5vw, 1.25rem), env(safe-area-inset-left, 0px));
	padding-right: max(clamp(0.5rem, 1.5vw, 1.25rem), env(safe-area-inset-right, 0px));
	box-sizing: border-box;
}

/* Stage shells — clip horizontal bleed from child negative margins.
   Width/offset for fixed docks is set on arch selectors above (calc + margin-left).
   Do not force max-width:100% here — that overflows when margin-left reserves dock space. */
body[data-vgt-arch].vgt-arch-control-room .vgt-shell-control__stage,
body[data-vgt-arch].vgt-arch-split-discovery .vgt-shell-split__detail,
body[data-vgt-arch].vgt-arch-broadcast-guide .vgt-shell-guide__stage {
	min-width: 0;
	overflow-x: clip;
	box-sizing: border-box;
}
