/* صفحه‌ی اصلی، دسته، جستجو، صفحات اعتماد و ۴۰۴ — فقط توکن‌های --tb-* */

.tb-home-page .tb-main,
.tb-catalog,
.tb-search-page,
.tb-trust-page,
.tb-404 {
	padding-block: var(--tb-space-3) var(--tb-space-6);
}

/* ---------- Home ---------- */

.tb-home-hero {
	background: var(--tb-color-surface);
	border-bottom: 1px solid var(--tb-color-line);
}

.tb-home-hero__inner {
	max-width: 760px;
	margin-inline: auto;
	padding: var(--tb-space-1) var(--tb-space-2) var(--tb-space-3);
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-home-hero__title {
	margin: 0;
	text-align: center;
	font-size: 22px;
	font-weight: var(--tb-fw-extrabold);
	line-height: 1.5;
}

.tb-home-hero .tb-search {
	height: 52px;
	background: var(--tb-color-surface);
	box-shadow: inset 0 0 0 1.5px var(--tb-color-brand);
}

.tb-home {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-3);
	padding-block: var(--tb-space-2) var(--tb-space-5);
}

.tb-home__section {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
}

.tb-home__section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--tb-space-2);
}

.tb-home__title {
	margin: 0;
	font-size: 17px;
	font-weight: var(--tb-fw-extrabold);
	line-height: 1.5;
}

.tb-home__more {
	font-size: 14px;
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-brand-text);
	text-decoration: none;
}

.tb-home__cats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tb-space-1);
}

.tb-home__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tb-space-1);
	min-height: 56px;
	padding-inline: var(--tb-space-2);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface);
	color: var(--tb-color-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: var(--tb-fw-semibold);
}

.tb-home__cat-arrow {
	flex: 0 0 auto;
	color: var(--tb-color-text-muted);
}

.tb-home__depts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tb-space-1);
}

.tb-home__dept {
	min-height: 64px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	padding: 12px 16px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface);
	color: var(--tb-color-text);
	text-decoration: none;
}

.tb-home__dept-name {
	font-size: 14px;
	font-weight: var(--tb-fw-bold);
	line-height: 1.6;
}

.tb-home__dept-sub {
	font-size: 12px;
	line-height: 1.6;
	color: var(--tb-color-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tb-home__grid {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

@media (min-width: 768px) {
	.tb-home__cats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tb-home__grid {
		gap: var(--tb-space-2);
	}

	.tb-home-hero__inner {
		padding-block: var(--tb-space-6);
	}

	.tb-home-hero__title {
		font-size: 32px;
		line-height: 1.45;
	}

	.tb-home__title {
		font-size: 20px;
	}

	.tb-home-hero .tb-search {
		height: 56px;
	}
}

@media (min-width: 1024px) {
	.tb-home__cats,
	.tb-home__depts {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: var(--tb-space-1);
	}

	.tb-home__cat {
		min-height: 64px;
		justify-content: center;
		text-align: center;
		font-size: 15px;
	}

	.tb-home__cat-arrow {
		display: none;
	}

	.tb-home__grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--tb-space-3);
	}
}

/* ---------- Department landing page ---------- */

.tb-department {
	padding-block: var(--tb-space-2) var(--tb-space-5);
}

.tb-department__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-block: var(--tb-space-2) var(--tb-space-3);
}

.tb-department__title {
	margin: 0;
	font-size: 24px;
	font-weight: var(--tb-fw-extrabold);
	line-height: 1.45;
}

.tb-department__intro {
	margin: 0;
	max-width: 760px;
	font-size: var(--tb-fs-body);
	line-height: var(--tb-lh-body);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.tb-department__section {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
	margin-top: var(--tb-space-4);
}

.tb-department__heading {
	margin: 0;
	font-size: 18px;
	font-weight: var(--tb-fw-extrabold);
}

.tb-department__head-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--tb-space-2);
}

.tb-department__all {
	font-size: 13px;
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-brand-text);
	text-decoration: none;
}

.tb-dept-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tb-space-1);
	align-items: start;
}

.tb-dept-card {
	background: var(--tb-color-surface);
	border-radius: var(--tb-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.tb-dept-card__image {
	display: none;
	aspect-ratio: 1 / 1;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface-2);
	overflow: hidden;
}

.tb-dept-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tb-dept-card__placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	font-size: 12px;
	color: var(--tb-color-text-muted);
}

.tb-dept-card__title {
	margin: 0;
}

.tb-dept-card__title a {
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	color: var(--tb-color-text);
	font-size: 15px;
	font-weight: var(--tb-fw-extrabold);
	text-decoration: none;
	line-height: 1.6;
}

.tb-dept-card__subs {
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-direction: column;
}

.tb-dept-card__subs a {
	min-height: 36px;
	display: flex;
	align-items: center;
	color: var(--tb-color-text-muted);
	font-size: 14px;
	text-decoration: none;
}

.tb-department__products {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
}

@media (min-width: 768px) {
	.tb-dept-grid {
		gap: var(--tb-space-2);
	}
}

