/* ============================================================
   TRABALHE CONOSCO — Cadastro + Seleções Docentes
   Unileão · portalv4.0 (front)
   ------------------------------------------------------------
   Adaptado do preview isolado para os tokens/fontes do site:
     cores  -> var(--ed-*) (definidos em .editorial-page / page-editorial-base.css)
     fontes -> Source Serif 4 (títulos/leitura) + Inter (UI)
   Tudo escopado em .selecoes-wrap para vencer as regras genéricas
   do .editorial-page. Sem reset/:root locais e sem .selecoes-placeholder.
   ============================================================ */

/* ============================================================
   1. ESTRUTURA
   ============================================================ */
.selecoes-wrap {
	width: 100%;
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	padding: 64px 32px 96px;
	background: #faf9f6;
	color: var(--ed-ink);
	font-family: var(--ed-font-serif);
	line-height: 1.65;
}
/* Dois blocos (cadastro em cima, seleções embaixo) coladas como uma página só. */
.selecoes-wrap.tc-sel-top { padding-bottom: 0; }
.selecoes-wrap.tc-sel-bottom { padding-top: 0; }

.selecoes-wrap .selecoes-titulo {
	font-family: var(--ed-font-serif);
	font-weight: 500;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	color: var(--ed-ink);
	letter-spacing: -.035em;
	line-height: 1.05;
	margin: 0 0 28px;
}

