/*
 * The Home page and its band pages (templates/admin/home). Unfold's stylesheet only
 * holds the classes Unfold itself uses, so these screens bring their own, built on
 * Unfold's colour variables so they follow its light and dark themes.
 */
/* Something taken out of view stays out, whatever display its class gives it. */
.eb-home [hidden] {
	display: none !important;
}

.eb-home {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 1400px;
}

.eb-home-intro {
	align-items: center;
	color: var(--color-base-500);
	font-size: 0.9375rem;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.eb-home-intro a {
	color: var(--color-primary-600);
	font-weight: 600;
}

.eb-bands,
.eb-rows {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.eb-band,
.eb-row {
	align-items: center;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
	display: flex;
	gap: 1.25rem;
	padding: 1.5rem 1.75rem;
}

.eb-band.eb-fixed {
	background: var(--color-base-100);
	box-shadow: none;
}

.eb-band.eb-off .eb-band-heading,
.eb-band.eb-off .eb-thumbs {
	opacity: 0.45;
}

.eb-handle {
	color: var(--color-base-400);
	flex: none;
	font-size: 28px;
	user-select: none;
}

[x-sort\:handle] {
	cursor: grab;
}

.eb-band-heading {
	color: var(--color-base-900);
	font-size: 1.25rem;
	font-weight: 600;
}

.eb-thumbs {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Photos fill three even columns, so each band's pictures line up with the next band's. */
.eb-thumbs:has(img) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.eb-thumbs img {
	aspect-ratio: 3 / 2;
	border-radius: 0.625rem;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 900px) {
	.eb-thumbs:has(img) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.eb-thumbs img.eb-logo {
	background: #fff;
	border: 1px solid var(--color-base-100);
	object-fit: contain;
	padding: 0.5rem;
}

.eb-chip {
	background: var(--color-base-100);
	border-radius: 999px;
	color: var(--color-base-600);
	font-size: 0.875rem;
	padding: 0.375rem 0.875rem;
}

.eb-switch {
	align-items: center;
	cursor: pointer;
	display: flex;
	flex: none;
	gap: 0.625rem;
	font-size: 0.9375rem;
}

.eb-switch input {
	accent-color: var(--color-primary-600);
	height: 1.25rem;
	width: 1.25rem;
}

.dark .eb-band {
	background: var(--color-base-800);
	box-shadow: none;
}

.dark .eb-band.eb-fixed,
.dark .eb-chip {
	background: var(--color-base-900);
}

.dark .eb-band-heading {
	color: var(--color-base-100);
}

/* On a phone the buttons go under the title. */
@media (max-width: 640px) {
	.eb-band-top {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* How many the band holds, beside its title: "Featured trips (6)". */
.eb-count {
	color: var(--color-base-500);
	font-weight: 500;
}

/* The band's title across the top, with Display and Edit side by side on its right. */
.eb-band-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

.eb-band-top {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.eb-band-actions {
	align-items: center;
	display: flex;
	flex: none;
	gap: 0.5rem;
}

/* Display sits plainly beside Edit, as tall as it so the two line up. */
.eb-band-actions .eb-switch {
	height: 42px;
	padding: 0 0.5rem;
}

