/*
 * Content pages (about, contact, support, corporate, quote, size guide, returns, CMS pages,
 * sale events, subscribe, reviews, order tracking, 404). Builds on tokens.css, base.css and
 * components.css: role tokens only, no hard-coded colours or pixel spacing.
 * Prefix .st-ct- for patterns that only exist here (candidates for components.css are
 * listed in the content-pages hand-over notes).
 */

/* ----- Page frame (the space before the footer comes from main, base.css) ----- */
.st-ct-head {
	padding-bottom: var(--st-space-5);
}

.st-ct-head__title {
	margin: 0;
}

.st-ct-head__intro {
	max-width: var(--st-measure);
	margin: var(--st-space-3) 0 0;
	color: var(--st-ink-muted);
	font-size: var(--st-text-md);
}

.st-ct-head__meta {
	margin: var(--st-space-2) 0 0;
	font-size: var(--st-text-ui);
	color: var(--st-ink-muted);
}

.st-ct-section {
	padding-top: var(--st-space-7);
}

.st-ct-section__title {
	margin-bottom: var(--st-space-4);
}

.st-ct-section__intro {
	max-width: var(--st-measure);
	margin: calc(-1 * var(--st-space-2)) 0 var(--st-space-5);
	color: var(--st-ink-muted);
}

/* Two columns from laptop: main content and a narrower aside */
.st-ct-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--st-space-6);
}

@media (min-width: 1024px) {
	.st-ct-split {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--st-space-7);
		align-items: start;
	}

	.st-ct-split--wide {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}

	.st-ct-split--even {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.st-ct-split--form {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	}
}

/* ----- Forms ----- */
.st-ct-form-grid {
	display: grid;
	column-gap: var(--st-space-4);
}

@media (min-width: 768px) {
	.st-ct-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.st-ct-form-grid > .st-ct-span {
		grid-column: 1 / -1;
	}
}

/* Dial code + number side by side */
.st-ct-phone {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: var(--st-space-2);
}

.st-ct-phone .st-field {
	margin-bottom: 0;
}

.st-ct-phone-wrap {
	margin-bottom: var(--st-space-4);
}

.st-ct-fieldset {
	min-width: 0;
	margin: 0 0 var(--st-space-4);
	padding: 0;
	border: 0;
}

.st-ct-fieldset legend {
	margin-bottom: var(--st-space-2);
	padding: 0;
	font-size: var(--st-text-ui);
	font-weight: var(--st-weight-semibold);
	line-height: var(--st-leading-ui);
}

.st-ct-checks {
	display: grid;
	gap: var(--st-space-2) var(--st-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 480px) {
	.st-ct-checks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.st-ct-checks .st-field {
	margin-bottom: 0;
}

.st-ct-file {
	padding: var(--st-space-2) 0;
	font-size: var(--st-text-ui);
}

.st-ct-file::file-selector-button {
	min-height: var(--st-control-height-sm);
	margin-right: var(--st-space-3);
	padding: 0 var(--st-space-3);
	border: 1px solid var(--st-border-control);
	border-radius: var(--st-radius-sm);
	background: var(--st-surface);
	color: var(--st-ink);
	font: inherit;
	font-weight: var(--st-weight-semibold);
	cursor: pointer;
}

.st-ct-file:hover::file-selector-button {
	background: var(--st-surface-hover);
}

.st-ct-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--st-space-3);
	margin-top: var(--st-space-2);
}

.st-ct-form__note {
	margin: 0;
	font-size: var(--st-text-sm);
	color: var(--st-ink-muted);
}

/* Form-level message: errors from the server, rate limits */
.st-ct-form__status {
	margin-bottom: var(--st-space-4);
}

.st-ct-form__status:empty {
	display: none;
}

.st-btn[aria-busy="true"] {
	cursor: progress;
	opacity: 0.72;
}

/* Success panel shown in place of a submitted form */
.st-ct-done {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--st-space-2);
	padding: var(--st-space-5) var(--st-space-4);
	border: 1px solid var(--st-success-border);
	border-radius: var(--st-radius-md);
	background: var(--st-success-bg);
}

