/**
 * Gov Moderno — estilos principais.
 *
 * Carregado após o style.css do tema pai: reaproveita as variáveis do Design System
 * Gov.br (cores, Rawline) e adiciona o layout de portal municipal.
 *
 * Sumário
 *  1. Tokens
 *  2. Base e utilitários
 *  3. Header (skiplinks, topbar, masthead, navegação)
 *  4. Home (hero, acesso rápido, notícias, documentos, transparência)
 *  5. Páginas internas (page header, listagens, artigo, documentos)
 *  6. Rodapé
 *  7. Escala de fonte, alto contraste, movimento reduzido e impressão
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--gm-primary: var(--blue-warm-vivid-70, #1351b4);
	--gm-primary-hover: var(--blue-warm-vivid-80, #0c326f);
	--gm-primary-dark: var(--blue-warm-vivid-90, #071d41);
	--gm-primary-soft: var(--blue-warm-vivid-5, #edf5ff);
	--gm-primary-tint: var(--blue-warm-vivid-10, #d4e5ff);
	--gm-accent: var(--yellow-vivid-20, #ffcd07);
	--gm-success: var(--green-cool-vivid-50, #168821);

	--gm-text: var(--gray-80, #333);
	--gm-text-muted: var(--gray-60, #636363);
	--gm-border: var(--gray-10, #e6e6e6);
	--gm-surface: #fff;
	--gm-surface-muted: #f5f7fb;

	--gm-font: var(--font-family-base, Rawline, Raleway, sans-serif);

	--gm-radius-sm: 6px;
	--gm-radius: 12px;
	--gm-radius-lg: 20px;
	--gm-shadow-sm: 0 1px 2px rgba(7, 29, 65, .06), 0 1px 3px rgba(7, 29, 65, .08);
	--gm-shadow: 0 4px 12px rgba(7, 29, 65, .08), 0 2px 4px rgba(7, 29, 65, .04);
	--gm-shadow-lg: 0 18px 40px rgba(7, 29, 65, .14);

	--gm-container: 1240px;
	--gm-gutter: 16px;
	--gm-section-space: clamp(40px, 6vw, 72px);
	--gm-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
	:root {
		--gm-gutter: 24px;
	}
}

/* ==========================================================================
   2. Base e utilitários
   ========================================================================== */

body.gm-theme {
	background: var(--gm-surface);
	color: var(--gm-text);
	font-family: var(--gm-font);
	-webkit-font-smoothing: antialiased;
}

.gm-theme .site-main {
	padding: 0;
	max-width: none;
}

.gm-theme .site-main > * {
	margin-top: 0;
	margin-bottom: 0;
}

.gm-theme .site-main:focus {
	outline: none;
}

.gm-container {
	width: 100%;
	max-width: calc(var(--gm-container) + 2 * var(--gm-gutter));
	margin-inline: auto;
	padding-inline: var(--gm-gutter);
}

.gm-section {
	padding-block: var(--gm-section-space);
}

.gm-section--muted {
	background: var(--gm-surface-muted);
}

.gm-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}

.gm-section__title {
	position: relative;
	margin: 0;
	padding-bottom: 12px;
	color: var(--gm-primary-dark);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.gm-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--gm-primary) 0 60%, var(--gm-accent) 60% 100%);
}

.gm-link-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--gm-primary);
	font-weight: 600;
	text-decoration: none;
}

.gm-link-more i {
	transition: transform .2s var(--gm-ease);
}

.gm-link-more:hover i,
.gm-link-more:focus-visible i {
	transform: translateX(4px);
}

.gm-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--gm-primary);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}

.gm-button:hover,
.gm-button:focus-visible {
	background: var(--gm-primary-hover);
	color: #fff;
}

.gm-theme :focus-visible {
	outline: 3px solid var(--gm-accent);
	outline-offset: 2px;
}

.gm-theme .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gm-empty {
	margin: 0;
	padding: 24px;
	border: 1px dashed var(--gm-border);
	border-radius: var(--gm-radius);
	color: var(--gm-text-muted);
	text-align: center;
}

/* Busca inline (searchform.php e filtros) */
.gm-inline-search {
	display: flex;
	align-items: center;
	max-width: 480px;
	border: 1px solid var(--gm-border);
	border-radius: 999px;
	background: var(--gm-surface);
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}

.gm-inline-search:focus-within {
	border-color: var(--gm-primary);
	box-shadow: 0 0 0 3px var(--gm-primary-tint);
}

.gm-inline-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 18px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: var(--gm-text);
	box-shadow: none;
}

.gm-inline-search input[type="search"]:focus {
	outline: none;
}

.gm-inline-search button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--gm-primary);
	font-size: 1.1rem;
}

/* ==========================================================================
   3. Header
   ========================================================================== */

/* Skiplinks: visíveis apenas no foco */
.gm-skiplinks {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	display: flex;
	gap: 4px;
	padding: 8px;
	transform: translateY(-120%);
	transition: transform .2s;
}

.gm-skiplinks:focus-within {
	transform: translateY(0);
}

.gm-skiplinks a {
	padding: 8px 14px;
	border-radius: var(--gm-radius-sm);
	background: var(--gm-primary-dark);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.gm-skiplinks kbd {
	margin-left: 4px;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--gm-accent);
	color: var(--gm-primary-dark);
	font-family: inherit;
}

/* Topbar */
.gm-topbar {
	background: var(--gm-primary-dark);
	color: #fff;
	font-size: .9rem;
}

.gm-topbar__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 40px;
}

.gm-topbar__govbr img {
	display: block;
	width: auto;
	height: 20px;
	filter: brightness(0) invert(1);
}

.gm-topbar__links {
	display: none;
	flex: 1;
}

.gm-topbar__links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-topbar a {
	color: #fff;
	text-decoration: none;
	opacity: .9;
}

.gm-topbar a:hover,
.gm-topbar a:focus-visible {
	opacity: 1;
	text-decoration: underline;
}

.gm-a11y {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: auto;
}

