/* Long-form mobile reading, including bespoke instructional cards. */
@media (max-width: 767px) {
	body.single-post.btech-modern-article .entry-content {
		font-size: 16.5px !important;
		line-height: 1.62 !important;
	}

	body.single-post.btech-modern-article .entry-content p,
	body.single-post.btech-modern-article .entry-content li,
	body.single-post.btech-modern-article .entry-content td,
	body.single-post.btech-modern-article .entry-content th,
	body.single-post .btech-gmrs-license-v2 .gl-step p,
	body.single-post .btech-gmrs-license-v2 .gl-card p,
	body.single-post .btech-gmrs-license-v2 .gl-card li,
	body.single-post .btech-gmrs-license-v2 .gl-family p,
	body.single-post .btech-gmrs-license-v2 .gl-family__copy,
	body.single-post .btech-gmrs-license-v2 .gl-faq p,
	body.single-post .btech-gmrs-license-v2 .gl-next p,
	body.single-post .btech-gmrs-license-v2 .gl-notice p,
	body.single-post .btech-gmrs-license-v2 .gl-notice__copy {
		font-size: 16px !important;
		line-height: 1.62 !important;
	}

	body.single-post .btech-gmrs-license-v2 .gl-step h3,
	body.single-post .btech-gmrs-license-v2 .gl-card h3,
	body.single-post .btech-gmrs-license-v2 .gl-faq summary {
		font-size: 18px !important;
		line-height: 1.35 !important;
	}

	body.single-post .btech-gmrs-license-v2 .gl-step a,
	body.single-post .btech-gmrs-license-v2 .gl-btn {
		font-size: 15px !important;
	}

}

/* Current-guidance notice on the retained 2023 service article. */
.btech-legacy-guide-notice {
	display: grid;
	gap: 5px;
	margin: 0 0 28px;
	padding: 18px 20px;
	border: 1px solid #b9d5e8;
	border-left: 5px solid #176b9c;
	border-radius: 10px;
	background: #f2f8fc;
	color: #19313f;
	font-size: 15px;
	line-height: 1.55;
}

.btech-legacy-guide-notice strong {
	font-size: 17px;
}

.btech-legacy-guide-notice a {
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Filtered-shop orientation: query and canonical URLs remain unchanged. */
.btech-filter-context {
	margin: 0 0 26px;
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid #dce2e6;
	border-radius: 14px;
	background: #f7f9fa;
}

.btech-filter-context h2 {
	margin: 0 0 7px;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.15;
}

.btech-filter-context > p {
	max-width: 760px;
	margin: 0;
	color: #4b5962;
	font-size: 16px;
	line-height: 1.55;
}

.btech-filter-context__status,
.btech-filter-context__chips {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.btech-filter-context__status {
	margin-top: 17px;
}

.btech-filter-context__chips > span {
	display: inline-flex;
	min-height: 32px;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: #e6ebee;
	color: #25323a;
	font-size: 12px;
	font-weight: 850;
}

.btech-filter-context__status > a {
	margin-left: auto;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Repeater-category orientation and unambiguous product roles. */
.btech-repeater-intro {
	margin: 0 0 30px;
	padding: clamp(22px, 3vw, 34px);
	border-radius: 16px;
	background: #101820;
	color: #fff;
}

.btech-repeater-intro__eyebrow {
	margin: 0 0 8px;
	color: #ff8d93;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .13em;
}

.btech-repeater-intro h2 {
	margin: 0 0 9px;
	color: #fff;
	font-size: clamp(27px, 3vw, 38px);
}

.btech-repeater-intro > p:not(.btech-repeater-intro__eyebrow):not(.btech-repeater-intro__links) {
	max-width: 780px;
	margin: 0;
	color: #d6dee3;
	font-size: 16px;
	line-height: 1.55;
}

.btech-repeater-intro__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.btech-repeater-intro__grid > div {
	padding: 16px;
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 10px;
	background: rgba(255,255,255,.06);
}

.btech-repeater-intro__grid strong,
.btech-repeater-intro__grid span {
	display: block;
}

.btech-repeater-intro__grid span {
	margin-top: 5px;
	color: #c4ced4;
	font-size: 13px;
	line-height: 1.5;
}

.btech-repeater-intro__links {
	display: flex;
	gap: 10px 18px;
	flex-wrap: wrap;
	margin: 20px 0 0;
}

.btech-repeater-intro__links a {
	color: #fff !important;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.products .btech-repeater-badge {
	display: inline-flex;
	min-height: 25px;
	align-items: center;
	margin: 8px 0 5px;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eef1f3;
	color: #26333b;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Progressive form guidance. Native fields remain semantic and keyboardable. */
.btech-rma-path-note,
.btech-bulk-address-note {
	margin: 2px 0 18px;
	padding: 12px 14px;
	border-left: 4px solid #176b9c;
	border-radius: 6px;
	background: #f2f8fc;
	color: #29434f;
	font-size: 14px;
	line-height: 1.5;
}

.btech-rma-path-note:empty {
	display: none;
}

#btech-rma-form [hidden],
form [hidden] {
	display: none !important;
}

/* Product-page empty-rating and accessible control treatment. */
.star-rating.btech-rating-empty {
	display: none !important;
}

.btech-no-reviews {
	display: inline-flex;
	min-height: 28px;
	align-items: center;
	color: #54616a;
	font-size: 13px;
	font-weight: 750;
}

/* Homepage cards share equal-height content on desktop and a natural stack on phones. */
#btech-home-v5 .b5-products ul.products {
	align-items: stretch;
}

#btech-home-v5 .b5-products ul.products > li.product,
#btech-home-v5 .b5-products ul.products > li.product .product-inner,
#btech-home-v5 .b5-products ul.products > li.product .product-content {
	display: flex;
	flex-direction: column;
}

#btech-home-v5 .b5-products ul.products > li.product .product-inner,
#btech-home-v5 .b5-products ul.products > li.product .product-content {
	width: 100%;
	height: 100%;
}

#btech-home-v5 .b5-products ul.products > li.product .product-content .description {
	flex: 1 1 auto;
}