.st-ct-done__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--st-space-6);
	height: var(--st-space-6);
	border-radius: var(--st-radius-round);
	background: var(--st-success-fg);
	color: var(--st-ink-inverse);
}

.st-ct-done__title {
	margin: var(--st-space-2) 0 0;
	color: var(--st-ink);
}

.st-ct-done__text {
	margin: 0;
	color: var(--st-ink);
}

.st-ct-done__title:focus {
	outline: none;
}

/* ----- Details list (address, hours) ----- */
.st-ct-details {
	display: grid;
	gap: var(--st-space-4);
	margin-bottom: 0;
}

.st-ct-details > div {
	display: grid;
	grid-template-columns: var(--st-icon) minmax(0, 1fr);
	column-gap: var(--st-space-3);
}

.st-ct-details .st-icon {
	grid-row: span 2;
	margin-top: 2px;
}

.st-ct-details dt {
	font-size: var(--st-text-ui);
	font-weight: var(--st-weight-semibold);
	line-height: var(--st-leading-ui);
}

.st-ct-details dd {
	margin: var(--st-space-1) 0 0;
	line-height: var(--st-leading-body);
}

.st-ct-map {
	overflow: hidden;
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-md);
	background: var(--st-surface-muted);
	aspect-ratio: 4 / 3;
}

.st-ct-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ----- Media + text rows (about) ----- */
.st-ct-media {
	display: grid;
	gap: var(--st-space-5);
	align-items: center;
}

.st-ct-media + .st-ct-media {
	margin-top: var(--st-space-7);
}

.st-ct-media__img {
	width: 100%;
	height: auto;
	border-radius: var(--st-radius-md);
	background: var(--st-surface-muted);
	object-fit: cover;
}

@media (min-width: 768px) {
	.st-ct-media {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--st-space-7);
	}

	.st-ct-media--reverse {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.st-ct-media--reverse .st-ct-media__figure {
		order: 2;
	}
}

.st-ct-facts {
	display: grid;
	gap: var(--st-space-3);
	margin: 0;
}

.st-ct-facts dt {
	font-size: var(--st-text-xs);
	font-weight: var(--st-weight-semibold);
	letter-spacing: var(--st-tracking-caps);
	text-transform: uppercase;
	color: var(--st-ink-muted);
}

.st-ct-facts dd {
	margin: var(--st-space-1) 0 0;
}

.st-ct-facts ul {
	margin: 0;
	padding-left: var(--st-space-4);
}

/* Image strip (production photos) */
.st-ct-strip {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 80%;
	gap: var(--st-space-3);
	margin: 0;
	padding: 0 0 var(--st-space-2);
	list-style: none;
	position: relative; /* clips absolutely positioned children (see components.css) */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.st-ct-strip > li {
	scroll-snap-align: start;
}

.st-ct-strip img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	border: 1px solid var(--st-border); /* frames cut-out shots on white, like the product cards */
	border-radius: var(--st-radius-md);
	object-fit: cover;
	background: var(--st-surface-muted);
}

@media (min-width: 768px) {
	.st-ct-strip {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--st-space-4);
		overflow: visible;
	}
}

/* ----- Card grid (portfolio, corporate services) ----- */
.st-ct-cards {
	display: grid;
	gap: var(--st-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.st-ct-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--st-space-4);
	}
}

@media (min-width: 1024px) {
	.st-ct-cards--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

.st-ct-card {
	height: 100%;
	padding: var(--st-space-4);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-md);
	background: var(--st-surface);
}

.st-ct-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--st-space-6);
	height: var(--st-space-6);
	margin-bottom: var(--st-space-3);
	border-radius: var(--st-radius-md);
	background: var(--st-surface-muted);
}

.st-ct-card__title {
	margin: 0 0 var(--st-space-2);
	font-size: var(--st-text-base);
}

.st-ct-card__text {
	margin: 0;
	color: var(--st-ink-muted);
}

/* Photo card: image with caption below (portfolio) */
.st-ct-photo {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-md);
}

.st-ct-photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	object-position: top;
	background: var(--st-surface-muted);
}

.st-ct-photo figcaption {
	padding: var(--st-space-3) var(--st-space-4) var(--st-space-4);
}

.st-ct-photo h3 {
	margin: 0 0 var(--st-space-1);
	font-size: var(--st-text-md);
}

