/*
  Layout próprio do post do blog (ricomarinho-landing 1.7.0).
  Tudo dentro de .rm-post / .rm-progress (e, desde a 1.10.0, .rm-bar e .rm-footer).
  Só px: o bootstrap do tema muda o font-size do <html>.
  Contraste: texto em #343434, links em #007a8d, #1cbdc9 só decorativo.
*/

.rm-post,
.rm-progress,
.rm-bar,
.rm-skip,
.rm-footer {
	--rm-primary: #164772;
	--rm-primary-dark: #0f3352;
	--rm-secondary: #1cbdc9;
	--rm-link: #007a8d;
	--rm-text: #343434;
	--rm-muted: #5a6169;
	--rm-surface: #f3f6f9;
	--rm-border: #d5dde5;
	--rm-radius: 16px;
	--rm-shadow: 0 1px 2px rgba(22, 71, 114, 0.06), 0 16px 40px rgba(22, 71, 114, 0.14);
	--rm-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body.rm-post-layout {
	background: #fff !important;
	background-image: none !important;
	/* O tema põe overflow-x: hidden no html e no body; o body vira contêiner de rolagem e o sumário deixa de ficar fixo. */
	overflow: visible !important;
}

.rm-post {
	font-family: var(--rm-font);
	font-size: 16px;
	color: var(--rm-text);
	background: #fff;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

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

/* ---------- Barra de progresso ---------- */
.rm-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 4px;
	z-index: 9999;
	pointer-events: none;
}

.rm-progress__bar {
	display: block;
	height: 100%;
	width: 100%;
	background: linear-gradient(to right, #164772, #1cbdc9);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

body.admin-bar .rm-progress {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .rm-progress {
		top: 46px;
	}
}

/* ---------- Topo ---------- */
.rm-hero {
	position: relative;
	color: #fff;
	background: var(--rm-primary-dark);
	padding: 48px 20px 56px;
	isolation: isolate;
}

.rm-hero--with-image {
	padding-bottom: 140px;
}

.rm-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(28, 189, 201, 0.35), transparent 60%),
		radial-gradient(50% 70% at 0% 100%, rgba(28, 189, 201, 0.12), transparent 60%),
		linear-gradient(160deg, #164772 0%, #0f3352 100%);
	overflow: hidden;
}

/* Grade técnica sutil, como papel milimetrado de P&ID. */
.rm-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.rm-hero__inner {
	max-width: 1000px;
	margin: 0 auto;
}

.rm-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	margin-bottom: 24px;
	color: rgba(255, 255, 255, 0.75);
}

.rm-crumbs a {
	color: #fff;
	text-decoration: none;
	padding: 4px 12px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	transition: background-color 0.2s ease;
}

.rm-crumbs a:hover,
.rm-crumbs a:focus-visible {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	text-decoration: none;
}

.rm-post .rm-hero__title {
	max-width: 860px;
	font-family: var(--rm-font);
	font-size: 30px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #fff;
	margin: 0 0 20px;
	text-wrap: balance;
}

.rm-hero__lead {
	font-size: 17px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 32px;
	max-width: 760px;
}

.rm-meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rm-post .rm-meta__photo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.6);
	flex: none;
}

.rm-meta__text {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}

.rm-meta__author {
	font-weight: 600;
	font-size: 15px;
}

.rm-meta__details {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* ---------- Imagem destacada ---------- */
.rm-cover {
	position: relative;
	max-width: 1040px;
	margin: -100px auto 0;
	padding: 0 20px;
	z-index: 1;
}

.rm-post .rm-cover__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--rm-radius);
	box-shadow: var(--rm-shadow);
	background: var(--rm-surface);
}

/* ---------- Corpo: sumário + texto ---------- */
.rm-layout {
	max-width: 1120px;
	margin: 0 auto;
	padding: 48px 20px 24px;
}

.rm-body {
	max-width: 720px;
	margin: 0 auto;
	min-width: 0;
}

@media (min-width: 1100px) {
	.rm-layout {
		display: grid;
		grid-template-columns: 240px minmax(0, 720px);
		justify-content: center;
		gap: 64px;
		padding-top: 64px;
	}

	.rm-body {
		margin: 0;
	}

	.rm-toc {
		position: sticky;
		top: 96px;
		align-self: start;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}
}