.gm-a11y__label {
	display: none;
	margin-right: 8px;
	opacity: .75;
}

.gm-a11y__btn {
	display: inline-grid;
	place-items: center;
	min-width: 32px;
	height: 28px;
	padding: 0 6px;
	border: 0;
	border-radius: var(--gm-radius-sm);
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.gm-a11y__btn:hover,
.gm-a11y__btn:focus-visible,
.gm-a11y__btn[aria-pressed="true"] {
	background: rgba(255, 255, 255, .14);
	opacity: 1;
	text-decoration: none;
}

@media (min-width: 992px) {
	.gm-topbar__links {
		display: block;
	}

	.gm-a11y__label {
		display: inline;
	}
}

/* Masthead */
.gm-masthead {
	position: relative;
	z-index: 20;
	background: var(--gm-surface);
	border-bottom: 1px solid var(--gm-border);
}

.gm-masthead__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-block: 14px;
}

.gm-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	color: var(--gm-primary-dark);
	text-decoration: none;
}

.gm-brand:hover {
	text-decoration: none;
}

.gm-brand__logo {
	flex-shrink: 0;
	width: auto;
	height: 52px;
	max-width: 160px;
	object-fit: contain;
}

.gm-brand__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gm-brand__type {
	color: var(--gm-text-muted);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.gm-theme .gm-brand__name {
	margin: 0;
	color: var(--gm-primary-dark);
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.gm-search {
	display: none;
	flex: 1;
	align-items: center;
	max-width: 440px;
	margin-left: auto;
	border: 1px solid var(--gm-border);
	border-radius: 999px;
	background: var(--gm-surface-muted);
	transition: border-color .2s, box-shadow .2s, background .2s;
}

.gm-search:focus-within {
	border-color: var(--gm-primary);
	background: var(--gm-surface);
	box-shadow: 0 0 0 3px var(--gm-primary-tint);
}

.gm-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 18px;
	border: 0;
	background: transparent;
	color: var(--gm-text);
	font: inherit;
	font-size: 1rem;
	box-shadow: none;
}

.gm-search input[type="search"]:focus {
	outline: none;
}

.gm-search button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--gm-primary);
	font-size: 1.1rem;
}

.gm-masthead__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.gm-social {
	display: none;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--gm-primary);
	text-decoration: none;
	transition: background .2s, color .2s;
}

.gm-social a:hover,
.gm-social a:focus-visible {
	background: var(--gm-primary-soft);
}

.gm-citizen {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--gm-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s;
}

.gm-citizen:hover,
.gm-citizen:focus-visible {
	background: var(--gm-primary-hover);
	color: #fff;
	text-decoration: none;
}

.gm-citizen i {
	font-size: 1.25rem;
}

.gm-citizen span {
	display: none;
}

.gm-citizen--user {
	padding-left: 4px;
}

.gm-citizen--user img {
	border-radius: 50%;
}

.gm-user {
	position: relative;
}

.gm-user__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 180px;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	background: var(--gm-surface);
	box-shadow: var(--gm-shadow-lg);
	list-style: none;
}

.gm-user__menu a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--gm-radius-sm);
	color: var(--gm-text);
	text-decoration: none;
}

.gm-user__menu a:hover,
.gm-user__menu a:focus-visible {
	background: var(--gm-primary-soft);
	color: var(--gm-primary);
}

.gm-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--gm-border);
	border-radius: 999px;
	background: var(--gm-surface);
	color: var(--gm-primary-dark);
	font: inherit;
	font-weight: 600;
}

.gm-menu-toggle span {
	display: none;
}

@media (min-width: 576px) {
	.gm-citizen span,
	.gm-menu-toggle span {
		display: inline;
	}

	.gm-brand__logo {
		height: 60px;
	}

	.gm-theme .gm-brand__name {
		font-size: 1.6rem;
	}
}

@media (min-width: 992px) {
	.gm-search {
		display: flex;
	}

	.gm-masthead__actions {
		margin-left: 0;
	}

	.gm-social {
		display: flex;
	}

	.gm-menu-toggle {
		display: none;
	}
}

/* Navegação principal */
.gm-nav {
	position: relative;
	z-index: 15;
	background: var(--gm-surface);
	box-shadow: var(--gm-shadow-sm);
}

.gm-nav__menu,
.gm-nav__menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-nav__menu a {
	display: flex;
	align-items: center;
	color: var(--gm-primary-dark);
	font-weight: 600;
	text-decoration: none;
}

.gm-nav__empty {
	margin: 0;
	padding: 12px 0;
}

.gm-nav .menu-item {
	position: relative;
}

.gm-submenu-toggle {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--gm-radius-sm);
	background: transparent;
	color: var(--gm-primary);
}

.gm-submenu-toggle i {
	transition: transform .2s var(--gm-ease);
}

.gm-submenu-toggle[aria-expanded="true"] i {
	transform: rotate(180deg);
}

