/*!
 * Thames College – All Courses directory
 * Figma: Thames Collage Web Sections › All Courses (1920px desktop frame)
 * Tablet / mobile are derived from the same spacing + type system.
 *
 * Every selector is prefixed .tc- and scoped under .tc-cd so it cannot leak into the theme,
 * and the theme / WPLMS / BuddyPress rules cannot leak in (explicit resets below).
 *
 * @author Shoive Hossain
 */

/* ------------------------------------------------------------------ */
.tc-cd {
	--tc-navy: #182e5b;
	--tc-ink: #2b354e;
	--tc-muted: #6c778a;
	--tc-faint: #9aa1ae;
	--tc-orange: #ff7a00;
	--tc-soft: #f0f5ff;
	--tc-cream: #fef6e9;
	--tc-line: #dcdcdc;
	--tc-card-line: #d9d9d9;
	--tc-star: #f5b800;
	--tc-w: 1210px;
	--tc-gut: 24px;

	display: block;
	margin: 0;
	padding: 0;
	background: #fff;
	color: var(--tc-ink);
	font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
}

.tc-cd *,
.tc-cd *::before,
.tc-cd *::after {
	box-sizing: border-box;
}

/* Reset what the WPLMS / BuddyPress / Elementor globals set on bare elements. */
.tc-cd :where(ul, ol, li) {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	border: 0;
}

.tc-cd :where(p, h1, h3) {
	margin: 0;
	padding: 0;
	font-family: inherit;
	text-transform: none;
	color: inherit;
}

.tc-cd :where(a) {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.tc-cd :where(button, input) {
	font-family: inherit;
	letter-spacing: inherit;
	text-transform: none;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.tc-cd :where(button) {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
}

.tc-cd :where(img) {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
	box-shadow: none;
}

.tc-cd :where(svg) {
	display: block;
	flex: none;
}

.tc-cd [hidden] {
	display: none !important;
}

.tc-cd :focus {
	outline: 0;
}

.tc-cd :focus-visible {
	outline: 2px solid #1b6ef3;
	outline-offset: 2px;
}

.tc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.tc-wrap {
	width: 100%;
	max-width: calc(var(--tc-w) + 2 * var(--tc-gut));
	margin: 0 auto;
	padding-left: var(--tc-gut);
	padding-right: var(--tc-gut);
}

/* ------------------------------------------------------------------- hero */
.tc-hero {
	background: var(--tc-cream);
	min-height: 356px;
}

.tc-hero__in {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	padding-top: 32px;
	padding-bottom: 32px;
}

.tc-hero__main {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 812px;
}

.tc-cd .tc-hero__title {
	font-size: 42px;
	font-weight: 800;
	line-height: 57px;
	letter-spacing: 0.02em;
	color: var(--tc-ink);
}

.tc-hero__desc {
	max-width: 812px;
	margin-top: 10px;
	font-size: 18px;
	line-height: 31px;
	color: var(--tc-ink);
}

.tc-hero__desc p + p {
	margin-top: 8px;
}

.tc-hero__found {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 21px;
	min-height: 44px;
	font-size: 18px;
	line-height: 31px;
	color: var(--tc-ink);
}

.tc-hero__foundico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 44px;
	border-radius: 6px;
	background: #fff;
	color: var(--tc-orange);
	box-shadow: 0 1px 4px rgba(24, 46, 91, 0.08);
}

.tc-hero__foundico svg {
	width: 26px;
	height: 26px;
}

.tc-badges {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 21px;
	padding: 11px 12px;
	border-radius: 4px;
	background: var(--tc-navy);
	color: #fff;
	font-size: 15px;
	line-height: 26px;
}

.tc-badges__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.tc-badges__item + .tc-badges__item {
	margin-left: 8px;
	padding-left: 8px;
	border-left: 1px solid rgba(255, 255, 255, 0.6);
}

/* Trust card */
.tc-trust {
	flex: none;
	width: 290px;
	min-height: 289px;
	margin-top: 1px;
	padding: 19px 22px;
	border-radius: 16px;
	background: #fff;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--tc-ink);
}

.tc-trust__heading {
	font-size: 18px;
	font-weight: 600;
	line-height: 30px;
}

.tc-cd .tc-trust__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.tc-trust__brand {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	margin-top: 33px;
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: #191919;
	white-space: nowrap;
}

.tc-trust__brand img {
	width: auto;
	height: 44px;
}

.tc-trust__brand svg {
	width: 46px;
	height: 46px;
}

.tc-trust__stars {
	display: flex;
	gap: 7px;
	margin-top: 16px;
}

.tc-trust__sq {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: linear-gradient(90deg, #00b67a var(--f, 100%), #dcdce6 var(--f, 100%));
}

.tc-trust__rating {
	margin-top: 22px;
	font-size: 18px;
	line-height: 30px;
	color: var(--tc-muted);
}

.tc-trust__rating strong {
	font-weight: 700;
	color: var(--tc-ink);
}

.tc-trust__reviews {
	margin-top: 4px;
	font-size: 18px;
	font-weight: 500;
	line-height: 30px;
}

/* ------------------------------------------------------------------- body */
.tc-body {
	display: grid;
	grid-template-columns: 278px minmax(0, 1fr);
	grid-template-areas:
		"side main"
		"wid  main";
	grid-template-rows: auto 1fr;
	column-gap: 30px;
	padding-top: 60px;
	padding-bottom: 100px;
	align-items: start;
}

.tc-side {
	grid-area: side;
	min-width: 0;
}

.tc-main {
	grid-area: main;
	min-width: 0;
}

.tc-widgets {
	grid-area: wid;
	min-width: 0;
	margin-top: 30px;
}

.tc-widgets .widget {
	margin: 0 0 20px;
	max-width: 100%;
}

.tc-widgets iframe,
.tc-widgets img {
	max-width: 100%;
}

/* Sidebar */
.tc-cd .tc-side__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 46px;
	padding: 10px 12px;
	border-radius: 4px 4px 0 0;
	background: var(--tc-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	text-align: left;
	cursor: default;
}

.tc-side__head svg {
	display: none;
	transition: transform 0.2s ease;
}

.tc-cats {
	max-height: 495px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--tc-line);
	border-top: 0;
	border-radius: 0 0 4px 4px;
	background: #fff;
	scrollbar-width: thin;
	scrollbar-color: var(--tc-navy) #e8edf5;
}

.tc-cats::-webkit-scrollbar {
	width: 6px;
}

.tc-cats::-webkit-scrollbar-track {
	margin: 6px 0;
	border-radius: 3px;
	background: #e8edf5;
}

.tc-cats::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: var(--tc-navy);
}

