/**
 * Lapis / gemstone category sections — isolated .lk-cat-* (+ .lk-cat-rule) only.
 * Isolated .lk-cat-* only — never restyle the Woo product loop or Guides block.
 * v6: A/B locked (centered equal-height subnav + champagne rule);
 *     C asymmetric editorial STONE (no image); D chapter-catalog Journal.
 */

:root {
	--lk-cat-cream: #f7f3ec;
	--lk-cat-cream-deep: #efe8dc;
	--lk-cat-ivory: #fbf9f4;
	--lk-cat-champagne: #c6ad8a;
	--lk-cat-champagne-deep: #b2976f;
	--lk-cat-ink: #1a1a1a;
	--lk-cat-ink-soft: #4a4640;
	--lk-cat-lapis: #1b3a6b;
	--lk-cat-muted: #8a8378;
	--lk-cat-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
	--lk-cat-sans: Jost, system-ui, sans-serif;
	--lk-cat-fullwidth: 1920px;
	--lk-cat-gutter: 50px;
	--lk-cat-card-w: 148px;
	--lk-cat-media-radius: 12px;
}

/* Hide theme header subcat rail when our SEO <nav> is present (avoid duplicate). */
body.lk-cat-archive:has(.lk-cat-subnav) .c-page-header__sub-cat {
	display: none !important;
}

/* ========== A. SUBNAV — centered + equal height ========== */
.lk-cat-subnav {
	padding: 28px 0 28px;
	background: transparent;
}

.lk-cat-subnav__inner {
	width: 100%;
	max-width: var(--lk-cat-fullwidth);
	margin: 0 auto;
	padding-left: var(--lk-cat-gutter);
	padding-right: var(--lk-cat-gutter);
	box-sizing: border-box;
}

.lk-cat-subnav__meta {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.lk-cat-subnav__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--lk-cat-sans);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--lk-cat-muted);
}

.lk-cat-subnav__back:hover,
.lk-cat-subnav__back:focus-visible {
	color: var(--lk-cat-ink);
}

.lk-cat-subnav__hint {
	margin: 0;
	font-family: var(--lk-cat-sans);
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--lk-cat-muted);
	font-weight: 400;
}

.lk-cat-subnav__rail {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 16px;
	flex-wrap: nowrap;
}

.lk-cat-subnav__item {
	flex: 0 0 var(--lk-cat-card-w);
	width: var(--lk-cat-card-w);
	display: flex;
}

.lk-cat-subnav__card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 10px 8px 14px;
	border-radius: 14px;
	background: var(--lk-cat-ivory);
	box-shadow: inset 0 0 0 1px rgba(198, 173, 138, 0.35);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, background 0.2s ease;
}

.lk-cat-subnav__card:hover,
.lk-cat-subnav__card:focus-visible {
	box-shadow: inset 0 0 0 1px rgba(198, 173, 138, 0.75);
	background: linear-gradient(180deg, #fffdf8 0%, var(--lk-cat-cream) 100%);
}

.lk-cat-subnav__card.is-active {
	background: linear-gradient(180deg, #fffdf8 0%, #f3ebe0 100%);
	box-shadow: inset 0 0 0 1px var(--lk-cat-champagne);
}

.lk-cat-subnav__media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
	border-radius: var(--lk-cat-media-radius);
	overflow: hidden;
	background: var(--lk-cat-cream);
	box-shadow: 0 10px 28px rgba(26, 26, 26, 0.06);
}

.lk-cat-subnav__media img,
.lk-cat-subnav__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lk-cat-subnav__media--all {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: linear-gradient(160deg, #eef3f8 0%, #f7f3ec 100%);
}

.lk-cat-subnav__all-mark {
	font-family: var(--lk-cat-serif);
	font-size: 24px;
	color: var(--lk-cat-lapis);
	letter-spacing: 0.08em;
	font-weight: 500;
}

.lk-cat-subnav__all-sub {
	font-family: var(--lk-cat-sans);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lk-cat-muted);
}

.lk-cat-subnav__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		-45deg,
		#f0e9df,
		#f0e9df 6px,
		#f7f3ec 6px,
		#f7f3ec 12px
	);
}

/* Equal label height — reserve 2 lines so Ring matches Bracelets */
.lk-cat-subnav__label {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin-top: auto;
	min-height: calc(1.35em * 2 + 10px);
	font-family: var(--lk-cat-serif);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--lk-cat-ink);
	text-align: center;
	line-height: 1.35;
	position: relative;
	padding-bottom: 10px;
}

