/* ============================================================
   job-pro.css — High-Fidelity Professional
   - Automatic visual hierarchy (Big titles, small labels)
   - "Ghost" style action buttons
   - Refined spacing for data density
   ============================================================ */

#profile-employment-tab {
  /* Palette - Deep Corporate Blue & Slate */
  --je-primary: #3b82f6;       /* Bright Blue for links/focus */
  --je-dark: #0f172a;          /* Nearly black text */
  --je-medium: #475569;        /* Body text */
  --je-light: #94a3b8;         /* Labels */
  
  --je-bg-surface: #ffffff;
  --je-border-color: #e2e8f0;
  
  /* Badges */
  --je-badge-current-bg: #f0fdf4;
  --je-badge-current-txt: #166534;
  
  --je-badge-prev-bg: #f8fafc;
  --je-badge-prev-txt: #475569;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--je-dark);
}

/* ============================================================
   ACTION BUTTON — "Ghost" Style
   ============================================================ */
#profile-employment-tab .job-manage-wrap {
  display: flex;
  justify-content: flex-end; /* Aligns button to the right */
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--je-border-color);
}

#profile-employment-tab .job-manage-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  
  /* Transparent background with strong border */
  background-color: transparent;
  border: 1px solid #cbd5e1;
  color: var(--je-medium);
  
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

#profile-employment-tab .job-manage-btn:hover {
  border-color: var(--je-primary);
  color: var(--je-primary);
  background-color: #eff6ff; /* Very light blue tint on hover */
  transform: translateY(-1px);
}

/* ============================================================
   CARD CONTAINER — Clean & Crisp
   ============================================================ */
#profile-employment-tab .job-card {
  background: var(--je-bg-surface);
  border: 1px solid var(--je-border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Subtle Lift on Hover */
#profile-employment-tab .job-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

/* Current Job Active State */
#profile-employment-tab .job-card.job-current {
  border-color: #bfdbfe; /* Soft blue border */
  box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.1); /* Blue glow */
}

/* ============================================================
   BADGES — Minimalist
   ============================================================ */
#profile-employment-tab .job-section-heading,
#profile-employment-tab .institution-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

#profile-employment-tab .current-job-pill {
  background: var(--je-badge-current-bg);
  color: var(--je-badge-current-txt);
  border: 1px solid #dcfce7;
}

#profile-employment-tab .previous-job-pill {
  background: var(--je-badge-prev-bg);
  color: var(--je-badge-prev-txt);
  border: 1px solid #e2e8f0;
}

#profile-employment-tab .institution-pill {
  background: #f1f5f9;
  color: #334155;
  margin-top: 1.5rem;
  border: 1px solid #e2e8f0;
}

/* ============================================================
   DATA GRID & TYPOGRAPHY MAGIC
   ============================================================ */
#profile-employment-tab .job-field {
  display: grid;
  grid-template-columns: 1fr; /* Mobile First */
  margin-bottom: 0.85rem;
}

/* The Label: Small and out of the way */
#profile-employment-tab .job-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--je-light);
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* The Value: Readable and clear */
#profile-employment-tab .job-field-value {
  font-size: 14px;
  color: var(--je-dark);
  line-height: 1.5;
}

/* --- MAGIC SELECTORS FOR HIERARCHY --- */

/* 1. [DELETED] The Job Title now inherits standard font size (14px) */

/* 2. Make the Institution Name (Company) bold but smaller */
#profile-employment-tab .job-group-institution .job-field:first-of-type .job-field-value {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

/* Links styling */
#profile-employment-tab .job-field-value a {
  color: var(--je-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted var(--je-primary);
}

#profile-employment-tab .job-field-value a:hover {
  border-bottom-style: solid;
}

/* ============================================================
   DESKTOP OPTIMIZATIONS
   ============================================================ */
@media (min-width: 768px) {
  #profile-employment-tab .job-field {
    /* On desktop, put label next to value */
    grid-template-columns: 120px 1fr;
    align-items: baseline;
  }

  #profile-employment-tab .job-field-label {
    text-align: left; /* Keep left aligned for clean scan line */
    font-size: 12px;
  }
  
  /* Increase padding for breathable layout */
  #profile-employment-tab .job-card {
    padding: 2rem;
  }
}