.kavea-salary-explorer {
  --kse-ink: #23213f;
  --kse-purple: #4f56d6;
  --kse-purple-dark: #393fae;
  --kse-pale: #f7f7fd;
  --kse-line: #e2e3ef;
  --kse-muted: #656579;
  color: var(--kse-ink);
  background: #fff;
}

.kavea-salary-explorer *,
.kavea-salary-explorer *::before,
.kavea-salary-explorer *::after { box-sizing: border-box; }

.kavea-salary-explorer .container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.kse-hero {
  padding: 28px 0 30px;
  color: #fff;
  background: linear-gradient(118deg, #24233f 0%, #333259 100%);
}

.kse-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.kse-hero-copy { max-width: 850px; }

.kse-hero h1 {
  margin: 10px 0 7px;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.kse-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.65;
}

.kse-hero-link {
  flex: 0 0 auto;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.kse-hero-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kse-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

.kse-breadcrumbs a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
}

.kse-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.kse-explore {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--kse-line);
  background: var(--kse-pale);
}

.kse-explore-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.kse-explore h2,
.kse-content h2,
.kse-cta h2 {
  margin: 5px 0;
  color: var(--kse-ink);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.16;
  letter-spacing: -.02em;
}

.kse-eyebrow {
  display: block;
  color: var(--kse-purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kse-hint,
.kse-location-count {
  margin: 0;
  color: var(--kse-muted);
  font-size: 14px;
  font-weight: 700;
}

.kse-hint {
  padding: 9px 13px;
  border: 1px solid var(--kse-line);
  border-radius: 7px;
  background: #fff;
}

.kse-filter-row {
  display: grid;
  grid-template-columns: auto minmax(240px, 420px) 1fr;
  align-items: center;
  gap: 14px;
}

.kse-filter-row label {
  font-size: 14px;
  font-weight: 750;
}

.kse-filter-row select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #bfc2de;
  border-radius: 7px;
  color: var(--kse-ink);
  background: #fff;
  font: inherit;
}

.kse-method-link {
  justify-self: end;
  color: var(--kse-purple-dark);
  font-size: 14px;
  font-weight: 750;
}

.kse-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.kse-state-grid a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--kse-line);
  border-radius: 7px;
  color: var(--kse-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 1px rgba(31,31,54,.02);
}

.kse-state-grid a:hover {
  border-color: var(--kse-purple);
  color: var(--kse-purple-dark);
  background: #f2f2ff;
  transform: translateY(-1px);
}

.kse-state-grid a[aria-current="page"] {
  border-color: var(--kse-purple);
  color: #fff;
  background: var(--kse-purple);
}

.kse-metro-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--kse-line);
}

.kse-metro-section h3,
.kse-state-switcher h3 {
  margin: 0 0 5px;
  color: var(--kse-ink);
  font-size: 18px;
}

.kse-metro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 15px;
}

.kse-metro-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid var(--kse-line);
  border-radius: 8px;
  color: var(--kse-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.kse-metro-grid a > span {
  flex: 0 0 auto;
  color: var(--kse-purple);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.kse-metro-grid a:hover {
  border-color: var(--kse-purple);
  color: var(--kse-purple-dark);
  box-shadow: 0 6px 18px rgba(43,43,76,.07);
}

.kse-state-switcher {
  margin-top: 25px;
}

.kse-content {
  padding: 46px 0 58px;
}

.kse-intro,
.kse-editorial {
  max-width: 850px;
  margin: 0 0 30px;
  color: #4f5063;
  font-size: 17px;
  line-height: 1.72;
}

.kse-section-head {
  margin-bottom: 18px;
}

.kse-section-head p {
  max-width: 820px;
  margin: 7px 0 0;
  color: var(--kse-muted);
}

.kse-table-wrap {
  overflow: auto;
  border: 1px solid var(--kse-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(36,35,63,.05);
}

.kse-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.kse-table caption {
  padding: 14px 18px;
  color: var(--kse-muted);
  background: #fafafe;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.kse-table th,
.kse-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--kse-line);
  text-align: left;
}

.kse-table thead th {
  color: #fff;
  background: var(--kse-ink);
  font-size: 13px;
  letter-spacing: .01em;
}

.kse-table tbody tr:nth-child(even) { background: #fbfbfe; }
.kse-table tbody tr:hover { background: #f3f3ff; }

.kse-table td:not(:nth-child(2)) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kse-notice,
.kse-source {
  margin: 25px 0;
  padding: 17px 19px;
  border-left: 4px solid var(--kse-purple);
  color: #525366;
  background: var(--kse-pale);
  font-size: 14px;
  line-height: 1.65;
}

.kse-related { margin-top: 45px; }

.kse-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 17px;
}

.kse-link-grid a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--kse-line);
  border-radius: 7px;
  color: var(--kse-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}

.kse-link-grid a:hover {
  border-color: var(--kse-purple);
  color: var(--kse-purple-dark);
}

.kse-cta {
  padding: 42px 0;
  color: #fff;
  background: #202036;
}

.kse-cta h2 { color: #fff; }

.kse-cta p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.72);
}

.kse-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.kse-button {
  display: inline-block;
  padding: 15px 25px;
  border-radius: 6px;
  color: #fff !important;
  background: var(--kse-purple);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.kse-button:hover { background: #6269e2; }

.kavea-salary-explorer a,
.kavea-salary-explorer select {
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.kavea-salary-explorer a:focus-visible,
.kavea-salary-explorer select:focus-visible {
  outline: 3px solid #ffcf40;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .kse-metro-grid,
  .kse-link-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

}

@media (max-width: 760px) {
  .kavea-salary-explorer .container {
    width: min(100% - 28px, 1180px);
  }

  .kse-hero-row,
  .kse-explore-head,
  .kse-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .kse-hero-row { gap: 15px; }
  .kse-hero-link { margin-bottom: 0; }
  .kse-filter-row { grid-template-columns: 1fr; }
  .kse-method-link { justify-self: start; }

  .kse-metro-grid,
  .kse-link-grid { grid-template-columns: 1fr; }

  .kse-content { padding: 36px 0 46px; }

  .kse-table th,
  .kse-table td { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .kavea-salary-explorer *,
  .kavea-salary-explorer *::before,
  .kavea-salary-explorer *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
