/*
Theme Name: Tspeed
Theme URI: https://example.com/tspeed
Author: Tspeed
Author URI: https://example.com
Description: Tspeed is a professional B2B corporate theme built for high-end all-metal servo motors, robot actuators and motion-control hardware. It ships with a conversion-focused front page, a product custom post type with product categories, a real inquiry-form backend that stores submissions and emails the site owner, and a disciplined tech-blue visual system. No build tools, no bundled paid plugins, no external font or CDN requests.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: tspeed
Tags: business, industrial, blog, custom-background, custom-logo, custom-menu, editor-style, featured-images, full-width-template, right-sidebar, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	/* Brand — tech blue */
	--tsp-blue-900: #04213f;
	--tsp-blue-800: #083e86;
	--tsp-blue-700: #0a52ac;
	--tsp-blue-600: #0b63e5;
	--tsp-blue-500: #2f7fee;
	--tsp-blue-200: #b9d3fa;
	--tsp-blue-100: #e4eefc;
	--tsp-blue-50: #f1f6fe;

	/* Neutrals */
	--tsp-ink: #0c1a2b;
	--tsp-ink-soft: #26374d;
	--tsp-body: #54637a;
	--tsp-muted: #7b8aa0;
	--tsp-line: #e2e9f2;
	--tsp-line-strong: #cfdae8;

	/* Surfaces */
	--tsp-bg: #ffffff;
	--tsp-bg-alt: #f5f8fc;
	--tsp-bg-deep: #0a1628;
	--tsp-bg-deep-2: #10243f;

	/* Status */
	--tsp-success: #0f7b4f;
	--tsp-success-bg: #e7f6ef;
	--tsp-danger: #b3261e;
	--tsp-danger-bg: #fdecea;

	/* Typography */
	--tsp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
	--tsp-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	/* Radii */
	--tsp-radius-sm: 6px;
	--tsp-radius: 10px;
	--tsp-radius-lg: 16px;
	--tsp-radius-pill: 999px;

	/* Elevation */
	--tsp-shadow-xs: 0 1px 2px rgba(12, 26, 43, 0.06);
	--tsp-shadow-sm: 0 2px 4px rgba(12, 26, 43, 0.05), 0 1px 2px rgba(12, 26, 43, 0.04);
	--tsp-shadow: 0 10px 28px -10px rgba(11, 60, 130, 0.18);
	--tsp-shadow-lg: 0 28px 56px -24px rgba(11, 60, 130, 0.3);

	/* Layout */
	--tsp-container: 1200px;
	--tsp-container-narrow: 820px;
	--tsp-gutter: 20px;
	--tsp-header-h: 74px;
	--tsp-section-y: 88px;

	/* Motion */
	--tsp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. Base / reset
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--tsp-header-h) + 16px);
}

body {
	margin: 0;
	background-color: var(--tsp-bg);
	color: var(--tsp-body);
	font-family: var(--tsp-font);
	font-size: 16px;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--tsp-ink);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	overflow-wrap: break-word;
}

h1 {
	font-size: clamp(2rem, 4.4vw, 3.25rem);
}

h2 {
	font-size: clamp(1.65rem, 3vw, 2.35rem);
}

h3 {
	font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

h4 {
	font-size: 1.125rem;
}

h5 {
	font-size: 1rem;
}

h6 {
	font-size: 0.9375rem;
}

p {
	margin: 0 0 1.15em;
}

a {
	color: var(--tsp-blue-700);
	text-decoration: none;
	transition: color 0.18s var(--tsp-ease);
}

a:hover,
a:focus {
	color: var(--tsp-blue-600);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--tsp-blue-500);
	outline-offset: 2px;
	border-radius: 4px;
}

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

img {
	display: block;
	border-style: none;
}

figure {
	margin: 0 0 1.5em;
}

figcaption {
	margin-top: 0.6em;
	color: var(--tsp-muted);
	font-size: 0.875rem;
	text-align: center;
}

ul,
ol {
	margin: 0 0 1.25em;
	padding-left: 1.4em;
}

li > ul,
li > ol {
	margin-bottom: 0;
}

blockquote {
	margin: 0 0 1.5em;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--tsp-blue-600);
	color: var(--tsp-ink-soft);
	font-size: 1.0625rem;
	font-style: italic;
}

pre,
code,
kbd,
samp {
	font-family: var(--tsp-font-mono);
	font-size: 0.9em;
}

pre {
	margin: 0 0 1.5em;
	padding: 18px 20px;
	overflow: auto;
	background: var(--tsp-bg-alt);
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius);
	font-size: 0.875rem;
	line-height: 1.65;
}

code {
	padding: 2px 6px;
	background: var(--tsp-blue-50);
	border-radius: 4px;
	color: var(--tsp-blue-800);
}

pre code {
	padding: 0;
	background: none;
	color: inherit;
}

hr {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--tsp-line);
}

