/* ==========================================================================
   Sargento Martins — tokens, reset e pecas comuns a varias dobras
   Medidas do prototipo (wp-tema/*.dc.html). Layout "desktop" a partir de 1200px.
   ========================================================================== */

:root {
	--sm-azul: #1f5fd6;
	--sm-azul-2: #3b7ff0;
	--sm-azul-3: #2a6ae6;
	--sm-azul-4: #1f5bd3;
	--sm-azul-escuro: #1e4fb5;
	--sm-azul-claro: #a9c6fb;
	--sm-ouro: #f5b400;
	--sm-texto: #1d2433;
	--sm-texto-2: #3a3f4a;
	--sm-texto-3: #2b3242;
	--sm-cinza: #6b7383;
	--sm-cinza-2: #8a93a3;
	--sm-cinza-3: #9aa0aa;
	--sm-cinza-4: #b4bac6;
	--sm-cinza-5: #c6cad1;
	--sm-linha: #e6e9ef;
	--sm-fundo-cinza: #f4f5f7;
	--sm-grad-azul: linear-gradient(90deg, #1f5fd6, #3b7ff0);
	--sm-grad-faixa: linear-gradient(90deg, #1f5bd3, #2a6ae6);
	--sm-grad-contorno-azul: linear-gradient(90deg, #185ad8, #2e74ee 55.7%, #4088ff);
	--sm-grad-contorno-ouro: linear-gradient(90deg, #f3ab00, #ffebba);
	--sm-fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--sm-script: 'Mrs Saint Delafield', cursive;
	--sm-largura: 1128px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body.sm-body {
	margin: 0;
	background: #fff;
	color: var(--sm-texto);
	font-family: var(--sm-fonte);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/*
 * Reset das dobras com :where(), que nao soma especificidade: qualquer regra
 * de componente (.sm-algo) vence o reset, e o reset vence o tema pai.
 */
:where(.sm-body) :where([class^="sm-"], [class*=" sm-"]),
:where(.sm-body) :where([class^="sm-"], [class*=" sm-"])::before,
:where(.sm-body) :where([class^="sm-"], [class*=" sm-"])::after {
	box-sizing: border-box;
}

:where(.sm-body) :where([class^="sm-"], [class*=" sm-"]) :where(a),
:where(.sm-body) :where(a[class^="sm-"], a[class*=" sm-"]) {
	text-decoration: none;
}

/* Aqui o .sm-body fica fora do :where para vencer os seletores de tag do Hello. */
.sm-body :where([class^="sm-"], [class*=" sm-"]) :where(h1, h2, h3, h4, p, figure) {
	margin: 0;
	font-family: var(--sm-fonte);
}

/* O Hello pinta botoes em foco de rosa (#c36); as dobras tem o proprio foco. */
.sm-body :is(.sm-pilula, .sm-header__abrir, .sm-menu-movel__fechar, .sm-modal-video__fechar, .sm-form__enviar):focus {
	outline: none;
}

.sm-body :is(.sm-pilula, .sm-header__abrir, .sm-menu-movel__fechar, .sm-modal-video__fechar, .sm-form__enviar):focus-visible {
	outline: 2px solid var(--sm-ouro);
	outline-offset: 2px;
}

.sm-body .sm-pilula:focus {
	background: #fff;
	color: var(--sm-azul);
}

.sm-body .sm-pilula.is-ativa:focus {
	background: var(--sm-azul);
	color: #fff;
}

.sm-body .sm-menu-movel__fechar:focus,
.sm-body .sm-modal-video__fechar:focus {
	background: transparent;
	color: #fff;
}

.sm-body .sm-header__abrir:focus {
	background: var(--sm-azul);
}

.sm-body .sm-form__enviar:focus {
	background: #3cc46a;
	color: #fff;
}

/* Largura padrao do conteudo: 1128px com respiro de 24px. */
.sm-container {
	max-width: var(--sm-largura);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: content-box !important;
}

@media (max-width: 1199px) {
	.sm-container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

.sm-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   Botoes
   -------------------------------------------------------------------------- */
.sm-botao,
.sm-body a.sm-botao {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sm-grad-azul);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	padding: 13px 32px;
	border-radius: 8px;
	white-space: nowrap;
	transition: filter .2s, transform .2s, color .2s;
}

.sm-body a.sm-botao:hover,
.sm-body a.sm-botao:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.sm-botao--ouro,
.sm-body a.sm-botao--ouro,
.sm-body a.sm-botao--ouro:hover {
	background: var(--sm-ouro);
	color: var(--sm-azul);
	font-size: 16px;
	padding: 16px 42px;
}

.sm-botao--largo,
.sm-body a.sm-botao--largo {
	font-size: 16px;
	padding: 15px 48px;
	min-width: 280px;
}

/* --------------------------------------------------------------------------
   Cabecalho de secao: "ACADEMICO / Trabalhos academicos"
   -------------------------------------------------------------------------- */
.sm-secao-cab {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
}

.sm-secao-cab__sobre {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 5px;
	color: var(--sm-cinza-4);
	text-transform: uppercase;
}

.sm-body .sm-secao-cab__titulo {
	margin: 12px 0 0;
	font-size: clamp(28px, 5vw, 40px);
	line-height: 1.1;
	letter-spacing: -.6px;
	font-weight: 700;
	color: var(--sm-azul);
}

.sm-secao-cab__titulo span {
	color: var(--sm-ouro);
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Contorno decorativo (tracos azul e dourado)
   Borda em degrade com cantos grandes: mascara recorta o miolo.
   -------------------------------------------------------------------------- */
.sm-contorno {
	position: absolute;
	display: block;
	pointer-events: none;
	padding: 1.2px;
	border-radius: 128px 999px 999px 4px;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	z-index: 0;
}

.sm-contorno--azul {
	background: var(--sm-grad-contorno-azul);
}

.sm-contorno--ouro {
	background: var(--sm-grad-contorno-ouro);
}

@media (max-width: 1199px) {
	.sm-contorno {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Placeholder de foto
   -------------------------------------------------------------------------- */
.sm-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 120px;
	background: repeating-linear-gradient(135deg, #eef1f6 0 12px, #e3e8f0 12px 24px);
	color: #8a93a3;
	font: 600 11px/1 var(--sm-fonte);
	letter-spacing: 2px;
	text-transform: uppercase;
}

.sm-vazio {
	padding: 40px 0;
	text-align: center;
	color: var(--sm-cinza-3);
	font-size: 16px;
}

/* --------------------------------------------------------------------------
   Card de noticia
   -------------------------------------------------------------------------- */
.sm-card,
.sm-body a.sm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--sm-linha);
	border-radius: 24px;
	overflow: hidden;
	color: var(--sm-cinza);
	transition: box-shadow .25s, transform .25s;
}

.sm-body a.sm-card:hover {
	color: var(--sm-cinza);
	box-shadow: 0 18px 40px rgba(20, 40, 90, .10);
	transform: translateY(-3px);
}

.sm-card__foto {
	position: relative;
	display: block;
	aspect-ratio: 358 / 310;
	background: #eef1f6;
}

.sm-body .sm-card__img,
.sm-card__foto .sm-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: 24px 24px 0 0;
}

.sm-card__tag {
	position: absolute;
	left: 34px;
	bottom: -1px;
	background: var(--sm-azul-3);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.4;
	padding: 5px 16px;
	border-radius: 4px 4px 0 0;
	text-transform: uppercase;
}

.sm-card__titulo {
	display: block;
	flex: 1;
	padding: 30px 26px 8px;
	font-size: 19px;
	line-height: 1.45;
	font-weight: 300;
}

.sm-card__mais {
	display: block;
	padding: 0 26px 14px;
	text-align: right;
	color: var(--sm-ouro);
	font-size: 28px;
	font-weight: 300;
	line-height: 1.2;
}

@media (max-width: 1199px) {
	.sm-card__foto {
		aspect-ratio: 358 / 290;
	}

	.sm-body .sm-card__img,
	.sm-card__foto .sm-placeholder {
		border-radius: 0;
	}

	.sm-card__tag {
		left: 24px;
		bottom: 0;
	}

	.sm-card__titulo {
		padding: 24px 24px 8px;
		font-size: 18px;
	}

	.sm-card__mais {
		padding: 0 24px 14px;
	}
}

/* --------------------------------------------------------------------------
   Linha de trabalho academico
   -------------------------------------------------------------------------- */
.sm-trabalhos {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--sm-linha);
}

.sm-trabalho,
.sm-body a.sm-trabalho {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 32px);
	padding: 20px 8px;
	border-bottom: 1px solid var(--sm-linha);
	color: var(--sm-texto-2);
	border-radius: 12px;
	transition: background .2s;
}

.sm-body a.sm-trabalho:hover,
.sm-body a.sm-trabalho:focus-visible {
	background: #f4f7fd;
	color: var(--sm-texto-2);
}

.sm-trabalho[hidden] {
	display: none;
}

.sm-trabalho__data {
	flex: 0 0 auto;
	width: 72px;
	text-align: center;
}

.sm-trabalho__dia {
	display: block;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--sm-azul);
}

.sm-trabalho__mes {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	color: var(--sm-cinza-3);
	white-space: nowrap;
}

.sm-trabalho__texto {
	flex: 1 1 auto;
	min-width: 0;
}

.sm-trabalho__titulo {
	display: block;
	font-size: clamp(16px, 2.2vw, 19px);
	line-height: 1.4;
	font-weight: 500;
	color: var(--sm-texto-3);
	text-wrap: pretty;
}

.sm-trabalho__publicado {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--sm-cinza-3);
}

.sm-trabalho__acao {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sm-trabalho__pdf {
	background: #fdf3d6;
	color: #b07d00;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	padding: 5px 10px;
	border-radius: 5px;
}

.sm-trabalho__seta {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--sm-azul);
	transition: transform .2s;
}

.sm-trabalho__seta::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 9px;
	height: 9px;
	margin: -5px 0 0 -6px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: rotate(45deg);
}

.sm-body a.sm-trabalho:hover .sm-trabalho__seta {
	transform: translateX(3px);
}

.sm-trabalho[aria-disabled="true"] {
	cursor: default;
}

.sm-trabalho[aria-disabled="true"] .sm-trabalho__acao {
	opacity: .35;
}

@media (max-width: 560px) {
	.sm-trabalho__pdf {
		display: none;
	}

	.sm-trabalho__seta {
		width: 32px;
		height: 32px;
	}
}

/* --------------------------------------------------------------------------
   Pilulas (filtro por ano) e paginacao
   -------------------------------------------------------------------------- */
.sm-pilula {
	height: 40px;
	padding: 0 18px;
	border-radius: 20px;
	border: 1.5px solid #c9d6f3;
	background: #fff;
	color: var(--sm-azul);
	font: 600 14px var(--sm-fonte);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}

.sm-pilula:hover {
	border-color: var(--sm-azul);
	background: #fff;
	color: var(--sm-azul);
}

.sm-pilula.is-ativa,
.sm-pilula.is-ativa:hover {
	background: var(--sm-azul);
	border-color: var(--sm-azul);
	color: #fff;
}

.sm-paginacao {
	margin-top: 48px;
}

.sm-paginacao ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-paginacao .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 22px;
	border: 1.5px solid #c9d6f3;
	color: var(--sm-azul);
	font-weight: 600;
	font-size: 15px;
}

.sm-paginacao a.page-numbers:hover {
	border-color: var(--sm-azul);
	color: var(--sm-azul);
}

.sm-paginacao .page-numbers.current {
	background: var(--sm-azul);
	border-color: var(--sm-azul);
	color: #fff;
}

.sm-paginacao .page-numbers.dots {
	border-color: transparent;
}

/* Legenda de foto: "Tation ullamcorper... | Foto: Fulano de tal" */
.sm-legenda {
	margin-top: 16px;
	font-size: 11px;
	font-style: italic;
	color: #a8aeb8;
	line-height: 1.5;
}
