/* ==========================================================================
   Chakrie — Executive Theme Design System
   Inspired by: LinkedIn (Professional slate & blue, clean micro-interactions),
   Indeed (High-contrast search & job cards), Glassdoor (Trust emerald accents & employer branding),
   and Bdjobs (Comprehensive Bangladesh career context & bilingual clarity).
   Features signature vibrant berry (#2e7d32) accents and enhanced typography scale.
   ========================================================================== */

:root, body {
  /* Core Brand Tokens */
  --theme-primary: #2e7d32;
  --theme-primary-hover: #256a29;
  --theme-primary-dark: #0f2e14;
  --theme-primary-text: #256a29;
  --theme-primary-soft: #e8f5e9;
  --theme-primary-border: #c8e6c9;
  --theme-primary-glow: rgba(46, 125, 50, 0.16);

  /* Signature Vibrant Berry Accent (#2e7d32) */
  --theme-berry: #b5478f;
  --theme-berry-hover: #9c3a7e;
  --theme-berry-dark: #7a2c63;
  --theme-berry-soft: #fbf1f7;
  --theme-berry-border: #f2d3e6;
  --theme-berry-glow: rgba(181, 71, 143, 0.22);
  --theme-accent-text: #a8418a;   /* 5.0:1 on the #eaf4ff card tint, 5.5:1 on white */

  /* Executive Dark / Slate Palette */
  --premium-forest: #0f172a;       /* Slate 900 - Deep executive contrast */
  --premium-deep: #0f2e14;         /* Night slate - Rich footer & hero dark */
  --premium-slate-800: #1e293b;
  --premium-slate-700: #334155;
  --premium-ink: #0f172a;          /* Primary headings & text */
  --premium-ink-soft: #334155;     /* Body copy */
  --premium-muted: #64748b;        /* Subtitles, hints, timestamps */
  --premium-subtle: #94a3b8;       /* Placeholders, disabled text */
  --premium-line: #e2e8f0;         /* Crisp Slate 200 borders */
  --premium-line-subtle: #f1f5f9;  /* Hairline Slate 100 dividers */

  /* Pure Surfaces */
  --premium-paper: #f8fafc;        /* Slate 50 - Ultra-clean modern backdrop */
  --premium-white: #ffffff;        /* Pure card white */
  --theme-surface: #ffffff;
  --theme-surface-alt: #f1f5f9;
  --theme-shell: #f8fafc;
  --theme-shell-2: #f1f5f9;

  /* Accent Trust (Glassdoor Emerald) */
  --premium-lime: #10b981;         /* Vibrant trust green */
  --theme-emerald: #059669;
  --theme-emerald-soft: #ecfdf5;
  --theme-emerald-border: #a7f3d0;

  /* Accent Hot / Urgent (Indeed / Bdjobs Amber) */
  --theme-amber: #ea580c;
  --theme-amber-soft: #fff7ed;
  --theme-amber-border: #fed7aa;

  /* Typography */
  --font-body: "Inter", "DM Sans", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", "DM Sans", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-editorial: "DM Serif Display", Georgia, serif;

  /* CTA Button Tokens */
  --theme-cta: #2e7d32;
  --theme-cta-hover: #256a29;
  --theme-cta-active: #1b5e20;
  --theme-cta-text: #ffffff;
  --theme-cta-ink: #ffffff;
  --theme-cta-on-light: #256a29;
  --theme-cta-soft: #e8f5e9;

  /* Radii */
  --theme-radius-xs: 6px;
  --theme-radius-sm: 8px;
  --theme-radius-md: 12px;
  --theme-radius-lg: 18px;
  --theme-radius-xl: 24px;
  --theme-radius-pill: 9999px;

  /* Elevation Shadows */
  --theme-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --theme-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --theme-shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --theme-shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --theme-shadow-hover: 0 18px 38px -4px rgba(15, 23, 42, 0.12), 0 8px 16px -3px rgba(15, 23, 42, 0.05);

  /* Gradients */
  --theme-gradient: linear-gradient(135deg, #e8f5e9 0%, #e8f5e9 50%, #f8fafc 100%);
  --theme-gradient-primary: linear-gradient(135deg, #2e7d32 0%, #2e7d32 100%);
  --theme-gradient-berry: linear-gradient(135deg, #2e7d32 0%, #256a29 100%);
  --theme-gradient-strong: linear-gradient(135deg, #0f2e14 0%, #0f2e14 100%);
  --theme-gradient-emerald: linear-gradient(135deg, #059669 0%, #047857 100%);

  /* Legacy variable bridge */
  --green-950: #0f2e14;
  --green-900: #0f172a;
  --green-800: #1e293b;
  --green-700: #2e7d32;
  --green-600: #2e7d32;
  --green-500: #059669;
  --green-100: #e8f5e9;
  --green-50: #f8fafc;
  --leaf-500: #059669;
  --leaf-400: #10b981;
  --leaf-300: #34d399;
  --leaf-100: #ecfdf5;
  --leaf-50: #f2fbf2;
  --ink-900: #0f172a;
  --ink-500: #64748b;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;
  --dash-primary: #2e7d32;
  --dash-primary-soft: #e8f5e9;
  --dash-secondary: #0f172a;
  --dash-accent: #2e7d32;
  --dash-accent-hover: #256a29;
  --dash-bg: #f8fafc;
  --dash-card-bg: #ffffff;
  --dash-border: #e2e8f0;
  --dash-text-main: #0f172a;
  --dash-text-muted: #64748b;
  --dash-radius: 14px;
  --dash-shadow: var(--theme-shadow-sm);
  --dash-shadow-lg: var(--theme-shadow-lg);
  --c-ink: #0f172a;
  --c-ink-soft: #334155;
  --c-ink-muted: #64748b;
  --c-teal: #2e7d32;
  --c-teal-dark: #256a29;
  --c-teal-light: #e8f5e9;
  --c-surface: #ffffff;
  --c-bg: #f8fafc;
  --c-border: #e2e8f0;
  --shadow-card: var(--theme-shadow-sm);
  --shadow-hover: var(--theme-shadow-hover);
  --course-bg: #f8fafc;
  --course-surface: #ffffff;
  --course-surface-strong: #ffffff;
  --course-panel: #f1f5f9;
  --course-ink: #0f172a;
  --course-ink-soft: #334155;
  --course-ink-muted: #64748b;
  --course-line: #e2e8f0;
  --course-brand: #2e7d32;
  --course-brand-deep: #0f2e14;
  --course-brand-soft: #e8f5e9;
  --course-accent: #2e7d32;
  --course-accent-soft: #e8f5e9;
  --course-shadow: var(--theme-shadow-md);
  --course-shadow-soft: var(--theme-shadow-sm);
  --course-shadow-hover: var(--theme-shadow-hover);
  --course-font-display: var(--font-display);
  --course-font-body: var(--font-body);
  --course-font-reading: var(--font-body);
}

/* Base Body Styling with Generous Readability */
body.app-shell, body.dashboard-body {
  background-color: var(--premium-paper);
  color: var(--premium-ink);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--font-display);
  color: var(--premium-ink);
  font-weight: 700;
  letter-spacing: -0.028em;
}

body h1 { font-size: clamp(2rem, 3.8vw, 2.75rem); }
body h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
body h3 { font-size: 1.3rem; }
body h4 { font-size: 1.15rem; }
body h5 { font-size: 1rem; }
body h6 { font-size: 0.9rem; }

body p {
  font-size: 15px;
  line-height: 1.7;
}

::selection {
  background: #c8e6c9;
  color: #1b5e20;
}

body :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--theme-berry);
  outline-offset: 2px;
}

body a, body button {
  -webkit-tap-highlight-color: transparent;
}

/* Modern Button Standards */
body .btn {
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 20px;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

body .btn:active {
  transform: translateY(0);
}

body .btn.btn-primary,
body .btn-primary {
  background: var(--theme-gradient-primary) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body .btn.btn-primary:hover,
body .btn-primary:hover {
  background: linear-gradient(135deg, #2e7d32 0%, #256a29 100%) !important;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.32) !important;
}

body .btn.btn-outline-primary {
  color: var(--theme-primary) !important;
  border-color: var(--premium-line) !important;
  background: #ffffff !important;
  font-size: 15px;
}

body .btn.btn-outline-primary:hover {
  background: var(--theme-berry-soft) !important;
  border-color: var(--theme-berry-border) !important;
  color: var(--theme-berry) !important;
}

/* Berry CTA Button variant */
body .btn-berry {
  background: var(--theme-gradient-berry) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.28) !important;
}

body .btn-berry:hover {
  background: linear-gradient(135deg, #256a29 0%, #1b5e20 100%) !important;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4) !important;
  transform: translateY(-1px);
}

/* Premium Form Inputs */
body .form-control, body .custom-select {
  background-color: var(--premium-white);
  border: 1px solid var(--premium-line);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  font-family: var(--font-body);
  color: var(--premium-ink);
  font-size: 15px;
  min-height: 48px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

body .form-control:focus, body .custom-select:focus {
  border-color: var(--theme-berry);
  box-shadow: 0 0 0 3px var(--theme-berry-glow);
}

body .form-control::placeholder {
  color: var(--premium-subtle);
}

/* Card Surfaces */
body :is(.card, .company-card, .ck-company-card, .dash-card, .ov-stat, .tl-post, .tl-leftnav-card) {
  border-color: var(--premium-line);
  border-radius: 14px;
  background: var(--premium-white);
  box-shadow: var(--theme-shadow-sm);
}

/* ── Job result card ──────────────────────────────────────────────────────
   The one definition for the card used on search, dashboards, company pages
   and the timeline — web/src/components/jobs/JobCard.tsx and
   template/jobapp/snippets/job_result_card_inner.html. It lives here rather
   than in job-filters.css because several of those pages never load that file.

   The card answers four things in reading order — who, what, where, and how
   much / how long — and nothing else. The title's link stretches over the
   whole card, so Save is the only other control.
   ──────────────────────────────────────────────────────────────────────── */
body .job-result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  box-shadow: var(--theme-shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body .job-result-card:hover {
  border-color: var(--theme-primary-border);
  box-shadow: var(--theme-shadow-lg);
  transform: translateY(-2px);
}

body .job-result-card:focus-within {
  border-color: var(--theme-primary);
  box-shadow: var(--theme-ring);
}

/* Featured earns a hairline of the brand gradient, not a louder card. */
body .job-result-card--featured { border-color: var(--theme-berry-border); }

body .job-result-card--featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--theme-gradient-primary);
}

body .job-result-card__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px 18px 16px;
}

body .job-result-card__header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin: 0;
}

body .job-result-card__logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: var(--theme-surface);
  text-decoration: none;
}

body .job-result-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

body .job-result-card__logo span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  font-size: 1.125rem;
  font-weight: 800;
}

body .job-result-card__title-group { min-width: 0; }

body .job-result-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--theme-ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

body .job-result-card__company { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .job-result-card__verified { flex-shrink: 0; color: var(--theme-primary); font-size: 0.75rem; }

body .job-result-card__featured {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border: 0;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-berry-soft);
  color: var(--theme-berry);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* The title is the link, and it stretches over the whole card. Its ::after
   is positioned against the card, so the line clamp does not clip it. */
body .job-result-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 4px;
  color: var(--theme-ink) !important;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: color 0.18s ease;
}

body .job-result-card__title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

body .job-result-card:hover .job-result-card__title { color: var(--theme-primary) !important; }
body .job-result-card__title:hover { text-decoration: none; }
body .job-result-card__title:focus-visible { outline: none; }

body .job-result-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-top: 4px;
  color: var(--theme-muted);
  font-size: 0.8125rem;
}