table {
	width: 100%;
	margin: 0 0 1.75em;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

th,
td {
	padding: 12px 14px;
	border: 1px solid var(--tsp-line);
	text-align: left;
	vertical-align: top;
}

thead th {
	background: var(--tsp-bg-alt);
	color: var(--tsp-ink);
	font-weight: 600;
}

tbody tr:nth-child(even) {
	background: #fafcff;
}

/* WordPress core alignment classes */
.alignleft {
	float: left;
	margin: 0.35em 1.6em 1.2em 0;
}

.alignright {
	float: right;
	margin: 0.35em 0 1.2em 1.6em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	margin-left: -40px;
	margin-right: -40px;
	max-width: calc(100% + 80px);
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
	color: var(--tsp-muted);
	font-size: 0.875rem;
}

.sticky {
	display: block;
}

.bypostauthor {
	display: block;
}

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

.screen-reader-text:focus {
	display: block;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 14px 22px;
	clip: auto !important;
	clip-path: none;
	background: var(--tsp-blue-700);
	border-radius: var(--tsp-radius-sm);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.tsp-container {
	width: 100%;
	max-width: var(--tsp-container);
	margin: 0 auto;
	padding: 0 var(--tsp-gutter);
}

.tsp-container--narrow {
	max-width: var(--tsp-container-narrow);
}

.tsp-main {
	display: block;
}

.tsp-content-area {
	padding: 56px 0 72px;
}

.tsp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
}

@media (min-width: 1024px) {
	.tsp-layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

/* ==========================================================================
   4. Typography helpers
   ========================================================================== */

.tsp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--tsp-blue-700);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tsp-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--tsp-blue-600);
}

.tsp-section--deep .tsp-eyebrow {
	color: var(--tsp-blue-200);
}

.tsp-section--deep .tsp-eyebrow::before {
	background: var(--tsp-blue-500);
}

.tsp-lead {
	color: var(--tsp-ink-soft);
	font-size: 1.0625rem;
}

.tsp-muted {
	color: var(--tsp-muted);
}

.tsp-text-balance {
	text-wrap: balance;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.tsp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--tsp-radius-pill);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s var(--tsp-ease), border-color 0.18s var(--tsp-ease), color 0.18s var(--tsp-ease), transform 0.18s var(--tsp-ease), box-shadow 0.18s var(--tsp-ease);
}

.tsp-btn:active {
	transform: translateY(1px);
}

.tsp-btn--primary {
	background: var(--tsp-blue-600);
	border-color: var(--tsp-blue-600);
	color: #fff;
	box-shadow: var(--tsp-shadow-sm);
}

.tsp-btn--primary:hover,
.tsp-btn--primary:focus {
	background: var(--tsp-blue-700);
	border-color: var(--tsp-blue-700);
	color: #fff;
	box-shadow: 0 10px 22px -10px rgba(11, 99, 229, 0.7);
}

.tsp-btn--ghost {
	background: transparent;
	border-color: var(--tsp-line-strong);
	color: var(--tsp-ink);
}

.tsp-btn--ghost:hover,
.tsp-btn--ghost:focus {
	background: var(--tsp-blue-50);
	border-color: var(--tsp-blue-500);
	color: var(--tsp-blue-800);
}

.tsp-btn--light {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.34);
	color: #fff;
}

.tsp-btn--light:hover,
.tsp-btn--light:focus {
	background: #fff;
	border-color: #fff;
	color: var(--tsp-blue-800);
}

.tsp-btn--lg {
	padding: 16px 34px;
	font-size: 1rem;
}

.tsp-btn--block {
	width: 100%;
}

.tsp-btn__icon {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
}

.tsp-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* Text link with arrow */
.tsp-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.9375rem;
	font-weight: 600;
}

.tsp-link-arrow svg {
	width: 15px;
	height: 15px;
	transition: transform 0.18s var(--tsp-ease);
}

.tsp-link-arrow:hover svg {
	transform: translateX(3px);
}

/* ==========================================================================
   6. Header
   ========================================================================== */

.tsp-topbar {
	background: var(--tsp-bg-deep);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.8125rem;
}

.tsp-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 40px;
}

.tsp-topbar__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsp-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.tsp-topbar__item svg {
	width: 14px;
	height: 14px;
	opacity: 0.7;
}

.tsp-topbar a {
	color: rgba(255, 255, 255, 0.9);
}

.tsp-topbar a:hover,
.tsp-topbar a:focus {
	color: #fff;
}

.tsp-header {
	position: relative;
	z-index: 60;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--tsp-line);
	transition: box-shadow 0.2s var(--tsp-ease), background-color 0.2s var(--tsp-ease);
}

.tsp-header.is-sticky {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 6px 24px -14px rgba(11, 60, 130, 0.4);
}

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

.tsp-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.tsp-brand__logo img,
.tsp-brand__logo svg {
	max-height: 40px;
	width: auto;
}

.tsp-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	text-decoration: none;
}

