/**
 * Best Auto Products Article Style Pro
 * Front-end design system — every selector is scoped beneath .bap-pro.
 */

.bap-pro,
.bap-pro *,
.bap-pro *::before,
.bap-pro *::after {
	box-sizing: border-box;
}

.bap-pro {
	--bap-navy: #071b3a;
	--bap-navy-2: #123f73;
	--bap-blue: #1677ff;
	--bap-blue-dark: #0b5fc7;
	--bap-blue-soft: #eaf4ff;
	--bap-orange: #ff7a00;
	--bap-orange-dark: #d95f00;
	--bap-orange-soft: #fff4e8;
	--bap-cta-text: #071b3a;
	--bap-green: #147a4f;
	--bap-green-soft: #eaf8f1;
	--bap-red: #a83131;
	--bap-red-soft: #fff1f1;
	--bap-amber: #8a5a00;
	--bap-amber-soft: #fff8df;
	--bap-text: #26354a;
	--bap-muted: #607086;
	--bap-bg: #f5f8fc;
	--bap-border: #dbe4ef;
	--bap-white: #ffffff;
	--bap-radius-sm: 9px;
	--bap-radius: 14px;
	--bap-radius-lg: 20px;
	--bap-shadow-sm: 0 6px 18px rgba(7, 27, 58, 0.06);
	--bap-shadow: 0 14px 38px rgba(7, 27, 58, 0.1);
	--bap-font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bap-font-heading: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	width: 100%;
	margin-inline: auto;
	color: var(--bap-text);
	font-family: var(--bap-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.72;
	overflow-wrap: anywhere;
	text-rendering: optimizeLegibility;
}

.bap-pro > :first-child {
	margin-top: 0;
}

.bap-pro > :last-child {
	margin-bottom: 0;
}

.bap-pro p {
	margin: 0 0 1.15em;
}

.bap-pro :where(h2, h3, h4) {
	clear: both;
	margin: 1.7em 0 0.65em;
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.24;
	scroll-margin-top: 40px;
}

.bap-pro h2 {
	font-size: clamp(1.55rem, 3vw, 2rem);
}

.bap-pro h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.48rem);
}

.bap-pro h4 {
	font-size: 1.08rem;
}

.bap-pro a {
	color: var(--bap-blue-dark);
	font-weight: 650;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.16em;
}

.bap-pro a:hover {
	color: var(--bap-orange-dark);
}

.bap-pro :where(ul, ol) {
	margin: 0 0 1.25em;
	padding-left: 1.35em;
}

.bap-pro li {
	margin: 0.42em 0;
	padding-left: 0.18em;
}

.bap-pro li::marker {
	color: var(--bap-blue);
	font-weight: 800;
}

.bap-pro img {
	max-width: 100%;
	height: auto;
}

.bap-pro hr {
	height: 1px;
	margin: 2.1rem 0;
	border: 0;
	background: var(--bap-border);
}

.bap-pro .bap-section-title {
	position: relative;
	margin: 2.2rem 0 1rem;
	padding-left: 16px;
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-size: clamp(1.55rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.22;
	scroll-margin-top: 40px;
}

.bap-pro .bap-section-title::before {
	position: absolute;
	top: 0.12em;
	bottom: 0.12em;
	left: 0;
	width: 5px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--bap-orange), var(--bap-blue));
	content: "";
}

.bap-pro .bap-kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
	color: var(--bap-blue-dark);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.075em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bap-pro .bap-kicker::before {
	width: 18px;
	height: 3px;
	border-radius: 99px;
	background: var(--bap-orange);
	content: "";
}

/* Premium automotive hero */
.bap-pro .bap-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0 0 28px;
	padding: clamp(32px, 6vw, 58px);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: var(--bap-radius-lg);
	background:
		radial-gradient(circle at 92% 8%, rgba(22, 119, 255, 0.52), transparent 31%),
		radial-gradient(circle at 75% 115%, rgba(255, 122, 0, 0.23), transparent 34%),
		linear-gradient(135deg, var(--bap-navy) 0%, #0a2d58 54%, var(--bap-navy-2) 100%);
	color: var(--bap-white);
	box-shadow: var(--bap-shadow);
}

.bap-pro .bap-hero::after {
	position: absolute;
	z-index: -1;
	right: -48px;
	bottom: -63px;
	width: 250px;
	height: 116px;
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-right: 0;
	border-left: 0;
	border-radius: 48% 0 0 48%;
	content: "";
	transform: rotate(-8deg);
}

.bap-pro .bap-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 15px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.21);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.09);
	color: #c7e7ff;
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bap-pro .bap-hero__eyebrow::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bap-orange);
	box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
	content: "";
}

