/**
 * TRACKen SAC article design system.
 *
 * Article HTML contains only semantic markup. Presentation lives here and is
 * loaded once by the active child theme for posts in the SAC category tree.
 */

.fqa-content-body {
	--sac-accent: var(--tk-green, #00c853);
	--sac-accent-dark: var(--tk-green-dark, #00a844);
	--sac-ink: var(--tk-black, #1a1a1a);
	--sac-text: #374151;
	--sac-muted: #6b7280;
	--sac-border: #e5e7eb;
	--sac-surface: #f7f9fc;
	--sac-info: #2563eb;
	--sac-info-bg: #eff6ff;
	--sac-warning: #d97706;
	--sac-warning-bg: #fffbeb;
	--sac-success: #059669;
	--sac-success-bg: #ecfdf5;
	--sac-danger: #dc2626;
	--sac-danger-bg: #fef2f2;
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 17px;
	color: #23272f;
	line-height: 1.9;
	counter-reset: sac-step;
}

.fqa-content-body > :first-child { margin-top: 0; }
.fqa-content-body > :last-child { margin-bottom: 0; }

.fqa-content-body h2,
.fqa-content-body h3,
.fqa-content-body h4 {
	color: var(--sac-ink);
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.fqa-content-body h2 {
	font-size: 1.8em;
	font-weight: 600;
	margin: 2.4em 0 1em;
}

.fqa-content-body h3 {
	font-size: 1.4em;
	font-weight: 600;
	margin: 2em 0 0.9em;
}

.fqa-content-body h4 {
	font-size: 1.15em;
	font-weight: 600;
	margin: 1.8em 0 0.85em;
}

.fqa-content-body p { margin: 0 0 2.25em; }

.fqa-content-body ul,
.fqa-content-body ol {
	margin: 0 0 2.4em;
	padding-left: 1.7em;
}

.fqa-content-body li {
	margin-bottom: 1.05em;
	padding-left: 0.25em;
}

.fqa-content-body li::marker {
	color: var(--sac-accent-dark);
	font-weight: 700;
}

.fqa-content-body strong,
.fqa-content-body b {
	font-weight: 700;
	color: var(--sac-ink);
}

.fqa-content-body a {
	color: #1db954;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.fqa-content-body a:hover { color: #17a34a; }

.fqa-content-body a:focus-visible {
	outline: 3px solid rgb(0 200 83 / 28%);
	outline-offset: 3px;
	border-radius: 2px;
}

.fqa-content-body img,
.fqa-content-body video,
.fqa-content-body iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border-radius: 6px;
	box-shadow: 0 4px 20px rgb(0 0 0 / 12%);
}

.fqa-content-body img,
.fqa-content-body video {
	height: auto;
	max-width: 700px;
	margin: 2em 0;
}

.fqa-content-body iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	max-width: 700px;
	margin: 2em 0;
}

.fqa-content-body figure,
.fqa-content-body .sac-image {
	position: relative;
	max-width: 700px;
	margin: 2em 0;
}

.fqa-content-body figure img,
.fqa-content-body .sac-image img {
	margin: 0;
	width: 100%;
}

/* ===== ZOOM DE IMAGEM (lupa) ===== */
.sac-zoom-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: rgb(0 0 0 / 55%);
	color: #fff;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s, background-color 0.2s;
	z-index: 5;
}

.sac-zoom-btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sac-zoom-btn:hover { background: rgb(0 0 0 / 75%); }

figure:hover .sac-zoom-btn,
.sac-image:hover .sac-zoom-btn,
.sac-phone:hover .sac-zoom-btn {
	opacity: 1;
}

@media (hover: none) {
	.sac-zoom-btn { opacity: 1; }
}

.sac-zoom-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgb(0 0 0 / 90%);
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.sac-zoom-modal.is-active { display: flex; }

.sac-zoom-modal img {
	max-width: 85vw;
	max-height: 85vh;
	width: auto;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgb(0 0 0 / 50%);
	margin: 0;
}

.sac-zoom-close,
.sac-zoom-nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s;
	z-index: 10;
}

.sac-zoom-close:hover,
.sac-zoom-nav:hover { opacity: 1; }

.sac-zoom-close {
	top: 16px;
	right: 20px;
	font-size: 2.25em;
	line-height: 1;
}

.sac-zoom-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 72px;
	font-size: 2.5em;
}