.tsp-brand__name {
	color: var(--tsp-ink);
	font-size: 1.3125rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tsp-brand__tagline {
	color: var(--tsp-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tsp-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.tsp-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsp-nav__list li {
	position: relative;
}

.tsp-nav__list a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--tsp-radius-sm);
	color: var(--tsp-ink-soft);
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
}

.tsp-nav__list a:hover,
.tsp-nav__list a:focus {
	background: var(--tsp-blue-50);
	color: var(--tsp-blue-800);
}

.tsp-nav__list .current-menu-item > a,
.tsp-nav__list .current_page_item > a,
.tsp-nav__list .current-menu-ancestor > a,
.tsp-nav__list .current_page_ancestor > a {
	color: var(--tsp-blue-700);
	font-weight: 600;
}

.tsp-nav__list .current-menu-item > a::after,
.tsp-nav__list .current_page_item > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 3px;
	height: 2px;
	border-radius: 2px;
	background: var(--tsp-blue-600);
}

/* Dropdown */
.tsp-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 70;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius);
	box-shadow: var(--tsp-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s var(--tsp-ease), transform 0.18s var(--tsp-ease), visibility 0.18s;
}

.tsp-nav__list li:hover > .sub-menu,
.tsp-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tsp-nav__list .sub-menu a {
	padding: 9px 12px;
	font-size: 0.875rem;
	font-weight: 400;
}

.tsp-nav__list .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
}

/* Sub-menu toggle button: injected by JS, only meaningful on small screens. */
.tsp-submenu-toggle {
	display: none;
	position: absolute;
	top: 4px;
	right: 0;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-sm);
	color: var(--tsp-blue-700);
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.tsp-nav__list > li.is-open > .tsp-submenu-toggle {
	background: var(--tsp-blue-50);
	border-color: var(--tsp-blue-200);
}

.tsp-nav__toggle {
	display: none;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--tsp-line-strong);
	border-radius: var(--tsp-radius-sm);
	color: var(--tsp-ink);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.tsp-nav__toggle svg {
	width: 18px;
	height: 18px;
}

.tsp-header__cta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

@media (max-width: 1023px) {
	.tsp-header__inner {
		flex-wrap: wrap;
		min-height: 66px;
	}

	.tsp-nav__toggle {
		display: inline-flex;
	}

	.tsp-nav {
		order: 10;
		flex: 1 0 100%;
		margin-left: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s var(--tsp-ease);
	}

	.tsp-nav.is-open {
		max-height: 70vh;
		overflow-y: auto;
	}

	.tsp-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 0 16px;
		border-top: 1px solid var(--tsp-line);
	}

	.tsp-nav__list a {
		padding: 12px 4px;
		border-radius: 0;
		font-size: 1rem;
	}

	.tsp-nav__list .current-menu-item > a::after,
	.tsp-nav__list .current_page_item > a::after {
		display: none;
	}

	.tsp-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-left: 2px solid var(--tsp-line);
		border-radius: 0;
		margin: 0 0 6px 8px;
		padding: 0 0 0 8px;
		background: transparent;
		display: none;
	}

	.tsp-nav__list li.is-open > .sub-menu {
		display: block;
	}

	.tsp-nav__list .sub-menu .sub-menu {
		left: 0;
	}

	.tsp-nav__list .sub-menu a {
		padding: 9px 4px;
	}

	.tsp-nav__list > li {
		position: relative;
	}

	.tsp-nav__list > li > a {
		padding-right: 56px;
	}

	.tsp-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.tsp-nav__list .sub-menu li > a {
		padding-right: 56px;
	}
}

@media (max-width: 600px) {
	.tsp-header__cta .tsp-btn {
		padding: 10px 16px;
		font-size: 0.8125rem;
	}

	.tsp-brand__tagline {
		display: none;
	}
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.tsp-hero {
	position: relative;
	overflow: hidden;
	background:
		url("assets/images/pattern-grid.svg") repeat,
		linear-gradient(180deg, #f7faff 0%, #ffffff 62%);
	background-size: 44px 44px, auto;
	border-bottom: 1px solid var(--tsp-line);
}

.tsp-hero::after {
	content: "";
	position: absolute;
	top: -180px;
	right: -160px;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(11, 99, 229, 0.13) 0%, rgba(11, 99, 229, 0) 68%);
	pointer-events: none;
}

.tsp-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding: 76px 0 84px;
}

@media (min-width: 1024px) {
	.tsp-hero__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 64px;
		padding: 96px 0 104px;
	}
}

.tsp-hero__title {
	margin: 0 0 20px;
	color: var(--tsp-ink);
	font-size: clamp(2.15rem, 5.2vw, 3.6rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.tsp-hero__title em {
	color: var(--tsp-blue-600);
	font-style: normal;
}

.tsp-hero__text {
	max-width: 560px;
	margin: 0 0 30px;
	color: var(--tsp-body);
	font-size: 1.0625rem;
	line-height: 1.72;
}

.tsp-hero__media {
	position: relative;
}

.tsp-hero__frame {
	position: relative;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-lg);
	box-shadow: var(--tsp-shadow-lg);
}

.tsp-hero__frame img,
.tsp-hero__frame svg {
	display: block;
	width: 100%;
	border-radius: var(--tsp-radius);
}

.tsp-hero__badge {
	position: absolute;
	left: -14px;
	bottom: 26px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-pill);
	box-shadow: var(--tsp-shadow);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tsp-ink);
}