/* Mobile: gaveta abaixo do header */
@media (max-width: 991.98px) {
	.gm-nav {
		display: none;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		border-top: 1px solid var(--gm-border);
	}

	.gm-nav.is-open {
		display: block;
		animation: gm-slide-down .25s var(--gm-ease);
	}

	.gm-nav__menu {
		padding-block: 8px;
	}

	.gm-nav__menu > .menu-item {
		border-bottom: 1px solid var(--gm-border);
	}

	.gm-nav__menu > .menu-item:last-child {
		border-bottom: 0;
	}

	.gm-nav .menu-item {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.gm-nav .menu-item > a {
		flex: 1;
		min-height: 48px;
		padding: 10px 4px;
	}

	.gm-nav .sub-menu {
		display: none;
		flex-basis: 100%;
		padding: 0 0 8px 16px;
		border-left: 3px solid var(--gm-primary-tint);
	}

	.gm-nav .menu-item.is-open > .sub-menu {
		display: block;
	}

	.gm-nav .sub-menu a {
		min-height: 40px;
		font-weight: 500;
	}
}

/* Desktop: barra horizontal com dropdowns */
@media (min-width: 992px) {
	.gm-nav__menu {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	.gm-nav__menu > .menu-item {
		display: flex;
		align-items: center;
	}

	.gm-nav__menu > .menu-item > a {
		position: relative;
		min-height: 52px;
		padding: 0 14px;
	}

	.gm-nav__menu > .menu-item > a::after {
		content: "";
		position: absolute;
		left: 14px;
		right: 14px;
		bottom: 0;
		height: 3px;
		border-radius: 3px 3px 0 0;
		background: var(--gm-primary);
		transform: scaleX(0);
		transition: transform .2s var(--gm-ease);
	}

	.gm-nav__menu > .menu-item:hover > a::after,
	.gm-nav__menu > .menu-item > a:focus-visible::after,
	.gm-nav__menu > .current-menu-item > a::after,
	.gm-nav__menu > .current-menu-ancestor > a::after {
		transform: scaleX(1);
	}

	.gm-nav__menu > .menu-item-has-children > a {
		padding-right: 2px;
	}

	.gm-nav__menu > .menu-item > .gm-submenu-toggle {
		width: 28px;
		margin-right: 6px;
		font-size: .75rem;
	}

	.gm-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 30;
		min-width: 260px;
		padding: 8px;
		border: 1px solid var(--gm-border);
		border-radius: 0 0 var(--gm-radius) var(--gm-radius);
		background: var(--gm-surface);
		box-shadow: var(--gm-shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .18s, transform .18s var(--gm-ease), visibility 0s .18s;
	}

	.gm-nav .menu-item:hover > .sub-menu,
	.gm-nav .menu-item.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: opacity .18s, transform .18s var(--gm-ease);
	}

	.gm-nav .sub-menu .sub-menu {
		top: -9px;
		left: 100%;
		border-radius: var(--gm-radius);
	}

	.gm-nav .sub-menu .menu-item {
		display: flex;
		align-items: center;
	}

	.gm-nav .sub-menu a {
		flex: 1;
		padding: 10px 12px;
		border-radius: var(--gm-radius-sm);
		font-weight: 500;
	}

	.gm-nav .sub-menu a:hover,
	.gm-nav .sub-menu a:focus-visible {
		background: var(--gm-primary-soft);
		color: var(--gm-primary);
	}

	.gm-nav .sub-menu .gm-submenu-toggle i {
		transform: rotate(-90deg);
	}
}

@keyframes gm-slide-down {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* ==========================================================================
   4. Home
   ========================================================================== */

/* Hero */
.gm-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 8vw, 96px) clamp(88px, 11vw, 128px);
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(255, 205, 7, .18), transparent 60%),
		radial-gradient(900px 500px at -10% 110%, rgba(38, 112, 232, .45), transparent 60%),
		linear-gradient(135deg, var(--gm-primary-dark) 0%, var(--gm-primary-hover) 55%, var(--gm-primary) 100%);
	color: #fff;
	text-align: center;
}

.gm-hero--image {
	background:
		linear-gradient(180deg, rgba(7, 29, 65, .55) 0%, rgba(7, 29, 65, .85) 100%),
		var(--gm-hero-bg) center / cover no-repeat;
}

.gm-hero__inner {
	position: relative;
	max-width: 860px;
}

.gm-theme .gm-hero__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.gm-hero__text {
	max-width: 640px;
	margin: 0 auto 28px;
	color: rgba(255, 255, 255, .88);
	font-size: 1.15rem;
}

.gm-hero__search {
	display: flex;
	align-items: center;
	max-width: 680px;
	margin: 0 auto;
	padding: 6px 6px 6px 20px;
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--gm-shadow-lg);
}

.gm-hero__search > i {
	color: var(--gm-text-muted);
}

.gm-hero__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: var(--gm-text);
	font: inherit;
	font-size: 1.1rem;
	box-shadow: none;
}

.gm-hero__search input[type="search"]:focus {
	outline: none;
}

.gm-hero__search button {
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--gm-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	transition: background .2s;
}

.gm-hero__search button:hover,
.gm-hero__search button:focus-visible {
	background: var(--gm-primary-hover);
}

.gm-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
	margin-top: 20px;
	font-size: .95rem;
}

.gm-hero__tags > span {
	opacity: .8;
}

.gm-hero__tags ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-hero__tags a {
	display: inline-block;
	padding: 4px 14px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	transition: background .2s, border-color .2s;
}

.gm-hero__tags a:hover,
.gm-hero__tags a:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, .12);
}

/* Acesso rápido — sobrepõe a base do hero */
.gm-quick {
	position: relative;
	z-index: 2;
	margin-top: -64px;
}

.gm-quick__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-quick__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 100%;
	min-height: 128px;
	padding: 20px 12px;
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	background: var(--gm-surface);
	box-shadow: var(--gm-shadow);
	color: var(--gm-primary-dark);
	text-align: center;
	text-decoration: none;
	transition: transform .2s var(--gm-ease), box-shadow .2s, border-color .2s;
}

.gm-quick__item:hover,
.gm-quick__item:focus-visible {
	border-color: var(--gm-primary-tint);
	box-shadow: var(--gm-shadow-lg);
	color: var(--gm-primary);
	text-decoration: none;
	transform: translateY(-4px);
}

.gm-quick__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--gm-primary-soft);
	color: var(--gm-primary);
	font-size: 1.6rem;
	transition: background .2s, color .2s;
}

.gm-quick__item:hover .gm-quick__icon,
.gm-quick__item:focus-visible .gm-quick__icon {
	background: var(--gm-primary);
	color: #fff;
}

.gm-quick__label {
	font-weight: 700;
	line-height: 1.25;
}

@media (min-width: 576px) {
	.gm-quick__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.gm-quick__grid {
		grid-template-columns: repeat(var(--gm-quick-cols, 8), minmax(0, 1fr));
	}
}

/* Cards de notícia */
.gm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	background: var(--gm-surface);
	transition: box-shadow .2s, transform .2s var(--gm-ease);
}

