/* ===== Results CTAs ===== */
.sidebar-cta-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    padding: 1.25rem;
}
.sidebar-cta-card .cta-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.sidebar-cta-card .cta-title span { color: #2563eb; }
.sidebar-cta-card .cta-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.sidebar-cta-card .cta-btn-small {
    display: block;
    text-align: center;
    background: #2563eb;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background .15s;
}
.sidebar-cta-card .cta-btn-small:hover { background: #1d4ed8; }

.results-cta-block {
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    color: #fff;
}
.results-cta-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.results-cta-block h3 em {
    font-style: normal;
    color: #bfdbfe;
}
.results-cta-block .cta-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.results-cta-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.8125rem 1.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background .15s;
}
.results-cta-main-btn:hover { background: #eff6ff; }
.results-cta-block .cta-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.875rem;
}

/* ===== Landing hero ===== */
.hero-section {
  --hs-bg: oklch(98.5% 0.005 250);
  --hs-bg-soft: oklch(97% 0.008 250);
  --hs-ink: oklch(18% 0.01 250);
  --hs-ink-2: oklch(40% 0.01 250);
  --hs-ink-3: oklch(60% 0.01 250);
  --hs-line: oklch(92% 0.006 250);
  --hs-line-2: oklch(88% 0.008 250);
  --hs-accent: oklch(55% 0.18 265);
  --hs-accent-soft: oklch(95% 0.03 265);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--hs-bg);
}
.hero-section .hero {
  min-height: calc(100vh - 82px);
  padding: 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-section .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hs-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hs-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-section .hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 82px - 80px);
}
.hero-section .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--hs-ink-3);
  padding: 7px 14px;
  border: 1px solid var(--hs-line);
  border-radius: 100px;
  background: var(--hs-bg-soft);
}
.hero-section .eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(65% 0.17 150);
  box-shadow: 0 0 0 3px oklch(65% 0.17 150 / 0.15);
}
.hero-section .headline {
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 28px;
  color: var(--hs-ink);
  text-wrap: balance;
  max-width: 740px;
}
.hero-section .headline em {
  font-style: normal;
  font-weight: 600;
  color: var(--hs-accent);
}
.hero-section .hero-search {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--hs-line-2);
  border-radius: 16px;
  padding: 7px 7px 7px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px oklch(18% 0.01 250 / 0.04),
              0 12px 40px -16px oklch(18% 0.01 250 / 0.18);
  width: 100%;
  max-width: 620px;
  transition: border-color .15s, box-shadow .15s;
}
.hero-section .hero-search:focus-within {
  border-color: var(--hs-accent);
  box-shadow: 0 0 0 5px var(--hs-accent-soft),
              0 12px 40px -16px oklch(18% 0.01 250 / 0.18);
}
.hero-section .hero-search svg { flex-shrink: 0; color: var(--hs-ink-3); }
.hero-section .hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  padding: 16px 14px;
  color: var(--hs-ink);
  background: transparent;
  min-width: 0;
}
.hero-section .hero-search input::placeholder { color: var(--hs-ink-3); }
.hero-section .hero-search .hero-submit {
  background: var(--hs-ink);
  color: var(--hs-bg);
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s;
  white-space: nowrap;
}
.hero-section .hero-search .hero-submit:hover { background: var(--hs-accent); }
.hero-section .suggest-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  max-width: 560px;
}
.hero-section .suggest-label {
  font-size: 11.5px;
  color: var(--hs-ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-right: 4px;
  white-space: nowrap;
}
.hero-section .suggest {
  font-size: 13px;
  color: var(--hs-ink-2);
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: 100px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hero-section .suggest:hover { color: var(--hs-ink); border-color: var(--hs-ink-3); }
.hero-section .suggest svg { color: var(--hs-ink-3); }
.hero-section .feature-row {
  margin-top: auto;
  margin-bottom: 48px;
  padding-top: 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 760px;
}
.hero-section .feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  max-width: 220px;
}
.hero-section .feat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--hs-bg-soft);
  border: 1px solid var(--hs-line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--hs-ink-2);
  margin-top: 2px;
}
.hero-section .feat-text { font-size: 13px; line-height: 1.5; color: var(--hs-ink-2); }
.hero-section .feat-text strong {
  color: var(--hs-ink);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
}
@media (max-width: 720px) {
  .hero-section .hero { padding: 0 20px; }
  .hero-section .suggest-row { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .hero-section .hero-search {
    flex-wrap: wrap;
    padding: 0;
    gap: 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .hero-section .hero-search:focus-within {
    box-shadow: none;
  }
  .hero-section .hero-search > svg { display: none; }
  .hero-section .hero-search input {
    flex: 1 1 100%;
    padding: 14px 16px;
    font-size: 15px;
    background: #fff;
    border: 1px solid var(--hs-line-2);
    border-radius: 12px;
  }
  .hero-section .hero-search input:focus {
    border-color: var(--hs-accent);
    box-shadow: 0 0 0 4px var(--hs-accent-soft);
  }
  .hero-section .hero-search .hero-submit {
    flex: 1 1 100%;
    width: 100%;
    height: 48px;
    justify-content: center;
    border-radius: 12px;
  }
}

/* Job type chips */
.job-type-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
    border: 1.5px solid #d1d5db;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
}
.job-type-chip:hover { border-color: #3b82f6; color: #3b82f6; }
.job-type-chip.active { background: #eff6ff; border-color: #3b82f6; color: #2563eb; }

/* Stat cards */
.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

/* Chart cards */
.chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chart-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

/* Chart container heights */
.chart-container-tall {
    position: relative;
    height: 220px;
}

.chart-container-skills {
    position: relative;
    height: 340px;
}

.chart-container-countries {
    position: relative;
    height: 280px;
}

.chart-container-donut {
    position: relative;
    height: 260px;
}

.chart-container-rates {
    position: relative;
    height: 110px;
}

/* =========================================================
   RESULTS PAGE DESIGN SYSTEM (v-ambitious palette)
   ========================================================= */

/* CSS variables — scoped to results page elements */
.rr-hero, .rr-page, .rr-disclaimer-wrap {
  --rr-bg:            #FAFAF7;
  --rr-bg-tint:       #F2F1EB;
  --rr-surface:       #FFFFFF;
  --rr-border:        #E8E4D8;
  --rr-border-strong: #D7D1BF;
  --rr-ink:           #14120E;
  --rr-ink-2:         #2B3443;
  --rr-ink-3:         #5B6472;
  --rr-ink-4:         #8A94A6;
  --rr-primary:       #2F6BFF;
  --rr-primary-2:     #1F4FD6;
  --rr-primary-soft:  #E8EEFF;
  --rr-shadow-sm:     0 1px 2px rgba(11,18,32,0.04);
  --rr-shadow-card:   0 1px 2px rgba(11,18,32,0.04), 0 4px 12px rgba(11,18,32,0.03);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ─────────────────────────────────────────────────── */
.rr-hero {
  background: var(--rr-bg);
  padding: 28px 24px 24px;
}
.rr-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.rr-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  font-size: 11px;
  font-weight: 500;
  color: var(--rr-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.rr-hero-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rr-primary);
}
.rr-hero-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
  color: var(--rr-ink);
}
.rr-accent { color: var(--rr-primary); }
.rr-hero-sub {
  color: var(--rr-ink-3);
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto 18px;
}
.rr-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--rr-surface);
  border: 1px solid var(--rr-border-strong);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--rr-shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.rr-search-row:focus-within {
  border-color: var(--rr-primary);
  box-shadow: 0 0 0 4px var(--rr-primary-soft);
}
.rr-search-icon { color: var(--rr-ink-4); flex-shrink: 0; }
.rr-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--rr-ink);
  padding: 8px 4px;
  min-width: 0;
}
.rr-search-input::placeholder { color: var(--rr-ink-4); }
.rr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.rr-btn-primary { background: var(--rr-ink); color: #fff; }
.rr-btn-primary:hover { background: #2B3443; }

/* ── Page grid ────────────────────────────────────────────── */
.rr-page {
  background: var(--rr-bg);
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Filter sidebar ───────────────────────────────────────── */
.rr-filters {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: 14px;
  padding: 18px;
  position: sticky;
  top: 20px;
}
.rr-filters-head {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rr-ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rr-reset-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--rr-ink-4);
  text-decoration: none;
}
.rr-reset-link:hover { color: var(--rr-primary); }
.rr-filter-group { margin-bottom: 16px; }
.rr-filter-group:last-child { margin-bottom: 0; }
.rr-filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--rr-ink-2);
  margin-bottom: 6px;
}
.rr-select-btn {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--rr-border-strong);
  border-radius: 8px;
  background: var(--rr-surface);
  color: var(--rr-ink-3);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .15s;
}
.rr-select-btn:hover,
.rr-select-btn:focus { border-color: var(--rr-primary); outline: none; }
.rr-chevron { color: var(--rr-ink-4); flex-shrink: 0; }