.st-ct-photo p {
	margin: 0;
	color: var(--st-ink-muted);
}

/* Inline list of tags (ideal for ...) */
.st-ct-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-ct-tags li {
	padding: var(--st-space-1) var(--st-space-3);
	border: 1px solid var(--st-border-strong);
	border-radius: var(--st-radius-sm);
	font-size: var(--st-text-ui);
	line-height: var(--st-leading-ui);
}

.st-inverse .st-ct-tags li {
	border-color: var(--st-border-inverse);
	color: var(--st-ink-inverse);
}

/* Dark call-to-action band */
.st-ct-cta {
	padding: var(--st-space-6) var(--st-space-4);
	border-radius: var(--st-radius-md);
	background: var(--st-surface-inverse);
	color: var(--st-ink-inverse);
}

.st-ct-cta__title {
	margin: 0 0 var(--st-space-3);
	color: var(--st-ink-inverse);
}

.st-ct-cta__text {
	max-width: var(--st-measure);
	margin: 0 0 var(--st-space-4);
	color: var(--st-ink-inverse-muted);
	font-size: var(--st-text-md);
}

@media (min-width: 768px) {
	.st-ct-cta {
		padding: var(--st-space-7) var(--st-space-6);
	}
}

.st-ct-hero {
	padding: var(--st-space-6) var(--st-space-4);
	border-radius: var(--st-radius-md);
	background: var(--st-surface-inverse);
	color: var(--st-ink-inverse);
}

.st-ct-hero h1 {
	max-width: 20ch;
	margin: 0 0 var(--st-space-3);
	color: var(--st-ink-inverse);
}

.st-ct-hero__sub {
	max-width: var(--st-measure);
	margin: 0 0 var(--st-space-5);
	color: var(--st-ink-inverse-muted);
	font-size: var(--st-text-md);
}

@media (min-width: 1024px) {
	.st-ct-hero {
		padding: var(--st-space-8) var(--st-space-7);
	}

	.st-ct-hero h1 {
		font-size: var(--st-text-4xl);
		line-height: var(--st-leading-display);
	}
}

/* Links on dark bands (hero, CTA) */
.st .st-ct-cta a:not(.st-btn),
.st .st-ct-hero a:not(.st-btn) {
	color: var(--st-ink-inverse);
}

.st .st-ct-cta a:not(.st-btn):hover,
.st .st-ct-hero a:not(.st-btn):hover {
	color: var(--st-ink-inverse-muted);
}

/* ----- CMS prose (wbz_pages bodies) ----- */
.st-ct-prose {
	max-width: var(--st-measure);
}

.st-ct-prose h2 {
	margin: var(--st-space-6) 0 var(--st-space-3);
	font-size: var(--st-text-lg);
	line-height: var(--st-leading-snug);
	letter-spacing: 0;
}

.st-ct-prose h3 {
	margin: var(--st-space-5) 0 var(--st-space-2);
	font-size: var(--st-text-md);
}

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

.st-ct-prose p,
.st-ct-prose ul,
.st-ct-prose ol {
	margin: 0 0 var(--st-space-3);
}

.st-ct-prose ul,
.st-ct-prose ol {
	padding-left: var(--st-space-4);
}

.st-ct-prose li + li {
	margin-top: var(--st-space-2);
}

.st-ct-prose a {
	font-weight: var(--st-weight-medium);
	overflow-wrap: anywhere;
}

.st-ct-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--st-text-ui);
}

.st-ct-prose th,
.st-ct-prose td {
	padding: var(--st-space-2) var(--st-space-3);
	border-bottom: 1px solid var(--st-border);
	text-align: left;
	vertical-align: top;
}

.st-ct-prose th {
	background: var(--st-surface-muted);
	font-weight: var(--st-weight-semibold);
}

.st-ct-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--st-radius-md);
}

.st-ct-prose .st-table-scroll {
	margin: 0 0 var(--st-space-4);
}

/* Aside: "On this page" and help links */
.st-ct-aside {
	display: grid;
	gap: var(--st-space-4);
}

@media (min-width: 1024px) {
	.st-ct-aside--sticky {
		position: sticky;
		top: var(--st-sticky-top, calc(var(--st-header-offset) + var(--st-space-4)));
	}
}

