/**
 * ==========================================================
 * CHACHA HOME — CATEGORY EDITORIAL SEO CONTENT V1.0
 * DEV-06 / Patch-06A — Desktop Archive Alignment Fix
 * ==========================================================
 *
 * Canonical presentation rules for:
 * - Archive-aligned editorial reading column
 * - Native editorial disclosure
 * - End-of-content collapse control
 * - Native FAQ accordions
 */

body.tax-product_cat .chacha-category-editorial {
	width: 100%;
	margin: 72px 0 0;
	padding: 0;
	box-sizing: border-box;
}

/**
 * Desktop alignment follows the same archive/content axis as the toolbar
 * and product grid. The divider spans the available archive width instead
 * of creating a second centered shell inside that container.
 */
body.tax-product_cat .chacha-category-editorial__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 56px 0 12px;
	border-top: 1px solid var(--chacha-subtle, #D7CEC4);
	box-sizing: border-box;
}

/**
 * Keep long-form copy readable, but anchor it to the product-grid left axis.
 * Title, intro, body, disclosure controls and FAQ therefore share one exact
 * starting line without stretching prose across the full catalogue width.
 */
body.tax-product_cat .chacha-category-editorial__reading-column {
	width: min(100%, 880px);
	margin: 0 auto 0 0;
}

body.tax-product_cat .chacha-category-editorial__header {
	width: 100%;
	margin: 0 0 24px;
}

