/*
Theme Name: ShineBen 2026
Theme URI: https://shineben.com/
Description: ShineBen Machinery theme: complete-line positioning, structured product pages, industry pages and a server-side inquiry form. Product data comes from the ShineBen Core must-use plugin.
Author: ShineBen
Version: 0.9.9
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: shineben
*/

/* ---------- Tokens ---------- */

:root {
	--sb-ink: #0e1b2b;
	--sb-text: #2a3a4c;
	--sb-muted: #566577;
	--sb-line: #d7dfe7;
	--sb-line-soft: #e3e9ef;
	--sb-field-line: #b9c6d3;
	--sb-bg: #ffffff;
	--sb-bg-alt: #f3f6f9;
	--sb-bg-row: #f7f9fb;
	--sb-blue: #1b64a8;
	--sb-blue-dark: #124b80;
	--sb-blue-tint: #e8f1f9;
	--sb-blue-light: #8ec5f4;
	--sb-orange: #e06a1b;
	--sb-orange-soft: #f2c7a6;
	--sb-orange-text: #b4530f;
	--sb-green: #1e8e4e;
	--sb-dark: #0e1b2b;
	--sb-dark-line: #2a3d52;
	--sb-dark-text: #c3cfdb;
	--sb-dark-muted: #9fb2c6;

	--sb-font-display: "Archivo", "Helvetica Neue", sans-serif;
	--sb-font-body: "IBM Plex Sans", system-ui, sans-serif;
	--sb-font-mono: "IBM Plex Mono", ui-monospace, monospace;

	--sb-radius: 10px;
	--sb-radius-sm: 6px;
	--sb-container: 1240px;
	--sb-gutter: clamp(16px, 4vw, 32px);
	--sb-section: clamp(56px, 8vw, 96px);
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--sb-bg);
	color: var(--sb-text);
	font-family: var(--sb-font-body);
	font-size: 16px;
	line-height: 1.6;
}

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

/* Links are never underlined: colour, weight, an arrow or an icon mark them
   instead (see "Links in text" below). */
a {
	color: var(--sb-blue);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
	color: var(--sb-blue-dark);
}

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

h1,
h2,
h3,
h4 {
	color: var(--sb-ink);
	font-family: var(--sb-font-display);
	font-weight: 700;
	line-height: 1.15;
}

table {
	border-collapse: collapse;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	clip: auto;
}

.sb-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--sb-ink);
	color: #fff;
}

.sb-skip-link:focus {
	top: 16px;
}

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

.sb-mono {
	font-family: var(--sb-font-mono);
}

/* ---------- Type ---------- */

.sb-eyebrow {
	margin: 0 0 12px;
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sb-h1 {
	margin: 0 0 20px;
	font-size: clamp(34px, 4.4vw, 58px);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.sb-h2 {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.1;
}

.sb-h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
}

.sb-lead {
	max-width: 620px;
	margin: 0 0 28px;
	font-size: 18px;
	line-height: 1.55;
}

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

.sb-section--alt {
	background: var(--sb-bg-alt);
}

.sb-section--dark {
	background: var(--sb-dark);
	color: var(--sb-dark-text);
}

.sb-section--dark h2,
.sb-section--dark h3 {
	color: #fff;
}

.sb-section--dark .sb-eyebrow {
	color: var(--sb-dark-muted);
}

.sb-section__head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 48px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 40px;
}

.sb-section__head > div {
	flex: 1 1 480px;
}

.sb-section__head > p {
	flex: 1 1 360px;
	margin: 0;
}

/* ---------- Buttons and links ---------- */

.sb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--sb-radius-sm);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.sb-btn--primary {
	background: var(--sb-blue);
	color: #fff;
}

.sb-btn--primary:hover {
	background: var(--sb-blue-dark);
	color: #fff;
}

.sb-btn--secondary {
	border-color: var(--sb-field-line);
	background: #fff;
	color: var(--sb-ink);
}

.sb-btn--secondary:hover {
	border-color: var(--sb-ink);
	color: var(--sb-ink);
}

.sb-btn--light {
	background: #fff;
	color: var(--sb-ink);
}

.sb-btn--light:hover {
	background: var(--sb-blue-tint);
	color: var(--sb-ink);
}

.sb-btn--ghost-dark {
	border-color: #5d7189;
	color: #fff;
}

.sb-btn--ghost-dark:hover {
	border-color: #fff;
	color: #fff;
}

.sb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.sb-link-arrow {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--sb-blue);
	font-weight: 600;
	text-decoration: none;
}

.sb-link-arrow::after {
	content: "→";
	margin-left: 6px;
}

.sb-link-icon {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	color: var(--sb-ink);
	font-weight: 500;
	text-decoration: none;
}

.sb-icon {
	flex: none;
	width: 20px;
	height: 20px;
}

/* ---------- Top bar and header ---------- */

.sb-topbar {
	background: var(--sb-dark);
	color: var(--sb-dark-text);
	font-size: 14px;
}

.sb-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.sb-topbar__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}

.sb-topbar a {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	color: #fff;
	text-decoration: none;
}

.sb-topbar a:hover {
	color: var(--sb-blue-light);
}

.sb-topbar .sb-icon {
	width: 16px;
	height: 16px;
	color: var(--sb-dark-muted);
}

.sb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--sb-line);
	background: #fff;
}

.admin-bar .sb-header {
	top: 32px;
}

.sb-header__inner {
	display: flex;
	gap: 12px 20px;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
}

.sb-logo {
	display: flex;
	flex: none;
	align-items: center;
	min-height: 44px;
}

.sb-logo img {
	display: block;
	width: auto;
	height: 48px;
}

.sb-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius-sm);
	background: #fff;
	color: var(--sb-ink);
	cursor: pointer;
}

.sb-nav-toggle__close,
.sb-nav-toggle[aria-expanded="true"] .sb-nav-toggle__open {
	display: none;
}

.sb-nav-toggle[aria-expanded="true"] .sb-nav-toggle__close {
	display: block;
}

.sb-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-nav > ul {
	display: flex;
	gap: 0;
	align-items: center;
}

/* Top-level items are pills: the link and its chevron share one background. */
.sb-nav > ul > li {
	position: relative;
	display: flex;
	align-items: center;
	border-radius: 999px;
}

.sb-nav > ul > li:hover,
.sb-nav > ul > li.is-open {
	background: var(--sb-bg-alt);
}

.sb-nav > ul > li.current-menu-item,
.sb-nav > ul > li.current_page_item,
.sb-nav > ul > li.current-menu-ancestor {
	background: var(--sb-blue-tint);
}

.sb-nav > ul > li > a {
	display: block;
	padding: 10px 11px;
	border-radius: 999px;
	color: var(--sb-ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.sb-nav > ul > li.menu-item-has-children > a,
.sb-nav > ul > li.sb-has-mega > a {
	padding-right: 2px;
}

.sb-nav > ul > li.current-menu-item > a,
.sb-nav > ul > li.current_page_item > a,
.sb-nav > ul > li.current-menu-ancestor > a {
	color: var(--sb-blue);
}

.sb-sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 40px;
	margin-right: 6px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--sb-muted);
	cursor: pointer;
}

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

.sb-nav > ul > li.is-open .sb-sub-toggle svg {
	transform: rotate(180deg);
}

/* Regular dropdowns (Solutions, News, …). */
.sb-nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 60;
	display: none;
	min-width: 260px;
	padding: 8px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
	box-shadow: 0 16px 40px rgba(14, 27, 43, 0.12);
}

/* Invisible bridge over the gap so the pointer can reach the dropdown. */
.sb-nav .sub-menu::before {
	content: "";
	position: absolute;
	top: -12px;
	right: 0;
	left: 0;
	height: 12px;
}

.sb-nav li:hover > .sub-menu,
.sb-nav li.is-open > .sub-menu {
	display: block;
}

.sb-nav .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--sb-radius-sm);
	color: var(--sb-ink);
	font-size: 15px;
	text-decoration: none;
}

