/*
Theme Name: Kirtsy Calibrations
Author: Kirtsy Calibrations
Description: Dark, industrial theme for Kirtsy Calibrations: diesel ECM/TCM calibration, EFI Live and WinOLS tune files, remote tuning and tuning hardware. Fast (one stylesheet, one small script, self-hosted fonts), accessible (WCAG 2.2 AA contrast, keyboard-friendly menus and forms) and built to work with the Kirtsy Core plugin and WooCommerce.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kirtsy
*/

/* ==========================================================================
   1. Fonts (self-hosted, Latin subset, SIL Open Font License; see assets/fonts)
   ========================================================================== */

@font-face {
	font-family: 'Big Shoulders';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/big-shoulders-latin-700-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Big Shoulders';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('assets/fonts/big-shoulders-latin-800-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'IBM Plex Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'IBM Plex Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'IBM Plex Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
	--void: #0a0c0e;
	--steel: #15191d;
	--steel-2: #1b2126;
	--line: #2b3238;
	--line-soft: #20262b;
	--edge: #6b767f; /* borders of form controls: 3.5:1 on the panel colours */
	--redline: #d81f2a; /* fills and large text. White on it is 5.1:1 */
	--redline-2: #a5141d;
	--redline-text: #ff5a64; /* red for small text on dark: 6.3:1 */
	--boost: #2e9bff;
	--boost-2: #8fcbff;
	--billet: #edeff1;
	--billet-dim: #b9bec2; /* 9.4:1 on --steel */
	--billet-faint: #9aa1a7; /* 6.4:1 on --steel */
	--ok: #5fd08a;
	--warn: #ffcf6b;
	--err: #ff7d84;
	--radius: 3px;
	--maxw: 1220px;
	--measure: 46rem;
	--f-display: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
	--f-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--header-h: 72px;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* Keep a keyboard-focused control clear of the sticky header and the floating chat button. */
	scroll-padding-top: 96px;
	scroll-padding-bottom: 96px;
}

body {
	margin: 0;
	background: var(--void);
	color: var(--billet);
	font-family: var(--f-body);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	color-scheme: dark;
}

[id] {
	scroll-margin-top: calc(var(--header-h) + 16px);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	line-height: 1.1;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

button,
input,
select,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 3px solid var(--boost-2);
	outline-offset: 3px;
}

::selection {
	background: var(--redline);
	color: #fff;
}

.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 28px;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 14px 22px !important;
	clip: auto !important;
	clip-path: none !important;
	background: var(--redline);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius);
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--boost);
	font-family: var(--f-mono);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.eyebrow a {
	text-decoration: none;
}

.eyebrow a:hover {
	text-decoration: underline;
}

.section-title {
	max-width: 640px;
	margin-bottom: 2.4rem;
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	line-height: 1.1;
}

.lede {
	max-width: 540px;
	color: var(--billet-dim);
	font-size: 1.07rem;
	line-height: 1.65;
}

/* Blueprint grid texture, used on the hero and page headers only. */
.grid-bg {
	background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-position: center top;
	background-size: 44px 44px;
}

.kc-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--boost-2);
	font-weight: 600;
	text-decoration: none;
}

.kc-more:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.kc-more .icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn,
.kc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.85rem 1.6rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--f-display);
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary,
.kc-btn-primary {
	background: var(--redline);
	border-color: var(--redline);
	color: #fff;
}

.btn-primary:hover,
.kc-btn-primary:hover {
	background: var(--redline-2);
	border-color: var(--redline-2);
	color: #fff;
}

.btn-ghost,
.kc-btn-ghost {
	background: transparent;
	border-color: var(--edge);
	color: var(--billet);
}

.btn-ghost:hover,
.kc-btn-ghost:hover {
	border-color: var(--boost-2);
	color: #fff;
}

.btn-lg {
	min-height: 54px;
	padding: 1rem 2rem;
	font-size: 1.2rem;
}

