/**
 * LT Bobbin block styles (front end + editor).
 * Sewing-pattern helpers: cutting-line signature, split hero, format chips, pattern-envelope cards, size / file / licence /
 * fabric tables, skill level meter and sew-along preview (see the Sewing patterns block).
 *
 * Rules for humans and AI agents:
 * - Use the design tokens only: var(--wp--preset--color--*), --font-size--*, --spacing--*,
 *   var(--wp--custom--radius--*) and the other var(--wp--custom--*) values. Never hard-code a colour here.
 * - Each block below is one block style or one helper class used by the patterns.
 * - Style variations (styles/*.json) change the tokens; this file never needs a per-style rule.
 */

/* ---------- Layout ---------- */

.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Full-width sections sit edge to edge (no white strip between coloured bands). */
:where(.wp-site-blocks main, .wp-block-post-content) > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ---------- Header ---------- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.lt-bobbin-topbar p {
	margin: 0;
	font-weight: 600;
}

.lt-bobbin-topbar a {
	color: inherit;
}

/* No backdrop-filter on the header: it would trap the mobile menu overlay inside the header. */
.lt-bobbin-header,
.lt-bobbin-checkout-header {
	background-color: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* Brand mark in front of the site title (hidden once a logo is set). */
.lt-bobbin-header .wp-block-site-title a,
.lt-bobbin-checkout-header .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.lt-bobbin-header .wp-block-site-title a::before,
.lt-bobbin-checkout-header .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 2rem;
	height: 2rem;
	background-color: var(--wp--preset--color--brand);
	-webkit-mask: url("../images/mark.svg") center / contain no-repeat;
	mask: url("../images/mark.svg") center / contain no-repeat;
}

.lt-bobbin-header .wp-block-site-logo + .wp-block-site-title a::before {
	display: none;
}

.lt-bobbin-header-tools .wp-block-search__button,
.lt-bobbin-header-tools .wc-block-customer-account a,
.lt-bobbin-header-tools .wc-block-mini-cart__button {
	color: var(--wp--preset--color--ink);
	background: transparent;
	border: 0;
	padding: 0.45rem;
	border-radius: var(--wp--custom--radius--circle);
}

.lt-bobbin-header-tools .wp-block-search__button:hover,
.lt-bobbin-header-tools .wc-block-customer-account a:hover,
.lt-bobbin-header-tools .wc-block-mini-cart__button:hover {
	background-color: var(--wp--preset--color--surface);
}

.lt-bobbin-header-tools .wp-block-search__input {
	border-radius: var(--wp--custom--radius--pill);
	border-color: var(--wp--preset--color--line);
}

.wc-block-mini-cart__badge {
	background-color: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--base) !important;
}

@media (max-width: 599px) {
	.lt-bobbin-header .wp-block-site-title {
		font-size: var(--wp--preset--font-size--large) !important;
	}

	.lt-bobbin-header-tools .wp-block-search {
		display: none;
	}
}

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

.lt-bobbin-footer a:not(.wp-block-button__link) {
	color: inherit;
	text-decoration: none;
}

.lt-bobbin-footer a:hover {
	text-decoration: underline;
}

.lt-bobbin-footer .wp-block-site-title a {
	color: inherit;
}

.lt-bobbin-footer .wp-block-separator {
	opacity: 0.2;
	margin-block: var(--wp--preset--spacing--60);
}

.lt-bobbin-footer .wp-block-button__link:hover {
	text-decoration: none;
	filter: brightness(1.05);
}

.lt-bobbin-muted {
	opacity: 0.75;
}

/* ---------- Typography helpers ---------- */

.lt-bobbin-display {
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1;
	letter-spacing: calc(var(--wp--custom--heading--letter-spacing) - 0.005em);
	text-wrap: balance;
}

h1, h2, h3 {
	text-wrap: balance;
}

