/*
Theme Name: Portal Vagas
Description: Tema mobile-first para portal de empregos nacional. Busca por cargo e cidade, filtros, vagas salvas, alertas por e-mail e página de vaga otimizada para o Google for Jobs. Requer WP Job Manager e Vagas Brasil Core.
Version: 1.2.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: portal-vagas
License: GPL-2.0-or-later
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #16306a;          /* capa da carteira de trabalho */
	--navy-deep: #0e2250;
	--navy-soft: #e8edf7;
	--gold: #e9b949;          /* letras douradas da capa */
	--gold-hover: #f2c862;
	--gold-ink: #7a5a0c;
	--paper: #f2f4f1;         /* papel das páginas internas */
	--white: #fff;
	--ink: #182133;
	--muted: #586276;
	--line: #d9dfe6;
	--green: #0b7a55;         /* salário, carimbo "nova" */
	--green-soft: #e3f3ec;
	--link: #2150c2;
	--red: #a8202c;
	--focus: #ffbf1f;

	--font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;

	--fs-xs: .8125rem;   /* 13 */
	--fs-sm: .9375rem;   /* 15 */
	--fs-base: 1.0625rem;/* 17 */
	--fs-md: 1.25rem;    /* 20 */
	--fs-lg: 1.5625rem;  /* 25 */
	--fs-xl: clamp(1.75rem, 1.3rem + 2vw, 2.375rem);
	--fs-hero: clamp(2.125rem, 1.4rem + 3.6vw, 3.75rem);

	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--gutter: 16px;
	--max: 1180px;
	--header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pv-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--navy-deep); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.pv-skip:focus { top: 12px; }
.pv-container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.pv-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Botões ---------- */
.pv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .65em 1.15em;
	border: 2px solid transparent; border-radius: var(--r-sm);
	font-weight: 700; font-size: var(--fs-base); line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.pv-btn--gold { background: var(--gold); color: var(--navy-deep); }
.pv-btn--gold:hover { background: var(--gold-hover); }
.pv-btn--navy { background: var(--navy); color: var(--white); }
.pv-btn--navy:hover { background: var(--navy-deep); }
.pv-btn--outline { background: var(--white); border-color: var(--line); color: var(--ink); }
.pv-btn--outline:hover { border-color: var(--navy); }
.pv-btn--ghost { background: transparent; color: var(--ink); }
.pv-btn--ghost:hover { background: var(--navy-soft); }
.pv-btn--block { width: 100%; }
.pv-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; color: inherit; }
.pv-icon-btn:hover { background: var(--navy-soft); }
.pv-link { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; }

/* ---------- Cabeçalho ---------- */
.pv-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.admin-bar .pv-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .pv-header { top: 32px; } }
.pv-header__bar { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.pv-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; margin-right: auto; min-width: 0; }
.pv-brand__seal {
	display: grid; place-items: center; width: 36px; height: 36px; flex: none;
	border: 2px solid var(--gold); border-radius: 50%; color: var(--gold);
	font-family: var(--font-display); font-weight: 800; font-size: 18px;
	box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3px rgba(233,185,73,.55);
}
.pv-brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.custom-logo-link { margin-right: auto; display: inline-flex; }
.custom-logo { max-height: 40px; width: auto; }
.pv-brand--img img { display: block; height: 44px; width: auto; }
.pv-header__tools { display: flex; align-items: center; gap: 4px; }
.pv-saved-link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--r-sm); color: var(--white); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); }
.pv-saved-link:hover { background: rgba(255,255,255,.1); }
.pv-saved-link__label { display: none; }
.pv-saved-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--navy-deep); font-size: 11px; line-height: 18px; text-align: center; }
.pv-menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--white); cursor: pointer; }
.pv-menu-btn .is-open, .pv-menu-btn[aria-expanded="true"] .is-closed { display: none; }
.pv-menu-btn[aria-expanded="true"] .is-open { display: block; }
.pv-menu-btn .pv-icon { width: 24px; height: 24px; }

