/* Shared public chrome for the first WooCommerce migration cut. */
body.torrelles-operational-chrome {
	--torrelles-chrome-ink: var(--brand-ink);
	--torrelles-chrome-paper: var(--brand-paper);
	--torrelles-chrome-teal: var(--brand-green);
	--torrelles-chrome-yellow: var(--brand-accent);
	--torrelles-chrome-header: 76px;
	--torrelles-chrome-feedback: 140ms;
	--torrelles-chrome-disclosure: 240ms;
	--torrelles-chrome-ease: cubic-bezier(0.2, 0, 0, 1);
	--torrelles-chrome-enter: cubic-bezier(0.16, 1, 0.3, 1);
}

body.torrelles-operational-chrome :is(.fusion-header-wrapper, #wrapper > .fusion-footer, #wrapper > .tvc-site-footer-nav) {
	display: none !important;
}

/* The redesigned footer owns its single, labelled back-to-top control. */
body.torrelles-operational-chrome #toTop {
	display: none !important;
}

body.torrelles-operational-chrome :is(#sliders-container, .fusion-page-title-bar) {
	display: none !important;
}

body.torrelles-operational-chrome #wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--torrelles-chrome-paper);
}

body.torrelles-operational-chrome #main {
	flex: 1 0 auto;
}

.torrelles-operational-header,
.torrelles-operational-header *,
.torrelles-operational-directory,
.torrelles-operational-directory *,
.torrelles-operational-footer,
.torrelles-operational-footer * {
	box-sizing: border-box;
}

.torrelles-operational-header {
	position: sticky;
	top: 0;
	z-index: 10020;
	min-height: var(--torrelles-chrome-header);
	display: grid;
	grid-template-columns: minmax(150px, 1fr) auto minmax(220px, 1fr);
	align-items: center;
	gap: clamp(18px, 2.2vw, 40px);
	padding: 0 clamp(22px, 3.2vw, 58px);
	border-bottom: 1px solid rgba(239, 239, 239, 0.18);
	background: rgba(7, 7, 7, 0.96);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--torrelles-chrome-paper);
	font-family: "TVC DM Sans", "DM Sans", Arial, sans-serif;
}

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

.torrelles-operational-header :is(a, button) {
	font-family: inherit;
	text-decoration: none;
}

.torrelles-operational-header :is(a, button):focus-visible,
.torrelles-operational-directory a:focus-visible,
.torrelles-operational-footer a:focus-visible {
	outline: 3px solid var(--brand-focus-on-dark);
	outline-offset: 3px;
}

.torrelles-operational-directory a:focus-visible {
	outline-color: var(--brand-focus);
}
/* Account/workbench form rules also match header links; retain a visible ring on ink. */
body.torrelles-operational-chrome :is(.torrelles-operational-header, .torrelles-operational-footer) :is(a, button):focus-visible {
	outline-color: var(--brand-focus-on-dark) !important;
}

.torrelles-operational-brand {
	justify-self: start;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	padding: 8px 0;
}

.torrelles-operational-brand img,
.torrelles-operational-footer-brand img {
	display: block;
	width: 124px;
	height: auto;
}

.torrelles-operational-desktop-nav {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.2vw, 40px);
}

.torrelles-operational-desktop-nav > a,
.torrelles-operational-meta > a,
.torrelles-operational-account > a {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	color: var(--torrelles-chrome-paper);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: var(--brand-line-height-ui);
	text-transform: uppercase;
	white-space: nowrap;
	transition: color var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease), background var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease), border-color var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease);
}

.torrelles-operational-desktop-nav > a:is(:hover, :focus-visible),
.torrelles-operational-account > a:is(:hover, :focus-visible),
.torrelles-operational-account.is-open > a {
	color: var(--torrelles-chrome-teal);
}

.torrelles-operational-desktop-nav .torrelles-operational-hire {
	min-width: 148px;
	justify-content: center;
	gap: 22px;
	padding: 0 18px;
	background: var(--torrelles-chrome-teal);
	color: var(--torrelles-chrome-ink);
}

