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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p, dl, dd { margin-top: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.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; }

.directory-heading { max-width: 940px; margin-top: 42px; }
.directory-heading h1,
.wfhalert-intro h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -.05em;
}
.directory-heading p {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

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

.search-box {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #cfd6e3;
  border-radius: 14px;
  background: var(--white);
}
.search-box:focus-within { border-color: var(--blue); outline: 3px solid rgba(39, 100, 231, .14); }
.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 {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 9px;
  scrollbar-width: thin;
}
.category-filters button,
.empty-state button {
  border: 1px solid #cfd6e3;
  border-radius: 999px;
  color: #344057;
  background: var(--white);
  font-weight: 750;
  cursor: pointer;
}
.category-filters button { flex: 0 0 auto; padding: 8px 13px; font-size: 13px; }
.category-filters button.active { border-color: var(--blue); color: var(--white); background: var(--blue); }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  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,
.clear-button {
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.guide-link:hover,
.clear-button:hover { text-decoration: underline; text-underline-offset: 3px; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.resource-grid > .wfhalert-intro { grid-column: 1 / -1; margin: 8px 0; }
.load-more-wrap {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  padding: 10px 0 2px;
}
.load-more-wrap button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #b9c8e3;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--white);
  font-weight: 800;
}
.load-more-wrap button:hover { border-color: var(--blue); background: #eef4ff; }
.load-more-wrap button:focus-visible { outline: 3px solid rgba(39, 100, 231, .18); outline-offset: 2px; }
.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 1px rgba(20, 32, 51, .02);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: #bdc8da; box-shadow: var(--shadow); transform: translateY(-1px); }
.card-topline { display: flex; min-height: 26px; flex-wrap: wrap; justify-content: space-between; gap: 7px; }
.category,
.training-type {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
}
.category { color: var(--blue-dark); background: #eef4ff; }
.training-type { color: var(--green); background: var(--green-soft); }
.company { margin: 15px 0 6px; color: var(--navy); font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.roles { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.card dl { display: grid; gap: 0; margin: auto 0 0; }
.card dl div { padding: 11px 0; border-top: 1px solid #e7ebf1; }
.card dt { margin-bottom: 3px; color: #737e91; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.card dd { margin: 0; color: #344057; font-size: 13px; line-height: 1.5; }
.card dd strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; }
.card-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.career-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  text-decoration: none;
}
.career-link::after { color: var(--blue); content: "\2192"; transition: transform .15s ease; }
.career-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.career-link:hover::after { transform: translateX(2px); }

.empty-state { padding: 64px 20px; text-align: center; }
.empty-state h3 { margin-bottom: 8px; font-size: 24px; }
.empty-state p { color: var(--muted); }
.empty-state button { padding: 10px 16px; }

.directory-note {
  max-width: 900px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.directory-note strong { color: var(--ink); }

.wfhalert-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  align-items: center;
  gap: 28px;
  width: 100%;
  margin: 28px 0 0;
  padding: 30px 32px;
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(26, 45, 76, .05);
}
.wfhalert-intro::before { position: absolute; inset: 0 auto 0 0; width: 6px; background: #2456d8; content: ""; }
.wfhalert-intro h2 { margin-bottom: 10px; font-size: clamp(25px, 2.7vw, 34px); line-height: 1.12; letter-spacing: -.035em; }
.wfhalert-intro p { margin-bottom: 0; color: #4e5a6e; line-height: 1.55; }

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin-top: 18px;
}
.signup-form input { min-width: 0; height: 54px; padding: 0 16px; border: 1px solid #cfd7e3; border-radius: 12px; color: var(--ink); background: #fbfcfe; }
.signup-form input:focus { border-color: #2456d8; outline: 3px solid rgba(36, 86, 216, .12); }
.signup-form button { height: 54px; padding: 0 22px; border: 0; border-radius: 12px; color: var(--white); background: #163d97; 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-status { grid-column: 1 / -1; }
.turnstile-wrap { min-height: 65px; }
.signup-status { min-height: 18px; margin: 0; color: #344057; font-size: 12px; font-weight: 700; line-height: 1.45; }
.signup-status:empty { display: none; }

.job-guide { scroll-margin-top: 24px; margin: 64px auto 72px; }
.guide-heading { max-width: 760px; margin-bottom: 28px; }
.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 { margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: item;
  list-style: none;
}
.checklist li {
  position: relative;
  min-height: 128px;
  padding: 22px 20px 20px 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  counter-increment: item;
}
.checklist li::before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #eef4ff;
  content: counter(item);
  font-size: 11px;
  font-weight: 850;
}
.checklist strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 15px; }
.checklist span { color: var(--muted); font-size: 13px; line-height: 1.6; }

.faq-block,
.related-block { max-width: 880px; margin: 48px auto 0; }
.faq-block h2,
.related-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; margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-grid a { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-decoration: none; }
.related-grid a:hover { border-color: #bdc8da; box-shadow: var(--shadow); }
.related-grid strong { display: block; margin-bottom: 7px; color: var(--navy); font-size: 17px; }
.related-grid span { color: var(--muted); font-size: 13px; line-height: 1.55; }

footer { min-height: 84px; display: flex; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.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-heading h1 { font-size: 36px; letter-spacing: -.04em; }
  .directory-heading p { font-size: 16px; line-height: 1.5; }
  .directory { margin-top: 20px; padding: 22px 14px; border-radius: 18px; }
  .results-actions { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
  .cards,
  .checklist,
  .related-grid { grid-template-columns: 1fr; }
  .wfhalert-intro { grid-template-columns: 1fr; gap: 14px; padding: 20px; margin: 22px 0 0; border-color: #b9cdfb; border-radius: 16px; background: #f4f7ff; box-shadow: 0 8px 24px rgba(36, 86, 216, .10); }
  .wfhalert-intro::before { inset: 0 0 auto; width: auto; height: 4px; }
  .wfhalert-intro h2 { margin-bottom: 7px; font-size: 24px; line-height: 1.08; }
  .wfhalert-intro p { max-width: 34ch; margin-bottom: 0; font-size: 14px; line-height: 1.45; }
  .signup-form { grid-template-columns: 1fr; gap: 10px; max-width: none; margin-top: 0; }
  .signup-form input,
  .signup-form button { width: 100%; height: 48px; }
  .signup-form input { padding: 0 14px; font-size: 16px; }
  .signup-form button { padding: 0 16px; font-size: 15px; }
  .turnstile-wrap,
  .signup-status { grid-column: 1; }
  .job-guide { margin: 48px auto 56px; }
  .guide-heading p { font-size: 16px; }
  .checklist li { min-height: 0; }
  .faq-block,
  .related-block { margin-top: 38px; }
}

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