/* shell/menu.css — the phone menu (a <details> in the top bar). Hidden on larger screens, where the Pages panel does this job;
   responsive.css shows it under 56rem. */

.dba-menu {
	display: none;
}

.dba-menu__btn {
	list-style: none;
}

.dba-menu__btn::-webkit-details-marker {
	display: none;
}

.dba-menu__close,
.dba-menu[open] .dba-menu__open {
	display: none;
}

.dba-menu[open] .dba-menu__close {
	display: block;
}

.dba-menu[open] .dba-menu__btn {
	background: var(--dba-canvas);
}

/* The sheet drops down from under the top bar */
.dba-menu__sheet {
	position: absolute; /* the top bar is the positioned parent, so the sheet always starts right under it */
	top: 100%;
	right: 0;
	left: 0;
	z-index: var(--dba-z-header);
	padding: 0.5rem 1rem 1.25rem;
	background: var(--dba-surface);
	border-bottom: 1px solid var(--dba-line);
	box-shadow: 0 18px 30px -12px rgb(0 0 0 / 0.25);
}

.dba-menu__who {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.75rem 0 1rem;
	border-bottom: 1px solid var(--dba-line);
}

.dba-menu__photo {
	display: grid;
	flex: none;
	place-items: center;
	width: 3rem;
	height: 3rem;
	overflow: hidden;
	border-radius: 50%;
	background: var(--dba-accent-soft);
	color: var(--dba-accent);
	font-weight: 600;
}

.dba-menu__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dba-menu__who strong,
.dba-menu__who small {
	display: block;
}

.dba-menu__who small {
	margin-top: 0.125rem;
	color: var(--dba-muted);
	font-size: 0.875rem;
}

.dba-menu__list {
	margin: 0;
	padding: 0.5rem 0 0;
	list-style: none;
}

.dba-menu__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 3rem;
	padding: 0 0.25rem;
	border-radius: var(--dba-radius-s);
	color: var(--dba-ink);
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
}

.dba-menu__list a:hover,
.dba-menu__list a[aria-current="page"] {
	color: var(--dba-accent);
}

.dba-menu__list .dba-icon {
	width: 1.25rem;
	height: 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
	.dba-menu[open] .dba-menu__sheet {
		animation: dba-menu-in 0.18s var(--dba-ease);
	}
}

@keyframes dba-menu-in {
	from {
		opacity: 0;
		transform: translateY(-0.5rem);
	}
}