.sb-nav .sub-menu a:hover,
.sb-nav .sub-menu .current-menu-item > a {
	background: var(--sb-blue-tint);
	color: var(--sb-blue);
}

/* Machines mega menu: spans the header width. */
.sb-nav > ul > li.sb-has-mega {
	position: static;
}

.sb-mega {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 60;
	display: none;
	border-top: 1px solid var(--sb-line);
	background: #fff;
	box-shadow: 0 24px 48px rgba(14, 27, 43, 0.14);
	cursor: auto;
}

.sb-mega::before {
	content: "";
	position: absolute;
	top: -24px;
	right: 0;
	left: 0;
	height: 24px;
}

.sb-has-mega:hover > .sb-mega,
.sb-has-mega.is-open > .sb-mega {
	display: block;
}

.sb-mega__inner {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	padding-top: 28px;
	padding-bottom: 28px;
}

.sb-mega__groups {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	min-width: 0;
}

.sb-mega__label {
	margin: 0 0 8px;
	padding: 0 10px 12px;
	border-bottom: 1px solid var(--sb-line);
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sb-mega__group ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sb-mega__link {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	padding: 7px 10px;
	border-radius: 8px;
	color: var(--sb-ink);
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.sb-mega__link:hover,
.sb-mega__link.is-active {
	background: var(--sb-blue-tint);
	color: var(--sb-blue);
}

.sb-badge {
	flex: none;
	min-width: 24px;
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--sb-bg-alt);
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

.sb-mega__link.is-active .sb-badge {
	background: var(--sb-blue);
	color: #fff;
}

.sb-mega__preview {
	flex: 0 0 280px;
	padding: 14px;
	border-radius: 14px;
	background: var(--sb-bg-alt);
}

.sb-mega__img {
	margin-bottom: 12px;
	padding: 8px;
	border-radius: 10px;
	background: #fff;
}

.sb-mega__img img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: contain;
}

.sb-mega__title {
	margin: 0 0 8px;
	color: var(--sb-ink);
	font-weight: 600;
}

.sb-mega__card ul {
	margin: 0 0 8px;
}

.sb-mega__card li a {
	display: block;
	padding: 3px 0;
	color: var(--sb-text);
	font-size: 14px;
	text-decoration: none;
}

.sb-mega__card li a:hover {
	color: var(--sb-blue);
}

.sb-mega__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	padding-bottom: 12px;
	border-top: 1px solid var(--sb-line);
	color: var(--sb-muted);
	font-size: 14px;
}

.sb-mega__foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
}

.sb-header__cta {
	flex: none;
	padding: 12px 20px;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(27, 100, 168, 0.25);
}

/* ---------- Hero ---------- */

.sb-hero {
	border-bottom: 1px solid var(--sb-line);
	background: var(--sb-bg-alt);
}

.sb-hero__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
	padding-top: clamp(48px, 7vw, 88px);
	padding-bottom: 40px;
}

.sb-hero__text {
	flex: 1 1 440px;
	min-width: 0;
}

.sb-hero__figure {
	flex: 1 1 520px;
	min-width: 0;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--sb-line);
	border-radius: 12px;
	background: #fff;
}

.sb-hero__figure img {
	display: block;
	width: 100%;
}

.sb-figcaption {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	justify-content: space-between;
	margin-top: 12px;
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.sb-stats {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 48px;
	padding: 0;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
	list-style: none;
}

.sb-stats li {
	flex: 1 1 220px;
	padding: 20px 24px;
	border-right: 1px solid var(--sb-line);
}

.sb-stats li:last-child {
	border-right: 0;
}

.sb-stats strong {
	display: block;
	color: var(--sb-ink);
	font-family: var(--sb-font-display);
	font-size: 32px;
	line-height: 1.1;
}

.sb-stats span {
	color: var(--sb-muted);
	font-size: 14px;
}

/* ---------- Generic card rows ---------- */

.sb-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.sb-card {
	display: flex;
	flex: 1 1 240px;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
	color: inherit;
	text-decoration: none;
}

a.sb-card:hover {
	border-color: var(--sb-blue);
	color: inherit;
}

.sb-card__img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: contain;
	background: #fff;
}

.sb-card__img--cover {
	object-fit: cover;
}

.sb-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
}

.sb-card__body p {
	margin: 0;
	font-size: 15px;
}

.sb-card__meta {
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.sb-card__more {
	margin-top: auto;
	color: var(--sb-blue);
	font-size: 15px;
	font-weight: 600;
}

.sb-card__more::after {
	content: " →";
}

/* ---------- Line stations ---------- */

.sb-stations {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-station {
	position: relative;
	display: flex;
	flex: 1 1 180px;
	min-width: 0;
}

/* On wide screens the stations stand in one row, joined by the line. */
@media (min-width: 980px) {
	.sb-stations {
		flex-wrap: nowrap;
	}

	.sb-station:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 24px;
		right: -16px;
		width: 16px;
		height: 2px;
		background: var(--sb-orange-soft);
	}
}

.sb-station > a {
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.sb-station > a:hover {
	border-color: var(--sb-blue);
}

.sb-station__marker {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 14px 16px 0;
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.sb-station__marker::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sb-orange);
}

.sb-station__marker::after {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--sb-orange-soft);
}

.sb-station__name,
.sb-station__model,
.sb-station__spec {
	display: block;
}

.sb-station__name {
	padding: 8px 16px 0;
	color: var(--sb-ink);
	font-family: var(--sb-font-display);
	font-size: 18px;
	font-weight: 700;
}

.sb-station img {
	display: block;
	width: 100%;
	height: 150px;
	margin: 8px 0;
	object-fit: contain;
}

.sb-station__foot {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding: 0 16px 16px;
}

.sb-station__machine {
	color: var(--sb-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.sb-station__model {
	color: var(--sb-text);
	font-family: var(--sb-font-mono);
	font-size: 13px;
	white-space: nowrap;
}

.sb-station__spec {
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.sb-station__out {
	align-self: flex-start;
	margin-top: 10px;
	padding: 4px 10px;
	border-radius: var(--sb-radius-sm);
	background: var(--sb-bg-alt);
	color: var(--sb-ink);
	font-size: 13px;
	line-height: 1.4;
}

.sb-station__out::before {
	content: "\2192\00a0";
	color: var(--sb-orange-text);
}

.sb-callout {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	padding: 20px 24px;
	border-radius: var(--sb-radius);
	background: var(--sb-bg-alt);
}

.sb-callout p {
	flex: 1 1 480px;
	margin: 0;
	color: var(--sb-ink);
}

/* ---------- Machine families ---------- */

.sb-families {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 20px;
}

.sb-family {
	flex: 1 1 240px;
	min-width: 0;
	padding-top: 16px;
	border-top: 2px solid var(--sb-ink);
}

.sb-family h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.sb-family ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-family a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--sb-line-soft);
	color: var(--sb-ink);
	text-decoration: none;
}

.sb-family a:hover {
	color: var(--sb-blue);
}

.sb-family a span:last-child {
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
}

/* ---------- Dark split (process + photo) ---------- */

.sb-split {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
}

.sb-split > * {
	flex: 1 1 440px;
	min-width: 0;
}

.sb-steps {
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.sb-steps li {
	display: flex;
	gap: 20px;
	padding: 18px 0;
	border-top: 1px solid var(--sb-dark-line);
}

.sb-steps li:last-child {
	border-bottom: 1px solid var(--sb-dark-line);
}

.sb-steps__num {
	min-width: 28px;
	color: #f29a5c;
	font-family: var(--sb-font-mono);
	font-size: 14px;
}

.sb-steps strong {
	display: block;
	color: #fff;
	font-weight: 600;
}

.sb-steps p {
	margin: 0;
	font-size: 15px;
}

.sb-photo {
	margin: 0;
}

.sb-photo__frame {
	aspect-ratio: 24 / 7;
	overflow: hidden;
	border-radius: 12px;
	background: #1a2b3f;
}

.sb-photo__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.sb-section--dark .sb-figcaption {
	color: var(--sb-dark-muted);
}

/* ---------- Editor-only placeholder ---------- */

.sb-todo {
	padding: 20px 24px;
	border: 2px dashed var(--sb-orange);
	border-radius: var(--sb-radius);
	background: #fff8f2;
	color: var(--sb-ink);
	font-size: 15px;
}

.sb-todo strong {
	display: block;
	margin-bottom: 4px;
	color: var(--sb-orange-text);
	font-family: var(--sb-font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
}

/* ---------- Quote form ---------- */

.sb-quote {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

.sb-quote__intro {
	flex: 1 1 340px;
	min-width: 0;
}

.sb-contact-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 32px 0 0;
	font-size: 15px;
}

.sb-contact-list dt {
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 12px;
}

.sb-contact-list dd {
	margin: 0;
	color: var(--sb-ink);
}

.sb-contact-list a {
	color: var(--sb-ink);
	font-weight: 600;
	text-decoration: none;
}

.sb-form {
	display: flex;
	flex: 1 1 560px;
	flex-wrap: wrap;
	gap: 16px 20px;
	min-width: 0;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--sb-line);
	border-radius: 12px;
	background: var(--sb-bg-alt);
}

.sb-section--alt .sb-form,
.sb-section--dark .sb-form {
	background: #fff;
}

.sb-field {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	gap: 6px;
	color: var(--sb-ink);
	font-size: 14px;
	font-weight: 500;
}

.sb-field--full {
	flex-basis: 100%;
}

.sb-field input,
.sb-field select,
.sb-field textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--sb-field-line);
	border-radius: var(--sb-radius-sm);
	background: #fff;
	color: var(--sb-ink);
	font: inherit;
	font-weight: 400;
}