.lk-cat-subnav__card.is-active .lk-cat-subnav__label::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 24px;
	height: 1px;
	background: var(--lk-cat-champagne);
	transform: translateX(-50%);
}

/* ========== B. DIVIDER between subnav and Showing ========== */
.lk-cat-rule {
	width: 100%;
	max-width: var(--lk-cat-fullwidth);
	margin: 0 auto;
	padding: 0 var(--lk-cat-gutter);
	box-sizing: border-box;
}

.lk-cat-rule__line {
	height: 1px;
	border: 0;
	background: rgba(198, 173, 138, 0.48);
}

/* ========== C. THE STONE v6 — asymmetric editorial plate (no image) ========== */
.lk-cat-stone {
	background: var(--lk-cat-cream);
	padding: 64px 0 60px;
	border-top: 1px solid rgba(198, 173, 138, 0.28);
	border-bottom: 1px solid rgba(198, 173, 138, 0.28);
}

.lk-cat-stone__inner {
	width: 100%;
	max-width: var(--lk-cat-fullwidth);
	margin: 0 auto;
	padding-left: var(--lk-cat-gutter);
	padding-right: var(--lk-cat-gutter);
	box-sizing: border-box;
}

.lk-cat-stone__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
	gap: clamp(36px, 5vw, 80px);
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
}

.lk-cat-stone__display {
	padding-top: 6px;
}

