.avel-service-filters {
	margin: 22px 0 42px;
	border-bottom: 1px solid #d7d3d2;
}

.avel-service-filters ul {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

/* These filters use grid/flex, so the theme's float clearfix is not an item. */
.avel-service-filters > ul::after {
	content: none;
	display: none;
}

.avel-service-filters li {
	min-width: 0;
	margin: 0;
}

.avel-service-filters a {
	display: block;
	position: relative;
	padding: 14px 5px 17px;
	color: #4d4545;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}

.avel-service-filters a:hover,
.avel-service-filters a:focus-visible {
	background: #faf6f5;
	color: #5b1616;
}

.avel-service-filters a[aria-current="page"] {
	color: #5b1616;
}

.avel-service-filters a:focus-visible {
	outline: 2px solid #5b1616;
	outline-offset: 3px;
}

.avel-service-filters a[aria-current="page"]::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background: #5b1616;
	content: "";
}

.avel-service-category {
	display: inline-block;
	margin: 0 0 8px;
	padding: 3px 10px;
	border: 1px solid #e5d6d3;
	background: #f8ecea;
	color: #5b1616;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.avel-case-filters .avel-service-filters {
	margin-bottom: 0;
}

.avel-case-list {
	padding: 0;
	list-style: none;
}

.avel-case-list .consul_box {
	display: block;
	color: inherit;
}

.avel-case-list .avel-service-category {
	margin-left: -1em;
}

.avel-case-list .consul_box_cont {
	overflow-wrap: anywhere;
}

.avel-case-list .avel-case-label--plain {
	margin-left: 0;
	text-indent: 0;
}

.avel-case-list .consul_box:focus-visible {
	outline: 2px solid #5b1616;
	outline-offset: 3px;
}

.avel-case-list > li:last-child .consul_box {
	margin-bottom: 0 !important;
}

.avel-service-archive--voice .list_area > li:last-child {
	margin-bottom: 0;
}

.avel-service-archive--voice {
	padding-bottom: 60px;
}

.avel-service-archive--voice .avel-service-empty {
	margin-bottom: 0;
}

.avel-service-empty {
	margin: 0;
	padding: 55px 20px;
	border-top: 1px solid #e2ddda;
	background: #faf9f8;
	text-align: center;
	line-height: 1.8;
}

.avel-service-empty a {
	display: block;
	margin-top: 10px;
	color: #5b1616;
	text-decoration: underline;
}

/* Article titles vary in length; the original short section title used wide tracking. */
.avel-case-single .ttl_03 {
	letter-spacing: normal;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.avel-case-question--plain {
	margin-left: 0;
	text-indent: 0;
}

/* The original case paragraphs already own their spacing in page.css. */
.avel-case-body .consul_cont p {
	margin-bottom: 0;
}

.avel-case-featured {
	max-width: 520px;
	margin: 0 0 30px;
}

.avel-case-featured img {
	display: block;
	max-width: 100%;
	height: auto;
}

.avel-voice-single--text-only .right_area {
	float: none;
	width: auto;
	max-width: 920px;
}

.avel-case-back {
	display: block;
	color: inherit;
}

@media screen and (min-width: 761px) and (max-width: 1094px) {
	.avel-service-archive--voice .list_area dl dd {
		width: min(780px, calc(100% - 270px));
		min-width: 0;
	}

	.avel-service-filters ul {
		display: flex;
		justify-content: space-between;
		gap: 4px;
	}

	.avel-service-filters li {
		flex: 0 1 auto;
	}

	.avel-service-filters a {
		padding-right: 6px;
		padding-left: 6px;
		white-space: nowrap;
	}

	.avel-voice-single--with-media {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
	}

	.avel-voice-single--with-media::after {
		display: none;
	}

	.avel-voice-single--with-media > .avel-service-category,
	.avel-voice-single--with-media > .ttl_05,
	.avel-voice-single--with-media > .pager_area {
		grid-column: 1 / -1;
	}

	.avel-voice-single--with-media > .left_area,
	.avel-voice-single--with-media > .right_area {
		float: none;
		width: auto;
		min-width: 0;
	}

	.avel-voice-single--with-media .blog_img {
		float: none;
		width: 100%;
		padding-left: 0;
	}

	.avel-voice-single--with-media .blog_img img {
		max-width: 100%;
		height: auto;
	}

}

@media screen and (max-width: 760px) {
	.avel-case-results,
	.avel-service-archive--voice {
		padding-bottom: 54px;
	}

	.avel-service-filters {
		margin: 16px 0 28px;
		border-bottom: 0;
	}

	.avel-service-filters ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.avel-service-filters li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.avel-service-filters a {
		padding: 13px 6px;
		border-bottom: 1px solid #d7d3d2;
		font-size: 14px;
	}

	.avel-case-filters {
		padding-right: 15px;
		padding-left: 15px;
	}

	.avel-case-filters .avel-service-filters {
		margin-bottom: 0;
	}

	.avel-case-list .consul_box {
		padding-bottom: 32px;
	}

	.avel-case-list .consul_box::after {
		top: auto;
		bottom: 14px;
	}

	.avel-case-body {
		overflow-wrap: anywhere;
	}
}

@media (prefers-reduced-motion: reduce) {
	.avel-service-filters a {
		transition: none;
	}
}
