:root {
  --blue:#1e40af; --sky:#06b6d4; --ink:#0f172a; --muted:#64748b;
  --bg:#f8fafc; --card:#ffffff; --line:#e2e8f0;
  --radius:14px; --shadow:0 2px 12px rgba(15,23,42,.07);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0; background:var(--bg); color:var(--ink);
  font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.wrap { max-width:1080px; margin:0 auto; padding:0 20px; }
a { color:var(--blue); }
img { max-width:100%; }

/* header */
header.site {
  position:sticky; top:0; z-index:50; background:#fff;
  border-bottom:1px solid var(--line); box-shadow:0 1px 6px rgba(15,23,42,.06);
}
header.site .wrap { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); font-weight:800; font-size:19px; }
.brand img { width:34px; height:34px; }
nav.main a { margin-left:18px; color:var(--muted); text-decoration:none; font-size:14.5px; }
nav.main a:hover { color:var(--blue); }

/* hero */
.hero { background:linear-gradient(135deg,#0f172a,#1e40af 60%,#06b6d4); color:#fff; padding:64px 0 58px; }
.hero h1 { font-size:clamp(28px,4.6vw,46px); line-height:1.12; margin:0 0 14px; }
.hero p { font-size:18px; max-width:640px; margin:0 0 26px; opacity:.94; }
.cta { display:inline-block; background:#fff; color:var(--blue); text-decoration:none;
  font-weight:800; padding:13px 24px; border-radius:12px; margin-right:12px; }
.cta.ghost { background:transparent; color:#fff; border:2px solid rgba(255,255,255,.7); }
.strips { display:flex; gap:24px; margin-top:34px; flex-wrap:wrap; font-size:14px; opacity:.92; }

/* sections */
section { padding:46px 0; }
section h2 { font-size:26px; margin:0 0 8px; }
.lead { color:var(--muted); margin:0 0 26px; max-width:720px; font-size:16.5px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px 20px; }
.card a.title { font-weight:800; font-size:16.5px; text-decoration:none; color:var(--ink); display:block; margin-bottom:6px; }
.card a.title:hover { color:var(--blue); }
.card p { margin:0; color:var(--muted); font-size:14.5px; }
.linkcard { text-decoration:none; color:inherit; display:block; }

/* tables */
table { width:100%; border-collapse:collapse; background:var(--card); font-size:14px; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
th, td { padding:9px 12px; text-align:left; border-bottom:1px solid var(--line); }
thead th { background:#f1f5f9; font-size:12px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); }
tbody tr:nth-child(even) { background:#f8fafc; }

/* FAQ */
details { background:var(--card); border:1px solid var(--line); border-radius:10px; margin-bottom:10px; }
summary { cursor:pointer; font-weight:700; padding:13px 16px; background:#f1f5f9; border-radius:10px; }
details p { padding:10px 16px; margin:0; font-size:15px; }

/* notices + footer */
.notice { background:#fffbeb; border:1px solid #fde68a; color:#92400e; border-radius:10px; padding:12px 16px; font-size:14px; margin:16px 0; }
footer { background:#0f172a; color:#94a3b8; padding:28px 0 26px; font-size:13.5px; }
footer .wrap { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
footer a { color:#cbd5e1; }
.disclaim { margin-top:10px; font-size:12.5px; color:#64748b; }

@media (max-width:640px) {
  .hero { padding:44px 0 40px; }
  nav.main { display:none; }
  .strip .cta { display:block; margin-bottom:10px; }
}
@media print { header.site, .hero .cta { display:none; } }

/* salary search widget (homepage hero) */
.salary-search {
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:10px;
  align-items:center;
  max-width:780px;
  margin:0 auto 30px;
  padding:10px;
  background:#fff;
  border:1px solid rgba(255,255,255,.55);
  border-radius:16px;
  box-shadow:0 26px 60px -28px rgba(2,6,23,.5);
  text-align:left;
}
.salary-search .field { display:flex; flex-direction:column; gap:5px; min-width:0; padding-left:6px; }
.salary-search label {
  font-size:10.5px; font-weight:800; letter-spacing:.7px;
  text-transform:uppercase; color:var(--muted);
}
.salary-search select {
  width:100%;
  padding:12px 38px 12px 12px;
  font:inherit; font-size:15px; font-weight:600; color:var(--ink);
  background:#f1f5f9 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  border:1px solid transparent; border-radius:11px;
  appearance:none; -webkit-appearance:none; cursor:pointer;
}
.salary-search select:hover { border-color:#cbd5e1; }
.salary-search select:focus-visible { outline:2px solid var(--sky); outline-offset:1px; }
.salary-search .search-btn {
  appearance:none; border:none; cursor:pointer;
  border-radius:12px; padding:14px 22px;
  font:inherit; font-size:15px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,var(--blue),#2563eb);
  box-shadow:0 12px 24px -10px rgba(30,64,175,.6);
  white-space:nowrap;
  transition:transform .15s ease, box-shadow .15s ease;
}
.salary-search .search-btn:hover { transform:translateY(-1px); box-shadow:0 16px 30px -12px rgba(30,64,175,.65); }

/* anchor fix: keep state rows visible under the sticky header */
tr[id] { scroll-margin-top:86px; }

@media (max-width:680px){
  .salary-search { grid-template-columns:1fr; gap:8px; }
  .salary-search .field { padding-left:2px; }
  .salary-search .search-btn { width:100%; padding:14px 24px; }
}

/* ================= Homepage redesign (hp-*) ================= */
body { -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }

.hero { position:relative; overflow:hidden; text-align:center; padding:70px 0 88px; }
.hero::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(60% 55% at 50% -12%, rgba(6,182,212,.38), transparent 62%),
    radial-gradient(42% 40% at 90% 115%, rgba(255,255,255,.10), transparent 60%);
}
.hero .wrap { position:relative; z-index:1; }

.hp-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  margin:0 0 18px; padding:7px 15px; border-radius:999px;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.22);
  color:#a5f3fc; font-size:12.5px; font-weight:700; letter-spacing:.7px; text-transform:uppercase;
}
.hero h1 { margin:0 0 16px; }
.hero .hp-sub { margin:0 auto 26px; max-width:660px; font-size:18px; }

.hp-cta { display:flex; justify-content:center; gap:14px; margin:0 0 26px; flex-wrap:wrap; }
.hp-cta .cta { margin:0; }
.hp-trust { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.hp-trust li {
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 14px; border:1px solid rgba(255,255,255,.22); border-radius:999px;
  background:rgba(255,255,255,.06); color:#e2e8f0; font-size:13px; font-weight:600;
}
.hp-trust li::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--sky); }

/* section anatomy */
.hp-section { padding:58px 0; }
.hp-section.alt { background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.hp-section h2 { margin:0 0 10px; font-size:30px; line-height:1.2; }
.hp-kicker { margin:0 0 8px; color:var(--blue); font-size:12.5px; font-weight:800; letter-spacing:.9px; text-transform:uppercase; }
.hp-section .lead { margin-bottom:30px; }

/* feature cards */
.hp-feature {
  display:flex; flex-direction:column; align-items:flex-start; gap:12px;
  text-decoration:none; color:inherit; height:100%;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hp-feature:hover { transform:translateY(-3px); box-shadow:0 18px 38px -20px rgba(15,23,42,.28); border-color:#cbd5e1; }
.hp-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:12px;
  background:var(--tile,#dbeafe); color:var(--ic,#1e40af);
}
.hp-icon svg { width:24px; height:24px; }
.hp-feature-title { font-weight:800; font-size:17px; color:var(--ink); }
.hp-feature-text { color:var(--muted); font-size:14.5px; margin:0 0 2px; }
.hp-arrow {
  display:inline-flex; align-items:center; gap:6px; margin-top:auto;
  font-size:13.5px; font-weight:800; color:var(--blue);
  transition:gap .16s ease;
}
.hp-feature:hover .hp-arrow, .hp-guide:hover .hp-arrow, .hp-cat:hover .hp-arrow { gap:10px; }

/* guide cards */
.hp-guide { display:flex; flex-direction:column; gap:10px; text-decoration:none; color:inherit; height:100%; transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.hp-guide:hover { transform:translateY(-3px); box-shadow:0 18px 38px -20px rgba(15,23,42,.28); border-color:#cbd5e1; }
.hp-guide-top { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.hp-guide-name { font-weight:800; font-size:16.5px; color:var(--ink); }
.hp-guide .hp-arrow { margin-top:0; }
.hp-guide-stat { align-self:flex-start; padding:4px 10px; border-radius:8px; background:var(--tile,#e0e7ff); color:var(--ic,#3730a3); font-size:12.5px; font-weight:800; white-space:nowrap; }
.hp-guide-text { color:var(--muted); font-size:14px; }
.hp-all { margin:28px 0 0; }
.hp-all .cta { background:var(--blue); color:#fff; }
.hp-all .cta:hover { background:#1d4ed8; }

/* category cards */
.hp-cat {
  display:flex; align-items:center; gap:14px;
  padding:18px 20px; text-decoration:none; color:inherit;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hp-cat:hover { transform:translateY(-3px); box-shadow:0 18px 38px -20px rgba(15,23,42,.28); border-color:#cbd5e1; }
.hp-cat .hp-icon { width:42px; height:42px; border-radius:11px; flex:0 0 auto; }
.hp-cat .hp-icon svg { width:22px; height:22px; }
.hp-cat-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.hp-cat-name { font-weight:800; font-size:16px; color:var(--ink); }
.hp-cat-count { color:var(--muted); font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; }
.hp-cat .hp-arrow { margin-top:0; color:var(--muted); }
.hp-cat:hover .hp-arrow { color:var(--blue); }

/* cta band */
.hp-band-section { padding:64px 0 8px; }
.hp-band {
  display:flex; align-items:center; justify-content:space-between; gap:22px; flex-wrap:wrap;
  padding:40px 38px;
  background:linear-gradient(135deg,#0b1220,var(--blue) 65%,#0369a1);
  border-radius:20px; box-shadow:0 20px 44px -24px rgba(2,6,23,.45);
  color:#fff;
}
.hp-band h2 { margin:0 0 6px; font-size:24px; color:#fff; }
.hp-band p { margin:0; color:#cbd5e1; font-size:14.5px; }
.hp-band .cta { margin:0; }

/* footer */
footer .ft-grid { display:grid; grid-template-columns:2fr 1.4fr 1fr; gap:28px; align-items:start; }
.ft-brand strong { color:#f1f5f9; font-size:17px; display:block; }
.ft-brand p { margin:8px 0 0; color:#94a3b8; font-size:13.5px; max-width:44ch; }
.ft-links { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:13.5px; }
.ft-src { font-size:13px; color:#94a3b8; }

@media (max-width:760px){
  footer .ft-grid { grid-template-columns:1fr; gap:20px; }
  .hp-band { padding:28px 24px; }
  .hp-band .cta { width:100%; text-align:center; }
}
/* state pill lists (states.html + homepage by-state section) */
.state-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.state-list a {
  display:block; padding:10px 12px; text-align:center;
  background:var(--card); border:1px solid var(--line); border-radius:10px;
  color:var(--ink); text-decoration:none; font-weight:600; font-size:14px;
  box-shadow:var(--shadow);
  transition:transform .15s ease, border-color .15s ease, color .15s ease;
}
.state-list a:hover { transform:translateY(-2px); border-color:#cbd5e1; color:var(--blue); }
.hp-section .state-list { margin-top:4px; }