.tsp-hero__badge svg {
	width: 18px;
	height: 18px;
	color: var(--tsp-blue-600);
}

@media (max-width: 600px) {
	.tsp-hero__badge {
		left: 10px;
		bottom: 10px;
		padding: 9px 14px;
		font-size: 0.75rem;
	}
}

/* Hero stats strip */
.tsp-hero__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 44px 0 0;
	padding: 0;
	list-style: none;
	background: var(--tsp-line);
	border-top: 1px solid var(--tsp-line);
	border-bottom: 1px solid var(--tsp-line);
}

@media (min-width: 782px) {
	.tsp-hero__stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.tsp-hero__stat {
	padding: 22px 18px;
	background: rgba(255, 255, 255, 0.86);
}

.tsp-hero__stat-value {
	display: block;
	color: var(--tsp-blue-700);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.tsp-hero__stat-label {
	display: block;
	margin-top: 4px;
	color: var(--tsp-muted);
	font-size: 0.8125rem;
	font-weight: 500;
}

/* ==========================================================================
   8. Sections
   ========================================================================== */

.tsp-section {
	padding: var(--tsp-section-y) 0;
}

.tsp-section--tight {
	padding: 62px 0;
}

.tsp-section--alt {
	background: var(--tsp-bg-alt);
	border-top: 1px solid var(--tsp-line);
	border-bottom: 1px solid var(--tsp-line);
}

.tsp-section--deep {
	background:
		url("assets/images/pattern-grid-dark.svg") repeat,
		var(--tsp-bg-deep);
	background-size: 44px 44px, auto;
	color: rgba(255, 255, 255, 0.76);
}

.tsp-section--deep h1,
.tsp-section--deep h2,
.tsp-section--deep h3,
.tsp-section--deep h4 {
	color: #fff;
}

.tsp-section__head {
	max-width: 720px;
	margin: 0 auto 52px;
	text-align: center;
}

.tsp-section__head--left {
	margin-left: 0;
	text-align: left;
}

.tsp-section__title {
	margin: 0 0 14px;
}

.tsp-section__subtitle {
	margin: 0;
	color: var(--tsp-body);
	font-size: 1.0625rem;
}

.tsp-section--deep .tsp-section__subtitle {
	color: rgba(255, 255, 255, 0.72);
}

.tsp-section__foot {
	margin-top: 44px;
	text-align: center;
}

/* ==========================================================================
   9. Grids
   ========================================================================== */

.tsp-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.tsp-grid--2,
	.tsp-grid--3,
	.tsp-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

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

.tsp-grid--media {
	align-items: center;
	gap: 52px;
}

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

/* ==========================================================================
   10. Cards
   ========================================================================== */

.tsp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 28px 26px;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-lg);
	transition: border-color 0.2s var(--tsp-ease), box-shadow 0.2s var(--tsp-ease), transform 0.2s var(--tsp-ease);
}

.tsp-card:hover {
	border-color: var(--tsp-blue-200);
	box-shadow: var(--tsp-shadow);
	transform: translateY(-3px);
}

.tsp-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 20px;
	background: var(--tsp-blue-50);
	border: 1px solid var(--tsp-blue-100);
	border-radius: var(--tsp-radius);
	color: var(--tsp-blue-600);
}

.tsp-card__icon svg {
	width: 26px;
	height: 26px;
}

.tsp-card__title {
	margin: 0 0 10px;
	font-size: 1.1875rem;
}

.tsp-card__title a {
	color: inherit;
	text-decoration: none;
}

.tsp-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--tsp-radius-lg);
}

.tsp-card__text {
	margin: 0;
	color: var(--tsp-body);
	font-size: 0.9375rem;
	line-height: 1.68;
}

.tsp-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px dashed var(--tsp-line-strong);
	list-style: none;
	font-size: 0.8125rem;
	color: var(--tsp-muted);
}

.tsp-card__meta strong {
	color: var(--tsp-ink);
	font-weight: 600;
}

.tsp-card__foot {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--tsp-line);
}

.tsp-card--media {
	padding: 0;
	overflow: hidden;
}

.tsp-card__media {
	aspect-ratio: 4 / 3;
	background: var(--tsp-bg-alt);
	border-bottom: 1px solid var(--tsp-line);
	overflow: hidden;
}

.tsp-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--tsp-ease);
}

.tsp-card:hover .tsp-card__media img {
	transform: scale(1.04);
}

.tsp-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px 24px 26px;
}

/* Feature list variant (used in capabilities section) */
.tsp-feature-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
}

.tsp-feature-list li {
	position: relative;
	padding-left: 30px;
	color: var(--tsp-body);
	font-size: 0.9375rem;
}

.tsp-feature-list li svg {
	position: absolute;
	left: 0;
	top: 3px;
	width: 19px;
	height: 19px;
	color: var(--tsp-blue-600);
}

.tsp-section--deep .tsp-feature-list li {
	color: rgba(255, 255, 255, 0.8);
}

.tsp-section--deep .tsp-feature-list li svg {
	color: var(--tsp-blue-200);
}

/* ==========================================================================
   11. Stats band
   ========================================================================== */

