:root {
  --ink: #162033;
  --muted: #5b6578;
  --line: #dfe4ec;
  --soft: #f5f7fb;
  --blue: #2764e7;
  --blue-dark: #1848b3;
  --orange: #ffb238;
  --navy: #15234a;
  --white: #ffffff;
  --shadow: 0 12px 34px rgba(26, 39, 69, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--white); }
a { color: inherit; }
button, input { font: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 168px;
  height: auto;
  display: block;
}

h1, h2, h3, p { margin-top: 0; }

.directory {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.directory-heading {
  margin-top: 42px;
}

.directory-heading h1,
.wfhalert-intro h2 {
  margin-bottom: 8px;
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.directory-heading h1,
.directory-heading p {
  white-space: nowrap;
}

.directory-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.clear-button {
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.controls {
  display: block;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #cfd6e3;
  border-radius: 14px;
  background: var(--white);
}

.search-box:focus-within {
  outline: 3px solid rgba(39, 100, 231, .14);
  border-color: var(--blue);
}

.search-box svg {
  width: 21px;
  fill: none;
  stroke: #748096;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.category-filters button,
.empty-state button {
  border: 1px solid #cfd6e3;
  border-radius: 999px;
  background: var(--white);
  color: #344057;
  font-weight: 750;
  cursor: pointer;
}

.category-filters button.active {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 14px 0 9px;
}

.category-filters button {
  padding: 8px 13px;
  flex: 0 0 auto;
  font-size: 13px;
}

.results-bar {
  align-items: center;
  padding: 14px 2px 12px;
  color: var(--muted);
  font-size: 13px;
}

.results-bar strong { color: var(--ink); font-size: 15px; }

.results-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guide-link {
  color: var(--blue-dark);
  font-weight: 750;
  text-decoration: none;
}

.guide-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.lead-grid-more {
  margin-top: 10px;
}

.js .lead-card[hidden] {
  display: none;
}

.lead-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 1px rgba(20, 32, 51, .02);
}

.lead-card:hover {
  border-color: #bdc8da;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 13px;
}

.category-label {
  min-width: 0;
  overflow: hidden;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.role {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.company {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.featured-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: #7b4a00;
  background: #fff2d7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 0;
}

.card-meta span {
  position: relative;
  color: #707b8e;
  font-size: 12px;
  font-weight: 650;
}

.card-meta span + span::before {
  content: "·";
  position: absolute;
  left: -9px;
  color: #a4adbc;
}

.career-link {
  display: flex;
  width: fit-content;
  gap: 6px;
  align-items: center;
  margin: 14px 0 0 auto;
  text-align: right;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.career-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.career-link span {
  color: var(--blue);
  transition: transform .15s ease;
}

.career-link:hover span { transform: translateX(2px); }

.empty-state {
  padding: 64px 20px;
  text-align: center;
}

.empty-state p { color: var(--muted); }
.empty-state button { padding: 10px 16px; }

.load-more {
  display: block;
  min-width: 190px;
  min-height: 48px;
  margin: 24px auto 2px;
  padding: 0 22px;
  border: 1px solid #bdc8da;
  border-radius: 12px;
  color: var(--blue-dark);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.load-more:hover {
  border-color: var(--blue);
  background: #eef4ff;
}

.load-more[hidden] { display: none; }

.wfhalert-intro {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 28px auto;
  padding: 38px 34px;
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(26, 45, 76, .05);
}

.wfhalert-intro::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: #2456d8;
  content: "";
}

.wfhalert-intro h2 {
  max-width: none;
  margin-bottom: 20px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.035em;
  color: #15223b;
}

.wfhalert-intro p {
  margin-bottom: 13px;
  color: #4e5a6e;
  line-height: 1.6;
}

.job-guide {
  scroll-margin-top: 24px;
  margin: 64px auto 72px;
}

.guide-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-label {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.job-guide h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.guide-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.guide-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.guide-grid h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
}

.guide-grid p,
.faq-block p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.guide-grid a,
.faq-block a {
  color: var(--blue-dark);
  font-weight: 700;
}

.faq-block {
  max-width: 880px;
  margin: 48px auto 0;
}

.faq-block h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.5vw, 38px);
}

.faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.faq-item p {
  max-width: 800px;
}

.wfhalert-intro .intro-copy p:last-child { margin-bottom: 0; }

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  max-width: 620px;
  margin-top: 30px;
}

.signup-form input {
  flex: 1 1 330px;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #cfd7e3;
  border-radius: 12px;
  color: var(--ink);
  background: #fbfcfe;
  font: inherit;
}

.signup-form input:focus {
  border-color: #2456d8;
  outline: 3px solid rgba(36, 86, 216, .12);
}

.signup-form button {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: #163d97;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.signup-form button:hover {
  background: #12347f;
}

.signup-form button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.turnstile-wrap,
.signup-disclosure,
.signup-status {
  grid-column: 1 / -1;
}

.turnstile-wrap {
  min-height: 65px;
}

.signup-disclosure,
.signup-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.signup-disclosure {
  color: #697589;
}

.signup-status {
  min-height: 18px;
  color: #344057;
  font-weight: 700;
}

footer {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer a { color: var(--blue-dark); font-weight: 750; text-decoration: none; }
.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; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 64px; }
  .brand-logo { width: 134px; }
  .directory-heading { margin-top: 24px; }
  .directory { margin-top: 20px; padding: 22px 14px; border-radius: 18px; }
  .directory-heading h1 { font-size: 36px; letter-spacing: -.04em; }
  .directory-heading h1,
  .directory-heading p { white-space: normal; }
  .directory-heading p { line-height: 1.5; }
  .results-actions { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
  .lead-grid { grid-template-columns: 1fr; }
  .wfhalert-intro { padding: 28px 20px; margin: 24px 0; border-radius: 18px; }
  .wfhalert-intro h2 { margin-bottom: 18px; font-size: 30px; }
  .signup-form { grid-template-columns: 1fr; max-width: none; }
  .signup-form input { width: 100%; }
  .signup-form button { width: 100%; min-height: 56px; height: auto; padding: 14px 18px; }
  .job-guide { margin: 48px auto 56px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article { padding: 20px; }
  .faq-block { margin-top: 38px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}

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