@media (min-width: 1024px) {
	.tb-dept-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--tb-space-2);
	}

	.tb-dept-card__image {
		display: block;
	}

	.tb-dept-card__subs {
		display: flex;
	}

	.tb-department__products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--tb-space-3);
	}
}

/* ---------- Catalog ---------- */

.tb-catalog__head {
	display: flex;
	align-items: baseline;
	gap: var(--tb-space-2);
	margin-block: 0 var(--tb-space-2);
}

.tb-catalog__title {
	margin: 0;
	font-size: 22px;
	font-weight: var(--tb-fw-extrabold);
	line-height: 1.45;
}

.tb-catalog__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
}

.tb-catalog__side {
	display: none;
}

.tb-cat-nav {
	display: flex;
	flex-direction: column;
}

.tb-cat-nav__title {
	margin: 0 0 var(--tb-space-1);
	font-size: 16px;
	font-weight: var(--tb-fw-extrabold);
}

.tb-cat-nav__all {
	min-height: 44px;
	display: flex;
	align-items: center;
	gap: 6px;
	border-bottom: 1px solid var(--tb-color-line);
	color: var(--tb-color-brand-text);
	font-size: 14px;
	font-weight: var(--tb-fw-bold);
	text-decoration: none;
}

.tb-cat-nav__item {
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tb-space-1);
	padding-inline: 12px;
	margin-inline: -12px;
	border-radius: var(--tb-radius-sm);
	color: var(--tb-color-text);
	font-size: 14px;
	font-weight: var(--tb-fw-medium);
	text-decoration: none;
}

.tb-cat-nav__item.is-current {
	background: var(--tb-color-brand-soft);
	color: var(--tb-color-brand-text);
	font-weight: var(--tb-fw-bold);
}

.tb-cat-nav__count {
	font-size: 13px;
	color: var(--tb-color-text-muted);
}

.tb-cat-chips {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--tb-space-1);
	overflow-x: auto;
	white-space: nowrap;
	margin-inline: calc(-1 * var(--tb-space-2));
	padding-inline: var(--tb-space-2);
	padding-bottom: 4px;
	scrollbar-width: thin;
}

.tb-cat-nav__more-list {
	display: flex;
	flex-direction: column;
}

.tb-cat-nav__more {
	min-height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tb-color-brand-text);
	font: inherit;
	font-size: 13px;
	font-weight: var(--tb-fw-bold);
	text-align: start;
	cursor: pointer;
}

.tb-filter-panel__select {
	min-height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--tb-color-line);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface);
	color: var(--tb-color-text);
	font: inherit;
}

.tb-cat-chips .tb-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	height: auto;
}

.tb-chip__count {
	font-size: 12px;
	color: var(--tb-color-text-muted);
	font-family: var(--tb-font-num);
	font-feature-settings: var(--tb-num-features);
}

.tb-filter-panel__form {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
}

.tb-catalog__prev {
	align-self: stretch;
	margin-bottom: var(--tb-space-1);
}

.tb-catalog__results {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
}

@media (min-width: 1024px) {
	.tb-catalog__layout {
		display: grid;
		grid-template-columns: 280px minmax(0, 1fr);
		gap: var(--tb-space-4);
		align-items: start;
	}

	.tb-catalog__side {
		display: flex;
		flex-direction: column;
		gap: var(--tb-space-2);
		position: sticky;
		top: 88px;
	}

	.tb-catalog__title {
		font-size: 28px;
	}

	.tb-cat-chips {
		display: none;
	}
}

.tb-catalog__count {
	color: var(--tb-color-text-muted);
	font-size: var(--tb-fs-sm);
}

.tb-catalog__layout {
	display: block;
}

.tb-filter-panel {
	display: none;
}

.tb-catalog__bar {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	margin-bottom: var(--tb-space-2);
}

.tb-catalog__chips {
	display: flex;
	gap: var(--tb-space-1);
	overflow-x: auto;
	padding-bottom: 4px;
}

.tb-chip {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding-inline: var(--tb-space-2);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	color: var(--tb-color-text);
	font-size: 13px;
	font-weight: var(--tb-fw-semibold);
	text-decoration: none;
	white-space: nowrap;
	flex: 0 0 auto;
}

.tb-chip.is-active {
	background: var(--tb-color-brand-soft);
	color: var(--tb-color-brand-text);
	box-shadow: inset 0 0 0 1.5px var(--tb-color-brand);
}

.tb-catalog__sort {
	display: none;
}

.tb-catalog__sort-label {
	color: var(--tb-color-text-muted);
	padding-inline-end: var(--tb-space-1);
}

.tb-catalog__sort-link {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding-inline: var(--tb-space-2);
	border-radius: var(--tb-radius-sm);
	color: var(--tb-color-text);
	font-size: 14px;
	text-decoration: none;
}

.tb-catalog__sort-link.is-active {
	background: var(--tb-color-brand-soft);
	color: var(--tb-color-brand-text);
	font-weight: var(--tb-fw-bold);
}