.bap-pro .bap-hero__title {
	max-width: 780px;
	margin: 0 0 16px;
	color: var(--bap-white);
	font-family: var(--bap-font-heading);
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 850;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.bap-pro .bap-hero__lead {
	max-width: 750px;
	margin: 0;
	color: #dbeafe;
	font-size: clamp(1rem, 2vw, 1.12rem);
	line-height: 1.68;
}

.bap-pro .bap-hero__lead strong {
	color: var(--bap-white);
}

.bap-pro .bap-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 22px;
	color: #b8cee7;
	font-size: 0.78rem;
	font-weight: 650;
}

.bap-pro .bap-hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.bap-pro .bap-hero__meta span::before {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--bap-orange);
	content: "";
}

/* Quick answer */
.bap-pro .bap-quick-answer {
	position: relative;
	margin: 25px 0;
	padding: 26px 28px 24px;
	border: 1px solid #bddcff;
	border-left: 6px solid var(--bap-blue);
	border-radius: var(--bap-radius);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 255, 0.94));
	box-shadow: var(--bap-shadow-sm);
}

.bap-pro .bap-quick-answer__label {
	display: block;
	margin-bottom: 7px;
	color: var(--bap-blue-dark);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.bap-pro .bap-quick-answer p {
	margin: 0;
	color: #20364f;
	font-size: 1.02rem;
	line-height: 1.7;
}

.bap-pro .bap-quick-answer strong {
	color: var(--bap-navy);
}

/* Key facts */
.bap-pro .bap-fact-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 13px;
	margin: 25px 0 30px;
}

.bap-pro .bap-fact-card {
	min-width: 0;
	padding: 19px 17px;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius);
	background: var(--bap-white);
	box-shadow: var(--bap-shadow-sm);
}

.bap-pro .bap-fact-card__value {
	display: block;
	margin-bottom: 5px;
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-size: 1.05rem;
	font-weight: 850;
	line-height: 1.25;
}

.bap-pro .bap-fact-card__label {
	display: block;
	color: var(--bap-muted);
	font-size: 0.77rem;
	font-weight: 650;
	line-height: 1.45;
}

.bap-pro .bap-fact-card--accent {
	border-top: 4px solid var(--bap-orange);
	padding-top: 16px;
}

/* Callouts */
.bap-pro .bap-callout,
.bap-pro .bap-safety-warning,
.bap-pro .bap-expert-tip,
.bap-pro .bap-note,
.bap-pro .bap-disclosure {
	position: relative;
	margin: 24px 0;
	padding: 21px 23px;
	border: 1px solid var(--bap-border);
	border-left: 5px solid var(--bap-blue);
	border-radius: var(--bap-radius);
	background: var(--bap-white);
	color: var(--bap-text);
	box-shadow: var(--bap-shadow-sm);
}

.bap-pro :where(.bap-callout, .bap-safety-warning, .bap-expert-tip, .bap-note, .bap-disclosure) p:last-child {
	margin-bottom: 0;
}

.bap-pro .bap-callout__title {
	display: block;
	margin-bottom: 6px;
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-size: 0.98rem;
	font-weight: 850;
	line-height: 1.35;
}

.bap-pro .bap-expert-tip {
	border-color: #bfe7d2;
	border-left-color: var(--bap-green);
	background: var(--bap-green-soft);
}

.bap-pro .bap-expert-tip :where(strong, .bap-callout__title) {
	color: #0d623e;
}

.bap-pro .bap-safety-warning {
	border-color: #f1c2c2;
	border-left-color: var(--bap-red);
	background: var(--bap-red-soft);
}

.bap-pro .bap-safety-warning :where(strong, .bap-callout__title) {
	color: #842424;
}

.bap-pro .bap-note {
	border-color: #efdfa1;
	border-left-color: #d99a00;
	background: var(--bap-amber-soft);
}

.bap-pro .bap-note :where(strong, .bap-callout__title) {
	color: #704700;
}

.bap-pro .bap-disclosure {
	padding: 15px 18px;
	border-color: #ffd3aa;
	border-left-color: var(--bap-orange);
	background: var(--bap-orange-soft);
	color: #5b4635;
	font-size: 0.78rem;
	line-height: 1.55;
	box-shadow: none;
}

.bap-pro .bap-disclosure strong {
	color: var(--bap-navy);
}

/* Buttons and CTA groups */
.bap-pro .bap-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.bap-pro .bap-btn,
.bap-pro .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 20px;
	border: 2px solid transparent;
	border-radius: 9px;
	background: var(--bap-orange);
	box-shadow: 0 8px 20px rgba(217, 95, 0, 0.16);
	color: var(--bap-cta-text) !important;
	font-family: var(--bap-font-heading);
	font-size: 0.84rem;
	font-weight: 850;
	letter-spacing: 0.005em;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.bap-pro .bap-btn:hover,
