/**
 * theFibra Member Area — leitura para membros (caixa «Entrar / Criar conta» no fim do início
 * da notícia). --tfmg-page é a cor do fundo da página por trás do texto (para o esbatimento);
 * mude-a no CSS do tema se o fundo do artigo for outro.
 */
.thefibra-member-gate {
	--tfmg-page: #0e0e0e;
	--tfmg-bg: #151517;
	--tfmg-text: #f5f5f4;
	--tfmg-muted: #a1a1aa;
	--tfmg-line: #2e2e33;
	--tfmg-primary-bg: #ffffff;
	--tfmg-primary-text: #0e0e0e;
	--tfmg-focus: #6ec1e4;
}

.thefibra-member-gate--light {
	--tfmg-page: #ffffff;
	--tfmg-bg: #f4f4f5;
	--tfmg-text: #0e0e0e;
	--tfmg-muted: #52525b;
	--tfmg-line: #d4d4d8;
	--tfmg-primary-bg: #0e0e0e;
	--tfmg-primary-text: #ffffff;
	--tfmg-focus: #0b6a94;
}

.thefibra-member-gate__teaser {
	position: relative;
}

.thefibra-member-gate__teaser::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: min(5em, 45%);
	background: linear-gradient(to bottom, transparent, var(--tfmg-page));
	pointer-events: none;
}

.thefibra-member-gate__box {
	box-sizing: border-box;
	margin: 8px 0 32px;
	padding: 28px 24px;
	border: 1px solid var(--tfmg-line);
	border-radius: 22px;
	background: var(--tfmg-bg);
	color: var(--tfmg-text);
	text-align: center;
	font-family: var(--e-global-typography-text-font-family, "Inter"), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.thefibra-member-gate__title {
	margin: 0 0 8px;
	color: inherit;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

.thefibra-member-gate__text {
	max-width: 46ch;
	margin: 0 auto 20px;
	color: var(--tfmg-muted);
	font-size: 15px;
	line-height: 1.5;
}

.thefibra-member-gate__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.thefibra-member-gate .thefibra-member-gate__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--tfmg-line);
	border-radius: 999px;
	background: transparent;
	color: var(--tfmg-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.thefibra-member-gate .thefibra-member-gate__btn--primary {
	border-color: var(--tfmg-primary-bg);
	background: var(--tfmg-primary-bg);
	color: var(--tfmg-primary-text);
}

.thefibra-member-gate .thefibra-member-gate__btn:hover {
	opacity: 0.85;
}

.thefibra-member-gate .thefibra-member-gate__btn:focus-visible {
	outline: 3px solid var(--tfmg-focus);
	outline-offset: 2px;
}

/* «Continuar com o Google» (botão do Site Kit) */
.thefibra-member-gate .thefibra-member-google {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}

.thefibra-member-gate .thefibra-member-google__or {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 320px;
	margin: 0;
	color: var(--tfmg-muted);
	font-size: 13px;
}

.thefibra-member-gate .thefibra-member-google__or::before,
.thefibra-member-gate .thefibra-member-google__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--tfmg-line);
}

.thefibra-member-gate .thefibra-member-google__placeholder {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 320px;
	min-height: 40px;
	border: 1px dashed var(--tfmg-line);
	border-radius: 999px;
	color: var(--tfmg-muted);
	font-size: 13px;
}

.thefibra-member-gate .thefibra-member-google__note {
	max-width: 46ch;
	margin: 0;
	color: var(--tfmg-muted);
	font-size: 12px;
	line-height: 1.45;
}

.thefibra-member-gate .thefibra-member-google__note a {
	color: inherit;
	text-decoration: underline;
}

.thefibra-member-gate--align-left .thefibra-member-google {
	align-items: flex-start;
}

/* Variantes (theFibra Membros → Leitura para membros → Aparência). */
.thefibra-member-gate--nofade .thefibra-member-gate__teaser::after {
	display: none;
}

.thefibra-member-gate--align-left .thefibra-member-gate__box {
	text-align: left;
}

.thefibra-member-gate--align-left .thefibra-member-gate__text {
	margin-left: 0;
}

.thefibra-member-gate--align-left .thefibra-member-gate__actions {
	justify-content: flex-start;
}

.thefibra-member-gate--box-soft .thefibra-member-gate__box {
	border-radius: 10px;
}

.thefibra-member-gate--box-square .thefibra-member-gate__box {
	border-radius: 0;
}

.thefibra-member-gate--btn-rounded .thefibra-member-gate__btn {
	border-radius: 10px;
}

.thefibra-member-gate--btn-square .thefibra-member-gate__btn {
	border-radius: 0;
}

/* Contra as cores de ligação do tema/Elementor (ex.: «.elementor-NNN .elementor-element-xxx a»,
   especificidade 0,3,1): os botões e ligações da caixa usam sempre as cores da caixa. */
.thefibra-member-gate .thefibra-member-gate__box a.thefibra-member-gate__btn.thefibra-member-gate__btn,
.thefibra-member-gate .thefibra-member-gate__box a.thefibra-member-gate__btn.thefibra-member-gate__btn:visited,
.thefibra-member-gate .thefibra-member-gate__box a.thefibra-member-gate__btn.thefibra-member-gate__btn:hover,
.thefibra-member-gate .thefibra-member-gate__box a.thefibra-member-gate__btn.thefibra-member-gate__btn:focus {
	color: var(--tfmg-text);
	text-decoration: none;
}

.thefibra-member-gate .thefibra-member-gate__box a.thefibra-member-gate__btn--primary.thefibra-member-gate__btn--primary,
.thefibra-member-gate .thefibra-member-gate__box a.thefibra-member-gate__btn--primary.thefibra-member-gate__btn--primary:visited,
.thefibra-member-gate .thefibra-member-gate__box a.thefibra-member-gate__btn--primary.thefibra-member-gate__btn--primary:hover,
.thefibra-member-gate .thefibra-member-gate__box a.thefibra-member-gate__btn--primary.thefibra-member-gate__btn--primary:focus {
	color: var(--tfmg-primary-text);
}

.thefibra-member-gate .thefibra-member-gate__box .thefibra-member-google__note a,
.thefibra-member-gate .thefibra-member-gate__box .thefibra-member-google__note a:visited {
	color: inherit;
	text-decoration: underline;
}

/* O Site Kit fixa max-inline-size no botão; o botão personalizado («Continuar como …») é mais
   largo e ficava cortado. Pode crescer até à largura da caixa e fica centrado. */
.thefibra-member-gate .thefibra-member-google .thefibra-member-google__button {
	display: flex;
	justify-content: center;
	max-inline-size: 100% !important;
}

.thefibra-member-gate--align-left .thefibra-member-google .thefibra-member-google__button {
	justify-content: flex-start;
}

@media (max-width: 480px) {
	.thefibra-member-gate__box {
		padding: 24px 16px;
	}

	.thefibra-member-gate__actions {
		flex-direction: column;
	}

	.thefibra-member-gate .thefibra-member-gate__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thefibra-member-gate .thefibra-member-gate__btn {
		transition: none;
	}
}
