/*
Theme Name: TAB Blog
Theme URI: https://blog.tabperformance.com
Author: TAB Performance
Author URI: https://tabperformance.com
Description: Child theme of Twenty Twenty-Four, restyled with TAB Performance's brand colors and type (Anton headings, Sunflower body) for the Biker Resources and Performance blog.
Template: twentytwentyfour
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.0
Text Domain: tab-blog
*/

/* Force featured images to fill any aspect-ratio-boxed container (card photo slots, hero, etc.) regardless of source image proportions. */
.wp-block-post-featured-image {
	height: 100%;
	overflow: hidden;
}
.wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Hero: use the featured post's image as a dark, barely-visible background instead of a bordered solid panel. */
.tab-hero-bg {
	position: relative;
	overflow: hidden;
}
.tab-hero-bg > .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
}
.tab-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 9, 9, 0.88);
	z-index: 1;
}
.tab-hero-content {
	position: relative;
	z-index: 2;
}

/* Rail: edge-to-edge, horizontally scrolling row of cards instead of a fixed 3-column grid.
   This keeps rows feeling full even with only 1-2 posts (cards sit at a natural size, left-anchored,
   rather than stretching into a symmetrical grid that leaves obvious empty cells). */
.tab-rail {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.tab-rail .wp-block-post-template {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	gap: 20px;
	padding-left: clamp(20px, 5vw, 80px);
	padding-right: clamp(20px, 5vw, 80px);
	padding-bottom: 12px;
	margin: 0;
	list-style: none;
}
.tab-rail .wp-block-post-template > * {
	flex: 0 0 clamp(240px, 27vw, 400px);
	min-width: 240px;
	margin-top: 0 !important;
}

/* =========================================================
   Landing Page (paid-traffic template) - BluArmor C60PRO
   Scoped to .page-template-landing-page so it never leaks
   into the blog templates above.
   ========================================================= */
.page-template-landing-page body,
.page-template-landing-page {
	background: #0a0909;
}
.page-template-landing-page .wp-site-blocks {
	padding-bottom: 84px; /* room for sticky CTA bar */
}

.lp-section {
	padding-top: clamp(40px, 6vw, 90px);
	padding-bottom: clamp(40px, 6vw, 90px);
	padding-left: clamp(20px, 5vw, 80px);
	padding-right: clamp(20px, 5vw, 80px);
}

/* --- Hero --- */
.lp-hero {
	position: relative;
	background-color: #0a0909;
	background-size: cover;
	background-position: center right;
	color: #fff;
	padding-top: clamp(28px, 4vw, 48px);
	padding-bottom: clamp(28px, 4vw, 48px);
	padding-left: clamp(20px, 5vw, 80px);
	padding-right: clamp(20px, 5vw, 80px);
	min-height: clamp(500px, 64vw, 720px);
	display: flex;
	align-items: center;
	box-sizing: border-box;
	overflow: hidden;
}
.lp-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10,9,9,0.92) 0%, rgba(10,9,9,0.8) 26%, rgba(10,9,9,0.45) 52%, rgba(10,9,9,0.1) 76%, rgba(10,9,9,0) 100%);
	z-index: 1;
}
.lp-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
}
.lp-hero-copy {
	max-width: 540px;
}
.lp-eyebrow {
	color: var(--wp--preset--color--accent);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	font-weight: 600;
	margin: 0 0 12px;
}
.lp-hero h1 {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.015em;
	line-height: 1.05;
	margin: 0 0 16px;
	font-size: clamp(2rem, 4vw, 3rem);
}
.lp-hero-sub {
	color: #d8d8d8;
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	line-height: 1.55;
	margin: 0 0 22px;
	max-width: 46ch;
}
.lp-price-row {
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0 0 22px;
}
.lp-price-sale {
	font-family: var(--wp--preset--font-family--heading);
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	letter-spacing: 0.01em;
}
.lp-price-was {
	color: #9a9a9a;
	text-decoration: line-through;
	font-size: 1.1rem;
}
.lp-price-save {
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 2px;
}
.lp-cta-btn {
	display: inline-block;
	background: var(--wp--preset--color--accent);
	color: #fff !important;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	font-size: 1rem;
	padding: 16px 36px;
	border-radius: 2px;
	transition: background 0.15s ease;
}
.lp-cta-btn:hover {
	background: var(--wp--preset--color--accent-2);
}
.lp-hero-microcopy {
	margin: 14px 0 0;
	color: #9a9a9a;
	font-size: 0.85rem;
}

