/* Identidade Aurex — hub e timeline (alinhado ao plugin linha do tempo) */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;500;600&display=swap");

.aurex-inst-root {
	--aurex-blue: #0052cc;
	--aurex-text: #4b5563;
	--aurex-muted: #6b7280;
	--aurex-line: #e5e7eb;
	--aurex-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	font-family: "Rubik", sans-serif;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 1rem 0 2rem;
	color: var(--aurex-text);
	box-sizing: border-box;
}

.aurex-inst-root *,
.aurex-inst-root *::before,
.aurex-inst-root *::after {
	box-sizing: border-box;
}

/* Evita temas (flex/grid em .entry-content) colocarem cabeçalho e linha do tempo lado a lado ou invertidos */
.aurex-inst-root .aurex-inst-mount {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
	min-width: 0;
}

.aurex-inst-root .aurex-inst-mount > * {
	min-width: 0;
	max-width: 100%;
}

/* Ordem: cabeçalho → conteúdo → voltar (rodapé) */
.aurex-inst-root .aurex-inst-mount > .aurex-inst-head {
	order: 1;
	flex-shrink: 0;
}

.aurex-inst-root .aurex-inst-mount > .aurex-inst-cards,
.aurex-inst-root .aurex-inst-mount > .aurex-tl-wrapper,
.aurex-inst-root .aurex-inst-mount > .aurex-inst-content {
	order: 2;
}

.aurex-inst-root .aurex-inst-mount > .aurex-inst-back-wrap {
	order: 3;
	flex-shrink: 0;
}

.aurex-inst-root .aurex-inst-head {
	display: block;
	width: 100%;
	position: static;
	left: auto;
	top: auto;
	z-index: auto;
	max-width: 100%;
}

.aurex-inst-head h1 {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 600;
	color: var(--aurex-blue);
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.aurex-inst-head p.aurex-inst-sub {
	font-size: 1rem;
	font-weight: 300;
	color: var(--aurex-muted);
	margin: 0 0 2rem;
	max-width: 42rem;
}

/* Cabeçalho tutorial (Safeweb): traço azul + título à esquerda */
.aurex-inst-head-accent {
	width: 55px;
	height: 4px;
	background: var(--aurex-blue);
	border-radius: 2px;
	margin: 0 0 0.85rem;
}

.aurex-inst-head--tier2 {
	text-align: left;
}

.aurex-inst-head--tier2 h1 {
	display: block;
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.aurex-inst-head--tier2 p.aurex-inst-sub {
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 1.75rem;
	max-width: 42rem;
}

.aurex-inst-back-wrap {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--aurex-line);
}

.aurex-inst-back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 10px 22px;
	border: 1.5px solid var(--aurex-blue);
	border-radius: 4px;
	background: #fff;
	color: var(--aurex-blue);
	font-family: inherit;
	font-weight: 500;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.aurex-inst-back:hover {
	background: var(--aurex-blue);
	color: #fff;
}

.aurex-inst-back:focus {
	outline: 2px solid var(--aurex-blue);
	outline-offset: 3px;
}

.aurex-inst-back-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.aurex-inst-back-icon-svg {
	width: 1.1rem;
	height: 1.1rem;
	display: block;
}

.aurex-inst-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	margin-top: 0.5rem;
}

/* Camadas L1/L2 (metadado REST) — hierarquia visual leve */
.aurex-inst-card--layer-L1 .aurex-inst-card-icon {
	background: linear-gradient(145deg, #0052cc, #2563eb);
}
.aurex-inst-card--layer-L2 {
	border-color: rgba(0, 82, 204, 0.12);
}
.aurex-inst-card--layer-L2 .aurex-inst-card-icon {
	background: #1d4ed8;
}

.aurex-inst-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem 1.25rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: var(--aurex-card-shadow);
	border: 1px solid rgba(0, 0, 0, 0.04);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	min-height: 200px;
}

.aurex-inst-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0, 82, 204, 0.12);
}

.aurex-inst-card:focus {
	outline: 2px solid var(--aurex-blue);
	outline-offset: 3px;
}

.aurex-inst-card-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--aurex-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	line-height: 0;
}

.aurex-inst-card-icon-svg {
	width: 1.65rem;
	height: 1.65rem;
	display: block;
	flex-shrink: 0;
}

.aurex-inst-card h3 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--aurex-blue);
}

/* Conteúdo rich text */
.aurex-inst-content {
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.65;
}

.aurex-inst-content h2,
.aurex-inst-content h3 {
	color: var(--aurex-blue);
	font-weight: 600;
	margin-top: 1.5rem;
}

.aurex-inst-content p {
	margin: 0 0 1rem;
}

.aurex-inst-content a {
	color: var(--aurex-blue);
	font-weight: 500;
}

.aurex-inst-content .aurex-tl-btn {
	display: inline-block;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	padding: 8px 20px;
	border: 1.5px solid var(--aurex-blue);
	color: var(--aurex-blue);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.2s ease;
	background: transparent;
}

