/**
 * Design system e estilos públicos globais.
 */

:root {
	--pv-red: #c90000;
	--pv-red-dark: #980000;
	--pv-black: #111111;
	--pv-text: #222222;
	--pv-muted: #6b6b6b;
	--pv-border: #e5e5e5;
	--pv-background: #ffffff;
	--pv-soft-background: #f7f7f7;
	--pv-container: 1560px;
	--pv-space-1: 0.5rem;
	--pv-space-2: 0.75rem;
	--pv-space-3: 1rem;
	--pv-space-4: 1.5rem;
	--pv-space-5: 2rem;
	--pv-space-6: 3rem;
	--pv-radius-sm: 0.25rem;
	--pv-radius-md: 0.5rem;
	--pv-shadow-sm: 0 0.5rem 1.5rem rgba(17, 17, 17, 0.08);
	--pv-transition: 200ms ease;
	--pv-font: Inter, Manrope, "Segoe UI", Arial, sans-serif;
	--pv-text-xs: 0.75rem;
	--pv-text-sm: 0.875rem;
	--pv-text-base: 1rem;
	--pv-text-lg: 1.25rem;
	--pv-header-height: 4.5rem;
	color-scheme: light;
}

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

html {
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
}

body {
	-webkit-font-smoothing: antialiased;
	background: var(--pv-background);
	color: var(--pv-text);
	font-family: var(--pv-font);
	margin: 0;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

button,
input,
select,
textarea {
	font: inherit;
}

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

a {
	transition: color var(--pv-transition), background-color var(--pv-transition), border-color var(--pv-transition);
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--pv-red);
	outline-offset: 3px;
}

.site-main {
	display: flow-root;
	min-height: 1px;
	min-width: 0;
	overflow-x: clip;
}

/* Malha externa compartilhada pelos banners das editorias especiais. */
.pv-special-hero-shell {
	margin-inline: auto;
	max-width: var(--pv-container);
	padding-inline: 1rem;
	width: 100%;
}

@media (min-width: 40rem) {
	.pv-special-hero-shell { padding-inline: 1.5rem; }
}

@media (min-width: 60rem) {
	.pv-special-hero-shell { padding-inline: 2rem; }
}

.pv-admin-guidance {
	background: #fff8e5;
	border-left: 4px solid #dba617;
	color: var(--pv-text);
	font-size: var(--pv-text-sm);
	margin: 2rem auto;
	max-width: calc(var(--pv-container) - 4rem);
	padding: 0.875rem 1rem;
}

.site-footer {
	background: #06141e;
	color: #b9c4cb;
	font-size: 0.8125rem;
	margin-top: clamp(2rem, 5vw, 4rem);
}

.site-footer__container {
	margin-inline: auto;
	max-width: var(--pv-container);
	padding: clamp(2.5rem, 4vw, 4rem) 1rem 1.5rem;
}

.site-footer__columns {
	display: grid;
	gap: 2rem;
}

.site-footer__columns nav {
	display: grid;
	align-content: start;
	gap: 0.6rem;
}

.site-footer__columns nav strong {
	color: #f1c84b;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	margin-bottom: 0.25rem;
	text-transform: uppercase;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover { color: #f1c84b; text-decoration: underline; }

.site-footer__brand > a {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 800;
}

.site-footer__brand > p { line-height: 1.55; margin: 0.6rem 0 1.25rem; max-width: 18rem; }

.site-footer__navigation > div {
	display: grid;
	gap: 0.6rem 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
	margin-top: 2rem;
	padding-top: 1.25rem;
}

.site-footer p { margin: 0; }

@media (min-width: 40rem) {
	.site-footer__container { padding-inline: 1.5rem; }
}

@media (min-width: 60rem) {
	.site-footer__container { padding-inline: 2rem; }
	.site-footer__columns { grid-template-columns: minmax(13rem, 1fr) minmax(18rem, 1.5fr) minmax(11rem, 0.8fr); }
	.site-footer__navigation > div { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(3, auto); }
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