.tc-cats__list {
	padding: 4px 0;
}

.tc-cd .tc-cats__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 50px;
	padding: 6px 20px 6px 18px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--tc-ink);
	transition: background-color 0.15s ease;
}

.tc-cd .tc-cats__link:hover {
	background: var(--tc-soft);
}

.tc-cats__count {
	flex: none;
	color: var(--tc-ink);
}

.tc-cats__item.is-active > .tc-cats__link {
	background: var(--tc-soft);
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--tc-navy);
}

.tc-cats__children .tc-cats__link {
	padding-left: 34px;
	font-size: 13px;
}

/* Tiles */
.tc-tiles {
	display: flex;
	justify-content: flex-start;
	gap: 27px;
	margin: -12px 0 0;
	padding: 12px 0 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tc-tiles::-webkit-scrollbar {
	display: none;
}

.tc-tiles__li {
	flex: none;
}

.tc-cd .tc-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-height: 104px;
	padding: 16px 18px;
	border: 1px solid var(--tc-line);
	border-radius: 10px;
	background: #fff;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tc-cd .tc-tile:hover,
.tc-cd .tc-tile.is-active {
	border-color: var(--tc-navy);
}

.tc-cd .tc-tile.is-active {
	box-shadow: 0 0 0 1px var(--tc-navy);
}

.tc-tile__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 6px;
	background: var(--tc-soft);
	color: var(--tc-orange);
}

.tc-tile__label {
	font-size: 15px;
	font-weight: 700;
	line-height: 24px;
	white-space: nowrap;
	color: var(--tc-ink);
}

.tc-tile__badge {
	position: absolute;
	top: -12px;
	right: 37px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--tc-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Search + sort */
.tc-bar {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 20px;
}

.tc-search {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 24px;
	min-width: 0;
	height: 50px;
	padding: 0 20px;
	border: 1px solid var(--tc-line);
	border-radius: 5px;
	background: #fff;
}

.tc-search:focus-within {
	border-color: var(--tc-navy);
}

.tc-cd .tc-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 16px;
	line-height: 1.5;
	color: var(--tc-ink);
}

.tc-cd .tc-search__input::placeholder {
	color: var(--tc-faint);
	opacity: 1;
}

.tc-cd .tc-search__input:focus-visible {
	outline: 0;
}

.tc-cd .tc-search__input::-webkit-search-cancel-button,
.tc-cd .tc-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.tc-cd .tc-search__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--tc-navy);
}

.tc-sort {
	position: relative;
	flex: none;
}