/* ==========================================================================
   5. Header and navigation
   ========================================================================== */

.nav-wrap {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 12, 14, 0.94);
	border-bottom: 1px solid var(--line-soft);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.admin-bar .nav-wrap {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .nav-wrap {
		top: 46px;
	}
}

.nav {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--header-h);
}

.brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
	color: var(--billet);
	font-family: var(--f-display);
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.brand span span,
.brand-text span {
	color: var(--redline-text);
}

.brand-mark {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.brand-logo {
	width: auto;
	max-height: 48px;
}

.site-nav {
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list > li {
	position: relative;
	display: flex;
	align-items: center;
}

.nav-list a {
	display: block;
	padding: 10px 12px;
	color: var(--billet-dim);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current_page_item > a {
	color: #fff;
}

.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a {
	box-shadow: inset 0 -3px 0 var(--redline);
}

.sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 40px;
	margin: 0 0 0 -8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--billet-dim);
	cursor: pointer;
}

.sub-toggle:hover {
	color: #fff;
}

.sub-toggle .icon {
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.menu-item-has-children.is-open > .sub-toggle .icon {
	transform: rotate(180deg);
}

.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	display: none;
	min-width: 230px;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--line);
	border-top: 3px solid var(--redline);
	border-radius: 0 0 var(--radius) var(--radius);
	background: var(--steel);
	box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
	list-style: none;
}

.sub-menu a {
	padding: 11px 14px;
	color: var(--billet);
	font-weight: 400;
}

.sub-menu a:hover {
	background: var(--steel-2);
	color: #fff;
}

.js .menu-item-has-children.is-open > .sub-menu {
	display: block;
}

.no-js .menu-item-has-children:hover > .sub-menu,
.no-js .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.nav-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.icon-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 10px;
	color: var(--billet-dim);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.icon-link:hover {
	color: #fff;
}

.icon-link .icon {
	flex: 0 0 auto;
}

.cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--redline);
	color: #fff;
	font-family: var(--f-mono);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
}

.nav-cta {
	margin-left: 8px;
	min-height: 44px;
	padding: 0.6rem 1.2rem;
	font-size: 1.05rem;
	white-space: nowrap;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-left: 4px;
	padding: 0;
	border: 1px solid var(--edge);
	border-radius: var(--radius);
	background: transparent;
	color: var(--billet);
	cursor: pointer;
}

.nav-toggle-bars {
	display: block;
	width: 20px;
}

.nav-toggle-bars span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 5px 0;
	background: var(--billet);
}

.nav-extra {
	display: none;
}

