/* ============================================================
   Jooglee — Design System v2.1
   ============================================================ */

/* Inter loaded via <link> in HTML head */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:         #0000CD;
  --blue-dark:    #0000a3;
  --blue-light:   #ebebff;
  --blue-lighter: #f5f5ff;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;
  --green:    #16a34a;
  --green-bg: #f0fdf4;
  --red:      #dc2626;
  --red-bg:   #fef2f2;
  --amber:    #d97706;
  --amber-bg: #fffbeb;
  --color-text:       var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-border:     var(--gray-200);
  --color-bg:         #f4f6f8;
  --color-surface:    var(--white);
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1440px;
  --header-h: 60px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--r-sm); }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; }
input, select { font-family: var(--font); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 24px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 30px; width: auto; }

.header-nav { display: none; align-items: center; gap: 2px; margin-left: 8px; }
@media (min-width: 1024px) { .header-nav { display: flex; } }
.header-nav a {
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  padding: 6px 12px; border-radius: var(--r-md); transition: all .15s;
}
.header-nav a:hover { background: var(--blue-lighter); color: var(--blue); text-decoration: none; }

.header-search { flex: 1; max-width: 340px; margin-left: auto; display: none; }
@media (min-width: 768px) { .header-search { display: block; } }
.header-search-form {
  display: flex; align-items: center;
  background: var(--gray-100); border: 1.5px solid var(--color-border);
  border-radius: var(--r-full); padding: 0 4px 0 14px; transition: .15s;
}
.header-search-form:focus-within { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(0,0,205,.10); }
.header-search-input {
  flex: 1; border: none; background: transparent; font-size: 14px;
  color: var(--color-text); padding: 8px 0; outline: none; min-width: 0;
}
.header-search-input::placeholder { color: var(--gray-400); }
.header-search-btn {
  background: var(--blue); border: none; color: var(--white);
  width: 30px; height: 30px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: .15s;
}
.header-search-btn:hover { background: var(--blue-dark); }
.header-search-btn svg { width: 14px; height: 14px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 768px) { .header-actions { margin-left: 0; } }

.btn-saved {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  padding: 6px 12px; border-radius: var(--r-md);
  border: 1px solid var(--color-border); background: var(--white); transition: .15s;
}
.btn-saved:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.btn-saved svg { width: 15px; height: 15px; }
.saved-count {
  background: var(--blue); color: var(--white); font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.btn-menu {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--color-border);
  border-radius: var(--r-md); background: var(--white); color: var(--gray-700);
}
.btn-menu svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .btn-menu { display: none; } }