.sac-zoom-nav.is-prev { left: 10px; }
.sac-zoom-nav.is-next { right: 10px; }

.fqa-content-body figcaption,
.fqa-content-body .sac-image-caption {
	margin-top: 8px;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--sac-muted);
	text-align: center;
}

.fqa-content-body blockquote {
	border-left: 3px solid var(--sac-accent);
	margin: 20px 0;
	padding: 12px 20px;
	background: var(--sac-surface);
	border-radius: 0 8px 8px 0;
	color: var(--sac-text);
}

.fqa-content-body blockquote > :last-child { margin-bottom: 0; }

/* Step: numbered automatically in document order. */
.fqa-content-body .sac-step {
	counter-increment: sac-step;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 14px;
	margin: 28px 0;
}

.fqa-content-body .sac-step::before {
	content: counter(sac-step);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--sac-accent);
	color: #fff;
	font-weight: 700;
	line-height: 1;
}

.fqa-content-body .sac-step > :first-child,
.fqa-content-body .sac-step-content > :first-child { margin-top: 0; }

.fqa-content-body .sac-step > :last-child,
.fqa-content-body .sac-step-content > :last-child { margin-bottom: 0; }

/* Reusable callouts. Use only the semantic class in article HTML. */
.fqa-content-body :is(.sac-info, .sac-warning, .sac-success, .sac-danger) {
	margin: 2em 0;
	padding: 1em 1.2em;
	border: 1px solid var(--sac-border);
	border-left-width: 4px;
	border-radius: 8px;
}

.fqa-content-body :is(.sac-info, .sac-warning, .sac-success, .sac-danger) > :last-child {
	margin-bottom: 0;
}

.fqa-content-body .sac-info {
	border-left-color: #1db954;
	background: #f4f9f4;
}

.fqa-content-body .sac-warning {
	border-left-color: var(--sac-warning);
	background: var(--sac-warning-bg);
}

.fqa-content-body .sac-success {
	border-left-color: var(--sac-success);
	background: var(--sac-success-bg);
}

.fqa-content-body .sac-danger {
	border-left-color: var(--sac-danger);
	background: var(--sac-danger-bg);
}

/* Tables can be wrapped in .sac-table for horizontal scrolling on mobile. */
.fqa-content-body .sac-table {
	max-width: 100%;
	overflow-x: auto;
	margin: 24px 0;
	border: 1px solid var(--sac-border);
	border-radius: 8px;
}