.tb-catalog__grid {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
}

/* Mobile list card */
.tb-product-card--row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	grid-template-areas:
		"image title"
		"image meta"
		"image prices";
	column-gap: var(--tb-space-2);
	row-gap: var(--tb-space-1);
	align-items: start;
}

.tb-product-card--row .tb-product-card__image {
	grid-area: image;
	width: 96px;
	height: 96px;
	aspect-ratio: auto;
}

.tb-product-card--row .tb-product-card__title {
	grid-area: title;
	min-height: 0;
	font-size: var(--tb-fs-body);
}

.tb-product-card--row .tb-product-card__meta {
	grid-area: meta;
}

.tb-product-card--row .tb-product-card__prices {
	grid-area: prices;
	min-height: 0;
	flex-direction: row;
	align-items: baseline;
	gap: var(--tb-space-1);
	flex-wrap: wrap;
}

.tb-product-card--row .tb-product-card__old {
	order: 2;
}

/* Filter panel form */
.tb-filter-panel__group {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-filter-panel__title {
	margin: 0;
	font-size: 15px;
	font-weight: var(--tb-fw-bold);
}

.tb-filter-panel__cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tb-filter-panel__cats a {
	display: flex;
	justify-content: space-between;
	gap: var(--tb-space-1);
	padding-block: 6px;
	color: var(--tb-color-text);
	text-decoration: none;
	font-size: 14px;
}

.tb-filter-panel__cats a.is-current {
	color: var(--tb-color-brand-text);
	font-weight: var(--tb-fw-bold);
}

.tb-filter-panel__prices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tb-space-1);
}

.tb-filter-panel__prices input {
	height: 44px;
	padding-inline: var(--tb-space-1);
	border: 0;
	border-radius: var(--tb-radius-sm);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	background: var(--tb-color-surface);
	font-family: var(--tb-font-num);
	font-feature-settings: var(--tb-num-features);
}

.tb-filter-panel__check {
	display: flex;
	align-items: center;
	gap: var(--tb-space-1);
	font-size: 14px;
}

@media (min-width: 1024px) {
	.tb-catalog__layout {
		display: grid;
		grid-template-columns: 280px minmax(0, 1fr);
		gap: var(--tb-space-4);
		align-items: start;
	}

	.tb-filter-panel {
		display: flex;
		flex-direction: column;
		gap: var(--tb-space-3);
		background: var(--tb-color-surface);
		border-radius: var(--tb-radius);
		padding: var(--tb-space-3);
		position: sticky;
		top: 88px;
	}

	.tb-catalog__chips {
		display: none;
	}

	.tb-catalog__sort {
		display: flex;
		align-items: center;
		gap: 4px;
	}

	.tb-catalog__grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--tb-space-3);
	}

	.tb-product-card--row {
		display: flex;
		flex-direction: column;
		gap: var(--tb-space-2);
	}

	.tb-product-card--row .tb-product-card__image {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.tb-product-card--row .tb-product-card__title {
		font-size: 15px;
		min-height: calc(3.4em);
	}

	.tb-product-card--row .tb-product-card__prices {
		min-height: 60px;
		flex-direction: column;
		align-items: flex-start;
	}

	.tb-product-card--row .tb-product-card__old {
		order: 0;
	}
}

/* ---------- Search ---------- */

.tb-search-page__head {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
	margin-bottom: var(--tb-space-3);
}

.tb-search-page__title {
	margin: 0;
	font-size: var(--tb-fs-h1);
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h1);
}

.tb-search-page__grid {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-search-page__item-title {
	margin: 0 0 var(--tb-space-1);
	font-size: var(--tb-fs-h3);
}

.tb-search-page__item-title a {
	color: var(--tb-color-text);
	text-decoration: none;
}

@media (min-width: 768px) {
	.tb-search-page__grid {
		gap: var(--tb-space-2);
	}
}

@media (min-width: 1024px) {
	.tb-search-page__grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--tb-space-3);
	}
}

/* ---------- Pagination (category, search, guides) ---------- */

.woocommerce-pagination ul.page-numbers,
.tb-search-page .navigation .nav-links,
.pagination .nav-links {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin: var(--tb-space-3) 0 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	white-space: nowrap;
}

.woocommerce-pagination ul.page-numbers li,
.tb-search-page .navigation .nav-links > *,
.pagination .nav-links > * {
	flex: 0 0 auto;
}

.woocommerce-pagination .page-numbers,
.tb-search-page .navigation .page-numbers,
.pagination .page-numbers,
.pagination .nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 8px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	color: var(--tb-color-text);
	font-family: var(--tb-font-num);
	font-feature-settings: var(--tb-num-features);
	font-size: 14px;
	text-decoration: none;
}

.woocommerce-pagination .page-numbers.current,
.tb-search-page .navigation .page-numbers.current,
.pagination .page-numbers.current {
	background: var(--tb-color-brand);
	color: var(--tb-color-on-brand);
	box-shadow: none;
}

/* ---------- Empty state ---------- */