#btech-home-v5 .b5-products ul.products > li.product .add-links-wrap,
#btech-home-v5 .b5-products ul.products > li.product .product-loop-footer {
	margin-top: auto;
}

#btech-home-v5 .b5-products ul.products > li.product .rating-wrap {
	min-height: 24px;
}

/* About-page local navigation uses existing section IDs only. */
.btech-about-nav {
	position: sticky;
	top: var(--btech-shell-offset, 0);
	z-index: 8;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px max(18px, calc((100vw - 1160px) / 2));
	border-bottom: 1px solid #dce2e6;
	background: rgba(255,255,255,.97);
	box-shadow: 0 4px 15px rgba(18,27,34,.06);
}

.btech-about-nav strong {
	margin-right: 6px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.btech-about-nav a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	padding: 8px 11px;
	border-radius: 7px;
	color: #25323a;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

.btech-about-nav a:hover,
.btech-about-nav a:focus-visible {
	background: #eef1f3;
	color: #bd1720;
}

.btech-about #btech-about-engineering-title,
.btech-about #btech-about-audience-title,
.btech-about #btech-about-roots-title,
.btech-about #btech-about-faith-title,
.btech-about #btech-about-resources-title,
.btech-about #btech-about-contact-title {
	scroll-margin-top: 150px;
}

@media (max-width: 767px) {
	.btech-repeater-intro__grid {
		grid-template-columns: 1fr;
	}

	.btech-repeater-intro__links {
		display: grid;
	}

	.btech-repeater-intro__links a,
	.btech-filter-context__status > a {
		display: inline-flex;
		min-height: 44px;
		align-items: center;
	}

	.btech-filter-context__status {
		align-items: flex-start;
		flex-direction: column;
	}

	.btech-filter-context__status > a {
		margin-left: 0;
	}

	#btech-home-v5 .b5-products ul.products > li.product,
	#btech-home-v5 .b5-products ul.products > li.product .product-inner,
	#btech-home-v5 .b5-products ul.products > li.product .product-content {
		height: auto;
	}

	.btech-about-nav {
		position: relative;
		top: auto;
		overflow-x: auto;
		padding: 9px 14px;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.btech-about-nav strong,
	.btech-about-nav a {
		flex: 0 0 auto;
	}

	.btech-about-nav a {
		min-height: 44px;
	}

	.btech-legacy-guide-notice {
		padding: 16px;
	}
}

