/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
 * ░░░░░░░░▄▀░█▀▄░█▀▀░█▀▀░█░█░█░░░█▀█░█▀▄░░░░░█░░░█▀█░█░█░█▀█░█░█░▀█▀░▀▄░░░░░░░░
 * ░░░░░░░▀▄░░█▀▄░█▀▀░█░█░█░█░█░░░█▀█░█▀▄░▀▀▀░█░░░█▀█░░█░░█░█░█░█░░█░░░▄▀░░░░░░░
 * ░░░░░░░░░▀░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀░▀░░░░░▀▀▀░▀░▀░░▀░░▀▀▀░▀▀▀░░▀░░▀░░░░░░░░░
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
 * ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 * ┃  *  Copyright (c) 2026, the Regular Layout Authors. This file is part  *  ┃
 * ┃  *  of the Regular Layout library, distributed under the terms of the  *  ┃
 * ┃  *  [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). *  ┃
 * ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 */

/*
 * In the own-tab model, the frames of a stack overlap in one cell: each frame
 * renders only its own tab (the engine tiles them into the shared titlebar) and
 * only the selected frame shows its content. So this theme styles appearance,
 * not layout - panel chrome lives on `::part(container)` (shown only for the
 * selected frame) rather than the overlapping frame box, and the titlebar strip
 * is transparent so every stacked frame's tab shows through.
 */

spaday-regular-layout.lorax {
	font-family:
		"ui-monospace", "SFMono-Regular", "SF Mono", "Menlo", "Consolas",
		"Liberation Mono", monospace;
}

spaday-regular-layout.lorax regular-layout-frame {
	--rl-tab-width: 200px;
}

/* Panel content chrome (only the selected frame's container is rendered). */
spaday-regular-layout.lorax regular-layout-frame::part(container) {
	box-sizing: border-box;
	margin: 0 3px 3px 3px;
	padding: 6px;
	/* Square top so the tab strip sits flush; rounded bottom. */
	border-radius: 0 6px 6px 6px;
	border: 1px solid #666;
	box-shadow: 0px 6px 6px -4px rgba(150, 150, 180);
}

/* Transparent strip; the engine tiles the per-frame tabs across it. */
spaday-regular-layout.lorax regular-layout-frame::part(titlebar) {
	margin: 3px 6px 0 3px;
	align-items: end;
}

spaday-regular-layout.lorax regular-layout-frame::part(tab) {
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	padding: 0 6px;
	margin-right: 2px;
	cursor: pointer;
	border: 1px solid #666;
	border-bottom: none;
	border-radius: 6px 6px 0 0;
	opacity: 0.5;
}

spaday-regular-layout.lorax regular-layout-frame::part(title) {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

spaday-regular-layout.lorax regular-layout-frame::part(active-tab) {
	opacity: 1;
}

spaday-regular-layout.lorax regular-layout-frame::part(close) {
	border-radius: 7px;
	border: 1px solid #666;
	background: transparent;
	height: 14px;
	align-self: center;
}

spaday-regular-layout.lorax regular-layout-frame::part(close):hover {
	transition: background-color 0.2s;
	background-color: rgba(255, 0, 0, 0.2);
}

spaday-regular-layout.lorax regular-layout-frame.overlay {
	transition:
		maring 0.1s ease-in-out,
		top 0.1s ease-in-out,
		height 0.1s ease-in-out,
		width 0.1s ease-in-out,
		left 0.1s ease-in-out;
}

/* Colors (per panel position) - the content area and its tab share a hue. */
spaday-regular-layout.lorax :nth-child(8n + 1)::part(container),
spaday-regular-layout.lorax :nth-child(8n + 1)::part(tab) {
	background-color: #ffadadff;
}

spaday-regular-layout.lorax :nth-child(8n + 2)::part(container),
spaday-regular-layout.lorax :nth-child(8n + 2)::part(tab) {
	background-color: #ffd6a5ff;
}

spaday-regular-layout.lorax :nth-child(8n + 3)::part(container),
spaday-regular-layout.lorax :nth-child(8n + 3)::part(tab) {
	background-color: #fdffb6ff;
}

spaday-regular-layout.lorax :nth-child(8n + 4)::part(container),
spaday-regular-layout.lorax :nth-child(8n + 4)::part(tab) {
	background-color: #caffbfff;
}

spaday-regular-layout.lorax :nth-child(8n + 5)::part(container),
spaday-regular-layout.lorax :nth-child(8n + 5)::part(tab) {
	background-color: #9bf6ffff;
}

spaday-regular-layout.lorax :nth-child(8n + 6)::part(container),
spaday-regular-layout.lorax :nth-child(8n + 6)::part(tab) {
	background-color: #a0c4ffff;
}

spaday-regular-layout.lorax :nth-child(8n + 7)::part(container),
spaday-regular-layout.lorax :nth-child(8n + 7)::part(tab) {
	background-color: #bdb2ffff;
}

spaday-regular-layout.lorax :nth-child(8n + 8)::part(container),
spaday-regular-layout.lorax :nth-child(8n + 8)::part(tab) {
	background-color: #ffc6ffff;
}
