/*
 * PDFRaj Engine — proprietary.
 * Copyright (c) 2026 Aditya Raj. All rights reserved.
 * Author: Aditya Raj. Unauthorized copying, distribution, or resale of this
 * source, in whole or in part, is prohibited.
 */
/*
 * PDFPro public tool-page shell sections (Phase 5A M4):
 * how-it-works, FAQ accordion, related tools. Rendered below the workspace
 * by _partials/tool_sections.php. Reuses the shared --pdfraj-* tokens.
 */

.pdfraj-toolsections {
	max-width: 840px;
	margin: 2.5rem auto 0;
	padding: 0 1.25rem;
	font-family: var(--pdfraj-font-body);
}

.pts-section { margin-top: 2.75rem; }
.pts-section > h2 {
	font-size: 1.5rem;
	text-align: center;
	margin: 0 0 1.4rem;
	letter-spacing: -0.01em;
}

/* How it works */
.pts-steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 1.4rem;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.pts-steps li { text-align: center; padding: 0 0.4rem; }
.pts-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--pdfraj-accent-soft); color: var(--pdfraj-accent);
	font-weight: 700; font-size: 1.05rem; margin-bottom: 0.55rem;
}
.pts-steps h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.pts-steps p  { margin: 0; color: var(--pdfraj-muted); font-size: 0.9rem; line-height: 1.5; }

/* FAQ accordion (native <details>) */
.pts-faq-list { max-width: 680px; margin: 0 auto; }
.pts-faq-item {
	border: 1px solid var(--pdfraj-border);
	border-radius: var(--pdfraj-radius-sm);
	margin-bottom: 0.6rem;
	background: var(--pdfraj-paper);
	overflow: hidden;
}
.pts-faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 0.85rem 1.1rem;
	font-weight: 600;
	display: flex; align-items: center; justify-content: space-between;
	gap: 0.6rem;
}
.pts-faq-item summary::-webkit-details-marker { display: none; }
.pts-faq-item summary::after {
	content: "+";
	color: var(--pdfraj-accent);
	font-size: 1.3rem; line-height: 1; font-weight: 400;
	flex-shrink: 0;
}
.pts-faq-item[open] summary::after { content: "\2212"; } /* minus */
.pts-faq-answer {
	padding: 0 1.1rem 1rem;
	color: var(--pdfraj-muted);
	line-height: 1.55;
}

/* Related tools */
.pts-related-grid {
	display: grid; gap: 0.7rem;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.pts-related-card {
	display: flex; align-items: flex-start; gap: 0.6rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--pdfraj-surface-warm, #f3e5d8);
	border-radius: 10px 10px 25px;
	box-shadow: var(--pdfraj-shadow-card);
	text-decoration: none; color: inherit;
	transition: box-shadow 0.15s, transform 0.12s;
}
.pts-related-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.10); transform: translateX(-2px); }
.pts-related-card:focus-visible { outline: 2px solid var(--pdfraj-accent); outline-offset: 2px; }
.pts-related-icon { color: var(--pdfraj-accent); display: inline-flex; margin-top: 0.1rem; }
.pts-related-text { display: flex; flex-direction: column; min-width: 0; }
.pts-related-name { font-weight: 600; font-size: 0.95rem; }
.pts-related-desc { color: var(--pdfraj-muted); font-size: 0.8rem; line-height: 1.4; }