.sb-field input[readonly] {
	background: var(--sb-bg-alt);
}

.sb-field input[type="file"] {
	border-style: dashed;
	font-size: 14px;
}

.sb-field textarea {
	resize: vertical;
}

.sb-field__hint {
	color: var(--sb-muted);
	font-size: 13px;
	font-weight: 400;
}

.sb-form__actions {
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.sb-form__note {
	flex-basis: 100%;
	margin: 0;
	color: var(--sb-muted);
	font-size: 13px;
}

.sb-form__trap {
	position: absolute;
	left: -10000px;
}

.sb-notice {
	flex-basis: 100%;
	padding: 14px 16px;
	border-radius: var(--sb-radius-sm);
	font-weight: 500;
}

.sb-notice--ok {
	background: #e7f5ec;
	color: #145c33;
}

.sb-notice--error {
	background: #fdecea;
	color: #8a1f17;
}

/* ---------- Footer ---------- */

.sb-footer {
	background: var(--sb-dark);
	color: var(--sb-dark-text);
	font-size: 15px;
}

.sb-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 48px;
	padding-top: 56px;
	padding-bottom: 32px;
}

.sb-footer__brand {
	flex: 1 1 260px;
}

.sb-footer__brand strong {
	color: #fff;
	font-family: var(--sb-font-display);
	font-size: 24px;
	font-weight: 800;
}

.sb-footer__brand p {
	max-width: 300px;
	margin: 12px 0 0;
}

.sb-footer__col {
	display: flex;
	flex: 1 1 180px;
	flex-direction: column;
	gap: 8px;
}

.sb-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-footer__label {
	color: var(--sb-dark-muted);
	font-family: var(--sb-font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sb-footer a {
	color: #fff;
	text-decoration: none;
}

.sb-footer a:hover {
	color: var(--sb-blue-light);
}

.sb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	padding-top: 20px;
	padding-bottom: 32px;
	border-top: 1px solid var(--sb-dark-line);
	color: var(--sb-dark-muted);
	font-size: 13px;
}

.sb-footer__bottom a {
	color: var(--sb-dark-text);
}

.sb-footer__bottom a:hover {
	color: #fff;
}

/* Cookie banner (inc/consent.php): fixed to the bottom of the window,
   shown only until the visitor chooses. */
.sb-consent {
	position: fixed;
	z-index: 1000;
	right: var(--sb-gutter);
	bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
	left: var(--sb-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	max-width: 760px;
	margin-inline: auto;
	padding: 16px 20px;
	border: 1px solid var(--sb-dark-line);
	border-radius: var(--sb-radius);
	background: var(--sb-dark);
	box-shadow: 0 12px 32px rgba(14, 27, 43, 0.28);
	color: var(--sb-dark-text);
	font-size: 15px;
	line-height: 1.5;
}

.sb-consent[hidden] {
	display: none;
}

.sb-consent__text {
	flex: 1 1 320px;
	margin: 0;
}

.sb-consent__text p {
	margin: 0;
}

.sb-consent__text p + p {
	margin-top: 6px;
	color: var(--sb-dark-muted);
	font-size: 14px;
}

.sb-consent__text a {
	color: #fff;
}

.sb-consent__actions {
	display: flex;
	gap: 10px;
}

.sb-consent__btn {
	padding: 9px 18px;
	border: 1px solid var(--sb-blue);
	border-radius: var(--sb-radius-sm);
	background: var(--sb-blue);
	color: #fff;
	font: 600 15px var(--sb-font-body);
	cursor: pointer;
}

.sb-consent__btn:hover {
	border-color: var(--sb-blue-dark);
	background: var(--sb-blue-dark);
}

.sb-consent__btn--secondary {
	border-color: var(--sb-dark-muted);
	background: transparent;
	color: #fff;
}

.sb-consent__btn--secondary:hover {
	border-color: #fff;
	background: transparent;
}

.sb-consent__btn:focus-visible,
.sb-consent__text a:focus-visible {
	outline: 2px solid var(--sb-blue-light);
	outline-offset: 2px;
}

/* ---------- Breadcrumb ---------- */

.sb-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 20px 0 0;
	color: var(--sb-muted);
	font-size: 14px;
	list-style: none;
}

.sb-breadcrumb a {
	color: var(--sb-muted);
}

.sb-breadcrumb a:hover {
	color: var(--sb-blue);
}

.sb-breadcrumb li + li::before {
	content: "/";
	margin-right: 6px;
}

.sb-breadcrumb [aria-current] {
	color: var(--sb-ink);
}

/* ---------- Product page ---------- */

.sb-product-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	padding-top: 24px;
	padding-bottom: 56px;
}

.sb-gallery {
	display: flex;
	flex: 1 1 540px;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.sb-gallery__main {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--sb-line);
	border-radius: 12px;
	background: #fff;
}

.sb-gallery__main img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
}

.sb-gallery__main figcaption {
	margin-top: 8px;
	color: var(--sb-muted);
	font-size: 14px;
	text-align: center;
}

.sb-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-gallery__thumbs li {
	flex: 0 1 108px;
}