.gm-card:hover,
.gm-card:focus-within {
	box-shadow: var(--gm-shadow-lg);
	transform: translateY(-2px);
}

.gm-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--gm-primary-soft);
}

.gm-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--gm-ease);
}

.gm-card:hover .gm-card__media img {
	transform: scale(1.04);
}

.gm-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--gm-primary-tint);
	font-size: 3rem;
}

.gm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.gm-card__kicker {
	align-self: flex-start;
	color: var(--gm-primary);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-decoration: none;
	text-transform: uppercase;
}

.gm-theme .gm-card__title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}

.gm-card__title a {
	color: var(--gm-primary-dark);
	text-decoration: none;
}

/* Cartão inteiro clicável */
.gm-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.gm-card__title a:focus-visible {
	outline: none;
}

.gm-card:focus-within {
	outline: 3px solid var(--gm-accent);
	outline-offset: 2px;
}

.gm-card:hover .gm-card__title a {
	color: var(--gm-primary);
}

.gm-card__excerpt {
	margin: 0;
	color: var(--gm-text-muted);
	line-height: 1.55;
}

.gm-card__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 4px;
	color: var(--gm-text-muted);
	font-size: .875rem;
}

/* Variante destaque */
.gm-card--featured .gm-card__media {
	aspect-ratio: 16 / 9;
}

.gm-theme .gm-card--featured .gm-card__title {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	line-height: 1.2;
}

@media (min-width: 992px) {
	.gm-card--featured {
		display: grid;
		grid-template-rows: 1fr;
		min-height: 100%;
		border: 0;
		color: #fff;
	}

	.gm-card--featured .gm-card__media {
		grid-area: 1 / 1;
		aspect-ratio: auto;
		min-height: 440px;
	}

	.gm-card--featured .gm-card__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(7, 29, 65, 0) 30%, rgba(7, 29, 65, .92) 100%);
	}

	.gm-card--featured .gm-card__body {
		position: relative;
		grid-area: 1 / 1;
		justify-content: flex-end;
		padding: 32px;
	}

	.gm-card--featured .gm-card__kicker {
		padding: 4px 12px;
		border-radius: 999px;
		background: var(--gm-accent);
		color: var(--gm-primary-dark);
	}

	.gm-card--featured .gm-card__title a,
	.gm-card--featured:hover .gm-card__title a {
		color: #fff;
	}

	.gm-card--featured .gm-card__excerpt,
	.gm-card--featured .gm-card__date {
		color: rgba(255, 255, 255, .85);
	}

	.gm-card--featured .gm-card__date {
		margin-top: 0;
	}

	/* Sem imagem destacada: fundo escuro para manter o texto legível */
	.gm-card--featured .gm-card__media:has(.gm-card__placeholder) {
		background: linear-gradient(135deg, var(--gm-primary-hover), var(--gm-primary));
	}

	.gm-card--featured .gm-card__placeholder {
		align-items: start;
		justify-items: end;
		padding: 32px;
		color: rgba(255, 255, 255, .15);
		font-size: 6rem;
	}
}

/* Variante compacta (lista lateral) */
.gm-card--compact {
	flex-direction: row;
	align-items: stretch;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.gm-card--compact:hover,
.gm-card--compact:focus-within {
	box-shadow: none;
	transform: none;
}

.gm-card--compact .gm-card__media {
	flex: 0 0 112px;
	aspect-ratio: 1;
	border-radius: var(--gm-radius);
}

.gm-card--compact .gm-card__body {
	gap: 4px;
	padding: 2px 0 2px 16px;
}

.gm-theme .gm-card--compact .gm-card__title {
	font-size: 1.05rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Layout de notícias */
.gm-news__layout {
	display: grid;
	gap: 24px;
}

.gm-news__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.gm-news__list > .gm-card + .gm-card {
	padding-top: 20px;
	border-top: 1px solid var(--gm-border);
}

.gm-news__grid {
	display: grid;
	gap: 24px;
	margin-top: 32px;
}

.gm-news__grid--listing {
	margin-top: 0;
}

@media (min-width: 768px) {
	.gm-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.gm-news__layout {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
		gap: 32px;
	}

	.gm-news__layout--single {
		grid-template-columns: minmax(0, 1fr);
	}

	.gm-news__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Documentos + transparência */
.gm-docs__layout {
	display: grid;
	gap: 32px;
}

@media (min-width: 992px) {
	.gm-docs__layout {
		grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
		align-items: start;
	}
}

.gm-tabs__list {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	padding: 4px;
	border-radius: 999px;
	background: var(--gm-surface);
	box-shadow: var(--gm-shadow-sm);
	overflow-x: auto;
	scrollbar-width: none;
}

.gm-tabs__tab {
	flex-shrink: 0;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--gm-text-muted);
	font: inherit;
	font-weight: 600;
	transition: background .2s, color .2s;
}

.gm-tabs__tab:hover {
	color: var(--gm-primary);
}

.gm-tabs__tab[aria-selected="true"] {
	background: var(--gm-primary);
	color: #fff;
}

.gm-doc-list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	background: var(--gm-surface);
	list-style: none;
}

.gm-doc {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	transition: background .2s;
}

.gm-doc + .gm-doc {
	border-top: 1px solid var(--gm-border);
}

.gm-doc:hover {
	background: var(--gm-primary-soft);
}

.gm-doc__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--gm-primary-soft);
	color: var(--gm-primary);
	font-size: 1.25rem;
}

.gm-doc__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gm-doc__meta {
	color: var(--gm-text-muted);
	font-size: .85rem;
	font-weight: 600;
}

.gm-doc__title {
	color: var(--gm-primary-dark);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.gm-doc__title::after {
	content: "";
	position: absolute;
	inset: 0;
}

.gm-doc__title:hover {
	color: var(--gm-primary);
	text-decoration: underline;
}

.gm-doc__download {
	position: relative;
	z-index: 1;
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--gm-primary);
	transition: background .2s, color .2s;
}

