:root {
  --bg: #eefafa;
  --surface: #ffffff;
  --muted-surface: #f4fbfa;
  --line: #d5e2e1;
  --text: #17222b;
  --muted: #72818a;
  --primary: #0f8378;
  --primary-dark: #0b675f;
  --chip: #f0f7f6;
  --shadow: 0 22px 50px rgba(19, 80, 76, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7fcfc 0, var(--bg) 270px, #f8fbfb 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
  padding: 0 clamp(18px, 8vw, 320px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 30px 0 28px;
  position: relative;
}

.nav-link:hover,
.text-link:hover {
  color: var(--primary-dark);
}

.nav-link.active::after {
  background: var(--primary);
  bottom: 18px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.login-button,
.secondary-pill,
.primary-button {
  border-radius: 999px;
  border: 1px solid #bdd7d5;
  color: var(--text);
  min-height: 44px;
  padding: 0 22px;
}

.login-button {
  background: var(--muted-surface);
  justify-self: end;
}

.primary-button {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 750;
}

.primary-button:hover {
  background: var(--primary-dark);
}

a.primary-button,
a.secondary-pill {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.secondary-pill {
  background: rgba(255, 255, 255, 0.72);
}

.page-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: 42px 24px 80px;
}

.home-hero {
  background:
    linear-gradient(90deg, rgba(238, 251, 247, 0.97) 0%, rgba(238, 251, 247, 0.86) 43%, rgba(238, 251, 247, 0.24) 72%),
    url("https://images.unsplash.com/photo-1584515933487-779824d29309?auto=format&fit=crop&w=1800&q=80") center right / cover;
  min-height: 540px;
}

.home-hero-inner {
  margin: 0 auto;
  max-width: 1280px;
  padding: 62px 24px 110px;
}

.home-copy {
  max-width: 670px;
}

.home-copy h1 {
  font-size: clamp(46px, 6vw, 74px);
  line-height: 0.98;
  margin-bottom: 24px;
}

.home-copy h1 span {
  color: #2faf80;
  display: block;
}

.home-copy > p {
  color: #22313a;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.45;
  margin: 0 0 26px;
}

.home-search {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(16, 75, 76, 0.15);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px;
  max-width: 760px;
  overflow: hidden;
  padding: 8px;
}

.home-search-field {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 0 16px;
}

.home-search-field span {
  color: #5d7080;
  font-size: 20px;
  line-height: 1;
}

.home-search input {
  background: transparent;
  border: 0;
  color: #26363f;
  min-height: 52px;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

.home-search .primary-button {
  border-radius: 14px;
  min-height: 54px;
}

.home-sections {
  display: grid;
  gap: 44px;
}

.home-stats {
  background: linear-gradient(135deg, #0f6f67, #1f8c69);
  border-radius: 18px;
  color: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -104px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(14, 101, 90, 0.18);
}

.home-stats div {
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 2px 16px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 78px;
  padding: 14px 22px;
}

.home-stats i {
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  display: flex;
  font-style: normal;
  font-weight: 900;
  grid-row: 1 / span 2;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.home-stats strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.home-stats span {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.home-stats b {
  color: white;
}

.text-link {
  background: transparent;
  border: 0;
  color: #14936f;
  font-weight: 800;
  padding: 0;
}

.featured-employers h2,
.home-link-panel h2,
.home-featured-jobs h2 {
  font-size: 23px;
  margin: 0;
}

.employer-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.employer-card {
  background: white;
  border: 1px solid #cfd8dd;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(22, 50, 58, 0.08);
  overflow: hidden;
  padding-bottom: 16px;
  position: relative;
}

.featured-card,
.featured-job-card {
  border-color: #f0c845;
  box-shadow: 0 20px 46px rgba(158, 119, 19, 0.18);
  position: relative;
}

.featured-job-card::before,
.featured-card::before {
  background: linear-gradient(180deg, #ffd95e, #f3b936);
  border-radius: 999px;
  content: "";
  inset: 14px auto auto 14px;
  height: 8px;
  position: absolute;
  width: 8px;
}

.featured-badge {
  background: #ffd052;
  border-radius: 999px;
  color: #17222b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0 16px 12px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.empty-employer-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  grid-column: 1 / -1;
  padding: 28px;
}

.empty-employer-card h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.empty-employer-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.employer-photo {
  background: linear-gradient(135deg, #daf3eb, #f8fbfb);
  height: 138px;
}

.photo-1 { background: url("https://images.unsplash.com/photo-1581093458791-9d42e3c4f41b?auto=format&fit=crop&w=700&q=80") center / cover; }
.photo-2 { background: url("https://images.unsplash.com/photo-1584515933487-779824d29309?auto=format&fit=crop&w=700&q=80") center / cover; }
.photo-3 { background: url("https://images.unsplash.com/photo-1550831107-1553da8c8464?auto=format&fit=crop&w=700&q=80") center / cover; }
.photo-4 { background: url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=700&q=80") center / cover; }

.employer-body {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 70px minmax(0, 1fr);
  padding: 0 16px 10px;
  transform: translateY(-20px);
}

.employer-body h3 {
  color: #0e355c;
  font-size: 16px;
  line-height: 1.12;
  margin: 0 0 3px;
  word-break: break-word;
}

.employer-body p {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.employer-body .logo {
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(22, 50, 58, 0.16);
  height: 70px;
  width: 70px;
}

.employer-card-meta {
  border-top: 1px solid var(--line);
  align-items: center;
  display: flex;
  font-size: 13px;
  gap: 8px;
  justify-content: space-between;
  margin: -8px 16px 14px;
  padding-top: 12px;
}

.employer-card-meta strong {
  color: var(--text);
  font-size: 13px;
}

.employer-card-meta span {
  color: var(--muted);
  font-size: 12px;
}

.employer-card-meta .job-count {
  align-items: baseline;
  display: inline-flex;
  gap: 4px;
  white-space: nowrap;
}

.employer-card-meta a {
  color: #0e355c;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.employer-profile-button {
  font-size: 14px;
  min-height: 38px;
  margin: 0 16px;
  width: calc(100% - 32px);
}

.carousel-dot {
  background: #181846;
  border-radius: 50%;
  grid-column: 1 / -1;
  height: 12px;
  justify-self: center;
  width: 12px;
}

.home-link-panels {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  gap: 0;
  grid-template-columns: 6fr 4fr;
  overflow: hidden;
}

.employer-profile-shell {
  max-width: 1280px;
}

.breadcrumb {
  color: #8a98a3;
  margin: 0 0 28px;
}

.breadcrumb a {
  color: #8a98a3;
  text-decoration: none;
}

.employer-profile-layout {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.employer-profile-sidebar,
.employer-profile-main,
.employer-new-jobs,
.candidate-sidebar,
.dashboard-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.employer-profile-sidebar {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px 20px;
  position: sticky;
  top: 100px;
}

.employer-profile-sidebar .logo {
  height: 118px;
  width: 118px;
}

.employer-profile-sidebar h1 {
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 8px 0 0;
  text-align: center;
}

.employer-profile-sidebar > p {
  color: var(--muted);
  margin: 0 0 8px;
}

.employer-profile-sidebar dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding-top: 18px;
  width: 100%;
}

.employer-profile-sidebar dt {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.employer-profile-sidebar dd {
  margin: 4px 0 0;
}

.employer-profile-main {
  overflow: hidden;
}

.employer-profile-hero {
  background:
    linear-gradient(90deg, rgba(13, 66, 72, 0.25), rgba(13, 66, 72, 0.05)),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1400&q=80") center / cover;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: end;
  min-height: 260px;
  padding: 26px;
}

.follow-button {
  background: #ffd052;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  min-height: 50px;
  padding: 0 20px;
}

.employer-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 30px;
  padding: 0 48px;
}

.employer-tabs a {
  border-bottom: 3px solid transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  padding: 16px 0;
  text-decoration: none;
}

.employer-tabs a.active {
  border-color: #1b4fd8;
}

.employer-presentation {
  padding: 28px 48px;
}

.employer-presentation .logo {
  margin-bottom: 18px;
}

.employer-presentation h2,
.employer-new-jobs h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.employer-presentation p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.employer-new-jobs {
  margin-top: 24px;
  padding: 24px 28px;
}

.employers-hero {
  background:
    linear-gradient(rgba(5, 53, 76, 0.72), rgba(5, 53, 76, 0.72)),
    url("https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: white;
  padding: 64px 24px;
  text-align: center;
}

.employers-hero .eyebrow,
.employers-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.employers-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 0 auto 18px;
  max-width: 860px;
}

.employers-hero p:last-child {
  font-size: 22px;
  margin: 0;
}

.employers-directory {
  align-items: start;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 26px;
  grid-template-columns: 300px minmax(0, 1fr);
  margin-top: 48px;
  padding: 32px;
}

.employer-directory-filter {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  position: sticky;
  top: 100px;
}

.employer-directory-filter input {
  background: #fbfefe;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  margin-top: 8px;
  min-height: 44px;
  padding: 8px 12px;
  width: 100%;
}

.employer-directory-filter h2 {
  font-size: 20px;
  margin: 22px 0 12px;
}

#employer-county-filter {
  display: grid;
  gap: 6px;
}

#employer-county-filter button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  min-height: 32px;
  padding: 4px 8px;
  text-align: left;
}

#employer-county-filter button::after {
  content: "⌄";
}

#employer-county-filter button.active {
  background: var(--chip);
  color: var(--primary-dark);
  font-weight: 800;
}

.employer-directory-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employer-directory-card {
  border: 1px solid #cfd8dd;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.employer-directory-body {
  padding: 0 16px 16px;
}

.employer-directory-title {
  align-items: start;
  display: block;
  gap: 14px;
  min-height: 70px;
  padding-right: 142px;
  padding-top: 16px;
  position: relative;
}

.employer-directory-title .logo {
  border-radius: 16px;
  height: 112px;
  margin-bottom: 0;
  overflow: hidden;
  padding: 18px 22px;
  position: absolute;
  right: 0;
  top: -56px;
  width: 128px;
  z-index: 1;
}

.employer-directory-title .image-logo img {
  max-height: 76px;
  max-width: 82px;
  object-fit: contain;
}

.employer-directory-title h3 {
  color: #0e355c;
  font-size: 16px;
  line-height: 1.15;
  margin: 0 0 5px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.employer-directory-title p,
.directory-meta {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.directory-meta {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.employer-directory-body > p {
  color: #40535c;
  line-height: 1.55;
}

.directory-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.candidate-admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.candidate-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.candidate-row {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.candidate-row span,
.candidate-row small,
.muted-note {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.candidate-row > div:last-child {
  display: flex;
  gap: 8px;
}

.candidate-dashboard-shell {
  max-width: 1240px;
}

.dashboard-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(15, 131, 120, 0.95), rgba(16, 53, 80, 0.92)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1600&q=80") center / cover;
  border-radius: 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
  min-height: 230px;
  padding: 34px;
}

.dashboard-hero .eyebrow,
.dashboard-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.candidate-dashboard-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.candidate-sidebar {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 26px;
  position: sticky;
  top: 100px;
}

.candidate-avatar {
  align-items: center;
  background: linear-gradient(135deg, #0f8378, #33b987);
  border-radius: 28px;
  color: white;
  display: flex;
  font-size: 42px;
  font-weight: 900;
  height: 96px;
  justify-content: center;
  width: 96px;
}

.candidate-sidebar h2 {
  font-size: 24px;
  margin: 6px 0 0;
  text-align: center;
}

.candidate-sidebar > p {
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.candidate-progress {
  background: var(--muted-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  width: 100%;
}

.candidate-progress span {
  color: var(--muted);
  font-size: 13px;
}

.candidate-progress strong {
  display: block;
  font-size: 26px;
  margin: 4px 0 10px;
}

.candidate-progress div {
  background: #dce9e7;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.candidate-progress i {
  background: var(--primary);
  display: block;
  height: 100%;
  width: 0;
}

.candidate-sidebar dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding-top: 18px;
  width: 100%;
}

.candidate-sidebar dt {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.candidate-sidebar dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.candidate-dashboard-main {
  display: grid;
  gap: 22px;
}

.dashboard-card {
  border-radius: 20px;
  padding: 24px;
}

.candidate-profile-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.candidate-profile-form input,
.candidate-profile-form select {
  background: #fbfefe;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  margin-top: 6px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.candidate-profile-form button {
  grid-column: 1 / -1;
}

.dashboard-job-list {
  display: grid;
  gap: 12px;
}

.dashboard-job-list .job-card {
  box-shadow: none;
}

.candidate-alert-list {
  display: grid;
  gap: 12px;
}

.candidate-alert-card {
  background: var(--muted-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.candidate-alert-card span {
  color: var(--muted);
}

.candidate-alert-card a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.admin-import-form,
.admin-status {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.home-link-panel {
  background: transparent;
  border: 0;
  padding: 24px;
}

.home-link-panel + .home-link-panel {
  border-left: 1px solid var(--line);
}

.quick-link-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.home-link-panel + .home-link-panel .quick-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-link-grid a {
  background: rgba(240, 247, 246, 0.72);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #17636b;
  font-size: 12px;
  font-weight: 760;
  min-width: 0;
  overflow: hidden;
  padding: 7px 9px;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-more-links {
  background: transparent;
  border: 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 850;
  margin-top: 12px;
  padding: 0;
}

.home-featured-jobs {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.home-featured-job-grid {
  display: grid;
  gap: 14px;
}

.home-featured-job-grid .job-card {
  box-shadow: none;
}

.employer-new-jobs .job-card,
.home-featured-job-grid .job-card,
.dashboard-job-list .job-card {
  border-radius: 14px;
  padding: 14px 18px;
}

.employer-new-jobs .job-title,
.home-featured-job-grid .job-title,
.dashboard-job-list .job-title {
  font-size: 17px;
  font-weight: 680;
  max-width: 780px;
}

.employer-new-jobs .company-row strong,
.home-featured-job-grid .company-row strong,
.dashboard-job-list .company-row strong {
  font-size: 13px;
  font-weight: 650;
}

.employer-new-jobs .chip,
.home-featured-job-grid .chip,
.dashboard-job-list .chip {
  font-size: 12px;
  padding: 5px 9px;
}

.admin-import-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.admin-import-form input,
.admin-import-form select,
.admin-import-form textarea {
  background: #fbfefe;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  margin-top: 6px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.admin-import-form .wide-field,
.admin-import-form .check-row {
  grid-column: 1 / -1;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.check-row input {
  margin: 0;
  min-height: auto;
  width: auto;
}

.admin-import-form button,
.admin-status {
  grid-column: 1 / -1;
}

.danger-button {
  background: #fff5f3;
  border: 1px solid #f0c2b8;
  border-radius: 999px;
  color: #9c2f1d;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
}

.admin-status {
  color: var(--muted);
  margin-top: 14px;
}

.admin-employer-media {
  margin-top: 34px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 6px;
}

h1 {
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 8px;
}

.hero p:last-child,
.lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.match-strip,
.api-import {
  align-items: center;
  background: rgba(244, 251, 250, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 24px;
}

.api-import {
  background: white;
  padding: 20px 24px;
}

.api-import h2 {
  font-size: 22px;
  margin: 0 0 6px;
}

.api-import p:last-child {
  color: var(--muted);
  margin: 0;
}

.api-import button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.seo-panel {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 20px 24px;
}

.seo-panel {
  display: none;
}

.jobs-view-seo .seo-panel {
  display: flex;
}

.seo-panel h2,
.seo-links h2 {
  font-size: 22px;
  margin: 0 0 6px;
}

.seo-panel p:last-child {
  color: var(--muted);
  margin: 0;
}

.seo-reset {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.search-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) 250px auto;
  margin-bottom: 20px;
}

.search-field {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
}

.search-field span {
  color: #52646d;
  font-size: 25px;
}

.search-field input,
.search-bar select {
  background: transparent;
  border: 0;
  color: var(--text);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.search-bar select {
  appearance: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 56px;
  padding: 0 22px;
}

.content-grid {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 250px minmax(0, 1fr);
}

.filters {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  position: sticky;
  top: 104px;
}

.filter-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.filter-head button,
.results-meta button {
  background: transparent;
  border: 0;
  color: var(--primary-dark);
  padding: 0;
}

fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 15px 0 0;
}

legend {
  font-weight: 750;
  padding: 0 0 10px;
}

label {
  display: block;
}

.filters label {
  color: #30434c;
  line-height: 1.9;
}

.popular-location-filter,
.location-filter {
  display: grid;
  gap: 8px;
}

.popular-location-filter p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.popular-location-filter label {
  align-items: center;
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
}

.popular-location-filter input {
  appearance: none;
  border: 1px solid #909b9f;
  border-radius: 4px;
  height: 24px;
  margin: 0;
  width: 24px;
}

.popular-location-filter input:checked {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 5px white;
}

.show-all-locations {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  display: flex;
  font-size: 17px;
  font-weight: 650;
  justify-content: space-between;
  margin: 16px 0 12px;
  padding: 0 6px 0 26px;
  width: 100%;
}

.show-all-locations span {
  font-size: 26px;
  line-height: 1;
}

.location-filter {
  border-top: 1px solid var(--line);
  display: none;
  max-height: 420px;
  overflow: auto;
  padding: 12px 4px 0 0;
}

.location-filter.expanded {
  display: grid;
}

.location-group {
  background: #fbfefe;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: clip;
}

.location-group summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  padding: 9px 11px;
}

.location-group summary::-webkit-details-marker {
  display: none;
}

.location-group summary label {
  align-items: center;
  display: flex;
  gap: 8px;
  line-height: 1.25;
}

.location-group small {
  color: var(--muted);
}

.city-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding: 8px 12px 10px 32px;
}

.city-list label {
  font-size: 14px;
  line-height: 1.7;
}

.results-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.results-meta p {
  color: var(--muted);
  margin: 0;
}

.jobs-list {
  display: grid;
  gap: 18px;
}

.pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 6px;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.page-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  min-height: 42px;
  min-width: 42px;
  padding: 0 14px;
}

.page-button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 800;
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-ellipsis {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  min-height: 42px;
  padding: 0 4px;
}

.job-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 18px;
}

.job-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 8px;
}

.company-row {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-bottom: 10px;
}

.logo {
  align-items: center;
  background: #fff;
  border: 1px solid #e4eceb;
  border-radius: 12px;
  color: #e26d36;
  display: flex;
  font-size: 16px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 104px;
}

.image-logo img {
  max-height: 34px;
  max-width: 86px;
  object-fit: contain;
}

.company-row strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
}

.company-row span {
  color: #93a0a8;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #30434c;
  display: inline-flex;
  font-size: 13px;
  line-height: 1.15;
  padding: 6px 11px;
}

.card-actions {
  display: grid;
  gap: 8px;
  min-width: 148px;
}

.card-actions .primary-button,
.card-actions .secondary-pill {
  min-height: 40px;
  padding: 0 16px;
}

.card-actions .primary-button,
.card-actions .secondary-pill {
  width: 100%;
}

.save-button.saved {
  border-color: #9fcac5;
  color: var(--primary-dark);
  font-weight: 750;
}

.external-link {
  text-align: center;
}

.detail-shell {
  max-width: 1280px;
}

.back-link {
  color: var(--text);
  display: inline-flex;
  font-weight: 650;
  margin-bottom: 26px;
  text-decoration: none;
}

.detail-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.detail-hero-card,
.detail-card,
.apply-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
}

.detail-hero-card h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 22px 0 22px;
  max-width: 760px;
}

.detail-meta {
  color: var(--muted);
  font-size: 15px;
  margin: 2px 0 22px;
}

.detail-card h2,
.related-jobs h2,
.apply-panel h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.detail-card p,
.apply-panel p {
  color: #30434c;
  font-size: 16px;
  line-height: 1.72;
  margin: 0;
  white-space: pre-wrap;
}

.ad-description {
  color: #30434c;
  display: grid;
  gap: 14px;
  font-size: 16px;
  line-height: 1.75;
  max-width: 780px;
}

.ad-description p {
  margin: 0;
}

.ad-description .ad-kicker {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.fact-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
  padding: 16px 18px;
}

.fact-box span {
  color: #687981;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.fact-box strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.apply-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  position: sticky;
  top: 106px;
}

.apply-panel .primary-button,
.apply-panel .secondary-pill {
  width: 100%;
}

.continue-links {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding-top: 20px;
}

.continue-links .eyebrow {
  flex-basis: 100%;
}

.continue-links a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  padding: 8px 12px;
  text-decoration: none;
}

.related-jobs {
  padding-top: 12px;
}

.empty-state,
.article-grid article,
.text-page .stats-row div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.seo-links {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-top: 22px;
  padding: 22px;
}

.section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head span {
  color: var(--muted);
  white-space: nowrap;
}

.seo-link-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: 220px minmax(180px, 1fr);
  margin-bottom: 16px;
}

.seo-link-controls select,
.seo-link-controls input {
  background: #fbfefe;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  margin-top: 6px;
  min-height: 44px;
  padding: 8px 12px;
  width: 100%;
}

.seo-link-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  max-height: 300px;
  overflow: auto;
}

.seo-link-grid a {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #30434c;
  padding: 8px 12px;
  text-decoration: none;
}

.seo-link-grid a:hover {
  border-color: #9fcac5;
  color: var(--primary-dark);
}

.text-page {
  max-width: 1000px;
}

.article-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.article-grid span {
  color: var(--primary-dark);
  font-weight: 800;
}

.article-grid h2 {
  font-size: 22px;
  margin: 12px 0 8px;
}

.article-grid p {
  color: var(--muted);
  margin: 0;
}

.stats-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.stats-row strong {
  display: block;
  font-size: 34px;
}

.stats-row span {
  color: var(--muted);
}

.employer-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 14px;
  margin-top: 28px;
  max-width: 720px;
  padding: 24px;
}

.employer-form input,
.employer-form textarea,
.auth-card input,
.auth-card select {
  background: #fbfefe;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  margin-top: 6px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

dialog {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(10, 40, 45, 0.24);
  max-width: min(760px, calc(100vw - 32px));
  padding: 0;
}

dialog::backdrop {
  background: rgba(12, 32, 36, 0.32);
  backdrop-filter: blur(3px);
}

.modal-card {
  padding: 28px;
}

.modal-card h2 {
  font-size: 30px;
  margin: 0 0 14px;
}

.auth-switch {
  background: var(--muted-surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.auth-switch button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  min-height: 38px;
}

.auth-switch button.active {
  background: white;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(22, 50, 58, 0.08);
}

.login-dialog:not([data-mode="register"]) .register-only,
#login-dialog:not([data-mode="register"]) .register-only {
  display: none;
}

.modal-card p {
  color: var(--muted);
}

.auth-card {
  display: grid;
  gap: 14px;
  min-width: min(440px, calc(100vw - 32px));
  position: relative;
}

.icon-close {
  background: #f0f7f6;
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 36px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
}

.fine-print {
  font-size: 13px;
  margin: 0;
}

.toast {
  background: #14262b;
  border-radius: 14px;
  bottom: 22px;
  color: white;
  left: 50%;
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: 180ms ease;
  z-index: 20;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

@media (max-width: 1180px) {
  .site-header {
    padding: 0 clamp(18px, 4vw, 80px);
  }

  .page-shell {
    max-width: 1040px;
  }

  .home-hero {
    min-height: 520px;
  }

  .home-copy {
    max-width: 620px;
  }

  .home-copy h1 {
    font-size: clamp(42px, 5.8vw, 64px);
  }

  .home-copy > p {
    font-size: 20px;
  }

  .home-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px;
    max-width: 700px;
  }

  .home-stats div {
    gap: 2px 12px;
    padding: 18px 20px;
  }

  .employer-cards,
  .employer-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .employer-profile-layout,
  .candidate-dashboard-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .site-header {
    gap: 12px;
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    order: 2;
    overflow-x: auto;
  }

  .nav-link {
    padding: 8px 0 18px;
  }

  .nav-link.active::after {
    bottom: 8px;
  }

  .search-bar,
  .home-search,
  .home-stats,
  .home-link-panels,
  .admin-import-form,
  .content-grid,
  .detail-layout,
  .employer-profile-layout,
  .candidate-dashboard-grid,
  .employers-directory,
  .article-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .employer-cards,
  .employer-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    position: static;
  }

  .apply-panel {
    position: static;
  }

  .employer-profile-sidebar {
    position: static;
  }

  .candidate-sidebar {
    position: static;
  }

  .employer-directory-filter {
    position: static;
  }

  .home-stats {
    margin-top: -70px;
  }

  .home-link-panel + .home-link-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 28px 12px 56px;
  }

  .site-header {
    min-height: auto;
    padding: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .login-button {
    min-height: 38px;
    padding: 0 14px;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-inner {
    padding: 36px 16px 82px;
  }

  .home-copy h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .home-copy > p {
    font-size: 18px;
  }

  .home-search {
    border-radius: 16px;
  }

  .home-search-field {
    min-height: 52px;
  }

  .quick-link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .employer-cards,
  .employer-directory-grid {
    grid-template-columns: 1fr;
  }

  .match-strip,
  .api-import,
  .seo-panel,
  .job-card,
  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .match-strip,
  .api-import,
  .seo-panel,
  .job-card {
    display: flex;
  }

  .seo-link-controls {
    grid-template-columns: 1fr;
  }

  .candidate-profile-form {
    grid-template-columns: 1fr;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions {
    min-width: 0;
  }

  .card-actions .primary-button,
  .card-actions .secondary-pill {
    width: 100%;
  }

  .job-title {
    font-size: 17px;
  }

  .chip {
    font-size: 12px;
    padding: 5px 9px;
  }

  .detail-hero-card,
  .detail-card,
  .apply-panel,
  .dashboard-card {
    border-radius: 16px;
    padding: 20px;
  }

  .detail-hero-card h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .employer-tabs {
    gap: 18px;
    overflow-x: auto;
    padding: 0 20px;
  }

  .employer-presentation {
    padding: 24px 20px;
  }
}
