/* Small screens. Loads LAST in shell/ (file name sorts after the others) so these rules win
   over the desktop rules in canvas.css, header.css and layers.css. */

/* The editor chrome is dropped, sections simply stack */
@media (max-width: 56rem) {
	.dba-shell .dba-workspace {
		display: block;
	}

	.dba-shell .dba-main {
		padding: 0;
	}

	.dba-layers,
	.dba-toolbar,
	.dba-zoom,
	.dba-board__label,
	.dba-sel,
	.dba-badge,
	.dba-modes,
	.dba-panelbtn,
	.dba-layers-closed .dba-layers-open,
	.dba-crumbs,
	.dba-people {
		display: none;
	}

	.dba-menu {
		display: block;
	}

	.dba-topbar__tools {
		gap: 0.125rem;
		padding-right: 0.5rem;
	}

	/* Touch targets: at least 44px */
	.dba-iconbtn {
		width: 2.75rem;
		height: 2.75rem;
	}

	.dba-topbar__contact {
		min-height: 2.75rem;
	}

	.dba-topbar__home {
		min-height: 2.75rem;
	}

	.dba-topbar__contact {
		padding: 0.5rem 0.9rem;
	}

	.dba-people__me {
		order: 3;
		margin-left: 0.25rem;
	}

	.dba-topbar__brand {
		width: auto;
		border-right: 0;
	}

	.dba-board + .dba-board {
		margin-top: 0;
	}

	.dba-screen {
		border-inline: 0;
	}

	body.dba-shell {
		background: var(--dba-surface);
	}
}

/* Very small phones (360px and under): tighter top bar so the menu button stays on screen */
@media (max-width: 24rem) {
	.dba-topbar__brand {
		padding-inline: 0.75rem 0.25rem;
	}

	.dba-topbar__home {
		gap: 0.5rem;
		font-size: 1rem;
	}

	.dba-topbar__tools {
		gap: 0.125rem;
		padding-right: 0.5rem;
	}

	.dba-topbar__contact {
		padding: 0.5rem 0.7rem;
	}
}


/* 320px phones: a slightly smaller logo and tighter Contact button so the menu button stays on screen */
@media (max-width: 21rem) {
	.dba-brandlogo {
		height: 1.5rem;
	}

	.dba-topbar__brand {
		padding-inline: 0.5rem 0;
	}

	.dba-topbar__contact {
		padding-inline: 0.75rem;
	}

	.dba-topbar__tools {
		gap: 0;
		padding-right: 0.25rem;
	}
}