.tb-empty-state {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
	align-items: flex-start;
}

.tb-empty-state__title {
	margin: 0;
	font-size: var(--tb-fs-h3);
	font-weight: var(--tb-fw-extrabold);
}

.tb-empty-state__text {
	margin: 0;
	color: var(--tb-color-text-muted);
	font-size: var(--tb-fs-body);
	line-height: var(--tb-lh-body);
}

.tb-empty-state__subtitle {
	margin: var(--tb-space-1) 0 0;
	font-size: var(--tb-fs-body);
	font-weight: var(--tb-fw-bold);
}

.tb-empty-state__cats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tb-space-1);
}

.tb-empty-state .tb-search {
	width: 100%;
	max-width: 480px;
}

/* ---------- Trust pages ---------- */

.tb-trust-page__wrap {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
	max-width: 820px;
	margin-inline: auto;
}

.tb-trust-page__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tb-trust-page__title {
	margin: 0;
	font-size: var(--tb-fs-h1);
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h1);
}

.tb-trust-page__updated {
	font-size: var(--tb-fs-sm);
	color: var(--tb-color-text-muted);
}

.tb-trust-page__content {
	font-size: var(--tb-fs-body);
	line-height: var(--tb-lh-body);
}

.tb-trust-page__content h2 {
	font-size: var(--tb-fs-h3);
	font-weight: var(--tb-fw-extrabold);
}

.tb-trust-page__section {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-trust-page__section-title {
	margin: 0 0 var(--tb-space-1);
	font-size: var(--tb-fs-h3);
	font-weight: var(--tb-fw-extrabold);
}

.tb-trust-page__row {
	display: flex;
	justify-content: space-between;
	gap: var(--tb-space-2);
	padding-block: 10px;
	border-bottom: 1px solid var(--tb-color-line);
	font-size: 14px;
}

.tb-trust-page__label {
	color: var(--tb-color-text-muted);
}

.tb-trust-page__value {
	font-weight: var(--tb-fw-semibold);
	text-align: end;
}

.tb-trust-page__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px var(--tb-space-1);
}

.tb-trust-page__social a {
	color: var(--tb-color-text);
}

.tb-trust-page__symbols {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: var(--tb-space-2);
}

.tb-trust-page__symbols img {
	max-width: 72px;
	height: auto;
}

.tb-trust-page__text {
	margin: 0;
	font-size: 15px;
	line-height: var(--tb-lh-body);
}

.tb-trust-page__section .tb-btn {
	align-self: flex-start;
	margin-top: var(--tb-space-1);
}

/* ---------- 404 ---------- */

.tb-404__wrap {
	display: flex;
	justify-content: center;
}

.tb-404__card {
	max-width: 560px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
	align-items: flex-start;
}

.tb-404__code {
	font-size: 13px;
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-text-muted);
}

.tb-404__title {
	margin: 0;
	font-size: var(--tb-fs-h1);
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h1);
}

.tb-404__text {
	margin: 0;
	color: var(--tb-color-text-muted);
	font-size: var(--tb-fs-body);
	line-height: var(--tb-lh-body);
}

.tb-404__card .tb-search {
	width: 100%;
}

/* ---------- Phase 6: about, contact and customer service ---------- */

.tb-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 13px;
	min-height: 32px;
	color: var(--tb-color-text-muted);
}

.tb-breadcrumb a {
	color: var(--tb-color-text-muted);
	text-decoration: none;
}

.tb-breadcrumb a:hover {
	color: var(--tb-color-text);
}

.tb-breadcrumb [aria-current="page"] {
	font-weight: var(--tb-fw-semibold);
	color: var(--tb-color-text);
}

.tb-about__wrap,
.tb-contact__wrap,
.tb-help__wrap {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-3);
}

.tb-about__title,
.tb-contact__title,
.tb-help__title {
	margin: 0;
	font-size: var(--tb-fs-h1);
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h1);
}

.tb-about__layout,
.tb-contact__layout,
.tb-help__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tb-space-3);
	align-items: start;
}

.tb-about__main,
.tb-about__side,
.tb-contact__main,
.tb-contact__side,
.tb-help__sections {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-3);
	min-width: 0;
}

.tb-about__card {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-about__section-title,
.tb-contact__section-title,
.tb-help__section-title {
	margin: 0;
	font-size: 18px;
	font-weight: var(--tb-fw-extrabold);
}

.tb-about__text,
.tb-about__owner-bio,
.tb-contact__text,
.tb-help__text {
	margin: 0;
	font-size: 15px;
	line-height: var(--tb-lh-body);
}

.tb-about__bullets {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	font-size: 15px;
	line-height: var(--tb-lh-body);
}

.tb-about__bullets li {
	position: relative;
	padding-inline-start: 18px;
}

.tb-about__bullets li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tb-color-brand);
}

.tb-about__content {
	font-size: var(--tb-fs-body);
	line-height: var(--tb-lh-body);
}