.bap-pro .wp-block-button__link:hover {
	background: #f06f00;
	box-shadow: 0 10px 25px rgba(217, 95, 0, 0.22);
	color: var(--bap-cta-text) !important;
	transform: translateY(-2px);
}

.bap-pro .bap-btn--secondary {
	border-color: var(--bap-blue-dark);
	background: var(--bap-blue-dark);
	box-shadow: 0 8px 20px rgba(22, 119, 255, 0.16);
	color: var(--bap-white) !important;
}

.bap-pro .bap-btn--secondary:hover {
	border-color: var(--bap-blue-dark);
	background: var(--bap-blue-dark);
	color: var(--bap-white) !important;
}

.bap-pro .bap-btn--outline {
	border-color: var(--bap-border);
	background: var(--bap-white);
	box-shadow: none;
	color: var(--bap-navy) !important;
}

.bap-pro .bap-btn--outline:hover {
	border-color: var(--bap-blue);
	background: var(--bap-blue-soft);
	color: var(--bap-navy) !important;
}

.bap-pro .bap-btn__arrow {
	margin-left: 8px;
	font-size: 1.1em;
	line-height: 1;
}

/* Top recommendation cards */
.bap-pro .bap-recommendation-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 25px 0 32px;
}

.bap-pro .bap-recommendation-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px 21px 21px;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius);
	background: var(--bap-white);
	box-shadow: var(--bap-shadow-sm);
}

.bap-pro .bap-recommendation-card--featured {
	border: 2px solid var(--bap-blue);
	background: linear-gradient(180deg, #f7fbff, var(--bap-white));
	box-shadow: var(--bap-shadow);
}

.bap-pro .bap-badge {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	margin-bottom: 13px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--bap-blue-soft);
	color: var(--bap-blue-dark);
	font-size: 0.66rem;
	font-weight: 900;
	letter-spacing: 0.055em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bap-pro .bap-badge--orange {
	background: var(--bap-orange-soft);
	color: #9a4300;
}

.bap-pro .bap-badge--green {
	background: var(--bap-green-soft);
	color: #0d623e;
}

.bap-pro .bap-recommendation-card__title {
	margin: 0 0 8px;
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-size: 1.08rem;
	font-weight: 850;
	line-height: 1.3;
}

.bap-pro .bap-recommendation-card p {
	margin-bottom: 14px;
	color: var(--bap-muted);
	font-size: 0.84rem;
	line-height: 1.6;
}

.bap-pro .bap-best-for {
	margin-top: auto;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--bap-bg);
	color: var(--bap-navy);
	font-size: 0.76rem;
	font-weight: 750;
	line-height: 1.45;
}

.bap-pro .bap-recommendation-card .bap-btn {
	width: 100%;
	margin-top: 14px;
}

/* Full product recommendation card */
.bap-pro .bap-product-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.55fr);
	gap: 26px;
	margin: 28px 0;
	padding: 26px;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius-lg);
	background: var(--bap-white);
	box-shadow: var(--bap-shadow);
}

.bap-pro .bap-product-card--featured {
	border-top: 5px solid var(--bap-orange);
	padding-top: 22px;
}

.bap-pro .bap-product-card__media {
	position: relative;
	display: grid;
	min-height: 220px;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--bap-border);
	border-radius: 12px;
	background: linear-gradient(145deg, #ffffff, #eef4fa);
}

.bap-pro .bap-product-card__media img {
	width: 100%;
	height: 100%;
	max-height: 285px;
	object-fit: contain;
	padding: 15px;
}

.bap-pro .bap-product-card__content {
	min-width: 0;
}

.bap-pro .bap-product-card__title {
	margin: 0 0 8px;
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-size: clamp(1.25rem, 2.6vw, 1.65rem);
	font-weight: 850;
	letter-spacing: -0.025em;
	line-height: 1.22;
}

.bap-pro .bap-product-card__summary {
	margin-bottom: 14px;
	color: var(--bap-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

.bap-pro .bap-feature-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	margin: 15px 0 0;
	padding: 0;
	list-style: none;
}

.bap-pro .bap-feature-list li {
	position: relative;
	margin: 0;
	padding: 7px 8px 7px 25px;
	border-radius: 7px;
	background: var(--bap-bg);
	color: #3d4e63;
	font-size: 0.76rem;
	line-height: 1.45;
}

.bap-pro .bap-feature-list li::before {
	position: absolute;
	top: 8px;
	left: 8px;
	color: var(--bap-green);
	content: "✓";
	font-weight: 900;
}

.bap-pro .bap-product-card__fine-print {
	margin: 12px 0 0;
	color: var(--bap-muted);
	font-size: 0.69rem;
	line-height: 1.5;
}

/* Pros and considerations */
.bap-pro .bap-pros-cons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 22px 0;
}

