/* MATIS Core — estilos dos shortcodes e classes utilitárias para o Elementor.
   Cores e medidas seguem o protótipo aprovado. */

:root {
	--matis-ink: #10231f;
	--matis-deep: #0b2b27;
	--matis-green: #0b4f4a;
	--matis-amber: #e3a32b;
	--matis-amber-ink: #8a5e08;
	--matis-bg: #f5f7f4;
	--matis-line: #dce4df;
	--matis-muted: #4a5f5a;
	--matis-soft: #d5e3dc;
	--matis-display: var(--e-global-typography-primary-font-family, 'Bricolage Grotesque'), sans-serif;
	--matis-text: var(--e-global-typography-text-font-family, 'DM Sans'), system-ui, sans-serif;
}

.matis,
.matis * {
	box-sizing: border-box;
}

.matis {
	font-family: var(--matis-text);
	color: var(--matis-ink);
	line-height: 1.5;
}

.matis p,
.matis h3,
.matis dl,
.matis dd {
	margin: 0;
}

.matis [hidden] {
	display: none !important;
}

.matis a {
	color: var(--matis-green);
	font-weight: 700;
	text-decoration: none;
}

.matis a:hover {
	text-decoration: underline;
}

.matis a:focus-visible,
.matis-chip:focus-visible {
	outline: 3px solid var(--matis-amber);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---- Classes utilitárias (campo "Classes CSS" do Elementor) ---- */

.matis-card {
	background: #fff;
	border: 1px solid var(--matis-line);
	border-radius: 16px;
	transition: border-color 0.15s ease;
}

.matis-card:hover {
	border-color: var(--matis-green);
}

.matis-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--matis-amber);
}

/* ---- Títulos e textos ---- */

.matis-title {
	font-family: var(--matis-display);
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--matis-deep);
	letter-spacing: 0;
}

.matis-title--md {
	font-size: 21px;
	line-height: 1.25;
}

.matis-title--lg {
	font-size: 24px;
	line-height: 1.25;
}

.matis-title a {
	color: inherit;
	font-weight: inherit;
}

.matis-text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--matis-muted);
}

.matis-small {
	font-size: 14px;
	line-height: 1.5;
	color: #33504a;
}

.matis-muted {
	font-size: 14px;
	color: var(--matis-muted);
}

.matis-note {
	font-size: 15px;
	color: var(--matis-muted);
	padding: 24px 0;
}

.matis-date {
	font-size: 13px;
	font-weight: 700;
	color: var(--matis-amber-ink);
}

/* ---- Filtros ---- */

.matis-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 32px;
}

.matis-chip {
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	padding: 11px 18px;
	min-height: 44px;
	border-radius: 999px;
	border: 1px solid #c4d2cb;
	background: #fff;
	color: var(--matis-ink);
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}

.matis-chip:hover {
	border-color: var(--matis-green);
	background: #fff;
	color: var(--matis-ink);
}

.matis-chip[aria-pressed='true'] {
	background: var(--matis-green);
	border-color: var(--matis-green);
	color: #fff;
}

.matis-count {
	margin-bottom: 24px !important;
	font-size: 15px;
	color: var(--matis-muted);
}

/* ---- Pesquisadores ---- */

.matis-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.matis-person {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.matis-person-head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.matis-avatar {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 999px;
	background: var(--matis-soft);
	color: var(--matis-green);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.matis-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.matis-person-id {
	min-width: 0;
}

.matis-role {
	margin-top: 4px !important;
	font-size: 14px;
	font-weight: 700;
	color: var(--matis-amber-ink);
}

.matis-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 14px;
}

/* ---- Projetos ---- */

.matis-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.matis-project {
	padding: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
}

.matis-project-main {
	flex: 2 1 420px;
	min-width: 0;
}

.matis-project-main .matis-title {
	margin-top: 14px !important;
}

.matis-project-main .matis-text {
	margin-top: 10px !important;
	font-size: 16px;
	line-height: 1.65;
}

.matis-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.matis-dl {
	flex: 1 1 300px;
	min-width: 0;
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 10px 16px;
	font-size: 15px;
	line-height: 1.5;
	align-content: start;
}

.matis-dl dt {
	font-weight: 700;
	color: var(--matis-deep);
}

.matis-dl dd {
	color: var(--matis-muted);
}

/* ---- Selos ---- */

.matis-badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	padding: 5px 12px;
	border-radius: 999px;
}