.tc-cd .tc-sort__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	height: 50px;
	min-width: 193px;
	padding: 12px 20px;
	border-radius: 5px;
	background: var(--tc-navy);
	color: #fff;
	font-size: 16px;
	line-height: 26px;
	white-space: nowrap;
}

.tc-sort__list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	right: 0;
	min-width: 100%;
	padding: 6px;
	border: 1px solid var(--tc-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(24, 46, 91, 0.16);
}

.tc-sort__list li {
	padding: 9px 12px;
	border-radius: 5px;
	font-size: 15px;
	line-height: 1.4;
	white-space: nowrap;
	cursor: pointer;
}

.tc-sort__list li:hover,
.tc-sort__list li:focus {
	background: var(--tc-soft);
	outline: 0;
}

.tc-sort__list li[aria-selected="true"] {
	font-weight: 700;
	color: var(--tc-navy);
}

/* Count + view switch */
.tc-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
}

.tc-count {
	font-size: 16px;
	line-height: 26px;
	color: var(--tc-faint);
}

.tc-views {
	display: flex;
	flex: none;
	border-radius: 5px;
	overflow: hidden;
	background: var(--tc-soft);
}

.tc-cd .tc-views__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--tc-navy);
}

.tc-cd .tc-views__btn.is-active {
	background: var(--tc-navy);
	color: #fff;
}

/* ------------------------------------------------------------------ cards */
.tc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	margin-top: 36px;
	transition: opacity 0.15s ease;
}

.tc-cd.is-loading .tc-grid {
	opacity: 0.45;
	pointer-events: none;
}

/* Loader: slim progress bar on top of the results + centred spinner (fades in after 150ms so fast/cached responses never flash). */
.tc-cd .tc-main {
	position: relative;
}

.tc-cd.is-loading .tc-main::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99998;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, transparent 0, var(--tc-orange) 40%, var(--tc-orange) 60%, transparent 100%) 0 0 / 40% 100% no-repeat;
	animation: tc-bar 1s ease-in-out infinite;
}

.tc-cd.is-loading .tc-main::after {
	content: "";
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border: 4px solid var(--tc-soft);
	border-top-color: var(--tc-orange);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 18px rgba(24, 46, 91, 0.18);
	opacity: 0;
	animation: tc-spin 0.8s linear infinite, tc-show 0.2s ease 0.15s forwards;
}

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

@keyframes tc-show {
	to {
		opacity: 1;
	}
}

@keyframes tc-bar {
	0% {
		background-position: -40% 0;
	}

	100% {
		background-position: 140% 0;
	}
}

.tc-card {
	min-width: 0;
	container-type: inline-size;
}

