/* ═══════════════════════════════════════════════════════════════════════
   YourJobs — Precision Interface System
   A cutting-edge job board designed for clarity, speed, and conversion.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --accent: #46b47f;
  --accent-hover: #35a06d;
  --accent-soft: #adf6dc;
  --accent-muted: rgba(70, 180, 127, 0.08);
  --accent-subtle: rgba(70, 180, 127, 0.04);

  --gold: #f2e060;
  --gold-soft: #ffebce;

  /* Surfaces */
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-inset: #f1f1f1;
  --bg-wash: #f7faf9;

  /* Text */
  --text-primary: #0e0e0e;
  --text-secondary: #474747;
  --text-tertiary: #808080;
  --text-inverse: #ffffff;

  /* Borders */
  --border: #d4d4d4;
  --border-subtle: #ebebeb;
  --border-strong: #b8b8b8;

  /* Status */
  --success: #46b47f;
  --warning: #efbd4b;
  --danger: #cb4848;

  /* Radius */
  --radius: 6px;
  --radius-lg: 8px;

  /* Footer */
  --footer-bg: #0e0e0e;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.25, 1);
  --duration: 0.2s;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-weight: 500; font-size: 16px; letter-spacing: 0;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  cursor: pointer; transition: all var(--duration) var(--ease);
  text-decoration: none; white-space: nowrap; line-height: 1.4;
}

.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: #fff;
  box-shadow: 0 1px 3px rgba(70, 180, 127, 0.25);
}

.btn-secondary {
  background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-inset); border-color: var(--border-strong);
}

.btn-lg { padding: 14px 28px; font-size: 17px; }

.btn-details {
  padding: 6px 14px; font-size: 12px; font-weight: 500;
  background: #fff; color: var(--text-secondary); border-color: var(--border);
  border-radius: var(--radius);
}
.btn-details:hover {
  background: var(--bg-inset); border-color: var(--border-strong); color: var(--text-primary);
}

.btn-apply {
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  background: var(--accent); color: #fff; border-color: var(--accent);
  border-radius: var(--radius);
}
.btn-apply:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: #fff;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: sticky; top: 0; z-index: 100;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; line-height: 1;
}
.logo .brand-mark {
  height: 36px; width: 36px; display: block;
  transition: opacity var(--duration) var(--ease);
  flex-shrink: 0;
}
.logo .brand-text {
  /* Brand decision 2026-05-06: Century Gothic Bold, tracking -75 (Adobe = -0.075em).
     System-installed fallbacks: URW Gothic on Linux, Avant Garde on classic macOS. */
  font-family: "Century Gothic", "URW Gothic", "Avant Garde", "Avenir", "Futura", system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  letter-spacing: -0.075em;
  line-height: 1;
}
.logo:hover .brand-mark { opacity: 0.85; }
.logo .accent { color: var(--accent); }   /* legacy: still used in hero h1 .accent etc. */

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: var(--text-secondary); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  transition: all var(--duration) var(--ease); text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); background: var(--accent-muted); }

.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0; cursor: pointer;
}
.mobile-menu-toggle span {
  display: block; height: 2px; background: var(--text-primary);
  border-radius: 1px; transition: all 0.2s var(--ease);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(3px, 4px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(3px, -4px); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg-wash);
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content { text-align: center; }

.hero-content h1 {
  font-size: 40px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px;
}
.hero-content h1 .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 17px; color: var(--text-secondary);
  font-weight: 400; margin-bottom: 32px;
}

.stats-row {
  display: flex; justify-content: center; gap: 0; margin-top: 32px;
}
.stat-item { text-align: center; padding: 0 28px; }
.stat-number {
  display: block; font-size: 26px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.2;
}
.stat-label {
  font-size: 12px; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}
.stat-divider {
  width: 1px; background: var(--border); align-self: stretch;
}

/* ── Search ──────────────────────────────────────────────────────────── */
.search-box {
  max-width: 680px; margin: 0 auto;
}

.search-fields {
  display: flex; gap: 10px; align-items: flex-end;
  background: #fff; padding: 10px; border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-subtle);
}