.bap-pro .bap-pros,
.bap-pro .bap-considerations {
	padding: 21px;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius);
	background: var(--bap-white);
}

.bap-pro .bap-pros {
	border-top: 4px solid var(--bap-green);
	background: linear-gradient(180deg, var(--bap-green-soft), var(--bap-white) 42%);
}

.bap-pro .bap-considerations {
	border-top: 4px solid #cf8200;
	background: linear-gradient(180deg, var(--bap-amber-soft), var(--bap-white) 42%);
}

.bap-pro .bap-pros-cons__title {
	display: block;
	margin-bottom: 10px;
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-size: 0.98rem;
	font-weight: 850;
}

.bap-pro .bap-pros :where(ul, ol),
.bap-pro .bap-considerations :where(ul, ol) {
	margin-bottom: 0;
}

.bap-pro .bap-pros li::marker {
	color: var(--bap-green);
}

.bap-pro .bap-considerations li::marker {
	color: #b36d00;
}

/* Responsive comparison and specification tables */
.bap-pro .bap-table-wrap {
	width: 100%;
	margin: 25px 0 30px;
	overflow-x: auto;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius);
	background: var(--bap-white);
	box-shadow: var(--bap-shadow-sm);
	-webkit-overflow-scrolling: touch;
}

.bap-pro .bap-table-wrap:focus-within {
	outline: 3px solid rgba(22, 119, 255, 0.22);
	outline-offset: 2px;
}

.bap-pro .bap-table-wrap table,
.bap-pro table.bap-comparison-table,
.bap-pro table.bap-specs-table {
	width: 100%;
	min-width: 650px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: var(--bap-white);
	font-size: 0.78rem;
	line-height: 1.5;
}

.bap-pro .bap-table-wrap caption {
	padding: 13px 17px;
	border-bottom: 1px solid var(--bap-border);
	background: var(--bap-bg);
	color: var(--bap-muted);
	font-size: 0.7rem;
	font-weight: 650;
	text-align: left;
}

.bap-pro .bap-table-wrap th {
	padding: 14px 16px;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--bap-navy);
	color: var(--bap-white);
	font-family: var(--bap-font-heading);
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.015em;
	text-align: left;
	vertical-align: middle;
}

.bap-pro .bap-table-wrap th:last-child {
	border-right: 0;
}

.bap-pro .bap-table-wrap td {
	padding: 14px 16px;
	border: 0;
	border-right: 1px solid var(--bap-border);
	border-bottom: 1px solid var(--bap-border);
	color: var(--bap-text);
	text-align: left;
	vertical-align: top;
}

.bap-pro .bap-table-wrap td:last-child {
	border-right: 0;
}

.bap-pro .bap-table-wrap tbody tr:last-child td {
	border-bottom: 0;
}

.bap-pro .bap-table-wrap tbody tr:nth-child(even) td {
	background: #f8fafd;
}

.bap-pro .bap-table-wrap tbody tr:hover td {
	background: #f0f7ff;
}

.bap-pro .bap-table-wrap .bap-table-pick {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--bap-green-soft);
	color: #0d623e;
	font-size: 0.66rem;
	font-weight: 850;
	white-space: nowrap;
}

.bap-pro .bap-specs-table th[scope="row"] {
	width: 38%;
	background: #eff5fb;
	color: var(--bap-navy);
}

/* Vehicle compatibility */
.bap-pro .bap-compatibility {
	margin: 26px 0;
	overflow: hidden;
	border: 1px solid #bfd8f4;
	border-radius: var(--bap-radius-lg);
	background: var(--bap-white);
	box-shadow: var(--bap-shadow-sm);
}

.bap-pro .bap-compatibility__header {
	padding: 20px 24px;
	background: linear-gradient(135deg, var(--bap-navy), var(--bap-navy-2));
	color: var(--bap-white);
}

.bap-pro .bap-compatibility__title {
	display: block;
	margin: 0 0 4px;
	color: var(--bap-white);
	font-family: var(--bap-font-heading);
	font-size: 1.13rem;
	font-weight: 850;
	line-height: 1.3;
}

.bap-pro .bap-compatibility__header p {
	margin: 0;
	color: #d7e8fa;
	font-size: 0.78rem;
	line-height: 1.55;
}

.bap-pro .bap-compatibility__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
}

.bap-pro .bap-compatibility__item {
	display: grid;
	grid-template-columns: 95px 1fr;
	gap: 10px;
	padding: 15px 20px;
	border-right: 1px solid var(--bap-border);
	border-bottom: 1px solid var(--bap-border);
	font-size: 0.77rem;
	line-height: 1.5;
}