/* Paragraph style "Kicker": small uppercase label above a heading. */
.is-style-lt-bobbin-kicker {
	color: var(--wp--preset--color--brand);
	font-family: var(--wp--custom--kicker--font);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--kicker--letter-spacing);
	text-transform: uppercase;
	margin-bottom: 0;
}

.is-style-lt-bobbin-kicker.has-text-color {
	color: inherit;
}

.is-style-lt-bobbin-kicker.has-accent-color {
	color: var(--wp--preset--color--accent);
}

.lt-bobbin-meta,
.lt-bobbin-step-number,
.lt-bobbin-price {
	font-family: var(--wp--custom--kicker--font);
	letter-spacing: 0.02em;
}

.lt-bobbin-meta {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--surface);
	font-weight: 600;
}

.lt-bobbin-step-number {
	color: var(--wp--preset--color--brand);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	margin: 0;
}

.lt-bobbin-stars {
	color: var(--wp--preset--color--brand);
	letter-spacing: 0.1em;
	margin: 0;
}

.lt-bobbin-signature {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
}

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

.lt-bobbin-info-card {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--md);
	max-width: 30rem;
}

.lt-bobbin-info-card p {
	margin: 0;
}

.lt-bobbin-photo {
	position: relative;
}

.lt-bobbin-pill-tag {
	position: absolute;
	left: var(--wp--preset--spacing--40);
	bottom: var(--wp--preset--spacing--40);
	margin: 0 !important;
	padding: 0.5rem 1rem;
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.lt-bobbin-pill-tag::before {
	content: "";
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	margin-right: 0.5rem;
	border-radius: var(--wp--custom--radius--circle);
	background-color: var(--wp--preset--color--brand);
	vertical-align: 0.05em;
}

.lt-bobbin-banner {
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
}

.lt-bobbin-banner .lt-bobbin-display {
	color: inherit;
}

/* ---------- Block style: Group "Card" ---------- */

.is-style-lt-bobbin-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--50);
	box-sizing: border-box;
}

.is-layout-grid > .is-style-lt-bobbin-card {
	height: 100%;
}

/* ---------- Block styles: images ---------- */

.wp-block-image.is-style-lt-bobbin-rounded img {
	border-radius: var(--wp--custom--radius--lg);
}

.wp-block-image.is-style-lt-bobbin-circle img {
	border-radius: var(--wp--custom--radius--circle);
	transition: transform 0.25s ease;
}

.wp-block-image.is-style-lt-bobbin-circle a:hover img {
	transform: scale(1.04);
}

.wp-block-image.is-style-lt-bobbin-icon {
	width: 3.25rem;
	height: 3.25rem;
	padding: 0.8rem;
	margin: 0;
	box-sizing: border-box;
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--primary);
}

.wp-block-image.is-style-lt-bobbin-icon img {
	display: block;
	width: 100%;
	height: 100%;
	filter: var(--wp--custom--icon--filter, none);
}

.lt-bobbin-circle-label {
	font-weight: 600;
	margin-top: 0.5rem;
}

.lt-bobbin-circle-label a {
	text-decoration: none;
}

/* Category circles: 5 per row on desktop, a swipeable row on phones. */
@media (max-width: 781px) {
	.wp-block-group.lt-bobbin-circles {
		display: grid !important;
		grid-auto-flow: column;
		grid-template-columns: none !important;
		grid-auto-columns: 38%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.5rem;
	}

	.wp-block-group.lt-bobbin-circles > * {
		scroll-snap-align: start;
	}
}

/* ---------- Block style: List "Checklist" ---------- */

.is-style-lt-bobbin-check {
	list-style: none;
	padding-left: 0;
}

.is-style-lt-bobbin-check li {
	position: relative;
	padding-left: 2rem;
	margin-block: 0.55rem;
}

.is-style-lt-bobbin-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: var(--wp--custom--radius--circle);
	background-color: var(--wp--preset--color--accent);
}