.gm-doc__download:hover,
.gm-doc__download:focus-visible {
	background: var(--gm-primary);
	color: #fff;
}

.gm-doc-list--card + .gm-doc-list--card {
	margin-top: 12px;
}

.gm-news__grid--listing .gm-doc-list--card {
	margin-top: 0;
}

/* Painel de transparência */
.gm-transparency {
	padding: 28px;
	border-radius: var(--gm-radius-lg);
	background: linear-gradient(160deg, var(--gm-primary-dark), var(--gm-primary-hover));
	color: #fff;
	box-shadow: var(--gm-shadow-lg);
}

.gm-theme .gm-transparency__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
}

.gm-transparency__title i {
	color: var(--gm-accent);
}

.gm-transparency ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-transparency a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: var(--gm-radius);
	background: rgba(255, 255, 255, .07);
	color: #fff;
	text-decoration: none;
	transition: background .2s;
}

.gm-transparency a:hover,
.gm-transparency a:focus-visible {
	background: rgba(255, 255, 255, .16);
}

.gm-transparency a > i:first-child {
	width: 24px;
	color: var(--gm-accent);
	font-size: 1.2rem;
	text-align: center;
}

.gm-transparency a > span {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.gm-transparency small {
	color: rgba(255, 255, 255, .72);
	font-size: .85rem;
}

.gm-transparency a > i:last-child {
	font-size: .8rem;
	opacity: .6;
}

/* Conteúdo complementar da home */
.gm-front__content {
	padding-top: 0;
}

/* ==========================================================================
   5. Páginas internas
   ========================================================================== */

.gm-page-header {
	padding-block: 28px 36px;
	background: linear-gradient(180deg, var(--gm-primary-soft), var(--gm-surface));
	border-bottom: 1px solid var(--gm-border);
}

.gm-theme .gm-page-header__title {
	max-width: 900px;
	margin: 8px 0 0;
	color: var(--gm-primary-dark);
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.015em;
}

.gm-page-header__subtitle {
	max-width: 760px;
	margin: 12px 0 0;
	color: var(--gm-text-muted);
	font-size: 1.15rem;
	line-height: 1.5;
}

.gm-page-header--article .gm-card__kicker {
	display: inline-block;
	margin-top: 16px;
}

.gm-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	font-size: .9rem;
	list-style: none;
}

.gm-breadcrumb li {
	display: inline-flex;
	align-items: center;
	color: var(--gm-text-muted);
}

.gm-breadcrumb li + li::before {
	content: "\f105";
	margin-right: 6px;
	font-family: "Font Awesome 6 Free";
	font-size: .75rem;
	font-weight: 900;
	opacity: .6;
}

.gm-breadcrumb a {
	color: var(--gm-primary);
	text-decoration: none;
}

.gm-breadcrumb a:hover {
	text-decoration: underline;
}

.gm-breadcrumb [aria-current="page"] {
	max-width: 40ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Chips de filtro */
.gm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.gm-chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	border: 1px solid var(--gm-border);
	border-radius: 999px;
	background: var(--gm-surface);
	color: var(--gm-text);
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s, color .2s, background .2s;
}

.gm-chips a:hover {
	border-color: var(--gm-primary);
	color: var(--gm-primary);
}

.gm-chips a[aria-current="page"] {
	border-color: var(--gm-primary);
	background: var(--gm-primary);
	color: #fff;
}

.gm-chips__count {
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .07);
	font-size: .75rem;
}

.gm-docs-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.gm-docs-toolbar .gm-chips {
	margin-bottom: 0;
}

.gm-docs-toolbar .gm-inline-search {
	flex: 1 1 280px;
}

/* Paginação */
.gm-pagination {
	margin-top: 40px;
}

.gm-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Só os itens: a <ul> gerada pelo paginate_links() também tem a classe page-numbers. */
.gm-pagination a.page-numbers,
.gm-pagination span.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--gm-border);
	border-radius: 999px;
	color: var(--gm-primary-dark);
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}

.gm-pagination a.page-numbers:hover,
.gm-pagination a.page-numbers:focus-visible {
	border-color: var(--gm-primary);
	color: var(--gm-primary);
}

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

.gm-pagination .page-numbers.dots {
	border-color: transparent;
}

/* Estado vazio / 404 */
.gm-empty-state {
	max-width: 560px;
	margin: 0 auto;
	padding-block: 24px;
	text-align: center;
}

.gm-empty-state > i {
	color: var(--gm-primary-tint);
	font-size: 3.5rem;
}

.gm-empty-state__code {
	display: block;
	color: var(--gm-primary-tint);
	font-size: clamp(5rem, 14vw, 9rem);
	font-weight: 900;
	line-height: 1;
}

.gm-theme .gm-empty-state h2 {
	margin: 16px 0 8px;
	color: var(--gm-primary-dark);
	font-size: 1.5rem;
}

.gm-empty-state p {
	color: var(--gm-text-muted);
}

.gm-empty-state .gm-inline-search {
	margin: 24px auto;
}

/* Artigo */
.gm-article {
	display: grid;
	gap: 48px;
}

@media (min-width: 992px) {
	.gm-article:has(.gm-article__aside) {
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
	}

	.gm-article:not(:has(.gm-article__aside)) .gm-article__content {
		max-width: 880px;
	}

	.gm-article__aside {
		position: sticky;
		top: calc(24px + var(--global--admin-bar--height, 0px));
	}
}

.gm-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 20px;
	color: var(--gm-text-muted);
	font-size: .95rem;
}

.gm-article__meta i {
	margin-right: 4px;
	color: var(--gm-primary);
}

.gm-article__figure {
	margin: 0 0 32px;
}

.gm-article__figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--gm-radius-lg);
}

.gm-article__figure figcaption {
	margin-top: 8px;
	color: var(--gm-text-muted);
	font-size: .9rem;
}

.gm-theme .entry-content {
	font-size: 1.15rem;
	line-height: 1.75;
}

.gm-page-header + .gm-section {
	padding-top: 40px;
}

