/*
Theme Name:   Raptor R Sema 26
Theme URI:    https://ko-websites.com/
Author:       KO Websites
Author URI:   https://ko-websites.com/
Description:  Child theme of Twenty Twenty-Five for the Raptor R SEMA 26 website. Dark industrial look with brand orange (#FF6600), Big Shoulders Display headlines, Saira Condensed labels and Barlow body copy. Requires the Advanced Custom Fields PRO plugin (ACF PRO) to be installed and active for Theme Settings and the Section Builder.
Template:     twentytwentyfive
Version:      1.7.4
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  raptor-twentytwentyfive-child
*/

/* -----------------------------------------------------------------
 * Most design tokens (colors, fonts, sizes, spacing, layout) live in
 * theme.json. This file only holds what theme.json can't express.
 * ----------------------------------------------------------------- */

/* ---------- Accessibility ---------- */
/* Anchor links and keyboard focus stop below the fixed header (WCAG 2.4.11). */
html {
	scroll-padding-top: calc(var(--raptor-header-h-scrolled, 68px) + var(--wp-admin--admin-bar--height, 0px) + 16px);
}

/* Visible keyboard focus everywhere (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}

/* Orange buttons: white ring so focus shows against the orange. */
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--contrast);
}

/* Text only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--contrast);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--base);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* Footer copyright links: same colour as the text, orange on hover/focus.
 * The underline keeps them recognisable as links (WCAG 1.4.1). */
.raptor-footer p a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	transition: color 0.15s ease;
}
.raptor-footer p a:hover,
.raptor-footer p a:focus-visible {
	color: var(--wp--preset--color--accent-1);
}

/* Reduced motion: no smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto !important; }
}

/* Headings are always uppercase in the design. */
h1, h2, h3, h4, h5, h6,
.wp-block-site-title {
	text-transform: uppercase;
}

/* ---------- Header / Nav ---------- */
/* Figma "Header / Nav": 100px bar, #090A0C, 1px gunmetal bottom rule,
 * nav items spread across the same 1280px column as the sections.
 * Fixed to the top; shrinks when the page is scrolled (assets/js/header.js
 * adds .is-scrolled). */
:root {
	--raptor-header-h: 100px;
	--raptor-header-h-scrolled: 68px;
}

/* Spacer: the template part keeps the header's full height in the flow
 * so content never jumps when the header shrinks. */
.wp-block-template-part:has(> .raptor-header) {
	height: var(--raptor-header-h);
	margin-block: 0;
}

.raptor-header {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	box-sizing: border-box;
	width: auto;
	max-width: none !important;
	min-height: var(--raptor-header-h);
	margin: 0 !important;
	/* Same content width as .acfsb-container: 1280px column, 80px gutter min. */
	padding-left: max(var(--wp--preset--spacing--70), (100% - var(--wp--style--global--wide-size, 1280px)) / 2) !important;
	padding-right: max(var(--wp--preset--spacing--70), (100% - var(--wp--style--global--wide-size, 1280px)) / 2) !important;
	background-color: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	transition: min-height 0.25s ease, box-shadow 0.25s ease;
}

.raptor-header.is-scrolled {
	min-height: var(--raptor-header-h-scrolled);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Nav type: Saira Condensed 800, 21px, 10% tracking (Figma "Nav / *"). */
.raptor-header .wp-block-navigation {
	font-family: var(--wp--preset--font-family--saira-condensed);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
}

.raptor-header .wp-block-navigation-item__content {
	position: relative;
	display: block;
	padding-block: 12px;
	transition: color 0.15s ease, padding 0.25s ease;
}

.raptor-header.is-scrolled .wp-block-navigation-item__content {
	padding-block: 8px;
}

.raptor-header .wp-block-navigation-item__content:hover,
.raptor-header .current-menu-item > .wp-block-navigation-item__content,
.raptor-header .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--contrast);
}