.sb-gallery__thumbs button {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--sb-line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.sb-gallery__thumbs button[aria-current="true"] {
	border: 2px solid var(--sb-blue);
}

.sb-gallery__thumbs img {
	display: block;
	width: 100%;
	height: 76px;
	object-fit: cover;
}

.sb-product-summary {
	flex: 1 1 440px;
	min-width: 0;
}

.sb-keyspecs {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 28px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	overflow: hidden;
}

.sb-keyspecs > div {
	flex: 1 1 200px;
	padding: 16px 18px;
	margin: 0 -1px -1px 0;
	border-right: 1px solid var(--sb-line);
	border-bottom: 1px solid var(--sb-line);
}

.sb-keyspecs dt {
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 12px;
	text-transform: uppercase;
}

.sb-keyspecs dd {
	margin: 4px 0 0;
	color: var(--sb-ink);
	font-family: var(--sb-font-display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.sb-subnav {
	position: sticky;
	top: 84px;
	z-index: 40;
	border-top: 1px solid var(--sb-line);
	border-bottom: 1px solid var(--sb-line);
	background: #fff;
}

.admin-bar .sb-subnav {
	top: 116px;
}

.sb-subnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-subnav a {
	display: block;
	padding: 14px 12px;
	color: var(--sb-muted);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.sb-subnav a:hover {
	color: var(--sb-ink);
}

.sb-figure-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-figure-card {
	flex: 1 1 260px;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
}

.sb-figure-card img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
}

.sb-figure-card figcaption {
	padding: 16px 20px 20px;
	color: var(--sb-ink);
	font-size: 15px;
	font-weight: 500;
}

.sb-figure-card figcaption span {
	display: block;
	color: var(--sb-orange-text);
	font-family: var(--sb-font-mono);
	font-size: 13px;
	font-weight: 400;
}

.sb-prose {
	max-width: 760px;
}

/* ---------- Links in text ---------- */

/* Inside a sentence: blue and a little heavier than the text around it, so
   it does not rely on colour alone; a light highlight on hover. */
:is(.sb-blocks, .sb-prose) :is(p, td, figcaption, dd, .sb-prose li, .wp-block-list:not(.is-style-sb-tag-list) > li) a:not([class]) {
	border-radius: 3px;
	font-weight: 600;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

:is(.sb-blocks, .sb-prose) :is(p, td, figcaption, dd, .sb-prose li, .wp-block-list:not(.is-style-sb-tag-list) > li) a:not([class]):hover {
	background: var(--sb-blue-tint);
	color: var(--sb-blue-dark);
}

/* On dark sections the links stay white; the highlight is a light veil. */
:is(.sb-blocks, .sb-prose) :is(.sb-section-dark, .sb-section--dark) :is(p, td, figcaption, dd, .sb-prose li, .wp-block-list:not(.is-style-sb-tag-list) > li) a:not([class]):hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

/* On a line of its own, such as "Browse all machines" (the class is added
   by sb_block_action_links()): an arrow that moves on hover. */
.sb-more {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-weight: 600;
}

.sb-more::after {
	content: "→";
	transition: transform 0.15s ease;
}

.sb-more:hover::after {
	transform: translateX(4px);
}

/* WhatsApp links start with the WhatsApp icon. */
.sb-more[href^="https://wa.me/"]::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 21l2.2-5.4A8.4 8.4 0 1 1 21 11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 21l2.2-5.4A8.4 8.4 0 1 1 21 11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sb-prose h3 {
	margin: 28px 0 8px;
	font-size: 20px;
}

.sb-prose ul,
.sb-prose ol {
	padding-left: 22px;
}

.sb-prose li {
	margin-bottom: 8px;
}

.sb-prose table {
	width: 100%;
	margin: 16px 0;
	font-size: 15px;
}

.sb-prose th,
.sb-prose td {
	padding: 8px 12px;
	border: 1px solid var(--sb-line-soft);
	text-align: left;
}

.sb-two-col {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
}

.sb-two-col > :first-child {
	flex: 1 1 620px;
	min-width: 0;
}

.sb-two-col > :last-child {
	display: flex;
	flex: 1 1 320px;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.sb-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
}

.sb-spec-table {
	width: 100%;
	font-size: 15px;
}

.sb-spec-table th,
.sb-spec-table td {
	padding: 14px 20px;
	border-top: 1px solid var(--sb-line-soft);
	color: var(--sb-ink);
	text-align: left;
	vertical-align: top;
}

.sb-spec-table tr:first-child th,
.sb-spec-table tr:first-child td {
	border-top: 0;
}

.sb-spec-table tbody th {
	width: 36%;
	color: var(--sb-muted);
	font-weight: 500;
}

.sb-spec-table thead th {
	color: var(--sb-ink);
	font-family: var(--sb-font-mono);
	font-weight: 500;
}

.sb-spec-table tbody tr:nth-child(odd) {
	background: var(--sb-bg-row);
}

.sb-spec-table .is-current {
	background: var(--sb-blue-tint);
}

/* Comparing models: a narrow label column, the models share the rest. On
   narrow screens the table scrolls and the labels stay in place. */
.sb-compare-table {
	table-layout: fixed;
}

.sb-compare-table thead td,
.sb-compare-table tbody th {
	position: sticky;
	left: 0;
	z-index: 1;
	width: 170px;
	background: #fff;
}

.sb-compare-table tbody tr:nth-child(odd) th {
	background: var(--sb-bg-row);
}

.sb-compare-table thead th a {
	white-space: nowrap;
}

.sb-scroll-hint {
	margin: 0 0 12px;
	color: var(--sb-muted);
	font-size: 14px;
}

.sb-table-note {
	margin: 12px 0 0;
	color: var(--sb-muted);
	font-size: 14px;
}

.sb-box {
	padding: 24px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
}

.sb-box--alt {
	border: 0;
	background: var(--sb-bg-alt);
}

.sb-box h3 {
	margin: 0 0 12px;
	font-size: 18px;
}

.sb-box p {
	margin: 0 0 12px;
	font-size: 15px;
}

.sb-box ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-box li a {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid var(--sb-line-soft);
	color: var(--sb-ink);
	text-decoration: none;
}

.sb-box li:last-child a {
	border-bottom: 0;
}

.sb-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 20px;
}

.sb-video {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.sb-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 0;
	border-radius: var(--sb-radius);
	background: #000;
}

.sb-video__frame button {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.sb-video__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sb-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--sb-dark);
	transform: translate(-50%, -50%);
}

.sb-video__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.sb-faq {
	max-width: 880px;
	margin: 0 auto;
}

.sb-faq details {
	padding: 18px 0;
	border-top: 1px solid var(--sb-line);
}

.sb-faq details:last-child {
	border-bottom: 1px solid var(--sb-line);
}

.sb-faq summary {
	color: var(--sb-ink);
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}

.sb-faq p {
	margin: 10px 0 0;
}

/* ---------- Category page ---------- */

.sb-cat-head {
	border-bottom: 1px solid var(--sb-line);
	background: var(--sb-bg-alt);
}

.sb-cat-head__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 64px;
	align-items: flex-end;
	justify-content: space-between;
	padding-top: 28px;
	padding-bottom: 48px;
}

.sb-cat-head__grid > div:first-child {
	flex: 1 1 560px;
	min-width: 0;
}

.sb-chips {
	display: flex;
	flex: 0 1 380px;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-chips li {
	padding: 6px 12px;
	border: 1px solid var(--sb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sb-ink);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.sb-listing {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
	padding-top: 40px;
	padding-bottom: 64px;
}

.sb-filters {
	display: flex;
	flex: 1 1 240px;
	flex-direction: column;
	gap: 24px;
	max-width: 100%;
}

.sb-filters fieldset {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	border: 0;
}

.sb-filters legend {
	margin-bottom: 8px;
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sb-filters label {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 36px;
	color: var(--sb-ink);
}

.sb-filters input {
	width: 18px;
	height: 18px;
}

.sb-filters label span {
	margin-left: auto;
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.sb-listing__main {
	flex: 999 1 640px;
	min-width: 0;
}

.sb-listing__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	color: var(--sb-muted);
	font-size: 15px;
}

.sb-product-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-product-card {
	display: flex;
	flex: 1 1 300px;
	min-width: 0;
}

.sb-product-card[hidden] {
	display: none;
}

.sb-product-card > article {
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
}

.sb-product-card img {
	display: block;
	width: 100%;
	height: 220px;
	padding: 12px;
	object-fit: contain;
}

.sb-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 0 20px 20px;
}

.sb-product-card h2,
.sb-product-card h3 {
	margin: 2px 0 0;
	font-size: 20px;
}

.sb-product-card h2 a,
.sb-product-card h3 a {
	color: var(--sb-ink);
	text-decoration: none;
}

.sb-mini-specs {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-size: 14px;
}

.sb-mini-specs div {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 6px 0;
	border-top: 1px solid var(--sb-line-soft);
}

.sb-mini-specs div:last-child {
	border-bottom: 1px solid var(--sb-line-soft);
}

.sb-mini-specs dt {
	color: var(--sb-muted);
}

.sb-mini-specs dd {
	margin: 0;
	color: var(--sb-ink);
	font-weight: 500;
	text-align: right;
}

.sb-product-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.sb-product-card__actions .sb-btn {
	flex: 1 1 auto;
}

.sb-related {
	display: flex;
	flex: 1 1 280px;
	gap: 16px;
	align-items: center;
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	color: inherit;
	text-decoration: none;
}

.sb-related:hover {
	border-color: var(--sb-blue);
	color: inherit;
}

.sb-related img {
	width: 96px;
	height: 72px;
	object-fit: contain;
}

.sb-related strong {
	display: block;
	color: var(--sb-ink);
}

.sb-related span {
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.sb-banner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}

.sb-banner > div:first-child {
	flex: 1 1 520px;
}

.sb-banner h2 {
	margin: 0 0 8px;
	font-size: clamp(26px, 2.8vw, 34px);
}

.sb-banner p {
	margin: 0;
}

/* ---------- Machines, Videos and Industries pages ---------- */

.sb-cat-head__aside {
	flex: 0 1 420px;
	min-width: 0;
}

.sb-cat-head__aside .sb-chips {
	flex: none;
}

.sb-chips a {
	color: inherit;
	text-decoration: none;
}

.sb-chips li:has(a:hover) {
	border-color: var(--sb-blue);
	color: var(--sb-blue);
}

.sb-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 20px;
}

.sb-card-grid .sb-card__img {
	padding: 12px;
}

.sb-card__body .sb-card__models {
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.sb-video--card {
	gap: 8px;
}

.sb-video[hidden] {
	display: none;
}

.sb-video__title {
	display: -webkit-box;
	margin: 4px 0 0;
	overflow: hidden;
	color: var(--sb-ink);
	font-weight: 600;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.sb-video__machine {
	align-self: flex-start;
	min-height: 0;
	font-size: 14px;
}

.sb-video-group {
	margin-top: 40px;
}

.sb-video-group__more {
	margin-top: 20px;
}

.sb-video-group__head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--sb-line);
}

/* ---------- Solution pages ---------- */

.sb-hero--page .sb-hero__grid {
	padding-top: 32px;
	padding-bottom: clamp(48px, 6vw, 72px);
}

.sb-hero--page .sb-h1 {
	font-size: clamp(32px, 4vw, 52px);
}

.sb-hero--page .sb-hero__figure img {
	max-height: 360px;
	object-fit: contain;
}

.sb-section--intro {
	padding: clamp(40px, 5vw, 64px) 0;
}

.sb-rich__title {
	max-width: 880px;
	margin-bottom: 24px;
}

.sb-rich > p,
.sb-rich > h3,
.sb-rich > ul:not([class]),
.sb-rich > ol:not([class]) {
	max-width: 760px;
}

.sb-rich > p {
	margin: 0 0 16px;
}

.sb-rich--intro > p {
	max-width: 820px;
	color: var(--sb-ink);
	font-size: 19px;
	line-height: 1.6;
}

.sb-rich > h3 {
	margin: 36px 0 12px;
	font-size: 20px;
}

.sb-rich > ul:not([class]),
.sb-rich > ol:not([class]) {
	margin: 0 0 16px;
	padding-left: 22px;
}

.sb-rich > ul:not([class]) li,
.sb-rich > ol:not([class]) li {
	margin-bottom: 8px;
}

.sb-rich > .sb-product-grid,
.sb-rich > .sb-video-grid,
.sb-rich > .sb-card-grid,
.sb-rich > .sb-stations,
.sb-rich > .sb-cols,
.sb-rich > .sb-feature-list,
.sb-rich > .sb-step-grid,
.sb-rich > .sb-flow,
.sb-rich > .sb-tag-list,
.sb-rich > .sb-figure {
	margin-top: 28px;
	margin-bottom: 28px;
}

.sb-rich > :first-child {
	margin-top: 0;
}

.sb-rich > :last-child {
	margin-bottom: 0;
}

.sb-figure {
	margin: 0;
}

.sb-figure img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
}

.sb-figure .sb-figcaption {
	margin-top: 10px;
}

.sb-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 24px;
}