.gm-theme .gm-section .entry-content {
	margin-top: 0;
}

.gm-theme .entry-content > * {
	margin-block: 0 1.25em;
}

.gm-article .comments-area {
	margin-top: 40px;
	padding: 0;
}

.gm-theme .entry-content h2,
.gm-theme .entry-content h3,
.gm-theme .entry-content h4 {
	margin-top: 1.6em;
	color: var(--gm-primary-dark);
	line-height: 1.25;
}

.gm-theme .entry-content a {
	color: var(--gm-primary);
	text-underline-offset: 3px;
}

.gm-theme .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--gm-radius);
}

.gm-theme .entry-content blockquote {
	margin-inline: 0;
	padding: 16px 24px;
	border-left: 4px solid var(--gm-primary);
	border-radius: 0 var(--gm-radius) var(--gm-radius) 0;
	background: var(--gm-primary-soft);
}

.gm-page {
	max-width: 880px;
}

.gm-page__updated {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--gm-border);
	color: var(--gm-text-muted);
	font-size: .9rem;
}

.gm-article__footer {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--gm-border);
}

.gm-article__footer .gm-chips {
	margin: 0;
}

.gm-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.gm-share span {
	margin-right: 4px;
	color: var(--gm-text-muted);
	font-weight: 600;
}

.gm-share a,
.gm-share button {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--gm-border);
	border-radius: 50%;
	background: var(--gm-surface);
	color: var(--gm-primary);
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}

.gm-share a:hover,
.gm-share a:focus-visible,
.gm-share button:hover,
.gm-share button:focus-visible,
.gm-share button.is-copied {
	border-color: var(--gm-primary);
	background: var(--gm-primary);
	color: #fff;
}

.gm-theme .gm-aside__title {
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--gm-primary);
	color: var(--gm-primary-dark);
	font-size: 1.25rem;
	font-weight: 700;
}

.gm-article__aside .gm-card--compact + .gm-card--compact {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--gm-border);
}

.gm-article__aside .gm-card--compact .gm-card__media {
	flex-basis: 88px;
}

.gm-doc-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 0 0 32px;
}

.gm-doc-details > div {
	padding: 16px;
	border-radius: var(--gm-radius);
	background: var(--gm-surface-muted);
}

.gm-doc-details dt {
	color: var(--gm-text-muted);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.gm-doc-details dd {
	margin: 4px 0 0;
	padding: 0;
	color: var(--gm-primary-dark);
	font-size: 1.1rem;
	font-weight: 700;
}

/* ==========================================================================
   6. Rodapé
   ========================================================================== */

.gm-footer {
	padding-top: 56px;
	background: var(--gm-primary-dark);
	color: rgba(255, 255, 255, .85);
}

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

.gm-footer a:hover,
.gm-footer a:focus-visible {
	text-decoration: underline;
}

.gm-footer__grid {
	display: grid;
	gap: 40px;
	padding-bottom: 40px;
}

@media (min-width: 992px) {
	.gm-footer__grid {
		grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
		gap: 64px;
	}
}

.gm-footer__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}

.gm-footer__brand img {
	width: auto;
	height: 56px;
	max-width: 140px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.gm-footer__type {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .08em;
	opacity: .7;
	text-transform: uppercase;
}

.gm-theme .gm-footer__name {
	margin: 0;
	color: #fff;
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.2;
}

.gm-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.gm-footer__contact li {
	display: flex;
	gap: 12px;
	line-height: 1.5;
}

.gm-footer__contact i {
	flex-shrink: 0;
	width: 18px;
	margin-top: 4px;
	color: var(--gm-accent);
	text-align: center;
}

.gm-social--footer {
	display: flex;
}

.gm-social--footer a {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

.gm-social--footer a:hover,
.gm-social--footer a:focus-visible {
	background: var(--gm-accent);
	color: var(--gm-primary-dark);
	text-decoration: none;
}

.gm-footer__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-footer__columns > li > a {
	display: block;
	margin-bottom: 14px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.gm-footer__columns .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-footer__columns .sub-menu a {
	color: rgba(255, 255, 255, .78);
}

.gm-footer__columns .sub-menu a:hover,
.gm-footer__columns .sub-menu a:focus-visible {
	color: #fff;
}

.gm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-block: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .9rem;
}

.gm-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-footer__credits {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	opacity: .75;
}

.gm-footer__credits p {
	margin: 0;
}

/* Voltar ao topo (lógica no back-to-top.js do tema pai) */
.gm-back-to-top {
	position: fixed;
	right: 20px;
	bottom: 96px;
	z-index: 50;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .2s, transform .2s var(--gm-ease), visibility 0s .2s;
}

.gm-back-to-top.active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .2s, transform .2s var(--gm-ease);
}

.gm-back-to-top__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--gm-primary);
	color: #fff;
	box-shadow: var(--gm-shadow-lg);
	text-decoration: none;
}

.gm-back-to-top__btn:hover,
.gm-back-to-top__btn:focus-visible {
	background: var(--gm-primary-hover);
	color: #fff;
}

/* ==========================================================================
   7. Escala de fonte, alto contraste, movimento reduzido, impressão
   ========================================================================== */

/* O tema pai define 14px na raiz; os botões A-/A/A+ alteram esse valor. */
:root.gm-fs-n1 {
	font-size: 12px;
}

:root.gm-fs-1 {
	font-size: 16px;
}

:root.gm-fs-2 {
	font-size: 18px;
}

:root.gm-fs-3 {
	font-size: 20px;
}

/* Alto contraste (classe aplicada pelo contrast-mode.js do tema pai) */
.is-contrast-mode {
	--gm-primary: #ffef00;
	--gm-primary-hover: #fff;
	--gm-primary-dark: #fff;
	--gm-primary-soft: #000;
	--gm-primary-tint: #fff;
	--gm-accent: #ffef00;
	--gm-text: #fff;
	--gm-text-muted: #fff;
	--gm-border: #fff;
	--gm-surface: #000;
	--gm-surface-muted: #000;
	--gm-shadow-sm: none;
	--gm-shadow: none;
	--gm-shadow-lg: none;
}

