/**
 * Shared content pages — About, Contact, Policy, FAQ, Size guide, etc.
 * Use class "achol-content" on entry-content or a wrapper block.
 */

/* Page canvas */
body.page .achol-main,
body.page-template-default .achol-main {
	background: var(--achol-color-soft-neutral, #f8f6f2);
	padding-bottom: 2.5rem;
}

body.page:not(.woocommerce-account) .achol-main > .achol-container {
	max-width: 48rem;
}

/* My Account / shop account must use full storefront container */
body.woocommerce-account .achol-main > .achol-container,
body.woocommerce-account .entry-content.achol-content,
body.woocommerce-account .achol-content,
body.achol-account:not(.achol-account--guest) .entry-content,
body.achol-account:not(.achol-account--guest) .achol-content {
	max-width: var(--achol-container-max, 1280px) !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
	padding-left: var(--achol-gutter-mobile, 1rem);
	padding-right: var(--achol-gutter-mobile, 1rem);
}

@media (min-width: 992px) {
	body.woocommerce-account .achol-main > .achol-container,
	body.woocommerce-account .entry-content.achol-content,
	body.achol-account:not(.achol-account--guest) .entry-content {
		padding-left: var(--achol-gutter, 2rem);
		padding-right: var(--achol-gutter, 2rem);
	}
}


body.page:not(.woocommerce-account) .entry-header {
	margin: 0 0 1.25rem;
	text-align: center;
	padding-top: 1.5rem;
}

body.woocommerce-account .entry-header {
	margin: 0 auto 1.25rem;
	text-align: left;
	padding-top: 1.5rem;
	max-width: var(--achol-container-max, 1280px);
	padding-left: var(--achol-gutter-mobile, 1rem);
	padding-right: var(--achol-gutter-mobile, 1rem);
	box-sizing: border-box;
}

@media (min-width: 992px) {
	body.woocommerce-account .entry-header {
		padding-left: var(--achol-gutter, 2rem);
		padding-right: var(--achol-gutter, 2rem);
	}
}


body.page .entry-title {
	margin: 0;
	font-size: clamp(1.5rem, 3.5vw, 1.85rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--achol-color-secondary, #0a0a0a);
	letter-spacing: -0.01em;
}

/* Core readable content */
.achol-content,
body.page .entry-content {
	font-size: 1rem;
	line-height: 1.65;
	color: #3d3a36;
}

.achol-content > *:first-child,
body.page .entry-content > *:first-child {
	margin-top: 0;
}

.achol-content > *:last-child,
body.page .entry-content > *:last-child {
	margin-bottom: 0;
}

.achol-content p,
body.page .entry-content p {
	margin: 0 0 1.1rem;
}

.achol-content h2,
body.page .entry-content h2 {
	margin: 2rem 0 0.75rem;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--achol-color-secondary, #0a0a0a);
}

.achol-content h3,
body.page .entry-content h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--achol-color-secondary, #0a0a0a);
}

.achol-content h2:first-child,
.achol-content h3:first-child,
body.page .entry-content h2:first-child,
body.page .entry-content h3:first-child {
	margin-top: 0;
}

.achol-content ul,
.achol-content ol,
body.page .entry-content ul,
body.page .entry-content ol {
	margin: 0 0 1.15rem;
	padding-left: 1.25rem;
}

.achol-content li,
body.page .entry-content li {
	margin-bottom: 0.4rem;
}

.achol-content a,
body.page .entry-content a {
	color: var(--achol-color-primary, #ff751f);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.achol-content a:hover,
body.page .entry-content a:hover {
	opacity: 0.85;
}

.achol-content strong,
body.page .entry-content strong {
	font-weight: 600;
	color: var(--achol-color-secondary, #0a0a0a);
}

.achol-content hr,
body.page .entry-content hr {
	margin: 2rem 0;
	border: 0;
	border-top: 1px solid var(--achol-color-border, #e8e2d8);
}

.achol-content blockquote,
body.page .entry-content blockquote {
	margin: 1.5rem 0;
	padding: 0.85rem 1.1rem;
	border-left: 3px solid var(--achol-color-primary, #ff751f);
	background: #fff;
	border-radius: 0 10px 10px 0;
	color: #5c564e;
}

/* Lead / summary callout */
.achol-content .achol-lead,
.achol-content .is-style-achol-lead,
body.page .entry-content .achol-lead {
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	background: #fff;
	border: 1px solid var(--achol-color-border, #e8e2d8);
	border-radius: 12px;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #5c564e;
	box-shadow: 0 4px 16px rgba(10, 10, 10, 0.03);
}

/* Tables (size guide, comparison) */
.achol-content table,
body.page .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--achol-color-border, #e8e2d8);
}

.achol-content thead th,
body.page .entry-content thead th {
	background: var(--achol-color-secondary, #0a0a0a);
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 0.65rem 0.85rem;
}

.achol-content td,
.achol-content th,
body.page .entry-content td,
body.page .entry-content th {
	padding: 0.6rem 0.85rem;
	border-bottom: 1px solid #f0ebe4;
	text-align: left;
}

.achol-content tbody tr:last-child td,
body.page .entry-content tbody tr:last-child td {
	border-bottom: 0;
}

.achol-content tbody tr:nth-child(even),
body.page .entry-content tbody tr:nth-child(even) {
	background: rgba(248, 246, 242, 0.6);
}

/* Horizontal scroll on small screens */
.achol-content .wp-block-table,
body.page .entry-content .wp-block-table {
	overflow-x: auto;
	margin-bottom: 1.5rem;
}

/* Buttons in content */
.achol-content .wp-block-button__link,
body.page .entry-content .wp-block-button__link,
.achol-content .button:not(.achol-track__submit),
body.page .entry-content .button {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	border-radius: 10px;
	background: var(--achol-color-primary, #ff751f);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.9rem;
	border: 0;
	line-height: 1.3;
}

.achol-content .wp-block-button__link:hover,
body.page .entry-content .wp-block-button__link:hover {
	opacity: 0.92;
}

.achol-content .is-style-outline .wp-block-button__link,
body.page .entry-content .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--achol-color-secondary, #0a0a0a) !important;
	box-shadow: inset 0 0 0 1.5px var(--achol-color-secondary, #0a0a0a);
}

/* Images */
.achol-content img,
body.page .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.achol-content figure,
body.page .entry-content figure {
	margin: 0 0 1.5rem;
}

.achol-content figcaption,
body.page .entry-content figcaption {
	margin-top: 0.4rem;
	font-size: 0.8125rem;
	color: #706a62;
	text-align: center;
}

/* FAQ-style details/accordion (native HTML or block) */
.achol-content details,
body.page .entry-content details {
	margin: 0 0 0.65rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid var(--achol-color-border, #e8e2d8);
	border-radius: 12px;
}

.achol-content details[open],
body.page .entry-content details[open] {
	box-shadow: 0 4px 14px rgba(10, 10, 10, 0.04);
}

.achol-content summary,
body.page .entry-content summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--achol-color-secondary, #0a0a0a);
	list-style: none;
}

.achol-content summary::-webkit-details-marker {
	display: none;
}

.achol-content summary::after {
	content: "+";
	float: right;
	color: var(--achol-color-primary, #ff751f);
	font-weight: 600;
}

.achol-content details[open] summary::after {
	content: "−";
}

.achol-content details > *:not(summary),
body.page .entry-content details > *:not(summary) {
	margin-top: 0.75rem;
	font-size: 0.9375rem;
	color: #5c564e;
}

/* Contact-style card grid helper */
.achol-content .achol-contact-cards,
.achol-content-cards {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
}

@media (min-width: 600px) {
	.achol-content .achol-contact-cards,
	.achol-content-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.achol-content .achol-contact-card,
.achol-content-card {
	padding: 1rem 1.1rem;
	background: #fff;
	border: 1px solid var(--achol-color-border, #e8e2d8);
	border-radius: 12px;
}

.achol-content .achol-contact-card strong,
.achol-content-card strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a847c;
}

/* Wider layout for size guide / tables */
body.page-slug-size-guide .achol-main > .achol-container,
body.page-slug-faq .achol-main > .achol-container,
.achol-content.achol-content--wide {
	max-width: 56rem;
}

@media (min-width: 768px) {
	body.page .entry-header {
		padding-top: 2rem;
		margin-bottom: 1.5rem;
	}

	body.page .achol-main {
		padding-bottom: 3.5rem;
	}
}

/* -------------------------------------------------------------------------- */
/* [achol_faq] accordion                                                       */
/* -------------------------------------------------------------------------- */

.achol-faq {
	margin: 0 0 2rem;
}

.achol-faq__title {
	margin: 0 0 1rem;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--achol-color-secondary, #0a0a0a);
}

.achol-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.achol-faq__item {
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--achol-color-border, #e8e2d8);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.15s ease;
}

.achol-faq__item[open] {
	box-shadow: 0 4px 16px rgba(10, 10, 10, 0.05);
}

.achol-faq__question {
	display: block;
	padding: 0.95rem 1.1rem;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--achol-color-secondary, #0a0a0a);
	list-style: none;
}

.achol-faq__question::-webkit-details-marker {
	display: none;
}

.achol-faq__question::after {
	content: "+";
	float: right;
	margin-left: 0.75rem;
	color: var(--achol-color-primary, #ff751f);
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1.2;
}

.achol-faq__item[open] > .achol-faq__question::after {
	content: "−";
}

.achol-faq__answer {
	padding: 0 1.1rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #5c564e;
}

.achol-faq__answer p:first-child {
	margin-top: 0;
}

.achol-faq__answer p:last-child {
	margin-bottom: 0;
}

.achol-faq__answer a {
	color: var(--achol-color-primary, #ff751f);
}

/* Size guide tables */
body.page-slug-size-guide .achol-content table,
.achol-content .achol-size-table,
.achol-size-table {
	font-variant-numeric: tabular-nums;
}

body.page-slug-size-guide .achol-content table th:first-child,
body.page-slug-size-guide .achol-content table td:first-child,
.achol-size-table th:first-child,
.achol-size-table td:first-child {
	font-weight: 600;
	white-space: nowrap;
}

body.page-slug-size-guide .achol-content h2 {
	margin-top: 2.25rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--achol-color-border, #e8e2d8);
}

.achol-size-note {
	margin: 0.5rem 0 1.25rem;
	font-size: 0.875rem;
	color: #706a62;
}