/* Sumário */
.rm-toc {
	margin-bottom: 32px;
}

.rm-toc__box {
	border: 1px solid var(--rm-border);
	border-radius: 12px;
	background: var(--rm-surface);
	padding: 16px 20px;
}

@media (min-width: 1100px) {
	.rm-toc__box {
		background: transparent;
		border: 0;
		border-left: 2px solid var(--rm-border);
		border-radius: 0;
		padding: 0 0 0 20px;
	}

	.rm-toc__title {
		pointer-events: none;
	}

	.rm-toc__title::after {
		display: none;
	}
}

.rm-toc__title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rm-primary);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.rm-toc__title::-webkit-details-marker {
	display: none;
}

.rm-toc__title::after {
	content: '+';
	font-size: 18px;
	line-height: 1;
}

.rm-toc__box[open] .rm-toc__title::after {
	content: '−';
}

.rm-toc__list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	counter-reset: rm-toc;
}

.rm-toc__list li {
	margin: 0;
	counter-increment: rm-toc;
}

.rm-toc__list a {
	position: relative;
	display: block;
	padding: 6px 0 6px 28px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--rm-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.rm-toc__list a::before {
	content: counter(rm-toc, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 7px;
	font-size: 12px;
	font-weight: 600;
	color: var(--rm-border);
	transition: color 0.2s ease;
}

.rm-toc__list a:hover,
.rm-toc__list a:focus-visible {
	color: var(--rm-primary);
	text-decoration: none;
}

.rm-toc__list a.is-active {
	color: var(--rm-primary);
	font-weight: 600;
}

.rm-toc__list a.is-active::before {
	color: var(--rm-link);
}

@media (min-width: 1100px) {
	.rm-toc__list a.is-active::after {
		content: '';
		position: absolute;
		left: -22px;
		top: 4px;
		bottom: 4px;
		width: 2px;
		background: linear-gradient(to bottom, #164772, #1cbdc9);
	}
}

/* ---------- Texto do artigo ---------- */
.rm-content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--rm-text);
	overflow-wrap: break-word;
}

@media (min-width: 768px) {
	.rm-content {
		font-size: 18px;
	}

	.rm-post .rm-hero__title {
		font-size: 44px;
	}

	.rm-hero {
		padding: 64px 32px 72px;
	}

	.rm-hero--with-image {
		padding-bottom: 180px;
	}

	.rm-cover {
		margin-top: -140px;
		padding: 0 32px;
	}

	.rm-hero__lead {
		font-size: 19px;
	}
}

.rm-content > * {
	margin-top: 0;
	margin-bottom: 24px;
}

.rm-content > p:first-child {
	font-size: 1.1em;
	color: #24292f;
}

.rm-post .rm-content h2 {
	position: relative;
	font-family: var(--rm-font);
	font-size: 26px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--rm-primary);
	margin: 56px 0 20px;
	padding-top: 24px;
	scroll-margin-top: 96px;
	text-wrap: balance;
}

.rm-post .rm-content h2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(to right, #164772, #1cbdc9);
}

.rm-post .rm-content h3 {
	font-family: var(--rm-font);
	font-size: 21px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--rm-primary);
	margin: 40px 0 12px;
	scroll-margin-top: 96px;
}

.rm-post .rm-content h4 {
	font-family: var(--rm-font);
	font-size: 18px;
	font-weight: 600;
	color: var(--rm-primary);
	margin: 32px 0 8px;
}

@media (min-width: 768px) {
	.rm-post .rm-content h2 {
		font-size: 30px;
	}

	.rm-post .rm-content h3 {
		font-size: 22px;
	}
}

