.janex-search-heading,
.janex-utility-heading {
	margin-bottom: 40px;
}

.janex-search-heading h1,
.janex-utility-heading h1 {
	margin-block: 0 24px;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.2;
}

.janex-search-page .janex-catalog-toolbar:not(:has(.woocommerce-result-count, select)) {
	display: none;
}

.janex-product-search {
	max-width: 640px;
	margin-block: 32px;
}

.janex-product-search .wp-block-search__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
}

.janex-product-search .wp-block-search__input {
	min-height: 48px;
	min-width: 0;
	padding: 12px 16px;
	border: var(--border-strong);
	background: var(--janex-white);
	color: var(--janex-black);
	font-size: 16px;
}

.janex-product-search .wp-block-search__button {
	min-height: 48px;
	margin-left: 8px;
	padding: 12px 24px;
	border: 1px solid var(--janex-black);
	border-radius: 0;
	background: var(--janex-black);
	color: var(--janex-white);
	box-shadow: none;
}

.janex-product-search .wp-block-search__button:hover {
	background: var(--janex-red-dark);
	border-color: var(--janex-red-dark);
}

.janex-not-found .janex-utility-heading {
	max-width: 720px;
	margin-inline: auto;
}

.janex-button-outline .wp-block-button__link {
	background: var(--janex-white);
	border: var(--border-strong);
	color: var(--janex-black);
}

.janex-button-outline .wp-block-button__link:hover {
	background: var(--janex-black);
	color: var(--janex-white);
}

.janex-account-page .woocommerce {
	font-size: 16px;
}

.janex-account-page .woocommerce h2 {
	font-size: 28px;
	margin-block: 0 24px;
}

.janex-account-page .woocommerce form.login,
.janex-account-page .woocommerce form.register {
	max-width: 540px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.janex-account-page .woocommerce .form-row {
	margin: 0 0 24px;
	padding: 0;
}

.janex-account-page .woocommerce .form-row label {
	font-size: 14px;
	line-height: 1.6;
}

.janex-account-page .woocommerce form .form-row .input-text,
.janex-account-page .woocommerce form .form-row select,
.janex-account-page .woocommerce form .form-row textarea {
	min-height: 48px;
	padding: 12px 16px;
	border: var(--border-strong);
	border-radius: 0;
	background: var(--janex-white);
	color: var(--janex-black);
	font-size: 16px;
	box-shadow: none;
}

.janex-account-page .woocommerce .show-password-input {
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	transform: none;
}

.janex-account-page .woocommerce .password-input input {
	padding-right: 52px;
}

.janex-account-page .woocommerce button.button,
.janex-account-page .woocommerce a.button {
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid var(--janex-black);
	border-radius: 0;
	background: var(--janex-black);
	color: var(--janex-white);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	box-shadow: none;
}

.janex-account-page .woocommerce button.button:hover,
.janex-account-page .woocommerce a.button:hover {
	background: var(--janex-red-dark);
	border-color: var(--janex-red-dark);
}

.janex-account-page .woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-bottom: 12px;
}

.janex-account-page .woocommerce .woocommerce-form-login .woocommerce-form-login__submit {
	float: none;
}

.janex-account-page .woocommerce .lost_password a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.janex-account-page .woocommerce .woocommerce-MyAccount-navigation {
	width: 24%;
}

.janex-account-page .woocommerce .woocommerce-MyAccount-content {
	width: 70%;
	min-width: 0;
}

.janex-account-page .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.janex-account-page .woocommerce-MyAccount-navigation li {
	border-bottom: var(--border-hairline);
}

.janex-account-page .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 16px;
	text-decoration: none;
}

.janex-account-page .woocommerce-MyAccount-navigation .is-active a {
	background: var(--janex-black);
	color: var(--janex-white);
}

.janex-account-page .woocommerce table.shop_table,
.janex-account-page .woocommerce .woocommerce-Address-title {
	border-radius: 0;
}

