/* ==========================================================================
   Universo Gamer — camada visual personalizada
   Carregada por ultimo. Nao substitui o tema Astra, apenas o complementa.
   Paleta derivada do logotipo: azul royal + dourado.
   ========================================================================== */

:root {
	--rj-blue-900: #062E63;
	--rj-blue-700: #0B4FA8;
	--rj-blue-500: #046BD2;
	--rj-blue-100: #E8F1FC;
	--rj-blue-50:  #F4F8FD;

	--rj-gold-600: #B8862B;
	--rj-gold-500: #D9A441;
	--rj-gold-200: #F2E1BC;

	--rj-ink:      #14202E;
	--rj-body:     #4A5765;
	--rj-muted:    #78838F;
	--rj-line:     #E3E8EF;
	--rj-surface:  #FFFFFF;
	--rj-canvas:   #F6F9FC;

	--rj-radius:   14px;
	--rj-radius-sm: 9px;
	--rj-shadow:   0 1px 2px rgba(20, 32, 46, .05), 0 8px 24px -12px rgba(20, 32, 46, .18);
	--rj-shadow-sm: 0 1px 2px rgba(20, 32, 46, .06), 0 3px 10px -6px rgba(20, 32, 46, .14);
	--rj-maxw:     760px;
}

body {
	background-color: var(--rj-canvas);
	color: var(--rj-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* O Astra aplica margin de 60px em #primary. Aqui o espacamento vertical e
   controlado pelo proprio card do artigo, entao zeramos. */
.ast-plain-container.ast-no-sidebar #primary,
#primary {
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
}

/* --------------------------------------------------------------------------
   Cabecalho
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--rj-surface);
	border-bottom: 1px solid var(--rj-line);
	box-shadow: 0 1px 3px rgba(20, 32, 46, .04);
}

.ast-primary-header-bar {
	border-bottom: 0 !important;
}

.site-logo-img img,
.custom-logo {
	max-height: 52px;
	max-width: none;
	width: auto;
	height: auto;
}

.main-header-menu .menu-link {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .01em;
	color: var(--rj-ink);
	position: relative;
}

.main-header-menu > .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	left: 1.1em;
	right: 1.1em;
	bottom: .55em;
	height: 2px;
	border-radius: 2px;
	background: var(--rj-gold-500);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .22s ease;
}

.main-header-menu > .menu-item > .menu-link:hover::after,
.main-header-menu > .menu-item.rj-current > .menu-link::after {
	transform: scaleX(1);
}

.main-header-menu > .menu-item.rj-current > .menu-link {
	color: var(--rj-blue-700);
}

/* --------------------------------------------------------------------------
   Estrutura do artigo
   -------------------------------------------------------------------------- */

.ast-article-single,
.rj-page {
	background: var(--rj-surface);
	border: 1px solid var(--rj-line);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow);
	padding: 40px 44px 48px;
	margin: 34px 0 44px;
}

.entry-header.ast-no-thumbnail {
	margin-bottom: 0;
	padding-bottom: 0;
}

.rj-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.rj-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--rj-blue-100);
	color: var(--rj-blue-700);
	line-height: 1.4;
}

.rj-chip--gold {
	background: #FBF3E2;
	color: var(--rj-gold-600);
}

.entry-title {
	font-size: clamp(28px, 4.4vw, 40px);
	line-height: 1.18;
	letter-spacing: -.018em;
	color: var(--rj-ink);
	font-weight: 700;
	margin: 0 0 18px;
}

.rj-byline {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--rj-line);
	margin-bottom: 28px;
	font-size: 14px;
	color: var(--rj-muted);
}

.rj-byline__avatar {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--rj-blue-500), var(--rj-blue-900));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
}

.rj-byline__name {
	color: var(--rj-ink);
	font-weight: 600;
}

.rj-byline__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1 1 auto;
	min-width: 0;
}