.rm-post .rm-content a:not(.rm-btn) {
	color: var(--rm-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.rm-post .rm-content a:not(.rm-btn):hover,
.rm-post .rm-content a:not(.rm-btn):focus-visible {
	color: var(--rm-primary);
	text-decoration-thickness: 2px;
}

.rm-content strong {
	font-weight: 600;
	color: #1f2933;
}

/* Listas */
.rm-content ul,
.rm-content ol {
	padding-left: 0;
	list-style: none;
}

.rm-content li {
	position: relative;
	margin-bottom: 12px;
}

.rm-content ul > li {
	padding-left: 28px;
}

.rm-content ul > li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0.72em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, #164772, #1cbdc9);
}

.rm-content ol {
	counter-reset: rm-ol;
}

.rm-content ol > li {
	counter-increment: rm-ol;
	padding-left: 44px;
	min-height: 30px;
}

.rm-content ol > li::before {
	content: counter(rm-ol);
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--rm-surface);
	border: 1px solid var(--rm-border);
	color: var(--rm-primary);
	font-size: 14px;
	font-weight: 600;
	line-height: 28px;
	text-align: center;
}

/* Elementos de posts antigos */
.rm-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.rm-content figure {
	margin-left: 0;
	margin-right: 0;
}

.rm-content figcaption {
	font-size: 14px;
	color: var(--rm-muted);
	margin-top: 8px;
}

.rm-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 20px 24px;
	border: 0;
	border-left: 4px solid var(--rm-secondary);
	background: var(--rm-surface);
	border-radius: 0 12px 12px 0;
	font-size: inherit;
}

.rm-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	display: block;
	overflow-x: auto;
}

.rm-content th,
.rm-content td {
	border: 1px solid var(--rm-border);
	padding: 10px 12px;
	text-align: left;
}

.rm-content th {
	background: var(--rm-surface);
	color: var(--rm-primary);
	font-weight: 600;
}

/* ---------- Botões ---------- */
.rm-post .rm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border-radius: 50px;
	font-family: var(--rm-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.rm-post .rm-btn::after {
	content: '→';
	transition: transform 0.2s ease;
}

.rm-post .rm-btn:hover::after,
.rm-post .rm-btn:focus-visible::after {
	transform: translateX(4px);
}

.rm-post .rm-btn--primary {
	background: var(--rm-primary);
	color: #fff;
	box-shadow: 0 6px 16px rgba(22, 71, 114, 0.25);
}

.rm-post .rm-btn--primary:hover,
.rm-post .rm-btn--primary:focus-visible {
	background: var(--rm-primary-dark);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(22, 71, 114, 0.3);
}

.rm-post .rm-btn--light {
	background: #fff;
	color: var(--rm-primary);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.rm-post .rm-btn--light:hover,
.rm-post .rm-btn--light:focus-visible {
	color: var(--rm-primary-dark);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.rm-post a:focus-visible,
.rm-post button:focus-visible,
.rm-post summary:focus-visible {
	outline: 3px solid var(--rm-secondary);
	outline-offset: 3px;
}

/* ---------- CTAs ---------- */
.rm-post .rm-cta {
	position: relative;
	border-radius: var(--rm-radius);
	overflow: hidden;
}

.rm-post .rm-cta p {
	margin: 0;
}

.rm-cta__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.5;
}

/* Meio do texto */
.rm-post .rm-cta--inline {
	margin: 48px 0;
	padding: 28px 28px 28px 32px;
	background: var(--rm-surface);
	border: 1px solid var(--rm-border);
}

.rm-post .rm-cta--inline::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: linear-gradient(to bottom, #164772, #1cbdc9);
}

.rm-cta__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.rm-post .rm-cta__photo {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	margin: 0;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px var(--rm-secondary);
}

.rm-cta--inline .rm-cta__eyebrow {
	color: var(--rm-link);
}

.rm-post .rm-cta--inline .rm-cta__text {
	font-size: 16px;
	line-height: 1.65;
	margin-bottom: 20px;
}

/* Final do texto */
.rm-post .rm-cta--final {
	margin: 56px 0 8px;
	padding: 40px 28px;
	color: #fff;
	background: linear-gradient(150deg, #164772 0%, #0f3352 100%);
	box-shadow: var(--rm-shadow);
	isolation: isolate;
}

.rm-cta__glow {
	position: absolute;
	z-index: -1;
	right: -120px;
	top: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(28, 189, 201, 0.45), transparent 70%);
	animation: rm-float 9s ease-in-out infinite alternate;
}

@keyframes rm-float {
	to {
		transform: translate(-60px, 60px) scale(1.15);
	}
}

.rm-cta--final .rm-cta__eyebrow {
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 16px !important;
}

.rm-post .rm-content .rm-cta--final .rm-cta__title {
	color: #fff;
	font-size: 26px;
	line-height: 1.2;
	margin: 0 0 16px;
	padding: 0;
}

.rm-post .rm-content .rm-cta--final .rm-cta__title::before {
	display: none;
}

.rm-post .rm-cta--final .rm-cta__text {
	font-size: 16px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 28px;
}

.rm-post .rm-cta--final strong {
	color: #fff;
}

.rm-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.rm-post .rm-cta__note {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
	.rm-post .rm-cta--inline {
		padding: 32px 36px 32px 40px;
	}

	.rm-post .rm-cta--final {
		padding: 56px 48px;
	}

	.rm-post .rm-content .rm-cta--final .rm-cta__title {
		font-size: 34px;
	}
}

/* ---------- Compartilhar ---------- */
.rm-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 40px 0;
	padding-top: 24px;
	border-top: 1px solid var(--rm-border);
}

.rm-share__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--rm-muted);
	margin-right: 8px;
}