.search-field {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  text-align: left;
}
.search-field label {
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0 4px;
}
.search-field input {
  padding: 11px 14px; font-size: 15px;
  background: #fff; border: 1px solid transparent;
  border-radius: var(--radius); color: var(--text-primary);
  transition: all var(--duration) var(--ease); outline: none;
}
.search-field input::placeholder { color: var(--text-tertiary); }
.search-field input:focus {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.search-btn {
  padding: 12px 28px; font-size: 15px; font-weight: 500;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all var(--duration) var(--ease); white-space: nowrap;
}
.search-btn:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  box-shadow: 0 1px 3px rgba(70, 180, 127, 0.25);
}

.search-section {
  padding: 16px 0; background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.search-section .search-field label { color: var(--text-tertiary); }
.search-section .search-field input {
  background: var(--bg-inset); border-color: var(--border);
  color: var(--text-primary);
}
.search-section .search-field input::placeholder { color: var(--text-tertiary); }
.search-section .search-field input:focus {
  border-color: var(--accent); background: var(--bg-elevated);
}

/* ── Compact Search Bar (listings page: breadcrumb + search on one row) ── */
.search-bar-compact {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.search-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 48px;
}

.breadcrumbs-inline { padding: 0; flex-shrink: 0; }

.search-inline {
  display: flex; gap: 6px; align-items: center;
}

.search-inline input {
  padding: 6px 12px; font-size: 13px;
  background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  width: 160px; min-width: 0; outline: none;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.search-inline input::placeholder { color: var(--text-tertiary); }
.search-inline input:focus {
  border-color: var(--accent); background: var(--bg-elevated);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.search-inline .btn {
  padding: 6px 14px; font-size: 12px;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 40px 0; }
.section-alt { background: var(--bg-wash); }

.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px;
}
.section-header h2 { margin-bottom: 0; }

.section-title {
  font-size: 18px; font-weight: 650; color: var(--text-primary);
  letter-spacing: -0.02em; margin-bottom: 16px;
}

.section-link {
  font-size: 13px; font-weight: 550; color: var(--accent);
  white-space: nowrap;
}
.section-link:hover { color: var(--accent-hover); }

.aio-intro {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 20px; max-width: 640px;
}

/* ── Listings Layout ─────────────────────────────────────────────────── */
.listings-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 32px; padding-top: 20px; padding-bottom: 48px;
}

.listings-main { min-width: 0; }

.listings-header { margin-bottom: 16px; }
.listings-header h1 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--text-primary); margin-bottom: 2px;
}

.results-count {
  font-size: 13px; color: var(--text-tertiary); font-weight: 400;
}