@media (max-width: 1240px) {
	.icon-link .icon-label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

@media (max-width: 1100px) {
	.nav {
		gap: 12px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.nav-cta,
	.nav-account {
		display: none;
	}

	.js .site-nav {
		position: fixed;
		top: var(--header-h);
		right: 0;
		left: 0;
		z-index: 55;
		display: none;
		max-height: calc(100vh - var(--header-h));
		max-height: calc(100dvh - var(--header-h));
		padding: 8px 28px 26px;
		overflow-y: auto;
		border-bottom: 1px solid var(--line);
		background: var(--steel);
		box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.7);
	}

	.admin-bar.js .site-nav {
		top: calc(var(--header-h) + 32px);
	}

	.js .site-nav.is-open {
		display: block;
	}

	.no-js .nav {
		flex-wrap: wrap;
		height: auto;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.no-js .site-nav {
		flex: 1 1 100%;
		order: 3;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-list > li {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--line-soft);
	}

	.nav-list > li > a {
		flex: 1 1 auto;
		padding: 15px 0;
		font-size: 1rem;
	}

	.nav-list .current-menu-item > a,
	.nav-list .current-menu-ancestor > a {
		box-shadow: none;
		color: #fff;
	}

	.sub-toggle {
		width: 48px;
		height: 48px;
		margin: 0;
	}

	.sub-menu {
		position: static;
		flex: 1 1 100%;
		min-width: 0;
		padding: 0 0 10px 14px;
		border: 0;
		border-left: 2px solid var(--line);
		background: transparent;
		box-shadow: none;
	}

	.sub-menu a {
		padding: 12px 8px;
		color: var(--billet-dim);
	}

	.nav-extra {
		display: flex;
		flex-direction: column;
		gap: 12px;
		padding-top: 22px;
	}

	.nav-extra .btn {
		width: 100%;
	}

	.nav-extra-link {
		color: var(--billet-dim);
		font-weight: 600;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 20px;
	}

	.brand {
		gap: 8px;
		font-size: 1.1rem;
	}

	.brand-mark {
		width: 38px;
		height: 38px;
	}

	.js .site-nav {
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* The smallest phones (320px wide): the logo, cart and menu button together were 22px wider than the screen allows. */
@media (max-width: 359px) {
	.nav {
		gap: 8px;
	}

	.brand {
		gap: 8px;
		font-size: 1rem;
	}

	.nav-actions {
		gap: 0;
	}

	.icon-link {
		padding-right: 6px;
		padding-left: 6px;
	}

	.nav-toggle {
		width: 44px;
		height: 44px;
		margin-left: 2px;
	}
}

/* ==========================================================================
   6. Page header and breadcrumbs
   ========================================================================== */

.page-head {
	padding: 54px 0 38px;
	border-bottom: 1px solid var(--line-soft);
	background-color: var(--void);
}

.page-head-compact {
	padding: 22px 0;
}

.page-title {
	max-width: 900px;
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
	line-height: 1;
}

.page-intro {
	max-width: 640px;
	margin: 18px 0 0;
	color: var(--billet-dim);
	font-size: 1.1rem;
	line-height: 1.6;
}

.post-meta {
	margin: 16px 0 0;
	color: var(--billet-dim);
	font-family: var(--f-mono);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

.kc-breadcrumbs {
	margin: 0 0 20px;
}

.kc-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.86rem;
}

.kc-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	color: var(--billet-dim);
}

.kc-breadcrumbs li + li::before {
	content: '/';
	margin: 0 9px;
	color: var(--billet-faint);
}

.kc-breadcrumbs a {
	color: var(--billet-dim);
	text-decoration: none;
}

.kc-breadcrumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.kc-breadcrumbs [aria-current='page'] {
	color: var(--billet);
}

.page-body {
	padding-top: 44px;
	padding-bottom: 84px;
}

/* ==========================================================================
   7. Content ("prose") and the blocks the page library uses
   ========================================================================== */

.kc-prose {
	overflow-wrap: break-word;
}

.kc-prose > * {
	max-width: var(--measure);
}

.kc-prose > .kc-grid,
.kc-prose > .kc-cta,
.kc-prose > .kc-wizard,
.kc-prose > .kc-simple,
.kc-prose > .kc-dash,
.kc-prose > .kc-faq,
.kc-prose > .kc-glossary,
.kc-prose > .alignwide,
.kc-prose > .wp-block-columns,
.kc-prose > .woocommerce,
.kc-prose > .wc-block-cart,
.kc-prose > .wp-block-woocommerce-cart,
.kc-prose > .wp-block-woocommerce-checkout {
	max-width: none;
}

.kc-prose > .kc-wizard,
.kc-prose > .kc-simple {
	max-width: 880px;
}

.kc-prose > .kc-wizard,
.kc-prose > .kc-simple,
.kc-prose > .kc-dash {
	margin-bottom: 32px;
}

.kc-prose > .kc-faq {
	max-width: 900px;
}

.kc-prose h2 {
	margin: 2.4em 0 0.7em;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.kc-prose h3 {
	margin: 1.8em 0 0.5em;
	font-size: 1.35rem;
}

.kc-prose h4 {
	margin: 1.5em 0 0.4em;
	font-size: 1.1rem;
}

.kc-prose > :first-child {
	margin-top: 0;
}

.kc-prose p,
.kc-prose li {
	font-size: 1.04rem;
	line-height: 1.7;
}

.kc-prose p {
	color: var(--billet);
}

/* The :where() keeps the specificity of this rule unchanged while leaving WooCommerce's and the
   block editor's own buttons, and the My Account menu (styled in woocommerce.css), out of the text-link styling. */
.kc-prose a:not(.kc-btn):not(.btn):not(.button):not(:where(.wc-block-components-button, .wp-block-button__link, .woocommerce-MyAccount-navigation a)) {
	color: var(--boost-2);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.kc-prose a:not(.kc-btn):not(.btn):not(.button):not(:where(.wc-block-components-button, .wp-block-button__link, .woocommerce-MyAccount-navigation a)):hover {
	color: #fff;
}

.kc-prose strong {
	font-weight: 700;
}

.kc-prose ul,
.kc-prose ol {
	margin: 0 0 1.3em;
	padding-left: 1.4em;
}

.kc-prose li {
	margin: 0.4em 0;
	padding-left: 0.2em;
}

.kc-prose li::marker {
	color: var(--redline-text);
}

.kc-prose ol li::marker {
	font-family: var(--f-mono);
	font-weight: 600;
}

.kc-prose blockquote {
	margin: 1.6em 0;
	padding: 0.4em 0 0.4em 1.2em;
	border-left: 4px solid var(--redline);
	color: var(--billet-dim);
}

.kc-prose hr {
	margin: 2.6em 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.kc-prose img {
	height: auto;
	border-radius: var(--radius);
}

.kc-prose figure {
	margin: 1.8em 0;
}

.kc-prose figcaption {
	margin-top: 8px;
	color: var(--billet-dim);
	font-size: 0.88rem;
}

.kc-prose code,
.kc-prose pre {
	font-family: var(--f-mono);
	font-size: 0.9em;
}

.kc-prose code {
	padding: 0.1em 0.4em;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--steel-2);
}

.kc-prose pre {
	margin: 1.5em 0;
	padding: 16px 18px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--steel);
	line-height: 1.5;
}

.kc-prose pre code {
	padding: 0;
	border: 0;
	background: none;
}

.kc-prose table {
	width: 100%;
	margin: 1.6em 0;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.kc-prose th,
.kc-prose td {
	padding: 10px 14px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.kc-prose th {
	background: var(--steel-2);
	font-weight: 600;
}

.kc-prose .kc-lede,
.kc-lede {
	max-width: 46rem;
	margin: 0 0 1.6em;
	color: var(--billet-dim);
	font-size: 1.22rem;
	line-height: 1.65;
}

.kc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin: 28px 0 36px;
}

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

.kc-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.kc-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.kc-grid-2,
	.kc-grid-3 {
		grid-template-columns: 1fr;
	}
}

.kc-card {
	position: relative;
	padding: 24px 24px 20px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: linear-gradient(180deg, var(--steel-2), var(--steel));
}

.kc-card h3 {
	margin: 0 0 10px;
	font-size: 1.3rem;
}

/* Stacked cards (not inside a grid, which spaces them itself). */
:not(.kc-grid) > .kc-card + .kc-card {
	margin-top: 18px;
}

/* A card whose title is a link: keep it looking like a heading, with an arrow as the cue. The
   selector is as specific as the generic prose-link rule so it wins. */
.kc-card h3 a,
.kc-prose .kc-card h3 a:not(.kc-btn):not(.btn):not(.button) {
	color: var(--billet);
	text-decoration: none;
}

.kc-card h3 a::after {
	content: "\2192";
	content: "\2192" / "";
	margin-left: 0.4em;
	color: var(--redline-text);
	font-family: var(--f-body);
	font-weight: 600;
}

.kc-card h3 a:hover,
.kc-card h3 a:focus-visible,
.kc-prose .kc-card h3 a:not(.kc-btn):not(.btn):not(.button):hover,
.kc-prose .kc-card h3 a:not(.kc-btn):not(.btn):not(.button):focus-visible {
	color: var(--boost-2);
	text-decoration: underline;
}

.kc-card p,
.kc-card li {
	color: var(--billet-dim);
	font-size: 0.97rem;
	line-height: 1.6;
}

.kc-card > :last-child {
	margin-bottom: 0;
}

.kc-card ul {
	margin-bottom: 0;
}

.kc-list {
	margin: 0 0 1.4em;
	padding-left: 1.3em;
	list-style: square;
}

.kc-steps-list {
	margin: 0 0 1.6em;
	padding-left: 1.6em;
}

.kc-steps-list li {
	margin: 0;
	padding: 12px 0 12px 8px;
	border-bottom: 1px solid var(--line-soft);
}

.kc-steps-list li:last-child {
	border-bottom: 0;
}

.kc-engines {
	column-gap: 36px;
	columns: 2 260px;
}

.kc-engines li {
	/* Padding instead of margin so both columns start on the same line. */
	margin: 0;
	padding-block: 0.4em;
	break-inside: avoid;
}

.kc-callout {
	margin: 1.6em 0;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--boost);
	border-radius: var(--radius);
	background: var(--steel-2);
	color: var(--billet);
}

.kc-callout > :last-child {
	margin-bottom: 0;
}

.kc-draft {
	border-left-color: var(--warn);
	background: #221d10;
}

.kc-cta {
	margin: 56px 0 0;
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid var(--line);
	border-top: 3px solid var(--redline);
	border-radius: 6px;
	background: var(--steel);
}

.kc-cta h2 {
	margin: 0 0 10px !important;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.kc-cta p {
	max-width: 44rem;
	color: var(--billet-dim);
}

.kc-cta p:last-child {
	margin: 22px 0 0;
}

.kc-cta .kc-btn {
	margin: 0 10px 10px 0;
}

.kc-prose .kc-cta .kc-btn-primary,
.kc-prose .kc-cta .kc-btn-primary:hover {
	color: #fff;
}

/* FAQ accordion */
.kc-faq {
	margin: 1.4em 0 2em;
	border-top: 1px solid var(--line);
}

.kc-faq-item {
	border-bottom: 1px solid var(--line);
}

.kc-faq-item > summary {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 16px 4px;
	color: var(--billet);
	font-size: 1.08rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.kc-faq-item > summary::-webkit-details-marker {
	display: none;
}

.kc-faq-item > summary::before {
	content: '+';
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-right: 16px;
	border: 1px solid var(--edge);
	border-radius: var(--radius);
	color: var(--boost-2);
	font-family: var(--f-mono);
	font-weight: 600;
	line-height: 1;
}

.kc-faq-item[open] > summary::before {
	content: '\2212';
}

.kc-faq-item > summary:hover {
	color: #fff;
}

.kc-faq-a {
	padding: 0 4px 20px 46px;
}

.kc-faq-a p {
	max-width: 46rem;
	margin: 0;
	color: var(--billet-dim);
}

/* Glossary */
.kc-glossary {
	display: grid;
	grid-template-columns: minmax(150px, 230px) 1fr;
	gap: 0 28px;
	margin: 1.4em 0 2em;
	border-top: 1px solid var(--line);
}

.kc-glossary dt,
.kc-glossary dd {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.kc-glossary dt {
	color: var(--billet);
	font-family: var(--f-display);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-transform: uppercase;
}

.kc-glossary dd {
	margin: 0;
	color: var(--billet-dim);
}

@media (max-width: 640px) {
	.kc-glossary {
		grid-template-columns: 1fr;
	}

	.kc-glossary dt {
		padding-bottom: 2px;
		border-bottom: 0;
	}

	.kc-glossary dd {
		padding-top: 0;
	}
}

/* Contact details card */
.kc-prose .kc-dl,
.kc-contact-card .kc-dl {
	display: grid;
	grid-template-columns: minmax(90px, 130px) 1fr;
	gap: 8px 18px;
	margin: 0;
}

.kc-contact-card .kc-dl dt {
	color: var(--billet-faint);
	font-size: 0.88rem;
}

.kc-contact-card .kc-dl dd {
	margin: 0;
	color: var(--billet);
	overflow-wrap: anywhere;
}

.page-links {
	margin: 2em 0;
	color: var(--billet-dim);
}

.page-links a,
.page-links > span:not(:first-child) {
	display: inline-block;
	min-width: 36px;
	padding: 6px 10px;
	border: 1px solid var(--line);
	text-align: center;
	text-decoration: none;
}

/* ==========================================================================
   8. Home page
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	padding: 76px 0 44px;
	background-color: var(--void);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.hero h1 {
	margin: 10px 0 22px;
	font-size: clamp(2.7rem, 5.6vw, 4.5rem);
	line-height: 0.98;
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 30px;
}

@media (max-width: 560px) {
	.hero-ctas .btn {
		flex: 1 1 100%;
	}
}

.hero-trust {
	display: grid;
	gap: 10px;
	margin: 36px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--line-soft);
	color: var(--billet-dim);
	font-family: var(--f-mono);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	list-style: none;
	text-transform: uppercase;
}

.hero-trust li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.hero-trust li::before {
	content: '';
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	background: var(--boost);
}

.hero-art {
	position: relative;
}

.hero-art-frame {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--steel);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.hero-art-frame img {
	width: 100%;
	height: auto;
}

.corner {
	position: absolute;
	z-index: 1;
	width: 22px;
	height: 22px;
	border: 2px solid var(--boost);
	opacity: 0.85;
}

.corner.tl {
	top: -1px;
	left: -1px;
	border-right: 0;
	border-bottom: 0;
}

.corner.tr {
	top: -1px;
	right: -1px;
	border-bottom: 0;
	border-left: 0;
}

.corner.bl {
	bottom: -1px;
	left: -1px;
	border-top: 0;
	border-right: 0;
}

.corner.br {
	right: -1px;
	bottom: -1px;
	border-top: 0;
	border-left: 0;
}

@media (max-width: 900px) {
	.hero {
		padding-top: 48px;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero-art {
		max-width: 480px;
	}
}

.divider {
	padding: 6px 28px;
	overflow: hidden;
	line-height: 0;
}

.divider svg {
	display: block;
	width: 100%;
	height: 64px;
}

.services,
.process,
.answers,
.shop,
.home-faq,
.cta-banner {
	padding: 90px 0;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line-soft);
	background: var(--line-soft);
	list-style: none;
}

.service-card {
	position: relative;
	padding: 34px 30px;
	background: var(--void);
}

.service-card:hover {
	background: var(--steel);
}

.service-icon {
	width: 38px;
	height: 38px;
	margin-bottom: 20px;
	color: var(--boost);
}

.service-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.service-card h3 {
	margin-bottom: 10px;
	font-size: 1.25rem;
}

.service-card h3 a,
.shop-card h3 a {
	color: var(--billet);
	text-decoration: none;
}

/* The whole card is clickable through its heading link. */
.service-card h3 a::after,
.shop-card h3 a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.service-card h3 a:focus-visible::after,
.shop-card h3 a:focus-visible::after {
	outline: 3px solid var(--boost-2);
	outline-offset: -3px;
}

.service-card p {
	margin: 0;
	color: var(--billet-dim);
	font-size: 0.95rem;
	line-height: 1.6;
}

@media (max-width: 900px) {
	.service-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.service-grid {
		grid-template-columns: 1fr;
	}
}

.process {
	background: var(--steel);
}

.process-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.process-num {
	display: block;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
	color: var(--redline-text);
	font-family: var(--f-mono);
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.05em;
}

.process-list h3 {
	margin-bottom: 8px;
	font-family: var(--f-body);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.process-list p {
	margin: 0;
	color: var(--billet-dim);
	font-size: 0.95rem;
	line-height: 1.6;
}

.process-more {
	margin: 40px 0 0;
}

@media (max-width: 900px) {
	.process-list {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 40px;
	}
}

@media (max-width: 520px) {
	.process-list {
		grid-template-columns: 1fr;
	}
}

.answers-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.answer-card {
	padding: 26px 24px;
	border: 1px solid var(--line);
	border-top: 3px solid var(--redline);
	border-radius: 6px;
	background: var(--steel);
}

.answer-card h3 {
	margin-bottom: 10px;
	font-size: 1.2rem;
}

.answer-card p {
	margin: 0;
	color: var(--billet-dim);
	font-size: 0.95rem;
	line-height: 1.6;
}

@media (max-width: 1000px) {
	.answers-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.answers-grid {
		grid-template-columns: 1fr;
	}
}

.shop-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shop-card {
	position: relative;
	padding: 36px 30px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: linear-gradient(180deg, var(--steel-2), var(--steel));
	transition: border-color 0.15s ease;
}

.shop-card:hover {
	border-color: var(--boost);
}

.shop-card h3 {
	margin-bottom: 10px;
	font-size: 1.4rem;
}

.shop-card p {
	margin-bottom: 22px;
	color: var(--billet-dim);
	font-size: 0.95rem;
}

.shop-tag {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--line);
	border-radius: 20px;
	color: var(--boost-2);
	font-family: var(--f-mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
}

@media (max-width: 900px) {
	.shop-grid {
		grid-template-columns: 1fr;
	}
}

.platforms {
	padding: 52px 0;
	border-top: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-soft);
}

.platforms-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 14px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.platforms-row a {
	display: inline-block;
	padding: 6px 0;
	color: var(--billet-dim);
	font-family: var(--f-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.platforms-row a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.home-faq .kc-faq {
	max-width: 900px;
}

.cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 36px 40px;
	padding-top: 52px;
	padding-bottom: 52px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--steel);
}

.cta-banner .container.cta-inner {
	/* Inset from the screen edges on phones; capped to the content width on large screens. */
	width: min(calc(var(--maxw) - 56px), calc(100% - 40px));
	max-width: none;
}

.cta-inner h2 {
	margin: 8px 0 14px;
	font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.cta-inner .lede {
	margin-bottom: 0;
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

@media (max-width: 760px) {
	.services,
	.process,
	.answers,
	.shop,
	.home-faq,
	.cta-banner {
		padding: 64px 0;
	}

	.cta-inner {
		padding: 34px 24px;
	}
}

/* ==========================================================================
   9. Blog, search and 404
   ========================================================================== */

.cat-filter {
	margin: 0 0 32px;
}

.cat-filter ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-filter a {
	display: inline-block;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--edge);
	border-radius: 999px;
	color: var(--billet);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.cat-filter a:hover {
	border-color: var(--boost-2);
	color: #fff;
}

.cat-filter a[aria-current='page'] {
	border-color: var(--redline);
	background: var(--redline);
	color: #fff;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
}

.post-card {
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: linear-gradient(180deg, var(--steel-2), var(--steel));
	transition: border-color 0.15s ease;
}

.post-card:hover {
	border-color: var(--boost);
}

.post-card-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 26px 26px 24px;
}

.post-card-cat {
	margin: 0 0 10px;
	color: var(--boost);
	font-family: var(--f-mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.post-card-title {
	margin: 0 0 10px;
	font-size: 1.5rem;
	line-height: 1.1;
}

.post-card-title a {
	color: var(--billet);
	text-decoration: none;
}

.post-card-title a:hover {
	color: var(--boost-2);
}

.post-card-meta {
	margin: 0 0 12px;
	color: var(--billet-faint);
	font-family: var(--f-mono);
	font-size: 0.76rem;
	letter-spacing: 0.04em;
}

.post-card-excerpt {
	flex: 1 1 auto;
	margin: 0 0 18px;
	color: var(--billet-dim);
	font-size: 0.97rem;
	line-height: 1.6;
}

.post-card-more {
	margin: 0;
}

.related {
	padding-bottom: 90px;
}

.single-thumb {
	margin: 0 0 32px;
}

.single-thumb img {
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.pagination {
	margin: 44px 0 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 46px;
	min-height: 46px;
	padding: 8px 16px;
	border: 1px solid var(--edge);
	border-radius: var(--radius);
	color: var(--billet);
	font-weight: 600;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--boost-2);
	color: #fff;
}

.pagination .page-numbers.current {
	border-color: var(--redline);
	background: var(--redline);
	color: #fff;
}

.search-bar {
	max-width: 640px;
	margin: 0 0 36px;
}

.search-form {
	display: flex;
	gap: 10px;
}

.search-field {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid var(--edge);
	border-radius: var(--radius);
	background: var(--void);
	color: var(--billet);
	font-size: 1rem;
}

.search-field::placeholder {
	color: #98a0a6;
	opacity: 1;
}

.search-field:focus {
	border-color: var(--boost-2);
	outline: 3px solid var(--boost-2);
	outline-offset: 1px;
}

.search-submit {
	flex: 0 0 auto;
}

.not-found-links {
	font-size: 1.1rem;
}

.not-found-links a {
	color: var(--boost-2);
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
	margin-top: 0;
	padding: 70px 0 30px;
	border-top: 1px solid var(--line-soft);
	background: var(--void);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 36px;
	padding-bottom: 50px;
}

.footer-brand .brand {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 1.35rem;
}

.footer-tag {
	max-width: 260px;
	margin-bottom: 18px;
	color: var(--billet-dim);
	font-size: 0.92rem;
}

.footer-contact,
.footer-social {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	color: var(--billet-dim);
	font-size: 0.92rem;
}

.footer-contact li,
.footer-social li {
	margin: 0 0 6px;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.footer-contact a,
.footer-social a {
	color: var(--billet);
	text-underline-offset: 3px;
}

.footer-contact a:hover,
.footer-social a:hover {
	color: var(--boost-2);
}

.footer-heading {
	margin: 0 0 16px;
	color: var(--billet-dim);
	font-family: var(--f-mono);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col a {
	display: inline-block;
	padding: 5px 0;
	color: var(--billet);
	font-size: 0.94rem;
	text-decoration: none;
}

.footer-col a:hover {
	color: var(--boost-2);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-bottom {
	position: relative;
	padding-top: 26px;
}

.footer-bottom::before {
	content: '';
	position: absolute;
	top: 0;
	right: 28px;
	left: 28px;
	height: 1px;
	background: var(--line-soft);
}

.footer-menu-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.footer-menu-list a {
	display: inline-block;
	padding: 5px 0;
	color: var(--billet-dim);
	font-size: 0.9rem;
	text-decoration: none;
}

.footer-menu-list a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-legal,
.footer-copy {
	max-width: 840px;
	margin: 0 0 10px;
	color: var(--billet-faint);
	font-size: 0.82rem;
	line-height: 1.6;
}

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   11. Motion, forced colours, print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}

@media (forced-colors: active) {
	.btn-primary,
	.kc-btn-primary,
	.cat-filter a[aria-current='page'],
	.pagination .page-numbers.current {
		border: 2px solid ButtonText;
	}

	.nav-list .current-menu-item > a {
		text-decoration: underline;
	}
}

@media print {
	.nav-wrap,
	.site-footer,
	.kc-chat,
	.kc-cta,
	.skip-link {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.kc-prose p,
	.kc-prose li {
		color: #000;
	}

	a {
		color: #000;
		text-decoration: underline;
	}
}