.rj-byline__sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--rj-line);
	display: inline-block;
}

/* --------------------------------------------------------------------------
   Imagem destacada
   -------------------------------------------------------------------------- */

.entry-content > figure.wp-block-image {
	margin: 0 0 30px;
}

.entry-content figure.wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: var(--rj-radius);
	display: block;
	box-shadow: var(--rj-shadow-sm);
}

.rj-figcaption {
	font-size: 13px;
	color: var(--rj-muted);
	text-align: center;
	margin: 0 0 30px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Tipografia do corpo
   -------------------------------------------------------------------------- */

.entry-content p {
	font-size: 17.5px;
	line-height: 1.78;
	color: var(--rj-body);
	margin: 0 0 20px;
}

.entry-content .rj-lead {
	font-size: 19.5px;
	line-height: 1.68;
	color: var(--rj-ink);
	font-weight: 500;
}

.entry-content h2.wp-block-heading {
	font-size: clamp(21px, 2.7vw, 26px);
	line-height: 1.3;
	letter-spacing: -.012em;
	color: var(--rj-ink);
	font-weight: 700;
	margin: 42px 0 16px;
	padding-left: 14px;
	border-left: 4px solid var(--rj-gold-500);
	scroll-margin-top: 100px;
}

.entry-content h3 {
	font-size: 18px;
	color: var(--rj-ink);
	font-weight: 600;
	margin: 28px 0 10px;
}

.entry-content a {
	color: var(--rj-blue-500);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.entry-content a:hover {
	color: var(--rj-blue-700);
}

/* --------------------------------------------------------------------------
   Indice do artigo
   -------------------------------------------------------------------------- */

.rj-toc {
	background: var(--rj-blue-50);
	border: 1px solid #DCE7F5;
	border-radius: var(--rj-radius);
	padding: 22px 26px 20px;
	margin: 30px 0 34px;
}

.rj-toc__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--rj-blue-700);
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.rj-toc__title svg {
	width: 15px;
	height: 15px;
	flex: none;
}

.rj-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rjtoc;
}

.rj-toc li {
	counter-increment: rjtoc;
	margin: 0;
	padding: 7px 0;
	border-top: 1px solid #DFE9F6;
	display: flex;
	align-items: baseline;
	gap: 11px;
}

.rj-toc li:first-child {
	border-top: 0;
	padding-top: 0;
}

.rj-toc li::before {
	content: counter(rjtoc);
	flex: 0 0 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--rj-surface);
	border: 1px solid #D5E3F4;
	color: var(--rj-blue-700);
	font-size: 11.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
}

.rj-toc a {
	color: var(--rj-ink);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.5;
}

.rj-toc a:hover {
	color: var(--rj-blue-500);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Chamada para acao
   -------------------------------------------------------------------------- */

.rj-cta {
	margin: 30px 0 26px;
	text-align: center;
}

/* `.entry-content a` tem especificidade maior que uma classe sozinha, por isso
   o seletor abaixo repete o contexto — senao o botao herda azul e sublinhado. */
.entry-content a.rj-cta__btn,
.rj-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 15px 34px;
	background: linear-gradient(135deg, var(--rj-blue-700) 0%, var(--rj-blue-500) 100%);
	color: #fff;
	font-size: 17px;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -.01em;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(4, 107, 210, .18), 0 12px 26px -12px rgba(4, 107, 210, .6);
	transition: transform .18s ease, box-shadow .18s ease;
}

.entry-content a.rj-cta__btn:hover,
.entry-content a.rj-cta__btn:focus-visible,
.rj-cta__btn:hover,
.rj-cta__btn:focus-visible {
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(4, 107, 210, .2), 0 18px 34px -14px rgba(4, 107, 210, .7);
}

.rj-cta__btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.rj-cta__note {
	font-size: 13px;
	line-height: 1.6;
	color: var(--rj-muted);
	margin: 12px 0 0 !important;
}

