/**
 * Category / tag archive — Helix Ultimate ditto.
 *
 * Live layout (template.css + custom.css):
 *   #sp-section-2     breadcrumb col-8 + search col-4 (full .container)
 *   #sp-main-body     padding: 100px 0
 *   aside#sp-left     col-lg-2 (empty)
 *   #sp-component     col-lg-10 > .sp-column { max-width: 800px }
 *   table.category.table.table-bordered
 *     tr { border: 1px solid #f2f2f2 }
 *     td { padding: 10px }
 *   a { text-decoration: none; transition: color 400ms }
 *   .pagination Bootstrap joined buttons
 */
.seeds-archive.site-main {
	/* Helix #sp-main-body */
	padding: 100px 0 !important;
	background: var(--seeds-boxed) !important;
	max-width: var(--seeds-max);
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

/* Bootstrap .container equivalent inside boxed site */
.seeds-archive__container {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: 100%;
	max-width: 1140px; /* BS xl .container */
	margin: 0 auto;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

/* Helix empty aside#sp-left.col-lg-2 */
.seeds-archive__sidebar {
	flex: 0 0 16.66666667%;
	max-width: 16.66666667%;
	width: 16.66666667%;
	box-sizing: border-box;
}

/* Helix #sp-component.col-lg-10 > .sp-column { max-width: 800px } */
.seeds-archive__content,
.seeds-archive .page-content {
	flex: 0 0 83.33333333%;
	max-width: 800px !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

.seeds-archive-heading {
	font-family: "Raleway", sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: #252525;
	margin: 0 0 1.25rem;
	padding: 0;
	line-height: 1.3;
}

.archive .page-header,
.category .page-header,
.tag .page-header {
	display: none !important;
}

/* ----- table.category (Helix template.css) — no stripe, no cell bg ----- */
.seeds-category-list {
	width: 100%;
}

.seeds-category-table {
	width: 100%;
	margin-bottom: 0;
	border-collapse: collapse;
	border-spacing: 0;
	border: 0;
	background-color: transparent;
	color: var(--seeds-text);
	caption-side: bottom;
	vertical-align: top;
}

.seeds-category-table > thead > tr,
.seeds-category-table > tbody > tr {
	border: 1px solid #f2f2f2;
	background: transparent !important;
}

.seeds-category-table > thead > tr > th,
.seeds-category-table > thead > tr > td,
.seeds-category-table > tbody > tr > th,
.seeds-category-table > tbody > tr > td {
	border: 0;
	padding: 10px;
	vertical-align: middle;
	background: transparent !important;
}

.seeds-category-table .cat-list-row0,
.seeds-category-table .cat-list-row1 {
	background: transparent !important;
}

.seeds-category-table td.list-title a {
	color: #0345bf !important; /* Helix primary / preset */
	font-family: "Nunito Sans", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none !important;
	transition: color 400ms, background-color 400ms;
}

.seeds-category-table td.list-title a:hover,
.seeds-category-table td.list-title a:focus,
.seeds-category-table td.list-title a:active {
	color: #044cd0 !important; /* Helix a:hover from template article styles */
	text-decoration: none !important;
}

/* ----- Bootstrap .pagination ----- */
.seeds-pagination-wrapper {
	display: block;
	margin-top: 1.5rem;
}

.seeds-pagination {
	display: flex;
	flex-wrap: wrap;
	padding-left: 0;
	list-style: none;
	margin: 0 0 1.5rem;
}

.seeds-page-item:not(:first-child) .page-numbers,
.seeds-page-item:not(:first-child) .seeds-page-link,
.seeds-page-item:not(:first-child) > a,
.seeds-page-item:not(:first-child) > span {
	margin-left: -1px;
}

.seeds-page-item .page-numbers,
.seeds-page-item .seeds-page-link,
.seeds-page-item > a,
.seeds-page-item > span {
	position: relative;
	display: block;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #0345bf;
	text-decoration: none !important;
	background-color: #fff;
	border: 1px solid #dee2e6;
	box-sizing: border-box;
}

.seeds-page-item:first-child .page-numbers,
.seeds-page-item:first-child .seeds-page-link,
.seeds-page-item:first-child > a,
.seeds-page-item:first-child > span {
	border-top-left-radius: 0.375rem;
	border-bottom-left-radius: 0.375rem;
}

.seeds-page-item:last-child .page-numbers,
.seeds-page-item:last-child .seeds-page-link,
.seeds-page-item:last-child > a,
.seeds-page-item:last-child > span {
	border-top-right-radius: 0.375rem;
	border-bottom-right-radius: 0.375rem;
}

.seeds-page-item .page-numbers:hover,
.seeds-page-item .seeds-page-link:hover,
.seeds-page-item > a:hover {
	z-index: 2;
	color: #023799;
	background-color: #e9ecef;
	border-color: #dee2e6;
}

.seeds-page-item.is-active .page-numbers,
.seeds-page-item .page-numbers.current,
.seeds-page-item.is-active > span,
.seeds-page-item.is-active > a {
	z-index: 3;
	color: #fff !important;
	background-color: #0345bf !important;
	border-color: #0345bf !important;
}

.seeds-pagination-counter {
	font-size: 1rem;
	line-height: 1.5;
	color: #252525;
}

/*
 * Header bar on archives = Helix #sp-section-2 .container
 * Full container width (NOT 800px), same 1140px + 15px gutters.
 */
body.category .seeds-header-bar,
body.tag .seeds-header-bar,
body.archive .seeds-header-bar,
body.category .elementor-widget-shortcode .seeds-header-bar,
body.tag .elementor-widget-shortcode .seeds-header-bar,
body.archive .elementor-widget-shortcode .seeds-header-bar {
	max-width: 1140px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

/* Breadcrumb current crumb (last) is not a link on live */
.seeds-header-bar__crumb .seeds-bc-current {
	color: #252525 !important;
	font-weight: 400;
}

@media (max-width: 991px) {
	.seeds-archive__sidebar {
		display: none;
	}

	.seeds-archive__content,
	.seeds-archive .page-content {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.seeds-archive__container {
		max-width: 100%;
	}

	.seeds-archive.site-main {
		padding: 40px 0 60px !important;
	}
}

/* Small devices: post list full width (Helix mobile) */
@media (max-width: 767px) {
	.seeds-archive.site-main {
		padding: 24px 0 40px !important;
	}

	.seeds-archive__container {
		padding-left: 10px;
		padding-right: 10px;
		max-width: 100% !important;
		width: 100% !important;
	}

	.seeds-archive__content,
	.seeds-archive .page-content,
	.seeds-archive .seeds-category-list,
	.seeds-archive .seeds-category-table {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.seeds-category-table td.list-title a {
		font-size: 17px;
		word-break: break-word;
	}

	body.category .seeds-header-bar,
	body.tag .seeds-header-bar,
	body.archive .seeds-header-bar,
	body.category .elementor-widget-shortcode .seeds-header-bar,
	body.tag .elementor-widget-shortcode .seeds-header-bar,
	body.archive .elementor-widget-shortcode .seeds-header-bar {
		max-width: 100% !important;
		padding-left: 10px;
		padding-right: 10px;
	}
}