.aurex-inst-content .aurex-tl-btn:hover {
	background: var(--aurex-blue);
	color: #fff;
}

/* Passos sincronizados — conteúdo completo inline (Safeweb) */
.aurex-inst-tl-from-sync {
	display: block;
	width: 100%;
	clear: both;
	margin-top: 1.25rem;
}

.aurex-inst-root .aurex-inst-tl-item {
	cursor: default;
}

.aurex-inst-root .aurex-tl-body {
	margin-top: 0;
}

.aurex-inst-root .aurex-tl-body p {
	margin: 0 0 0.75rem;
	font-size: 16px;
	font-weight: 300;
	color: var(--aurex-text);
	line-height: 1.65;
}

.aurex-inst-root .aurex-tl-body p:last-child {
	margin-bottom: 0;
}

/* Links no corpo do passo */
.aurex-inst-root .aurex-tl-body a {
	color: var(--aurex-blue);
	font-weight: 500;
}

/* CTAs (Webflow / link em bloco próprio) — borda azul, fundo branco */
.aurex-inst-root .aurex-tl-body > a,
.aurex-inst-root .aurex-tl-body p + a,
.aurex-inst-root .aurex-tl-body .w-button,
.aurex-inst-root .aurex-tl-body .botao-secundario {
	display: inline-block;
	margin-top: 0.35rem;
	margin-bottom: 0.25rem;
	padding: 8px 20px;
	border: 1.5px solid var(--aurex-blue);
	border-radius: 4px;
	color: var(--aurex-blue);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	background: #fff;
	transition: background 0.2s ease, color 0.2s ease;
}

.aurex-inst-root .aurex-tl-body > a:hover,
.aurex-inst-root .aurex-tl-body p + a:hover,
.aurex-inst-root .aurex-tl-body .w-button:hover,
.aurex-inst-root .aurex-tl-body .botao-secundario:hover {
	background: var(--aurex-blue);
	color: #fff;
}

/* Linha de CTAs (ex.: instaladores Windows / macOS lado a lado) */
.aurex-inst-root .aurex-tl-body .w-layout-hflex,
.aurex-inst-root .aurex-inst-content .w-layout-hflex {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.aurex-inst-root .aurex-tl-body a.w-button + a.w-button,
.aurex-inst-root .aurex-tl-body a.botao-secundario + a.botao-secundario,
.aurex-inst-root .aurex-inst-content a.w-button + a.w-button,
.aurex-inst-root .aurex-inst-content a.botao-secundario + a.botao-secundario {
	margin-left: 0.75rem;
}

.aurex-inst-root .aurex-tl-body .w-layout-hflex a.w-button + a.w-button,
.aurex-inst-root .aurex-tl-body .w-layout-hflex a.botao-secundario + a.botao-secundario,
.aurex-inst-root .aurex-inst-content .w-layout-hflex a.w-button + a.w-button,
.aurex-inst-root .aurex-inst-content .w-layout-hflex a.botao-secundario + a.botao-secundario {
	margin-left: 0;
}

.aurex-inst-root .aurex-tl-body .aurex-tl-text {
	margin: 0;
}

/* Timeline reutilizável (passos) */
.aurex-inst-root .aurex-tl-wrapper {
	font-family: "Rubik", sans-serif;
	width: 100%;
	margin: 1rem 0 0;
	padding: 0;
}

.aurex-inst-root .aurex-tl-item {
	position: relative;
	padding-left: 45px;
	padding-bottom: 40px;
}

.aurex-inst-root .aurex-tl-item:last-child {
	padding-bottom: 0;
}

.aurex-inst-root .aurex-tl-bullet {
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	border: 2px solid var(--aurex-blue);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	z-index: 2;
}

.aurex-inst-root .aurex-tl-dot {
	width: 8px;
	height: 8px;
	background: var(--aurex-blue);
	border-radius: 50%;
}

.aurex-inst-root .aurex-tl-line {
	position: absolute;
	left: 9px;
	top: 20px;
	bottom: 0;
	width: 1px;
	background: var(--aurex-line);
	z-index: 1;
}

.aurex-inst-root .aurex-tl-item:last-child .aurex-tl-line {
	display: none;
}

.aurex-inst-root .aurex-tl-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--aurex-blue);
	margin: 0 0 0.65rem;
	line-height: 1.3;
	display: block;
}

.aurex-inst-root .aurex-tl-text {
	font-size: 16px;
	font-weight: 300;
	color: var(--aurex-text);
	line-height: 1.65;
}

.aurex-inst-empty {
	padding: 2rem;
	text-align: center;
	color: var(--aurex-muted);
	background: #f9fafb;
	border-radius: 8px;
}

@media (max-width: 600px) {
	.aurex-inst-card {
		min-height: 160px;
		padding: 1.5rem 1rem;
	}
}