/* Mobile nav */
.mobile-nav { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.mobile-nav.open { pointer-events: all; }
.mobile-nav__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
.mobile-nav.open .mobile-nav__overlay { opacity: 1; }
.mobile-nav__drawer {
  position: absolute; top: 0; left: 0; bottom: 0; width: 280px;
  background: var(--white); transform: translateX(-100%); transition: transform .25s;
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-nav.open .mobile-nav__drawer { transform: translateX(0); }
.mobile-nav__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
.mobile-nav__close { background: none; border: none; color: var(--gray-500); padding: 4px; }
.mobile-nav__close svg { width: 20px; height: 20px; }
.mobile-nav__links { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav__links a {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: var(--r-md); font-size: 15px; font-weight: 500; color: var(--gray-700); transition: .15s;
}
.mobile-nav__links a:hover { background: var(--blue-lighter); color: var(--blue); text-decoration: none; }
.mobile-nav__links svg { width: 18px; height: 18px; }

.mobile-search-bar { display: block; background: var(--white); border-bottom: 1px solid var(--color-border); padding: 8px 16px; }
@media (min-width: 768px) { .mobile-search-bar { display: none; } }
.mobile-search-form {
  display: flex; align-items: center; background: var(--gray-100);
  border: 1.5px solid var(--color-border); border-radius: var(--r-full); padding: 0 4px 0 14px;
}
.mobile-search-form:focus-within { border-color: var(--blue); background: var(--white); }
.mobile-search-input { flex: 1; border: none; background: transparent; font-size: 14px; padding: 9px 0; outline: none; color: var(--color-text); min-width: 0; }
.mobile-search-input::placeholder { color: var(--gray-400); }
.mobile-search-btn { background: var(--blue); border: none; color: var(--white); width: 32px; height: 32px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; }
.mobile-search-btn svg { width: 15px; height: 15px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer { background: var(--gray-900); color: var(--gray-400); margin-top: 0; }
.footer-main { padding: 48px 0 32px; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .footer-main { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand .logo img { filter: brightness(0) invert(1); height: 26px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--gray-400); transition: color .15s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--gray-800); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 13px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: var(--gray-400); }
.footer-legal a:hover { color: var(--white); text-decoration: none; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: var(--r-md);
  border: none; cursor: pointer; transition: all .15s; text-decoration: none;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); text-decoration: none; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-lighter); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--gray-700); border: 1.5px solid var(--color-border); }
.btn-ghost:hover { background: var(--gray-100); text-decoration: none; }
.btn-lg { font-size: 15px; padding: 13px 28px; }
.btn-sm { font-size: 13px; padding: 7px 14px; }

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; padding: 3px 9px;
  border-radius: var(--r-full); white-space: nowrap;
}
.badge-blue    { background: var(--blue-light); color: var(--blue-dark); }
.badge-green   { background: var(--green-bg); color: var(--green); }
.badge-amber   { background: var(--amber-bg); color: var(--amber); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge-outline { background: transparent; border: 1px solid var(--color-border); color: var(--gray-600); }

/* ── FORMS ────────────────────────────────────────────────── */
.input {
  width: 100%; padding: 10px 14px; font-size: 14px; color: var(--color-text);
  background: var(--white); border: 1.5px solid var(--color-border);
  border-radius: var(--r-md); outline: none; transition: .15s; line-height: 1.5;
}
.input::placeholder { color: var(--gray-400); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,0,205,.10); }
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 36px;
}

/* ── SEARCH BAR ───────────────────────────────────────────── */
.search-bar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 100;
}

.search-bar-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 0 14px;
  transition: .15s;
  flex: 2;
  min-width: 180px;
}
.search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,0,205,.08);
  background: var(--white);
}
.search-field svg { width: 16px; height: 16px; color: var(--gray-400); flex-shrink: 0; }
.search-field input {
  border: none; background: transparent; font-size: 14px;
  padding: 10px 0; outline: none; width: 100%; color: var(--color-text);
}
.search-field input::placeholder { color: var(--gray-400); }

.search-select {
  flex: 0 0 auto;
  appearance: none; -webkit-appearance: none;
  background: var(--gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 10px 34px 10px 14px;
  font-size: 14px; color: var(--gray-700);
  cursor: pointer; outline: none; transition: .15s;
  font-family: var(--font);
  min-width: 140px;
}
.search-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,0,205,.08); background-color: var(--white); }

.search-btn {
  background: var(--blue); color: var(--white); border: none;
  font-size: 14px; font-weight: 600; padding: 10px 22px;
  border-radius: var(--r-md); cursor: pointer; transition: .15s;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-family: var(--font);
}
.search-btn:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); }
.search-btn svg { width: 16px; height: 16px; }

/* Filter chips */
.filter-chips {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 8px 0 2px; scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; padding: 5px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
  border: 1.5px solid var(--color-border);
  background: var(--white); color: var(--gray-600);
  cursor: pointer; transition: all .15s; flex-shrink: 0;
  font-family: var(--font);
}
.chip:hover, .chip.active {
  border-color: var(--blue); color: var(--blue);
  background: var(--blue-lighter);
}
.chip svg { width: 12px; height: 12px; }

/* ── LAYOUT DUAS COLUNAS ──────────────────────────────────── */
.jobs-layout {
  display: grid;
  grid-template-columns: 1fr;
  height: calc(100vh - var(--header-h) - 57px - 44px);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .jobs-layout { grid-template-columns: 420px 1fr; }
}