.pv-nav { display: none; }
.pv-nav.is-open {
	display: block; position: absolute; left: 0; right: 0; top: 100%;
	background: var(--navy); border-top: 1px solid rgba(255,255,255,.12);
	padding: 8px var(--gutter) 20px; box-shadow: 0 16px 30px rgba(9,20,48,.35);
}
.pv-nav__list { list-style: none; margin: 0 0 12px; padding: 0; }
.pv-nav__list a { display: block; padding: 13px 4px; color: var(--white); text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.1); }
.pv-nav__cta { width: 100%; }

@media (min-width: 960px) {
	.pv-header__bar { gap: 24px; }
	.pv-menu-btn { display: none; }
	.pv-nav, .pv-nav.is-open { display: flex; align-items: center; gap: 20px; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
	.pv-nav__list { display: flex; gap: 4px; margin: 0; }
	.pv-nav__list a { padding: 10px 12px; border: 0; border-radius: var(--r-sm); font-size: var(--fs-sm); }
	.pv-nav__list a:hover, .pv-nav__list .current-menu-item a { background: rgba(255,255,255,.1); }
	.pv-nav__cta { width: auto; min-height: 42px; font-size: var(--fs-sm); }
	.pv-saved-link__label { display: inline; }
	.pv-header__tools { order: 3; }
}

/* ---------- Hero (capa da carteira) ---------- */
.pv-hero {
	position: relative; overflow: hidden;
	background-color: var(--navy);
	background-image:
		radial-gradient(circle at 85% -20%, rgba(255,255,255,.08), transparent 55%),
		repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px);
	color: var(--white);
	padding: 36px 0 44px;
	border-bottom: 4px solid var(--gold);
}
.pv-hero__inner { position: relative; }
.pv-hero__copy { max-width: 760px; }
.pv-hero__title { color: var(--white); font-size: var(--fs-hero); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 14px; }
.pv-hero__lead { font-size: var(--fs-md); color: #d6deef; max-width: 36em; margin-bottom: 24px; }
.pv-hero__lead strong { color: var(--gold); }
.pv-hero__quick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 18px; font-size: var(--fs-sm); color: #c4cfe6; }
.pv-hero__quick ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pv-hero__quick a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: var(--white); text-decoration: none; }
.pv-hero__quick a:hover { border-color: var(--gold); color: var(--gold); }
.pv-hero__stamp {
	display: inline-flex; flex-direction: column; align-items: center; gap: 0;
	margin: 24px 0 0; padding: 8px 16px;
	border: 2px solid rgba(233,185,73,.8); border-radius: 10px; outline: 1px solid rgba(233,185,73,.45); outline-offset: 3px;
	color: var(--gold); transform: rotate(-4deg); font-size: var(--fs-xs); line-height: 1.3;
}
.pv-hero__stamp strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .02em; }
@media (min-width: 960px) {
	.pv-hero { padding: 64px 0 72px; }
	.pv-hero__stamp { position: absolute; right: var(--gutter); top: 8px; margin: 0; padding: 14px 22px; transform: rotate(-7deg); font-size: var(--fs-sm); }
	.pv-hero__stamp strong { font-size: 1.6rem; }
}