.st-ct-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-ct-links li + li {
	border-top: 1px solid var(--st-border);
}

.st-ct-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--st-space-2);
	min-height: var(--st-control-height);
	padding: var(--st-space-2) 0;
	text-decoration: none;
	font-weight: var(--st-weight-medium);
}

.st .st-ct-links a:hover {
	text-decoration: underline;
}

.st-ct-links a[aria-current="page"] {
	font-weight: var(--st-weight-bold);
}

/* ----- Size tables ----- */
.st-sizetable {
	margin-bottom: var(--st-space-4);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-md);
}

.st-sizetable .st-table {
	font-size: var(--st-text-ui);
}

.st-sizetable .st-table th,
.st-sizetable .st-table td {
	text-align: center;
}

.st-sizetable .st-table th:first-child,
.st-sizetable .st-table tbody th {
	position: sticky;
	left: 0;
	z-index: var(--st-z-raised);
	text-align: left;
	background: var(--st-surface-warm);
	border-right: 1px solid var(--st-border);
}

.st-sizetable .st-table thead th {
	background: var(--st-surface-muted);
	border-bottom-color: var(--st-border-strong);
}

.st-sizetable .st-table thead th:first-child {
	z-index: calc(var(--st-z-raised) + 1);
	background: var(--st-surface-muted);
}

.st-sizetable .st-table tbody tr:last-child > * {
	border-bottom: 0;
}

.st-sizetable .st-table tbody tr:hover > td,
.st-sizetable .st-table tbody tr:hover > th {
	background: var(--st-surface-selected);
}

.st-sizetable sup {
	font-size: 0.7em;
}

.st-ct-sizeguide .st-tabs__panel {
	padding-top: var(--st-space-2);
}

.st-ct-measure {
	display: grid;
	gap: var(--st-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: st-measure;
}

.st-ct-measure li {
	position: relative;
	padding-left: var(--st-space-6);
	counter-increment: st-measure;
}

.st-ct-measure li::before {
	content: counter(st-measure);
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--st-space-5);
	height: var(--st-space-5);
	border-radius: var(--st-radius-round);
	background: var(--st-surface-muted);
	font-size: var(--st-text-ui);
	font-weight: var(--st-weight-bold);
}

.st-ct-measure strong {
	display: block;
}

/* Brand charts: search + jump list */
.st-ct-brands__tools {
	display: grid;
	gap: var(--st-space-3);
	margin-bottom: var(--st-space-4);
}

@media (min-width: 768px) {
	.st-ct-brands__tools {
		grid-template-columns: minmax(0, 360px) auto;
		align-items: end;
		justify-content: space-between;
	}
}

.st-ct-brands__tools .st-field {
	margin-bottom: 0;
}

.st-ct-brands__count {
	margin: 0;
	font-size: var(--st-text-ui);
	color: var(--st-ink-muted);
}

.st-sg-brand__img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: var(--st-space-4);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-md);
}

/* ----- Support: topic answers ----- */
.st-ct-answer {
	margin-bottom: var(--st-space-4);
	padding: var(--st-space-4);
	border-left: 4px solid var(--st-ink);
	border-radius: 0 var(--st-radius-md) var(--st-radius-md) 0;
	background: var(--st-surface);
}

.st-ct-answer__q {
	margin: 0 0 var(--st-space-2);
	font-size: var(--st-text-base);
}

.st-ct-answer p:last-child {
	margin-bottom: 0;
}

/* ----- Order tracking ----- */
.st-ct-track {
	display: grid;
	gap: var(--st-space-5);
}

.st-ct-track__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--st-space-2);
}

.st-ct-track__head h2 {
	margin: 0;
}

.st-ct-track__head h2:focus {
	outline: none;
}