.tb-about__note {
	margin: 0;
	padding: var(--tb-space-2) var(--tb-space-3);
	border-radius: var(--tb-radius);
	background: var(--tb-color-brand-soft);
	color: var(--tb-color-text);
	font-size: 16px;
	font-weight: var(--tb-fw-bold);
	line-height: var(--tb-lh-body);
}

.tb-about__owner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.tb-about__owner-photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--tb-color-surface-2);
}

.tb-about__owner-body {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	min-width: 0;
}

.tb-about__owner-label {
	font-size: 13px;
	font-weight: var(--tb-fw-semibold);
	color: var(--tb-color-text-muted);
}

.tb-about__owner-name {
	margin: 0;
	font-size: 18px;
	font-weight: var(--tb-fw-extrabold);
}

.tb-about__symbols {
	display: grid;
	grid-template-columns: repeat(auto-fit, 104px);
	gap: var(--tb-space-2);
	margin-top: var(--tb-space-1);
}

.tb-about__symbol {
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	padding: var(--tb-space-1);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface-2);
	overflow: hidden;
}

.tb-about__symbol img {
	max-width: 100%;
	max-height: 100%;
	height: auto;
}

.tb-about__links {
	display: flex;
	flex-direction: column;
}

.tb-about__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tb-space-1);
	min-height: 44px;
	border-bottom: 1px solid var(--tb-color-line);
	color: var(--tb-color-text);
	text-decoration: none;
	font-size: 15px;
	font-weight: var(--tb-fw-semibold);
}

.tb-about__link:last-child {
	border-bottom: 0;
}

.tb-contact__chat {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-contact__chat-btn {
	width: 100%;
	margin-top: var(--tb-space-1);
}

.tb-contact__rows {
	display: flex;
	flex-direction: column;
	margin-top: var(--tb-space-1);
}

.tb-contact__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-block: 10px;
	border-bottom: 1px solid var(--tb-color-line);
	font-size: 14px;
}

.tb-contact__row:last-child {
	border-bottom: 0;
}

.tb-contact__label {
	color: var(--tb-color-text-muted);
}

.tb-contact__value {
	font-weight: var(--tb-fw-semibold);
	text-align: end;
}

.tb-contact__phone {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.tb-contact__phone-value {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-text);
	text-decoration: none;
}

.tb-contact__address-body {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	font-style: normal;
	font-size: 14px;
	line-height: var(--tb-lh-body);
}

.tb-contact__social {
	display: flex;
	flex-direction: column;
}

.tb-contact__social-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	border-bottom: 1px solid var(--tb-color-line);
	color: var(--tb-color-text);
	text-decoration: none;
	font-size: 14px;
}

.tb-contact__social-link:last-child {
	border-bottom: 0;
}

.tb-contact__first {
	display: flex;
	flex-direction: column;
}

.tb-contact__first-link {
	display: flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid var(--tb-color-line);
	color: var(--tb-color-brand-text);
	text-decoration: none;
	font-size: 15px;
	font-weight: var(--tb-fw-semibold);
}

.tb-contact__first-link:last-child {
	border-bottom: 0;
}

.tb-help__head {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-help__subtitle {
	margin: 0;
	font-size: 15px;
	line-height: var(--tb-lh-body);
	color: var(--tb-color-text-muted);
}

.tb-help__nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tb-space-1);
}

.tb-help__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding-inline: 12px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	color: var(--tb-color-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: var(--tb-fw-semibold);
}

.tb-help__section {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	scroll-margin-top: 80px;
}

.tb-help__rows {
	display: flex;
	flex-direction: column;
}

.tb-help__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-block: 10px;
	border-bottom: 1px solid var(--tb-color-line);
	font-size: 14px;
}

.tb-help__row:last-child {
	border-bottom: 0;
}

.tb-help__label {
	color: var(--tb-color-text-muted);
}

.tb-help__value {
	font-weight: var(--tb-fw-semibold);
	text-align: end;
}

.tb-help__content {
	font-size: var(--tb-fs-body);
	line-height: var(--tb-lh-body);
}

.tb-help__btn {
	align-self: flex-start;
	margin-top: var(--tb-space-1);
}

.tb-help__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: var(--tb-space-2) var(--tb-space-3);
	border-radius: var(--tb-radius);
	background: var(--tb-color-surface-2);
	font-size: 15px;
	font-weight: var(--tb-fw-bold);
}

.tb-help__contact a {
	color: var(--tb-color-brand-text);
}

/* Accordion (native details/summary) */

.tb-accordion {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--tb-color-line);
}

.tb-accordion__item {
	border-bottom: 1px solid var(--tb-color-line);
}

.tb-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tb-space-2);
	min-height: 56px;
	padding-block: 12px;
	list-style: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: var(--tb-fw-bold);
}

.tb-accordion__summary::-webkit-details-marker {
	display: none;
}

.tb-accordion__chevron {
	flex: 0 0 auto;
	color: var(--tb-color-text-muted);
	transition: transform var(--tb-dur) var(--tb-ease);
}

.tb-accordion__item[open] .tb-accordion__chevron {
	transform: rotate(180deg);
}