/* ---------- Busca ---------- */
.pv-search {
	display: grid; gap: 8px;
	background: var(--white); color: var(--ink);
	padding: 8px; border-radius: var(--r-lg);
	box-shadow: 0 10px 30px rgba(6,17,44,.28);
	max-width: 1040px;
}
.pv-search__field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white); cursor: text; }
.pv-search__field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,48,106,.15); }
.pv-search__field .pv-icon { color: var(--muted); width: 22px; height: 22px; }
.pv-search__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-base); padding: 12px 0; }
.pv-search__field input::placeholder { color: #7c8597; }
.pv-search__submit { min-height: 52px; border-radius: var(--r-md); white-space: nowrap; }
.pv-search__remote { position: relative; display: flex; cursor: pointer; }
.pv-search__remote input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pv-search__remote span {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-md);
	font-weight: 700; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; user-select: none;
}
.pv-search__remote span::before {
	content: ""; width: 20px; height: 20px; flex: none; border: 2px solid #9aa3b2; border-radius: 5px; background: var(--white) no-repeat center / 14px;
}
.pv-search__remote .pv-icon { width: 20px; height: 20px; }
.pv-search__remote input:checked + span { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); }
.pv-search__remote input:checked + span::before { border-color: var(--navy); background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.pv-search__remote input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 719px) {
	/* Local e home office na mesma linha */
	.pv-search { grid-template-columns: minmax(0, 1fr) auto; }
	.pv-search__field:first-of-type, .pv-search__submit { grid-column: 1 / -1; }
	.pv-search__remote span { padding: 0 12px; }
}
@media (min-width: 720px) {
	.pv-search { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto auto; }
	.pv-search__remote span { border-color: transparent; border-left: 1.5px solid var(--line); border-radius: 0; }
	.pv-search__remote input:checked + span { border-radius: var(--r-md); border-color: var(--navy); }
	.pv-search__field { border-color: transparent; }
	.pv-search__field + .pv-search__field { border-left: 1.5px solid var(--line); border-radius: 0; }
	.pv-search__field:focus-within { border-radius: var(--r-md); }
	.pv-search__submit { padding-inline: 1.6em; }
}
.pv-search--compact { box-shadow: none; border: 1.5px solid var(--line); }

/* ---------- Seções ---------- */
.pv-section { padding: 36px 0; }
.pv-section--tight { padding-top: 0; }
.pv-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pv-section__head h2 { font-size: var(--fs-lg); margin: 0; }
.pv-home-grid { display: grid; gap: 36px; }
@media (min-width: 960px) {
	.pv-section { padding: 56px 0; }
	.pv-home-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
}
.pv-more { margin-top: 16px; }
.pv-side-title { font-size: var(--fs-md); margin: 0 0 12px; }
.pv-home-grid__side > ul { margin-bottom: 32px; }

/* Grade de estados */
.pv-uf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.pv-uf-grid a, .pv-uf-grid .is-empty {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 54px; padding: 6px 4px; border-radius: var(--r-sm);
	background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.pv-uf-grid a:hover { border-color: var(--navy); background: var(--navy-soft); }
.pv-uf-grid b { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; }
.pv-uf-grid span span, .pv-uf-grid a span { font-size: var(--fs-xs); color: var(--muted); }
.pv-uf-grid .is-empty { opacity: .45; }

.pv-area-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pv-area-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pv-area-list a:hover span:first-child { color: var(--link); text-decoration: underline; }
.pv-count { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

/* ---------- Cartão de vaga ---------- */
.pv-list { display: grid; gap: 10px; }
.pv-card {
	position: relative;
	display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: start;
	padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
	transition: border-color .15s;
}
.pv-card:hover { border-color: var(--navy); }
.pv-card.is-featured { border-left: 4px solid var(--gold); }
.pv-card__title { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-md); letter-spacing: 0; line-height: 1.25; margin: 0 0 2px; }
.pv-card__title a { color: var(--ink); text-decoration: none; }
.pv-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pv-card__title a:hover { color: var(--link); }
.pv-card__company { margin: 0 0 8px; color: var(--muted); font-size: var(--fs-sm); }
.pv-card__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: var(--fs-sm); }
.pv-card__facts li { display: inline-flex; align-items: center; gap: 5px; }
.pv-card__facts .pv-icon { width: 17px; height: 17px; }
.pv-card__extras { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.pv-card__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; height: 100%; }
.pv-card__time { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.pv-salary { color: var(--green); font-weight: 700; }
.pv-card .pv-salary { font-size: var(--fs-sm); background: var(--green-soft); padding: 2px 8px; border-radius: 6px; }
.pv-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 700; background: var(--navy-soft); color: var(--navy); }
.pv-tag .pv-icon { width: 15px; height: 15px; }