.is-style-lt-bobbin-check li::after {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: calc(0.15em + 0.3rem);
	width: 0.7rem;
	height: 0.7rem;
	background-color: var(--wp--preset--color--ink);
	-webkit-mask: url("../images/icons/check.svg") center / contain no-repeat;
	mask: url("../images/icons/check.svg") center / contain no-repeat;
}

/* ---------- Helpers ---------- */

@media (max-width: 1100px) {
	.wp-block-group.lt-bobbin-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 599px) {
	.wp-block-group.lt-bobbin-grid-4 {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

.lt-bobbin-rows > .wp-block-group {
	padding-block: 0.75rem;
	border-bottom: 1px dashed var(--wp--preset--color--line);
	margin-block-start: 0;
	gap: 1rem;
}

.lt-bobbin-rows > .wp-block-group:last-child {
	border-bottom: 0;
}

.lt-bobbin-rows p {
	margin: 0;
}

.lt-bobbin-rows > .wp-block-group > p:last-child {
	font-weight: 600;
	text-align: right;
}

/* ---------- WooCommerce ---------- */

.wc-block-product-template .wp-block-post-title a {
	text-decoration: none;
}

.wc-block-product-template .wp-block-post-title {
	margin-top: 0.75rem;
	margin-bottom: 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.35;
}

.wc-block-components-product-image img,
.wc-block-components-product-image a {
	border-radius: var(--wp--custom--radius--md);
}

.wc-block-components-product-image {
	background-color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
}

.wp-block-woocommerce-product-button .wp-block-button__link,
.wc-block-components-product-button__button {
	border-radius: var(--wp--custom--radius--pill);
}

.wc-block-components-product-sale-badge {
	border-radius: var(--wp--custom--radius--pill);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wc-block-components-product-price del {
	opacity: 0.6;
	font-weight: 400;
}

.wc-block-components-product-price ins {
	color: var(--wp--preset--color--sale);
	text-decoration: none;
}

/* Best sellers row: swipe sideways on phones. */
@media (max-width: 781px) {
	.lt-bobbin-scroll-row .wc-block-product-template {
		display: grid !important;
		grid-auto-flow: column;
		grid-template-columns: none !important;
		grid-auto-columns: 72%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: var(--wp--preset--spacing--30);
	}

	.lt-bobbin-scroll-row .wc-block-product-template > li {
		scroll-snap-align: start;
	}
}

.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-collection-no-results p,
.lt-bobbin-products > .wp-block-woocommerce-product-collection > p {
	margin: 0;
}

.woocommerce .wc-block-components-notice-banner {
	border-radius: var(--wp--custom--radius--md);
}

.wp-block-woocommerce-product-details .wc-tabs li a {
	text-decoration: none;
}

.lt-bobbin-product-top .wp-block-post-title {
	margin-top: 0;
}

.woocommerce-store-notice,
p.demo_store {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--base) !important;
}

.woocommerce-store-notice a,
p.demo_store a {
	color: var(--wp--preset--color--accent) !important;
}

/* ---------- Details (FAQ) ---------- */

.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2.5rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1.8rem;
	height: 1.8rem;
	line-height: 1.8rem;
	text-align: center;
	border-radius: var(--wp--custom--radius--circle);
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
}

.wp-block-details[open] summary::after {
	content: "\2013";
}

.wp-block-details > :not(summary) {
	color: var(--wp--preset--color--ink-soft);
}

/* ---------- Dark sections ---------- */

.has-primary-background-color .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--base);
}

.has-primary-background-color .lt-bobbin-display,
.has-primary-background-color h1,
.has-primary-background-color h2,
.has-primary-background-color h3 {
	color: inherit;
}

/* ---------- Posts ---------- */

.lt-bobbin-post-card .wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--md);
}

/* ---------- Accessibility ---------- */

:where(a, button, summary, input, select):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-image.is-style-lt-bobbin-circle img {
		transition: none;
	}

	.wp-block-image.is-style-lt-bobbin-circle a:hover img {
		transform: none;
	}
}