.torrelles-operational-desktop-nav .torrelles-operational-hire:is(:hover, :focus-visible) {
	background: var(--torrelles-chrome-yellow);
	color: var(--torrelles-chrome-ink);
}

.torrelles-operational-hire svg,
.torrelles-operational-back-to-top svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.torrelles-operational-meta {
	justify-self: end;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(15px, 1.5vw, 26px);
}

.torrelles-operational-account {
	position: relative;
}

.torrelles-operational-account > a {
	border-bottom: 1px solid rgba(239, 239, 239, 0.45);
}

.torrelles-operational-account > a.is-current {
	border-bottom-color: var(--torrelles-chrome-teal);
	color: var(--torrelles-chrome-teal);
}

.torrelles-operational-account-menu {
	position: absolute;
	top: calc(100% - 1px);
	right: 0;
	width: 252px;
	display: grid;
	padding: 8px;
	border: 1px solid rgba(239, 239, 239, 0.25);
	background: var(--torrelles-chrome-ink);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-8px);
	transition: opacity var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease), transform var(--torrelles-chrome-disclosure) var(--torrelles-chrome-enter), visibility 0s var(--torrelles-chrome-disclosure);
}

.torrelles-operational-account.is-open .torrelles-operational-account-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
}

.torrelles-operational-account-menu a {
	min-height: 46px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	border-bottom: 1px solid rgba(239, 239, 239, 0.16);
	color: var(--torrelles-chrome-paper);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: var(--brand-line-height-ui);
	transition: background var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease), color var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease);
}

.torrelles-operational-account-menu a:last-child {
	border-bottom: 0;
}

.torrelles-operational-account-menu a:is(:hover, :focus-visible) {
	background: var(--torrelles-chrome-paper);
	color: var(--torrelles-chrome-ink);
}

.torrelles-operational-account-menu a.is-studio {
	color: var(--torrelles-chrome-teal);
}

.torrelles-operational-account-menu a.is-logout {
	margin-top: 7px;
	border-top: 1px solid rgba(239, 239, 239, 0.28);
}

.torrelles-operational-cart {
	gap: 8px;
}

.torrelles-operational-cart[hidden],
.torrelles-operational-mobile-cart[hidden],
.torrelles-operational-mobile-menu [data-tvc-cart-link][hidden] {
	display: none !important;
}

.torrelles-operational-cart strong,
.torrelles-operational-mobile-cart strong {
	min-width: 22px;
	height: 22px;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	background: var(--torrelles-chrome-teal);
	color: var(--torrelles-chrome-ink);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
}

.torrelles-operational-mobile-actions,
.torrelles-operational-menu-toggle,
.torrelles-operational-mobile-menu {
	display: none;
}

.torrelles-operational-directory {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(30px, 5vw, 86px);
	padding: clamp(48px, 6vw, 88px) clamp(22px, 6vw, 112px);
	border-top: 1px solid var(--torrelles-chrome-ink);
	background: #e8e2d7;
	color: var(--torrelles-chrome-ink);
	font-family: "TVC DM Sans", "DM Sans", Arial, sans-serif;
}

.torrelles-operational-directory nav {
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 10px;
}

.torrelles-operational-directory h2 {
	margin: 0 0 10px;
	color: inherit;
	font: 800 11px/var(--brand-line-height-ui) "TVC DM Sans", "DM Sans", Arial, sans-serif;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.torrelles-operational-directory a {
	width: fit-content;
	max-width: 100%;
	color: inherit;
	font-size: 13px;
	font-weight: 520;
	line-height: 1.4;
	text-decoration: none;
	transition: color var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease);
}

.torrelles-operational-directory a:is(:hover, :focus-visible) {
	color: var(--brand-green-strong);
}

