.ufjs-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

.ufjs-hero {
  margin-bottom: 2rem;
  text-align: center;
}

.ufjs-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ufjs-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.ufjs-apply-row {
  margin-top: 1rem;
}

.ufjs-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1d4ed8;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ufjs-apply-btn:hover {
  background: #1e40af;
  color: #ffffff;
}

.ufjs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Controls Card */
.ufjs-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ufjs-search-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.ufjs-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ufjs-keyword-group {
  flex: 2;
  min-width: 240px;
}

.ufjs-agency-group,
.ufjs-path-group {
  flex: 1;
  min-width: 180px;
}

.ufjs-btn-group {
  min-width: 120px;
}

.ufjs-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.ufjs-input,
.ufjs-select {
  height: 44px;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: inherit;
  box-sizing: border-box;
  width: 100%;
}

.ufjs-input:focus,
.ufjs-select:focus {
  outline: 2px solid #1d4ed8;
  outline-offset: 1px;
  border-color: #1d4ed8;
}

.ufjs-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
}

.ufjs-btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.ufjs-btn-secondary:hover {
  background: #cbd5e1;
}

/* Presets Row */
.ufjs-presets-row {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ufjs-presets-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.25rem;
}

.ufjs-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ufjs-pill-btn {
  height: 44px;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.ufjs-pill-btn:hover {
  background: #e2e8f0;
}

.ufjs-pill-btn.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* Primary Content Grid */
.ufjs-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .ufjs-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Job Card */
.ufjs-job-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ufjs-card-header {
  display: flex;
  flex-direction: column;
}

.ufjs-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ufjs-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ufjs-badge-agency {
  background: #dbeafe;
  color: #1e40af;
}

.ufjs-badge-grade {
  background: #dcfce7;
  color: #166534;
}

.ufjs-badge-series {
  background: #f1f5f9;
  color: #475569;
}

.ufjs-badge-path {
  background: #fef3c7;
  color: #92400e;
}

.ufjs-job-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.ufjs-agency-line {
  font-size: 1.05rem;
  color: #475569;
  margin: 0 0 1rem;
}

.ufjs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: #64748b;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.ufjs-meta-item strong {
  color: #334155;
}

/* Metrics Grid */
.ufjs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.ufjs-metric-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.ufjs-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.ufjs-metric-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.ufjs-metric-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Content Sections */
.ufjs-section {
  display: flex;
  flex-direction: column;
}

.ufjs-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.ufjs-body-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.ufjs-duties-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #475569;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ufjs-qual-box {
  background: #f8fafc;
  border-left: 4px solid #1d4ed8;
  border-radius: 4px 8px 8px 4px;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
}

.ufjs-qual-box p {
  margin: 0;
}

/* Sidebar Styles */
.ufjs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ufjs-side-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ufjs-side-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.ufjs-side-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 1rem;
}

/* Calculator Form */
.ufjs-calc-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ufjs-calc-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ufjs-calc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.ufjs-calc-select {
  height: 44px;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: inherit;
  box-sizing: border-box;
}

.ufjs-calc-result {
  margin-top: 0.5rem;
  padding: 0.85rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.ufjs-res-line {
  display: flex;
  justify-content: space-between;
  color: #475569;
}

.ufjs-res-line.total {
  padding-top: 0.4rem;
  border-top: 1px solid #cbd5e1;
  font-weight: 700;
  color: #1d4ed8;
  font-size: 1.05rem;
}

/* Vacancy List */
.ufjs-vac-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.ufjs-vac-item {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: background-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.ufjs-vac-item:hover {
  background: #e2e8f0;
}

.ufjs-vac-item.active {
  background: #eff6ff;
  border-color: #1d4ed8;
}

.ufjs-vac-agency {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
}

.ufjs-vac-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.ufjs-vac-salary {
  font-size: 0.78rem;
  color: #64748b;
}

/* In-Cluster Links */
.ufjs-related-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.ufjs-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #0f172a;
}

.ufjs-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.ufjs-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.ufjs-related-card:hover {
  border-color: #1d4ed8;
}

.ufjs-related-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d4ed8;
}

.ufjs-related-desc {
  font-size: 0.82rem;
  color: #64748b;
}

.ufjs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
