/* Estudar Grátis — estilos complementares ao Tailwind */

:root {
	--eg-brand: #16a34a;
	--eg-ink: #0f172a;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Limita linhas (line-clamp) caso o Tailwind CDN não traga o utilitário */
.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Remove a setinha padrão do <summary> no acordeão FAQ */
.eg-faq-item summary::-webkit-details-marker { display: none; }
.eg-faq-item summary { list-style: none; }

/* ============================================================
   Paginação — vale para posts (the_posts_pagination),
   comentários (the_comments_pagination) e arquivos.
   ============================================================ */
.navigation.pagination,
.navigation.comments-pagination,
.navigation.posts-pagination,
.eg-pagination {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
}
.pagination .nav-links,
.comments-pagination .nav-links,
.posts-pagination .nav-links,
.eg-pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
}

/* Cada "botão" da paginação (links, página atual e reticências) */
.page-numbers {
	display: inline-flex;
	min-width: 2.6rem;
	height: 2.6rem;
	align-items: center;
	justify-content: center;
	padding: 0 .8rem;
	border-radius: .8rem;
	border: 1px solid #e8edf3;
	background: #fff;
	font-family: 'Plus Jakarta Sans', Inter, sans-serif;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1;
	color: #475569;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
a.page-numbers:hover {
	border-color: var(--eg-brand);
	color: var(--eg-brand);
	transform: translateY(-1px);
}
.page-numbers.current {
	background: var(--eg-brand);
	border-color: var(--eg-brand);
	color: #fff;
	box-shadow: 0 6px 16px -6px rgba(22, 163, 74, .5);
}
/* Reticências: sem caixa */
.page-numbers.dots {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #94a3b8;
	min-width: 1.5rem;
}
/* Setas « » */
.page-numbers.prev,
.page-numbers.next {
	color: var(--eg-brand);
	font-weight: 700;
}
.page-numbers.prev:hover,
.page-numbers.next:hover {
	background: #ecfdf3;
}

.prose img { height: auto; }

/* ============================================================
   Tabelas do conteúdo — sobrescreve os estilos inline pretos
   antigos por um visual claro, on-brand e responsivo.
   ============================================================ */
.prose table {
	display: table !important;
	width: 100% !important;
	margin: 1.5rem 0 !important;
	border: 1px solid #e8edf3 !important;
	border-collapse: collapse !important;
	border-radius: .85rem;
	overflow: hidden;
	font-family: Inter, sans-serif !important;
	font-size: .95rem !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.prose table thead tr,
.prose table thead th {
	background: #ecfdf3 !important;
	color: #15803d !important;
}
.prose table thead th {
	border: 0 !important;
	border-bottom: 1px solid #d1fadf !important;
	padding: .8rem 1rem !important;
	font-family: 'Plus Jakarta Sans', Inter, sans-serif !important;
	font-weight: 700 !important;
	text-align: left !important;
}
.prose table tbody td {
	border: 0 !important;
	border-bottom: 1px solid #eef2f7 !important;
	padding: .75rem 1rem !important;
	color: #475569 !important;
	vertical-align: top;
	text-align: left !important;
}
.prose table tbody tr:nth-child(even) { background: #f9fafb; }
.prose table tbody tr:last-child td { border-bottom: 0 !important; }
.prose table td:first-child {
	font-weight: 600 !important;
	color: #162033 !important;
}

/* Container rola no mobile se a tabela for larga */
.prose table { display: block !important; overflow-x: auto; white-space: normal; }
@media (min-width: 640px) {
	.prose table { display: table !important; }
}

/* Garante que imagens de posts antigos não estourem o container */
.prose iframe { max-width: 100%; }

/* ============================================================
   Shortcodes nativos do tema (su_button, su_list, su_box, su_note)
   ============================================================ */
.eg-su-button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.eg-su-button:active { transform: translateY(0); }

.prose .eg-su-list ul {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}
.prose .eg-su-list li {
	position: relative;
	padding-left: 1.6rem;
	margin: .35rem 0;
}
.prose .eg-su-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	width: .7rem;
	height: .7rem;
	border-radius: 9999px;
	background: var(--eg-li, #16a34a);
}

.prose .eg-su-box {
	border: 2px solid #16a34a;
	border-radius: .9rem;
	overflow: hidden;
	margin: 1.5rem 0;
	background: #fff;
}
.prose .eg-su-box-title {
	padding: .7rem 1rem;
	font-family: 'Plus Jakarta Sans', Inter, sans-serif;
	font-weight: 700;
}
.prose .eg-su-box-body { padding: 1rem; }
.prose .eg-su-box-body > p:first-child { margin-top: 0; }
.prose .eg-su-box-body > p:last-child { margin-bottom: 0; }

.prose .eg-su-note {
	border-radius: .9rem;
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
}
.prose .eg-su-note p:first-child { margin-top: 0; }
.prose .eg-su-note p:last-child { margin-bottom: 0; }
.prose .eg-su-note a { color: inherit; text-decoration: underline; }

/* ============================================================
   FAQ embutida no conteúdo (.faq-item) — vinda dos posts antigos
   Estiliza como acordeão compatível com o tema.
   ============================================================ */
.prose .faq-item,
.faq-item {
	margin: .6rem 0;
	border: 1px solid #e8edf3;
	border-radius: .9rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item:hover { border-color: #d1fadf; }

.prose .faq-question,
.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 1rem 1.2rem;
	font-family: 'Plus Jakarta Sans', Inter, sans-serif;
	font-weight: 700;
	color: #162033;
	line-height: 1.4;
	cursor: pointer;
	user-select: none;
}
.faq-question:hover { color: #16a34a; }

/* Ícone da FAQ: esconde o caractere (▼/?) vindo do conteúdo e desenha
   um chevron limpo via CSS (mask), que gira ao abrir. */
.prose .faq-question .arrow,
.faq-question .arrow {
	flex: 0 0 auto;
	display: inline-block;
	width: 1.15rem;
	height: 1.15rem;
	font-size: 0;            /* some com o ▼/? do conteúdo */
	line-height: 0;
	color: transparent;
	background-color: #94a3b8;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") center / contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") center / contain no-repeat;
	transition: transform .25s ease, background-color .15s ease;
}
.faq-item:not(.eg-collapsed) .arrow { transform: rotate(180deg); background-color: #16a34a; }
.faq-question:hover .arrow { background-color: #16a34a; }

.prose .faq-answer,
.faq-answer {
	padding: 0 1.2rem 1.1rem;
	color: #475569;
	line-height: 1.7;
}
.prose .faq-answer p:first-child { margin-top: 0; }
.prose .faq-answer p:last-child { margin-bottom: 0; }

/* Recolhido (ativado por JS; sem JS fica tudo aberto = acessível/SEO) */
.faq-item.eg-collapsed .faq-answer { display: none; }

/* Título "Perguntas Frequentes" dentro do conteúdo */
.prose h2:has(+ .faq-item),
.prose h2 + .faq-item { scroll-margin-top: 5rem; }