.tsp-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 782px) {
	.tsp-stats--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

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

.tsp-stat {
	padding-left: 18px;
	border-left: 3px solid var(--tsp-blue-600);
}

.tsp-stat__value {
	display: block;
	color: var(--tsp-ink);
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.tsp-stat__label {
	display: block;
	margin-top: 6px;
	color: var(--tsp-body);
	font-size: 0.875rem;
	line-height: 1.5;
}

.tsp-section--deep .tsp-stat {
	border-left-color: var(--tsp-blue-500);
}

.tsp-section--deep .tsp-stat__value {
	color: #fff;
}

.tsp-section--deep .tsp-stat__label {
	color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   12. Inquiry / forms
   ========================================================================== */

.tsp-inquiry {
	display: grid;
	gap: 44px;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

@media (min-width: 1000px) {
	.tsp-inquiry {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: 56px;
	}
}

.tsp-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	padding: 30px;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-lg);
	box-shadow: var(--tsp-shadow-sm);
}

/*
 * When the form is dropped into a card that already provides the frame — the
 * Elementor inquiry section does — the inner card must step aside.
 */
.tsp-form--bare {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

@media (max-width: 560px) {
	.tsp-form {
		grid-template-columns: minmax(0, 1fr);
		padding: 22px;
	}

	.tsp-form--bare {
		padding: 0;
	}
}

.tsp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.tsp-field--full {
	grid-column: 1 / -1;
}

.tsp-field label {
	color: var(--tsp-ink);
	font-size: 0.8125rem;
	font-weight: 600;
}

.tsp-field .req {
	color: var(--tsp-danger);
}

.tsp-field input[type="text"],
.tsp-field input[type="email"],
.tsp-field input[type="tel"],
.tsp-field input[type="url"],
.tsp-field input[type="number"],
.tsp-field input[type="search"],
.tsp-field input[type="password"],
.tsp-field select,
.tsp-field textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid var(--tsp-line-strong);
	border-radius: var(--tsp-radius-sm);
	color: var(--tsp-ink);
	font-family: inherit;
	font-size: 0.9375rem;
	line-height: 1.5;
	transition: border-color 0.18s var(--tsp-ease), box-shadow 0.18s var(--tsp-ease);
}

.tsp-field textarea {
	min-height: 130px;
	resize: vertical;
}

.tsp-field input:focus,
.tsp-field select:focus,
.tsp-field textarea:focus {
	border-color: var(--tsp-blue-500);
	box-shadow: 0 0 0 3px rgba(47, 127, 238, 0.16);
	outline: none;
}

.tsp-field input::placeholder,
.tsp-field textarea::placeholder {
	color: #a4b1c4;
}

.tsp-field--consent {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
}

.tsp-field--consent input {
	width: 17px;
	height: 17px;
	min-height: 0;
	margin-top: 3px;
	flex: 0 0 auto;
	accent-color: var(--tsp-blue-600);
}

.tsp-field--consent label {
	color: var(--tsp-body);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.6;
}

.tsp-form__submit {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 4px;
}

.tsp-form__note {
	margin: 0;
	color: var(--tsp-muted);
	font-size: 0.8125rem;
	line-height: 1.6;
}

/* Honeypot — visually removed but present for bots */
.tsp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Form feedback */
.tsp-notice {
	grid-column: 1 / -1;
	margin: 0 0 4px;
	padding: 14px 16px;
	border: 1px solid;
	border-radius: var(--tsp-radius-sm);
	font-size: 0.875rem;
	line-height: 1.6;
}

.tsp-notice--success {
	background: var(--tsp-success-bg);
	border-color: rgba(15, 123, 79, 0.28);
	color: var(--tsp-success);
}

.tsp-notice--error {
	background: var(--tsp-danger-bg);
	border-color: rgba(179, 38, 30, 0.28);
	color: var(--tsp-danger);
}

.tsp-notice ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

/* Contact detail list */
.tsp-contact-list {
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 16px;
}

.tsp-contact-list li {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.tsp-contact-list__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--tsp-blue-50);
	border: 1px solid var(--tsp-blue-100);
	border-radius: var(--tsp-radius-sm);
	color: var(--tsp-blue-600);
}

.tsp-contact-list__icon svg {
	width: 19px;
	height: 19px;
}

.tsp-contact-list__label {
	display: block;
	color: var(--tsp-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tsp-contact-list__value {
	display: block;
	color: var(--tsp-ink);
	font-size: 0.9375rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.tsp-section--deep .tsp-contact-list__icon {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
	color: var(--tsp-blue-200);
}

.tsp-section--deep .tsp-contact-list__label {
	color: rgba(255, 255, 255, 0.55);
}

.tsp-section--deep .tsp-contact-list__value,
.tsp-section--deep .tsp-contact-list__value a {
	color: #fff;
}

/* ==========================================================================
   13. Blog / archive / single
   ========================================================================== */

.tsp-page-header {
	padding: 52px 0 46px;
	background: var(--tsp-bg-alt);
	border-bottom: 1px solid var(--tsp-line);
}

.tsp-page-header__title {
	margin: 0;
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.tsp-page-header__desc {
	max-width: 720px;
	margin: 12px 0 0;
	color: var(--tsp-body);
}

.tsp-posts {
	display: grid;
	gap: 30px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.tsp-posts--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.tsp-posts--grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tsp-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-lg);
	transition: border-color 0.2s var(--tsp-ease), box-shadow 0.2s var(--tsp-ease), transform 0.2s var(--tsp-ease);
}

.tsp-post-card:hover {
	border-color: var(--tsp-blue-200);
	box-shadow: var(--tsp-shadow);
	transform: translateY(-3px);
}

.tsp-post-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--tsp-bg-alt);
	overflow: hidden;
}

.tsp-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s var(--tsp-ease);
}

.tsp-post-card:hover .tsp-post-card__thumb img {
	transform: scale(1.05);
}

.tsp-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px;
}