/* --- Brag bar --- */
.lp-brag-bar {
	background: rgba(255,255,255,0.1);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
}
.lp-brag-item {
	background: #131111;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 12px;
	padding: clamp(24px, 3vw, 36px) 16px;
}
.lp-brag-item svg {
	flex: none;
	width: 30px;
	height: 30px;
	color: var(--wp--preset--color--accent);
}
.lp-brag-item span {
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.3;
}
@media (max-width: 860px) {
	.lp-brag-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
	.lp-brag-bar { grid-template-columns: 1fr; }
}

/* --- Huge product showcase --- */
.lp-product-showcase {
	background: #f5f5f5;
	text-align: center;
}
.lp-product-showcase-sub {
	color: #666;
	font-size: 1rem;
	max-width: 480px;
	margin: 0 auto clamp(32px, 5vw, 56px);
}
.lp-product-showcase-img {
	display: block;
	width: 100%;
	max-width: 900px;
	height: auto;
	margin: 0 auto;
}

/* --- Feature sections (light section on dark page) --- */
.lp-features {
	background: #fff;
	color: #111;
}
.lp-features h2, .lp-compare h2, .lp-faq h2, .lp-specs h2 {
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.015em;
	text-align: center;
	margin: 0 0 40px;
}
.lp-video-section h2, .lp-final-cta h2 {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.015em;
	text-align: center;
	margin: 0 0 40px;
}
.lp-feature-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 36px 40px;
}
.lp-feature-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-3);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.lp-feature-icon svg {
	width: 24px;
	height: 24px;
	color: var(--wp--preset--color--accent);
}
.lp-feature h3 {
	text-transform: uppercase;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	margin: 0 0 8px;
	color: #111;
}
.lp-feature p {
	color: #444;
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
}

/* --- Product Highlights (text-only grid, no icons) --- */
.lp-highlights {
	background: #fff;
}
.lp-highlights-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 28px 32px;
}
.lp-highlight-item h4 {
	text-transform: uppercase;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	margin: 0 0 6px;
	color: #111;
	border-left: 3px solid var(--wp--preset--color--accent);
	padding-left: 12px;
}
.lp-highlight-item p {
	color: #666;
	font-size: 0.88rem;
	line-height: 1.5;
	margin: 0 0 0 15px;
}

/* --- Story sections (real photography, grouped by category) --- */
.lp-story {
	background: #fff;
	color: #111;
}
.lp-category {
	max-width: 1100px;
	margin: 0 auto;
	padding-bottom: clamp(40px, 6vw, 76px);
	margin-bottom: clamp(40px, 6vw, 76px);
	border-bottom: 1px solid #ececec;
}
.lp-category:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}
.lp-category-intro {
	max-width: 700px;
	margin: 0 auto 32px;
	text-align: center;
}
.lp-eyebrow-dark {
	display: block;
	color: var(--wp--preset--color--accent);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
	font-weight: 600;
	margin: 0 0 10px;
}
.lp-category-intro h3 {
	text-transform: uppercase;
	letter-spacing: 0.015em;
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	line-height: 1.15;
	margin: 0 0 14px;
	color: #111;
}
.lp-category-intro p {
	color: #444;
	font-size: 0.98rem;
	line-height: 1.65;
	margin: 0;
}
.lp-image-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.lp-image-grid img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}
.lp-category-narrow .lp-image-single {
	max-width: 480px;
	margin: 0 auto;
}
.lp-image-single img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}
.lp-story-note {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
	padding-top: clamp(20px, 4vw, 40px);
}
.lp-story-note h3 {
	text-transform: uppercase;
	letter-spacing: 0.015em;
	font-size: 1.3rem;
	margin: 0 0 14px;
	color: #111;
}
.lp-story-note p {
	color: #444;
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0;
}
@media (max-width: 640px) {
	.lp-image-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Box list (full included-items list under the diagram) --- */
.lp-box-list {
	max-width: 640px;
	margin: 20px auto 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(140px, 1fr));
	gap: 8px 24px;
	text-align: left;
}
.lp-box-list li {
	color: #444;
	font-size: 0.88rem;
	padding-left: 16px;
	position: relative;
}
.lp-box-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	background: var(--wp--preset--color--accent);
	border-radius: 50%;
}