/* Coluna lista */
.list-col {
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  overflow: hidden;
}
@media (max-width: 1023px) {
  .list-col { border-right: none; height: auto; overflow: visible; }
}

.list-col-header {
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 8px;
}

#result-count { font-size: 13px; font-weight: 600; color: var(--gray-600); }

.sort-select {
  font-size: 12px; color: var(--gray-700);
  border: 1px solid var(--color-border); border-radius: var(--r-md);
  padding: 5px 28px 5px 8px; background: var(--white);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  outline: none; cursor: pointer; font-family: var(--font);
}
.sort-select:focus { border-color: var(--blue); }

#job-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 1023px) {
  #job-list { overflow-y: visible; flex: none; }
}

/* ── JOB CARD ─────────────────────────────────────────────── */
.job-card {
  background: var(--white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}
.job-card:hover {
  border-color: #a0a0e8;
  box-shadow: 0 2px 8px rgba(0,0,205,.10);
  text-decoration: none;
}
.job-card.active {
  border-color: var(--blue);
  border-left-width: 3px;
  background: var(--blue-lighter);
  box-shadow: 0 2px 8px rgba(0,0,205,.12);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.card-logo {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  background: var(--gray-100);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: var(--blue);
}
.card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.card-body { flex: 1; min-width: 0; }

.card-title {
  font-size: 14px; font-weight: 700; color: var(--gray-900);
  line-height: 1.35; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.card-company {
  font-size: 13px; color: var(--gray-600); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}

.card-save {
  flex-shrink: 0; background: none; border: none;
  color: var(--gray-400); padding: 2px; border-radius: var(--r-sm);
  transition: color .15s; line-height: 1;
}
.card-save:hover, .card-save.saved { color: var(--blue); }
.card-save svg { width: 16px; height: 16px; display: block; }

.card-location {
  font-size: 12px; color: var(--gray-500);
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 8px;
}
.card-location svg { width: 12px; height: 12px; flex-shrink: 0; }

.card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }

.card-salary {
  background: var(--green-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--r-md);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-salary svg { width: 12px; height: 12px; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--gray-400);
}

/* ── DETAIL PANEL ─────────────────────────────────────────── */
.detail-col {
  display: none;
  overflow-y: auto;
  background: var(--gray-50);
}
@media (min-width: 1024px) { .detail-col { display: block; } }

#job-detail {
  min-height: 100%;
}

.detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  color: var(--gray-400);
  text-align: center;
  padding: 48px 32px;
}
.detail-empty svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: .4; }
.detail-empty p { font-size: 15px; }

/* Detail content — carregado via fetch */
.detail-inner {
  padding: 24px;
  max-width: 100%;
}

/* Reaproveitar estilos da página de vaga no painel */
.detail-inner .job-detail-page {
  grid-template-columns: 1fr;
  padding: 0;
  gap: 16px;
}
.detail-inner .job-sidebar { display: none; }
.detail-inner .mobile-apply-bar { display: none; }

.detail-inner .job-top {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 20px;
}
.detail-inner .job-title { font-size: 20px; }
.detail-inner .job-body {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 20px;
  font-size: 14px;
}

/* ── JOB DETAIL PAGE (URL direta) ────────────────────────── */
.job-detail-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px 0 64px;
  align-items: start;
}
@media (min-width: 1024px) {
  .job-detail-page { grid-template-columns: 1fr 300px; }
}

.job-top {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-bottom: 16px;
}

.job-company-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.job-company-logo {
  width: 56px; height: 56px; border-radius: var(--r-lg);
  border: 1px solid var(--color-border); background: var(--gray-50);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--blue);
}
.job-company-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.job-company-info__name { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.job-company-info__link { font-size: 13px; color: var(--blue); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.job-company-info__link svg { width: 11px; height: 11px; }

.job-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800; color: var(--gray-900);
  line-height: 1.2; letter-spacing: -.4px; margin-bottom: 14px;
}

.job-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }

.job-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--color-border);
}

