/* =====================================================================
   Support CPT — single article + article index
   Loaded only on is_singular('support') / is_post_type_archive('support').
   ===================================================================== */

/* ---------- Single article ---------- */
.ae-support-single {
	padding: 40px 0 80px;
}

.ae-support-single__inner {
	max-width: 860px;
	margin: 0 auto;
}

.ae-support-single__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #666;
	transition: color .2s ease;
}

.ae-support-single__back:hover {
	color: #000;
}

.ae-support-single__back svg {
	width: 16px;
	height: 16px;
}

.ae-support-single__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.ae-support-single__cat {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #f2f2f2;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #555;
}

.ae-support-single__title {
	margin: 0 0 20px;
	font-size: 34px;
	line-height: 1.25;
	font-weight: 700;
}

.ae-support-single__divider {
	height: 1px;
	margin: 0 0 28px;
	border: 0;
	background: #e5e5e5;
}

.ae-support-single__content {
	font-size: 17px;
	line-height: 1.75;
	color: #333;
}

.ae-support-single__content > *:first-child { margin-top: 0; }
.ae-support-single__content > *:last-child  { margin-bottom: 0; }

.ae-support-single__content img,
.ae-support-single__content iframe {
	max-width: 100%;
	height: auto;
}

.ae-support-single__content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* ---------- Related articles ---------- */
.ae-support-single__related {
	margin-top: 56px;
	padding-top: 28px;
	border-top: 1px solid #e5e5e5;
}

.ae-support-single__related-title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
}

.ae-support-single__related-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 32px;
}

.ae-support-single__related-list a {
	font-size: 15px;
	line-height: 1.5;
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.ae-support-single__related-list a:hover {
	border-bottom-color: currentColor;
}

/* ---------- Archive / index ---------- */
.ae-support-archive {
	padding: 40px 0 80px;
}

.ae-support-archive__header {
	max-width: 860px;
	margin: 0 auto 28px;
	text-align: center;
}

.ae-support-archive__title {
	margin: 0 0 20px;
	font-size: 36px;
	font-weight: 700;
}

.ae-support-archive__search {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 0 auto;
}

.ae-support-archive__search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 16px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	font-size: 15px;
}

.ae-support-archive__search button {
	flex: 0 0 auto;
	padding: 12px 22px;
	border: 0;
	border-radius: 4px;
	background: #1a1a1a;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.ae-support-archive__search button:hover {
	background: #000;
}

.ae-support-archive__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 980px;
	margin: 0 auto 32px;
}

.ae-support-archive__filter {
	padding: 6px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	text-decoration: none;
	transition: all .2s ease;
}

.ae-support-archive__filter:hover,
.ae-support-archive__filter.is-active {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.ae-support-archive__list {
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	border-top: 1px solid #ececec;
}

.ae-support-archive__item {
	border-bottom: 1px solid #ececec;
}

.ae-support-archive__link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 4px;
	color: #1a1a1a;
	text-decoration: none;
	transition: background .2s ease;
}

.ae-support-archive__link:hover {
	background: #fafafa;
}

.ae-support-archive__item-title {
	font-size: 16px;
	line-height: 1.5;
	font-weight: 500;
}

.ae-support-archive__item-cat {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #999;
}

.ae-support-archive__pagination {
	max-width: 980px;
	margin: 32px auto 0;
	text-align: center;
}

.ae-support-archive__empty {
	text-align: center;
	color: #777;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.ae-support-single__title { font-size: 26px; }
	.ae-support-single__content { font-size: 16px; }
	.ae-support-single__related-list { grid-template-columns: 1fr; }
	.ae-support-archive__title { font-size: 28px; }
	.ae-support-archive__link { flex-direction: column; gap: 4px; }
}