.no-results {
  text-align: center; padding: 60px 24px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.no-results h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.no-results p { color: var(--text-secondary); margin-bottom: 16px; font-size: 14px; }

/* ── Filters Sidebar ─────────────────────────────────────────────────── */
.filters-sidebar {
  position: sticky; top: 68px; align-self: start;
  max-height: calc(100vh - 84px); overflow-y: auto;
  padding-right: 8px;
}
.filters-sidebar::-webkit-scrollbar { width: 3px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.filters-sidebar h3 {
  font-size: 11px; font-weight: 650; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.filters-sidebar .filter-group {
  display: block; margin-bottom: 20px;
}
.filters-sidebar .filter-group h4 {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px;
}

.filter-list { padding: 0; }
.filter-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 8px; border-radius: 4px; font-size: 13px;
  color: var(--text-secondary); text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.filter-list li a:hover { background: var(--accent-muted); color: var(--accent); }
.filter-list li a.active {
  background: var(--accent); color: #fff; font-weight: 550;
}
.filter-list li a.active .filter-count { background: rgba(255,255,255,0.2); color: #fff; }

.filter-count {
  font-size: 11px; font-weight: 550; color: var(--text-tertiary);
  background: var(--bg-inset); padding: 1px 7px; border-radius: 10px;
}

.clear-filters-btn {
  display: block; width: 100%; text-align: center;
  padding: 7px; font-size: 12px; font-weight: 550;
  color: var(--danger); border: 1px solid var(--danger);
  border-radius: var(--radius); background: none;
  cursor: pointer; transition: all var(--duration) var(--ease);
}
.clear-filters-btn:hover { background: var(--danger); color: #fff; }

/* ── Jobs Grid ───────────────────────────────────────────────────────── */
.jobs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 24px;
}
.jobs-grid-2col { grid-template-columns: repeat(2, 1fr); }

/* ── Job Card ────────────────────────────────────────────────────────── */
.job-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.job-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

.job-card-link {
  display: block; text-decoration: none; color: inherit; flex: 1;
}
.job-card-link:hover { color: inherit; }

.job-card-title {
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  line-height: 1.35; margin-bottom: 4px; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.job-card-company {
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
  margin: 0 0 10px;
}

.job-card-details {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px;
}
.job-card-detail {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 500;
  padding: 2px 8px; border-radius: 3px;
  background: var(--bg-inset); color: var(--text-secondary);
}

.icon-pin::before { content: "\1F4CD"; font-size: 10px; }
.icon-type::before { content: "\1F4BC"; font-size: 10px; }

.job-card-excerpt {
  font-size: 12.5px; color: var(--text-tertiary); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0;
}

.job-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}

.job-card-time { font-size: 11.5px; color: var(--text-tertiary); }

.job-card-actions { display: flex; align-items: center; gap: 10px; }
.job-card-employer-link {
  font-size: 11.5px; color: var(--text-tertiary); text-decoration: none;
  display: none;
}
.job-card-employer-link:hover { color: var(--accent); }
@media (min-width: 769px) { .job-card-employer-link { display: inline; } }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 0;
}

.pagination-btn {
  padding: 7px 14px; font-size: 13px; font-weight: 550;
  color: var(--text-secondary); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: all var(--duration) var(--ease);
}
.pagination-btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination-btn.disabled {
  opacity: 0.35; pointer-events: none; color: var(--text-tertiary);
}

.pagination-pages { display: flex; gap: 2px; margin: 0 8px; }

.pagination-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius);
  text-decoration: none; transition: all var(--duration) var(--ease);
}
.pagination-page:hover { background: var(--accent-muted); color: var(--accent); }
.pagination-page.active {
  background: var(--accent); color: #fff; font-weight: 600;
}

.pagination-dots {
  display: inline-flex; align-items: center; padding: 0 4px;
  color: var(--text-tertiary); font-size: 13px;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.breadcrumbs {
  padding: 12px 0;
}
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  list-style: none; padding: 0;
}
.breadcrumbs li {
  display: inline-flex; align-items: center;
  font-size: 12px; color: var(--text-tertiary);
}
.breadcrumbs li + li::before {
  content: "/"; padding: 0 8px; color: var(--border-strong);
  font-weight: 300;
}
.breadcrumbs li a {
  color: var(--text-tertiary); text-decoration: none; font-weight: 450;
}
.breadcrumbs li a:hover { color: var(--accent); }
.breadcrumbs li span[aria-current] { color: var(--text-secondary); font-weight: 500; }

/* ── Job Detail ──────────────────────────────────────────────────────── */
.job-detail-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 32px; align-items: start;
  padding-top: 8px; padding-bottom: 56px;
}

.job-detail-header { margin-bottom: 24px; }
.job-detail-header h1 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.25; color: var(--text-primary); margin-bottom: 10px;
}

.job-detail-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  margin-bottom: 16px; font-size: 13px;
}
.job-detail-meta a { color: var(--accent); text-decoration: none; font-weight: 500; }
.job-detail-meta a:hover { text-decoration: underline; }
.job-detail-company { font-weight: 600; font-size: 14px; }
.job-detail-location, .job-detail-type, .job-detail-category {
  color: var(--text-secondary);
}
.job-detail-posted { font-size: 12px; color: var(--text-tertiary); }

