.eac-profile-header {
	padding: 8px 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	position: relative;

	p {
		margin: 0;
		padding: 0;
		font-size: 14px;
		color: #777;

		a {
			line-height: 1.75;
			color: inherit;
		}

		&.small {
			font-size: 12px;
			line-height: 1.5;
		}
	}

	&__avatar {
		flex: 0 0 80px;
		border-radius: 50%;
		margin-right: 1.5em;

		.avatar {
			width: 80px;
			height: 80px;
			border: 1px solid #e1e2e2;
			padding: 2px;
		}
	}

	&__columns {
		box-sizing: border-box;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		flex: 1 1 0;
	}

	&__column {
		flex-basis: 0;
		flex-grow: 1;
		max-width: 100%;

		&--right {
			align-items: flex-end;
		}
	}

	&__title {
		font-size: 16px;
		font-weight: 700;
		margin-bottom: 4px;
		line-height: 1.3;
	}

	&__edit {
		position: absolute;
		right: 0;
		top: 0;
		padding: 5px;
		text-decoration: none;
		color: #555;
		background-color: #fafafa;
		border-bottom-left-radius: 20%;
		border: 1px solid #eee;
		border-top: none;
		border-right: none;
		font-family: monospace;
		font-size: 14px;
		font-weight: 600;
		transition: all 0.3s ease;
		&:hover {
			color: #2271b1;
		}
	}
}

.eac-profile-nav {
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: center;
	display: flex;
	border-bottom: 1px solid #e1e2e2;

	li {
		padding: 0;
		margin: 0;
		display: inline-flex;
	}

	a {
		font-weight: bold;
		padding: 8px 12px;
		align-items: center;
		position: relative;
		text-align: center;
		cursor: pointer;
		display: flex;
		text-decoration: none;
		color: inherit;
		border-bottom: 2px solid transparent;
		transition: border-color 0.3s ease;

		&:hover {
			border-bottom-color: #e1e2e2;
		}

		&.active {
			border-bottom-color: #0073aa;
		}

		&:active, &:focus {
			outline: none;
			box-shadow: none;
		}
	}
}


.eac-profile-sections {
	clear: both;
	width: 100%;
	box-sizing: border-box;
	margin-top: 20px;
	max-width: none;
	min-width: auto;
	min-height: 1px;
	background: #fff;
	font-size: 13px;
	line-height: 1.5;
	position: relative;
	border: 1px solid #e1e2e2;
	display: flex;

	&__nav {
		position: relative;
		width: 20%;
		line-height: 1em;
		margin: 0 -1px 0 0;
		padding: 0;
		background-color: #f5f5f5;
		border-right: 1px solid #e5e5e5;
		box-sizing: border-box;
		max-width: 320px;
		min-width: 200px;

		li {
			display: block;
			position: relative;
			margin: 0;
			padding: 0;
			background-color: #fcfcfc;


			a {
				display: flex;
				margin: 0;
				padding: 10px;
				text-decoration: none;
				border-bottom: 1px solid #e5e5e5;
				box-shadow: none;
				position: relative;
				align-items: center;
				gap: 8px;

				span {
					max-width: 76%;
					display: inline-block;
				}

				.dashicons {
					line-height: 20px;
					margin: 0;
					color: #888;
				}
			}

			&.is-active {
				font-weight: 700;
				color: #555;
				background-color: #fff;
				border-right: none;
				margin-right: -1px;
				box-shadow: inset 5px 0 #0073aa;
			}

			&:hover {
				outline: 0;
				transition: all .25s;
				box-shadow: inset 5px 0 #0073aa;
			}
		}
	}

	&__content {
		width: 80%;
		padding: 10px 20px;
		box-sizing: border-box;

		> *:first-child {
			margin-top: 0;
		}

		// any first level heading in the content
		h1, h2, h3, h4, h5, h6 {
			line-height: 1;
			margin-top: 0;
			display: flex;
			align-items: center;
			gap: 8px;
			width: 100%;

			&.has--border {
				border-bottom: 1px solid #e1e2e2;
				padding-bottom: 10px;
			}
		}

		hr {
			margin: 20px 0;
			border: none;
			border-top: 1px solid #e1e2e2;
			border-bottom: 0;
		}
	}

	&__title {
		margin: 0;
		font-size: 20px;
		line-height: 1;
		padding-bottom: 10px;
		border-bottom: 1px solid #e1e2e2;
	}
}
