/**
 * Archives, search results and 404 (archive.php, search.php, 404.php,
 * template-parts/archive/*, content-none-404.php).
 *
 * Grey page, white boxes, entries with featured image / title / meta /
 * excerpt / "Read More", empty sidebar column (30%) on wide screens.
 * LTR and RTL in one file (logical properties).
 */

:root {
	--gloorst-fb-link: #0170b9;
	--gloorst-fb-dark: #3a3a3a;
	--gloorst-fb-gold: #edb230;
	--gloorst-fb-border: #ddd;
	--gloorst-fb-page: #f5f5f5;
}

body.gloorst-layout-boxed {
	background-color: var(--gloorst-fb-page);
}

/* Skip link / screen reader text when focused. */
.screen-reader-text:focus {
	top: 5px;
	left: 5px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	border-radius: 2px;
	background-color: #f1f1f1;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	font-size: 0.875rem;
	line-height: normal;
	text-decoration: none;
}

.rtl .screen-reader-text:focus {
	right: 5px;
	left: auto;
}

/* Container: primary column + sidebar column. */
.gloorst-archive,
.gloorst-404 {
	max-width: 100%;
	margin-inline: auto;
	padding-inline: 20px;
}

.gloorst-archive .gloorst-archive__primary,
.gloorst-404 .gloorst-404__primary {
	width: 100%;
	margin: 0;
	padding: 4em 0;
}

.gloorst-archive .gloorst-archive__sidebar {
	width: 100%;
	margin: 4em 0 2.5em;
	font-size: 1rem;
	line-height: 2;
	word-break: break-word;
}

/* Title box. */
.gloorst-archive .gloorst-archive__header {
	margin: 0;
	background-color: #fff;
}

.gloorst-archive.gloorst-search .gloorst-archive__header,
body.archive:not(.post-type-archive-course):not(.tax-course_cat) .gloorst-archive .gloorst-archive__header {
	width: 100%;
	max-width: 1200px;
	padding: 3em;
	text-align: start;
}

.gloorst-archive .gloorst-archive__title {
	margin: 0 0 4px;
	font-size: 2.85714rem;
	font-weight: 300;
	line-height: 1.4em;
	color: var(--gloorst-fb-gold);
}

body.archive:not(.post-type-archive-course):not(.tax-course_cat) .gloorst-archive .gloorst-archive__title {
	font-size: 2.6666666666667rem;
}

.gloorst-archive .gloorst-archive__description p {
	margin-bottom: 0;
	font-size: 1.42857rem;
	font-weight: 300;
	line-height: 1.65;
}

/* Entries. */
.gloorst-archive-entry {
	position: relative;
	width: 100%;
	min-height: 1px;
	margin: 0;
	padding: 5.34em 6.67em;
	border-bottom: 1px solid var(--gloorst-fb-border);
	background-color: #fff;
}

.gloorst-archive-entry:last-child {
	border-bottom: 0;
}

.gloorst-archive-entry .gloorst-archive-entry__inner {
	display: inline-block;
	width: 100%;
	vertical-align: middle;
	overflow-wrap: break-word;
}

.archive .gloorst-archive-entry .gloorst-archive-entry__inner {
	overflow: hidden;
}

.gloorst-archive-entry .gloorst-archive-entry__body,
.gloorst-archive-entry .gloorst-archive-entry__thumb-inner {
	position: relative;
	min-height: 1px;
}

.gloorst-archive-entry .gloorst-archive-entry__thumb {
	position: relative;
	margin-bottom: 1.5em;
}

.gloorst-archive-entry .gloorst-archive-entry__thumb img {
	display: block;
	max-width: 100%;
	height: auto;
}

.gloorst-archive-entry .gloorst-archive-entry__inner--no-thumb .gloorst-archive-entry__thumb {
	margin-bottom: 0;
}

.gloorst-archive-entry .gloorst-archive-entry__title {
	margin: 0 0 0.2em;
	font-size: 1.7333333333333rem;
	font-weight: normal;
	line-height: 1.3;
	color: var(--gloorst-fb-gold);
}

.gloorst-archive-entry .gloorst-archive-entry__title a,
.gloorst-archive-entry .gloorst-archive-entry__title a:hover,
.gloorst-archive-entry .gloorst-archive-entry__title a:focus {
	font-weight: normal;
	color: var(--gloorst-fb-dark);
}