/* Carimbo "Nova" */
.pv-stamp {
	display: inline-block; padding: 1px 8px;
	border: 2px solid var(--green); border-radius: 6px;
	color: var(--green); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .02em;
	transform: rotate(-5deg);
}

/* Logo da empresa */
.pv-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); overflow: hidden; background: var(--white); border: 1px solid var(--line); flex: none; }
.pv-logo img { width: 100%; height: 100%; object-fit: contain; }
.pv-logo[data-initials].pv-logo--initials::after { content: attr(data-initials); }
.pv-logo--initials { background: hsl(var(--hue) 45% 93%); color: hsl(var(--hue) 45% 28%); border-color: transparent; font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.pv-logo--lg { width: 64px; height: 64px; border-radius: var(--r-md); }
.pv-logo--lg.pv-logo--initials { font-size: 1.35rem; }

/* Botão salvar */
.pv-save { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.pv-save:hover { background: var(--navy-soft); color: var(--navy); }
.pv-save .pv-icon { width: 22px; height: 22px; }
.pv-save[aria-pressed="true"] { color: #c62f45; }
.pv-save[aria-pressed="true"] .pv-icon { fill: currentColor; }
.pv-btn.pv-save--wide { width: auto; height: auto; border-radius: var(--r-sm); display: inline-flex; border: 2px solid var(--line); background: var(--white); color: var(--ink); }
.pv-save--wide[aria-pressed="true"] { border-color: #e7aab4; background: #fff4f6; }

@media (max-width: 479px) {
	.pv-card { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
	.pv-card .pv-logo { width: 40px; height: 40px; }
	.pv-card__title { font-size: 1.1rem; }
}

/* ---------- Página de resultados ---------- */
.pv-results-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 0 20px; }
.pv-results-head__title { font-size: var(--fs-xl); margin: 4px 0 8px; }
.pv-results-head__intro { color: var(--muted); max-width: 46em; }
.pv-results-head .pv-search { margin-top: 14px; }
.pv-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--muted); }
.pv-crumbs li + li::before { content: "/"; margin-right: 4px; color: #a2aab8; }
.pv-crumbs a { color: var(--muted); }
.pv-crumbs [aria-current] { color: var(--ink); max-width: 30ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.pv-results { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 48px; }
.pv-results__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.pv-results__count { margin: 0 auto 0 0; color: var(--muted); }
.pv-results__count strong { color: var(--ink); }
.pv-results__filter-btn { min-height: 44px; padding: .4em .9em; }
.pv-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--navy); color: var(--white); font-size: var(--fs-xs); }
.pv-select { min-height: 46px; width: 100%; padding: 8px 36px 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23586276' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; }
.pv-select--inline { width: auto; min-height: 44px; }
.pv-sort { margin: 0; }

.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.pv-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 8px 4px 12px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); text-decoration: none; font-size: var(--fs-sm); font-weight: 700; }
.pv-chip .pv-icon { width: 16px; height: 16px; }
.pv-chip:hover { background: #d6dff1; }
/* Tags automáticas na página da vaga */
.pv-job__tags { display: grid; gap: 14px; margin: 0 0 24px; }
.pv-taggroup__title { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.pv-chips--tags { margin: 0; }
.pv-chip--tag { min-height: 32px; padding: 4px 12px; font-weight: 600; }

/* Filtros: gaveta no celular, coluna no computador */
.pv-filters {
	position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
	max-height: 88vh; overflow: auto; overscroll-behavior: contain;
	background: var(--white); border-radius: var(--r-lg) var(--r-lg) 0 0;
	transform: translateY(105%); transition: transform .25s ease;
	box-shadow: 0 -10px 40px rgba(9,20,48,.25);
	visibility: hidden;
}
.pv-filters.is-open { transform: none; visibility: visible; }
.pv-filters__form { padding: 0 20px calc(20px + env(safe-area-inset-bottom)); }
.pv-filters__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; background: var(--white); border-bottom: 1px solid var(--line); }
.pv-filters__head h2 { font-size: var(--fs-md); margin: 0; }
.pv-filter { border: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pv-filter legend, .pv-filter__label { display: block; float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; }
.pv-filter legend + * { clear: both; }
.pv-check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.pv-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); flex: none; }
.pv-filters__actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 14px 0 4px; background: var(--white); }
.pv-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(9,20,48,.5); }
body.pv-lock { overflow: hidden; }