.is-contrast-mode body.gm-theme,
body.gm-theme.is-contrast-mode {
	background: #000;
}

.is-contrast-mode .gm-topbar,
.is-contrast-mode .gm-hero,
.is-contrast-mode .gm-hero--image,
.is-contrast-mode .gm-transparency,
.is-contrast-mode .gm-footer,
.is-contrast-mode .gm-page-header {
	background: #000;
	border-bottom: 1px solid #fff;
}

.is-contrast-mode .gm-hero__search,
.is-contrast-mode .gm-transparency a,
.is-contrast-mode .gm-hero__tags a {
	border: 1px solid #fff;
	background: #000;
}

.is-contrast-mode .gm-hero__search input,
.is-contrast-mode .gm-hero__search > i,
.is-contrast-mode .gm-transparency small,
.is-contrast-mode .gm-footer__columns .sub-menu a {
	color: #fff;
}

.is-contrast-mode .gm-card--featured .gm-card__media::after {
	background: rgba(0, 0, 0, .8);
}

.is-contrast-mode .gm-button,
.is-contrast-mode .gm-citizen,
.is-contrast-mode .gm-hero__search button,
.is-contrast-mode .gm-tabs__tab[aria-selected="true"],
.is-contrast-mode .gm-chips a[aria-current="page"],
.is-contrast-mode .gm-pagination .page-numbers.current,
.is-contrast-mode .gm-back-to-top__btn,
.is-contrast-mode .gm-quick__item:hover .gm-quick__icon {
	background: #ffef00;
	color: #000;
}

.is-contrast-mode .gm-topbar__govbr img,
.is-contrast-mode .gm-footer__brand img {
	filter: grayscale(1) brightness(2);
}

.is-contrast-mode .gm-theme a:not(.gm-button):not(.gm-citizen) {
	color: #ffef00;
}

@media (prefers-reduced-motion: reduce) {
	.gm-theme *,
	.gm-theme *::before,
	.gm-theme *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.gm-topbar,
	.gm-nav,
	.gm-search,
	.gm-masthead__actions,
	.gm-article__aside,
	.gm-share,
	.gm-back-to-top,
	.gm-footer__menus,
	.gm-skiplinks {
		display: none !important;
	}

	.gm-page-header,
	.gm-footer {
		background: none;
		color: #000;
	}

	.gm-article {
		display: block;
	}
}

/* ==========================================================================
   9. Legislação (API do SCL)
   ========================================================================== */

.gm-button--outline {
	border: 1px solid var(--gm-primary);
	background: var(--gm-surface);
	color: var(--gm-primary);
}

.gm-button--outline:hover,
.gm-button--outline:focus-visible {
	background: var(--gm-primary-soft);
	color: var(--gm-primary-hover);
}

/* Filtros */
.gm-lex-filters {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
	padding: 20px;
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	background: var(--gm-surface-muted);
}

@media (min-width: 768px) {
	.gm-lex-filters {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 120px auto;
		align-items: end;
	}
}

.gm-lex-filters__field label {
	display: block;
	margin-bottom: 6px;
	color: var(--gm-primary-dark);
	font-size: .85rem;
	font-weight: 700;
}

.gm-lex-filters input,
.gm-lex-filters select {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius-sm);
	background: var(--gm-surface);
	color: var(--gm-text);
	font: inherit;
}

.gm-lex-filters input:focus,
.gm-lex-filters select:focus {
	border-color: var(--gm-primary);
	outline: none;
	box-shadow: 0 0 0 3px var(--gm-primary-tint);
}

.gm-lex-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.gm-lex-filters__actions .gm-button {
	height: 46px;
	border: 0;
	cursor: pointer;
}

.gm-lex-filters__clear {
	color: var(--gm-primary);
	font-weight: 600;
}

.gm-lex-count {
	margin: 0 0 12px;
	color: var(--gm-text-muted);
	font-weight: 600;
}

/* Itens da lista */
.gm-lex-item {
	align-items: flex-start;
}