body .job-result-card__location span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Save sits above the stretched link so it stays clickable. */
body .job-result-card__bookmark { position: relative; z-index: 2; }
body .job-result-card__bookmark form { margin: 0; }

body .job-save-button--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: var(--theme-surface);
  color: var(--theme-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

body .job-save-button--icon:hover,
body .job-save-button--icon.is-saved {
  border-color: var(--theme-primary-border);
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
}

body .job-save-button--icon:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 2px; }

body .job-result-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .job-result-card__tags li {
  padding: 4px 10px;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-surface-alt);
  color: var(--theme-ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

body .job-result-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--theme-border);
}

body .job-result-card__salary { min-width: 0; }

body .job-result-card__salary small {
  display: block;
  color: var(--theme-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body .job-result-card__salary strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--theme-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .job-result-card__salary.is-negotiable strong { color: var(--theme-ink-soft); font-weight: 600; }

body .job-result-card__deadline {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--theme-radius-pill);
  background: var(--theme-surface-alt);
  color: var(--theme-ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body .job-result-card__deadline i { color: var(--theme-muted); font-size: 0.95em; }

body .job-result-card__deadline.is-soon { background: var(--theme-amber-soft); color: #c2410c; }
body .job-result-card__deadline.is-soon i { color: inherit; }
body .job-result-card__deadline.is-expired { color: var(--theme-muted); }

@media (max-width: 480px) {
  body .job-result-card__main { padding: 16px; }
  body .job-result-card__header { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
  body .job-result-card__logo { width: 44px; height: 44px; }
}

/* Tables */
body .table thead th {
  background: #f8fafc;
  color: var(--premium-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--premium-line);
  border-top: none;
}

body .table td {
  border-color: var(--premium-line);
  color: var(--premium-ink-soft);
  font-size: 15px;
}

/* Company Cards (Glassdoor style) */
body .ck-company-card::before {
  background: var(--theme-gradient-primary);
}

body .ck-company-card__logo-fallback,
body .ck-company-pill,
body .ck-empty-state__icon {
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
}

body .ck-company-card {
  box-shadow: var(--theme-shadow-sm);
  border: 1px solid var(--premium-line);
  border-radius: 14px;
}

body .ck-company-card:hover {
  box-shadow: var(--theme-shadow-md);
  border-color: var(--theme-berry-border);
}

body .ck-btn-view, body .ck-btn-follow {
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL STICKY GLASSMORPHISM NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
body .site-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: 0;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

body .site-navbar .container-fluid {
  max-width: 1320px;
  padding: 0 32px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body .site-navbar__row {
  height: 74px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  gap: 24px;
}

body .site-navbar .site-logo {
  position: static;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
}

body .site-navbar .right-cta-menu {
  position: static;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
  margin-left: auto;
}

body .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

body .site-navbar .site-brand__mark {
  height: 40px !important;
  width: auto !important;
  filter: drop-shadow(0 2px 4px rgba(46, 125, 50, 0.15));
}

body .site-brand__word {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--premium-forest);
  display: inline-flex;
  align-items: center;
}

body .site-brand__word::after {
  content: " ";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--theme-berry, #2e7d32);
  border-radius: 50%;
  margin-left: 3px;
  margin-top: 10px;
  box-shadow: 0 0 8px rgba(46, 125, 50, 0.5);
}

body .site-brand__tag {
  display: none;
}

/* Center Primary Navigation Links */
body .premium-primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 28px;
}

body .premium-primary-nav a {
  font-size: 15px;
  font-weight: 600;
  color: #334155 !important;
  white-space: nowrap;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 9px;
  transition: all 0.16s ease;
}

body .premium-primary-nav a:hover {
  color: var(--theme-berry) !important;
  background: var(--theme-berry-soft);
}

body .premium-primary-nav a[aria-current],
body .premium-primary-nav a.active {
  color: var(--theme-berry) !important;
  background: var(--theme-berry-soft);
  font-weight: 700;
}

/* Guest Authentication CTA Stack */
body .guest-auth-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

body .guest-auth-stack .btn {
  width: auto;
  min-width: 0;
  padding: 10px 18px !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none !important;
}

body .guest-auth-stack .guest-register-btn--employer {
  order: 0;
  background: transparent !important;
  color: #475569 !important;
  border: 1px solid var(--premium-line) !important;
}

body .guest-auth-stack .guest-register-btn--employer:hover {
  background: #f1f5f9 !important;
  color: var(--premium-ink) !important;
  border-color: #cbd5e1 !important;
}

body .guest-auth-stack .guest-login-btn {
  order: 1;
  background: transparent !important;
  color: var(--theme-primary) !important;
  border: none !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  font-size: 14px;
  font-weight: 700;
}

body .guest-auth-stack .guest-login-btn:hover {
  color: var(--theme-berry) !important;
  background: var(--theme-berry-soft) !important;
}

body .guest-auth-stack .guest-register-btn:not(.guest-register-btn--employer) {
  order: 2;
  background: var(--theme-gradient-primary) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.28) !important;
}

body .guest-auth-stack .guest-register-btn:not(.guest-register-btn--employer):hover {
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.4) !important;
  transform: translateY(-1px);
}

/* Authenticated User Menu Badges & Icons */
body .site-menu-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #475569 !important;
  font-size: 19px;
  transition: background 0.16s, color 0.16s;
  text-decoration: none !important;
}

body .site-menu-icon-link:hover {
  background: #f1f5f9;
  color: var(--theme-berry) !important;
}

body .site-menu-icon-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--theme-berry, #2e7d32);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff;
}

body .site-navbar .site-menu .has-children > a {
  font-weight: 600;
  font-size: 15px;
  color: #334155;
  padding: 9px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body .site-navbar .site-menu .has-children > a:hover {
  background: var(--theme-berry-soft);
  color: var(--theme-berry);
}

body .site-navbar .site-menu .has-children .dropdown {
  border-radius: 12px;
  border: 1px solid var(--premium-line);
  box-shadow: var(--theme-shadow-lg);
  padding: 8px;
  background: #ffffff;
}

body .site-navbar .site-menu .has-children .dropdown a {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  color: #334155;
}

body .site-navbar .site-menu .has-children .dropdown a:hover {
  background: var(--theme-berry-soft);
  color: var(--theme-berry);
}

body .site-navbar .site-menu-toggle {
  border: 1px solid var(--premium-line) !important;
  background: #ffffff !important;
  color: var(--premium-ink) !important;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  transition: all 0.16s;
}

body .site-navbar .site-menu-toggle:hover {
  border-color: var(--theme-berry-border) !important;
  background: var(--theme-berry-soft) !important;
  color: var(--theme-berry) !important;
}

/* Mobile Offcanvas Menu */
body .site-mobile-menu {
  background: #ffffff;
  width: min(360px, 92vw);
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.12);
  z-index: 2100;
}

body .site-mobile-menu .site-mobile-menu-header {
  padding: 18px 22px;
  height: 74px;
  justify-content: space-between;
  border-bottom: 1px solid var(--premium-line);
}

body .site-mobile-menu .site-mobile-menu-close button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--premium-line);
  color: #475569;
}