.tsp-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0 0 12px;
	color: var(--tsp-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tsp-post-card__title {
	margin: 0 0 10px;
	font-size: 1.1875rem;
	line-height: 1.35;
}

.tsp-post-card__title a {
	color: inherit;
}

.tsp-post-card__excerpt {
	margin: 0;
	color: var(--tsp-body);
	font-size: 0.9375rem;
	line-height: 1.68;
}

.tsp-post-card__foot {
	margin-top: auto;
	padding-top: 20px;
}

/* --- Product category archive (/product-category/<slug>/) --- */

.tsp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--tsp-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tsp-breadcrumb a {
	color: inherit;
}

.tsp-breadcrumb a:hover,
.tsp-breadcrumb a:focus {
	color: var(--tsp-blue-600);
}

.tsp-breadcrumb__sep {
	opacity: 0.45;
}

.tsp-breadcrumb__current {
	color: var(--tsp-ink);
}

.tsp-product-card .tsp-post-card__meta {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	font-size: 0.8125rem;
}

.tsp-product-card .tsp-post-card__meta > span:first-child {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	font-size: 0.75rem;
	color: var(--tsp-muted);
}

.tsp-product-card__specs {
	color: var(--tsp-body);
}

/* Product category placeholder — shown when a category is listed in the
   navigation but its model pages are not published yet. */
.tsp-category-empty {
	align-items: center;
	text-align: center;
	padding: 56px 28px;
}

.tsp-category-empty:hover {
	transform: none;
}

.tsp-category-empty__icon {
	margin-bottom: 22px;
}

.tsp-category-empty .tsp-card__text {
	max-width: 62ch;
}

.tsp-category-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
}

/* Browse-dimension hub pages (By Type / By Torque / By Application): the
   sub-category branches come first, the models follow underneath. */
.tsp-subcats__title {
	margin: 0 0 22px;
	font-size: 1.375rem;
}

.tsp-cat-card .tsp-card__text {
	flex: 1 1 auto;
}

.tsp-cat-card__count {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tsp-muted);
}

.tsp-cat-card .tsp-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.tsp-models {
	margin-top: 56px;
	padding-top: 44px;
	border-top: 1px solid var(--tsp-line);
}

.tsp-list-item {
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr);
	padding-bottom: 30px;
	border-bottom: 1px solid var(--tsp-line);
}

@media (min-width: 700px) {
	.tsp-list-item {
		grid-template-columns: 260px minmax(0, 1fr);
	}

	.tsp-list-item--no-thumb {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tsp-entry {
	max-width: 100%;
}

.tsp-entry__title {
	margin: 0 0 14px;
}

.tsp-entry__title a {
	color: inherit;
}

.tsp-entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0 0 22px;
	color: var(--tsp-muted);
	font-size: 0.8125rem;
}

.tsp-entry__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tsp-entry__meta svg {
	width: 14px;
	height: 14px;
}

.tsp-entry__thumb {
	margin: 0 0 28px;
}

.tsp-entry__thumb img {
	width: 100%;
	border-radius: var(--tsp-radius-lg);
}

.tsp-entry__content > *:first-child {
	margin-top: 0;
}

.tsp-entry__content > *:last-child {
	margin-bottom: 0;
}

.tsp-entry__content h2,
.tsp-entry__content h3 {
	margin-top: 1.8em;
}

.tsp-entry__content img {
	border-radius: var(--tsp-radius);
}

.tsp-entry__footer {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--tsp-line);
}

.tsp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	font-size: 0.875rem;
}

.tsp-tags__label {
	color: var(--tsp-muted);
	font-weight: 600;
}

.tsp-tags a {
	display: inline-block;
	padding: 4px 12px;
	background: var(--tsp-blue-50);
	border: 1px solid var(--tsp-blue-100);
	border-radius: var(--tsp-radius-pill);
	color: var(--tsp-blue-800);
	font-size: 0.8125rem;
}

.tsp-tags a:hover {
	background: var(--tsp-blue-100);
}

/* Product category tags — grouped by By Type / By Torque / By Application. */
.tsp-product-tags {
	display: grid;
	gap: 8px;
	margin: 0 0 22px;
}