.lk-cat-stone__eyebrow {
	margin: 0 0 22px;
	font-family: var(--lk-cat-sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: var(--lk-cat-lapis);
}

.lk-cat-stone__title {
	margin: 0;
	font-family: var(--lk-cat-serif);
	font-weight: 400;
	font-size: clamp(42px, 5.2vw, 64px);
	letter-spacing: 0.01em;
	line-height: 1.05;
	color: var(--lk-cat-ink);
}

.lk-cat-stone__ornament {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 26px 0 22px;
}

.lk-cat-stone__ornament::before,
.lk-cat-stone__ornament::after {
	content: "";
	height: 1px;
	width: 28px;
	background: rgba(198, 173, 138, 0.7);
}

.lk-cat-stone__ornament-diamond {
	width: 5px;
	height: 5px;
	background: var(--lk-cat-champagne);
	transform: rotate(45deg);
	flex: 0 0 auto;
}

.lk-cat-stone__pull {
	margin: 0;
	max-width: 18ch;
	font-family: var(--lk-cat-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.45;
	letter-spacing: 0.01em;
	color: var(--lk-cat-ink-soft);
}

.lk-cat-stone__body {
	padding-top: 10px;
	font-family: var(--lk-cat-sans);
	font-size: 14.5px;
	font-weight: 300;
	color: var(--lk-cat-ink-soft);
	line-height: 1.85;
	letter-spacing: 0.01em;
	max-width: 54ch;
}

.lk-cat-stone__body p {
	margin: 0 0 1.35em;
}

.lk-cat-stone__body p:last-child {
	margin-bottom: 0;
}

.lk-cat-stone__body > :first-child {
	margin-top: 0;
}

.lk-cat-stone__body > :last-child {
	margin-bottom: 0;
}

/* ========== D. JOURNAL v6 — Assouline-style chapter catalog ========== */
.lk-cat-journal {
	padding: 72px 0 88px;
	background: var(--lk-cat-cream);
	border-top: 1px solid rgba(198, 173, 138, 0.28);
}

.lk-cat-journal__inner {
	width: 100%;
	max-width: var(--lk-cat-fullwidth);
	margin: 0 auto;
	padding-left: var(--lk-cat-gutter);
	padding-right: var(--lk-cat-gutter);
	box-sizing: border-box;
}

.lk-cat-journal__frame {
	max-width: 980px;
	margin: 0 auto;
}

.lk-cat-journal__head {
	margin-bottom: 48px;
	max-width: 36em;
}

.lk-cat-journal__eyebrow {
	margin: 0 0 18px;
	font-family: var(--lk-cat-sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: var(--lk-cat-lapis);
}

.lk-cat-journal__title {
	margin: 0 0 22px;
	font-family: var(--lk-cat-serif);
	font-weight: 400;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.18;
	letter-spacing: 0.01em;
	color: var(--lk-cat-ink);
}

.lk-cat-journal__lede {
	margin: 0;
	font-family: var(--lk-cat-sans);
	font-size: 14.5px;
	font-weight: 300;
	color: var(--lk-cat-ink-soft);
	line-height: 1.85;
	letter-spacing: 0.01em;
	max-width: 58ch;
}

.lk-cat-journal__lede > :last-child {
	margin-bottom: 0;
}

.lk-cat-journal__chapters-rule {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 8px;
}

.lk-cat-journal__chapters-rule span {
	width: 5px;
	height: 5px;
	background: var(--lk-cat-champagne);
	transform: rotate(45deg);
}

.lk-cat-journal__chapters-rule::before,
.lk-cat-journal__chapters-rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(198, 173, 138, 0.38);
}

.lk-cat-journal__acc {
	margin-top: 4px;
}

.lk-cat-journal__item {
	border-bottom: 1px solid rgba(198, 173, 138, 0.22);
}

.lk-cat-journal__item:first-of-type {
	border-top: 1px solid rgba(198, 173, 138, 0.22);
}

.lk-cat-journal__summary {
	list-style: none;
	cursor: pointer;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 12px 20px;
	align-items: baseline;
	padding: 28px 2px 28px 0;
	transition: background 0.25s ease;
}

.lk-cat-journal__summary::-webkit-details-marker {
	display: none;
}

.lk-cat-journal__summary:hover .lk-cat-journal__summary-label {
	color: var(--lk-cat-champagne-deep);
	box-shadow: inset 0 -1px 0 rgba(198, 173, 138, 0.55);
}

.lk-cat-journal__roman {
	font-family: var(--lk-cat-serif);
	font-size: 15px;
	font-weight: 500;
	font-style: italic;
	letter-spacing: 0.08em;
	color: rgba(198, 173, 138, 0.95);
	transition: color 0.2s;
}

.lk-cat-journal__summary-label {
	font-family: var(--lk-cat-serif);
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.28;
	color: var(--lk-cat-ink);
	transition: color 0.25s ease;
	padding-bottom: 2px;
	box-shadow: inset 0 -1px 0 transparent;
}

.lk-cat-journal__cue {
	font-family: var(--lk-cat-sans);
	font-size: 9px;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(138, 131, 120, 0.85);
	transition: color 0.2s, opacity 0.2s;
	align-self: center;
}

.lk-cat-journal__cue::before {
	content: "Open";
}

.lk-cat-journal__item[open] .lk-cat-journal__cue::before {
	content: "Close";
}

.lk-cat-journal__item[open] .lk-cat-journal__cue {
	color: var(--lk-cat-champagne-deep);
}

.lk-cat-journal__item[open] .lk-cat-journal__roman {
	color: var(--lk-cat-lapis);
}

.lk-cat-journal__item[open] .lk-cat-journal__summary-label {
	box-shadow: inset 0 -1px 0 rgba(198, 173, 138, 0.4);
}

.lk-cat-journal__item[open] .lk-cat-journal__summary {
	padding-bottom: 16px;
}

.lk-cat-journal__panel {
	margin: 0 0 0 22px;
	padding: 4px 0 32px 62px;
	max-width: calc(62px + 58ch);
	font-family: var(--lk-cat-sans);
	font-size: 14.5px;
	font-weight: 300;
	color: var(--lk-cat-ink-soft);
	line-height: 1.85;
	border-left: 1px solid rgba(198, 173, 138, 0.45);
}

.lk-cat-journal__panel-heading {
	margin: 0 0 0.85em;
	font-family: var(--lk-cat-serif);
	font-weight: 500;
	font-size: 17px;
	color: var(--lk-cat-ink);
	letter-spacing: 0.01em;
}

.lk-cat-journal__panel h3 {
	margin: 1.1em 0 0.45em;
	font-family: var(--lk-cat-serif);
	font-size: 16px;
	font-weight: 500;
	color: var(--lk-cat-ink);
}

.lk-cat-journal__panel h4 {
	margin: 1.25em 0 0.5em;
	font-family: var(--lk-cat-serif);
	font-weight: 500;
	font-size: 15px;
	color: var(--lk-cat-ink);
}

.lk-cat-journal__panel p {
	margin: 0 0 1em;
}

.lk-cat-journal__panel p:last-child {
	margin-bottom: 0;
}

.lk-cat-journal__panel > :first-child {
	margin-top: 0;
}

.lk-cat-journal__panel img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}


/*
 * Align .lk-cat-* rails with seamless product/Guides grids:
 * Goldish content column is padded 50px / 20px; catalog cards break out.
 * Our sections must break out the same way, then use a single gutter.
 */
body.tax-product_cat .lk-cat-subnav,
body.tax-product_cat .lk-cat-rule,
body.tax-product_cat .lk-cat-stone,
body.tax-product_cat .lk-cat-journal {
	box-sizing: border-box;
	width: calc(100% + 100px);
	max-width: none;
	margin-left: -50px;
	margin-right: -50px;
}

@media (width < 1190px) {
	body.tax-product_cat .lk-cat-subnav,
	body.tax-product_cat .lk-cat-rule,
	body.tax-product_cat .lk-cat-stone,
	body.tax-product_cat .lk-cat-journal {
		width: calc(100% + 40px);
		margin-left: -20px;
		margin-right: -20px;
	}
}

/* ========== Breakpoints (gutters 50→28→20→16) ========== */
@media (max-width: 1189px) {
	:root {
		--lk-cat-gutter: 28px;
		--lk-cat-card-w: 136px;
	}
}

@media (max-width: 900px) {
	:root {
		/* After bleed, match product-card side rhythm (~12–16px), not theme+extra. */
		--lk-cat-gutter: 16px;
		--lk-cat-card-w: 38vw;
	}

	.lk-cat-subnav__rail {
		justify-content: flex-start;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
		margin-right: calc(var(--lk-cat-gutter) * -1);
		padding-right: var(--lk-cat-gutter);
		-webkit-overflow-scrolling: touch;
	}

	.lk-cat-subnav__item {
		flex: 0 0 min(148px, 38vw);
		width: min(148px, 38vw);
		min-width: 118px;
		scroll-snap-align: center;
	}

	.lk-cat-subnav__meta {
		justify-content: flex-start;
	}

	.lk-cat-stone {
		padding: 48px 0;
	}

	.lk-cat-stone__grid {
		grid-template-columns: 1fr;
		gap: 28px;
		max-width: none;
	}

	.lk-cat-stone__pull {
		max-width: none;
	}

	.lk-cat-stone__body {
		max-width: none;
	}

	.lk-cat-journal {
		padding: 52px 0 64px;
	}

	.lk-cat-journal__frame {
		max-width: none;
	}

	.lk-cat-journal__head {
		margin-bottom: 36px;
		max-width: none;
	}

	.lk-cat-journal__lede {
		max-width: none;
	}

	.lk-cat-journal__summary {
		grid-template-columns: 44px minmax(0, 1fr) auto;
		gap: 8px 12px;
		padding: 22px 0;
	}

	.lk-cat-journal__panel {
		margin-left: 0;
		padding: 0 0 24px 20px;
		max-width: none;
	}
}

@media (max-width: 640px) {
	:root {
		--lk-cat-gutter: 12px;
	}
}

/* ==========================================================================
 * 2026-11-13 fixes
 * 1) Subnav + rule sit directly in main.l-inner, which has no side padding,
 *    so the -20px/-50px bleed above pushed them off-screen ("SHOP THE FORM"
 *    clipped on mobile). Keep them inside the page and use the same side
 *    gutter as the breadcrumb and product grid (50px desktop, 20px below 1190px).
 * 2) Category description block: heading matches other section headings
 *    (28px mobile, 38px desktop) so it never outranks the page H1; body text
 *    is regular weight and slightly larger for readability.
 * ========================================================================== */
body.tax-product_cat .lk-cat-subnav,
body.tax-product_cat .lk-cat-rule {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 1189px) {
	:root {
		--lk-cat-gutter: 20px;
	}
}

.lk-cat-stone__title {
	font-size: clamp(28px, 2.8vw, 38px);
	line-height: 1.2;
}

.lk-cat-stone__eyebrow {
	margin-bottom: 16px;
}

.lk-cat-stone__ornament {
	margin: 20px 0 18px;
}

.lk-cat-stone__body {
	font-size: 15.5px;
	font-weight: 400;
	line-height: 1.8;
}

@media (max-width: 900px) {
	.lk-cat-stone__grid {
		gap: 20px;
	}
}

/* 2026-11-13: on narrow screens the card rail bled to the right edge but was
 * clipped 20px from the left edge. Bleed both sides; the first card still
 * starts in line with the "Shop the form" label when the rail is at rest. */
@media (max-width: 900px) {
	.lk-cat-subnav__rail {
		margin-left: calc(var(--lk-cat-gutter) * -1);
		padding-left: var(--lk-cat-gutter);
		scroll-padding-inline: var(--lk-cat-gutter);
	}
}