.bap-pro .bap-compatibility__item:nth-child(2n) {
	border-right: 0;
}

.bap-pro .bap-compatibility__label {
	color: var(--bap-muted);
	font-weight: 700;
}

.bap-pro .bap-compatibility__value {
	color: var(--bap-navy);
	font-weight: 750;
}

.bap-pro .bap-fit-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 850;
	line-height: 1.3;
}

.bap-pro .bap-fit-status::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	content: "";
}

.bap-pro .bap-fit-status--confirmed {
	background: var(--bap-green-soft);
	color: #0d623e;
}

.bap-pro .bap-fit-status--confirmed::before {
	background: var(--bap-green);
}

.bap-pro .bap-fit-status--verify {
	background: var(--bap-amber-soft);
	color: #704700;
}

.bap-pro .bap-fit-status--verify::before {
	background: #d99a00;
}

.bap-pro .bap-compatibility__note {
	margin: 0;
	padding: 15px 20px;
	background: var(--bap-blue-soft);
	color: #315475;
	font-size: 0.74rem;
	line-height: 1.55;
}

/* Installation difficulty */
.bap-pro .bap-installation-guide {
	margin: 26px 0;
	padding: 25px;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius-lg);
	background: var(--bap-white);
	box-shadow: var(--bap-shadow-sm);
}

.bap-pro .bap-installation-guide__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.bap-pro .bap-installation-guide__title {
	display: block;
	margin-bottom: 5px;
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-size: 1.12rem;
	font-weight: 850;
	line-height: 1.3;
}

.bap-pro .bap-installation-guide__summary {
	margin: 0;
	color: var(--bap-muted);
	font-size: 0.78rem;
	line-height: 1.55;
}

.bap-pro .bap-difficulty {
	flex: 0 0 auto;
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--bap-green-soft);
	color: #0d623e;
	font-size: 0.69rem;
	font-weight: 850;
	line-height: 1.3;
	white-space: nowrap;
}

.bap-pro .bap-difficulty--moderate {
	background: var(--bap-amber-soft);
	color: #704700;
}

.bap-pro .bap-difficulty--advanced {
	background: var(--bap-red-soft);
	color: #842424;
}

.bap-pro .bap-meter {
	margin: 17px 0;
}

.bap-pro .bap-meter__labels {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	color: var(--bap-muted);
	font-size: 0.65rem;
	font-weight: 700;
}

.bap-pro .bap-meter__track {
	overflow: hidden;
	height: 10px;
	border-radius: 999px;
	background: #e6edf5;
}

.bap-pro .bap-meter__fill {
	display: block;
	width: var(--bap-difficulty-level, 35%);
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--bap-green), #e3a000 62%, var(--bap-red));
}

.bap-pro .bap-installation-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.bap-pro .bap-installation-meta__item {
	padding: 12px;
	border-radius: 9px;
	background: var(--bap-bg);
}

.bap-pro .bap-installation-meta__label {
	display: block;
	margin-bottom: 3px;
	color: var(--bap-muted);
	font-size: 0.65rem;
	font-weight: 750;
	text-transform: uppercase;
}

.bap-pro .bap-installation-meta__value {
	display: block;
	color: var(--bap-navy);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.35;
}

/* Step-by-step instructions */
.bap-pro .bap-steps {
	display: grid;
	gap: 13px;
	margin: 24px 0 30px;
	padding: 0;
	list-style: none;
	counter-reset: bap-step;
}

.bap-pro .bap-steps > li {
	position: relative;
	min-height: 62px;
	margin: 0;
	padding: 18px 20px 18px 72px;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius);
	background: var(--bap-white);
	box-shadow: var(--bap-shadow-sm);
	counter-increment: bap-step;
}

.bap-pro .bap-steps > li::before {
	position: absolute;
	top: 17px;
	left: 18px;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 50%;
	background: var(--bap-navy);
	box-shadow: 0 0 0 5px var(--bap-blue-soft);
	color: var(--bap-white);
	content: counter(bap-step);
	font-family: var(--bap-font-heading);
	font-size: 0.78rem;
	font-weight: 850;
}

.bap-pro .bap-step__title {
	display: block;
	margin-bottom: 3px;
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-size: 0.96rem;
	font-weight: 850;
	line-height: 1.35;
}

.bap-pro .bap-steps p {
	margin: 0;
	color: var(--bap-muted);
	font-size: 0.82rem;
	line-height: 1.6;
}

/* Maintenance and buying-guide checklists */
.bap-pro .bap-checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 22px 0 28px;
	padding: 0;
	list-style: none;
}

.bap-pro .bap-checklist li {
	position: relative;
	margin: 0;
	padding: 14px 15px 14px 45px;
	border: 1px solid var(--bap-border);
	border-radius: 10px;
	background: var(--bap-white);
	color: #35485e;
	font-size: 0.79rem;
	line-height: 1.5;
}

