.rba-archive {
	--rba-blue: #0a4f86;
	--rba-blue-soft: #738da5;
	--rba-text: #252525;
	--rba-muted: #777;
	--rba-line: #dedede;
	--rba-surface: #f1f1f1;
	--rba-white: #fff;
}

.rba-archive,
.rba-archive * {
	box-sizing: border-box;
}

.rba-archive {
	width: 100%;
	color: var(--rba-text);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.8;
}

.rba-archive a {
	color: inherit;
	text-decoration: none;
}

.rba-hero {
	/*display: flex;*/
	display:none!important;
	align-items: center;
	justify-content: center;
	width: 100vw;
	min-height: 128px;
	margin: 0 calc(50% - 50vw) 24px;
	padding: 28px 20px;
	background: #f2f2f2;
}

.rba-hero__title {
	margin: 0;
	color: #282828;
	font: inherit;
	font-size: clamp(26px, 2.5vw, 36px);
	font-weight: 800;
	line-height: 1.35;
}

.rba-shell {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    grid-template-areas: "sidebar main";
    gap: clamp(34px, 5vw, 72px);
    width: 100%;
    margin: 0 auto;
    padding: 0 0 90px;
    padding-inline: var(--space-8);
    margin-top: 48px;
}

.rba-main {
	grid-area: main;
	min-width: 0;
	position: relative;
}

.rba-toolbar {
	display: block;
}

.rba-sidebar {
	grid-area: sidebar;
	min-width: 0;
	padding: 68px 20px 0 0;
	border-right: 1px solid var(--rba-line);
}

.rba-sidebar-toggle,
.rba-sidebar__mobile-header,
.rba-sidebar-backdrop {
	display: none;
}

.rba-archive--no-sidebar .rba-shell {
	display: block;
	max-width: 1120px;
}

.rba-filter {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 50px;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ececec;
	overflow: hidden;
}

.rba-filter__label {
	flex: 0 0 auto;
	color: var(--rba-blue);
	font-weight: 700;
	
}

.rba-filter__items {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-bottom: var(--space-4);
}

.rba-filter__button {
	flex: 0 0 auto;
	min-height: 32px;
	margin: 0;
	padding: 4px 13px;
	border: 1px solid #d8dfe5;
	border-radius: 2px;
	background: var(--rba-white);
	color: #56616a;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.rba-filter__button:hover,
.rba-filter__button:focus-visible,
.rba-filter__button.is-active {
	border-color: var(--rba-blue-soft);
	background: var(--rba-blue-soft);
	color: var(--rba-white);
	outline: none;
}

.rba-results {
	position: relative;
	min-height: 220px;
	transition: opacity .2s ease;
}

.rba-archive.is-loading .rba-results {
	opacity: .48;
	pointer-events: none;
}

.rba-archive.is-loading .rba-results::after {
	position: absolute;
	top: 90px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border: 3px solid #dce4ea;
	border-top-color: var(--rba-blue);
	border-radius: 50%;
	content: "";
	animation: rba-spin .7s linear infinite;
}

@keyframes rba-spin {
	to { transform: rotate(360deg); }
}

.rba-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 36px;
}

.rba-card {
	min-width: 0;
	margin: 0;
	border: 1px solid #ebebeb;
	background: var(--rba-white);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.rba-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgb(11 48 78 / 10%);
}

.rba-card__media {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	background: #f4f4f4;
	overflow: hidden;
}

.rba-card__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform .45s ease;
}

.rba-card:hover .rba-card__image {
	transform: scale(1.035);
}

.rba-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #c6c6c6;
}

.rba-card__placeholder svg {
	width: 58px;
	height: 58px;
	fill: currentColor;
}

.rba-card__body {
	min-height: 80px;
	padding: 9px 14px 13px;
	background: var(--rba-surface);
}

.rba-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 2px;
	color: #737373;
	font-size: 10px;
	line-height: 1.7;
}

.rba-card__category {
	color: var(--rba-blue);
}

.rba-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #252525;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.8;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rba-card__title a:hover,
.rba-card__title a:focus-visible {
	color: var(--rba-blue);
}

.rba-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 38px;
}

.rba-pagination a,
.rba-pagination span {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 7px;
	border: 1px solid #dfe3e6;
	background: var(--rba-white);
	color: #4d5860;
	font-size: 12px;
}

.rba-pagination a:hover,
.rba-pagination a:focus-visible,
.rba-pagination a.is-current {
	border-color: var(--rba-blue-soft);
	background: var(--rba-blue-soft);
	color: var(--rba-white);
	outline: none;
}

.rba-pagination span {
	border-color: transparent;
}

.rba-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	padding: 35px;
	border: 1px solid #ededed;
	background: #fafafa;
	color: #5f6870;
	text-align: center;
}

.rba-empty__icon {
	color: var(--rba-blue-soft);
	font-size: 40px;
}

.rba-empty p {
	margin: 5px 0 0;
}

.rba-widget {
	margin: 0 0 28px;
	padding: 0 0 25px;
	border-bottom: 1px solid var(--rba-line);
}

.rba-widget:last-child {
	border-bottom: 0;
}

.rba-widget__title,
.rba-sidebar .widget-title,
.rba-sidebar h2 {
	margin: 0 0 14px;
	color: var(--rba-blue-soft);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
}

.rba-sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rba-sidebar li {
	margin: 0;
	padding: 1px 0;
	font-size: 13px;
	line-height: 1.8;
}

.rba-sidebar li a {
	display: inline-block;
	color: #202020;
}

.rba-sidebar li a:hover,
.rba-sidebar li a:focus-visible,
.rba-sidebar .current-cat > a {
	color: var(--rba-blue);
}