/* --- Product Details spec sheet --- */
.lp-specs {
	background: #f5f5f5;
	color: #111;
}
.lp-specs-wrap {
	max-width: 780px;
	margin: 0 auto;
}
.lp-specs-wrap details {
	background: #fff;
	border: 1px solid #e2e2e2;
	margin-bottom: 10px;
	padding: 16px 20px;
}
.lp-specs-wrap summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 1rem;
	list-style: none;
}
.lp-specs-wrap summary::-webkit-details-marker { display: none; }
.lp-specs-wrap summary::after {
	content: "+";
	float: right;
	font-size: 1.2rem;
	color: var(--wp--preset--color--accent);
}
.lp-specs-wrap details[open] summary::after {
	content: "\2212";
}
.lp-specs-wrap ul {
	margin: 14px 0 0;
	padding-left: 18px;
	color: #444;
	font-size: 0.92rem;
	line-height: 1.7;
}

/* --- Box contents (text list only) --- */
.lp-box-section {
	background: #f5f5f5;
	text-align: center;
}

/* --- Comparison table --- */
.lp-compare {
	background: #fff;
	color: #111;
}
.lp-compare-table-wrap {
	max-width: 1000px;
	margin: 0 auto;
	overflow-x: auto;
}
table.lp-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
table.lp-compare-table th, table.lp-compare-table td {
	border: 1px solid #e2e2e2;
	padding: 14px 12px;
	text-align: center;
	vertical-align: middle;
}
table.lp-compare-table th:first-child, table.lp-compare-table td:first-child {
	text-align: left;
	font-weight: 600;
}
table.lp-compare-table thead th {
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	background: #151313;
	color: #fff;
}
table.lp-compare-table thead th.lp-highlight-col {
	background: var(--wp--preset--color--accent);
}
table.lp-compare-table td.lp-highlight-col {
	background: var(--wp--preset--color--accent-3);
	font-weight: 600;
}

/* --- Review --- */
.lp-review-wrap {
	background: #f5f5f5;
	color: #111;
}
.lp-review-card {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}
.lp-review-card blockquote {
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.25;
	font-style: normal;
}
.lp-review-stars {
	color: var(--wp--preset--color--accent);
	font-size: 1.4rem;
	letter-spacing: 0.15em;
	margin-bottom: 14px;
}
.lp-review-attribution {
	color: #666;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* --- Video section --- */
.lp-video-section {
	background: #0a0909;
	color: #fff;
}
.lp-video-featured {
	max-width: 720px;
	margin: 0 auto clamp(36px, 5vw, 56px);
	text-align: center;
}
.lp-video-featured-caption {
	margin: 12px 0 0;
	color: #d8d8d8;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.8rem;
}
.lp-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
	max-width: 1100px;
	margin: 0 auto;
}
.lp-video-grid figure {
	margin: 0;
}
.lp-video-grid figcaption {
	margin-top: 10px;
	text-align: center;
	color: #d8d8d8;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.8rem;
}

/* --- FAQ --- */
.lp-faq {
	background: #fff;
	color: #111;
}
.lp-faq-wrap {
	max-width: 760px;
	margin: 0 auto;
}
.lp-faq-wrap details {
	border-bottom: 1px solid #e2e2e2;
	padding: 18px 0;
}
.lp-faq-wrap summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.05rem;
	list-style: none;
}
.lp-faq-wrap summary::-webkit-details-marker { display: none; }
.lp-faq-wrap summary::after {
	content: "+";
	float: right;
	font-size: 1.3rem;
	color: var(--wp--preset--color--accent);
}
.lp-faq-wrap details[open] summary::after {
	content: "\2212";
}
.lp-faq-wrap details p {
	margin: 12px 0 0;
	color: #444;
	line-height: 1.6;
}