@media (min-width: 960px) {
	.pv-results { grid-template-columns: 264px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 28px; }
	.pv-filters { position: sticky; top: calc(var(--header-h) + 16px); transform: none; visibility: visible; max-height: none; overflow: visible; background: transparent; box-shadow: none; border-radius: 0; z-index: 1; }
	.admin-bar .pv-filters { top: calc(var(--header-h) + 48px); }
	.pv-filters__form { padding: 0; }
	.pv-filters__head { position: static; background: transparent; padding-top: 0; }
	.pv-filters__close, .pv-results__filter-btn { display: none; }
	.pv-filters__actions { position: static; background: transparent; }
	.pv-filter { padding: 14px 0; }
	.pv-check { min-height: 34px; font-size: var(--fs-sm); }
	.pv-scrim { display: none !important; }
}

/* Paginação */
.pv-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; }
.pv-pagination a, .pv-pagination span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.pv-pagination a:hover { border-color: var(--navy); }
.pv-pagination .is-current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pv-pagination .pv-pagination__gap { border: 0; background: none; min-width: 20px; padding: 0; }

/* Vazio */
.pv-empty { padding: 28px 22px; background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--r-md); text-align: center; }
.pv-empty h2, .pv-empty h3 { font-size: var(--fs-md); }
.pv-empty p { color: var(--muted); max-width: 40em; margin-inline: auto; }
.pv-loading { color: var(--muted); }

/* ---------- Alerta por e-mail ---------- */
.pv-alert { display: grid; gap: 14px; margin: 14px 0; padding: 20px; border-radius: var(--r-md); background: var(--navy-soft); border: 1px solid #ccd6ec; }
.pv-alert__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); }
.pv-alert__icon .pv-icon { width: 22px; height: 22px; }
.pv-alert h2 { font-size: var(--fs-md); margin-bottom: 12px; }
@media (min-width: 720px) { .pv-alert { grid-template-columns: 44px 1fr; gap: 18px; padding: 24px; } }

