/* Characters page: bio panel + media dock. JS: bio-theme-dock.js.
   Wide: dock column right of the panel, breaking out of the 1240px wide width.
   Its rail (absolute, height --rail-h from JS) runs to the end of <main>, so the sticky dock follows the whole page.
   Narrow: dock sits above the panel, no follow. */
.bio-layout { display: grid; gap: var(--wp--preset--spacing--30); }
.bio-dock-rail { order: -1; width: min(1100px, 100%); margin-inline: auto; }

@media (min-width: 1320px) {
	.bio-layout {
		--layout-w: min(1424px, calc(100vw - 4rem));
		position: relative;
		width: var(--layout-w);
		margin-inline: calc((100% - var(--layout-w)) / 2);
		grid-template-columns: minmax(0, 1100px) 300px;
		justify-content: center;
		align-items: start;
		gap: 24px;
	}
	.bio-dock-rail {
		position: absolute;
		top: 0;
		right: 0;
		width: 300px;
		height: var(--rail-h, 100%);
		margin: 0;
		pointer-events: none;
	}
	/* Sections below the bio panel line up with it, clear of the dock.
	   Panel center sits 162px left of page center: (300px dock + 24px gap) / 2. */
	.has-theme-dock .bio-switcher ~ * {
		position: relative;
		left: -162px;
		max-width: min(1100px, 100%) !important;
	}
	.bio-dock-rail > .media-dock {
		position: sticky;
		top: calc(var(--header-h) + 1.5rem);
		pointer-events: auto;
	}
}