.tb-accordion__answer {
	padding-bottom: var(--tb-space-2);
	font-size: 15px;
	line-height: var(--tb-lh-body);
}

.tb-accordion__answer > *:first-child {
	margin-top: 0;
}

.tb-accordion__answer > *:last-child {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.tb-about__owner {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.tb-about__owner--no-photo {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-about__owner-photo {
		width: 120px;
		height: 120px;
	}
}

/* Category intro and FAQ */

.tb-cat-intro {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	max-width: 760px;
	margin-bottom: var(--tb-space-2);
}

.tb-cat-intro__text {
	order: 1;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 15px;
	line-height: var(--tb-lh-body);
}

.tb-cat-intro__more {
	order: 2;
	align-self: flex-start;
}

.tb-cat-intro__more summary {
	display: flex;
	align-items: center;
	min-height: 40px;
	list-style: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-brand-text);
}

.tb-cat-intro__more summary::-webkit-details-marker {
	display: none;
}

.tb-cat-intro__more[open] + .tb-cat-intro__text {
	display: block;
	overflow: visible;
	-webkit-line-clamp: unset;
}

.tb-cat-faq {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	max-width: 760px;
	margin-top: var(--tb-space-3);
}

.tb-cat-faq__title {
	margin: 0 0 var(--tb-space-1);
	font-size: 18px;
	font-weight: var(--tb-fw-extrabold);
}

/* Buying guides and author pages */

.tb-guide__wrap,
.tb-guide-archive__wrap,
.tb-author__wrap {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-3);
}

.tb-guide__article {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-3);
	max-width: 800px;
	margin-inline: auto;
	width: 100%;
}

.tb-guide__head {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
}

.tb-guide__title,
.tb-guide-archive__title {
	margin: 0;
	font-size: var(--tb-fs-h1);
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h1);
}

.tb-guide__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tb-space-1) var(--tb-space-2);
	font-size: 13px;
	color: var(--tb-color-text-muted);
}

.tb-guide__author-link {
	display: inline-flex;
	align-items: center;
	gap: var(--tb-space-1);
	color: var(--tb-color-text);
	text-decoration: none;
	font-weight: var(--tb-fw-bold);
}

.tb-guide__author-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.tb-guide__toc {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-half);
}

.tb-guide__toc-title {
	margin: 0 0 var(--tb-space-1);
	font-size: 16px;
	font-weight: var(--tb-fw-extrabold);
}

.tb-guide__toc-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	color: var(--tb-color-text);
	text-decoration: none;
	font-size: 14px;
}

.tb-guide__toc-num {
	width: 16px;
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-text-muted);
}

.tb-guide__content {
	font-size: var(--tb-fs-body);
	line-height: var(--tb-lh-body);
}

.tb-guide__section {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-guide__section-title {
	margin: 0;
	font-size: 18px;
	font-weight: var(--tb-fw-extrabold);
}

.tb-guide__table-wrap {
	overflow-x: auto;
	border-radius: var(--tb-radius);
	background: var(--tb-color-surface);
}

.tb-guide__table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 14px;
}

.tb-guide__table th,
.tb-guide__table td {
	text-align: start;
	padding: 14px var(--tb-space-2);
	border-bottom: 1px solid var(--tb-color-line);
}

.tb-guide__table th {
	font-weight: var(--tb-fw-bold);
}

.tb-guide__products {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tb-space-2);
}

.tb-guide__sources {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-guide__source-list {
	margin: 0;
	padding-inline-start: 20px;
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	font-size: 14px;
}

.tb-guide__author {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tb-space-2);
	align-items: start;
}

.tb-guide__author-photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.tb-guide__author-body {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	min-width: 0;
}

.tb-guide__author-label {
	font-size: 13px;
	font-weight: var(--tb-fw-semibold);
	color: var(--tb-color-text-muted);
}

.tb-guide__author-name {
	margin: 0;
	font-size: 17px;
	font-weight: var(--tb-fw-extrabold);
}

.tb-guide__author-name a {
	color: var(--tb-color-text);
	text-decoration: none;
}

.tb-guide__author-bio {
	margin: 0;
	font-size: 14px;
	line-height: var(--tb-lh-body);
}

.tb-guide__author-all {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	font-size: 14px;
	font-weight: var(--tb-fw-bold);
	text-decoration: none;
}

.tb-guide-archive__head {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-guide-archive__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tb-space-2);
}

.tb-guide-archive__item {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-guide-archive__item-title {
	margin: 0;
	font-size: var(--tb-fs-h3);
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h3);
}

.tb-guide-archive__item-title a {
	color: var(--tb-color-text);
	text-decoration: none;
}

.tb-guide-archive__item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 13px;
	color: var(--tb-color-text-muted);
}

.tb-guide-archive__item-meta a {
	color: var(--tb-color-text);
	text-decoration: none;
	font-weight: var(--tb-fw-semibold);
}

.tb-guide-archive__item-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: var(--tb-lh-body);
	color: var(--tb-color-text-muted);
}

.tb-author__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tb-space-3);
	align-items: start;
}