.gloorst-archive-entry .gloorst-archive-entry__header {
	margin-bottom: 1.2em;
	word-wrap: break-word;
}

.gloorst-search .gloorst-archive-entry__header {
	margin-bottom: 1em;
}

.gloorst-archive-entry__meta,
.gloorst-archive-entry__meta * {
	line-height: 1.45;
	color: var(--gloorst-fb-link);
}

.gloorst-archive-entry__meta a:hover,
.gloorst-archive-entry__meta a:hover *,
.gloorst-archive-entry__meta a:focus,
.gloorst-archive-entry__meta a:focus * {
	color: var(--gloorst-fb-dark);
}

.gloorst-archive-entry .gloorst-archive-entry__excerpt > p:last-child {
	margin-bottom: 0;
}

.gloorst-archive-entry .gloorst-archive-entry__more {
	display: block;
	margin: 1.5em 0 0.8em;
}

.gloorst-archive-entry .gloorst-archive-entry__more a {
	display: inline-block;
}

/* No results. */
.gloorst-archive .gloorst-archive__none {
	background-color: #fff;
}

.gloorst-archive .gloorst-archive__none > :last-child {
	margin-bottom: 0;
}

.gloorst-search .gloorst-archive__primary .gloorst-search-form {
	margin-bottom: 3em;
}

.gloorst-archive__none .gloorst-search-form__icon-button {
	display: none;
}

/* Search form (generic parts). */
.gloorst-search-form .gloorst-search-form__field,
.gloorst-search-form .gloorst-search-form__field:focus {
	outline: 0;
}

.gloorst-search-form input[type="search"] {
	background: #fafafa;
}

.gloorst-search-form .gloorst-search-form__icon svg {
	width: 0.9em;
	height: 1em;
	margin-top: 3px;
	margin-inline-end: 2px;
	fill: currentColor;
}

/* Pagination (WordPress core markup). */
.gloorst-archive__pagination {
	display: inline-block;
	width: 100%;
	padding-top: 2em;
	text-align: center;
}

.gloorst-archive__pagination .nav-links {
	display: inline-block;
	width: 100%;
}

.gloorst-archive__pagination .page-numbers {
	display: inline-block;
	width: 2.33333em;
	height: 2.33333em;
	font-size: 1.06666rem;
	font-weight: 500;
	line-height: calc(2.33333em - 3px);
}

.gloorst-archive__pagination .page-numbers.current {
	border-color: var(--gloorst-fb-link);
	background-color: var(--gloorst-fb-link);
	color: #fff;
}

.gloorst-archive__pagination a {
	color: var(--gloorst-fb-link);
}

.gloorst-archive__pagination a:hover,
.gloorst-archive__pagination a:focus {
	color: var(--gloorst-fb-dark);
}

.gloorst-archive__pagination .next.page-numbers {
	display: inline-block;
	float: right;
	width: auto;
	height: 2.33333em;
	padding: 0 1.5em;
	line-height: calc(2.33333em - 3px);
}

.rtl .gloorst-archive__pagination .next.page-numbers {
	float: none;
}

/* 404. */
.gloorst-404 .gloorst-404__box {
	padding: 5.34em 6.67em;
	background-color: #fff;
	text-align: center;
}

.gloorst-404 .gloorst-404__title {
	margin: 0 0 1.5rem;
	font-weight: 400;
	color: var(--gloorst-fb-gold);
}

.gloorst-404 .gloorst-404__subtitle {
	font-size: 1.5rem;
	font-weight: 700;
}

.gloorst-404 .gloorst-404__search {
	max-width: 370px;
	margin: 1.5em auto 0;
	padding-top: 0.5em;
}

.gloorst-404 .gloorst-search-form {
	position: relative;
	padding: 0;
	background: initial;
	color: inherit;
}

.gloorst-404 .gloorst-search-form__label {
	position: relative;
}

.gloorst-404 .gloorst-search-form__icon {
	color: var(--gloorst-fb-dark);
}

.gloorst-404 .gloorst-search-form__icon-button {
	position: absolute;
	top: 0;
	inset-inline-end: 15px;
	padding: 0;
	border: none;
	background: 0 0;
	cursor: pointer;
}

