/**
 * Ê-Sistemas Editorial — Base, Tipografia Editorial (Estilo Medium) & Acessibilidade
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--es-font-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--es-text-body);
	background-color: var(--es-bg-canvas);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color 0.25s ease, color 0.25s ease;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--es-obsidian);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
	color: var(--es-gold);
}

:focus-visible {
	outline: 2px solid var(--es-gold);
	outline-offset: 3px;
}

.es-sr-only,
.es-skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.es-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	border-radius: var(--es-radius-sm);
	background: var(--es-obsidian);
	color: #FFFFFF;
	font-weight: 600;
	text-decoration: none;
}

.es-container {
	width: 100%;
	max-width: var(--es-container-max);
	margin-inline: auto;
	padding-inline: 24px;
}

.es-site-main {
	min-height: calc(100vh - var(--es-header-height) - 280px);
}

.es-page-splash {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 13px;
	background: #0A0A0B;
	color: #FFFFFF;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.26s ease, visibility 0.26s ease;
}

.es-motion-enabled .es-page-splash:not(.is-hidden) {
	opacity: 1;
	visibility: visible;
}

.es-page-splash-mark {
	width: 42px;
	height: 42px;
	background: url("../images/brand/icon-esistemas.svg") center / contain no-repeat;
}

.es-page-splash-name {
	font-size: 0.86rem;
	font-weight: 750;
	letter-spacing: 0.04em;
}

.es-page-splash-loader {
	width: 56px;
	height: 2px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
}

.es-page-splash-loader::after {
	display: block;
	width: 40%;
	height: 100%;
	border-radius: inherit;
	background: #F37021;
	content: "";
	animation: es-splash-load 0.9s ease-in-out infinite;
}

@keyframes es-splash-load {
	from { transform: translateX(-110%); }
	to { transform: translateX(260%); }
}

.es-js .es-motion-card:not(.is-inview) {
	opacity: 0;
	transform: translateY(20px);
}

.es-js .es-motion-card {
	transition-property: opacity, transform;
	transition-duration: 0.65s;
	transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--es-motion-delay, 0ms);
}

.es-js .es-motion-card.is-inview {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.es-page-splash,
	.es-page-splash-loader::after,
	.es-js .es-motion-card {
		animation: none !important;
		transition: none !important;
	}
}

/* === RITMO EDITORIAL DO CORPO DO ARTIGO (MEDIUM-INSPIRED) === */
.es-article-content {
	font-family: var(--es-font-serif);
	font-size: 1.2rem;
	line-height: 1.78;
	color: var(--es-text-body);
	letter-spacing: -0.004em;
}

.es-article-content > * + * {
	margin-top: 1.35em;
}

.es-article-content p {
	margin: 0 0 1.35em;
}

.es-article-content h2,
.es-article-content h3,
.es-article-content h4 {
	font-family: var(--es-font-sans);
	color: var(--es-text-primary);
	letter-spacing: -0.025em;
	line-height: 1.28;
	scroll-margin-top: calc(var(--es-header-height) + 28px);
}

.es-article-content h2 {
	font-size: clamp(1.5rem, 2.2vw, 1.82rem);
	font-weight: 700;
	margin: 2.2em 0 0.75em;
	padding-top: 0.4em;
}

.es-article-content h3 {
	font-size: clamp(1.2rem, 1.6vw, 1.38rem);
	font-weight: 700;
	margin: 1.8em 0 0.6em;
}

.es-article-content h4 {
	font-size: 1.08rem;
	font-weight: 700;
	margin: 1.5em 0 0.5em;
}

.es-article-content a {
	color: var(--es-black);
	text-decoration: underline;
	text-decoration-color: rgba(243, 112, 33, 0.65);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.es-article-content a:hover {
	color: var(--es-orange-deep);
	text-decoration-color: var(--es-orange);
}

.es-article-content ul,
.es-article-content ol {
	padding-left: 1.4em;
	margin: 1.2em 0 1.5em;
}

.es-article-content li {
	margin-bottom: 0.65em;
	padding-left: 0.25em;
}

.es-article-content li::marker {
	color: var(--es-gold);
	font-weight: 700;
}

.es-article-content blockquote {
	margin: 2em 0;
	padding: 22px 26px;
	border-left: 4px solid var(--es-gold);
	border-radius: 0 var(--es-radius-md) var(--es-radius-md) 0;
	background: var(--es-glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--es-glass-shadow);
	font-style: italic;
	color: var(--es-text-primary);
}

.es-article-content blockquote p:last-child {
	margin-bottom: 0;
}

.es-article-content code {
	font-family: var(--es-font-mono);
	font-size: 0.86em;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--es-bg-subtle);
	color: var(--es-obsidian);
}

.es-article-content pre {
	margin: 1.8em 0;
	padding: 20px 22px;
	border-radius: var(--es-radius-md);
	background: var(--es-obsidian);
	color: #E5E7EB;
	overflow-x: auto;
	font-family: var(--es-font-mono);
	font-size: 0.88rem;
	line-height: 1.65;
	border: 1px solid rgba(243, 112, 33, 0.28);
}

.es-article-content pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

/* Tabelas responsivas elegantes */
.es-table-scroll {
	width: 100%;
	overflow-x: auto;
	margin: 1.8em 0;
	border-radius: var(--es-radius-md);
	box-shadow: var(--es-neu-shadow);
	border: 1px solid var(--es-border-subtle);
	background: var(--es-bg-paper);
}

.es-article-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--es-font-sans);
	font-size: 0.93rem;
	line-height: 1.55;
	background: var(--es-bg-paper);
	margin: 0;
}

.es-article-content th,
.es-article-content td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--es-border-subtle);
	vertical-align: top;
}

.es-article-content thead th {
	background: var(--es-obsidian);
	color: #F8FAFC;
	font-weight: 600;
	font-size: 0.84rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.es-article-content tbody tr:last-child td {
	border-bottom: 0;
}

.es-article-content tbody tr:nth-child(even) {
	background: rgba(244, 246, 249, 0.6);
}

.es-article-content figure {
	margin: 2em 0;
}

.es-article-content figcaption {
	margin-top: 10px;
	text-align: center;
	font-family: var(--es-font-sans);
	font-size: 0.85rem;
	color: var(--es-text-muted);
}

@media (max-width: 640px) {
	.es-container {
		padding-inline: 18px;
	}
	.es-article-content {
		font-size: 1.09rem;
		line-height: 1.75;
	}
}