.st-ct-steps {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-ct-step {
	position: relative;
	display: grid;
	grid-template-columns: var(--st-space-5) minmax(0, 1fr);
	column-gap: var(--st-space-3);
	padding-bottom: var(--st-space-4);
}

.st-ct-step:last-child {
	padding-bottom: 0;
}

.st-ct-step::before {
	content: "";
	position: absolute;
	top: var(--st-space-5);
	bottom: 0;
	left: calc(var(--st-space-5) / 2);
	width: 2px;
	transform: translateX(-50%);
	background: var(--st-border-strong);
}

.st-ct-step:last-child::before {
	display: none;
}

.st-ct-step--done::before {
	background: var(--st-ink);
}

.st-ct-step__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--st-space-5);
	height: var(--st-space-5);
	border: 2px solid var(--st-border-control);
	border-radius: var(--st-radius-round);
	background: var(--st-surface);
	color: var(--st-ink-inverse);
}

.st-ct-step--done .st-ct-step__dot {
	border-color: var(--st-ink);
	background: var(--st-ink);
}

.st-ct-step--current .st-ct-step__dot {
	border-color: var(--st-ink);
	box-shadow: 0 0 0 4px var(--st-focus-halo);
}

.st-ct-step__title {
	margin: var(--st-space-1) 0 0;
	font-size: var(--st-text-base);
}

.st-ct-step__meta {
	margin: var(--st-space-1) 0 0;
	font-size: var(--st-text-ui);
	color: var(--st-ink-muted);
}

.st-ct-kv {
	display: grid;
	gap: var(--st-space-3);
	margin: 0;
}

.st-ct-kv > div {
	display: grid;
	gap: var(--st-space-1);
}

@media (min-width: 480px) {
	.st-ct-kv > div {
		grid-template-columns: 160px minmax(0, 1fr);
		gap: var(--st-space-3);
	}
}

.st-ct-kv dt {
	font-size: var(--st-text-ui);
	font-weight: var(--st-weight-semibold);
	color: var(--st-ink-muted);
}

.st-ct-kv dd {
	margin: 0;
}

/* ----- Sale event ----- */
.st-ct-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-3) var(--st-space-5);
	margin: var(--st-space-3) 0 var(--st-space-5);
	padding: 0;
	list-style: none;
}

.st-ct-event__meta li {
	display: flex;
	align-items: flex-start;
	gap: var(--st-space-2);
}

.st-ct-event__banner {
	width: 100%;
	height: auto;
	border-radius: var(--st-radius-md);
	background: var(--st-surface-muted);
}

.st-ct-offers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--st-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1024px) {
	.st-ct-offers {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--st-space-4);
	}

	.st-ct-offers--1 {
		grid-template-columns: minmax(0, 320px);
	}
}

.st-ct-offer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--st-space-2);
	height: 100%;
	padding: var(--st-space-4);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-md);
	background: var(--st-surface);
}

.st-ct-offer--best {
	border-color: var(--st-ink);
	background: var(--st-surface-selected);
}

.st-ct-offer__deal {
	font-size: var(--st-text-2xl);
	font-weight: var(--st-weight-bold);
	line-height: var(--st-leading-tight);
	letter-spacing: var(--st-tracking-tight);
	font-variant-numeric: tabular-nums;
}

.st-ct-offer__title {
	margin: 0;
	font-weight: var(--st-weight-semibold);
}

/* ----- Reviews page ----- */
.st-ct-reviews {
	display: grid;
	gap: var(--st-space-6);
}

@media (min-width: 1024px) {
	.st-ct-reviews {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: var(--st-space-7);
		align-items: start;
	}
}

/* ----- 404 ----- */
.st-ct-404 {
	display: grid;
	gap: var(--st-space-5);
	padding-top: var(--st-space-7);
}

.st-ct-404__code {
	margin: 0;
	font-size: var(--st-text-xs);
	font-weight: var(--st-weight-semibold);
	letter-spacing: var(--st-tracking-caps);
	text-transform: uppercase;
	color: var(--st-ink-muted);
}

.st-ct-404__title {
	max-width: 20ch;
	margin: 0;
}

.st-ct-404__text {
	max-width: var(--st-measure);
	margin: 0;
	color: var(--st-ink-muted);
	font-size: var(--st-text-md);
}

.st-ct-404__search {
	max-width: 560px;
}

.st-ct-404__search .st-field {
	margin-bottom: 0;
}

/* Small centred status page (subscription verified / unsubscribed) */
.st-ct-status {
	max-width: 560px;
	margin: 0 auto;
	padding-top: var(--st-space-7);
}