.job-detail-body {
  font-size: 14.5px; line-height: 1.7; color: var(--text-primary);
  overflow-wrap: break-word; word-break: break-word;
}
.job-detail-body h2 { font-size: 18px; font-weight: 650; margin: 28px 0 10px; letter-spacing: -0.02em; }
.job-detail-body h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
.job-detail-body h4 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.job-detail-body p { margin-bottom: 12px; }
.job-detail-body ul, .job-detail-body ol { padding-left: 20px; margin-bottom: 12px; }
.job-detail-body ul { list-style: disc; }
.job-detail-body ol { list-style: decimal; }
.job-detail-body li { margin-bottom: 4px; }
.job-detail-body table { margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; display: block; }
.job-detail-body th, .job-detail-body td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.job-detail-body th { background: var(--bg-inset); font-weight: 600; }
.job-detail-body strong { font-weight: 600; }
.job-detail-body img { max-width: 100%; height: auto; border-radius: var(--radius); }

.job-detail-apply-bottom {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border); text-align: center;
}

.job-detail-apply-mobile { display: none; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.job-detail-sidebar { position: sticky; top: 68px; }

.sidebar-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  margin-bottom: 12px;
}
.sidebar-card h3 {
  font-size: 13px; font-weight: 650; color: var(--text-primary);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.01em;
}

.sidebar-job-list { list-style: none; padding: 0; }
.sidebar-job-list li { border-bottom: 1px solid var(--border-subtle); }
.sidebar-job-list li:last-child { border-bottom: none; }
.sidebar-job-list li a {
  display: block; padding: 7px 0; text-decoration: none;
  color: var(--text-primary); transition: color var(--duration) var(--ease);
}
.sidebar-job-list li a:hover { color: var(--accent); }
.sidebar-job-list li a strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.35; }
.sidebar-job-list li a span { font-size: 11.5px; color: var(--text-tertiary); }

.sidebar-see-all {
  display: block; text-align: center; padding-top: 8px; margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.sidebar-see-all:hover { color: var(--accent-hover); }

/* ── Category Grid ───────────────────────────────────────────────────── */
.category-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}

.category-card {
  display: block; padding: 16px 14px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  text-align: center;
  transition: all var(--duration) var(--ease);
}
.category-card:hover {
  border-color: var(--accent); color: inherit;
  box-shadow: 0 2px 8px var(--accent-muted);
}

.category-name {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 2px;
}
.category-count { font-size: 11.5px; color: var(--text-tertiary); }

/* ── Location Grid ───────────────────────────────────────────────────── */
.location-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}

.location-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text-primary);
  font-size: 13px; font-weight: 500;
  transition: all var(--duration) var(--ease);
}
.location-link:hover { border-color: var(--accent); color: var(--accent); }

.location-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.location-link .count {
  font-size: 11px; color: var(--text-tertiary); font-weight: 550;
  background: var(--bg-inset); padding: 1px 8px; border-radius: 10px;
  flex-shrink: 0; margin-left: 8px;
}
.location-link:hover .count { color: var(--accent); background: var(--accent-muted); }

/* ── Employer ────────────────────────────────────────────────────────── */
.employer-profile {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  margin-bottom: 8px;
}
.employer-profile h1 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px;
}
.employer-summary {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px;
}
.employer-stats { display: flex; gap: 28px; }
.employer-stats .stat-item { text-align: center; }
.employer-stats .stat-number {
  display: block; font-size: 20px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.02em;
}
.employer-stats .stat-label {
  font-size: 11px; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500;
}

/* ── Map ─────────────────────────────────────────────────────────────── */
.job-map {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden;
}
.leaflet-popup-content a { color: var(--accent); font-weight: 600; }
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg); color: rgba(255,255,255,0.7);
  padding: 56px 0 0; margin-top: 56px;
}

.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px;
  padding-bottom: 36px;
}

