/**
 * Folha de estilo da revista — Nexus extensionis
 * Centro Universitário de Adamantina (FAI)
 *
 * Rodapé institucional.
 *
 * IMPORTANTE: a cor de fundo da faixa do rodapé NÃO é definida aqui. Ela é
 * uma diretiva própria do tema OJSBR — a opção "Cor de fundo do rodapé"
 * (footerBg), aplicada pelo tema em `.pkp_footer_content`. Para trocar o
 * fundo, use Configurações › Website › Aparência › Tema. Nada neste arquivo
 * declara `background` em `.pkp_footer_content`, para não sobrepor o tema.
 */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
.nx-footer {
	--nx-brand: #0054a2;          /* azul institucional FAI, do banner       */
	--nx-brand-dark: #00417c;
	--nx-text: #2b3440;           /* texto corrido sobre fundo claro         */
	--nx-muted: #5a6675;          /* apoio, metadados                        */
	--nx-rule: rgba(0, 84, 162, 0.18);

	color: var(--nx-text);
	font-size: 0.9375rem;
	line-height: 1.55;
	text-align: left;
}

/* O tema já paginou a faixa (.pkp_footer_content). Aqui só normalizamos o
   alinhamento herdado e a regra legada de float das classes r1/r2. */
.nx-footer p,
.nx-footer ul,
.nx-footer li {
	float: none !important;
	margin: 0;
	padding: 0;
}

.nx-footer ul {
	list-style: none;
}

/* --------------------------------------------------------------------------
   Grade principal — colapsa sozinha, sem media query, até uma coluna
   -------------------------------------------------------------------------- */
.nx-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 2rem 2.5rem;
	align-items: start;
}

/* A coluna de identidade tem mais texto: ganha o dobro de espaço quando há
   largura para isso, e volta a 1fr quando a grade colapsa. */
.nx-footer__col--brand {
	grid-column: auto / span 1;
}

@media (min-width: 60rem) {
	.nx-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	}
}

/* --------------------------------------------------------------------------
   Identidade
   -------------------------------------------------------------------------- */
.nx-footer__title {
	margin: 0 0 0.15rem;
	color: var(--nx-brand);
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.005em;
}

.nx-footer__subtitle {
	margin: 0 0 0.75rem;
	max-width: 34ch;
	color: var(--nx-text);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.nx-footer__meta {
	margin: 0 0 0.35rem;
	color: var(--nx-muted);
	font-size: 0.84rem;
	line-height: 1.5;
}

.nx-footer__issn {
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Cabeçalhos de coluna
   -------------------------------------------------------------------------- */
.nx-footer__heading {
	margin: 0 0 0.7rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--nx-rule);
	color: var(--nx-brand-dark);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Listas de links
   -------------------------------------------------------------------------- */
.nx-footer__links li + li {
	margin-top: 0.34rem;
}

.nx-footer__links a,
.nx-footer__contact a {
	color: var(--nx-text);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.nx-footer__links a:hover,
.nx-footer__links a:focus,
.nx-footer__contact a:hover,
.nx-footer__contact a:focus {
	color: var(--nx-brand);
	border-bottom-color: currentColor;
}

/* Foco visível para navegação por teclado. */
.nx-footer a:focus-visible {
	outline: 2px solid var(--nx-brand);
	outline-offset: 3px;
	border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Contato
   -------------------------------------------------------------------------- */
.nx-footer__contact p {
	margin-bottom: 0.5rem;
	color: var(--nx-muted);
	font-size: 0.875rem;
}

.nx-footer__contact p:last-child {
	margin-bottom: 0;
}

.nx-footer__contact strong {
	display: block;
	color: var(--nx-text);
	font-weight: 600;
}

/* Endereços e e-mails longos não podem estourar a coluna no celular. */
.nx-footer__contact a {
	overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Faixa inferior — licença
   -------------------------------------------------------------------------- */
.nx-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-top: 1.75rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--nx-rule);
	color: var(--nx-muted);
	font-size: 0.82rem;
}

.nx-footer__bottom p {
	margin: 0;
}

.nx-footer__bottom a {
	color: var(--nx-brand-dark);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.nx-footer__bottom a:hover,
.nx-footer__bottom a:focus {
	border-bottom-color: currentColor;
}

.nx-footer__license {
	max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Telas pequenas
   -------------------------------------------------------------------------- */
@media (max-width: 40rem) {
	.nx-footer {
		font-size: 0.9rem;
	}

	.nx-footer__grid {
		gap: 1.6rem;
	}

	.nx-footer__title {
		font-size: 1.1rem;
	}

	.nx-footer__subtitle {
		max-width: none;
	}

	.nx-footer__bottom {
		margin-top: 1.4rem;
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Impressão: o rodapé não precisa de links nem de cor. */
@media print {
	.nx-footer__links,
	.nx-footer__bottom {
		display: none;
	}
}