body.tax-product_cat .chacha-category-editorial__title {
	margin: 0;
	font-family: var(--chacha-font-heading, "Cormorant Garamond", serif);
	font-size: clamp(34px, 3.2vw, 46px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.018em;
	color: var(--chacha-text-strongest, #201A17);
}

body.tax-product_cat .chacha-category-editorial__prose {
	width: 100%;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.9;
	color: var(--chacha-text-medium, #6A5F58);
}

body.tax-product_cat .chacha-category-editorial__intro {
	font-size: 15px;
	color: var(--chacha-text-strong, #3B322D);
}

/**
 * ==========================================================
 * EDITORIAL DISCLOSURE
 * ==========================================================
 */
body.tax-product_cat .chacha-category-editorial__details {
	width: 100%;
	margin: 0;
	padding: 0;
}

body.tax-product_cat .chacha-category-editorial__toggle,
body.tax-product_cat .chacha-category-editorial__collapse-end {
	align-items: center;
	gap: 10px;
	min-height: 36px;
	padding: 0 0 5px;
	border: 0;
	border-bottom: 1px solid rgba(176, 141, 87, 0.78);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--chacha-text-strongest, #201A17);
	cursor: pointer;
	transition:
		color 160ms ease,
		border-color 160ms ease;
}

body.tax-product_cat .chacha-category-editorial__toggle {
	display: inline-flex;
	margin: 24px 0 0;
	list-style: none;
}

body.tax-product_cat .chacha-category-editorial__toggle::-webkit-details-marker,
body.tax-product_cat .chacha-category-editorial__faq-summary::-webkit-details-marker {
	display: none;
}

body.tax-product_cat .chacha-category-editorial__toggle::marker,
body.tax-product_cat .chacha-category-editorial__faq-summary::marker {
	content: "";
}

body.tax-product_cat .chacha-category-editorial__toggle:hover,
body.tax-product_cat .chacha-category-editorial__collapse-end:hover {
	color: var(--chacha-accent-dark, #8F6F3F);
	border-bottom-color: var(--chacha-accent-dark, #8F6F3F);
}

body.tax-product_cat .chacha-category-editorial__toggle:focus-visible,
body.tax-product_cat .chacha-category-editorial__collapse-end:focus-visible,
body.tax-product_cat .chacha-category-editorial__faq-summary:focus-visible {
	outline: 2px solid var(--chacha-accent, #B08D57);
	outline-offset: 5px;
}

body.tax-product_cat .chacha-category-editorial__toggle-label--expanded {
	display: none;
}

body.tax-product_cat .chacha-category-editorial__details[open]
.chacha-category-editorial__toggle-label--collapsed {
	display: none;
}

body.tax-product_cat .chacha-category-editorial__details[open]
.chacha-category-editorial__toggle-label--expanded {
	display: inline;
}

body.tax-product_cat .chacha-category-editorial__toggle-icon {
	position: relative;
	width: 11px;
	height: 11px;
	flex: 0 0 11px;
}

body.tax-product_cat .chacha-category-editorial__toggle-icon::before,
body.tax-product_cat .chacha-category-editorial__toggle-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 1px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 160ms ease;
}

body.tax-product_cat .chacha-category-editorial__toggle-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

body.tax-product_cat .chacha-category-editorial__details[open]
.chacha-category-editorial__toggle-icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

body.tax-product_cat .chacha-category-editorial__body {
	margin-top: 30px;
	padding-top: 28px;
	border-top: 1px solid rgba(215, 206, 196, 0.72);
}

/**
 * JS-enhanced lower collapse action. Hidden attribute is the no-JS guard.
 */
body.tax-product_cat .chacha-category-editorial__collapse-end {
	display: inline-flex;
	margin: 26px 0 0;
}

body.tax-product_cat .chacha-category-editorial__collapse-end[hidden] {
	display: none !important;
}

body.tax-product_cat .chacha-category-editorial__prose > :first-child {
	margin-top: 0;
}

body.tax-product_cat .chacha-category-editorial__prose > :last-child {
	margin-bottom: 0;
}

body.tax-product_cat .chacha-category-editorial__prose p {
	margin: 0 0 16px;
}

body.tax-product_cat .chacha-category-editorial__prose h3 {
	margin: 34px 0 12px;
	font-family: var(--chacha-font-heading, "Cormorant Garamond", serif);
	font-size: clamp(26px, 2.3vw, 32px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.012em;
	color: var(--chacha-text-strongest, #201A17);
}

body.tax-product_cat .chacha-category-editorial__prose ul,
body.tax-product_cat .chacha-category-editorial__prose ol {
	margin: 18px 0 20px;
	padding-left: 22px;
}

body.tax-product_cat .chacha-category-editorial__prose li + li {
	margin-top: 7px;
}

body.tax-product_cat .chacha-category-editorial__prose a {
	color: var(--chacha-text-strong, #3B322D);
	text-decoration-line: underline;
	text-decoration-color: var(--chacha-accent, #B08D57);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 160ms ease;
}

body.tax-product_cat .chacha-category-editorial__prose a:hover,
body.tax-product_cat .chacha-category-editorial__prose a:focus-visible {
	color: var(--chacha-accent-dark, #8F6F3F);
}

body.tax-product_cat .chacha-category-editorial__prose blockquote {
	margin: 24px 0;
	padding: 2px 0 2px 20px;
	border-left: 1px solid var(--chacha-accent, #B08D57);
	color: var(--chacha-text-strong, #3B322D);
}

/**
 * ==========================================================
 * FAQ ACCORDION
 * ==========================================================
 *
 * Native details/summary: each answer can open independently and the
 * interaction remains functional without JavaScript.
 */
body.tax-product_cat .chacha-category-editorial__faq {
	width: 100%;
	margin-top: 48px;
	padding-top: 42px;
	border-top: 1px solid rgba(215, 206, 196, 0.72);
}

body.tax-product_cat .chacha-category-editorial__faq-header {
	margin: 0 0 24px;
}

body.tax-product_cat .chacha-category-editorial__faq-title {
	margin: 0;
	font-family: var(--chacha-font-heading, "Cormorant Garamond", serif);
	font-size: clamp(30px, 2.8vw, 40px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--chacha-text-strongest, #201A17);
}

body.tax-product_cat .chacha-category-editorial__faq-list {
	width: 100%;
	border-top: 1px solid rgba(215, 206, 196, 0.72);
}

body.tax-product_cat .chacha-category-editorial__faq-item {
	width: 100%;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(215, 206, 196, 0.72);
}

body.tax-product_cat .chacha-category-editorial__faq-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	min-height: 62px;
	padding: 19px 0;
	list-style: none;
	color: var(--chacha-text-strong, #3B322D);
	cursor: pointer;
}

body.tax-product_cat .chacha-category-editorial__faq-summary:hover {
	color: var(--chacha-accent-dark, #8F6F3F);
}

body.tax-product_cat .chacha-category-editorial__faq-question {
	margin: 0;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.5;
	letter-spacing: 0.005em;
	color: inherit;
}

body.tax-product_cat .chacha-category-editorial__faq-icon {
	position: relative;
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	color: var(--chacha-accent-dark, #8F6F3F);
}

body.tax-product_cat .chacha-category-editorial__faq-icon::before,
body.tax-product_cat .chacha-category-editorial__faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 1px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 160ms ease;
}

body.tax-product_cat .chacha-category-editorial__faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

body.tax-product_cat .chacha-category-editorial__faq-item[open]
.chacha-category-editorial__faq-icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

body.tax-product_cat .chacha-category-editorial__faq-answer {
	max-width: 820px;
	padding: 0 42px 21px 0;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.78;
	color: var(--chacha-text-medium, #6A5F58);
}

body.tax-product_cat .chacha-category-editorial__faq-answer > :first-child {
	margin-top: 0;
}

body.tax-product_cat .chacha-category-editorial__faq-answer > :last-child {
	margin-bottom: 0;
}

body.tax-product_cat .chacha-category-editorial__faq-answer p {
	margin: 0 0 10px;
}

/**
 * ==========================================================
 * RESPONSIVE
 * ==========================================================
 */
@media (max-width: 1024px) {
	body.tax-product_cat .chacha-category-editorial {
		margin-top: 60px;
		padding-inline: 24px;
	}

	body.tax-product_cat .chacha-category-editorial__inner {
		padding-top: 46px;
	}
}

@media (max-width: 767px) {
	body.tax-product_cat .chacha-category-editorial {
		margin-top: 48px;
		padding-inline: 18px;
	}

	body.tax-product_cat .chacha-category-editorial__inner {
		padding-top: 38px;
	}

	body.tax-product_cat .chacha-category-editorial__header {
		margin-bottom: 20px;
	}

	body.tax-product_cat .chacha-category-editorial__title {
		font-size: clamp(30px, 9vw, 38px);
	}

	body.tax-product_cat .chacha-category-editorial__prose,
	body.tax-product_cat .chacha-category-editorial__intro {
		font-size: 13px;
		line-height: 1.82;
	}

	body.tax-product_cat .chacha-category-editorial__toggle,
	body.tax-product_cat .chacha-category-editorial__collapse-end {
		min-height: 42px;
		font-size: 9px;
	}

	body.tax-product_cat .chacha-category-editorial__toggle {
		margin-top: 20px;
	}

	body.tax-product_cat .chacha-category-editorial__body {
		margin-top: 24px;
		padding-top: 24px;
	}

	body.tax-product_cat .chacha-category-editorial__collapse-end {
		margin-top: 22px;
	}

	body.tax-product_cat .chacha-category-editorial__prose h3 {
		margin-top: 28px;
		font-size: 26px;
	}

	body.tax-product_cat .chacha-category-editorial__faq {
		margin-top: 38px;
		padding-top: 34px;
	}

	body.tax-product_cat .chacha-category-editorial__faq-header {
		margin-bottom: 20px;
	}

	body.tax-product_cat .chacha-category-editorial__faq-title {
		font-size: 29px;
	}

	body.tax-product_cat .chacha-category-editorial__faq-summary {
		gap: 18px;
		min-height: 58px;
		padding: 17px 0;
	}

	body.tax-product_cat .chacha-category-editorial__faq-question {
		font-size: 12px;
		line-height: 1.55;
	}

	body.tax-product_cat .chacha-category-editorial__faq-answer {
		padding: 0 31px 18px 0;
		font-size: 12px;
		line-height: 1.75;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.tax-product_cat .chacha-category-editorial__toggle,
	body.tax-product_cat .chacha-category-editorial__collapse-end,
	body.tax-product_cat .chacha-category-editorial__faq-summary,
	body.tax-product_cat .chacha-category-editorial__toggle-icon::before,
	body.tax-product_cat .chacha-category-editorial__toggle-icon::after,
	body.tax-product_cat .chacha-category-editorial__faq-icon::before,
	body.tax-product_cat .chacha-category-editorial__faq-icon::after {
		transition: none;
	}
}