.footer-col h4 {
  font-size: 16px; font-weight: 600; color: #ffffff;
  margin-bottom: 16px; letter-spacing: 0;
}
.footer-col ul { padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: #ffffff; }

.footer-about {
  font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  margin-top: 8px;
}
.footer-bottom p {
  font-size: 13px; color: rgba(255,255,255,0.55); text-align: center;
}

/* ── Legal Pages ─────────────────────────────────────────────────────── */
.legal-page { max-width: 680px; margin: 0 auto; padding: 32px 0 56px; }
.legal-page h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.legal-page h2 { font-size: 16px; font-weight: 650; margin: 28px 0 8px; letter-spacing: -0.01em; }
.legal-page h3 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.legal-page p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.legal-page ul, .legal-page ol { padding-left: 20px; margin-bottom: 12px; }
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li { color: var(--text-secondary); font-size: 14px; margin-bottom: 4px; line-height: 1.6; }

.legal-updated {
  font-size: 12px; color: var(--text-tertiary); margin-bottom: 28px;
}

/* ── Email Capture ───────────────────────────────────────────────────── */
.email-capture {
  background: var(--text-primary); padding: 40px 0; text-align: center;
}
.email-capture h2 {
  font-size: 20px; font-weight: 700; color: var(--text-inverse);
  letter-spacing: -0.03em; margin-bottom: 6px;
}
.email-capture p { font-size: 14px; color: rgba(255,255,255,0.45); margin-bottom: 20px; }

.email-capture-form {
  display: flex; gap: 8px; max-width: 420px; margin: 0 auto;
}
.email-capture-form input {
  flex: 1; padding: 10px 14px; font-size: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); color: #fff; outline: none;
}
.email-capture-form input::placeholder { color: rgba(255,255,255,0.25); }
.email-capture-form input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px rgba(70, 180, 127, 0.25);
}

.email-consent {
  font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 10px;
}
.email-consent a { color: rgba(255,255,255,0.4); }
.email-consent a:hover { color: rgba(255,255,255,0.7); }

/* ── Expired Overlay ─────────────────────────────────────────────────── */
.expired-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  z-index: 999; display: flex; align-items: center; justify-content: center;
}
.expired-message {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px;
  max-width: 380px; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.expired-message h1 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.expired-message p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

/* ── Responsive — Tablet ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .header-inner { height: 64px; }
  .logo { gap: 8px; }
  .logo .brand-mark { height: 28px; width: 28px; }
  .logo .brand-text { font-size: 20px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff; flex-direction: column; padding: 8px 24px 16px;
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--border-subtle); }
  .main-nav a:last-child { border-bottom: none; }

  /* Compact search bar on mobile */
  .search-bar-inner {
    height: auto; padding: 8px 0; gap: 6px;
  }
  .breadcrumbs-inline { display: none; }
  .search-inline {
    flex: 1; min-width: 0;
  }
  .search-inline input { flex: 1; width: 0; min-width: 0; }
  .search-inline input:focus { width: 0; }

  /* Hero compressed on mobile */
  .hero { padding: 36px 0 40px; }
  .hero-content h1 { font-size: 28px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 20px; }
  .search-fields { flex-direction: column; gap: 6px; }
  .search-field label { display: none; }
  .search-field input { padding: 10px 12px; }
  .search-btn { width: 100%; padding: 10px; }
  .stats-row { gap: 0; flex-wrap: wrap; justify-content: center; }
  .stat-item { padding: 0 16px; }

  .section { padding: 28px 0; }
  .section-header { flex-direction: column; gap: 4px; align-items: flex-start; }

  .listings-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
  .jobs-grid, .jobs-grid-2col { grid-template-columns: 1fr; }

  .job-detail-layout { grid-template-columns: 1fr; }
  .job-detail-header h1 { font-size: 20px; }

  .job-detail-apply-mobile {
    display: block; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-elevated); padding: 10px 24px;
    border-top: 1px solid var(--border); z-index: 90; text-align: center;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  }
  .job-detail-apply-mobile .btn { width: 100%; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .employer-stats { flex-direction: column; gap: 12px; }
  .employer-profile { padding: 18px; }

  .email-capture-form { flex-direction: column; }

  .expired-message { margin: 0 24px; padding: 32px 24px; }
}