.tc-card__in {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 11px;
	border: 1px solid var(--tc-card-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tc-card__in:hover {
	border-color: #c4cbd9;
	box-shadow: 0 6px 30px rgba(24, 46, 91, 0.1);
}

.tc-card__media {
	display: block;
	height: 150px;
	border-radius: 8px;
	overflow: hidden;
	background: #eef2f8;
}

.tc-cd .tc-card__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.tc-card__img--empty {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e5ebf6, #f6f8fc);
}

.tc-card__body {
	flex: 1 1 auto;
	margin-top: 16px;
	min-width: 0;
}

.tc-cd .tc-card__title {
	display: -webkit-box;
	min-height: 56px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	color: var(--tc-ink);
}

.tc-cd .tc-card__title a:hover {
	color: var(--tc-navy);
}

.tc-card__excerpt {
	display: none;
}

.tc-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 16px;
	font-size: 16px;
	line-height: 22px;
	color: var(--tc-muted);
}

.tc-card__students,
.tc-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.tc-card__students svg {
	color: var(--tc-muted);
}

.tc-stars {
	display: inline-block;
	width: 72px;
	height: 14px;
	background: linear-gradient(90deg, var(--tc-star) var(--tc-fill, 0%), #d9d9d9 var(--tc-fill, 0%));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1.8 3.2 6.9 7.5.9-5.5 5.2 1.4 7.4L12 18.4l-6.6 3.8 1.4-7.4L1.3 9.6l7.5-.9L12 1.8Z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1.8 3.2 6.9 7.5.9-5.5 5.2 1.4 7.4L12 18.4l-6.6 3.8 1.4-7.4L1.3 9.6l7.5-.9L12 1.8Z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x;
}

.tc-card__buy {
	margin-top: auto;
	padding-top: 16px;
}

.tc-cd .tc-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 6px;
	min-height: 36px;
	line-height: 1;
}

.tc-price__now {
	font-size: 38px;
	font-weight: 700;
	line-height: 36px;
	letter-spacing: 0;
	color: var(--tc-orange);
}

.tc-price__was {
	font-size: 26px;
	font-weight: 600;
	line-height: 26px;
	color: #d3d3d3;
	text-decoration: line-through;
}

.tc-price__vat {
	font-size: 16px;
	line-height: 16px;
	color: var(--tc-ink);
}

.tc-card__actions {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.tc-cd .tc-btn {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 38px;
	padding: 0 22px;
	border: 0;
	border-radius: 7px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.tc-cd .tc-btn--ghost {
	background: var(--tc-soft);
	color: var(--tc-navy);
}

.tc-cd .tc-btn--ghost:hover {
	background: #e0eaff;
}

.tc-cd .tc-btn--solid {
	background: var(--tc-navy);
	color: #fff;
}

.tc-cd .tc-btn--solid:hover {
	background: #10224a;
}

.tc-cd .tc-btn.is-busy {
	opacity: 0.65;
	pointer-events: none;
}

.tc-cd .tc-btn.is-done {
	background: #0f8a5f;
}

.tc-empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 60px 20px;
	border: 1px dashed var(--tc-line);
	border-radius: 10px;
	text-align: center;
	color: var(--tc-muted);
}

.tc-empty strong {
	font-size: 20px;
	color: var(--tc-ink);
}

.tc-error {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 40px 20px;
	border: 1px solid #f0c4c4;
	border-radius: 10px;
	background: #fff6f6;
	color: #8a1f1f;
}

.tc-error button {
	padding: 6px 14px;
	border-radius: 5px;
	background: var(--tc-navy);
	color: #fff;
	font-weight: 600;
}

/* Narrow cards: scale the price row so "£29.99 £424 ex Vat" stays on one line. */
@container (max-width: 270px) {
	.tc-card__meta {
		font-size: 14px;
	}

	.tc-price__now {
		font-size: 32px;
	}

	.tc-price__was {
		font-size: 22px;
	}

	.tc-price__vat {
		font-size: 14px;
	}
}

/* ------------------------------------------------------------- list view */
.tc-view-list {
	grid-template-columns: 1fr;
	gap: 20px;
}

.tc-view-list .tc-card__in {
	display: grid;
	grid-template-columns: 254px minmax(0, 1fr) 168px;
	column-gap: 16px;
	align-items: start;
	padding: 19px 15px;
}

.tc-view-list .tc-card__media {
	align-self: center;
	height: 149px;
}

.tc-view-list .tc-card__body {
	margin-top: 0;
}

.tc-view-list .tc-card__title {
	display: block;
	min-height: 0;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.tc-view-list .tc-card__excerpt {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-size: 16px;
	line-height: 24px;
	color: var(--tc-muted);
}

.tc-view-list .tc-card__meta {
	justify-content: flex-start;
	gap: 18px;
	margin-top: 12px;
}

.tc-view-list .tc-card__buy {
	margin-top: 0;
	padding-top: 0;
}

.tc-view-list .tc-price__now {
	font-size: 32px;
}

.tc-view-list .tc-price__was {
	font-size: 22px;
}

.tc-view-list .tc-price__vat {
	font-size: 14px;
}

.tc-view-list .tc-card__actions {
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}

.tc-view-list .tc-btn {
	flex: none;
	width: 100%;
}

/* ------------------------------------------------------------- pagination */
.tc-pager {
	margin-top: 45px;
}

.tc-pager__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.tc-cd .tc-pager__btn,
.tc-pager__gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid var(--tc-line);
	border-radius: 5px;
	background: #fff;
	font-size: 14px;
	line-height: 20px;
	color: var(--tc-ink);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tc-pager__gap {
	border-color: transparent;
	background: transparent;
	min-width: 20px;
	padding: 0 2px;
}

.tc-cd a.tc-pager__btn:hover {
	border-color: var(--tc-navy);
}

.tc-cd .tc-pager__btn[aria-current="page"] {
	border-color: var(--tc-navy);
	background: var(--tc-navy);
	color: #fff;
	font-weight: 700;
}

.tc-cd .tc-pager__nav {
	padding: 0 10px;
}

.tc-cd .tc-pager__btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ------------------------------------------------------------ responsive */

/* Small desktop */
@media (max-width: 1199px) {
	.tc-body {
		grid-template-columns: 250px minmax(0, 1fr);
		column-gap: 24px;
	}

	.tc-tiles {
		gap: 14px;
	}

	.tc-bar {
		gap: 16px;
	}

	.tc-grid {
		grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
		gap: 20px;
	}

	.tc-cd .tc-btn {
		padding: 0 12px;
	}

	.tc-view-list .tc-card__in {
		grid-template-columns: 200px minmax(0, 1fr) 160px;
	}

	.tc-view-list .tc-card__media {
		height: 130px;
	}
}

/* Tablet and below: categories collapse above the results */
@media (max-width: 1023px) {
	.tc-hero {
		min-height: 0;
	}

	.tc-hero__in {
		flex-direction: column;
		gap: 24px;
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.tc-cd .tc-hero__title {
		font-size: 36px;
		line-height: 1.25;
	}

	.tc-trust {
		width: 100%;
		max-width: 340px;
		min-height: 0;
		margin-top: 0;
	}

	.tc-body {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"side"
			"main"
			"wid";
		grid-template-rows: auto;
		padding-top: 32px;
		padding-bottom: 60px;
	}

	.tc-cd .tc-side__head {
		border-radius: 4px;
		cursor: pointer;
	}

	.tc-side__head svg {
		display: block;
	}

	.tc-side__head[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	.tc-side__head[aria-expanded="true"] {
		border-radius: 4px 4px 0 0;
	}

	.tc-cats {
		max-height: 340px;
	}

	.tc-cats[hidden] {
		display: none;
	}

	.tc-main {
		margin-top: 28px;
	}

	.tc-widgets {
		margin-top: 40px;
	}

	.tc-meta {
		margin-top: 16px;
	}
}

/* Large phones / small tablets */
@media (max-width: 767px) {
	.tc-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.tc-search {
		flex: none;
	}

	.tc-cd .tc-sort__btn {
		width: 100%;
	}

	.tc-sort__list {
		left: 0;
		right: 0;
	}

	/* A single wide list row does not fit: show the card layout instead. */
	.tc-views {
		display: none;
	}

	.tc-view-list {
		grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
		gap: 20px;
	}

	.tc-view-list .tc-card__in {
		display: flex;
		padding: 11px;
	}

	.tc-view-list .tc-card__media {
		height: 150px;
	}

	.tc-view-list .tc-card__body {
		margin-top: 16px;
	}

	.tc-view-list .tc-card__title {
		display: -webkit-box;
		min-height: 56px;
		white-space: normal;
	}

	.tc-view-list .tc-card__excerpt {
		display: none;
	}

	.tc-view-list .tc-card__meta {
		justify-content: space-between;
		margin-top: 16px;
	}

	.tc-view-list .tc-card__buy {
		margin-top: auto;
		padding-top: 16px;
	}

	.tc-view-list .tc-price__now {
		font-size: 38px;
	}

	.tc-view-list .tc-price__was {
		font-size: 26px;
	}

	.tc-view-list .tc-price__vat {
		font-size: 16px;
	}

	.tc-view-list .tc-card__actions {
		flex-direction: row;
		gap: 12px;
		margin-top: 16px;
	}

	.tc-view-list .tc-btn {
		flex: 1 1 auto;
		width: auto;
	}
}

/* Phones */
@media (max-width: 560px) {
	.tc-cd {
		--tc-gut: 16px;
	}

	.tc-hero__in {
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.tc-cd .tc-hero__title {
		font-size: 28px;
	}

	.tc-hero__desc,
	.tc-hero__found {
		font-size: 16px;
		line-height: 26px;
	}

	.tc-hero__foundico {
		width: 40px;
		height: 40px;
	}

	.tc-badges {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px 8px;
		width: 100%;
		padding: 12px;
		font-size: 14px;
	}

	.tc-badges__item {
		white-space: normal;
	}

	.tc-badges__item + .tc-badges__item {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.tc-trust {
		max-width: none;
	}

	.tc-grid,
	.tc-view-list {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 24px;
	}

	.tc-card__media,
	.tc-view-list .tc-card__media {
		height: 0;
		padding-top: 56.25%;
		position: relative;
	}

	.tc-cd .tc-card__img,
	.tc-card__img--empty {
		position: absolute;
		inset: 0;
	}

	.tc-tile__label {
		font-size: 14px;
	}

	.tc-cd .tc-tile {
		padding: 14px 14px;
	}

	.tc-pager {
		margin-top: 32px;
	}

	.tc-pager__list {
		gap: 4px;
	}

	.tc-cd .tc-pager__btn {
		min-width: 34px;
		height: 36px;
	}

	.tc-pager__nav span {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-cd *,
	.tc-cd *::before,
	.tc-cd *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-cd.is-loading .tc-main::after {
		opacity: 1;
		border-top-color: var(--tc-orange);
		border-right-color: var(--tc-orange);
	}
}