.janex-account-page .woocommerce .woocommerce-Address-title .edit {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.janex-account-page .woocommerce .woocommerce-MyAccount-content a {
	overflow-wrap: anywhere;
}

@media (max-width: 700px) {

	.janex-account-page .woocommerce .woocommerce-MyAccount-navigation,
	.janex-account-page .woocommerce .woocommerce-MyAccount-content {
		float: none;
		width: 100%;
	}

	.janex-account-page .woocommerce .woocommerce-MyAccount-navigation {
		margin-bottom: 32px;
	}

	.janex-account-page .woocommerce .lost_reset_password .form-row-first {
		width: 100%;
	}

	.janex-product-search .wp-block-search__button {
		padding-inline: 16px;
	}
}

.janex-information,
.janex-information .wp-block-post-content,
.janex-information .wp-block-post-content > * {
	margin-block-start: 0;
}

.janex-info-section {
	padding-block: clamp(48px, 7vw, 96px);
}

.janex-info-section > .alignwide {
	width: min(calc(100% - 80px), 1360px);
	margin-inline: auto;
}

.janex-info-bordered {
	border-top: var(--border-hairline);
}

.janex-info-heading h1 {
	max-width: 22ch;
	font-size: clamp(34px, 4.5vw, 56px);
	line-height: 1.15;
	margin-block: 0 24px;
}

.janex-info-heading p {
	max-width: 58ch;
	font-size: 18px;
}

.janex-info-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.janex-info-split > * {
	min-width: 0;
	margin: 0;
}

.janex-information h2 {
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.2;
	margin-top: 0;
}

.janex-information h3 {
	font-size: 24px;
}

.janex-information p,
.janex-information li {
	max-width: 65ch;
	font-size: 16px;
	overflow-wrap: anywhere;
}

.janex-information li + li {
	margin-top: 16px;
}

.janex-info-inverse {
	background: var(--janex-black);
	color: var(--janex-white);
}

.janex-info-inverse h2,
.janex-info-inverse h3 {
	color: var(--janex-white);
}

.janex-pending {
	padding-block: 16px;
	border-block: var(--border-hairline);
	font-size: 14px !important;
	line-height: 1.6;
}

.janex-info-inverse .janex-pending {
	border-color: var(--grey-600);
}

.janex-about-hero {
	min-height: 620px;
	padding: 80px max(20px, calc((100vw - 1440px) / 2 + 40px));
}

.janex-about-hero .wp-block-cover__background {
	background: linear-gradient(0deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.35));
	opacity: 1;
}

.janex-information .wp-block-cover.janex-about-hero > .wp-block-cover__background.has-background-dim {
	background-color: transparent;
	opacity: 1;
}

.janex-about-hero h1 {
	max-width: 23ch;
	margin: 0;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.12;
	color: var(--janex-white);
}

.janex-info-figure {
	margin: 0;
}

.janex-info-figure img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.janex-info-figure figcaption {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.6;
}

.janex-production-film video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	background: var(--text-strong);
}

.janex-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.janex-contact-grid > * {
	min-width: 0;
	margin: 0;
}

.janex-contact-grid h2 {
	font-family: var(--font-ui);
	font-size: 16px;
	font-weight: 500;
}

.janex-contact-grid a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	font-size: 18px;
	overflow-wrap: anywhere;
}

.janex-information .janex-info-intro {
	font-family: var(--font-display);
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.25;
	color: var(--text-strong);
}

.janex-info-ruled {
	border-block: var(--border-hairline);
	padding-block: 64px;
}

.janex-info-soft {
	background: var(--surface-sunken);
}

.janex-facts,
.janex-process {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}