.rm-post .rm-share__link {
	font-family: var(--rm-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--rm-primary);
	background: #fff;
	border: 1px solid var(--rm-border);
	border-radius: 50px;
	padding: 8px 16px;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rm-post .rm-share__link:hover,
.rm-post .rm-share__link:focus-visible {
	border-color: var(--rm-primary);
	background: var(--rm-surface);
	color: var(--rm-primary);
	text-decoration: none;
}

/* ---------- Autor ---------- */
.rm-author {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 28px;
	border-radius: var(--rm-radius);
	border: 1px solid var(--rm-border);
	background: #fff;
	box-shadow: 0 1px 2px rgba(22, 71, 114, 0.06);
	margin-bottom: 64px;
}

.rm-post .rm-author__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.rm-post .rm-author p {
	margin: 0;
}

.rm-author__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rm-link);
}

.rm-post .rm-author__name {
	font-family: var(--rm-font);
	font-size: 20px;
	font-weight: 600;
	color: var(--rm-primary);
	margin: 4px 0 8px;
}

.rm-author__bio {
	font-size: 15px;
	line-height: 1.6;
}

.rm-post .rm-author__links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 600;
}

.rm-post .rm-author__links a {
	color: var(--rm-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (min-width: 768px) {
	.rm-post .rm-author__photo {
		width: 96px;
		height: 96px;
	}
}

@media (max-width: 479px) {
	.rm-author {
		flex-direction: column;
	}
}

/* ---------- Relacionados ---------- */
.rm-related {
	background: var(--rm-surface);
	padding: 64px 20px 80px;
}

.rm-related__inner {
	max-width: 1120px;
	margin: 0 auto;
}

.rm-post .rm-related__title {
	font-family: var(--rm-font);
	font-size: 26px;
	font-weight: 600;
	color: var(--rm-primary);
	margin: 0 0 32px;
}

.rm-related__grid {
	display: grid;
	gap: 24px;
}

@media (min-width: 768px) {
	.rm-related__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rm-post .rm-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--rm-radius);
	overflow: hidden;
	border: 1px solid var(--rm-border);
	color: var(--rm-text);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rm-post .rm-card:hover,
.rm-post .rm-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: var(--rm-shadow);
	text-decoration: none;
	color: var(--rm-text);
}

.rm-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--rm-primary);
}

.rm-post .rm-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.rm-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
		radial-gradient(70% 90% at 100% 0%, rgba(28, 189, 201, 0.5), transparent 60%),
		linear-gradient(160deg, #164772, #0f3352);
}

.rm-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 24px;
	flex: 1;
}

.rm-card__cat {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rm-link);
}

.rm-card__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--rm-primary);
}

.rm-card__more {
	margin-top: auto;
	padding-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rm-link);
}

