/**
 * Retro panels and separators.
 * HTML chrome is a CSS 1px single-line border or a transparent reserved border.
 * There is no JS geometry.
 */

.retro-panel {
	display: flex;
	flex-direction: column;
	border: var(--retro-border-width) solid var(--color-text);
	min-width: 0;
	line-height: 1;
}

.retro-panel-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	padding: 0;
	line-height: 1.25;
	overflow: visible;
}

.retro-panel-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	min-height: 0;
	padding: 1ch;
	overflow: hidden;
}

.retro-separator {
	flex: 0 0 auto;
	border-top: var(--retro-border-width) solid var(--color-text);
}

html[data-box-style="none"] .retro-panel,
html[data-box-style="none"] .retro-separator {
	border-color: transparent;
}