.tb-author__card {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-author__photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: var(--tb-space-1);
}

.tb-author__name {
	margin: 0;
	font-size: var(--tb-fs-h1);
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h1);
}

.tb-author__expertise {
	font-size: 14px;
	font-weight: var(--tb-fw-semibold);
	color: var(--tb-color-brand-text);
}

.tb-author__bio {
	margin: 0;
	font-size: 14px;
	line-height: var(--tb-lh-body);
}

.tb-author__links {
	display: flex;
	flex-direction: column;
	margin-top: var(--tb-space-1);
}

.tb-author__links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid var(--tb-color-line);
	color: var(--tb-color-text);
	text-decoration: none;
	font-size: 14px;
}

.tb-author__main {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-3);
	min-width: 0;
}

.tb-author__experience,
.tb-author__guides {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
}

.tb-author__section-title {
	margin: 0 0 var(--tb-space-1);
	font-size: 18px;
	font-weight: var(--tb-fw-extrabold);
}

.tb-author__guide {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-block: 12px;
	border-bottom: 1px solid var(--tb-color-line);
	color: var(--tb-color-text);
	text-decoration: none;
}

.tb-author__guide-title {
	font-size: 15px;
	font-weight: var(--tb-fw-bold);
}

.tb-author__guide-date {
	font-size: 13px;
	color: var(--tb-color-text-muted);
}

.tb-author__empty {
	margin: 0;
	padding: var(--tb-space-2);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface-2);
	font-size: 15px;
	font-weight: var(--tb-fw-bold);
}

@media (min-width: 768px) {
	.tb-guide__products,
	.tb-guide-archive__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tb-guide__author {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.tb-guide__author--no-photo {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 1024px) {
	.tb-guide__products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tb-guide-archive__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tb-author__layout {
		grid-template-columns: 320px minmax(0, 1fr);
	}
}

@media (min-width: 1024px) {
	.tb-about__layout {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	}

	.tb-contact__layout {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	}

	.tb-help__layout {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: var(--tb-space-4);
	}

	.tb-help__nav {
		flex-direction: column;
		position: sticky;
		top: var(--tb-space-3);
	}
}

/* ---------- Hybrid pagination (C9.3) ---------- */

.tb-pager {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--tb-space-2);
	padding-top: var(--tb-space-1);
}

.tb-btn[hidden],
.tb-catalog__prev[hidden],
.tb-pager[hidden],
.tb-pager__more[hidden],
.tb-pager__prev[hidden],
.tb-pager__error[hidden],
.tb-pager__pages[hidden],
.tb-pager__count[hidden],
.tb-pager__pages-of[hidden],
.tb-pager__progress[hidden],
.tb-pager__skeleton[hidden] {
	display: none;
}

.tb-pager__summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--tb-space-1);
}

.tb-pager__count,
.tb-pager__pages-of {
	font-size: var(--tb-fs-sm);
	color: var(--tb-color-text-muted);
}

.tb-pager__progress {
	width: 200px;
	height: 4px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface-2);
	overflow: hidden;
}

.tb-pager__progress > span {
	display: block;
	height: 100%;
	background: var(--tb-color-brand);
	transition: width var(--tb-dur) var(--tb-ease);
}

.tb-pager__more {
	width: 100%;
}

.tb-pager__error {
	margin: 0;
	display: flex;
	align-items: center;
	gap: var(--tb-space-1);
	color: var(--tb-color-error);
	font-size: 14px;
	font-weight: var(--tb-fw-semibold);
}

.tb-pager__error::before {
	content: "";
	width: 9px;
	height: 9px;
	background: var(--tb-color-error);
	flex: 0 0 auto;
}

.tb-pager__pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: 100%;
	margin: var(--tb-space-1) 0 0;
	padding: 0;
	list-style: none;
}

.tb-pager__page {
	min-width: 44px;
	height: 44px;
	display: inline-grid;
	place-items: center;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	color: var(--tb-color-text);
	font-family: var(--tb-font-num);
	font-feature-settings: var(--tb-num-features);
	font-size: 14px;
	text-decoration: none;
}

.tb-pager__page.is-current {
	background: var(--tb-color-brand);
	color: var(--tb-color-on-brand);
	box-shadow: none;
	font-weight: var(--tb-fw-bold);
}

.tb-pager__step {
	height: 44px;
	padding-inline: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-radius: var(--tb-radius-sm);
	color: var(--tb-color-text);
	font-size: 14px;
	text-decoration: none;
}

.tb-pager__ellipsis {
	min-width: 24px;
	height: 44px;
	display: inline-grid;
	place-items: center;
	color: var(--tb-color-text-muted);
}

.tb-pager__separator {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: var(--tb-fs-sm);
	font-weight: var(--tb-fw-semibold);
	color: var(--tb-color-text-muted);
}

.tb-pager__separator > span:first-child,
.tb-pager__separator > span:last-child {
	flex: 1 1 0;
	height: 1px;
	background: var(--tb-color-line);
}