/* Sidebar apply card */
.job-sidebar {}
.apply-card {
  background: var(--white); border: 1px solid var(--color-border);
  border-radius: var(--r-xl); padding: 20px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.apply-card .btn-primary { width: 100%; font-size: 15px; padding: 13px; margin-bottom: 8px; }
.apply-card__note { font-size: 12px; color: var(--gray-500); text-align: center; }
.apply-card__details {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 12px;
}
.apply-detail { display: flex; align-items: flex-start; gap: 10px; }
.apply-detail__icon {
  width: 30px; height: 30px; background: var(--blue-light); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0;
}
.apply-detail__icon svg { width: 14px; height: 14px; }
.apply-detail__label { font-size: 10px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.apply-detail__value { font-size: 13px; font-weight: 600; color: var(--gray-800); margin-top: 1px; }

/* Job body */
.job-body { background: var(--white); border: 1px solid var(--color-border); border-radius: var(--r-xl); padding: 28px; }
.job-body h2, .job-body h3, .job-body h4 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin: 24px 0 10px; }
.job-body h2:first-child, .job-body h3:first-child { margin-top: 0; }
.job-body p { color: var(--gray-700); margin-bottom: 12px; line-height: 1.75; font-size: 14px; }
.job-body p:last-child { margin-bottom: 0; }
.job-body ul, .job-body ol { padding-left: 20px; margin-bottom: 12px; }
.job-body li { color: var(--gray-700); margin-bottom: 5px; line-height: 1.6; font-size: 14px; }
.job-body strong, .job-body b { font-weight: 600; color: var(--gray-900); }
.job-body a { color: var(--blue); text-decoration: underline; }

/* Mobile apply bar */
.mobile-apply-bar {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--color-border);
  padding: 10px 16px; gap: 10px; z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
@media (min-width: 1024px) { .mobile-apply-bar { display: none; } }
.mobile-apply-bar .btn-primary { flex: 1; }

/* Related jobs */
.related-jobs {
  background: var(--white); border: 1px solid var(--color-border);
  border-radius: var(--r-xl); padding: 20px; margin-top: 16px;
}
.related-jobs h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--gray-900); }
.related-job-item {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--color-border);
  text-decoration: none; color: inherit;
}
.related-job-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-job-item:hover .related-job-item__title { color: var(--blue); }
.related-job-item__title { font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
.related-job-item__meta { font-size: 12px; color: var(--gray-500); }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb { padding: 12px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-500); }
.breadcrumb li + li::before { content: '/'; color: var(--gray-300); margin-right: 6px; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--gray-700); font-weight: 500; }

/* ── PÁGINAS ESTÁTICAS ────────────────────────────────────── */
.static-page { max-width: 760px; margin: 40px auto; padding: 0 0 80px; }
.static-page h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.static-page .lead { font-size: 17px; color: var(--gray-600); margin-bottom: 40px; line-height: 1.7; }
.static-page h2 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; }
.static-page p, .static-page li { font-size: 15px; color: var(--gray-700); line-height: 1.8; margin-bottom: 12px; }
.static-page ul { padding-left: 20px; margin-bottom: 14px; }

/* ── 404 ──────────────────────────────────────────────────── */
.page-404 { text-align: center; padding: 80px 20px; max-width: 480px; margin: 0 auto; }
.page-404__code { font-size: 80px; font-weight: 900; color: var(--blue-light); line-height: 1; margin-bottom: 16px; }
.page-404 h1 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.page-404 p { color: var(--gray-500); margin-bottom: 28px; }

/* ── LOADING ──────────────────────────────────────────────── */
.loading-spinner { display: flex; justify-content: center; padding: 32px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--color-border); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ────────────────────────────────────────────────── */
.share-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gray-900); color: var(--white);
  font-size: 13px; font-weight: 500; padding: 10px 20px;
  border-radius: var(--r-full); opacity: 0; transition: all .2s;
  pointer-events: none; white-space: nowrap; z-index: 500;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── COMPANY PAGE ─────────────────────────────────────────── */