/* --------------------------------------------------------------------------
   Lista de pontos e caixa de destaque
   -------------------------------------------------------------------------- */

.rj-points {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
}

.rj-points li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 11px;
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--rj-body);
}

.rj-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .42em;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: var(--rj-blue-100) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23046BD2' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

.rj-note {
	display: flex;
	gap: 15px;
	background: #FCF8EF;
	border: 1px solid var(--rj-gold-200);
	border-left: 4px solid var(--rj-gold-500);
	border-radius: var(--rj-radius-sm);
	padding: 19px 22px;
	margin: 32px 0;
}

.rj-note__icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	color: var(--rj-gold-600);
}

.rj-note__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.rj-note__body strong {
	display: block;
	color: var(--rj-ink);
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 5px;
}

.rj-note__body p {
	margin: 0 !important;
	font-size: 15.5px !important;
	line-height: 1.66 !important;
	color: #6B5A38 !important;
}

/* --------------------------------------------------------------------------
   Bloco de confianca (cards)
   -------------------------------------------------------------------------- */

.rj-trust {
	max-width: 1140px;
	margin: 0 auto 46px;
}

.rj-trust__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.rj-trust__head h2 {
	font-size: 21px;
	font-weight: 700;
	color: var(--rj-ink);
	margin: 0;
	letter-spacing: -.01em;
}

.rj-trust__head p {
	margin: 0;
	font-size: 14.5px;
	color: var(--rj-muted);
}

.rj-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.rj-card {
	display: flex;
	flex-direction: column;
	background: var(--rj-surface);
	border: 1px solid var(--rj-line);
	border-radius: var(--rj-radius);
	overflow: hidden;
	text-decoration: none;
	box-shadow: var(--rj-shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rj-card:hover {
	transform: translateY(-3px);
	border-color: #CFDDEE;
	box-shadow: 0 2px 4px rgba(20, 32, 46, .06), 0 16px 32px -18px rgba(20, 32, 46, .3);
}

.rj-card__thumb {
	position: relative;
	aspect-ratio: 16 / 8;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--rj-blue-900) 0%, var(--rj-blue-700) 58%, var(--rj-blue-500) 100%);
	overflow: hidden;
}

.rj-card__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 82% 22%, rgba(217, 164, 65, .34), transparent 46%),
		radial-gradient(circle at 12% 88%, rgba(255, 255, 255, .16), transparent 42%);
}

.rj-card__thumb svg {
	position: relative;
	z-index: 1;
	width: 42px;
	height: 42px;
	color: #fff;
	opacity: .95;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .28));
}

.rj-card__body {
	padding: 17px 19px 20px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1;
}

.rj-card__kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rj-gold-600);
}

.rj-card__title {
	font-size: 16.5px;
	font-weight: 650;
	color: var(--rj-ink);
	line-height: 1.35;
	margin: 0;
}

.rj-card__text {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--rj-muted);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Rodape
   -------------------------------------------------------------------------- */

/* O Astra pinta o rodape por meio de seletores com atributo [data-section],
   que tem especificidade maior. Por isso as regras abaixo repetem o atributo. */
.site-footer {
	background: #0C1A2B;
	color: #A9B6C4;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
	background-color: #0C1A2B;
	border-top: 3px solid var(--rj-gold-500);
	padding-top: 46px;
	padding-bottom: 36px;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] {
	background-color: #081422;
	border-top: 1px solid rgba(255, 255, 255, .07);
	padding-top: 18px;
	padding-bottom: 18px;
	min-height: 0;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
	min-height: 0;
}

.footer-widget-area[data-section^="sidebar-widgets-footer-widget"].footer-widget-area-inner,
.site-footer-below-section-1 {
	text-align: left;
}

.site-footer .widget {
	margin-bottom: 0;
}

.rj-foot-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #FFFFFF;
	margin: 0 0 15px;
}