.gm-lex-item__ementa {
	display: -webkit-box;
	margin: 4px 0 0;
	overflow: hidden;
	color: var(--gm-text-muted);
	font-size: .95rem;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.gm-lex-item__arrow {
	align-self: center;
	color: var(--gm-primary);
	opacity: .5;
	transition: opacity .2s, transform .2s var(--gm-ease);
}

.gm-lex-item:hover .gm-lex-item__arrow {
	opacity: 1;
	transform: translateX(3px);
}

.gm-lex-more {
	display: inline-flex;
	margin-top: 16px;
}

/* Selo de situação */
.gm-lex-status {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 10px;
	border-radius: 999px;
	background: var(--gray-5, #f0f0f0);
	color: var(--gm-text);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .02em;
	vertical-align: 1px;
}

.gm-doc-details .gm-lex-status {
	margin-left: 0;
	font-size: .85rem;
}

.gm-lex-status--vigente {
	background: var(--green-cool-vivid-5, #e3f5e1);
	color: var(--green-cool-vivid-60, #0c6217);
}

.gm-lex-status--revogada {
	background: var(--red-vivid-5, #fde0db);
	color: var(--red-vivid-60, #b50909);
}

.gm-lex-status--suspensa {
	background: var(--orange-vivid-5, #fef2e4);
	color: var(--orange-vivid-60, #8a3a00);
}

.gm-lex-status--alterada {
	background: var(--gm-primary-soft);
	color: var(--gm-primary-hover);
}

/* Norma: ações e texto */
.gm-lex-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: -8px 0 32px;
}

.gm-lex-text__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--gm-border);
}

.gm-theme .gm-lex-text__header h2 {
	margin: 0;
	color: var(--gm-primary-dark);
	font-size: 1.35rem;
	font-weight: 700;
}

.gm-lex-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--gm-text-muted);
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
}

.gm-lex-body {
	color: var(--gm-text);
	font-size: 1.05rem;
	line-height: 1.75;
}

.gm-lex-body p {
	margin: 0 0 .6em;
}

.gm-lex-d {
	scroll-margin-top: 24px;
}

.gm-lex-d__label {
	color: var(--gm-primary-dark);
	white-space: nowrap;
}

.gm-lex-d--paragrafo,
.gm-lex-d--inciso,
.gm-lex-d--alinea,
.gm-lex-d--item {
	padding-left: clamp(12px, 3vw, 28px);
}

.gm-lex-d--artigo {
	margin-top: 1.1em;
}

.gm-lex-d--preambulo {
	margin-bottom: 1.5em;
	color: var(--gm-text-muted);
	font-style: italic;
}

.gm-theme .gm-lex-d__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 2em 0 1em;
	color: var(--gm-primary-dark);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-align: center;
	text-transform: uppercase;
}

.gm-lex-d--titulo > .gm-lex-d__heading,
.gm-lex-d--parte > .gm-lex-d__heading,
.gm-lex-d--livro > .gm-lex-d__heading {
	font-size: 1.1rem;
}

.gm-lex-d__heading-text {
	font-weight: 600;
}

.gm-lex-d:target > .gm-lex-d__heading,
.gm-lex-d:target > .gm-lex-d__text {
	border-radius: var(--gm-radius-sm);
	background: var(--gm-primary-soft);
	box-shadow: 0 0 0 6px var(--gm-primary-soft);
}

.gm-lex-d.is-struck > .gm-lex-d__text,
.gm-lex-d__text.is-struck {
	color: var(--gm-text-muted);
	text-decoration: line-through;
	text-decoration-color: rgba(0, 0, 0, .45);
}

.gm-lex-d__note {
	margin: -.3em 0 .6em;
	color: var(--gm-text-muted);
	font-size: .85rem;
	font-style: italic;
}

.gm-lex-body.is-hiding-struck .gm-lex-d.is-struck,
.gm-lex-body.is-hiding-struck .gm-lex-d__text.is-struck,
.gm-lex-body.is-hiding-struck .gm-lex-d__text.is-struck + .gm-lex-d__note {
	display: none;
}

.gm-lex-unavailable {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	border: 1px dashed var(--gm-border);
	border-radius: var(--gm-radius);
	color: var(--gm-text-muted);
}

.gm-lex-unavailable i {
	color: var(--gm-primary);
	font-size: 1.75rem;
}

.gm-lex-unavailable p {
	margin: 0;
}

.gm-lex-norma .gm-article__footer {
	margin-top: 40px;
}

/* Lateral: relações e sumário */
.gm-lex-aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.gm-lex-box {
	padding: 20px;
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	background: var(--gm-surface);
}

.gm-lex-box .gm-aside__title {
	margin-top: 0;
}

.gm-lex-relations,
.gm-lex-summary ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-lex-relations__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
}

.gm-lex-relations__item + .gm-lex-relations__item {
	border-top: 1px solid var(--gm-border);
}

.gm-lex-relations__type {
	color: var(--gm-text-muted);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.gm-lex-relations__item--passiva .gm-lex-relations__type {
	color: var(--red-vivid-60, #b50909);
}

.gm-lex-relations a {
	color: var(--gm-primary-dark);
	font-weight: 600;
}

.gm-lex-relations small {
	color: var(--gm-text-muted);
}

.gm-lex-summary {
	max-height: 60vh;
	overflow-y: auto;
}

.gm-lex-summary li {
	padding-left: calc(var(--gm-depth, 0) * 14px);
}

.gm-lex-summary a {
	display: block;
	padding: 6px 0;
	color: var(--gm-text);
	font-size: .9rem;
	line-height: 1.35;
	text-decoration: none;
}

.gm-lex-summary a:hover,
.gm-lex-summary a:focus-visible {
	color: var(--gm-primary);
	text-decoration: underline;
}

.gm-lex-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--gm-primary);
	font-weight: 600;
}

/* Erros */
.gm-lex-error__admin {
	padding: 12px 16px;
	border-left: 4px solid var(--gm-accent);
	border-radius: var(--gm-radius-sm);
	background: var(--gm-surface-muted);
	font-size: .9rem;
	text-align: left;
}

.gm-lex-error__admin a {
	display: block;
	margin-top: 4px;
}

.is-contrast-mode .gm-lex-status,
.is-contrast-mode .gm-lex-box,
.is-contrast-mode .gm-lex-filters {
	border: 1px solid #fff;
	background: #000;
	color: #fff;
}

.is-contrast-mode .gm-lex-d.is-struck > .gm-lex-d__text {
	color: #ccc;
	text-decoration-color: #fff;
}

@media print {
	.gm-lex-filters,
	.gm-lex-actions,
	.gm-lex-toggle,
	.gm-lex-aside {
		display: none !important;
	}
}

.gm-lex-size {
	font-size: .8em;
	font-weight: 400;
	opacity: .8;
}

.gm-lex-attachments {
	margin: 0 0 40px;
}

.gm-theme .gm-lex-attachments h2 {
	margin: 0 0 12px;
	color: var(--gm-primary-dark);
	font-size: 1.1rem;
	font-weight: 700;
}

/* Aviso "Ver no SCLM" no topo da norma */
.gm-lex-portal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--gm-primary-tint);
	border-left: 4px solid var(--gm-primary);
	border-radius: var(--gm-radius);
	background: var(--gm-primary-soft);
}

.gm-lex-portal__icon {
	color: var(--gm-primary);
	font-size: 1.4rem;
}

.gm-lex-portal__text {
	flex: 1 1 320px;
	margin: 0;
	color: var(--gm-text);
	line-height: 1.5;
}

.gm-lex-portal__text strong {
	display: block;
	color: var(--gm-primary-dark);
}

.gm-lex-portal__button {
	flex-shrink: 0;
	padding: 10px 20px;
}

.is-contrast-mode .gm-lex-portal {
	border-color: #fff;
	background: #000;
}

@media print {
	.gm-lex-portal {
		display: none !important;
	}
}