.bap-pro .bap-checklist li::before {
	position: absolute;
	top: 13px;
	left: 14px;
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border: 2px solid var(--bap-green);
	border-radius: 6px;
	background: var(--bap-green-soft);
	color: var(--bap-green);
	content: "✓";
	font-size: 0.69rem;
	font-weight: 900;
	line-height: 1;
}

.bap-pro .bap-checklist--buying li::before {
	border-color: var(--bap-blue);
	background: var(--bap-blue-soft);
	color: var(--bap-blue-dark);
	content: "•";
	font-size: 1rem;
}

/* Content plus sticky table of contents */
.bap-pro .bap-content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 255px);
	gap: 30px;
	align-items: start;
	margin: 25px 0;
}

.bap-pro .bap-article-body {
	min-width: 0;
}

.bap-pro .bap-toc {
	position: sticky;
	top: 24px;
	overflow: hidden;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius);
	background: var(--bap-white);
	box-shadow: var(--bap-shadow-sm);
}

.bap-pro .bap-toc__title {
	display: block;
	margin: 0;
	padding: 15px 17px;
	border-bottom: 1px solid var(--bap-border);
	background: var(--bap-navy);
	color: var(--bap-white);
	font-family: var(--bap-font-heading);
	font-size: 0.82rem;
	font-weight: 850;
	line-height: 1.35;
}

.bap-pro .bap-toc__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 12px;
	list-style: none;
}

.bap-pro .bap-toc__list li {
	margin: 0;
	padding: 0;
}

.bap-pro .bap-toc__list li::marker {
	content: "";
}

.bap-pro .bap-toc__list a {
	display: block;
	padding: 7px 8px;
	border-radius: 6px;
	color: #41536a;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.bap-pro .bap-toc__list a:hover {
	background: var(--bap-blue-soft);
	color: var(--bap-blue-dark);
}

.bap-pro .bap-toc__list .is-subitem a {
	padding-left: 20px;
	color: var(--bap-muted);
	font-size: 0.67rem;
}

.bap-pro .bap-toc__empty {
	margin: 0;
	padding: 14px;
	color: var(--bap-muted);
	font-size: 0.7rem;
}

/* Author box */
.bap-pro .bap-author-box {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr);
	gap: 23px;
	align-items: center;
	margin: 32px 0;
	padding: 25px;
	border: 1px solid var(--bap-border);
	border-top: 5px solid var(--bap-blue);
	border-radius: var(--bap-radius-lg);
	background:
		radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.1), transparent 28%),
		var(--bap-white);
	box-shadow: var(--bap-shadow);
}

.bap-pro .bap-author-box__image,
.bap-pro img.bap-author-box__image {
	width: 124px;
	height: 124px;
	margin: 0;
	border: 5px solid var(--bap-white);
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--bap-blue), 0 10px 24px rgba(7, 27, 58, 0.16);
	object-fit: cover;
}

.bap-pro .bap-author-box__content {
	min-width: 0;
}

.bap-pro .bap-author-box__eyebrow {
	display: block;
	margin-bottom: 2px;
	color: var(--bap-blue-dark);
	font-size: 0.66rem;
	font-weight: 850;
	letter-spacing: 0.075em;
	line-height: 1.35;
	text-transform: uppercase;
}

.bap-pro .bap-author-box__name {
	color: var(--bap-navy);
	font-family: var(--bap-font-heading);
	font-size: 1.28rem;
	font-weight: 850;
	line-height: 1.25;
}

.bap-pro .bap-author-box__role {
	margin-top: 2px;
	color: var(--bap-muted);
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.45;
}

.bap-pro .bap-author-box__bio {
	margin-top: 10px;
	color: #44566c;
	font-size: 0.8rem;
	line-height: 1.6;
}

.bap-pro .bap-author-box__bio p {
	margin: 0;
}

.bap-pro .bap-author-box__button {
	min-height: 40px;
	margin-top: 13px;
	padding: 9px 15px;
	font-size: 0.72rem;
}

/* Native FAQ accordions */
.bap-pro .bap-faq {
	display: grid;
	gap: 10px;
	margin: 24px 0 30px;
}

.bap-pro .bap-faq details {
	overflow: clip;
	border: 1px solid var(--bap-border);
	border-radius: 11px;
	background: var(--bap-white);
	box-shadow: var(--bap-shadow-sm);
}

.bap-pro .bap-faq details[open] {
	border-color: #b8d8ff;
}

.bap-pro .bap-faq summary {
	position: relative;
	display: block;
	padding: 17px 52px 17px 19px;
	color: var(--bap-navy);
	cursor: pointer;
	font-family: var(--bap-font-heading);
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.45;
	list-style: none;
}