.sb-cols > div > p {
	margin: 14px 0 0;
}

.sb-feature-list,
.sb-step-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 16px;
	padding: 0;
	list-style: none;
}

.sb-feature-list li {
	padding: 20px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
	font-size: 15px;
}

.sb-feature-list strong {
	display: block;
	margin-bottom: 6px;
	color: var(--sb-ink);
	font-size: 17px;
}

.sb-step-grid {
	counter-reset: sb-step;
}

.sb-step-grid li {
	padding: 20px;
	border: 1px solid var(--sb-line);
	border-top: 3px solid var(--sb-blue);
	border-radius: var(--sb-radius-sm);
	background: #fff;
	counter-increment: sb-step;
}

.sb-step-grid li::before {
	content: counter(sb-step, decimal-leading-zero);
	display: block;
	margin-bottom: 10px;
	color: var(--sb-orange-text);
	font-family: var(--sb-font-mono);
	font-size: 14px;
}

.sb-step-grid h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.sb-step-grid p {
	margin: 0;
	font-size: 15px;
}

.sb-flow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	list-style: none;
	counter-reset: sb-flow;
}

.sb-flow li {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px 16px 8px 8px;
	border: 1px solid var(--sb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sb-ink);
	font-size: 15px;
	font-weight: 500;
	counter-increment: sb-flow;
}

.sb-flow li::before {
	content: counter(sb-flow);
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--sb-bg-alt);
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 12px;
}

.sb-flow li.is-key {
	border-color: var(--sb-blue);
	background: var(--sb-blue-tint);
	color: var(--sb-blue);
}

.sb-flow li.is-key::before {
	background: var(--sb-blue);
	color: #fff;
}

.sb-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.sb-tag-list li {
	padding: 6px 12px;
	border: 1px solid var(--sb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sb-ink);
	font-size: 14px;
}

.sb-rich > details {
	max-width: 880px;
	padding: 18px 0;
	border-top: 1px solid var(--sb-line);
}

.sb-rich > details:last-of-type {
	border-bottom: 1px solid var(--sb-line);
}

.sb-rich > details summary {
	color: var(--sb-ink);
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}

.sb-rich > details p {
	margin: 10px 0 0;
}

/* ---------- Industry page ---------- */

.sb-concerns {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 20px;
}

.sb-concerns > div {
	flex: 1 1 300px;
	min-width: 0;
	padding-top: 20px;
	border-top: 2px solid var(--sb-ink);
}

.sb-concerns h3 {
	margin: 0 0 8px;
	font-size: 20px;
}

.sb-concerns p {
	margin: 0;
}

.sb-line {
	margin-bottom: 24px;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--sb-line);
	border-radius: 12px;
	background: #fff;
}

.sb-line__head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 24px;
}

.sb-line__head h3 {
	margin: 0;
	font-size: 22px;
}