.torrelles-operational-footer {
	flex: 0 0 auto;
	min-height: 116px;
	display: grid;
	grid-template-columns: minmax(210px, 1fr) minmax(360px, auto) auto auto;
	align-items: center;
	gap: clamp(20px, 2.4vw, 40px);
	padding: 24px clamp(22px, 3.2vw, 58px);
	border-top: 1px solid rgba(239, 239, 239, 0.2);
	background: var(--torrelles-chrome-ink);
	color: rgba(239, 239, 239, 0.72);
	font: 700 11px/var(--brand-line-height-ui) "TVC DM Sans", "DM Sans", Arial, sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.torrelles-operational-footer-brand,
.torrelles-operational-footer-meta {
	min-width: 0;
	display: grid;
	gap: 7px;
}

.torrelles-operational-footer-legal {
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px clamp(14px, 1.5vw, 24px);
}

.torrelles-operational-footer :is(a, span) {
	color: inherit;
	text-decoration: none;
}

.torrelles-operational-footer-legal a {
	min-height: 32px;
	display: inline-flex;
	align-items: center;
	border-bottom: 1px solid rgba(239, 239, 239, 0.26);
}

.torrelles-operational-footer a {
	transition: color var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease), background var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease), border-color var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease);
}

.torrelles-operational-footer a:is(:hover, :focus-visible) {
	color: var(--torrelles-chrome-teal);
}

.torrelles-operational-footer-meta {
	justify-items: end;
	white-space: nowrap;
}

.torrelles-operational-back-to-top {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 0 16px;
	border: 1px solid rgba(239, 239, 239, 0.44);
	color: var(--torrelles-chrome-paper) !important;
}

.torrelles-operational-back-to-top:is(:hover, :focus-visible) {
	border-color: var(--torrelles-chrome-teal);
	background: var(--torrelles-chrome-teal);
	color: var(--torrelles-chrome-ink) !important;
}

@media (max-width: 1199px) {
	.torrelles-operational-header {
		grid-template-columns: minmax(108px, 1fr) auto auto;
		gap: 8px;
		padding-inline: 20px;
	}

	.torrelles-operational-desktop-nav,
	.torrelles-operational-meta {
		display: none;
	}

	.torrelles-operational-mobile-actions {
		display: flex;
		align-items: center;
	}

	.torrelles-operational-mobile-actions > a,
	.torrelles-operational-menu-toggle {
		position: relative;
		width: 48px;
		height: 48px;
		display: grid;
		place-items: center;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--torrelles-chrome-paper);
		transition: background var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease), color var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease);
	}

	.torrelles-operational-mobile-actions > a:is(:hover, :focus-visible),
	.torrelles-operational-menu-toggle:is(:hover, :focus-visible) {
		background: var(--torrelles-chrome-teal);
		color: var(--torrelles-chrome-ink);
	}

	.torrelles-operational-mobile-actions svg,
	.torrelles-operational-menu-toggle svg {
		width: 24px;
		height: 24px;
	}

	.torrelles-operational-mobile-cart strong {
		position: absolute;
		top: 3px;
		right: 1px;
		min-width: 19px;
		height: 19px;
		font-size: 10px;
	}

	.torrelles-operational-menu-toggle {
		cursor: pointer;
	}

	.torrelles-operational-menu-toggle .is-close-icon,
	.torrelles-operational-menu-toggle[aria-expanded="true"] .is-open-icon {
		display: none;
	}

	.torrelles-operational-menu-toggle[aria-expanded="true"] .is-close-icon {
		display: block;
	}

	.torrelles-operational-mobile-menu {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: grid;
		max-height: calc(100vh - var(--torrelles-chrome-header));
		max-height: calc(100dvh - var(--torrelles-chrome-header));
		overflow-y: auto;
		overscroll-behavior: contain;
		border-bottom: 1px solid rgba(239, 239, 239, 0.25);
		background: var(--torrelles-chrome-ink);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-18px);
		transition: transform var(--torrelles-chrome-disclosure) var(--torrelles-chrome-enter), opacity var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease), visibility 0s var(--torrelles-chrome-disclosure);
	}

	.torrelles-operational-mobile-menu.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
		transition-delay: 0s;
	}

	.torrelles-operational-mobile-menu > a {
		min-height: 58px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 24px;
		border-bottom: 1px solid rgba(239, 239, 239, 0.18);
		background: var(--torrelles-chrome-ink);
		color: var(--torrelles-chrome-paper);
		font-size: 13px;
		font-weight: 800;
		letter-spacing: 0.08em;
		line-height: var(--brand-line-height-ui);
		text-transform: uppercase;
		text-decoration: none;
		transition: background var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease), color var(--torrelles-chrome-feedback) var(--torrelles-chrome-ease);
	}

	.torrelles-operational-mobile-menu > a:is(:hover, :focus-visible) {
		background: var(--torrelles-chrome-paper);
		color: var(--torrelles-chrome-ink);
	}

	.torrelles-operational-mobile-menu > a.is-account-child {
		min-height: 50px;
		padding-left: 42px;
		color: rgba(239, 239, 239, 0.76);
		font-size: 11px;
	}

	.torrelles-operational-mobile-menu > a.is-hire {
		background: var(--torrelles-chrome-teal);
		color: var(--torrelles-chrome-ink);
	}

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

	.torrelles-operational-footer {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 18px 30px;
	}

	.torrelles-operational-footer-brand {
		grid-column: 1;
		grid-row: 1;
	}

	.torrelles-operational-footer-legal {
		grid-column: 1;
		grid-row: 2;
	}

	.torrelles-operational-footer-meta {
		grid-column: 2;
		grid-row: 1;
	}

	.torrelles-operational-back-to-top {
		grid-column: 2;
		grid-row: 2;
	}
}