/* Orange "active" bar under the current item: 34 × 4px. */
.raptor-header .current-menu-item > .wp-block-navigation-item__content::after,
.raptor-header .wp-block-navigation-item__content[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	width: 34px;
	height: 4px;
	background: var(--wp--preset--color--accent-1);
	transform: translateX(-50%) skewX(-20deg);
}

/* Desktop: nav fills the column and the items spread edge to edge. */
@media (min-width: 600px) {
	.raptor-header .wp-block-navigation,
	.raptor-header .wp-block-navigation__responsive-container:not(.is-menu-open),
	.raptor-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-close,
	.raptor-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-dialog,
	.raptor-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content,
	.raptor-header .wp-block-navigation__container,
	.raptor-header .wp-block-page-list {
		flex: 1 1 auto;
		width: 100%;
	}

	.raptor-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content,
	.raptor-header .wp-block-navigation__container,
	.raptor-header .wp-block-page-list {
		justify-content: space-between;
	}

	/* Keep a logo / site title (if one is added) clear of the menu. */
	.raptor-header > .wp-block-site-title + .wp-block-navigation {
		margin-left: var(--wp--preset--spacing--50);
	}
}

/* Smaller bar on phones; menu opens in the full-screen overlay. */
@media (max-width: 599px) {
	:root {
		--raptor-header-h: 72px;
		--raptor-header-h-scrolled: 56px;
	}
	.raptor-header {
		justify-content: flex-end;
	}
	/* The admin bar scrolls away on phones, so pin the header to the top once scrolled. */
	.admin-bar .raptor-header.is-scrolled {
		top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.raptor-header,
	.raptor-header .wp-block-navigation-item__content {
		transition: none;
	}
}

/* ---------- Buttons ---------- */
/* Primary button: solid orange, square, condensed caps with arrow. */
.wp-block-button:not(.is-style-outline) .wp-block-button__link::after {
	content: "\2192";
	content: "\2192" / ""; /* Decorative: not read out by screen readers. */
	display: inline-block;
	margin-left: 16px;
	transition: transform 0.15s ease;
}

.wp-block-button .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.wp-block-button .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* ---------- Custom block styles (registered in functions.php) ---------- */

/* Eyebrow: small orange condensed label with a slanted dash, e.g. "SEMA SHOW 2026 · LAS VEGAS". */
.is-style-raptor-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--wp--preset--font-family--saira-condensed);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1);
}

.is-style-raptor-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 36px;
	height: 6px;
	background: var(--wp--preset--color--accent-1);
	transform: skewX(-30deg);
}

/* Outline numeral: giant stroked number behind a section ("01", "02"). */
.is-style-raptor-outline-numeral {
	font-family: var(--wp--preset--font-family--big-shoulders-display) !important;
	font-weight: 900;
	font-size: clamp(12rem, 29vw, 26.25rem);
	line-height: 0.8;
	color: transparent !important;
	-webkit-text-stroke: 2px var(--wp--preset--color--contrast);
	opacity: 0.07;
	pointer-events: none;
	user-select: none;
	margin: 0;
}

/* Hazard stripe: 10px orange/black diagonal divider (Separator block style). */
.wp-block-separator.is-style-raptor-hazard {
	height: 10px;
	width: 100%;
	max-width: none;
	border: 0;
	opacity: 1;
	background: repeating-linear-gradient(
		-45deg,
		var(--wp--preset--color--accent-1) 0 12px,
		var(--wp--preset--color--base) 12px 24px
	);
}

/* Spec bar: horizontal list of label/value pairs (Group block style). */
.is-style-raptor-spec-bar {
	border-top: 1px solid var(--wp--preset--color--accent-6);
}

.is-style-raptor-spec-bar > * + * {
	border-left: 1px solid var(--wp--preset--color--accent-6);
}

