.header-account {
	background: var(--color-red-dark);
	border-radius: 3px;
	color: var(--color-paper);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	padding: 0.62rem 0.8rem;
	text-transform: uppercase;
	white-space: nowrap;
}

.header-account:hover {
	background: var(--color-red);
}

.header-account__name {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	max-width: 10rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header-account-menu {
	position: relative;
}

.header-account-menu summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 0.55rem;
	list-style: none;
}

.header-account-menu summary::-webkit-details-marker {
	display: none;
}

.header-account-menu summary:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.header-account-menu summary::after {
	border-bottom: 1px solid currentcolor;
	border-right: 1px solid currentcolor;
	content: "";
	height: 0.35rem;
	margin: -0.2rem 0.15rem 0 0.1rem;
	transform: rotate(45deg);
	width: 0.35rem;
}

.header-account-menu__avatar {
	align-items: center;
	background: #302c29;
	border: 1px solid #806451;
	border-radius: 50%;
	display: flex;
	font-family: var(--font-display);
	font-size: 0.85rem;
	height: 2.2rem;
	justify-content: center;
	width: 2.2rem;
}

.header-account-menu nav {
	background: var(--color-ink-soft);
	border: 1px solid var(--color-dark-line);
	box-shadow: 0 1rem 2rem rgb(0 0 0 / 35%);
	display: grid;
	min-width: 10.5rem;
	padding: 0.45rem;
	position: absolute;
	right: 0;
	top: calc(100% + 0.8rem);
	z-index: 30;
}

.header-account-menu nav a {
	font-size: 0.67rem;
	font-weight: 700;
	padding: 0.7rem 0.8rem;
	text-transform: uppercase;
}

.header-account-menu nav a:hover,
.header-account-menu nav a:focus-visible {
	background: var(--color-red-dark);
}

@media (max-width: 78rem) {
	.header-account__name {
		display: none;
	}
}

@media (max-width: 38rem) {
	.header-account {
		padding: 0.55rem 0.65rem;
	}

	.site-header__actions > .site-header__divider:first-of-type {
		display: none;
	}
}