@media (max-width: 782px) {
	.admin-bar .torrelles-operational-header {
		top: 46px;
	}

	/* Keep the account link inside the native 46px toolbar, without an inline baseline gap. */
	body.torrelles-operational-chrome #wpadminbar #wp-admin-bar-my-account > .ab-item {
		display: block;
	}
}

@media (max-width: 600px) {
	/* Extra editor shortcuts otherwise push the profile icon over the site menu.
	 * Keep the core site/edit/account controls; the full toolbar remains on desktop. */
	body.torrelles-operational-chrome #wpadminbar #wp-admin-bar-wpseo-menu,
	body.torrelles-operational-chrome #wpadminbar #wp-admin-bar-avada {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.torrelles-operational-header {
		padding-inline: 16px;
	}

	.torrelles-operational-brand img {
		width: 112px;
	}

	.torrelles-operational-directory {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding: 48px 20px 56px;
	}

	.torrelles-operational-directory a {
		min-height: 36px;
		display: inline-flex;
		align-items: center;
	}

	.torrelles-operational-footer {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 28px 20px 34px;
	}

	.torrelles-operational-footer-brand,
	.torrelles-operational-footer-legal,
	.torrelles-operational-footer-meta,
	.torrelles-operational-back-to-top {
		grid-column: 1;
		grid-row: auto;
	}

	.torrelles-operational-footer-meta {
		justify-items: start;
	}

	.torrelles-operational-footer-legal {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 16px;
	}

	.torrelles-operational-footer-legal a {
		min-height: 44px;
	}

	.torrelles-operational-back-to-top {
		justify-self: start;
	}
}

@media (max-width: 390px) {
	.torrelles-operational-header {
		grid-template-columns: minmax(96px, 1fr) auto auto;
		padding-inline: 12px;
	}

	.torrelles-operational-brand img {
		width: 104px;
	}

	.torrelles-operational-mobile-actions > a,
	.torrelles-operational-menu-toggle {
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.torrelles-operational-header *,
	.torrelles-operational-directory *,
	.torrelles-operational-footer * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