body .site-mobile-menu .site-nav-wrap > li > a {
  border-bottom: 1px solid var(--premium-line-subtle) !important;
  padding: 18px 10px !important;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

body .site-mobile-menu .site-nav-wrap > li > a:hover {
  color: var(--theme-berry) !important;
}

body .premium-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2050;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

/* Skip link */
body .premium-skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 3000;
  padding: 12px 20px;
  background: var(--theme-berry);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 0.2s;
}

body .premium-skip-link:focus {
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO HEADERS FOR INNER PAGES
   ═══════════════════════════════════════════════════════════════════════════ */
body .section-hero.overlay.inner-page,
body .section-hero.inner-page,
body .ck-inner-hero {
  background: var(--theme-gradient-strong) !important;
  border: 0;
  padding: 64px 0 54px !important;
  min-height: auto;
  position: relative;
}

body .section-hero.inner-page::before,
body .ck-inner-hero::before,
body .ck-inner-hero::after {
  display: none;
}

body .section-hero.inner-page h1,
body .ck-inner-hero__title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  color: #ffffff !important;
  margin-bottom: 12px;
}

/*
 * The inner-page hero is a dark navy band in this theme. theme-overrides.css
 * still forces `var(--theme-ink)` onto everything inside it, from when the same
 * hero was a light band — and `.section-hero.inner-page .text-white` (three
 * classes) outranks the `body .section-hero.inner-page h1` rule above (two
 * classes, two elements), so headings and breadcrumbs came out dark green on
 * dark navy and could not be read. These selectors carry one more element than
 * the override, which is what it takes to win.
 */