.company-header { background: var(--white); border-bottom: 1px solid var(--color-border); padding: 32px 0; }
.company-header__inner { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.company-header__logo {
  width: 72px; height: 72px; border-radius: var(--r-lg);
  border: 1px solid var(--color-border); background: var(--gray-50);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--blue);
}
.company-header__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.company-header__name { font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: -.4px; margin-bottom: 8px; }
.company-header__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--gray-600); }
.company-header__meta span { display: flex; align-items: center; gap: 5px; }
.company-header__meta svg { width: 14px; height: 14px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 639px) {
  .job-top { padding: 16px; }
  .job-body { padding: 16px; }
  body { padding-bottom: 68px; }
  .search-bar-inner { flex-wrap: wrap; }
  .search-field { min-width: 100%; }
}

@media (max-width: 1023px) {
  .jobs-layout { height: auto; overflow: visible; }
  .list-col { height: auto; overflow: visible; }
  #job-list { overflow-y: visible; flex: none; }
}
/* Tamanho padrão de todos os SVGs inline */
.header-nav svg,
.mobile-nav__links svg,
.search-field svg,
.search-btn svg,
.chip svg,
.card-save svg,
.card-location svg,
.card-salary svg,
.btn svg,
.btn-saved svg,
.btn-menu svg,
.mobile-nav__close svg,
.header-search-btn svg,
.mobile-search-btn svg {
  width: 16px !important;
  height: 16px !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.detail-empty svg { display: none; }

/* Corrigir largura do layout de duas colunas */
.jobs-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ── MOBILE RESPONSIVO ────────────────────────────────────── */
@media (max-width: 1023px) {

  /* Search bar empilhada */
  .search-bar-inner {
    flex-direction: column;
    gap: 8px;
  }
  .search-field {
    width: 100%;
    min-width: unset;
  }
  .search-select {
    width: 100%;
  }
  .search-btn {
    width: 100%;
    justify-content: center;
  }

  /* Layout volta para coluna única */
  .jobs-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  /* Lista sem altura fixa */
  .list-col {
    border-right: none;
    height: auto;
    overflow: visible;
    width: 100%;
  }

  /* Job list sem scroll interno */
  #job-list {
    overflow-y: visible;
    flex: none;
    padding: 8px 12px;
    gap: 8px;
  }

  /* Cards largura total */
  .job-card {
    width: 100%;
    border-radius: var(--r-lg);
    padding: 14px;
  }

  /* Esconder coluna de detalhe no mobile */
  .detail-col {
    display: none !important;
  }

  /* Header da lista */
  .list-col-header {
    padding: 10px 12px;
    position: sticky;
    top: calc(var(--header-h) + 44px);
    background: var(--white);
    z-index: 50;
  }

  /* Página de vaga individual no mobile */
  .job-detail-page {
    grid-template-columns: 1fr;
    padding: 16px 0 80px;
    gap: 12px;
  }

  .job-top {
    padding: 16px;
    border-radius: var(--r-lg);
  }

  .job-title {
    font-size: 20px;
  }

  .job-body {
    padding: 16px;
    border-radius: var(--r-lg);
  }

  /* Sidebar escondida no mobile — usar mobile-apply-bar */
  .job-sidebar {
    display: none;
  }

  /* Filter chips */
  .filter-chips {
    padding: 6px 0;
    gap: 6px;
  }

  .chip {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (max-width: 639px) {
  /* Search bar ainda mais compacta */
  .search-bar-wrap {
    padding: 10px 0;
  }

  /* Cards compactos */
  .card-top {
    gap: 10px;
  }

  .card-logo {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-company {
    font-size: 12px;
  }

  .badge {
    font-size: 11px;
    padding: 2px 7px;
  }

  /* Breadcrumb menor */
  .breadcrumb ol {
    font-size: 12px;
  }

  /* Job badges */
  .job-badges {
    gap: 5px;
  }

  /* Actions empilhadas */
  .job-actions {
    flex-wrap: wrap;
  }
  .job-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ── RESET COMPLETO DO LAYOUT ─────────────────────────────── */

/* Desktop: duas colunas */
.jobs-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: calc(100vh - var(--header-h) - 105px);
  overflow: hidden;
  max-width: 100%;
}

.list-col {
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  min-width: 0;
}

#job-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.detail-col {
  overflow-y: auto;
  height: 100%;
  background: var(--gray-50);
  min-width: 0;
}

/* Mobile: coluna única */
@media (max-width: 1023px) {
  .jobs-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow: visible !important;
  }

  .list-col {
    overflow-y: visible !important;
    height: auto !important;
    border-right: none !important;
    width: 100% !important;
  }

  #job-list {
    overflow-y: visible !important;
    flex: none !important;
    padding: 8px 12px !important;
  }

  .detail-col {
    display: none !important;
  }

  .list-col-header {
    position: sticky;
    top: calc(var(--header-h) + 95px);
    z-index: 50;
  }
}