/* Angled cut on images (Image / Cover block style). */
.is-style-raptor-angled img,
.wp-block-cover.is-style-raptor-angled {
	clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

/* Card used in the sponsor grid (Group block style). */
.is-style-raptor-card {
	background: var(--wp--preset--color--accent-3);
	transition: background-color 0.15s ease;
}

.is-style-raptor-card:hover {
	background: var(--wp--preset--color--accent-2);
}

/* ---------- Footer ---------- */
footer{margin:0;}
.raptor-footer {
	border-top: 3px solid var(--wp--preset--color--accent-1);
}

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.is-style-raptor-spec-bar > * + * {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--accent-6);
	}

	.is-style-raptor-angled img,
	.wp-block-cover.is-style-raptor-angled {
		clip-path: none;
	}
}

.acfsb-heading__title span{
	display: block;
	font-size: clamp(3.125rem, 0rem + 10vw, 5.625rem);
	margin-top: -30px;
}


/* Brought to you by (orange section) */
#brought-to-you-by{
	padding-block: var(--acfsb-gap);
}
.raptor-brought .acfsb-eyebrow,
.raptor-brought .acfsb-heading__title { color: #0b0b0b; }
.raptor-brought .raptor-wordmark .acfsb-heading__title { font-size: clamp(40px, 5vw, 72px); }
.raptor-brought .acfsb-grid { align-items: center; }

/* ==========================================================================
 * Builder / Build Sheet (section class: raptor-split) — Figma frames 1440×660
 * Full-bleed photo (800/1440 of the width) with a 25% angled cut + 5px orange
 * edge, 55% shade, giant outline numeral, copy column centred vertically.
 * Photo on the right when the image block comes after the heading (Builder),
 * on the left when it is the first block (Build Sheet).
 * ========================================================================== */
.acfsb-sections { counter-reset: raptor-split; }

.raptor-split {
	--split-media: 55.556%;            /* 800 / 1440 */
	--split-cut: 13.889%;              /* 25% of the photo = 200 / 1440 */
	--split-edge: max(var(--acfsb-gutter), (100% - var(--acfsb-container)) / 2);
	counter-increment: raptor-split;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	min-height: 660px;
	overflow: hidden;
}

/* Container stays static so the photo / edge line position against the section. */
.raptor-split .acfsb-container {
	position: static;
	width: 100%;
	max-width: none;
	padding-left: var(--split-edge);
	padding-right: calc(var(--split-media) + 50px);
}
.raptor-split:has(.acfsb-grid > .raptor-split-media:first-child) .acfsb-container {
	padding-left: calc(var(--split-media) + 50px);
	padding-right: var(--split-edge);
}

/* Copy: single 500px column, 24px rhythm */
.raptor-split .acfsb-grid {
	grid-template-columns: minmax(0, 520px);
	row-gap: 24px;
}
.raptor-split .acfsb-grid > .acfsb-block { grid-column: 1 / -1; }
.raptor-split .acfsb-grid > .acfsb-block:not(.raptor-split-media) { position: relative; z-index: 4; }
.raptor-split .acfsb-block--heading .acfsb-eyebrow { margin-bottom: 24px; }
.raptor-split .acfsb-heading__title {
	font-size: clamp(56px, 7.6vw, 124px); /* 124px from ~1630px wide; scales so "BUILD SHEET" fits the column */
	line-height: 0.84;
	letter-spacing: 0.01em;
	white-space: nowrap; /* "BUILD SHEET" stays on one line like the design */
}
.raptor-split .acfsb-text {
	max-width: 500px;
	font-size: var(--wp--preset--font-size--medium, 19px);
	line-height: 1.7;
	color: var(--acfsb-muted);
}
.raptor-split .acfsb-block--buttons { padding-top: 10px; }

/* Photo */
.raptor-split .raptor-split-media {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 1;
	width: var(--split-media);
	margin: 0;
	clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}
.raptor-split .raptor-split-media:first-child {
	right: auto;
	left: 0;
	clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
}
.raptor-split .raptor-split-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Shade (darkest next to the cut) */
.raptor-split .raptor-split-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--gradient--shade, linear-gradient(90deg, rgba(9,10,12,0.55) 0%, rgba(9,10,12,0) 100%));
	pointer-events: none;
}
.raptor-split .raptor-split-media:first-child::after {
	background: linear-gradient(270deg, rgba(9,10,12,0.55) 0%, rgba(9,10,12,0) 100%);
}