/* --- Final CTA --- */
.lp-final-cta {
	background: #151313;
	color: #fff;
	text-align: center;
}
.lp-final-cta h2 {
	text-transform: uppercase;
	letter-spacing: 0.015em;
	margin: 0 0 12px;
}
.lp-final-cta p {
	color: #d8d8d8;
	margin: 0 0 28px;
}

/* --- Mini footer (landing page only — no nav farm) --- */
.lp-mini-footer {
	background: #0a0909;
	color: #8a8a8a;
	text-align: center;
	padding: 24px 20px;
	font-size: 0.8rem;
}
.lp-mini-footer a {
	color: #d8d8d8;
	text-decoration: underline;
}

/* --- Sticky bottom CTA bar --- */
.lp-cta-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	background: #151313;
	border-top: 1px solid rgba(255,255,255,0.1);
	color: #fff;
	padding: 12px clamp(16px, 4vw, 40px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.lp-cta-sticky-label {
	font-size: 0.9rem;
	font-weight: 600;
}
.lp-cta-sticky-label small {
	display: block;
	color: #9a9a9a;
	font-weight: 400;
	font-size: 0.75rem;
}
.lp-cta-sticky .lp-cta-btn {
	padding: 10px 24px;
	font-size: 0.85rem;
}


/* --- Focus ring cleanup: no outline on mouse click, keep it for keyboard nav --- */
a:focus:not(:focus-visible),
.wp-block-site-logo a:focus:not(:focus-visible) {
	outline: none;
}
.wp-block-site-logo a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* --- Keep nav dropdowns above page content (header is later stacking context) --- */
header.wp-block-template-part,
.wp-site-blocks > header {
	position: relative;
	z-index: 500;
}
.wp-block-navigation__submenu-container {
	z-index: 510;
}

/* --- Mobile overlay nav: accordion drill-down (pairs with tab-mobile-accordion script) --- */
.wp-block-navigation__responsive-container.is-menu-open li.open-on-click:not(.tab-sub-open) > .wp-block-navigation__submenu-container {
	display: none;
}
.wp-block-navigation__responsive-container.is-menu-open li.tab-sub-open > button .wp-block-navigation__submenu-icon svg {
	transform: rotate(180deg);
}
/* --- Mobile overlay nav: full-width rows, left-aligned, separated like a drill-down menu --- */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
	align-items: stretch;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > li {
	width: 100%;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	margin: 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > li > a,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > li > button {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	padding: 14px 4px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding-left: 16px;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container > li {
	width: 100%;
	margin: 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container > li > a {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 4px;
}


/* ---- Section dividers (Sep 2026): no thick dark bands between landing sections.
   The dark page background used to show through the theme's default block margins,
   creating full-width black divider bars. Sections now sit flush; where two adjacent
   sections share the same light background, a subtle centered grey hairline
   (matching .lp-category's #ececec border) separates them instead. ---- */
.page-template-landing-page .entry-content > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.page-template-landing-page .lp-highlights + .lp-story,
.page-template-landing-page .lp-box-section + .lp-specs,
.page-template-landing-page .lp-compare + .lp-section:not(.lp-final-cta),
.page-template-landing-page .lp-section + .lp-review-wrap,
.page-template-landing-page .lp-faq + .lp-section:not(.lp-final-cta),
.page-template-landing-page .cmp-wrap + .cmp-wrap,
.page-template-landing-page .cmp-wrap + .lp-faq {
  position: relative;
}
.page-template-landing-page .lp-highlights + .lp-story::before,
.page-template-landing-page .lp-box-section + .lp-specs::before,
.page-template-landing-page .lp-compare + .lp-section:not(.lp-final-cta)::before,
.page-template-landing-page .lp-section + .lp-review-wrap::before,
.page-template-landing-page .lp-faq + .lp-section:not(.lp-final-cta)::before,
.page-template-landing-page .cmp-wrap + .cmp-wrap::before,
.page-template-landing-page .cmp-wrap + .lp-faq::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 48px));
  height: 1px;
  background: #ececec;
}