.tsp-product-tags__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.tsp-product-tags__label {
	min-width: 96px;
	color: var(--tsp-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tsp-product-tags__items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tsp-product-tags__items a {
	display: inline-block;
	padding: 4px 12px;
	background: var(--tsp-blue-50);
	border: 1px solid var(--tsp-blue-100);
	border-radius: var(--tsp-radius-pill);
	color: var(--tsp-blue-800);
	font-size: 0.8125rem;
	line-height: 1.5;
	transition: background 0.18s var(--tsp-ease);
}

.tsp-product-tags__items a:hover,
.tsp-product-tags__items a:focus {
	background: var(--tsp-blue-100);
	color: var(--tsp-blue-800);
}

/* Post navigation */
.tsp-post-nav {
	display: grid;
	gap: 16px;
	margin-top: 40px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
	.tsp-post-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tsp-post-nav__item {
	display: block;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius);
	transition: border-color 0.18s var(--tsp-ease), box-shadow 0.18s var(--tsp-ease);
}

.tsp-post-nav__item:hover {
	border-color: var(--tsp-blue-200);
	box-shadow: var(--tsp-shadow-sm);
}

.tsp-post-nav__dir {
	display: block;
	margin-bottom: 6px;
	color: var(--tsp-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tsp-post-nav__title {
	display: block;
	color: var(--tsp-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
}

.tsp-post-nav__item--next {
	text-align: right;
}

/* Pagination */
.tsp-pagination {
	margin-top: 44px;
}

.tsp-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.tsp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-sm);
	color: var(--tsp-ink-soft);
	font-size: 0.9375rem;
	font-weight: 600;
}

.tsp-pagination .page-numbers:hover {
	border-color: var(--tsp-blue-500);
	color: var(--tsp-blue-700);
}

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

.tsp-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ==========================================================================
   14. Sidebar & widgets
   ========================================================================== */

.tsp-sidebar {
	display: grid;
	gap: 26px;
	align-content: start;
}

.tsp-widget {
	padding: 24px;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-lg);
}

.tsp-widget__title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--tsp-line);
	font-size: 1.0625rem;
}

.tsp-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsp-widget ul li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--tsp-line);
	font-size: 0.9375rem;
}

.tsp-widget ul li:last-child {
	border-bottom: 0;
}

.tsp-widget ul ul {
	margin-top: 8px;
	padding-left: 14px;
}

.tsp-widget select {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--tsp-line-strong);
	border-radius: var(--tsp-radius-sm);
	font-family: inherit;
	font-size: 0.9375rem;
}

.tsp-widget .tagcloud a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 5px 12px;
	background: var(--tsp-blue-50);
	border-radius: var(--tsp-radius-pill);
	font-size: 0.8125rem !important;
}

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

.tsp-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--tsp-line-strong);
	border-radius: var(--tsp-radius-sm);
	font-family: inherit;
	font-size: 0.9375rem;
}

.tsp-search-form button {
	flex: 0 0 auto;
	padding: 0 18px;
	background: var(--tsp-blue-600);
	border: 0;
	border-radius: var(--tsp-radius-sm);
	color: #fff;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   15. Comments
   ========================================================================== */

.tsp-comments {
	margin-top: 52px;
	padding-top: 40px;
	border-top: 1px solid var(--tsp-line);
}

.tsp-comments__title {
	margin: 0 0 26px;
	font-size: 1.25rem;
}

.tsp-comments ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsp-comments ol ol {
	padding-left: 28px;
}

.tsp-comment {
	padding: 22px 0;
	border-bottom: 1px solid var(--tsp-line);
}

.tsp-comment__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.tsp-comment__avatar img {
	border-radius: 50%;
}

.tsp-comment__author {
	color: var(--tsp-ink);
	font-size: 0.9375rem;
	font-weight: 600;
}

.tsp-comment__date {
	color: var(--tsp-muted);
	font-size: 0.8125rem;
}

.tsp-comment__body {
	font-size: 0.9375rem;
}

.tsp-comment__body p:last-child {
	margin-bottom: 0;
}

.tsp-comment__reply {
	margin-top: 10px;
	font-size: 0.875rem;
	font-weight: 600;
}

.comment-form {
	display: grid;
	gap: 16px;
	margin-top: 34px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--tsp-ink);
	font-size: 0.8125rem;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--tsp-line-strong);
	border-radius: var(--tsp-radius-sm);
	font-family: inherit;
	font-size: 0.9375rem;
}

.comment-form .submit {
	padding: 13px 28px;
	background: var(--tsp-blue-600);
	border: 0;
	border-radius: var(--tsp-radius-pill);
	color: #fff;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--tsp-blue-700);
}

.comment-notes,
.logged-in-as,
.form-allowed-tags {
	color: var(--tsp-muted);
	font-size: 0.8125rem;
}

/* ==========================================================================
   16. 404 / search
   ========================================================================== */

.tsp-404 {
	padding: 96px 0 104px;
	text-align: center;
}