/* Product-page progressive disclosure is activated only after JS is ready. */
.single-product .btech-product-story.btech-audit-collapsible {
	position: relative;
	max-height: 5200px;
	overflow: hidden;
}

.single-product .btech-product-story.btech-audit-collapsible::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 180px;
	background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 82%);
	content: "";
	pointer-events: none;
}

.single-product .btech-product-story.btech-audit-expanded {
	max-height: none;
}

.single-product .btech-product-story.btech-audit-expanded::after {
	display: none;
}

.btech-audit-story-toggle,
.btech-audit-reviews-toggle {
	display: flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	width: min(100% - 32px, 680px);
	margin: 18px auto 42px;
	padding: 13px 20px;
	border: 1px solid #cfd6db;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(17, 23, 29, .08);
	color: #11171d;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 850;
}

.btech-audit-story-toggle:hover,
.btech-audit-story-toggle:focus,
.btech-audit-reviews-toggle:hover,
.btech-audit-reviews-toggle:focus {
	border-color: #ed1c24;
	color: #bd1720;
}

.single-product #btech-product-details,
.single-product .btech-compatible-products,
.single-product #btech-product-reviews,
.single-product #btech-product-story .btech-product-module:nth-child(n+2) {
	content-visibility: auto;
	contain-intrinsic-size: auto 900px;
}

/* Homepage use-case cards: preserve the imagery while making every text block
 * independent of image brightness, including the narrowest supported phones. */
#btech-home-v5 .b5-use-card::after {
	background: linear-gradient(180deg, rgba(7, 11, 15, .05) 15%, rgba(7, 11, 15, .42) 50%, rgba(7, 11, 15, .97) 100%);
}

#btech-home-v5 .b5-use-card__copy > span {
	display: inline-flex;
	width: max-content;
	max-width: 100%;
	min-height: 24px;
	align-items: center;
	margin: 0 0 9px;
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 6px;
	background: rgba(11, 16, 21, .9);
	box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
	color: #ff8e94;
	line-height: 1.15;
	text-shadow: none;
}

/* Long-form anchors share one accessible, sticky-header-aware destination. */
#btech-rma-form,
#dealer-application {
	scroll-margin-top: 138px;
}

.dealer-hero-actions {
	display: flex;
	margin-top: 23px;
}

.dealer-hero-apply {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 19px;
	border: 1px solid #e1262f;
	border-radius: 9px;
	background: #e1262f;
	box-shadow: 0 9px 24px rgba(225, 38, 47, .2);
	color: #fff !important;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
}

.dealer-hero-apply:hover,
.dealer-hero-apply:focus-visible {
	border-color: #fff;
	background: #bd1720;
	color: #fff !important;
}

@media (max-width: 767px) {
	#btech-home-v5 .b5-use-card::after {
		background: linear-gradient(180deg, rgba(7, 11, 15, .08) 8%, rgba(7, 11, 15, .5) 40%, rgba(7, 11, 15, .98) 100%);
	}

	#btech-home-v5 .b5-use-card__copy {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 20px !important;
	}

	#btech-home-v5 .b5-use-card__copy > span {
		margin-bottom: 8px;
		font-size: 10px;
		letter-spacing: .1em;
	}

	#btech-home-v5 .b5-use-card__copy h3 {
		margin: 0 !important;
		font-size: 24px !important;
		line-height: 1.08 !important;
	}

	#btech-home-v5 .b5-use-card__copy p {
		display: block !important;
		margin: 7px 0 0 !important;
		color: #f0f3f5 !important;
		font-size: 13px !important;
		line-height: 1.42 !important;
	}

	#btech-home-v5 .b5-use-card__copy b {
		margin-top: 11px !important;
		font-size: 13px !important;
		line-height: 1.3 !important;
	}

	#btech-rma-form,
	#dealer-application {
		scroll-margin-top: 156px;
	}

	.dealer-hero-actions,
	.dealer-hero-apply {
		width: 100%;
	}

	.single-product .btech-product-story.btech-audit-collapsible {
		max-height: 2900px;
	}

	.single-product .btech-product-story.btech-audit-expanded {
		max-height: none;
	}

	.btech-audit-story-toggle,
	.btech-audit-reviews-toggle {
		width: calc(100% - 28px);
		margin-top: 14px;
		margin-bottom: 30px;
	}
}