.rba-sidebar ul.children {
	margin: 4px 13px 4px 0;
	padding-right: 9px;
	border-right: 1px solid #e3e3e3;
}

.rba-search,
.rba-sidebar .wp-block-search__inside-wrapper,
.rba-sidebar .search-form {
	display: flex;
	width: 100%;
	height: 48px;
	margin: 0;
	direction: rtl;
}

.rba-search input,
.rba-sidebar input[type="search"] {
	min-width: 0;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 8px 15px;
	border: 1px solid #aab3bb;
	border-left: 0;
	border-radius: 0;
	background: var(--rba-white);
	box-shadow: none;
	color: #333;
	font: inherit;
	font-size: 12px;
	outline: none;
}

.rba-search input:focus,
.rba-sidebar input[type="search"]:focus {
	border-color: var(--rba-blue-soft);
}

.rba-search button,
.rba-sidebar button[type="submit"],
.rba-sidebar .wp-block-search__button {
	display: grid;
	flex: 0 0 48px;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--rba-blue-soft);
	border-radius: 0;
	background: var(--rba-blue-soft);
	color: var(--rba-white);
	cursor: pointer;
}

.rba-search button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.rba-widget--search {
	padding-bottom: 0;
	border-bottom: 0;
}

.rba-widget--recent li {
	font-weight: 600;
}

.rba-sidebar .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1120px) {
	.rba-shell {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 36px;
	}

	.rba-grid {
		gap: 25px;
	}
}

@media (max-width: 900px) {
	.rba-shell {
		grid-template-columns: 1fr;
		grid-template-areas: "main";
		gap: 0;
		width: min(100% - 36px, 760px);
	}

	.rba-toolbar {
		display: flex;
	align-items: center;
		gap: 10px;
		margin-bottom: 18px;
	}

	.rba-toolbar .rba-filter {
		flex: 1 1 auto;
		min-width: 0;
		margin-bottom: 0;
	}

	.rba-sidebar-toggle {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		gap: 7px;
		min-height: 40px;
		margin: 5px 0 0;
		padding: 7px 12px;
		border: 1px solid var(--rba-blue-soft);
		border-radius: 2px;
		background: var(--rba-blue-soft);
		color: var(--rba-white);
		font: inherit;
		font-size: 12px;
		font-weight: 700;
		line-height: 1;
		cursor: pointer;
	}

	.rba-sidebar-toggle:hover,
	.rba-sidebar-toggle:focus-visible {
		border-color: var(--rba-blue);
		background: var(--rba-blue);
		outline: none;
		
	}

	.rba-sidebar-toggle svg {
		width: 19px;
		height: 19px;
		fill: none;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-width: 1.8;
	}

	.rba-sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		right: 0;
		z-index: 99999;
		width: min(340px, 88vw);
		height: 100vh;
		height: 100dvh;
		padding: 20px;
		overflow-x: hidden;
		overflow-y: auto;
		border: 0;
		background: var(--rba-white);
		box-shadow: 14px 0 38px rgb(12 35 52 / 18%);
		transform: translateX(105%);
		visibility: hidden;
		transition: transform .28s ease, visibility .28s ease;
		overscroll-behavior: contain;
	}

	.rba-archive.is-sidebar-open .rba-sidebar {
		transform: translateX(0);
		visibility: visible;
	}

	.rba-sidebar__mobile-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin: 0 0 22px;
		padding: 0 0 14px;
		border-bottom: 1px solid var(--rba-line);
		color: var(--rba-blue);
		font-size: 15px;
	}

	.rba-sidebar__close {
		display: grid;
		flex: 0 0 38px;
		place-items: center;
		width: 38px;
		height: 38px;
		margin: 0;
		padding: 0;
		border: 1px solid #dbe1e5;
		border-radius: 50%;
		background: #f6f7f8;
		color: #34444f;
		cursor: pointer;
	}

	.rba-sidebar__close:hover,
	.rba-sidebar__close:focus-visible {
		border-color: var(--rba-blue-soft);
		color: var(--rba-blue);
		outline: none;
	}

	.rba-sidebar__close svg {
		width: 20px;
		height: 20px;
		fill: none;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-width: 1.8;
	}

	.rba-sidebar-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99998;
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		background: rgb(18 29 38 / 48%);
		opacity: 0;
		visibility: hidden;
		cursor: default;
		transition: opacity .28s ease, visibility .28s ease;
	}

	.rba-archive.is-sidebar-open .rba-sidebar-backdrop {
		opacity: 1;
		visibility: visible;
	}

	body.rba-offcanvas-open {
		overflow: hidden;
	}

	.rba-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 783px) and (max-width: 900px) {
	body.admin-bar .rba-sidebar {
		top: 32px;
		height: calc(100vh - 32px);
	}
}

@media (max-width: 782px) {
	body.admin-bar .rba-sidebar {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

@media (max-width: 560px) {
	.rba-hero {
		min-height: 92px;
		margin-bottom: 20px;
	}

	.rba-shell {
		width: min(100% - 28px, 430px);
		padding-bottom: 55px;
	}

	.rba-filter {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.rba-sidebar-toggle {
		min-width: 42px;
		padding-inline: 10px;
		margin-top: 25px;
	}

	.rba-sidebar-toggle span {
		display: none;
	}

	.rba-filter__items {
		width: 100%;
	}

	.rba-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.rba-card__media {
		aspect-ratio: 5 / 4;
	}

	.rba-card__body {
		min-height: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rba-card,
	.rba-card__image,
	.rba-results,
	.rba-sidebar,
	.rba-sidebar-backdrop {
		transition: none;
	}
}