/* ---------- Barra do site e rodapé (includes/chrome.php, desde a 1.10.0) ---------- */
.rm-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 10000;
	padding: 10px 16px;
	border-radius: 8px;
	background: #fff;
	color: var(--rm-primary);
	font: 600 15px/1.2 var(--rm-font);
	text-decoration: none;
}

.rm-skip:focus {
	top: 16px;
}

.rm-bar *,
.rm-footer * {
	box-sizing: border-box;
}

.rm-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--rm-border);
	font-family: var(--rm-font);
	-webkit-font-smoothing: antialiased;
}

@supports (backdrop-filter: blur(8px)) {
	.rm-bar {
		background: rgba(255, 255, 255, 0.86);
		backdrop-filter: saturate(1.4) blur(10px);
	}
}

body.admin-bar .rm-bar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .rm-bar {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .rm-bar {
		top: 0;
	}
}

.rm-bar__inner {
	max-width: 1120px;
	min-height: 64px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.rm-bar .rm-bar__brand {
	font-size: 17px;
	font-weight: 600;
	color: var(--rm-primary);
	text-decoration: none;
	white-space: nowrap;
}

.rm-bar__nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.rm-bar .rm-bar__link {
	padding: 10px 12px;
	font-size: 15px;
	font-weight: 500;
	color: var(--rm-text);
	text-decoration: none;
	border-radius: 8px;
}

.rm-bar .rm-bar__link:hover,
.rm-bar .rm-bar__link:focus-visible {
	color: var(--rm-primary);
	background: var(--rm-surface);
	text-decoration: none;
}

.rm-bar .rm-bar__link[aria-current='page'] {
	color: var(--rm-primary);
	box-shadow: inset 0 -2px 0 var(--rm-secondary);
	border-radius: 0;
}

.rm-bar .rm-bar__cta {
	margin-left: 8px;
	padding: 10px 20px;
	border-radius: 50px;
	background: var(--rm-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.rm-bar .rm-bar__cta:hover,
.rm-bar .rm-bar__cta:focus-visible {
	background: var(--rm-primary-dark);
	color: #fff;
	text-decoration: none;
}

.rm-bar a:focus-visible,
.rm-footer a:focus-visible {
	outline: 3px solid var(--rm-secondary);
	outline-offset: 2px;
}

@media (max-width: 559px) {
	.rm-bar .rm-bar__link--sobre,
	.rm-bar .rm-bar__link--contato {
		display: none;
	}

	.rm-bar .rm-bar__cta {
		margin-left: 4px;
		padding: 10px 16px;
	}
}

@media (min-width: 768px) {
	.rm-bar__inner {
		padding: 0 32px;
	}
}

.rm-footer {
	border-top: 1px solid var(--rm-border);
	background: #fff;
	font-family: var(--rm-font);
}

.rm-footer__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 32px 20px 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.rm-footer .rm-footer__name {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--rm-primary);
}

.rm-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-footer__links a {
	font-size: 14px;
	color: var(--rm-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rm-footer__links a:hover {
	color: var(--rm-primary);
}

@media (min-width: 768px) {
	.rm-footer__inner {
		padding: 32px 32px 40px;
	}
}

/* ---------- Entradas ao rolar (estado oculto só com JS) ---------- */
.rm-js [data-reveal],
.rm-js [data-stagger] > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.rm-js [data-reveal].is-visible,
.rm-js [data-stagger].is-visible > * {
	opacity: 1;
	transform: none;
}

.rm-js [data-stagger].is-visible > :nth-child(2) {
	transition-delay: 0.1s;
}

.rm-js [data-stagger].is-visible > :nth-child(3) {
	transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
	.rm-post *,
	.rm-post *::before,
	.rm-post *::after {
		animation: none !important;
		transition: none !important;
	}

	.rm-js [data-reveal],
	.rm-js [data-stagger] > * {
		opacity: 1;
		transform: none;
	}

	.rm-progress {
		display: none;
	}
}

@media print {
	.rm-bar,
	.rm-footer,
	.rm-progress,
	.rm-toc,
	.rm-share,
	.rm-cta,
	.rm-related {
		display: none !important;
	}

	.rm-hero {
		color: #000;
		background: none;
	}
}