/* Dropdown menus: solid panel on desktop. */
.wp-block-navigation:not(.is-menu-open) .wp-block-navigation__submenu-container { background-color: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--ink) !important; border: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent) !important; border-radius: 10px; box-shadow: 0 12px 30px color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent); padding: .4rem 0; min-width: 210px !important; }
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem 1.1rem; font-size: var(--wp--preset--font-size--small); color: inherit; }
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background-color: color-mix(in srgb, var(--wp--preset--color--ink) 6%, transparent); }

/* Mobile menu: right-hand side panel (simple fade-in) with logo, divided list, tap-to-open child items, contact lines and button. */
.wp-block-navigation__responsive-container.is-menu-open { background-color: color-mix(in srgb, var(--wp--preset--color--ink) 45%, transparent) !important; color: var(--wp--preset--color--ink) !important; padding: 0 !important; animation: lt-menu-fade .3s ease-out !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close { position: relative; width: min(86vw, 360px); max-width: none; height: 100%; margin: 0 0 0 auto; background-color: var(--wp--preset--color--base); box-shadow: -8px 0 30px color-mix(in srgb, var(--wp--preset--color--ink) 18%, transparent); overflow-y: auto; animation: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { padding: 1.1rem 1.4rem 2rem; margin: 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { top: 1.25rem; right: 1.1rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 1.75rem !important; gap: 0 !important; font-size: var(--wp--preset--font-size--medium); align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item { display: flex; flex-direction: row !important; flex-wrap: wrap; align-items: center !important; width: 100%; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { flex: 1; padding: .85rem 0; font-weight: 600; color: inherit; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { flex-basis: 100%; display: none !important; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 0 .7rem 1rem !important; gap: 0 !important; font-size: var(--wp--preset--font-size--small); }
.wp-block-navigation__responsive-container.is-menu-open .lt-sub-open > .wp-block-navigation__submenu-container { display: flex !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .45rem 0 !important; color: color-mix(in srgb, var(--wp--preset--color--ink) 78%, transparent); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus { color: var(--wp--preset--color--primary); }
.lt-sub-toggle { display: none; }
.wp-block-navigation__responsive-container.is-menu-open .lt-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -.6rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; transition: transform .2s; }
.wp-block-navigation__responsive-container.is-menu-open .lt-sub-open > .lt-sub-toggle { transform: rotate(90deg); }
.lt-menu-brand, .lt-menu-extra { display: none; }
.is-menu-open .lt-menu-brand { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 3rem 0 0 !important; margin: 0 !important; position: static !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.is-menu-open .lt-menu-brand > * { display: flex; align-items: center; gap: .6rem; margin: 0; }
.is-menu-open .lt-menu-brand .wp-block-site-title { font-size: var(--wp--preset--font-size--large); }
.is-menu-open .lt-menu-brand a { color: inherit; text-decoration: none; }
.is-menu-open .lt-menu-extra { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; font-size: var(--wp--preset--font-size--small); color: color-mix(in srgb, var(--wp--preset--color--ink) 75%, transparent); }
.is-menu-open .lt-menu-extra p { margin: 0; }
.is-menu-open .lt-menu-extra a { color: var(--wp--preset--color--primary); }
.is-menu-open .lt-menu-cta { display: flex !important; margin-top: .75rem; }
.is-menu-open .lt-menu-cta .wp-block-button, .is-menu-open .lt-menu-cta .wp-block-button__link { width: 100%; text-align: center; }
.is-menu-open .lt-menu-cta .wp-block-button__link { color: var(--wp--preset--color--base); }
@keyframes lt-menu-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wp-block-navigation__responsive-container.is-menu-open { animation: none !important; } }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; --navigation-layout-align: flex-start; text-align: left; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; }

/* Sale badge of the product page gallery (WooCommerce's own default is an olive #958e09 that fails contrast). */
.woocommerce span.onsale,
.woocommerce-page span.onsale {
	background: var(--wp--preset--color--sale);
	color: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-weight: 600;
	line-height: 1;
	min-height: 0;
	min-width: 0;
	padding: 0.5em 0.9em;
}

/* ---------- Sewing patterns: signature, hero, formats, envelopes, size and fabric tables, skill levels, sew-along ---------- */

/* Header: menu left, logo centre, size chart + tools right (three equal columns on desktop). */
.wp-block-group.lt-bobbin-header-row {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.lt-bobbin-header-row > .wp-block-navigation {
	justify-self: start;
}

.lt-bobbin-header-row > .lt-bobbin-brand {
	justify-self: center;
}

.lt-bobbin-header-row > .lt-bobbin-header-tools {
	justify-self: end;
}

.lt-bobbin-header .wp-block-site-title {
	text-transform: uppercase;
}

.lt-bobbin-size-link {
	margin: 0 0.4rem 0 0;
	font-family: var(--wp--custom--kicker--font);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.lt-bobbin-size-link a {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border: var(--wp--custom--cut--dash) var(--wp--preset--color--ink-soft);
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.lt-bobbin-size-link a:hover {
	border-style: solid;
	border-color: var(--wp--preset--color--brand);
}

@media (max-width: 1023px) {
	.lt-bobbin-size-link {
		display: none;
	}
}

/* Signature: soft bands carry a dashed cutting line with notch triangles at both ends. */
.lt-bobbin-cut {
	position: relative;
}

.lt-bobbin-cut::before {
	content: "";
	position: absolute;
	top: var(--wp--preset--spacing--30);
	left: var(--wp--preset--spacing--40);
	right: var(--wp--preset--spacing--40);
	border-top: var(--wp--custom--cut--dash) color-mix(in srgb, var(--wp--preset--color--ink-soft) 55%, transparent);
	pointer-events: none;
}

.lt-bobbin-cut::after {
	content: "";
	position: absolute;
	top: 0;
	left: var(--wp--preset--spacing--40);
	right: var(--wp--preset--spacing--40);
	height: var(--wp--preset--spacing--30);
	background:
		conic-gradient(from -45deg at 50% 100%, var(--wp--preset--color--brand) 90deg, transparent 0) 12% 0 / 14px 100% no-repeat,
		conic-gradient(from -45deg at 50% 100%, var(--wp--preset--color--brand) 90deg, transparent 0) 88% 0 / 14px 100% no-repeat;
	pointer-events: none;
}

/* Group "Pattern piece card": dashed cutting line, notch triangles on the top and bottom edges. */
.is-style-lt-bobbin-card {
	position: relative;
	border: var(--wp--custom--cut--dash) color-mix(in srgb, var(--wp--preset--color--ink-soft) 50%, transparent);
	border-radius: var(--wp--custom--radius--md);
}

.is-style-lt-bobbin-card::before,
.is-style-lt-bobbin-card::after {
	content: "";
	position: absolute;
	width: var(--wp--custom--cut--notch);
	height: calc(var(--wp--custom--cut--notch) * 0.8);
	background-color: var(--wp--preset--color--brand);
	pointer-events: none;
}

.is-style-lt-bobbin-card::before {
	top: -1px;
	left: var(--wp--preset--spacing--50);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.is-style-lt-bobbin-card::after {
	bottom: -1px;
	right: var(--wp--preset--spacing--50);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Image "Notched frame": a dashed cutting line just outside the photo. */
.wp-block-image.is-style-lt-bobbin-rounded img {
	border-radius: var(--wp--custom--radius--md);
	outline: var(--wp--custom--cut--dash) color-mix(in srgb, var(--wp--preset--color--ink-soft) 55%, transparent);
	outline-offset: 6px;
}

/* Image "Category swatch": square swatch with a dashed edge. */
.wp-block-image.is-style-lt-bobbin-circle img {
	border-radius: var(--wp--custom--radius--circle);
	outline: var(--wp--custom--cut--dash) color-mix(in srgb, var(--wp--preset--color--ink-soft) 55%, transparent);
	outline-offset: 5px;
}

/* Image "Line drawing": a garment flat on its own tracing-paper card. */
.wp-block-image.is-style-lt-bobbin-drawing {
	margin: 0;
}

.wp-block-image.is-style-lt-bobbin-drawing img {
	display: block;
	width: 100%;
	height: auto;
	border: var(--wp--custom--cut--dash) var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--sm);
}

/* Kicker: slab caps with a short tape-measure rule. */
.is-style-lt-bobbin-kicker {
	font-weight: 700;
}

.is-style-lt-bobbin-kicker::before {
	content: "";
	display: inline-block;
	width: 1.6rem;
	height: 0;
	margin-right: 0.6rem;
	border-top: 2px dashed currentColor;
	vertical-align: 0.3em;
}

.has-text-align-center.is-style-lt-bobbin-kicker::after {
	content: "";
	display: inline-block;
	width: 1.6rem;
	height: 0;
	margin-left: 0.6rem;
	border-top: 2px dashed currentColor;
	vertical-align: 0.3em;
}

.lt-bobbin-display {
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Split hero: flat lay on the left, line drawing on the right, a cutting line between them. */
.lt-bobbin-hero-split {
	position: relative;
}

.lt-bobbin-hero-drawing .wp-block-image img {
	object-fit: contain !important;
	background-color: var(--wp--preset--color--base);
	border: var(--wp--custom--cut--dash) var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--20);
}

.lt-bobbin-hero-split > .lt-bobbin-photo .wp-block-image {
	margin: 0;
}

.lt-bobbin-pill-tag {
	font-family: var(--wp--custom--kicker--font);
	font-weight: 700;
	letter-spacing: 0.04em;
}

.lt-bobbin-pill-tag::before {
	width: 0;
	height: 0;
	border-radius: 0;
	background: none;
	border-left: 0.35rem solid transparent;
	border-right: 0.35rem solid transparent;
	border-top: 0.55rem solid var(--wp--preset--color--brand);
}

/* Format and file chips. */
.wp-block-group.lt-bobbin-chips {
	gap: 0.5rem;
}

.lt-bobbin-chip {
	margin: 0;
	padding: 0.3rem 0.75rem;
	border: var(--wp--custom--cut--dash) color-mix(in srgb, var(--wp--preset--color--ink-soft) 60%, transparent);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--base);
	font-family: var(--wp--custom--kicker--font);
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.4;
}

.lt-bobbin-chip a {
	color: inherit;
	text-decoration: none;
}

.lt-bobbin-chip-lg {
	background-color: var(--wp--preset--color--surface);
}

.lt-bobbin-format-card .wp-block-buttons {
	margin-top: auto;
}

.is-layout-grid > .lt-bobbin-format-card {
	display: flex;
	flex-direction: column;
}

/* Pattern-envelope cards: number band, tall photo with the line drawing laid over its corner. */
.lt-bobbin-envelope {
	height: 100%;
	padding: var(--wp--preset--spacing--30);
	box-sizing: border-box;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	display: flex;
	flex-direction: column;
}

.lt-bobbin-envelope > * {
	margin-block: 0;
}

.lt-bobbin-envelope-no {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

.lt-bobbin-envelope-art {
	position: relative;
}

.lt-bobbin-envelope-art > .wp-block-image:first-child {
	margin: 0;
}

.lt-bobbin-envelope-art > .wp-block-image:first-child img {
	border-radius: var(--wp--custom--radius--sm);
}

.lt-bobbin-envelope-art > .is-style-lt-bobbin-drawing {
	position: absolute;
	right: 0.6rem;
	bottom: 0.6rem;
	width: 38%;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--wp--preset--color--ink) 18%, transparent);
	transform: rotate(-3deg);
}

.lt-bobbin-envelope h3 a {
	text-decoration: none;
}

.lt-bobbin-envelope > .wp-block-group:last-child {
	margin-top: auto;
}

.lt-bobbin-price {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
}

/* Tables: size chart, file list, licences, fabric amounts. Header row on primary, zebra rows, sideways swipe on phones. */
.lt-bobbin-compare-wrap {
	max-width: 100%;
}

.wp-block-table.lt-bobbin-compare {
	margin: 0;
	overflow-x: auto;
}

.wp-block-table.lt-bobbin-compare table {
	min-width: 30rem;
	border-collapse: separate;
	border-spacing: 0;
	border: var(--wp--custom--cut--dash) color-mix(in srgb, var(--wp--preset--color--ink-soft) 55%, transparent);
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
	background-color: var(--wp--preset--color--base);
}

.wp-block-table.lt-bobbin-compare thead {
	border: 0;
}

.wp-block-table.lt-bobbin-compare th,
.wp-block-table.lt-bobbin-compare td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.75rem 1rem;
	text-align: left;
	vertical-align: top;
}

.wp-block-table.lt-bobbin-compare thead th {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	letter-spacing: 0.03em;
}

.wp-block-table.lt-bobbin-compare tbody tr:nth-child(even) td {
	background-color: var(--wp--preset--color--surface);
}

.wp-block-table.lt-bobbin-compare tbody tr:last-child td {
	border-bottom: 0;
}

.wp-block-table.lt-bobbin-compare td:not(:first-child) {
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-table.lt-bobbin-compare figcaption {
	margin-top: var(--wp--preset--spacing--30);
	text-align: left;
}

.wp-block-table.lt-bobbin-licence-table figcaption {
	text-align: center;
}

.wp-block-table.lt-bobbin-size-table table {
	min-width: 26rem;
}

.wp-block-table.lt-bobbin-size-table td:first-child,
.wp-block-table.lt-bobbin-fabric-table td:first-child {
	width: 5rem;
}

/* Numbered lists (how to measure). */
.lt-bobbin-steps {
	padding-left: 1.3rem;
}

.lt-bobbin-steps li {
	margin-block: 0.4rem;
}

.lt-bobbin-steps li::marker {
	color: var(--wp--preset--color--brand);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

/* Skill level filter: a three-step meter on every card. */
.wp-block-group.lt-bobbin-skill-legend {
	margin-top: var(--wp--preset--spacing--40);
}

.lt-bobbin-skill-meter {
	margin: 0;
	color: var(--wp--preset--color--ink-soft);
	font-family: var(--wp--custom--kicker--font);
	font-weight: 700;
	letter-spacing: var(--wp--custom--kicker--letter-spacing);
	text-transform: uppercase;
}

.lt-bobbin-skill-meter::before {
	content: "";
	display: block;
	width: 6.5rem;
	height: 0.55rem;
	margin-bottom: 0.6rem;
	border-radius: var(--wp--custom--radius--sm);
	background:
		linear-gradient(90deg, var(--wp--preset--color--accent) 0 30%, transparent 30% 35%, var(--wp--preset--color--line) 35% 65%, transparent 65% 70%, var(--wp--preset--color--line) 70% 100%);
}

.lt-bobbin-skill-2::before {
	background:
		linear-gradient(90deg, var(--wp--preset--color--accent) 0 30%, transparent 30% 35%, var(--wp--preset--color--accent) 35% 65%, transparent 65% 70%, var(--wp--preset--color--line) 70% 100%);
}

.lt-bobbin-skill-3::before {
	background:
		linear-gradient(90deg, var(--wp--preset--color--accent) 0 30%, transparent 30% 35%, var(--wp--preset--color--accent) 35% 65%, transparent 65% 70%, var(--wp--preset--color--accent) 70% 100%);
}

.lt-bobbin-skill-card .is-style-lt-bobbin-check {
	margin-top: 0;
}

/* Sew-along preview: still with a play badge, chapter stills, chapter list. */
.lt-bobbin-play {
	position: absolute;
	left: var(--wp--preset--spacing--40);
	bottom: var(--wp--preset--spacing--40);
	margin: 0 !important;
	padding: 0.55rem 1rem 0.55rem 0.8rem;
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--custom--kicker--font);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
}

.lt-bobbin-play::before {
	content: "";
	display: inline-block;
	margin-right: 0.6rem;
	border-top: 0.4rem solid transparent;
	border-bottom: 0.4rem solid transparent;
	border-left: 0.65rem solid var(--wp--preset--color--accent);
	vertical-align: -0.05em;
}

.lt-bobbin-sewalong-video .wp-block-image,
.lt-bobbin-thumb .wp-block-image {
	margin: 0;
}

.lt-bobbin-thumb img {
	border-radius: var(--wp--custom--radius--sm);
}

.lt-bobbin-thumb p {
	margin: 0;
	font-family: var(--wp--custom--kicker--font);
	font-weight: 700;
}

.lt-bobbin-tracks > .wp-block-group {
	align-items: center;
	gap: 1rem;
	margin-block-start: 0;
	padding-block: 0.6rem;
	border-bottom: 1px dashed var(--wp--preset--color--line);
}

.lt-bobbin-tracks > .wp-block-group:last-child {
	border-bottom: 0;
}

.lt-bobbin-tracks p {
	margin: 0;
}

.lt-bobbin-track-num {
	flex: none;
	width: 2rem;
	color: var(--wp--preset--color--brand);
	font-family: var(--wp--custom--kicker--font);
	font-weight: 700;
}

.lt-bobbin-track > p:nth-child(2) {
	flex: 1;
	min-width: 0;
}

.lt-bobbin-track-meta {
	color: var(--wp--preset--color--ink-soft);
	font-family: var(--wp--custom--kicker--font);
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
}

/* Instant download timeline. */
.lt-bobbin-timeline-step {
	padding-top: var(--wp--preset--spacing--30);
	border-top: var(--wp--custom--cut--dash) color-mix(in srgb, var(--wp--preset--color--ink-soft) 55%, transparent);
}

.lt-bobbin-timeline-step p,
.lt-bobbin-timeline-step h3 {
	margin: 0;
}

.lt-bobbin-stamp {
	color: var(--wp--preset--color--brand);
	font-family: var(--wp--custom--kicker--font);
	font-weight: 700;
	letter-spacing: var(--wp--custom--kicker--letter-spacing);
	text-transform: uppercase;
}

/* Footer: a cutting line across the top of the indigo band. */
.lt-bobbin-footer {
	position: relative;
}

.lt-bobbin-footer::before {
	content: "";
	position: absolute;
	top: var(--wp--preset--spacing--30);
	left: var(--wp--preset--spacing--40);
	right: var(--wp--preset--spacing--40);
	border-top: var(--wp--custom--cut--dash) color-mix(in srgb, var(--wp--preset--color--base) 45%, transparent);
}

.lt-bobbin-footer .is-style-lt-bobbin-kicker.has-accent-color {
	color: var(--wp--preset--color--accent);
}

/* Product cards in collections: slab titles, portrait images. */
.wc-block-product-template .wp-block-post-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

.wc-block-components-product-image {
	border: 1px solid var(--wp--preset--color--line);
}

.wp-block-details summary::after {
	border-radius: var(--wp--custom--radius--sm);
}


/* lt-fix:image-fill. Cropped images (aspect ratio set) always fill their box: imported demo photos are the 1024px
   "large" size, which would otherwise sit left-aligned in wider groups. */
.wp-block-image img[style*="aspect-ratio"],
.wp-block-post-featured-image img[style*="aspect-ratio"] {
	width: 100%;
}

/* lt-fix:nav-tablet. Between 600px and 1023px the inline header menu would wrap onto a second line: keep the menu button
   (core shows it only below 600px) up to 1023px. The three-part header (menu, centred logo, tools) needs the room. */
@media (min-width: 600px) and (max-width: 1023px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
/* /lt-fix:nav-tablet */

/* WooCommerce's closed mini-cart drawer sits just off the right edge and can widen the page on phones.
   clip (unlike hidden) keeps position: sticky working. */
html,
body {
	overflow-x: clip;
}