.tb-pager__skeleton {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tb-space-1);
}

.tb-pager__skeleton > span {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 128px;
	padding: var(--tb-space-2);
	border-radius: var(--tb-radius);
	background: var(--tb-color-surface);
}

.tb-pager__skeleton > span::before,
.tb-pager__skeleton > span::after {
	content: "";
	height: 14px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface-2);
}

.tb-pager__skeleton > span::before {
	width: 80%;
}

.tb-pager__skeleton > span::after {
	width: 50%;
}

@media (min-width: 1024px) {
	.tb-pager__more {
		width: 320px;
	}

	.tb-pager__skeleton {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Category bottom text (C9.2) ---------- */

.tb-cat-content {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
	max-width: 760px;
	margin-top: var(--tb-space-2);
}

.tb-cat-content__body {
	font-size: var(--tb-fs-body);
	line-height: var(--tb-lh-body);
}

.tb-cat-content__body.is-clipped {
	max-height: 160px;
	overflow: hidden;
}

.tb-cat-content__body h2 {
	margin: var(--tb-space-3) 0 var(--tb-space-1);
	font-size: 20px;
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h3);
}

.tb-cat-content__body h2:first-child {
	margin-top: 0;
}

.tb-cat-content__body h3 {
	margin: var(--tb-space-2) 0 var(--tb-space-1);
	font-size: 16px;
	font-weight: var(--tb-fw-bold);
}

.tb-cat-content__body p,
.tb-cat-content__body li {
	font-size: 15px;
	line-height: var(--tb-lh-body);
}

.tb-cat-content__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tb-cat-content__body th,
.tb-cat-content__body td {
	text-align: start;
	padding: 10px 12px;
	border-bottom: 1px solid var(--tb-color-line);
}

.tb-cat-content__toggle {
	align-self: flex-start;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tb-color-brand-text);
	font-family: var(--tb-font);
	font-size: 14px;
	font-weight: var(--tb-fw-bold);
	cursor: pointer;
}

.tb-cat-content__toggle[hidden] {
	display: none;
}

.tb-cat-content__toggle svg {
	transition: transform var(--tb-dur) var(--tb-ease);
}

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

.tb-cat-content__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px var(--tb-space-2);
	align-items: center;
	padding-top: 12px;
	border-top: 1px solid var(--tb-color-line);
	font-size: 13px;
	color: var(--tb-color-text-muted);
}

.tb-cat-content__meta a {
	color: var(--tb-color-text);
	text-decoration: none;
	font-weight: var(--tb-fw-semibold);
}

/* ---------- All categories (C9.2) ---------- */

.tb-categories__wrap {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
}

.tb-categories__title {
	margin: 0;
	font-size: var(--tb-fs-h2);
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h2);
}

.tb-categories__jump {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--tb-space-1);
	overflow-x: auto;
	margin-inline: calc(-1 * var(--tb-space-2));
	padding-inline: var(--tb-space-2);
	padding-bottom: 4px;
}

.tb-categories__jump a {
	flex: 0 0 auto;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	padding-inline: 12px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	color: var(--tb-color-text);
	font-size: 13px;
	font-weight: var(--tb-fw-semibold);
	text-decoration: none;
	white-space: nowrap;
}

.tb-categories__sections {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-5);
}

.tb-categories__dept {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
	scroll-margin-top: 80px;
}

.tb-categories__dept-title {
	margin: 0;
}

.tb-categories__dept-title a {
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tb-space-2);
	color: var(--tb-color-text);
	font-size: 18px;
	font-weight: var(--tb-fw-extrabold);
	text-decoration: none;
}

.tb-categories__dept-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-brand-text);
}

.tb-categories__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.tb-categories__card {
	background: var(--tb-color-surface);
	border-radius: var(--tb-radius);
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
}

.tb-categories__card-image {
	display: block;
	margin: -20px -24px 14px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--tb-radius) var(--tb-radius) 0 0;
	background: var(--tb-color-surface-2);
}

.tb-categories__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tb-categories__card-title {
	margin: 0;
}

.tb-categories__card-title a {
	min-height: 40px;
	display: flex;
	align-items: center;
	color: var(--tb-color-text);
	font-size: 15px;
	font-weight: var(--tb-fw-extrabold);
	text-decoration: none;
}

.tb-categories__subs {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.tb-categories__subs a {
	min-height: 36px;
	display: inline-flex;
	align-items: center;
	color: var(--tb-color-text-muted);
	font-size: 14px;
	text-decoration: none;
}

.tb-categories__subs a:hover {
	color: var(--tb-color-brand-text);
}

@media (min-width: 768px) {
	.tb-categories__jump {
		flex-wrap: wrap;
		margin-inline: 0;
		padding-inline: 0;
	}

	.tb-categories__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--tb-space-3);
	}
}

@media (min-width: 1024px) {
	.tb-categories__title {
		font-size: var(--tb-fs-h1);
		line-height: var(--tb-lh-h1);
	}

	.tb-categories__dept-title a {
		font-size: 22px;
	}

	.tb-categories__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