/* ── Responsive — Mobile ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 24px; }
  .stat-item { padding: 0 10px; }
  .stat-number { font-size: 20px; }
  .stat-label { font-size: 10px; }

  .category-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .category-card { padding: 12px 10px; }
  .category-name { font-size: 12px; }

  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .job-detail-header h1 { font-size: 18px; }
  .legal-page { padding: 24px 0 40px; }
}

/* ── Print ───────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .main-nav, .mobile-menu-toggle,
  .btn-apply, .btn-details, .job-detail-apply-bottom, .job-detail-apply-mobile,
  .sidebar, .job-detail-sidebar, .email-capture, .search-box,
  .filters-sidebar, .pagination { display: none !important; }
  .job-detail-layout { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
}

/* ── Data Cards (BLS + AI Index) ───────────────────────────────────── */
.data-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}
.data-card-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.data-card-header h3 {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 0;
  color: var(--text-primary);
}
.data-source {
  font-size: 11px; color: var(--text-tertiary); font-weight: 500;
  text-decoration: none;
}
a.data-source:hover { color: var(--accent); }
.data-card-body { display: flex; flex-direction: column; gap: 10px; }
.data-stat { display: flex; justify-content: space-between; align-items: baseline; }
.data-stat-label { font-size: 13px; color: var(--text-secondary); }
.data-stat-value {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em;
}
.data-stat-value.positive { color: var(--success); }
.data-stat-value.negative { color: var(--danger); }

/* AI score card */
.ai-score-meter {
  position: relative; height: 28px; background: var(--bg-inset);
  border-radius: 14px; overflow: hidden; margin-bottom: 8px;
}
.ai-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success) 0%, var(--warning) 50%, var(--danger) 100%);
  transition: width 0.4s ease;
}
.ai-score-value {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  text-shadow: 0 0 4px rgba(255,255,255,0.8);
}
.ai-band {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 8px;
}
.ai-quote {
  font-size: 13px; line-height: 1.55; color: var(--text-secondary);
  background: var(--accent-subtle); border-left: 3px solid var(--accent);
  padding: 10px 12px; border-radius: 0 6px 6px 0; margin: 0;
}

/* SOC intro paragraph */
.soc-intro {
  background: var(--bg-wash);
  border-radius: var(--radius-lg);
  padding: 20px 24px; margin-bottom: 24px;
  font-size: 15px; line-height: 1.65;
  color: var(--text-primary);
}

/* Sub-occupation grid (under SOC major page) */
.soc-detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 24px;
}
.soc-detail-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: all var(--duration) var(--ease);
}
.soc-detail-link:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-muted);
}
.soc-detail-name {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.soc-detail-meta {
  font-size: 12px; color: var(--text-tertiary);
  display: flex; gap: 12px;
}
.soc-detail-band-low      { color: var(--success); }
.soc-detail-band-moderate { color: var(--warning); }
.soc-detail-band-high     { color: #d97706; }
.soc-detail-band-very-high{ color: var(--danger); }
@media (max-width: 768px) {
  .soc-detail-grid { grid-template-columns: 1fr; }
}

/* AI Index page table */
.ai-index-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ai-index-table th, .ai-index-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border-subtle); font-size: 14px;
}
.ai-index-table th {
  background: var(--bg-inset); font-weight: 600;
  color: var(--text-secondary); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ai-index-table tr:last-child td { border-bottom: none; }
.ai-index-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Popular Job Titles grid (homepage) ────────────────────────────── */
.title-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.title-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: all var(--duration) var(--ease);
}
.title-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px var(--accent-muted);
  transform: translateY(-1px);
}
.title-name {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  line-height: 1.3;
}
.title-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.title-count {
  color: var(--text-tertiary); font-weight: 500;
}
.title-ai {
  font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: var(--bg-inset); font-size: 11px;
}
@media (max-width: 768px) {
  .title-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .title-grid { grid-template-columns: 1fr; }
}

/* FAQ block (used by category, location, and category-location intersection pages) */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.faq-item { background: var(--bg-card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: var(--radius, 8px); padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--text-primary, #111); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; display: inline-block; width: 1em; margin-right: 8px; color: var(--accent, #46b47f); font-weight: 700; }
.faq-item[open] summary::before { content: "−"; }
.faq-answer { margin-top: 10px; color: var(--text-secondary, #444); font-size: 14px; line-height: 1.6; }