.janex-facts {
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.janex-information .janex-fact-value {
	font: var(--type-section);
	color: var(--text-strong);
	margin-bottom: 12px;
}

.janex-info-fact > p:last-child {
	font-size: 14px;
	color: var(--grey-600);
}

.janex-process {
	margin-top: 48px;
}

.janex-process-step {
	border-top: 1px solid var(--janex-black);
	padding-top: 24px;
}

.janex-process-step h3,
.janex-material-row h3 {
	font-size: 24px;
	margin-bottom: 12px;
}

.janex-info-photo {
	align-items: center;
}

.janex-info-landscape img {
	aspect-ratio: 4 / 3;
}

.janex-material-row + .janex-material-row {
	border-top: var(--border-hairline);
	margin-top: 24px;
	padding-top: 24px;
}

.janex-info-inverse .wp-block-button__link {
	background: var(--janex-white);
	color: var(--janex-black);
}

.janex-info-inverse .wp-block-button__link:hover {
	background: var(--grey-200);
}

.janex-info-three {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
}

.janex-info-three .janex-feature h2 {
	font-size: 28px;
	margin-bottom: 16px;
}

.janex-contact-form-section .janex-customer-form {
	margin: 0;
	max-width: none;
}

.janex-contact-form-section .janex-customer-form > h2,
.janex-contact-form-section .janex-customer-form > p:first-of-type {
	margin-top: 0;
}

.janex-help {
	width: min(calc(100% - 80px), 1360px);
	padding-block: 40px 100px;
	margin-inline: auto;
}

.janex-help-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--grey-600);
	margin-bottom: 40px;
}

.janex-help-breadcrumbs a {
	text-underline-offset: 4px;
}

.janex-help-grid {
	display: grid;
	grid-template-columns: 240px minmax(0, 760px);
	gap: 64px;
	align-items: start;
}

.janex-help-sidebar {
	position: sticky;
	top: 112px;
}

.janex-help-mobile {
	display: none;
}

.janex-help-links {
	display: grid;
	gap: 4px;
}

.janex-help-links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-block: 8px;
	font-size: 15px;
	line-height: 1.6;
	text-decoration: none;
	color: var(--grey-600);
}

.janex-help-links a[aria-current="page"] {
	font-weight: 600;
	color: var(--janex-black);
	text-decoration: underline;
	text-underline-offset: 6px;
}

.janex-help-links a:hover {
	color: var(--janex-red-dark);
}

.janex-help-article {
	min-width: 0;
	margin-top: 0;
}

.janex-help-article h1 {
	font-size: clamp(36px, 4vw, 48px);
	line-height: 1.15;
	margin-block: 0 32px;
	text-wrap: balance;
}

.janex-help-article .wp-block-post-content {
	margin-top: 0;
}