/* Segmented job type control */
.rr-seg {
  display: flex;
  background: var(--rr-bg-tint);
  border-radius: 8px;
  padding: 2px;
}
.rr-seg-option {
  flex: 1;
  cursor: pointer;
  text-align: center;
}
.rr-seg-option span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--rr-ink-3);
  transition: all .15s;
  user-select: none;
}
.rr-seg-option.active span {
  background: var(--rr-surface);
  color: var(--rr-ink);
  box-shadow: var(--rr-shadow-sm);
}
.rr-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--rr-ink-2);
  cursor: pointer;
}
.rr-check input { accent-color: var(--rr-primary); }

/* ── Results area ─────────────────────────────────────────── */
.rr-results { min-width: 0; }
.rr-results-stack { display: flex; flex-direction: column; gap: 16px; }

/* State cards */
.rr-state-card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: 14px;
  padding: 64px 32px;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rr-state-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rr-bg-tint);
  border: 1px solid var(--rr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rr-ink-3);
  margin-bottom: 14px;
}
.rr-state-icon--warn { background: #FEF9E7; border-color: #F9E4A0; color: #B7860A; }
.rr-state-title { font-size: 15px; font-weight: 600; color: var(--rr-ink); margin: 0 0 4px; }
.rr-state-sub { font-size: 13px; color: var(--rr-ink-3); margin: 0; }
.rr-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--rr-border);
  border-top-color: var(--rr-primary);
  border-radius: 50%;
  animation: rr-spin .7s linear infinite;
}
@keyframes rr-spin { to { transform: rotate(360deg); } }