.gloorst-404 .gloorst-search-form .gloorst-search-form__submit,
.gloorst-404 .gloorst-search-form .gloorst-search-form__submit:focus,
.gloorst-404 .gloorst-search-form .gloorst-search-form__submit:hover {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	z-index: 2;
	max-width: 45px;
	padding: 13px 20px;
	border: none;
	border-radius: 2px;
	background: 0 0;
	color: transparent;
}

.gloorst-404 .gloorst-search-form .gloorst-search-form__field,
.gloorst-404 .gloorst-search-form .gloorst-search-form__field:focus {
	width: 100%;
	padding-block: 12px;
	padding-inline: 15px 45px;
	border-width: 1px;
	border-color: var(--gloorst-fb-border);
	border-radius: 2px;
	background: #fafafa;
}

/* Responsive. */
@media (min-width: 922px) {
	.gloorst-archive,
	.gloorst-404 {
		display: flex;
		max-width: 1240px;
	}

	.gloorst-layout-sidebar .gloorst-archive .gloorst-archive__primary {
		width: 70%;
	}

	.gloorst-archive .gloorst-archive__sidebar {
		width: 30%;
		margin-inline: auto;
	}

	.search-no-results .gloorst-archive .gloorst-archive__primary,
	.gloorst-404 .gloorst-404__primary {
		margin-bottom: 4em;
	}
}

@media (min-width: 993px) {
	.gloorst-archive .gloorst-archive__primary,
	.gloorst-404 .gloorst-404__primary {
		margin: 4em 0;
		padding: 0;
	}

	.gloorst-archive .gloorst-archive__sidebar {
		padding-inline-start: 60px;
	}

	.rtl .gloorst-archive__pagination {
		padding-inline: 3.33333em;
	}

	.rtl .gloorst-archive__pagination .next.page-numbers {
		float: left;
		text-align: left;
	}
}

@media (min-width: 1201px) {
	.gloorst-archive .gloorst-archive__header {
		padding: 5em 6.67em 3.33333em;
	}

	.gloorst-archive .gloorst-archive__none {
		padding: 5.34em 6.67em;
	}
}

@media (max-width: 1200px) {
	.gloorst-archive .gloorst-archive__header {
		padding: 3.34em 2.4em;
	}

	.gloorst-archive-entry,
	.gloorst-archive .gloorst-archive__none,
	.gloorst-404 .gloorst-404__box {
		padding: 3.34em 2.4em;
	}
}

@media (max-width: 993px) {
	.gloorst-archive .gloorst-archive__sidebar {
		padding-inline-start: 30px;
	}
}

@media (max-width: 992px) {
	.gloorst-archive .gloorst-archive__header {
		padding: 2.14em;
	}
}

@media (max-width: 921px) {
	.gloorst-archive,
	.gloorst-404 {
		flex-direction: column;
	}

	.gloorst-search .gloorst-archive__primary,
	.gloorst-404 .gloorst-404__primary {
		margin: 0;
		padding: 1.5em 0;
	}

	.gloorst-archive .gloorst-archive__sidebar {
		padding-inline: 1em;
	}

	.gloorst-search .gloorst-archive__sidebar {
		margin: 0;
		padding-block: 1.5em;
	}

	.gloorst-archive .gloorst-archive__sidebar {
		padding-top: 0;
	}

	.gloorst-archive-entry {
		padding: 1.5em 2.14em;
	}
}

@media (max-width: 768px) {
	.gloorst-archive .gloorst-archive__none,
	.gloorst-404 .gloorst-404__box {
		padding: 1.5em 2.14em;
	}

	.gloorst-archive-entry .gloorst-archive-entry__header {
		margin-bottom: 1em;
	}
}

@media (max-width: 544px) {
	.gloorst-archive,
	.gloorst-404 {
		padding-inline: 0.54em;
	}

	.gloorst-archive .gloorst-archive__header,
	.gloorst-archive-entry,
	.gloorst-archive .gloorst-archive__none,
	.gloorst-404 .gloorst-404__box {
		padding: 1.5em 1em;
	}
}

@media (max-width: 544px) {
	.gloorst-archive__pagination .next:focus {
		width: 100% !important;
	}
}

@media (max-width: 420px) {
	.gloorst-archive__pagination .next.page-numbers {
		width: 100%;
		margin: 0;
		text-align: center;
	}
}