/* Hero ícone remote */
.hero-remote-icon,
[style*="hero"] svg {
  color: #fff;
}

/* Garantir que jobs-layout ocupe 100% da largura disponível */
.jobs-layout {
  width: 100%;
}

/* Corrigir flag emoji no hero */
[style*="font-size:52px"] {
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  line-height: 1;
}

/* Jobs layout — largura total sem container */
.jobs-layout {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* List col largura fixa desktop */
@media (min-width: 1024px) {
  .jobs-layout {
    grid-template-columns: 360px 1fr !important;
  }
  .list-col {
    max-width: 360px;
  }
}

/* Largura correta das colunas */
@media (min-width: 1024px) {
  .jobs-layout {
    grid-template-columns: 420px 1fr !important;
  }
  .list-col {
    width: 420px !important;
    max-width: 420px !important;
  }
}

/* Hero country — corrigir emoji/flag */
.country-hero-flag {
  font-family: "Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji",
               "Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif;
  font-size: 52px;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

/* Largura correta das colunas */
@media (min-width: 1024px) {
  .jobs-layout {
    grid-template-columns: 420px 1fr !important;
  }
  .list-col {
    width: 420px !important;
    max-width: 420px !important;
  }
}

/* Hero country — corrigir emoji/flag */
.country-hero-flag {
  font-family: "Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji",
               "Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif;
  font-size: 52px;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

/* ── CORREÇÃO FINAL DO LAYOUT ─────────────────────────────── */
/* jobs-layout ocupa 100% mas com padding lateral igual ao container */
.jobs-layout {
  padding-left: 24px !important;
  padding-right: 24px !important;
  max-width: var(--max-w) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

@media (min-width: 1024px) {
  .jobs-layout {
    grid-template-columns: 420px 1fr !important;
  }
}

@media (max-width: 1023px) {
  .jobs-layout {
    padding-left: 12px !important;
    padding-right: 12px !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow: visible !important;
  }
}

@media (max-width: 639px) {
  .jobs-layout {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* ── AUTOCOMPLETE ─────────────────────────────────────────── */
.autocomplete-wrap { position: relative; flex: 2; min-width: 180px; }
.autocomplete-wrap .search-field { width: 100%; }

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.autocomplete-dropdown.open { display: block; }

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--gray-900);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active {
  background: var(--blue-lighter);
}
.autocomplete-item__icon {
  width: 28px; height: 28px;
  background: var(--blue-light);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
}
.autocomplete-item__icon svg { width: 14px; height: 14px; }
.autocomplete-item__text { flex: 1; min-width: 0; }
.autocomplete-item__title {
  font-size: 13px; font-weight: 600;
  color: var(--gray-900);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.autocomplete-item__sub {
  font-size: 11px; color: var(--gray-400); margin-top: 1px;
}
.autocomplete-item__count {
  font-size: 11px; color: var(--gray-400); flex-shrink: 0;
}
.autocomplete-header {
  padding: 6px 14px 4px;
  font-size: 10px; font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .6px;
  background: var(--gray-50);
}