.janex-help-article p,
.janex-help-article li {
	font-size: 16px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.janex-help-article h2 {
	margin-block: 48px 20px;
	padding-top: 24px;
	border-top: var(--border-hairline);
	font-size: clamp(26px, 2.7vw, 32px);
	line-height: 1.25;
	text-wrap: balance;
}

.janex-help-article h3 {
	font-size: 24px;
}

.janex-help-article .janex-help-lead {
	font-size: 18px;
}

.janex-delivery-table {
	margin-inline: 0;
}

.janex-delivery-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.janex-delivery-table th,
.janex-delivery-table td {
	padding: 16px 8px;
	border: 0;
	border-bottom: var(--border-hairline);
	text-align: left;
}

.janex-delivery-table th {
	font-weight: 500;
}

.janex-delivery-table td,
.janex-delivery-table thead th:not(:first-child) {
	text-align: right;
	white-space: nowrap;
}

@media (max-width: 1000px) {

	.janex-help-grid {
		grid-template-columns: 200px minmax(0, 1fr);
		gap: 40px;
	}

	.janex-facts,
	.janex-process {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {

	.janex-information .janex-fact-value {
		font-size: clamp(20px, 6vw, 28px);
		line-height: 1.2;
	}

	.janex-info-section > .alignwide,
	.janex-help {
		width: calc(100% - 40px);
	}

	.janex-info-split,
	.janex-contact-grid,
	.janex-info-three,
	.janex-help-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.janex-about-hero {
		min-height: 380px;
		padding: 40px 20px;
	}

	.janex-info-heading p {
		font-size: 16px;
	}

	.janex-info-ruled {
		padding-block: 40px;
	}

	.janex-help {
		padding-block: 24px 64px;
	}

	.janex-help-breadcrumbs {
		margin-bottom: 24px;
	}

	.janex-help-sidebar {
		position: static;
	}

	.janex-help-desktop {
		display: none;
	}

	.janex-help-mobile {
		display: block;
		border-block: var(--border-hairline);
	}

	.janex-help-mobile summary {
		padding-block: 16px;
		cursor: pointer;
		font-size: 15px;
	}

	.janex-help-mobile[open] nav {
		padding-bottom: 16px;
	}

	.janex-help-article h1 {
		margin-bottom: 24px;
	}

	.janex-delivery-table th,
	.janex-delivery-table td {
		padding: 12px 4px;
		font-size: 14px;
	}
}

.janex-info-figure figcaption {
	margin-top: 12px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--text-muted);
}

/* Documentary workshop photography on the about page. */
.janex-information .janex-info-figure img,
.janex-about-hero > .wp-block-cover__image-background {
	filter: grayscale(1);
}

.janex-production-film figcaption {
	margin-top: 12px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--text-muted);
}

/* Match workshop images to their adjacent copy without stretching pixels. */
@media (min-width: 701px) {
 .janex-about-photo { align-items: stretch; }
 .janex-about-photo > .janex-info-figure { position: relative; min-height: 300px; align-self: stretch; }
 .janex-about-photo > .janex-info-figure img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
 .janex-about-photo > .wp-block-group { align-self: stretch; }
}
@media (max-width: 700px) {
 .janex-about-photo > .janex-info-figure img { height: auto; aspect-ratio: 3 / 4; }
 .janex-about-photo img[src*="about-restored-press-"] { aspect-ratio: 945 / 1665; }
 .janex-about-photo img[src*="about-materials-workshop-"] { aspect-ratio: 1672 / 941; }
}

.janex-about-hero > .wp-block-cover__image-background { object-position: center 62%; }

/* Family story: typography and space, without a mismatched machine photo. */
.janex-family-story { max-width: 820px; margin-inline: auto; text-align: center; }
.janex-information .janex-family-story h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.15; margin-bottom: 28px; }
.janex-family-story p { max-width: 650px; margin-inline: auto; font-size: clamp(18px, 2vw, 22px); line-height: 1.7; }
.janex-family-story .wp-block-buttons { justify-content: center; margin-top: 32px; }

/* Payment guide: visible methods and native expandable explanations. */
.janex-payment-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-block: 24px 44px; }
.janex-payment-method { min-width: 0; padding-top: 20px; border-top: 2px solid var(--janex-black); }
.janex-help-article .janex-payment-method h3 { margin: 0 0 16px; font-size: 22px; line-height: 1.3; }
.janex-help-article .janex-payment-method p { margin: 0; font-size: 14px; line-height: 1.75; }
.janex-payments > h2 { border-top: 0; padding-top: 0; }
.janex-payment-detail { margin: 0; border-top: var(--border-hairline); }
.janex-payment-detail summary { padding: 22px 0; cursor: pointer; font-size: 17px; line-height: 1.5; font-weight: 500; }
.janex-payment-detail summary::marker { color: var(--grey-600); }
.janex-help-article .janex-payment-detail p { margin: 0; padding: 0 0 24px 22px; font-size: 15px; }
.janex-payment-detail summary:focus-visible { outline: 2px solid var(--janex-burgundy, #641c2d); outline-offset: 4px; }
.janex-help-article .janex-payment-pickup { margin-block: 28px; padding: 20px 24px; border-left: 2px solid var(--janex-black); background: var(--grey-100, #f5f5f5); font-size: 15px; }
@media (max-width: 1100px) { .janex-payment-methods { grid-template-columns: 1fr; gap: 28px; } }