.site-footer p,
.site-footer li {
	font-size: 14.5px;
	line-height: 1.75;
	color: #A9B6C4;
}

.site-footer a {
	color: #C9D4E0;
	text-decoration: none;
	transition: color .18s ease;
}

.site-footer a:hover {
	color: var(--rj-gold-500);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rj-foot-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rj-foot-links li {
	margin-bottom: 8px;
}

.rj-foot-brand img {
	max-height: 54px;
	max-width: none;
	width: auto;
	height: auto;
	margin-bottom: 14px;
}

.rj-foot-brand p {
	font-size: 14.5px;
	line-height: 1.72;
	color: #8E9CAC;
	margin: 0;
	max-width: 34ch;
}

.site-footer .wp-block-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .wp-block-categories-list li {
	margin-bottom: 8px;
}

.ast-footer-copyright p {
	font-size: 13px;
	color: #7C8998;
	margin: 0;
	line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Paginas institucionais
   -------------------------------------------------------------------------- */

.rj-page {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.rj-page h1 {
	font-size: clamp(26px, 4vw, 34px);
	line-height: 1.22;
	letter-spacing: -.018em;
	color: var(--rj-ink);
	font-weight: 700;
	margin: 0 0 10px;
}

.rj-page__updated {
	font-size: 13.5px;
	color: var(--rj-muted);
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rj-line);
	margin-bottom: 26px;
}

.rj-page h2 {
	font-size: clamp(19px, 2.4vw, 22px);
	line-height: 1.32;
	color: var(--rj-ink);
	font-weight: 700;
	margin: 34px 0 12px;
	padding-left: 13px;
	border-left: 4px solid var(--rj-blue-500);
	scroll-margin-top: 100px;
}

.rj-page p,
.rj-page li {
	font-size: 16.5px;
	line-height: 1.76;
	color: var(--rj-body);
}

.rj-page p {
	margin: 0 0 17px;
}

.rj-page ul {
	margin: 0 0 20px;
	padding-left: 22px;
}

.rj-page li {
	margin-bottom: 8px;
}

.rj-page a {
	color: var(--rj-blue-500);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rj-contact-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 26px 0 8px;
}

.rj-contact-item {
	background: var(--rj-blue-50);
	border: 1px solid #DCE7F5;
	border-radius: var(--rj-radius-sm);
	padding: 18px 20px;
}

.rj-contact-item strong {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--rj-blue-700);
	margin-bottom: 6px;
}

.rj-contact-item p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--rj-ink);
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 921px) {
	.rj-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.ast-article-single,
	.rj-page {
		padding: 30px 28px 36px;
	}
}

@media (max-width: 768px) {
	.site-header {
		position: static;
	}

	.entry-content h2.wp-block-heading {
		scroll-margin-top: 20px;
	}

	.rj-page h2 {
		scroll-margin-top: 20px;
	}
}

@media (max-width: 620px) {
	.rj-cards,
	.rj-contact-grid {
		grid-template-columns: 1fr;
	}

	.ast-article-single,
	.rj-page {
		padding: 24px 20px 30px;
		margin: 20px 0 30px;
		border-radius: var(--rj-radius-sm);
	}

	.entry-content p {
		font-size: 16.5px;
	}

	.entry-content .rj-lead {
		font-size: 18px;
	}

	/* Empilha autor / data / tempo de leitura em vez de deixar o avatar sozinho
	   numa linha e os separadores soltos no fim das linhas. */
	.rj-byline {
		flex-wrap: nowrap;
		align-items: flex-start;
	}

	.rj-byline__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 3px;
	}

	.rj-byline__sep {
		display: none;
	}

	.rj-toc {
		padding: 18px 18px 16px;
	}

	.rj-note {
		padding: 16px 17px;
		gap: 12px;
	}

	.rj-cta__btn {
		display: flex;
		width: 100%;
		padding: 15px 22px;
		font-size: 16.5px;
	}
}