/* 5px orange edge along the cut (top-right → bottom-left of the cut box) */
.raptor-split .acfsb-container::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(100% - var(--split-media));
	z-index: 2;
	width: var(--split-cut);
	background: linear-gradient(to bottom right,
		transparent calc(50% - 3px),
		var(--acfsb-accent) calc(50% - 2.5px),
		var(--acfsb-accent) calc(50% + 2.5px),
		transparent calc(50% + 3px));
	pointer-events: none;
}
.raptor-split:has(.acfsb-grid > .raptor-split-media:first-child) .acfsb-container::before {
	left: calc(var(--split-media) - var(--split-cut));
}

/* Outline numeral "01", "02"… behind the copy */
.raptor-split::after {
	content: counter(raptor-split, decimal-leading-zero);
	content: counter(raptor-split, decimal-leading-zero) / ""; /* Decorative. */
	position: absolute;
	top: -60px;
	left: calc(var(--split-edge) - 30px);
	z-index: 3;
	font-family: var(--wp--preset--font-family--big-shoulders-display);
	font-size: 420px;
	font-weight: 900;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 2px var(--wp--preset--color--contrast, #fff);
	opacity: 0.07;
	pointer-events: none;
	user-select: none;
}
.raptor-split:has(.acfsb-grid > .raptor-split-media:first-child)::after {
	left: calc(var(--split-media) + 20px);
}

/* Tablet / mobile: photo on top, full width, no cut */
@media (max-width: 960px) {
	.raptor-split {
		display: block;
		min-height: 0;
		padding-top: 0;
	}
	.raptor-split .acfsb-container,
	.raptor-split:has(.acfsb-grid > .raptor-split-media:first-child) .acfsb-container {
		max-width: calc(var(--acfsb-container) + var(--acfsb-gutter) * 2);
		padding-inline: var(--acfsb-gutter);
	}
	.raptor-split .acfsb-container::before { display: none; }
	.raptor-split .acfsb-heading__title { white-space: normal; }
	.raptor-split .acfsb-grid { grid-template-columns: minmax(0, 1fr); }
	.raptor-split .raptor-split-media,
	.raptor-split .raptor-split-media:first-child {
		position: relative;
		order: -1;
		width: auto;
		aspect-ratio: 800 / 560;
		margin: 0 calc(var(--acfsb-gutter) * -1) 16px;
		clip-path: none;
	}
	.raptor-split .raptor-split-media::after,
	.raptor-split .raptor-split-media:first-child::after {
		background: var(--wp--preset--gradient--fade-bottom, linear-gradient(180deg, rgba(9,10,12,0) 0%, #090A0C 100%));
		opacity: 0.5;
	}
	.raptor-split::after { display: none; }
}

/* Hazard stripe above Build Sheet and Gallery — 10px, same as the Separator style */
.raptor-hazard-top::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	height: 10px;
	background: repeating-linear-gradient(-45deg,
		var(--wp--preset--color--accent-1, #ff6600) 0 12px,
		var(--wp--preset--color--base, #090a0c) 12px 24px);
}

/* ==========================================================================
 * Hero (section class: raptor-hero) — matches Figma "Hero" frame (1440×900)
 * ========================================================================== */
.raptor-hero {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: min(900px, 100svh);
	padding-top: clamp(96px, 11.8vw, 170px) !important;
	padding-bottom: 28px !important;
	overflow: hidden;
}

/* Overlay: "Grade – bottom" on top of "Grade – left" (replaces the flat ACF overlay color). */
.raptor-hero .acfsb-section__overlay {
	background:
		var(--wp--preset--gradient--fade-bottom, linear-gradient(180deg, rgba(9,10,12,0) 0%, #090A0C 100%)),
		var(--wp--preset--gradient--fade-left, linear-gradient(90deg, rgba(9,10,12,0.97) 10%, rgba(9,10,12,0.82) 40%, rgba(9,10,12,0.15) 100%)) !important;
}

.raptor-hero .acfsb-container {
	display: flex;
	flex: 1;
	width: 100%;
}

/* Content stack (eyebrow / headline / copy / CTA) at the top, spec bar pinned to the bottom. */
.raptor-hero .acfsb-grid {
	flex: 1;
	grid-template-rows: auto auto auto 1fr;
	row-gap: 22px;
}
.raptor-hero .acfsb-block--grid { align-self: end; padding-top: 48px; }

/* Eyebrow + headline */
.raptor-hero .acfsb-block--heading .acfsb-eyebrow { margin-bottom: 22px; }
.raptor-hero .acfsb-heading__title {
	font-size: var(--wp--preset--font-size--hero, clamp(80px, 14.7vw, 212px));
	line-height: 1;
	letter-spacing: 0.01em;
}
.raptor-hero .acfsb-heading__title span {
	display: block;
	margin-top: -0.3em;
	font-size: clamp(44px, 6.4vw, 92px);
	letter-spacing: 0.02em;
}

/* Intro copy */
.raptor-hero .acfsb-block--text { max-width: 520px; }
.raptor-hero .acfsb-text {
	font-family: var(--wp--preset--font-family--barlow);
	font-size: var(--wp--preset--font-size--medium, 19px);
	line-height: 1.65;
	color: var(--wp--preset--color--accent-5, #d1d5da);
}

/* CTA sits 10px lower than the regular gap */
.raptor-hero .acfsb-block--buttons { padding-top: 10px; }

/* Spec bar: 1px gunmetal rule on top, column dividers, no card boxes */
.raptor-hero .acfsb-cards--stats {
	gap: 0;
	border-top: 1px solid var(--acfsb-border);
}
.raptor-hero .acfsb-cards--stats .acfsb-card {
	border: 0;
	background: transparent;
}
.raptor-hero .acfsb-cards--stats .acfsb-card + .acfsb-card {
	border-left: 1px solid var(--acfsb-border);
}
.raptor-hero .acfsb-cards--stats .acfsb-card__body {
	gap: 8px;
	padding: 24px 0 0 28px;
}
.raptor-hero .acfsb-cards--stats .acfsb-card:first-child .acfsb-card__body { padding-left: 0; }

.raptor-hero .acfsb-cards--stats .acfsb-eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small, 13px);
	letter-spacing: 0.22em;
}
.raptor-hero .acfsb-cards--stats .acfsb-eyebrow::before { content: none; }

.raptor-hero .acfsb-cards--stats .acfsb-card__title {
	font-family: var(--wp--preset--font-family--saira-condensed);
	font-size: var(--wp--preset--font-size--x-large, 26px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--acfsb-heading);
}

/* Tablet: spec bar 2 × 2 */
@media (max-width: 1024px) {
	.raptor-hero .acfsb-cards--stats .acfsb-card:nth-child(odd) { border-left: 0; }
	.raptor-hero .acfsb-cards--stats .acfsb-card:nth-child(odd) .acfsb-card__body { padding-left: 0; }
	.raptor-hero .acfsb-cards--stats .acfsb-card:nth-child(n+3) .acfsb-card__body { padding-top: 20px; }
}

/* Mobile: stack, divider between rows instead of columns; stronger fade since copy covers the photo */
@media (max-width: 600px) {
	.raptor-hero .acfsb-section__overlay {
		background:
			var(--wp--preset--gradient--fade-bottom, linear-gradient(180deg, rgba(9,10,12,0) 0%, #090A0C 100%)),
			linear-gradient(90deg, rgba(9,10,12,0.9) 0%, rgba(9,10,12,0.6) 100%) !important;
	}
	.raptor-hero .acfsb-cards--stats .acfsb-card + .acfsb-card {
		border-left: 0;
		border-top: 1px solid var(--acfsb-border);
	}
	.raptor-hero .acfsb-cards--stats .acfsb-card .acfsb-card__body { padding: 16px 0; }
	.raptor-hero .acfsb-heading__title span { margin-top: -0.12em; }
}

/* ==========================================================================
 * Page banner (inner pages, inc/page-banner.php) — the home hero's layout and
 * style (.raptor-hero), with the title sized for longer page names.
 * Height: Theme Settings > Banner (inline min-height).
 * ========================================================================== */
.raptor-page-banner .acfsb-heading__title {
	font-size: clamp(44px, 10vw, 150px);
	overflow-wrap: break-word;
	hyphens: auto;
}
.raptor-page-banner .acfsb-heading__title span {
	font-size: clamp(32px, 4.6vw, 72px);
}
.raptor-page-banner--no-image {
	background-color: var(--wp--preset--color--accent-2);
}

/* No page content (e.g. title-only pages): drop the empty padded area. */
.raptor-page-content:has(> .wp-block-post-content:empty) {
	display: none;
}
/* Section Builder sections bring their own spacing. */
.raptor-page-content:has(> .wp-block-post-content > .acfsb-sections:first-child) {
	padding-top: 0 !important;
}
.raptor-page-content:has(> .wp-block-post-content > .acfsb-sections:last-child) {
	padding-bottom: 0 !important;
}

/* ==========================================================================
 * Shared: centred section headings (Our Sponsors / Our Gallery) — Figma "Heading"
 * ========================================================================== */
.raptor-sponsors .acfsb-grid,
.raptor-gallery .acfsb-grid { row-gap: var(--wp--preset--spacing--60, 64px); }

.raptor-sponsors .acfsb-block--heading .acfsb-eyebrow,
.raptor-gallery .acfsb-block--heading .acfsb-eyebrow { margin-bottom: 20px; }

.raptor-sponsors .acfsb-heading__title,
.raptor-gallery .acfsb-heading__title {
	font-size: var(--wp--preset--font-size--display, clamp(56px, 7.8vw, 112px));
	line-height: 0.88;
	letter-spacing: 0.01em;
}

/* ==========================================================================
 * Our Sponsors (section class: raptor-sponsors)
 * 4-col logo wall: 1px gunmetal lines, carbon cells 190px tall, white logos.
 * ========================================================================== */
.raptor-sponsors .acfsb-subtitle {
	margin-top: 20px;
	font-size: var(--wp--preset--font-size--medium, 19px);
	line-height: 1.6;
	color: var(--acfsb-muted);
}

.raptor-sponsors .acfsb-logos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	padding: 0;
	/* Card colour (not border colour) so empty cells in a short last row match the boxes. */
	background: var(--acfsb-card);
	border: 1px solid var(--acfsb-border);
	overflow: hidden;
}
.raptor-sponsors .acfsb-logos__item {
	/* Each cell draws its own 1px divider into the gap; outer edge comes from the list border. */
	box-shadow: 0 0 0 1px var(--acfsb-border);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 190px;
	padding: 24px;
	background: var(--acfsb-card);
	transition: background-color 0.15s ease;
}
.raptor-sponsors .acfsb-logos__item:hover { background: var(--acfsb-card-hover); }
.raptor-sponsors .acfsb-logos__item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
/* Logos shown as solid white like the design (works for any logo colour). */
.raptor-sponsors .acfsb-logos__img {
	max-width: min(190px, 100%);
	max-height: 64px;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}
.raptor-sponsors .acfsb-logos__item:hover .acfsb-logos__img,
.raptor-sponsors .acfsb-logos__item a:focus-visible .acfsb-logos__img {
	filter: brightness(0) invert(1);
	opacity: 1;
}

@media (max-width: 1024px) {
	.raptor-sponsors .acfsb-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.raptor-sponsors .acfsb-logos__item { min-height: 150px; }
}
@media (max-width: 600px) {
	.raptor-sponsors .acfsb-logos__item { min-height: 110px; padding: 16px; }
	.raptor-sponsors .acfsb-logos__img { max-height: 44px; }
}

/* ==========================================================================
 * Our Gallery (section class: raptor-gallery) — 4 × 2 grid, 6px gaps, 4:3 tiles
 * ========================================================================== */
.raptor-gallery.raptor-hazard-top { padding-top: calc(var(--acfsb-pad-y) + 10px); }
.raptor-gallery .acfsb-gallery { gap: 6px; }
.raptor-gallery .acfsb-gallery__item { aspect-ratio: 315 / 236; }

/* ==========================================================================
 * SEMA 26 (section class: raptor-sema) — Figma frame 1440×640
 * Angled top edge with 4px orange line, left grade, giant outline "26".
 * ========================================================================== */
.raptor-sema {
	box-sizing: border-box;
	min-height: 640px;
	padding-top: clamp(110px, 12vw, 173px) !important;
	padding-bottom: var(--acfsb-pad-y);
	overflow: hidden;
}

/* Grade: dark on the left so the copy reads, photo shows on the right. */
.raptor-sema .acfsb-section__overlay {
	background: linear-gradient(90deg, rgba(9,10,12,0.97) 0%, rgba(9,10,12,0.78) 45%, rgba(9,10,12,0.30) 100%) !important;
}

/* Angled top: Graphite triangle (previous section colour) + 4px orange edge,
 * running from bottom-left (0, 90px) to top-right (100%, 0). */
.raptor-sema::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	height: 90px;
	background: linear-gradient(to bottom right,
		var(--wp--preset--color--accent-2, #15171b) calc(50% - 2.5px),
		var(--acfsb-accent) calc(50% - 2px),
		var(--acfsb-accent) calc(50% + 2px),
		transparent calc(50% + 2.5px));
	pointer-events: none;
}

/* Inner pages: the triangle takes the inner page background (Asphalt)
 * instead of the Home page Gallery's Graphite. */
body:not(.home) .raptor-sema::before {
	background: linear-gradient(to bottom right,
		var(--wp--preset--color--base, #090a0c) calc(50% - 2.5px),
		var(--acfsb-accent) calc(50% - 2px),
		var(--acfsb-accent) calc(50% + 2px),
		transparent calc(50% + 2.5px));
}

/* Outline "26" bleeding off the right edge */
.raptor-sema::after {
	content: "26";
	content: "26" / ""; /* Decorative. */
	position: absolute;
	top: 126px;
	left: calc(100% - 524px);
	z-index: 0;
	font-family: var(--wp--preset--font-family--big-shoulders-display);
	font-size: 560px;
	font-weight: 900;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 2px var(--wp--preset--color--contrast, #fff);
	opacity: 0.1;
	pointer-events: none;
	user-select: none;
}

.raptor-sema .acfsb-grid { row-gap: 24px; }
.raptor-sema .acfsb-block--heading .acfsb-eyebrow { margin-bottom: 24px; }
.raptor-sema .acfsb-heading__title {
	font-size: var(--wp--preset--font-size--display-xl, clamp(72px, 11.7vw, 168px));
	line-height: 0.84;
	letter-spacing: 0.01em;
}
.raptor-sema .acfsb-text {
	font-size: var(--wp--preset--font-size--medium, 19px);
	line-height: 1.7;
	color: var(--acfsb-body);
}
.raptor-sema .acfsb-block--buttons { padding-top: 10px; }

@media (max-width: 767px) {
	.raptor-sema { min-height: 0; }
	.raptor-sema::before { height: 40px; }
	.raptor-sema::after {
		top: auto;
		bottom: -40px;
		left: auto;
		right: -40px;
		font-size: 300px;
	}
	.raptor-sema .acfsb-section__overlay {
		background: linear-gradient(90deg, rgba(9,10,12,0.95) 0%, rgba(9,10,12,0.7) 100%) !important;
	}
}