/**
 * Help Center — tablet (768–1199) & mobile (<768) per component rules + type scale.
 * Desktop ≥1200px inherits tokens from bookingbee-help-center.css.
 */

/* —— Type tokens: tablet —— */
@media (max-width: 1199.98px) {
	.bb-redesign .hc {
		--hc-h1: 52px;
		--hc-h2: 40px;
		--hc-h3: 30px;
		--hc-h4: 24px;
		--hc-h5: 20px;
		--hc-body-l: 18px;
		--hc-stat: 32px;
		--hc-section-y: 88px;
		--hc-section-y-mid: 64px;
	}
}

/* —— Type tokens: mobile —— */
@media (max-width: 767.98px) {
	.bb-redesign .hc {
		--hc-h1: 36px;
		--hc-h2: 30px;
		--hc-h3: 26px;
		--hc-h4: 22px;
		--hc-h5: 18px;
		--hc-body-l: 17px;
		--hc-eyebrow: 11px;
		--hc-stat: 28px;
		--hc-section-y: 56px;
		--hc-section-y-mid: 48px;
		--hc-gutter: clamp(16px, 5vw, 24px);
	}
}

/* —— Typography aliases (contact / 404 / search) —— */
.bb-redesign .hc .hc-contact-hero__title,
.bb-redesign .hc .hc-not-found-hero__title {
	font-size: var(--hc-h1);
}

.bb-redesign .hc .hc-contact-fast__title,
.bb-redesign .hc .hc-article-helpful__follow-title {
	font-size: var(--hc-h5);
}

.bb-redesign .hc .hc-contact-hero__lead,
.bb-redesign .hc .hc-not-found-hero__lead {
	font-size: var(--hc-body-l);
}

/* —— Section rhythm —— */
@media (max-width: 1199.98px) {
	.bb-redesign .hc .hc-section {
		padding-top: var(--hc-section-y-mid);
		padding-bottom: var(--hc-section-y);
	}

	.bb-redesign .hc .hc-topic-body,
	.bb-redesign .hc .hc-article-body {
		padding-top: var(--hc-section-y-mid);
		padding-bottom: var(--hc-section-y);
	}

	.bb-redesign .hc .hc-contact-body,
	.bb-redesign .hc .hc-not-found-hero {
		padding-top: var(--hc-section-y-mid);
		padding-bottom: var(--hc-section-y);
	}
}

/* —— Hero search: stacked on mobile —— */
@media (max-width: 767.98px) {
	.bb-redesign .hc .hc-search,
	.bb-redesign .hc .hc-not-found-search {
		flex-wrap: wrap;
		padding: 12px;
		gap: 10px;
	}

	.bb-redesign .hc .hc-search__btn,
	.bb-redesign .hc .hc-not-found-search__btn {
		width: 100%;
		justify-content: center;
	}

	.bb-redesign .hc .hc-hero__visual,
	.bb-redesign .hc .hc-support__art {
		display: none !important;
	}

	.bb-redesign .hc .hc-hero__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.bb-redesign .hc .hc-section__head--split {
		flex-direction: column;
		align-items: flex-start;
	}

	.bb-redesign .hc .hc-meta {
		text-align: left;
	}

	.bb-redesign .hc .hc-text-link--head {
		white-space: normal;
	}
}

/* —— Business-type segments: 2×2 on mobile —— */
@media (max-width: 767.98px) {
	.bb-redesign .hc .hc-segments {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.bb-redesign .hc .hc-segments__track {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		border-radius: 16px;
		gap: 6px;
		padding: 6px;
	}

	.bb-redesign .hc .hc-seg {
		width: 100%;
		text-align: center;
		font-size: var(--hc-body-s);
		padding: 10px 8px;
	}
}

@media (min-width: 768px) and (max-width: 1199.98px) {
	.bb-redesign .hc .hc-segments__track {
		display: inline-flex;
		flex-wrap: wrap;
		max-width: 100%;
	}
}

/* —— Topic cards: 4 / 2 / 1 —— */
@media (min-width: 1200px) {
	.bb-redesign .hc .hc-grid--topics {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 1199.98px) {
	.bb-redesign .hc .hc-grid--topics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.bb-redesign .hc .hc-grid--topics {
		grid-template-columns: 1fr;
	}

	.bb-redesign .hc .hc-topic-card,
	.bb-redesign .hc .hc-sw-card {
		min-height: 0;
	}
}

/* —— Software tiles: 6 / 4 / 2 —— */
/* @media (min-width: 1200px) {
	.bb-redesign .hc .hc-grid--sw {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 16px;
	}

	.bb-redesign .hc .hc-sw-card {
		min-height: 200px;
		padding: 20px 14px;
	}
} */

@media (min-width: 768px) and (max-width: 1199.98px) {
	.bb-redesign .hc .hc-grid--sw {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.bb-redesign .hc .hc-grid--sw {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

/* —— Getting-started steps: 4 / 2×2 / 1 —— */
@media (min-width: 1200px) {
	.bb-redesign .hc .hc-steps {
		flex-wrap: nowrap;
		justify-content: stretch;
	}

	.bb-redesign .hc .hc-step {
		flex: 1 1 0;
		max-width: none;
	}

	.bb-redesign .hc .hc-step-conn {
		display: block;
	}
}

@media (min-width: 768px) and (max-width: 1199.98px) {
	.bb-redesign .hc .hc-steps {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		align-items: stretch;
	}

	.bb-redesign .hc .hc-step {
		max-width: none;
		flex: none;
	}

	.bb-redesign .hc .hc-step-conn {
		display: none;
	}
}

@media (max-width: 767.98px) {
	.bb-redesign .hc .hc-steps {
		flex-direction: column;
		align-items: stretch;
	}

	.bb-redesign .hc .hc-step {
		max-width: none;
		width: 100%;
	}

	.bb-redesign .hc .hc-step-conn {
		display: none;
	}
}

/* —— Most asked: spotlight stacks; question list full width —— */
@media (max-width: 1199.98px) {
	.bb-redesign .hc .hc-asked {
		grid-template-columns: 1fr;
	}
}

/* —— Support band —— */
@media (max-width: 767.98px) {
	.bb-redesign .hc .hc-support__btns .hc-btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}
}

/* —— Article: mobile TOC first; hide right-rail TOC —— */
@media (max-width: 767.98px) {
	.bb-redesign .hc .hc-article-hero__title {
		font-size: var(--hc-h1);
	}

	.bb-redesign .hc .hc-article-toc--mobile {
		order: -1;
		margin-bottom: 8px;
	}

	.bb-redesign .hc .hc-article-rail--right .hc-article-toc--desktop {
		display: none;
	}

	.bb-redesign .hc .hc-article-support {
		margin-top: 8px;
	}
}

/* —— Tablet article: keep right TOC, hide left rail (existing) —— */
@media (min-width: 768px) and (max-width: 1199.98px) {
	.bb-redesign .hc .hc-article-toc--mobile {
		display: none;
	}
}

/* —— Contact: form full width; cards 2-up tablet / stack mobile —— */
@media (min-width: 768px) and (max-width: 1199.98px) {
	.bb-redesign .hc .hc-contact-aside {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
		width: 100%;
	}

	.bb-redesign .hc .hc-contact-fast {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767.98px) {
	.bb-redesign .hc .hc-contact-aside {
		grid-template-columns: 1fr;
	}
}

/* —— Figma: hide decorative layers <768 —— */
@media (max-width: 767.98px) {
	.bb-redesign .hc .hc-hide-mobile {
		display: none !important;
	}
}