.sb-line__head span {
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.sb-line__flow {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-line__step {
	display: flex;
	flex: 1 1 160px;
	gap: 12px;
	min-width: 0;
}

.sb-line__step + .sb-line__step::before {
	content: "→";
	align-self: center;
	color: var(--sb-orange);
	font-size: 22px;
}

.sb-line__step a,
.sb-line__step > div {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.sb-line__step img {
	display: block;
	width: 100%;
	height: 120px;
	object-fit: contain;
}

.sb-line__step strong {
	color: var(--sb-ink);
	font-size: 15px;
}

.sb-line__step span {
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 12px;
}

/* ---------- Generic pages and posts ---------- */

.sb-page-head {
	padding: 40px 0 32px;
	border-bottom: 1px solid var(--sb-line);
	background: var(--sb-bg-alt);
}

.sb-page-head h1 {
	margin: 12px 0 0;
	font-size: clamp(32px, 3.8vw, 48px);
}

.sb-page-body {
	padding-top: 48px;
	padding-bottom: 72px;
}

.sb-post-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-pagination {
	margin-top: 40px;
}

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

.sb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius-sm);
	color: var(--sb-ink);
	text-decoration: none;
}

.sb-pagination .current {
	border-color: var(--sb-ink);
	background: var(--sb-ink);
	color: #fff;
}

/* ---------- Mobile ---------- */

/* ---------- Pages built in the block editor ----------
 * Sections are Group blocks (variations in inc/editor.php) with the class
 * sb-section, sb-section-alt, sb-section-dark or sb-hero. Everything else on
 * the top level is kept to the site width. The same rules style the editor.
 */

.sb-blocks > :not(section):not(header),
.is-root-container > :not(section):not(.wp-block-shineben-machine-catalogue):not(.wp-block-shineben-video-library):not(.wp-block-shineben-quote) {
	max-width: var(--sb-container);
	margin-right: auto;
	margin-left: auto;
	padding-right: var(--sb-gutter);
	padding-left: var(--sb-gutter);
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark, .sb-hero, .sb-hero-video, .sb-hero-photo) {
	margin: 0;
	padding-right: max(var(--sb-gutter), calc((100% - var(--sb-container)) / 2 + var(--sb-gutter)));
	padding-left: max(var(--sb-gutter), calc((100% - var(--sb-container)) / 2 + var(--sb-gutter)));
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) {
	padding-top: var(--sb-section);
	padding-bottom: var(--sb-section);
}

.wp-block-group.sb-section-alt {
	background: var(--sb-bg-alt);
}

.wp-block-group.sb-section-dark {
	background: var(--sb-dark);
	color: var(--sb-dark-text);
}

.wp-block-group.sb-section-dark :is(h2, h3, h4, strong) {
	color: #fff;
}

.wp-block-group.sb-section-dark a:not(.wp-block-button__link) {
	color: #fff;
}

.wp-block-group.sb-hero {
	padding-top: 4px;
	padding-bottom: clamp(48px, 6vw, 72px);
}

.wp-block-group.sb-hero .wp-block-post-excerpt {
	margin: 0 0 28px;
}

.wp-block-group.sb-hero .wp-block-post-excerpt p {
	max-width: 620px;
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
}

.wp-block-group.sb-hero h1 {
	margin: 0 0 20px;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.wp-block-group.sb-hero .wp-block-columns {
	gap: 48px;
	align-items: center;
	margin: 32px 0 0;
}

.wp-block-group.sb-hero .wp-block-image {
	padding: 24px;
	border: 1px solid var(--sb-line);
	border-radius: 12px;
	background: #fff;
}

.wp-block-group.sb-hero .wp-block-image img {
	max-height: 360px;
	border: 0;
	object-fit: contain;
}

/* Space between the breadcrumbs and the rest of the page header. */
.wp-block-group.sb-hero > nav + *,
.wp-block-group.sb-hero > .wp-block-shineben-breadcrumbs + * {
	margin-top: 32px;
}

/* A page header without breadcrumbs (homepage) starts lower. */
.wp-block-group.sb-hero > .wp-block-columns:first-child {
	margin-top: clamp(48px, 7vw, 88px);
}

.wp-block-group.sb-hero > .wp-block-list.is-style-sb-figures {
	margin: 40px 0 0;
}

/* A link or text under the tag row (Videos: "Our YouTube channel"). */
.wp-block-group.sb-hero > .is-style-sb-tag-list + * {
	margin-top: 24px;
}

/* Video header and picture header (inc/hero-video.php): the line running
   full width (or a photo) behind a dark veil, white text on the left. The
   picture is the background until the video plays, and in the editor. */
.wp-block-group:is(.sb-hero-video, .sb-hero-photo) {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* The first screen below the top bar and menu (125px tall). */
	min-height: clamp(560px, calc(100vh - 125px), 860px);
	min-height: clamp(560px, calc(100svh - 125px), 860px);
	overflow: hidden;
	padding-top: clamp(48px, 6vw, 88px);
	padding-bottom: clamp(88px, 8vw, 120px);
	background: var(--sb-dark) var(--sb-hero-poster, url("assets/images/home-hero.jpg")) center / cover no-repeat;
	color: var(--sb-dark-text);
}

/* On other pages (they have breadcrumbs) the header is shorter. */
.wp-block-group:is(.sb-hero-video, .sb-hero-photo):has(> nav) {
	justify-content: flex-start;
	min-height: clamp(480px, 68vh, 680px);
	padding-top: 20px;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) :is(.sb-breadcrumb, .sb-breadcrumb a:not(.wp-block-button__link), .sb-breadcrumb li + li::before) {
	color: rgba(255, 255, 255, 0.7);
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .sb-breadcrumb a:not(.wp-block-button__link):hover {
	color: #fff;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .sb-breadcrumb [aria-current] {
	color: #fff;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) > nav {
	margin-bottom: clamp(40px, 7vw, 96px);
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .wp-block-post-excerpt {
	max-width: 640px;
	margin: 0 0 36px;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .wp-block-post-excerpt p {
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(18px, 1.5vw, 21px);
	line-height: 1.55;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo)::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(14, 27, 43, 0.9) 0%, rgba(14, 27, 43, 0.72) 42%, rgba(14, 27, 43, 0.28) 100%),
		linear-gradient(0deg, rgba(14, 27, 43, 0.6) 0%, rgba(14, 27, 43, 0) 45%);
}

.sb-hero-video__media {
	position: absolute;
	z-index: -2;
	inset: 0;
}

.sb-hero-video__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) > :not(.sb-hero-video__media):not(.sb-hero-video__toggle) {
	max-width: 820px;
	margin-top: 0;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) p.is-style-sb-eyebrow {
	margin-bottom: 20px;
	color: rgba(255, 255, 255, 0.72);
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) h1 {
	margin: 0 0 24px;
	color: #fff;
	font-size: clamp(40px, 5.6vw, 84px);
	line-height: 1.02;
	letter-spacing: -0.02em;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) p.is-style-sb-lead {
	max-width: 640px;
	margin-bottom: 36px;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(18px, 1.5vw, 21px);
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .wp-block-buttons {
	margin-bottom: 28px;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .wp-block-button__link {
	padding: 15px 28px;
	font-size: 17px;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.7);
	background: transparent;
	color: #fff;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: #fff;
	background: #fff;
	color: var(--sb-ink);
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) a:not(.wp-block-button__link) {
	color: #fff;
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) a:not(.wp-block-button__link):hover {
	color: var(--sb-blue-light);
}

.sb-hero-video__toggle {
	position: absolute;
	right: max(var(--sb-gutter), calc((100% - var(--sb-container)) / 2 + var(--sb-gutter)));
	bottom: 28px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	background: rgba(14, 27, 43, 0.35);
	color: #fff;
	cursor: pointer;
}

.sb-hero-video__toggle:hover {
	background: rgba(255, 255, 255, 0.16);
}

.sb-hero-video__toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sb-hero-video__play,
.sb-hero-video.is-paused .sb-hero-video__pause {
	display: none;
}

.sb-hero-video.is-paused .sb-hero-video__play {
	display: block;
	fill: currentColor;
}

@media (max-width: 700px) {
	.wp-block-group:is(.sb-hero-video, .sb-hero-photo) {
		min-height: clamp(520px, 80svh, 720px);
	}

	.wp-block-group:is(.sb-hero-video, .sb-hero-photo)::before {
		background: linear-gradient(0deg, rgba(14, 27, 43, 0.9) 0%, rgba(14, 27, 43, 0.62) 100%);
	}
}

/* Picture header: no default picture, and the figures become dark cards
   over the photo. */
.wp-block-group.sb-hero-photo {
	background: var(--sb-dark) var(--sb-hero-poster, none) center 55% / cover no-repeat;
}

/* Without a picture (About): deep navy to brand blue, a soft glow at the top
   right and a faint drawing grid that fades in towards the right. */
.wp-block-group.sb-hero-photo:not([style*="--sb-hero-poster"]) {
	background:
		radial-gradient(ellipse 55% 85% at 88% 20%, rgba(27, 100, 168, 0.6) 0%, rgba(27, 100, 168, 0) 70%),
		linear-gradient(115deg, var(--sb-dark) 0%, #10263d 52%, var(--sb-blue-dark) 100%);
}

.wp-block-group.sb-hero-photo:not([style*="--sb-hero-poster"])::before {
	background:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px);
	-webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 90%);
	mask-image: linear-gradient(90deg, transparent 30%, #000 90%);
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) > .wp-block-list.is-style-sb-figures {
	max-width: none;
	margin: 40px 0 0;
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(14, 27, 43, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .is-style-sb-figures li {
	border-color: rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.75);
}

.wp-block-group:is(.sb-hero-video, .sb-hero-photo) .is-style-sb-figures strong {
	color: #fff;
}

/* Text inside sections */

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > *,
.wp-block-group.sb-hero > * {
	margin-top: 0;
}

.wp-block-columns {
	gap: 32px 48px;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) .wp-block-column > h2 {
	margin: 0 0 24px;
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.1;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > h2 {
	max-width: 880px;
	margin-bottom: 24px;
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.1;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > h3,
.wp-block-group.sb-cards > .wp-block-group > h3 {
	margin: 36px 0 12px;
	font-size: 20px;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > :is(p, ul:not([class*="is-style-sb-"]), ol:not([class*="is-style-sb-"], .sb-stations), .wp-block-details) {
	max-width: 760px;
	margin-bottom: 16px;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > .wp-block-details {
	max-width: 880px;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > :is(ul, ol):not([class*="is-style-sb-"], .sb-stations) {
	padding-left: 22px;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > :is(ul, ol):not([class*="is-style-sb-"], .sb-stations) li {
	margin-bottom: 8px;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > :is(.wp-block-image, .wp-block-gallery, .wp-block-columns, .wp-block-media-text, .wp-block-buttons, .wp-block-table, .wp-block-quote, .wp-block-group, [class*="is-style-sb-"], .sb-product-grid, .sb-video-grid, .sb-card-grid, .sb-stations, .sb-families, .sb-block-preview) {
	margin-top: 28px;
	margin-bottom: 28px;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > :first-child,
.wp-block-group.sb-hero > :first-child {
	margin-top: 0;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > :last-child {
	margin-bottom: 0;
}

/* Paragraph styles */

p.is-style-sb-eyebrow {
	margin: 0 0 12px;
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sb-section-dark p.is-style-sb-eyebrow {
	color: var(--sb-dark-muted);
}

p.is-style-sb-lead {
	max-width: 620px;
	font-size: 18px;
	line-height: 1.55;
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > p.is-style-sb-callout,
p.is-style-sb-callout {
	max-width: none;
	padding: 20px 24px;
	border-radius: var(--sb-radius);
	background: var(--sb-bg-alt);
}

.sb-section-alt p.is-style-sb-callout {
	background: #fff;
}

/* List styles */

ul.is-style-sb-feature-list,
ol.is-style-sb-feature-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 16px;
	padding: 0;
	list-style: none;
}

.is-style-sb-feature-list li {
	padding: 20px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
	color: var(--sb-text);
	font-size: 15px;
}

.is-style-sb-feature-list strong {
	display: block;
	margin-bottom: 6px;
	color: var(--sb-ink);
	font-size: 17px;
}

.is-style-sb-flow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	list-style: none;
	counter-reset: sb-flow;
}

.is-style-sb-flow li {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px 16px 8px 8px;
	border: 1px solid var(--sb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sb-ink);
	font-size: 15px;
	font-weight: 500;
	counter-increment: sb-flow;
}

.is-style-sb-flow li::before {
	content: counter(sb-flow);
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--sb-bg-alt);
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 12px;
}

/* Bold steps in a process list are highlighted. */
.is-style-sb-flow li:has(> strong) {
	border-color: var(--sb-blue);
	background: var(--sb-blue-tint);
	color: var(--sb-blue);
}

.is-style-sb-flow li:has(> strong)::before {
	background: var(--sb-blue);
	color: #fff;
}

.is-style-sb-flow strong {
	font-weight: 500;
}

.is-style-sb-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.is-style-sb-tag-list a {
	color: inherit;
	text-decoration: none;
}

.is-style-sb-tag-list li:has(a:hover) {
	border-color: var(--sb-blue);
	color: var(--sb-blue);
}

.is-style-sb-tag-list li {
	padding: 6px 12px;
	border: 1px solid var(--sb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sb-ink);
	font-size: 14px;
}

.is-style-sb-figures {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
	list-style: none;
}

.is-style-sb-figures li {
	flex: 1 1 220px;
	padding: 20px 24px;
	border-right: 1px solid var(--sb-line);
	color: var(--sb-muted);
	font-size: 14px;
}

.is-style-sb-figures li:last-child {
	border-right: 0;
}

.is-style-sb-figures strong {
	display: block;
	color: var(--sb-ink);
	font-family: var(--sb-font-display);
	font-size: 32px;
	line-height: 1.1;
}

.is-style-sb-numbered {
	padding: 0;
	list-style: none;
	counter-reset: sb-numbered;
}

.is-style-sb-numbered li {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 0 20px;
	padding: 18px 0;
	border-top: 1px solid var(--sb-line);
	font-size: 15px;
	counter-increment: sb-numbered;
}

.is-style-sb-numbered li:last-child {
	border-bottom: 1px solid var(--sb-line);
}

.is-style-sb-numbered li::before {
	content: counter(sb-numbered, decimal-leading-zero);
	grid-row: span 2;
	color: var(--sb-orange-text);
	font-family: var(--sb-font-mono);
	font-size: 14px;
}

.is-style-sb-numbered strong {
	display: block;
	color: var(--sb-ink);
	font-size: 16px;
	font-weight: 600;
}

.sb-section-dark .is-style-sb-numbered li {
	border-color: var(--sb-dark-line);
}

.sb-section-dark .is-style-sb-numbered li::before {
	color: #f29a5c;
}

/* Group styles */

div.wp-block-group.is-style-sb-cards,
div.wp-block-group.is-style-sb-step-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 20px;
}

div.wp-block-group.is-style-sb-cards > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 20px;
	overflow: hidden;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
}

div.wp-block-group.is-style-sb-cards > .wp-block-group > * {
	margin: 0;
}

div.wp-block-group.is-style-sb-cards > .wp-block-group > .wp-block-image:first-child {
	margin: -20px -20px 10px;
	padding: 0;
	border: 0;
}

div.wp-block-group.is-style-sb-cards > .wp-block-group > .wp-block-image:first-child img {
	width: 100%;
	height: 180px;
	border: 0;
	border-radius: 0;
	object-fit: cover;
}

div.wp-block-group.is-style-sb-cards > .wp-block-group > p {
	font-size: 15px;
}

div.wp-block-group.is-style-sb-cards > .wp-block-group > p:last-child:has(> a:only-child) {
	margin-top: auto;
	font-weight: 600;
}

div.wp-block-group.is-style-sb-cards > .wp-block-group > p:last-child > a:only-child {
	text-decoration: none;
}

/* In the editor; on the site these links get .sb-more and its arrow. */
div.wp-block-group.is-style-sb-cards > .wp-block-group > p:last-child > a:only-child:not(.sb-more)::after {
	content: " →";
}

div.wp-block-group.is-style-sb-step-grid {
	gap: 16px;
	counter-reset: sb-step;
}

div.wp-block-group.is-style-sb-step-grid > .wp-block-group {
	margin: 0;
	padding: 20px;
	border: 1px solid var(--sb-line);
	border-top: 3px solid var(--sb-blue);
	border-radius: var(--sb-radius-sm);
	background: #fff;
	counter-increment: sb-step;
}

div.wp-block-group.is-style-sb-step-grid > .wp-block-group::before {
	content: counter(sb-step, decimal-leading-zero);
	display: block;
	margin-bottom: 10px;
	color: var(--sb-orange-text);
	font-family: var(--sb-font-mono);
	font-size: 14px;
}

div.wp-block-group.is-style-sb-step-grid > .wp-block-group > h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

div.wp-block-group.is-style-sb-step-grid > .wp-block-group > p {
	margin: 0;
	font-size: 15px;
}

/* Long text: legal pages and articles. */
div.wp-block-group.is-style-sb-prose {
	max-width: 760px;
}

div.wp-block-group.is-style-sb-prose > * {
	margin-top: 0;
	margin-bottom: 16px;
}

div.wp-block-group.is-style-sb-prose > h2 {
	margin: 40px 0 12px;
	font-size: 24px;
	line-height: 1.25;
}

div.wp-block-group.is-style-sb-prose > h3 {
	margin: 28px 0 8px;
	font-size: 19px;
}

div.wp-block-group.is-style-sb-prose > :is(ul, ol) {
	padding-left: 22px;
}

div.wp-block-group.is-style-sb-prose li {
	margin-bottom: 6px;
}

div.wp-block-group.is-style-sb-section-head,
div.wp-block-group.is-style-sb-banner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 48px;
	justify-content: space-between;
}

div.wp-block-group.is-style-sb-section-head {
	align-items: flex-end;
	margin-bottom: 40px;
}

div.wp-block-group.is-style-sb-section-head > :first-child {
	flex: 1 1 480px;
}

div.wp-block-group.is-style-sb-section-head > :last-child:not(:first-child) {
	flex: 1 1 360px;
	margin: 0;
}

div.wp-block-group.is-style-sb-section-head > p:last-child:has(> a:only-child) {
	text-align: right;
}

div.wp-block-group.is-style-sb-section-head > p:last-child > a:only-child,
div.wp-block-group.is-style-sb-cards > .wp-block-group > p:last-child > a:only-child {
	font-weight: 600;
	text-decoration: none;
}

div.wp-block-group.is-style-sb-section-head > p:last-child > a:only-child:not(.sb-more)::after {
	content: " →";
}

div.wp-block-group.is-style-sb-section-head h2 {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.1;
}

div.wp-block-group.is-style-sb-banner {
	gap: 24px;
	align-items: center;
}

div.wp-block-group.is-style-sb-banner > :first-child {
	flex: 1 1 520px;
}

div.wp-block-group.is-style-sb-banner h2 {
	margin: 0 0 8px;
	font-size: clamp(26px, 2.8vw, 34px);
}

div.wp-block-group.is-style-sb-banner p {
	margin: 0;
}

/* Images, buttons, questions, tables */

.sb-blocks .wp-block-image,
.is-root-container .wp-block-image {
	margin: 0;
}

.wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: #fff;
}

.wp-block-image.is-style-sb-plain img {
	border: 0;
	border-radius: 0;
	background: none;
}

.wp-block-image.is-style-sb-contain img,
div.wp-block-group.is-style-sb-cards > .wp-block-group > .wp-block-image.is-style-sb-contain:first-child img {
	object-fit: contain;
	background: #fff;
}

.wp-block-image.is-style-sb-wide img {
	aspect-ratio: 24 / 7;
	border: 0;
	border-radius: 12px;
	background: #1a2b3f;
	object-fit: cover;
	object-position: center top;
}

.wp-block-image figcaption,
.wp-block-gallery figcaption {
	margin: 10px 0 0;
	color: var(--sb-muted);
	font-family: var(--sb-font-mono);
	font-size: 13px;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--sb-radius-sm);
	background: var(--sb-blue);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.wp-block-button__link:hover {
	background: var(--sb-blue-dark);
	color: #fff;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--sb-field-line);
	background: #fff;
	color: var(--sb-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--sb-blue);
	color: var(--sb-blue);
}

.sb-section-dark .wp-block-button__link {
	background: #fff;
	color: var(--sb-ink);
}

.sb-section-dark .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: #5d7189;
	background: transparent;
	color: #fff;
}

.wp-block-details {
	padding: 18px 0;
	border-top: 1px solid var(--sb-line);
}

.wp-block-details:has(+ :not(.wp-block-details)),
.wp-block-details:last-child {
	border-bottom: 1px solid var(--sb-line);
}

.wp-block-group:is(.sb-section, .sb-section-alt, .sb-section-dark) > .wp-block-details + .wp-block-details {
	margin-top: -16px;
}

.wp-block-details summary {
	color: var(--sb-ink);
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}

.wp-block-details > :not(summary) {
	margin: 10px 0 0;
}

.wp-block-table table {
	width: 100%;
	font-size: 15px;
}

.wp-block-table :is(th, td) {
	padding: 8px 12px;
	border: 1px solid var(--sb-line-soft);
	text-align: left;
}

.wp-block-quote {
	margin-right: 0;
	margin-left: 0;
	padding-left: 20px;
	border-left: 3px solid var(--sb-blue);
	color: var(--sb-ink);
	font-size: 18px;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--sb-line);
}

.sb-block-hint {
	margin: 0;
	padding: 20px;
	border: 1px dashed var(--sb-field-line);
	border-radius: var(--sb-radius);
	color: var(--sb-muted);
	font-size: 14px;
}

@media (max-width: 1320px) {
	.sb-nav > ul > li > a {
		padding-right: 8px;
		padding-left: 8px;
	}

	.sb-mega__preview {
		flex-basis: 240px;
	}
}

@media (max-width: 1180px) {
	.sb-nav-toggle {
		display: inline-flex;
		order: 3;
	}

	.sb-header__cta {
		order: 2;
		margin-left: auto;
	}

	.sb-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		max-height: calc(100vh - 84px);
		overflow-y: auto;
		border-bottom: 1px solid var(--sb-line);
		background: #fff;
	}

	.sb-nav.is-open {
		display: block;
	}

	.sb-nav > ul {
		flex-direction: column;
		align-items: stretch;
		padding: 8px var(--sb-gutter) 16px;
	}

	.sb-nav > ul > li,
	.sb-nav > ul > li.sb-has-mega {
		position: relative;
		flex-wrap: wrap;
		border-bottom: 1px solid var(--sb-line-soft);
		border-radius: 0;
	}

	.sb-nav > ul > li:hover,
	.sb-nav > ul > li.is-open,
	.sb-nav > ul > li.current-menu-item,
	.sb-nav > ul > li.current_page_item {
		background: none;
	}

	.sb-nav > ul > li > a {
		flex: 1;
		padding: 14px 4px;
		border-radius: 0;
	}

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

	.sb-nav li:hover > .sub-menu,
	.sb-has-mega:hover > .sb-mega {
		display: none;
	}

	.sb-nav .sub-menu,
	.sb-mega {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 12px 12px;
		border: 0;
		box-shadow: none;
	}

	.sb-nav .sub-menu::before,
	.sb-mega::before {
		display: none;
	}

	.sb-nav li.is-open > .sub-menu,
	.sb-has-mega.is-open > .sb-mega {
		display: block;
	}

	.sb-mega__inner {
		display: block;
		padding: 0;
	}

	.sb-mega__groups {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.sb-mega__label {
		padding-left: 0;
	}

	.sb-mega__preview {
		display: none;
	}

	/* No preview on small screens, so no selected category either. */
	.sb-mega__link.is-active {
		background: none;
		color: var(--sb-ink);
	}

	.sb-mega__link.is-active .sb-badge {
		background: var(--sb-bg-alt);
		color: var(--sb-muted);
	}

	.sb-mega__foot {
		padding: 12px 0 0;
		border-top: 0;
	}
}

@media (max-width: 980px) {
	.sb-stats li,
	.is-style-sb-figures li {
		border-right: 0;
		border-bottom: 1px solid var(--sb-line);
	}

	.sb-stats li:last-child,
	.is-style-sb-figures li:last-child {
		border-bottom: 0;
	}

	.sb-subnav {
		position: static;
	}

	.sb-line__step + .sb-line__step::before {
		content: "↓";
		align-self: flex-start;
	}
}

@media (max-width: 600px) {
	.sb-topbar__tagline,
	.sb-topbar .sb-topbar__youtube {
		display: none;
	}

	.sb-header__cta {
		padding: 10px 14px;
		font-size: 14px;
	}

	.sb-logo img {
		height: 34px;
	}

	.sb-line__step {
		flex-basis: 100%;
	}
}

@media (max-width: 782px) {
	.admin-bar .sb-header {
		top: 0;
	}
}

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

	.sb-more::after {
		transition: none;
	}

	.sb-more:hover::after {
		transform: none;
	}
}