.bap-pro .bap-faq summary::-webkit-details-marker {
	display: none;
}

.bap-pro .bap-faq summary::after {
	position: absolute;
	top: 50%;
	right: 17px;
	display: grid;
	width: 26px;
	height: 26px;
	place-items: center;
	border-radius: 50%;
	background: var(--bap-blue-soft);
	color: var(--bap-blue-dark);
	content: "+";
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-50%);
}

.bap-pro .bap-faq details[open] summary::after {
	content: "–";
}

.bap-pro .bap-faq summary:hover {
	background: #f8fbff;
}

.bap-pro .bap-faq__answer {
	padding: 0 19px 18px;
	border-top: 1px solid var(--bap-border);
	color: #41536a;
	font-size: 0.84rem;
	line-height: 1.68;
}

.bap-pro .bap-faq__answer > :first-child {
	margin-top: 15px;
}

.bap-pro .bap-faq__answer > :last-child {
	margin-bottom: 0;
}

/* Final recommendation CTA */
.bap-pro .bap-final-recommendation {
	position: relative;
	overflow: hidden;
	margin: 34px 0;
	padding: clamp(28px, 5vw, 42px);
	border-radius: var(--bap-radius-lg);
	background:
		radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.45), transparent 34%),
		linear-gradient(135deg, var(--bap-navy), #0d3565);
	color: var(--bap-white);
	box-shadow: var(--bap-shadow);
}

.bap-pro .bap-final-recommendation__title {
	display: block;
	margin: 0 0 10px;
	color: var(--bap-white);
	font-family: var(--bap-font-heading);
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 850;
	line-height: 1.25;
}

.bap-pro .bap-final-recommendation p {
	max-width: 700px;
	margin: 0;
	color: #dbeafe;
	font-size: 0.9rem;
	line-height: 1.65;
}

.bap-pro .bap-final-recommendation .bap-actions {
	margin-top: 20px;
}

/* Image panel and captions */
.bap-pro .bap-image-panel {
	margin: 26px 0;
	overflow: hidden;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius);
	background: var(--bap-white);
	box-shadow: var(--bap-shadow-sm);
}

.bap-pro .bap-image-panel img {
	display: block;
	width: 100%;
	margin: 0;
}

.bap-pro .bap-image-caption {
	margin: 0;
	padding: 10px 14px;
	border-top: 1px solid var(--bap-border);
	color: var(--bap-muted);
	font-size: 0.68rem;
	line-height: 1.5;
	text-align: center;
}

/* Baseline support for normal Gutenberg content inside the safe wrapper */
.bap-pro.bap-pro--classic > h2,
.bap-pro.bap-pro--classic > .wp-block-heading:is(h2) {
	position: relative;
	padding-left: 16px;
}

.bap-pro.bap-pro--classic > h2::before,
.bap-pro.bap-pro--classic > .wp-block-heading:is(h2)::before {
	position: absolute;
	top: 0.15em;
	bottom: 0.15em;
	left: 0;
	width: 5px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--bap-orange), var(--bap-blue));
	content: "";
}

.bap-pro blockquote {
	margin: 1.5rem 0;
	padding: 18px 22px;
	border: 0;
	border-left: 5px solid var(--bap-blue);
	border-radius: 0 var(--bap-radius) var(--bap-radius) 0;
	background: var(--bap-blue-soft);
	color: #315475;
	font-style: normal;
}

.bap-pro blockquote > :last-child {
	margin-bottom: 0;
}

.bap-pro .wp-block-table {
	margin: 25px 0;
	overflow-x: auto;
	border: 1px solid var(--bap-border);
	border-radius: var(--bap-radius);
}

.bap-pro .wp-block-table table {
	min-width: 620px;
	margin: 0;
	border-collapse: collapse;
}

.bap-pro .wp-block-table :where(th, td) {
	padding: 13px 15px;
	border: 1px solid var(--bap-border);
}

.bap-pro .wp-block-table th {
	background: var(--bap-navy);
	color: var(--bap-white);
}

.bap-pro .wp-block-image {
	margin-block: 1.6rem;
}

.bap-pro .wp-block-image img {
	border-radius: var(--bap-radius);
}

.bap-pro .wp-block-image figcaption,
.bap-pro figcaption {
	color: var(--bap-muted);
	font-size: 0.7rem;
	line-height: 1.5;
}

/* Accessibility */
.bap-pro :focus-visible {
	outline: 3px solid var(--bap-orange);
	outline-offset: 4px;
	border-radius: 5px;
}

.bap-pro .bap-btn:focus-visible,
.bap-pro .wp-block-button__link:focus-visible {
	outline-color: var(--bap-navy);
	box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.34);
}

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