.tsp-404__code {
	display: block;
	color: var(--tsp-blue-100);
	font-size: clamp(5rem, 16vw, 9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
}

.tsp-404__title {
	margin: 12px 0 14px;
}

.tsp-404__text {
	max-width: 540px;
	margin: 0 auto 30px;
	color: var(--tsp-body);
}

.tsp-404__search {
	max-width: 480px;
	margin: 0 auto 34px;
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

.tsp-footer {
	background: var(--tsp-bg-deep);
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.9375rem;
}

.tsp-footer__top {
	display: grid;
	gap: 40px;
	padding: 68px 0 56px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 782px) {
	.tsp-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.tsp-footer__top {
		grid-template-columns: 1.5fr 1fr 1fr 1fr;
	}
}

.tsp-footer h2,
.tsp-footer h3 {
	margin: 0 0 18px;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tsp-footer a {
	color: rgba(255, 255, 255, 0.72);
}

.tsp-footer a:hover,
.tsp-footer a:focus {
	color: #fff;
}

.tsp-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.tsp-footer__brand img,
.tsp-footer__brand svg {
	max-height: 38px;
	width: auto;
}

.tsp-footer__brand-name {
	color: #fff;
	font-size: 1.3125rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tsp-footer__about {
	max-width: 380px;
	margin: 0 0 22px;
	line-height: 1.75;
}

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

.tsp-footer ul li {
	margin-bottom: 10px;
	line-height: 1.6;
}

/* Grouped product list: group headings first, children indented below. */
.tsp-footer__menu--grouped .tsp-footer__menu-group {
	margin-bottom: 14px;
	margin-top: 20px;
}

.tsp-footer__menu--grouped .tsp-footer__menu-group:first-child {
	margin-top: 0;
}

.tsp-footer__menu--grouped .tsp-footer__menu-group a {
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.tsp-footer__menu--grouped .tsp-footer__menu-child {
	margin-left: 14px;
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.875rem;
}

.tsp-footer__menu--grouped .tsp-footer__menu-child:last-child {
	margin-bottom: 0;
}

.tsp-footer__contact li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.tsp-footer__contact svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 4px;
	color: var(--tsp-blue-500);
}

.tsp-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 26px;
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8125rem;
}

.tsp-footer__bottom p {
	margin: 0;
}

.tsp-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.tsp-footer__nav li {
	margin: 0;
}

.tsp-social {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsp-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--tsp-radius-sm);
	transition: background-color 0.18s var(--tsp-ease), border-color 0.18s var(--tsp-ease);
}

.tsp-social a:hover {
	background: var(--tsp-blue-600);
	border-color: var(--tsp-blue-600);
}

.tsp-social svg {
	width: 17px;
	height: 17px;
}

/* ==========================================================================
   18. Utilities
   ========================================================================== */

.tsp-mt-0 {
	margin-top: 0;
}

.tsp-mb-0 {
	margin-bottom: 0;
}

.tsp-text-center {
	text-align: center;
}

.tsp-hide {
	display: none !important;
}

.tsp-media {
	overflow: hidden;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-lg);
	background: var(--tsp-bg-alt);
}

.tsp-media img {
	width: 100%;
}

/* Scroll reveal (JS adds .is-visible) */
@media (prefers-reduced-motion: no-preference) {
	.tsp-reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.55s var(--tsp-ease), transform 0.55s var(--tsp-ease);
	}

	.tsp-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   19. Responsive refinements
   ========================================================================== */

@media (max-width: 1023px) {
	:root {
		--tsp-section-y: 68px;
	}
}

@media (max-width: 782px) {
	:root {
		--tsp-section-y: 56px;
	}

	body {
		font-size: 15.5px;
	}

	.tsp-form {
		grid-template-columns: minmax(0, 1fr);
		padding: 22px;
	}

	.tsp-section__head {
		margin-bottom: 36px;
	}

	.tsp-topbar__inner {
		justify-content: center;
	}

	.tsp-topbar__list--secondary {
		display: none;
	}

	.alignwide,
	.alignfull {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.tsp-btn {
		padding: 12px 22px;
	}

	.tsp-btn-row .tsp-btn {
		flex: 1 1 auto;
	}

	.tsp-card {
		padding: 24px 22px;
	}

	.tsp-hero__frame {
		padding: 16px;
	}

	.tsp-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.tsp-post-nav__item--next {
		text-align: left;
	}
}

/* ==========================================================================
   20. WordPress block & editor alignment support
   ========================================================================== */

.wp-block-button__link {
	border-radius: var(--tsp-radius-pill);
	font-weight: 600;
}

.wp-block-quote {
	padding-left: 22px;
	border-left: 3px solid var(--tsp-blue-600);
}

.wp-block-table table {
	margin: 0;
}

.is-style-tsp-card {
	padding: 28px;
	background: #fff;
	border: 1px solid var(--tsp-line);
	border-radius: var(--tsp-radius-lg);
	box-shadow: var(--tsp-shadow-sm);
}

/* ==========================================================================
   21. Print
   ========================================================================== */

@media print {
	.tsp-header,
	.tsp-topbar,
	.tsp-footer,
	.tsp-sidebar,
	.tsp-nav__toggle,
	.tsp-btn {
		display: none !important;
	}

	body {
		color: #000;
		font-size: 12pt;
	}

	a {
		color: #000;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
	}
}