.fqa-content-body table {
	width: 100%;
	margin: 24px 0;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.fqa-content-body .sac-table table { margin: 0; }

.fqa-content-body th,
.fqa-content-body td {
	padding: 10px 12px;
	border: 1px solid var(--sac-border);
	text-align: left;
	vertical-align: top;
}

.fqa-content-body th {
	background: var(--sac-surface);
	color: var(--sac-ink);
	font-weight: 700;
}

.fqa-content-body code {
	padding: 0.2em 0.4em;
	border-radius: 4px;
	background: #eef1f5;
	color: #1f2937;
	font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
	font-size: 0.95em;
}

.fqa-content-body pre {
	overflow-x: auto;
	margin: 20px 0;
	padding: 16px;
	border-radius: 8px;
	background: #111827;
	color: #f9fafb;
	line-height: 1.6;
	tab-size: 2;
}

.fqa-content-body pre code {
	padding: 0;
	background: transparent;
	color: inherit;
	font-size: 0.875rem;
}

.fqa-content-body .sac-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin: 4px 0 20px;
	padding: 10px 18px;
	border-radius: 8px;
	background: #1db954;
	color: #fff;
	font-weight: 700;
	font-size: 1.1em;
	text-decoration: none;
	box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.fqa-content-body .sac-button:hover {
	background: #000;
	color: #fff;
}

/* Callout: dark highlighted box for a linked resource (PDF, download, external material). */
.fqa-content-body .sac-callout {
	display: flex;
	align-items: center;
	gap: 1.5em;
	margin: 2em 0;
	padding: 1.8em 2em;
	border-radius: 12px;
	background: #1f1f1f;
	box-shadow: 0 4px 20px rgb(0 0 0 / 12%);
}

.fqa-content-body .sac-callout-icon {
	flex-shrink: 0;
	font-size: 3em;
	line-height: 1;
	color: var(--sac-accent);
}

.fqa-content-body .sac-callout-content > :first-child { margin-top: 0; }
.fqa-content-body .sac-callout-content > :last-child { margin-bottom: 0; }

.fqa-content-body .sac-callout-content h3,
.fqa-content-body .sac-callout-content h4 {
	margin: 0 0 0.3em;
	color: #fff;
	font-size: 1.3em;
	font-weight: 600;
}

.fqa-content-body .sac-callout-content p {
	margin: 0 0 1em;
	color: #ccc;
	font-size: 0.9em;
}

.fqa-content-body .sac-callout .sac-button {
	margin: 0;
}

/* Flow: a short chain of steps connected by arrows (e.g. system A -> system B -> system C). */
.fqa-content-body .sac-flow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1em;
	margin: 2em 0;
}

.fqa-content-body .sac-flow-step {
	padding: 0.8em 1.5em;
	border-radius: 8px;
	background: #1f1f1f;
	color: var(--sac-accent);
	font-weight: 600;
	font-size: 1.1em;
	box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

.fqa-content-body .sac-flow-arrow {
	color: var(--sac-accent);
	font-size: 1.5em;
	line-height: 1;
}

@media (max-width: 480px) {
	.fqa-content-body .sac-callout {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}

/* Phone mockup: for portrait mobile-app screenshots, so they render at phone
   proportions instead of stretching to the same width as desktop screenshots. */
.fqa-content-body .sac-phone {
	max-width: 300px;
	margin: 2em auto;
}

.fqa-content-body .sac-phone-frame {
	position: relative;
	background: #101114;
	border-radius: 34px;
	padding: 14px 10px;
	box-shadow: 0 12px 30px rgb(0 0 0 / 20%);
}

.fqa-content-body .sac-phone-frame::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 50%;
	z-index: 1;
	width: 38%;
	height: 16px;
	background: #101114;
	border-radius: 0 0 10px 10px;
	transform: translateX(-50%);
}

.fqa-content-body .sac-phone-frame img {
	display: block;
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 20px;
	box-shadow: none;
}

.fqa-content-body .sac-phone-caption {
	margin-top: 10px;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--sac-muted);
	text-align: center;
}

/* Shared article chrome follows the same typography and support CTA. */
.single-post .fqa-content-title,
.single-post .fqa-content-date {
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.single-post .fqa-content-title {
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.025em;
	margin-bottom: 14px;
}

.single-post .fqa-content-date {
	font-size: 0.8125rem;
	margin-bottom: 44px;
}

@media (max-width: 600px) {
	.fqa-content-body { font-size: 16px; }

	.single-post .fqa-content-title { font-size: 1.65rem; }

	.fqa-content-body h2 { font-size: 1.55em; }

	.fqa-content-body h3 { font-size: 1.25em; }

	.fqa-content-body .sac-step {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 10px;
	}

	.fqa-content-body .sac-step::before {
		width: 30px;
		height: 30px;
	}

	.fqa-content-body th,
	.fqa-content-body td { padding: 8px 10px; }
}
