/* Vagas RJ — layout tipo marketplace (busca + cards limpos) */

:root {
  --navy: #1a1a2e;
  --navy-soft: #2d2d44;
  --blue: #1e3a8a;
  --blue-bright: #1e40af;
  --blue-light: #eef2ff;
  --bg: #f4f4f5;
  --bg-soft: #fafafa;
  --card: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-soft: #f4f4f5;
  --radius: 12px;
  --radius-sm: 999px;
  --shadow: none;
  --shadow-sm: none;
  --header-h: 64px;
  --container-max: 1120px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.container,
.admin-body .container {
  max-width: var(--container-max);
}

main.container,
.site-main {
  padding-top: 24px;
  padding-bottom: 64px;
}

/* Header limpo */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  min-height: var(--header-h);
}

.header-inner {
  min-height: var(--header-h);
}

.logo-image {
  height: 36px;
}

.main-nav a {
  border-radius: 8px;
  font-weight: 600;
  color: #3f3f46;
}

.main-nav a.active {
  background: var(--blue-light);
  color: var(--blue);
  box-shadow: none;
}

.btn,
.btn-nav {
  border-radius: 8px !important;
  box-shadow: none !important;
  background: var(--blue) !important;
  transform: none !important;
}

.btn:hover,
.btn-nav:hover {
  background: var(--navy) !important;
  transform: none !important;
}

.btn-outline {
  background: #fff !important;
  color: var(--blue) !important;
  border: 1px solid var(--line) !important;
}

.btn-nav {
  background: var(--blue) !important;
  color: #fff !important;
}

/* Topo marketplace */
.market-top {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.market-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.market-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.market-lead {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1rem;
}

.market-filters-form {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.market-search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.market-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  min-width: 0;
}

.market-search input:focus {
  outline: none;
}

.market-search-btn {
  border: 0;
  padding: 0 22px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
}

.market-search-btn:hover {
  background: var(--navy);
}

.market-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-field {
  display: grid;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.market-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.market-field input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 0;
  width: 100%;
}

.market-field input:focus {
  outline: none;
}

.market-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.market-btn-apply {
  border-radius: 10px !important;
  background: var(--blue) !important;
  padding: 12px 18px !important;
}

.market-btn-clear,
.market-btn-cities {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 10px 4px;
}

.market-btn-clear:hover,
.market-btn-cities:hover {
  text-decoration: underline;
}

.city-grid-market {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.city-card {
  display: grid;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.city-card:hover {
  border-color: var(--blue);
}

.city-card strong {
  font-size: 1.02rem;
}

.city-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-chip {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.city-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.article-byline {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-deck {
  margin: 8px 0 0;
  font-size: 1.05rem;
  color: #3f3f46;
  line-height: 1.55;
}

.article-sidebar-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* legacy pill rules kept harmless */
.market-filter-row,
.market-pill {
  display: none;
}

.market-pill-field input:focus {
  outline: none;
}

.market-pill-field input::placeholder {
  color: #71717a;
  font-weight: 500;
}

.market-pill-submit {
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.market-pill-submit:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.market-pill-clear {
  color: var(--muted);
  font-weight: 500;
}

.market-pill-clear:hover {
  color: var(--text);
}

/* Esconde herói antigo se sobrar em alguma página */
.hero-home {
  display: none !important;
}

.page-hero {
  background: transparent;
  color: inherit;
  box-shadow: none;
  border: 0;
  padding: 0 0 8px;
  margin: 0;
}

.page-hero h1 {
  color: var(--text);
}

.page-hero p {
  color: var(--muted);
}

.section-head-market {
  align-items: center;
  margin-bottom: 18px;
}

.section-head-market h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

.section-link {
  color: var(--blue);
  font-weight: 600;
}

.home-section-soft {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.cta-band {
  display: none;
}

/* Grid de vagas 3 colunas */
.job-grid,
.job-grid-home,
.job-grid-listing,
.job-grid-market {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Card estilo Gupy */
.job-card-market {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 0;
  overflow: hidden;
  box-shadow: none;
  padding: 0;
}

.job-card-market:hover {
  transform: none;
  border-color: #c4c4cc;
  box-shadow: 0 4px 16px rgba(24, 24, 27, 0.06);
}

.job-card-link {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  color: inherit;
  text-decoration: none;
  height: 100%;
  align-content: start;
}

.job-card-company-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.job-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e4e4e7;
}

.job-card-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
}

.job-card-company-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3f3f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.job-card-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.job-card-facts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #52525b;
  line-height: 1.35;
}

.job-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #71717a;
}

.job-card-published {
  margin-top: auto;
  padding-top: 4px;
}

.job-card-published time {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Remove visual antigo do card premium */
.job-card-premium .job-card-accent,
.job-card-market .job-card-accent {
  display: none;
}

.filters-panel {
  display: none;
}

/* Blog cards mais limpos */
.blog-card {
  border-radius: 12px;
  border-color: var(--line);
}

.entity-card:hover,
.card-hover:hover {
  transform: none;
}

/* Footer */
.site-footer {
  background: #18181b;
  margin-top: 48px;
}

@media (max-width: 960px) {
  .job-grid,
  .job-grid-home,
  .job-grid-listing,
  .job-grid-market,
  .city-grid-market {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .job-grid,
  .job-grid-home,
  .job-grid-listing,
  .job-grid-market,
  .city-grid-market {
    grid-template-columns: 1fr;
  }

  .market-search {
    flex-direction: column;
  }

  .market-search-btn {
    width: 100%;
    padding: 14px;
  }

  .market-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .market-btn-apply {
    width: 100%;
    text-align: center;
  }

  .market-btn-clear,
  .market-btn-cities {
    text-align: center;
  }

  .job-card-facts {
    grid-template-columns: 1fr;
  }
}

/* FAQ listagens — estilo portais (visível + FAQPage) */
.jobs-faq {
  margin: 36px 0 12px;
  padding: 28px 24px;
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 48%);
  border: 1px solid #dbe3ee;
  border-radius: 14px;
}

.jobs-faq-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: #0b1f3a;
  letter-spacing: -0.02em;
}

.jobs-faq-lead {
  margin: 0 0 18px;
  color: #5a6a82;
  font-size: 0.98rem;
  max-width: 62ch;
}

.jobs-faq-list {
  display: grid;
  gap: 10px;
}

.jobs-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 16px;
}

.jobs-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 700;
  color: #0b1f3a;
  font-size: 0.98rem;
}

.jobs-faq-item summary::-webkit-details-marker {
  display: none;
}

.jobs-faq-item summary::after {
  content: '+';
  float: right;
  color: #2563eb;
  font-weight: 800;
}

.jobs-faq-item[open] summary::after {
  content: '–';
}

.jobs-faq-item p {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.55;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .jobs-faq {
    padding: 20px 14px;
  }
}