.vbc-alert-form__hp { position: absolute; left: -9999px; }
.vbc-alert-form__row { display: grid; gap: 10px; }
.vbc-field { display: grid; gap: 4px; font-size: var(--fs-sm); font-weight: 700; }
.vbc-field input, .pv-prose input[type="text"], .pv-prose input[type="email"], .pv-prose input[type="url"], .pv-prose input[type="password"], .pv-prose input[type="tel"], .pv-prose input[type="number"], .pv-prose select, .pv-prose textarea {
	width: 100%; min-height: 48px; padding: 10px 12px;
	border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white);
	font-size: var(--fs-base); font-weight: 400;
}
.vbc-field input:focus, .pv-prose input:focus, .pv-prose select:focus, .pv-prose textarea:focus { border-color: var(--navy); outline: 0; box-shadow: 0 0 0 3px rgba(22,48,106,.15); }
.vbc-button { min-height: 48px; padding: 10px 18px; border: 0; border-radius: var(--r-sm); background: var(--navy); color: var(--white); font-weight: 700; cursor: pointer; }
.vbc-button:hover { background: var(--navy-deep); }
.vbc-alert-form__note { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.vbc-alert-form__msg { padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.vbc-alert-form__msg.is-ok { background: var(--green-soft); color: var(--green); }
.vbc-alert-form__msg.is-error { background: #fbe9eb; color: var(--red); }
@media (min-width: 720px) {
	.vbc-alert-form__row { grid-template-columns: 1fr 1fr 1.2fr auto; align-items: end; }
}

/* ---------- Página da vaga ---------- */
.pv-job { padding: 16px 0 56px; }
.pv-job .pv-crumbs { margin-bottom: 14px; }
.pv-job__layout { display: grid; gap: 20px; }
.pv-job__main { min-width: 0; }
.pv-job__head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-bottom: 18px; }
.pv-job__title { font-size: var(--fs-xl); margin: 0 0 4px; }
.pv-job__company { margin: 0; font-size: var(--fs-md); font-weight: 700; }
.pv-job__company a { color: var(--ink); }
.pv-job__posted { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); }

/* Ficha: como a página de contrato da carteira */
.pv-ficha {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 24px; background: var(--white);
	border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--r-md);
	overflow: hidden;
}
.pv-ficha > div { padding: 12px 14px; border-bottom: 1px dashed var(--line); border-right: 1px dashed var(--line); }
.pv-ficha > div:nth-child(2n) { border-right: 0; }
.pv-ficha dt { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 2px; }
.pv-ficha dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pv-ficha dd.is-muted { color: var(--muted); font-weight: 400; }
@media (min-width: 720px) {
	.pv-ficha { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pv-ficha > div:nth-child(2n) { border-right: 1px dashed var(--line); }
	.pv-ficha > div:nth-child(3n) { border-right: 0; }
}

.pv-job__desc, .pv-job__company-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 16px; }
.pv-job__desc > h2, .pv-job__company-box h2 { font-size: var(--fs-lg); }
.pv-job__report { font-size: var(--fs-sm); color: var(--muted); }
.pv-notice { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--r-sm); }
.pv-notice--closed { background: #fbe9eb; color: var(--red); }

.pv-prose { max-width: 70ch; overflow-wrap: break-word; }
.pv-prose h2, .pv-prose h3, .pv-prose h4 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; font-size: var(--fs-md); margin: 1.4em 0 .5em; }
.pv-prose ul, .pv-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.pv-prose li { margin-bottom: .35em; }
.pv-prose--page { max-width: 760px; }

/* Caixa de candidatura: barra fixa no celular */
.pv-apply {
	position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
	display: grid; grid-template-columns: 1fr auto; gap: 8px;
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(9,20,48,.12);
}
.pv-apply__btn { min-height: 52px; font-size: var(--fs-md); }
.pv-apply__row { display: flex; gap: 8px; }
.pv-apply__row .pv-btn { min-height: 52px; padding-inline: 12px; }
.pv-apply__row .pv-btn span { display: none; }
.pv-apply__note { display: none; }
.single-job_listing .pv-footer { padding-bottom: 90px; }
@media (min-width: 960px) {
	.pv-job { padding-top: 24px; }
	.pv-job__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
	.pv-apply { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: 1fr; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: none; }
	.pv-apply__row .pv-btn { flex: 1; }
	.pv-apply__row .pv-btn span { display: inline; }
	.pv-apply__note { display: block; margin: 4px 0 0; font-size: var(--fs-sm); color: var(--muted); }
	.single-job_listing .pv-footer { padding-bottom: 0; }
}
.pv-related { margin-top: 24px; }
.pv-related h2 { font-size: var(--fs-lg); }