.selecoes-wrap .selecoes-intro {
	font-size: 1.15rem;
	margin-bottom: 40px;
}
.selecoes-wrap .selecoes-intro p { margin: 0; }
.selecoes-wrap .selecoes-intro a {
	color: var(--ed-gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.selecoes-wrap .selecoes-sep {
	border: 0;
	border-top: 1px solid var(--ed-line);
	margin: 48px 0;
}

/* ============================================================
   2. CTAs — CADASTRE SEU CURRÍCULO
   ============================================================ */
.selecoes-wrap .selecoes-cadastro-label {
	font-family: var(--ed-font-sans);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--ed-ink);
	margin: 8px 0 18px;
}
.selecoes-wrap .selecoes-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.selecoes-wrap .selecoes-cta {
	display: inline-block;
	background: var(--ed-ink);
	color: #fff;
	font-family: var(--ed-font-sans);
	font-weight: 500;
	font-size: 1rem;
	text-decoration: none;
	padding: 14px 26px;
	border-radius: 6px;
	transition: background .18s ease;
}
.selecoes-wrap .selecoes-cta:hover { background: #2e2e2e; color: #fff; }

/* ============================================================
   3. CABEÇALHO DO BLOCO
   ============================================================ */
.selecoes-wrap .selecoes-tag {
	width: 56px;
	height: 3px;
	background: var(--ed-gold);
	margin-bottom: 24px;
}
.selecoes-wrap .selecoes-h2 {
	font-family: var(--ed-font-serif);
	font-weight: 700;
	font-size: 2rem;
	color: var(--ed-ink);
	margin: 0 0 12px;
}
.selecoes-wrap .selecoes-sub {
	font-size: 1.05rem;
	margin-bottom: 28px;
}

/* ============================================================
   4. SELETOR SEGMENTADO DE SEMESTRE
   ============================================================ */
.selecoes-wrap .selecoes-bar {
	display: block;
	margin-bottom: 40px;
}
.selecoes-wrap .selecoes-semestres {
	display: inline-flex;
	flex-wrap: wrap;
	max-width: 100%;
	border: 1px solid var(--ed-line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--ed-cream);
}
.selecoes-wrap .selecoes-pill {
	font-family: var(--ed-font-sans);
	font-size: .95rem;
	font-weight: 500;
	color: var(--ed-ink);
	background: transparent;
	border: 0;
	border-right: 1px solid var(--ed-line);
	padding: 12px 24px;
	cursor: pointer;
	white-space: nowrap;
	transition: all .18s ease;
}
.selecoes-wrap .selecoes-pill:last-child { border-right: 0; }
.selecoes-wrap .selecoes-pill:hover { background: #f5f3ee; color: var(--ed-ink); }
.selecoes-wrap .selecoes-pill.is-ativo { background: var(--ed-ink); color: #fff; font-weight: 600; }
.selecoes-wrap .selecoes-pill.is-ativo:hover { background: var(--ed-ink); }

/* ============================================================
   5. PAINEL DO SEMESTRE
   ============================================================ */
.selecoes-wrap .selecoes-painel { display: none; }
.selecoes-wrap .selecoes-painel.is-ativo {
	display: block;
	animation: selecoesFade .3s ease;
}
@keyframes selecoesFade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

/* ============================================================
   6. CARD DE VAGA / SELEÇÃO
   ============================================================ */
.selecoes-wrap .selecoes-vaga {
	border: 1px solid var(--ed-line);
	border-radius: 12px;
	padding: 28px 30px;
	margin-bottom: 24px;
	background: var(--ed-cream);
}
.selecoes-wrap .selecoes-vaga-topo {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.selecoes-wrap .selecoes-vaga-nome {
	font-family: var(--ed-font-serif);
	font-weight: 700;
	font-size: 1.45rem;
	color: var(--ed-ink);
	line-height: 1.2;
	margin: 0;
}
.selecoes-wrap .selecoes-vaga-meta {
	font-family: var(--ed-font-sans);
	font-size: .9rem;
	color: var(--ed-muted);
	margin: 4px 0 0;
}

/* Status */
.selecoes-wrap .selecoes-status {
	font-family: var(--ed-font-sans);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 100px;
	white-space: nowrap;
	flex-shrink: 0;
}
.selecoes-wrap .selecoes-status--aberta { background: var(--ed-ink); color: #fff; }
.selecoes-wrap .selecoes-status--encerrada { background: #f5f3ee; color: var(--ed-muted); border: 1px solid var(--ed-line); }
.selecoes-wrap .selecoes-status--resultado { background: #f5eccf; color: #8a6d12; border: 1px solid var(--ed-gold); }

/* ============================================================
   7. BLOCOS INTERNOS DO CARD
   ============================================================ */
.selecoes-wrap .selecoes-bloco-label {
	font-family: var(--ed-font-sans);
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ed-gold);
	margin: 22px 0 12px;
}
.selecoes-wrap .selecoes-vaga-topo + .selecoes-bloco-label { margin-top: 0; }

.selecoes-wrap .selecoes-datas { list-style: none; margin: 0; padding: 0; }
.selecoes-wrap .selecoes-datas li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 10px;
	font-size: 1rem;
}
.selecoes-wrap .selecoes-datas li::before {
	content: "";
	position: absolute;
	left: 4px; top: 10px;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--ed-gold);
}
.selecoes-wrap .selecoes-datas strong { color: var(--ed-ink); }

.selecoes-wrap .selecoes-inscrever { font-size: 1rem; margin: 0 0 6px; }
.selecoes-wrap .selecoes-inscrever a {
	color: var(--ed-gold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Lista de arquivos */
.selecoes-wrap .selecoes-arquivos {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ed-line);
}
.selecoes-wrap .selecoes-arquivos li { border-bottom: 1px solid var(--ed-line); }
.selecoes-wrap .selecoes-arquivos a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 4px;
	text-decoration: none;
	color: var(--ed-ink);
	font-family: var(--ed-font-sans);
	font-weight: 600;
	font-size: .98rem;
	transition: color .18s ease;
}
.selecoes-wrap .selecoes-arquivos a:hover { color: var(--ed-gold); }
.selecoes-wrap .selecoes-arquivos .selecoes-seta {
	font-size: 1.15rem;
	color: var(--ed-gold);
	flex-shrink: 0;
}

/* Estado vazio */
.selecoes-wrap .selecoes-vazio {
	font-family: var(--ed-font-sans);
	font-size: .98rem;
	color: var(--ed-muted);
	font-style: italic;
	padding: 14px 0;
}

/* ============================================================
   8. BOTÃO VOLTAR AO TOPO (flutuante)
   ============================================================ */
.selecoes-topo {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 50;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--ed-gold, #C49A20);
	color: #141414;
	font-family: var(--ed-font-sans, 'Inter', sans-serif);
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	border: 0;
	border-radius: 100px;
	padding: 14px 24px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0,0,0,.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.selecoes-topo.is-visivel {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.selecoes-topo:hover { background: #b08a1c; }

/* ============================================================
   9. RESPONSIVO
   ============================================================ */
@media (max-width: 991px) {
	.selecoes-wrap { padding: 56px 28px 80px; }
	.selecoes-wrap.tc-sel-top { padding-bottom: 0; }
	.selecoes-wrap.tc-sel-bottom { padding-top: 0; }
	.selecoes-wrap .selecoes-vaga { padding: 26px 26px; }
}

@media (max-width: 575px) {
	.selecoes-wrap { padding: 40px 20px 64px; }
	.selecoes-wrap.tc-sel-top { padding-bottom: 0; }
	.selecoes-wrap.tc-sel-bottom { padding-top: 0; }

	/* Segmentado com scroll horizontal */
	.selecoes-wrap .selecoes-bar {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.selecoes-wrap .selecoes-bar::-webkit-scrollbar { display: none; }
	.selecoes-wrap .selecoes-semestres {
		display: inline-flex;
		flex-wrap: nowrap;
		max-width: none;
	}
	.selecoes-wrap .selecoes-pill {
		padding: 11px 18px;
		font-size: .9rem;
		flex: 0 0 auto;
	}

	.selecoes-wrap .selecoes-vaga { padding: 22px 20px; }
	.selecoes-wrap .selecoes-vaga-topo { flex-direction: column; align-items: flex-start; }

	.selecoes-topo {
		right: 16px;
		bottom: 16px;
		padding: 12px 18px;
		font-size: .72rem;
	}
}
