/**
 * SewShare tabbed blog archive styles.
 *
 * Previously lived in Customizer Additional CSS with selectors scoped to
 * `.archive` only — so /blog/ (body.blog) missed the 50% card width.
 * Selectors now cover category archives AND the Posts page index.
 */

/* Card width — was .archive-only in Additional CSS */
.archive:not(.geodir-page) .hentry:not(.forum):not(.topic):not(.tribe_events),
.blog:not(.geodir-page) .hentry:not(.forum):not(.topic):not(.tribe_events),
.ss-blog-tabbed-archive:not(.geodir-page) .hentry:not(.forum):not(.topic):not(.tribe_events) {
	width: 50%;
	border: none;
	border-bottom: 1px solid var(--reign-site-border-color);
	border-radius: unset;
	margin-bottom: 10px;
}

.wb-lists-view-wrap.wb-post-listing {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Custom Blog Archive tabs + cards */
.ss-blog-archive-tabs {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
}

.ss-blog-archive-tabs button {
	background-color: #17171717;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 10px 20px;
	margin: 0 5px;
	transition: 0.3s;
	font-size: 16px;
	color: var(--reign-site-link-color);
	border-radius: 1rem;
}

.ss-blog-archive-tabs button:hover {
	background-color: #6633cc;
	color: #ffffff;
}

.ss-blog-archive-tabs button.active {
	background-color: #6633cc;
	color: #ffffff;
}

.ss-blog-tabbed-archive .tabcontent {
	display: none;
	padding: 20px 0;
	border-top: none;
}

.ss-blog-archive-post {
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 5px;
	margin-bottom: 20px;
}

.ss-blog-archive-post-container {
	display: flex;
	align-items: flex-start;
}

.ss-blog-archive-post-thumbnail {
	display: block;
	margin-left: 20px;
	max-width: 150px;
	border-radius: 0.75em;
	overflow: hidden;
}

.ss-blog-archive-title {
	font-size: 1.25em;
	font-weight: bold;
	margin-bottom: 10px;
}

.ss-blog-archive-meta {
	font-size: 0.75em;
	color: #757575;
	margin-top: 15px;
}

.ss-blog-archive-summary {
	font-size: 0.85em;
	color: #171717;
}

.ss-blog-archive-meta img.avatar,
.ss-blog-tabbed-archive .entry-meta img.avatar {
	margin-left: 10px;
	width: 30px;
	height: 30px;
}

.ss-blog-archive-meta span.byline,
.ss-blog-tabbed-archive .entry-meta span.byline {
	display: flex;
	align-items: center;
}

/* Nothing Found */
.ss-blog-content-none-wrapper {
	display: flex;
	justify-content: center;
	padding: 20px;
}

.ss-blog-content-none {
	padding: 10px;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	margin-bottom: 20px;
	width: 50%;
}

.ss-blog-content-none-header {
	margin-bottom: 20px;
	text-align: center;
}

.ss-blog-content-none-title {
	font-size: 1.25em;
	font-weight: bolder;
	color: #171717;
}

.ss-blog-content-none-post-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ss-blog-content-none-page-content {
	max-width: 600px;
	text-align: center;
	font-size: 0.85em;
	color: #171717;
}

.ss-blog-content-none-page-content p {
	margin-bottom: 20px;
}

/* Tab pagination */
.ss-tab-pager {
	display: flex;
	justify-content: center;
}

.ss-tab-pager .page-numbers {
	list-style: none;
	margin: 16px 0;
	padding: 0;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.ss-tab-pager .page-numbers li {
	margin: 0;
	padding: 0;
}

.ss-tab-pager .page-numbers a,
.ss-tab-pager .page-numbers span {
	display: inline-block;
	min-width: 36px;
	padding: 8px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 9999px;
	text-decoration: none;
	line-height: 1;
	font-size: 14px;
	color: #4a5568;
	background: #fff;
}

.ss-tab-pager .page-numbers .current {
	background: #6633bb;
	border-color: #6633bb;
	color: #fff;
	font-weight: 600;
}

.ss-tab-pager .page-numbers a:hover,
.ss-tab-pager .page-numbers a:focus {
	border-color: #a78bfa;
	outline: none;
}

.ss-tab-pager .page-numbers .dots {
	border: none;
	background: transparent;
	padding: 0 4px;
	min-width: auto;
}

@media (min-width: 340px) and (max-width: 375px) {
	.ss-blog-archive-tabs button {
		padding: 10px 5px;
	}
}

@media (min-width: 376px) and (max-width: 430px) {
	.ss-blog-archive-tabs button {
		padding: 10px 10px;
	}
}

@media (min-width: 340px) and (max-width: 819px) {
	.archive:not(.geodir-page) .hentry:not(.forum):not(.topic):not(.tribe_events),
	.blog:not(.geodir-page) .hentry:not(.forum):not(.topic):not(.tribe_events),
	.ss-blog-tabbed-archive:not(.geodir-page) .hentry:not(.forum):not(.topic):not(.tribe_events) {
		width: 95%;
	}
}

@media (min-width: 820px) and (max-width: 1024px) {
	.archive:not(.geodir-page) .hentry:not(.forum):not(.topic):not(.tribe_events),
	.blog:not(.geodir-page) .hentry:not(.forum):not(.topic):not(.tribe_events),
	.ss-blog-tabbed-archive:not(.geodir-page) .hentry:not(.forum):not(.topic):not(.tribe_events) {
		width: 70%;
	}
}