/* ---------- Para empresas ---------- */
.pv-employers { background: var(--navy-deep); color: var(--white); }
.pv-employers__inner { display: grid; gap: 28px; }
.pv-employers h2 { color: var(--white); font-size: var(--fs-xl); }
.pv-employers p { color: #c7d1e6; max-width: 34em; }
.pv-steps { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; gap: 12px; }
.pv-steps li { counter-increment: passo; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-md); }
.pv-steps li::before { content: counter(passo); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-weight: 800; }
.pv-steps span { color: #c7d1e6; font-size: var(--fs-sm); }
@media (min-width: 960px) { .pv-employers__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }

/* ---------- Páginas e formulários do WP Job Manager ---------- */
.pv-page { padding-top: 24px; padding-bottom: 56px; }
.pv-page--form .pv-prose--page { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; max-width: 820px; }
@media (min-width: 720px) { .pv-page--form .pv-prose--page { padding: 32px; } }
.job-manager-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.job-manager-form fieldset > label { display: block; font-weight: 700; margin-bottom: 6px; }
.job-manager-form fieldset > label small { font-weight: 400; color: var(--muted); }
.job-manager-form .field { width: 100%; }
.job-manager-form .field .description, .job-manager-form small.description { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); }
.job-manager-form h2 { font-family: var(--font-display); font-size: var(--fs-lg); margin: 28px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.job-manager-form h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.job-manager-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--navy); }
.job-manager-form input[type="submit"], .job-manager-form .button, .job-manager-button, input.button {
	min-height: 50px; padding: 10px 22px; border: 0; border-radius: var(--r-sm);
	background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: var(--fs-base); cursor: pointer;
}
.job-manager-form .wp-editor-wrap { border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.job-manager-message, .job-manager-info { padding: 12px 16px; border-radius: var(--r-sm); background: var(--green-soft); color: var(--green); margin-bottom: 16px; }
.job-manager-error { padding: 12px 16px; border-radius: var(--r-sm); background: #fbe9eb; color: var(--red); margin-bottom: 16px; }
#job-manager-job-dashboard table { width: 100%; border-collapse: collapse; background: var(--white); }
#job-manager-job-dashboard th, #job-manager-job-dashboard td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- Rodapé ---------- */
.pv-footer { background: var(--navy); color: #c7d1e6; padding: 40px 0 0; border-top: 4px solid var(--gold); }
.pv-footer a { color: var(--white); text-decoration: none; }
.pv-footer a:hover { text-decoration: underline; }
.pv-footer__grid { display: grid; gap: 28px; }
.pv-footer__about p { margin-top: 12px; max-width: 30em; font-size: var(--fs-sm); }
.pv-footer__title { color: var(--gold); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; font-size: var(--fs-base); margin-bottom: 10px; }
.pv-footer ul { list-style: none; margin: 0; padding: 0; }
.pv-footer li { margin-bottom: 8px; font-size: var(--fs-sm); }
.pv-footer__states { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-footer__states a { display: inline-block; min-width: 40px; padding: 6px 8px; text-align: center; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; font-weight: 700; }
.pv-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-xs); }
.pv-footer__legal p { margin: 0; max-width: 70ch; }
@media (min-width: 720px) { .pv-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Aviso rápido */
.pv-toast { position: fixed; left: 50%; bottom: 96px; z-index: 100; transform: translateX(-50%); padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--white); font-weight: 700; font-size: var(--fs-sm); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (min-width: 960px) { .pv-toast { bottom: 24px; } }

/* Blog / outras */
.pv-posts { display: grid; gap: 16px; }
.pv-post { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.pv-post h2 { font-size: var(--fs-lg); }
.pv-post h2 a { color: var(--ink); text-decoration: none; }
.pv-post__meta { color: var(--muted); font-size: var(--fs-sm); }
.pv-404 .pv-search { margin-top: 16px; }

/* Vaga encerrada (410) */
.pv-404 .pv-search { margin: 16px 0 28px; }
.pv-404__subtitle { margin: 8px 0 12px; font-family: var(--font-display); font-size: var(--fs-lg, 1.25rem); }
.pv-404 .pv-list + p { margin-top: 16px; }

/* Links institucionais e "Instalar o app" no rodapé */
.pv-footer__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pv-footer__links a[hidden] { display: none; }