.matis-badge--sm {
	font-size: 12px;
	padding: 4px 10px;
}

.matis-badge--andamento,
.matis-badge--artigo {
	background: #ddf1e6;
	color: #0b5a33;
}

.matis-badge--concluido {
	background: #e7e9ec;
	color: #3a4650;
}

.matis-badge--dissertacao {
	background: #e3ecf8;
	color: #1d4b7c;
}

.matis-badge--tese {
	background: #ede4f5;
	color: #4f2d75;
}

.matis-badge--patente {
	background: #fbf1da;
	color: #6b4a06;
}

/* ---- Publicações ---- */

.matis-pubs {
	background: #fff;
	border: 1px solid var(--matis-line);
	border-radius: 16px;
	overflow: hidden;
}

.matis-pub {
	padding: 28px 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	border-bottom: 1px solid #e6ece8;
	margin-bottom: -1px;
}

.matis-pub-year {
	flex: 0 0 72px;
	font-family: var(--matis-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--matis-amber-ink);
}

.matis-pub-main {
	flex: 1 1 420px;
	min-width: 0;
}

.matis-pub-main .matis-title {
	margin-top: 10px !important;
}

.matis-pub-main .matis-small {
	margin-top: 8px !important;
	color: var(--matis-muted);
	font-size: 15px;
}

.matis-pub-links {
	flex: 0 0 auto;
	align-items: flex-start;
}

/* ---- Notícias ---- */

.matis-grid--news {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.matis-news {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.matis-news-media {
	display: block;
	height: 200px;
	background: var(--matis-soft);
}

.matis-news-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.matis-news-ph {
	display: block;
	width: 100%;
	height: 100%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpolygon points='18,2 31.9,10 31.9,26 18,34 4.1,26 4.1,10' fill='none' stroke='%230b4f4a' stroke-opacity='.28' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpolygon points='18,11 24,14.5 24,21.5 18,25 12,21.5 12,14.5' fill='%23e3a32b' fill-opacity='.55'/%3E%3C/svg%3E") center / 64px 64px no-repeat,
		var(--matis-soft);
}

.matis-news-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.matis-pagination {
	margin-top: 40px;
}

.matis-pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	padding: 10px 14px;
	margin: 0 4px 8px 0;
	text-align: center;
	border: 1px solid #c4d2cb;
	border-radius: 999px;
	color: var(--matis-ink);
	font-weight: 500;
}

.matis-pagination a.page-numbers:hover {
	border-color: var(--matis-green);
	text-decoration: none;
}

.matis-pagination .page-numbers.current {
	background: var(--matis-green);
	border-color: var(--matis-green);
	color: #fff;
}

/* ---- Estatísticas ---- */

.matis-stats {
	background: var(--matis-green);
	border-radius: 24px;
	padding: 48px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px 24px;
	justify-content: space-between;
}

.matis-stat {
	flex: 1 1 180px;
}

.matis-stat-number {
	display: block;
	font-family: var(--matis-display);
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
	color: #f2b84b;
}

.matis-stat-label {
	display: block;
	margin-top: 10px;
	font-size: 16px;
	color: #d5e6e0;
}

/* ---- Telas pequenas ---- */

@media (max-width: 600px) {
	.matis-project,
	.matis-pub {
		padding: 24px 20px;
	}

	.matis-stats {
		padding: 32px 24px;
	}

	.matis-stat-number {
		font-size: 44px;
	}

	.matis-dl {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.matis-dl dd {
		margin-bottom: 10px;
	}
}