/* Tablet */
@media (max-width: 960px) {
	.bap-pro .bap-content-layout {
		grid-template-columns: 1fr;
	}

	.bap-pro .bap-toc {
		position: static;
		grid-row: 1;
	}

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

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

	.bap-pro .bap-recommendation-card--featured {
		grid-column: 1 / -1;
	}
}

/* Mobile */
@media (max-width: 760px) {
	.bap-pro {
		font-size: 16px;
		line-height: 1.68;
	}

	.bap-pro .bap-hero {
		padding: 34px 24px;
		border-radius: 15px;
	}

	.bap-pro .bap-hero__title {
		font-size: clamp(1.8rem, 10vw, 2.5rem);
	}

	.bap-pro .bap-quick-answer {
		padding: 22px 20px;
	}

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

	.bap-pro .bap-product-card {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 21px;
		border-radius: 15px;
	}

	.bap-pro .bap-product-card__media {
		min-height: 200px;
	}

	.bap-pro .bap-pros-cons {
		grid-template-columns: 1fr;
	}

	.bap-pro .bap-compatibility__grid {
		grid-template-columns: 1fr;
	}

	.bap-pro .bap-compatibility__item,
	.bap-pro .bap-compatibility__item:nth-child(2n) {
		border-right: 0;
	}

	.bap-pro .bap-installation-meta {
		grid-template-columns: 1fr;
	}

	.bap-pro .bap-checklist {
		grid-template-columns: 1fr;
	}

	.bap-pro .bap-author-box {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 18px;
		padding: 21px;
	}

	.bap-pro .bap-author-box__image,
	.bap-pro img.bap-author-box__image {
		width: 96px;
		height: 96px;
	}

	.bap-pro .bap-table-wrap {
		border-radius: 10px;
	}
}

/* Small phones */
@media (max-width: 560px) {
	.bap-pro .bap-recommendation-grid {
		grid-template-columns: 1fr;
	}

	.bap-pro .bap-recommendation-card--featured {
		grid-column: auto;
	}

	.bap-pro .bap-feature-list {
		grid-template-columns: 1fr;
	}

	.bap-pro .bap-toc__list {
		grid-template-columns: 1fr;
	}

	.bap-pro .bap-installation-guide__top {
		flex-direction: column;
		gap: 10px;
	}

	.bap-pro .bap-author-box {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.bap-pro .bap-author-box__image,
	.bap-pro img.bap-author-box__image {
		margin-inline: auto;
	}

	.bap-pro .bap-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.bap-pro .bap-btn,
	.bap-pro .wp-block-button__link {
		width: 100%;
	}

	.bap-pro .bap-steps > li {
		padding: 68px 17px 17px;
	}

	.bap-pro .bap-steps > li::before {
		top: 16px;
		left: 17px;
	}

	.bap-pro .bap-table-wrap--stack table {
		min-width: 0;
	}

	.bap-pro .bap-table-wrap--stack thead {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.bap-pro .bap-table-wrap--stack tbody,
	.bap-pro .bap-table-wrap--stack tr,
	.bap-pro .bap-table-wrap--stack td {
		display: block;
		width: 100%;
	}

	.bap-pro .bap-table-wrap--stack tbody tr {
		padding: 8px 0;
		border-bottom: 8px solid var(--bap-bg);
	}

	.bap-pro .bap-table-wrap--stack tbody tr:last-child {
		border-bottom: 0;
	}

	.bap-pro .bap-table-wrap--stack td {
		display: grid;
		grid-template-columns: minmax(105px, 40%) minmax(0, 1fr);
		gap: 12px;
		padding: 11px 14px;
		border-right: 0;
		text-align: left;
	}

	.bap-pro .bap-table-wrap--stack td::before {
		color: var(--bap-navy);
		content: attr(data-label);
		font-weight: 800;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bap-pro *,
	.bap-pro *::before,
	.bap-pro *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.bap-pro {
		max-width: none !important;
		color: #000;
		font-size: 11pt;
	}

	.bap-pro .bap-hero,
	.bap-pro .bap-final-recommendation {
		background: #fff !important;
		box-shadow: none;
		color: #000;
	}

	.bap-pro .bap-hero :where(.bap-hero__title, .bap-hero__lead),
	.bap-pro .bap-final-recommendation :where(.bap-final-recommendation__title, p) {
		color: #000;
	}

	.bap-pro .bap-btn,
	.bap-pro .bap-toc {
		display: none !important;
	}

	.bap-pro .bap-content-layout {
		display: block;
	}

	.bap-pro :where(.bap-product-card, .bap-author-box, .bap-quick-answer) {
		break-inside: avoid;
		box-shadow: none;
	}
}