/* Results head */
.rr-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.rr-query-tag { font-size: 13px; color: var(--rr-ink-2); }
.rr-query-tag strong {
  background: var(--rr-primary-soft);
  color: var(--rr-primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.rr-date-range {
  font-size: 12px;
  color: var(--rr-ink-3);
  font-variant-numeric: tabular-nums;
}

/* KPI tiles */
.rr-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rr-kpi {
  background: linear-gradient(180deg, #FDFDFB 0%, #F7F6F1 100%);
  border: 1px solid var(--rr-border);
  border-radius: 16px;
  padding: 14px 16px;
}
.rr-kpi-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--rr-ink-3);
  margin-bottom: 6px;
}
.rr-kpi-value {
  font-family: inherit;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.015em;
  color: var(--rr-ink);
  line-height: 1.1;
}
.rr-kpi-value--sm { font-size: 20px; }

/* Chart cards */
.card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: 18px;
  padding: 18px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rr-ink);
}

/* Bar list (horizontal bars for skills, countries) */
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--rr-ink-2);
  padding: 5px 0;
}
.bar-row .track {
  height: 14px;
  background: var(--rr-bg-tint);
  border-radius: 4px;
  overflow: hidden;
}
.bar-row .fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
}
.bar-row .val {
  color: var(--rr-ink-3);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  text-align: right;
}

/* 2-col grid for paired charts */
.rr-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* CTA dark inline card */
.rr-cta-card {
  background: var(--rr-ink);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rr-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--rr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rr-cta-body { flex: 1; min-width: 0; }
.rr-cta-title { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: #fff; }
.rr-cta-sub { margin: 0; font-size: 12px; color: #9aa3b2; }
.rr-cta-sub span { color: #bfdbfe; }
.rr-cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--rr-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.rr-cta-btn:hover { background: #F2F5FF; }

/* Disclaimer */
.rr-disclaimer-wrap {
  background: var(--rr-bg);
  padding: 16px 24px 32px;
}
.rr-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--rr-ink-4);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .rr-page { grid-template-columns: 1fr; padding: 16px 16px 40px; }
  .rr-filters { position: static; }
  .rr-kpi-row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .rr-grid-2 { grid-template-columns: 1fr; }
  .rr-hero { padding: 20px 16px 18px; }
  .rr-cta-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rr-cta-icon { display: none; }
  .rr-cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .rr-search-row {
    flex-wrap: wrap;
    padding: 0;
    gap: 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .rr-search-row:focus-within {
    box-shadow: none;
  }
  .rr-search-row .rr-search-icon { display: none; }
  .rr-search-input {
    flex: 1 1 100%;
    padding: 14px 16px;
    font-size: 15px;
    background: var(--rr-surface);
    border: 1px solid var(--rr-border-strong);
    border-radius: 12px;
  }
  .rr-search-input:focus {
    border-color: var(--rr-primary);
    box-shadow: 0 0 0 4px var(--rr-primary-soft);
  }
  .rr-search-row .rr-btn-primary {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 12px;
  }
}