body .section-hero.inner-page .text-white,
body .section-hero.inner-page h1.text-white,
body .section-hero.inner-page .font-weight-bold,
body .section-hero.inner-page .custom-breadcrumbs strong {
  color: #ffffff !important;
  text-shadow: none !important;
}

body .section-hero.inner-page .text-white-50,
body .section-hero.inner-page .custom-breadcrumbs .slash {
  color: #94a3b8 !important;
  text-shadow: none !important;
}

body .section-hero.inner-page .custom-breadcrumbs,
body .ck-breadcrumb {
  font-size: 14px;
  font-weight: 500;
}

body .section-hero.inner-page .custom-breadcrumbs a,
body .ck-breadcrumb a {
  color: #94a3b8 !important;
  transition: color 0.16s;
}

body .section-hero.inner-page .custom-breadcrumbs a:hover,
body .ck-breadcrumb a:hover {
  color: #ffffff !important;
}

body .section-hero.inner-page .custom-breadcrumbs strong,
body .custom-breadcrumbs .slash,
body .ck-breadcrumb__sep {
  color: #cbd5e1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTHENTICATION PAGES (Login / Register)
   ═══════════════════════════════════════════════════════════════════════════ */
body .auth-fullpage {
  padding-top: 74px;
}

body .auth-left {
  background: var(--theme-gradient-strong);
}

body .auth-left::before {
  background: radial-gradient(circle at top left, rgba(46, 125, 50, 0.25), transparent 45%),
              radial-gradient(circle at bottom right, rgba(46, 125, 50, 0.2), transparent 45%);
}

body .auth-left__headline {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

body .auth-left__headline em {
  color: #86e08a;
  font-style: normal;
}

body .auth-right {
  background: var(--premium-paper);
}

body .auth-form-card {
  border: 1px solid var(--premium-line);
  border-radius: 16px;
  box-shadow: var(--theme-shadow-lg);
  background: #ffffff;
}

body .auth-form-header__title {
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--premium-ink);
}

body .auth-input {
  border: 1px solid var(--premium-line) !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  font-family: var(--font-body);
  font-size: 15px !important;
}

body .auth-input:focus {
  border-color: var(--theme-berry) !important;
  box-shadow: 0 0 0 3px var(--theme-berry-glow) !important;
}

body .auth-submit-btn {
  border-radius: 9px;
  background: var(--theme-gradient-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.28);
}

body .auth-submit-btn:hover {
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIMELINE LEFT SIDEBAR & DASHBOARD NAVIGATION (Enhanced Typography & Berry Accent)
   ═══════════════════════════════════════════════════════════════════════════ */
/* A brand-tinted ground (primary blue → berry) so the navigation reads as its
   own focused zone rather than blending into the white/slate page. `!important`
   because theme-overrides.css pins `.dash-sidebar` to the plain surface. */
body .dash-sidebar {
  background: linear-gradient(180deg, #e8f5e9 0%, #e8f5e9 55%, #f0f9f0 100%) !important;
  border-color: rgba(46, 125, 50, 0.18);
}

body .dash-leftbar-desktop {
  background: transparent;
  border-color: var(--premium-line);
}

body .dash-topbar {
  background: #ffffff;
  border-color: var(--premium-line);
  box-shadow: var(--theme-shadow-xs);
}

body .dash-page-header h1 {
  font-weight: 800;
  letter-spacing: -0.035em;
}

body .dash-nav-item.active {
  background: var(--theme-berry-soft);
  color: var(--theme-berry) !important;
  font-weight: 700;
  border-radius: 10px;
}

/* Timeline Leftnav Card — Enhanced font size and clarity */
body .tl-leftnav-card {
  background: linear-gradient(180deg, #e8f5e9 0%, #e8f5e9 55%, #f0f9f0 100%);
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: var(--theme-shadow-sm);
}

body .tl-leftnav-card .dash-sidebar-nav,
body .dash-sidebar .dash-sidebar-nav {
  /* dashboard-premium.css paints the nav white, which hides the tint. */
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body .tl-leftnav-card .dash-nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body .tl-leftnav-card .dash-nav-section__label,
body .dash-sidebar .dash-nav-section__label {
  color: #5e4a59 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px 6px;
  margin-bottom: 2px;
  display: block;
  border-bottom: 1px solid rgba(46, 125, 50, 0.12);
}

body .tl-leftnav-card .dash-nav-item,
body .dash-sidebar .dash-nav-item {
  color: #1e293b !important;
  font-weight: 600;
  font-size: 15px !important;
  padding: 11px 14px !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.16s ease;
  line-height: 1.4;
  text-decoration: none !important;
}

body .tl-leftnav-card .dash-nav-item i,
body .dash-sidebar .dash-nav-item i {
  color: #64748b;
  font-size: 19px !important;
  width: 22px;
  text-align: center;
  transition: color 0.16s, transform 0.16s;
  flex-shrink: 0;
}

body .tl-leftnav-card .dash-nav-item:hover,
body .dash-sidebar .dash-nav-item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--theme-berry) !important;
  transform: translateX(2px);
}

body .tl-leftnav-card .dash-nav-item:hover i,
body .dash-sidebar .dash-nav-item:hover i {
  color: var(--theme-berry, #2e7d32);
}

body .tl-leftnav-card .dash-nav-item.active,
body .dash-sidebar .dash-nav-item.active {
  /* Solid white lifts the current page off the tinted ground. */
  background: #ffffff !important;
  color: var(--theme-primary) !important;
  font-weight: 700;
  border-left: 3px solid var(--theme-berry, #2e7d32);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.12);
}

body .tl-leftnav-card .dash-nav-item.active i,
body .dash-sidebar .dash-nav-item.active i {
  color: var(--theme-berry, #2e7d32);
}

body .dash-nav-item .badge,
body .dash-nav-item__count {
  margin-left: auto;
  font-size: 11px !important;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--theme-berry, #2e7d32);
  color: #ffffff;
}

body .tl-rightbar-card, body .tl-card {
  background: #ffffff;
  border: 1px solid var(--premium-line);
  box-shadow: var(--theme-shadow-sm);
  border-radius: 14px;
}

body .tl-rightbar-link-btn {
  background: var(--theme-primary) !important;
  color: #ffffff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

body .tl-rightbar-link-btn:hover {
  background: var(--theme-primary-hover) !important;
}

body .tl-stat-item, body .tl-missing-list {
  background: #f8fafc;
  border-color: var(--premium-line);
  border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL FOOTER (Executive Dark Slate LinkedIn / Indeed Standard)
   ═══════════════════════════════════════════════════════════════════════════ */
body .app-footer-v2 {
  background: #0f2e14;
  color: #94a3b8;
  border: 0;
  font-family: var(--font-body);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body .app-footer-v2 .footer-col-title,
body .app-footer-v2 .text-dark,
body .premium-footer__columns h3 {
  color: #f8fafc !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

body .app-footer-v2 .footer-links a,
body .app-footer-v2 .text-muted,
body .premium-footer__columns a {
  color: #94a3b8 !important;
  font-size: 14px;
  transition: color 0.16s ease, transform 0.16s ease;
  display: inline-block;
}

body .app-footer-v2 .footer-links a:hover,
body .premium-footer__columns a:hover {
  color: #86e08a !important;
  transform: translateX(2px);
  text-decoration: none;
}

body .app-footer-v2 .footer-links li {
  margin-bottom: 12px;
}

body .premium-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding-bottom: 48px;
}

body .premium-footer__brand {
  max-width: 320px;
}

body .premium-footer__word {
  color: #ffffff !important;
  font-size: 32px;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

body .premium-footer__word span {
  color: var(--theme-berry, #2e7d32);
}

body .premium-footer__brand p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
}

body .premium-footer__columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 720px;
}

body .premium-footer__columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body .premium-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #64748b;
}

body .premium-footer__social {
  display: flex;
  gap: 20px;
}

body .premium-footer__social a {
  color: #94a3b8 !important;
  transition: color 0.16s;
  text-decoration: none;
}

body .premium-footer__social a:hover {
  color: #86e08a !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE REFINEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  body .container {
    max-width: 1240px;
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 1199.98px) {
  body .site-navbar__row { height: 70px; }
  body .premium-primary-nav { margin-left: auto; gap: 4px; }
  body .site-navbar .right-cta-menu { margin-left: 0; }
  body .auth-fullpage { padding-top: 70px; }
}

@media (max-width: 991.98px) {
  body .premium-primary-nav { display: none; }
  body .site-navbar .right-cta-menu { margin-left: auto; }
}

@media (max-width: 767.98px) {
  body .site-navbar .container-fluid { padding: 0 18px !important; }
  body .site-navbar__row { height: 64px; gap: 12px; }
  body .site-brand__word { font-size: 24px; }
  body .site-navbar .site-brand__mark { height: 34px !important; }
  body .auth-fullpage { padding-top: 64px; }
  body .premium-footer__top { flex-direction: column; gap: 36px; padding-bottom: 36px; }
  body .premium-footer__columns { gap: 28px; width: 100%; grid-template-columns: repeat(2, 1fr); }
  body .premium-footer__bottom { flex-direction: column; text-align: center; gap: 14px; }
}

@media (max-width: 440px) {
  body .premium-footer__columns { grid-template-columns: 1fr; }
  body .guest-auth-stack .guest-register-btn--employer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Legacy token bridge
   --------------------------------------------------------------------------
   theme-overrides.css defines 54 `--theme-*` tokens against the old green
   brand. This file re-points 28 of them; the 26 below were left behind, so
   every rule still reading them — companies, salaries, service packages, the
   CV preview, profile, network and search stylesheets, plus the Django
   templates that share them — kept rendering green against this navy theme.

   Each is mapped to its nearest counterpart in the palette above rather than
   to a new literal, so there is one place to change a colour from here on.
   `--theme-danger*` and `--theme-warning*` are already red and amber and are
   deliberately not touched.
   ========================================================================== */

:root, body {
  /* Action / accent — the old "accent == the action green" pair. */
  --theme-accent: var(--theme-primary);
  --theme-accent-soft: var(--theme-primary-soft);

  /* Text */
  --theme-ink: var(--premium-ink);
  --theme-ink-soft: var(--premium-ink-soft);
  --theme-muted: var(--premium-muted);

  /* Lines and surfaces */
  --theme-border: var(--premium-line);
  --theme-border-strong: #cbd5e1;
  --theme-surface-sunken: var(--theme-shell-2);

  /* Focus rings and CTA depth, previously tinted with the brand green. */
  --theme-cta-glow: rgba(46, 125, 50, 0.28);
  --theme-ring: 0 0 0 4px rgba(46, 125, 50, 0.14);
  --theme-ring-cta: 0 0 0 4px rgba(46, 125, 50, 0.22);
  --theme-shadow-cta: 0 1px 2px rgba(15, 46, 20, 0.20), 0 6px 16px rgba(46, 125, 50, 0.24);
  --theme-shadow-xl: 0 8px 16px rgba(15, 23, 42, 0.05), 0 24px 48px rgba(15, 23, 42, 0.12);

  /* Gradients */
  --theme-gradient-brand: linear-gradient(135deg, #0f2e14 0%, #2e7d32 62%, #66bb6a 100%);
  --theme-gradient-cta: linear-gradient(180deg, #2e7d32 0%, #246227 52%, #256a29 100%);

  /* `--theme-orange` and `--theme-premium` were both set to the brand green,
     which their names say they were never meant to be: the first is the
     urgent/hot accent, the second the premium highlight. */
  --theme-orange: var(--theme-amber);
  --theme-orange-soft: var(--theme-amber-soft);
  --theme-premium: var(--theme-berry);

  /* Success stays green — that is semantic, not brand. */
  --theme-success: var(--theme-emerald);
  --theme-success-soft: var(--theme-emerald-soft);

  /* `--theme-teal-dark` was a green, not a dark teal. */
  --theme-teal-dark: #115e59;
}


/* ==========================================================================
   Green literals left in theme-overrides.css
   --------------------------------------------------------------------------
   The token bridge above only reaches rules that read a `--theme-*` variable.
   These 30-odd rules hardcode the old brand green instead, so they survived
   it — the dashboard button, the Bootstrap button/badge overrides, the filter
   chips, the mobile menu and the table head. Each is restated here against the
   palette above; this file loads after theme-overrides.css, and the selectors
   carry `body` where they need to outrank an `!important` already in place.

   `.bg-success`/`.badge-success` stay green on purpose: that is a status
   colour, not the brand.
   ========================================================================== */

/* Dashboard primary button. */
body .dash-btn {
  background: var(--theme-gradient-cta) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body .dash-btn:hover,
body .dash-btn:focus {
  background: linear-gradient(180deg, #246227 0%, #256a29 100%) !important;
}

body .dash-btn--ghost {
  background: var(--theme-surface) !important;
  border-color: var(--premium-line) !important;
  color: var(--premium-ink) !important;
}

body .dash-btn--ghost:hover,
body .dash-btn--ghost:focus {
  background: var(--theme-primary-soft) !important;
  border-color: var(--theme-primary-border) !important;
  color: var(--theme-primary) !important;
}

body .dash-btn--danger {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
}

body .dash-panel__eyebrow {
  color: var(--premium-muted) !important;
}

/* Bootstrap buttons. */
body .btn.btn-primary:hover,
body .btn.btn-primary:focus,
body .btn.btn-primary:active,
body .dashboard-body .btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--theme-primary-hover) 0%, var(--premium-deep) 100%) !important;
  border-color: var(--theme-primary-hover) !important;
}

body .btn-dark,
body .btn.btn-dark,
body .btn-navy,
.dashboard-body .btn-dark {
  background: linear-gradient(180deg, var(--premium-slate-800) 0%, var(--premium-forest) 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body .btn-dark:hover,
body .btn.btn-dark:hover,
body .btn-navy:hover,
.dashboard-body .btn-dark:hover {
  background: linear-gradient(180deg, var(--premium-forest) 0%, #020617 100%) !important;
}

/* Badges. `info` was green; `success` stays green but moves to the new
   emerald so it sits with the rest of the palette. */
body .bg-info,
body .badge-info {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%) !important;
  color: #ffffff !important;
}

body .bg-success,
body .badge-success {
  background: linear-gradient(135deg, var(--premium-lime) 0%, var(--theme-emerald) 100%) !important;
  color: #ffffff !important;
}

/* Table heads. */
body .table .thead-dark th {
  background: linear-gradient(135deg, var(--premium-slate-800) 0%, var(--premium-forest) 100%) !important;
  color: #ffffff !important;
}

/* Filter chips and tabs — the selected state was the brand green. */
body .jobs-chip-option input:checked + span,
body .jobs-filter-tabs__button.is-active,
body .nav-tabs .nav-link.active {
  background: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
  color: #ffffff !important;
}

/* Text selection. */
::selection {
  background: var(--theme-primary-border);
  color: var(--premium-ink);
}

/* Mobile menu leftovers. */
body .site-mobile-menu-brand small {
  color: var(--premium-muted) !important;
}

body .site-mobile-menu .site-mobile-menu-header .site-mobile-menu-close span:hover,
body .site-mobile-menu .site-nav-wrap .arrow-collapse:hover {
  background: var(--theme-surface-alt) !important;
  color: var(--premium-ink) !important;
}

/* Job listing rows: screenshot-style result cards. */
body .job-result-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

body .job-result-card {
  min-height: 212px;
  border: 1px solid #d4d4d4;
  border-radius: var(--theme-radius-md);
  background: var(--theme-surface);
  box-shadow: none;
}

body .jobs-results-grid__item:nth-child(odd) .job-result-card,
body .job-result-list > .job-result-card:nth-child(odd) {
  background: linear-gradient(90deg, #eaf4ff 0%, #ffffff 58%);
}

body .jobs-results-grid__item:nth-child(even) .job-result-card,
body .job-result-list > .job-result-card:nth-child(even) {
  background: #ffffff;
}

body .job-result-card:hover {
  border-color: #c9c9c9;
  box-shadow: none;
  transform: none;
}

body .job-result-card--featured,
body .job-result-card:focus-within {
  border-color: #c9c9c9;
}

body .job-result-card--featured::before {
  display: none;
}

body .job-result-card__main {
  gap: 18px;
  padding: 24px 28px 22px;
}

body .job-result-card__header {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px);
  gap: 24px;
}

body .job-result-card__title-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

body .job-result-card__title {
  display: block;
  max-width: 980px;
  margin: 0;
  overflow: visible;
  color: var(--theme-primary) !important;
  font-size: clamp(1.35rem, 1.05rem + 0.58vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

body .job-result-card:hover .job-result-card__title {
  color: var(--theme-primary-hover) !important;
}

body .job-result-card__company {
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  color: var(--theme-accent-text);
  font-size: clamp(1.02rem, 0.96rem + 0.22vw, 1.28rem);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: clip;
  white-space: normal;
}

body .job-result-card__company:hover {
  color: var(--theme-berry-dark);
  text-decoration: none;
}

body .job-result-card__meta {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #5f5f5f;
  font-size: clamp(0.98rem, 0.92rem + 0.22vw, 1.22rem);
  font-weight: 500;
  line-height: 1.42;
}

body .job-result-card__meta i {
  margin-top: 3px;
  color: #666666;
  font-size: 1.15em;
  line-height: 1;
  text-align: center;
}

body .job-result-card__location {
  margin-top: 0;
}

body .job-result-card__location span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

body .job-result-card__education span,
body .job-result-card__experience span {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body .job-result-card__aside {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 74px;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
}

body .job-result-card__logo {
  width: min(180px, 100%);
  height: 76px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body .job-result-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

body .job-result-card__logo-fallback {
  display: none;
}

body .job-result-card__featured {
  margin-top: 4px;
}

body .job-result-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-top: auto;
  padding-top: 0;
  border-top: 0;
}

body .job-result-card__deadline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #666666;
  font-size: clamp(0.98rem, 0.92rem + 0.22vw, 1.22rem);
  font-weight: 500;
  line-height: 1.3;
}

body .job-result-card__deadline strong {
  color: #555555;
  font-weight: 700;
}

body .job-result-card__deadline i {
  color: #666666;
  font-size: 1.05em;
}

body .job-result-card__deadline.is-soon,
body .job-result-card__deadline.is-expired {
  background: transparent;
  color: #666666;
}

body .job-result-card__salary,
body .job-result-card__tags,
body .job-result-card__eyebrow,
body .job-result-card__verified {
  display: none;
}

body .custom-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

body .custom-pagination .page-item {
  margin: 0;
}

body .custom-pagination .page-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(27, 94, 32, 0.14) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--theme-primary-dark) !important;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1 !important;
  box-shadow: none !important;
  text-align: center;
  text-decoration: none !important;
}

body .custom-pagination .page-item:first-child .page-link,
body .custom-pagination .page-item:last-child .page-link {
  min-width: 92px;
  border-radius: 999px !important;
}

body .custom-pagination .page-item.active .page-link,
body .custom-pagination .page-link:hover,
body .custom-pagination .page-link:focus {
  border-color: var(--theme-primary) !important;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%) !important;
  color: #ffffff !important;
}

body .custom-pagination .page-item.disabled .page-link {
  pointer-events: none;
  border-color: rgba(27, 94, 32, 0.1) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--theme-muted) !important;
}

body .custom-pagination .page-item.disabled:not(:first-child):not(:last-child) .page-link {
  min-width: 34px;
  border-color: transparent !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  body .job-result-list {
    gap: 18px;
  }

  body .job-result-card {
    min-height: 0;
  }

  body .job-result-card__main {
    padding: 20px 18px 18px;
  }

  body .job-result-card__header,
  body .job-result-card__footer {
    grid-template-columns: minmax(0, 1fr);
  }

  body .job-result-card__aside {
    min-height: 0;
    justify-content: flex-start;
    order: -1;
  }

  body .job-result-card__logo {
    width: 140px;
    height: 56px;
  }

  body .job-result-card__deadline {
    justify-content: flex-start;
  }

  body .custom-pagination .pagination {
    gap: 6px;
  }

  body .custom-pagination .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 0.9rem;
  }

  body .custom-pagination .page-item:first-child .page-link,
  body .custom-pagination .page-item:last-child .page-link {
    min-width: 74px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Two-tone accent layer.

   Green is the primary everywhere by token. Magenta is used on purpose, and
   only here: the employer's name wherever a job or company is listed (it is
   the thing that identifies who is hiring, as on the job card), section
   eyebrows, the Featured badge, and the employer sign-up button — so the two
   audiences read as two colours in the header. !important because the rules
   these override are more specific (.home-page .hp-eyebrow and the like).
   ────────────────────────────────────────────────────────────────────────── */
body .job-result-card__company,
body .jd-head__company,
body .job-header-card__company,
body .job-company-header,
body .hp-job__company,
body .hp-co__name {
  color: var(--theme-accent-text) !important;
}

body .hp-eyebrow,
body .hp-hero__eyebrow,
body .ck-inner-hero__eyebrow,
body .section-eyebrow,
body .text-eyebrow {
  color: var(--theme-accent-text) !important;
}

body .hp-hero__eyebrow {
  background: var(--theme-berry-soft) !important;
  border-color: var(--theme-berry-border) !important;
}

body .hp-hero__dot {
  background: var(--theme-berry) !important;
  box-shadow: 0 0 0 3px var(--theme-berry-glow) !important;
}

body .job-result-card__featured {
  background: var(--theme-berry-soft) !important;
  color: var(--theme-accent-text) !important;
}

body .guest-register-btn--employer,
body .guest-auth-stack .guest-register-btn--employer {
  background: transparent !important;
  border: 1.5px solid var(--theme-berry) !important;
  color: var(--theme-accent-text) !important;
}

body .guest-register-btn--employer:hover,
body .guest-register-btn--employer:focus,
body .guest-auth-stack .guest-register-btn--employer:hover,
body .guest-auth-stack .guest-register-btn--employer:focus {
  background: var(--theme-berry-soft) !important;
  border-color: var(--theme-berry-hover) !important;
  color: var(--theme-berry-dark) !important;
}
