:root {
  --bg: #f6fbff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(8, 47, 102, 0.12);
  --text: #0b2343;
  --muted: #5a6b81;
  --blue-700: #0b3f7f;
  --blue-500: #1f65b7;
  --green-600: #0d8a4d;
  --green-500: #18a05d;
  --shadow: 0 24px 60px rgba(9, 45, 92, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 101, 183, 0.12), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(24, 160, 93, 0.12), transparent 24rem),
    linear-gradient(180deg, #fbfeff 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.hero-shell,
.site-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-disclosure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(180, 110, 0, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 247, 230, 0.94);
  color: #7a4a00;
  box-shadow: 0 14px 32px rgba(122, 74, 0, 0.08);
  text-align: center;
}

.site-disclosure strong {
  font-weight: 800;
}

.page-home {
  overflow-x: hidden;
}

.page-home .hero-shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
}

.hero-shell {
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 28px;
  position: relative;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(31, 101, 183, 0.12);
  border-radius: 999px;
  pointer-events: none;
}

.hero-orbit-left {
  width: 28rem;
  height: 28rem;
  left: 50%;
  top: 6.5rem;
  transform: translateX(-37rem);
}

.hero-orbit-right {
  width: 20rem;
  height: 20rem;
  left: 50%;
  bottom: 3rem;
  transform: translateX(27rem);
}

.hero-card,
.search-panel,
.map-panel,
.job-detail,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-card {
  width: min(940px, 100%);
  padding: 32px;
  border-radius: 40px;
  margin-inline: auto;
}

.hero-brand {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 28px;
  align-items: center;
}

.hero-brand-solo {
  grid-template-columns: 1fr;
  justify-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.hero-copy h1,
.section-heading h1,
.job-detail h1,
.contact-panel h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-summary,
.section-heading p,
.contact-panel > p {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-600);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 18px;
  margin-top: 28px;
  border: 1px solid rgba(11, 63, 127, 0.12);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: 0 20px 40px rgba(8, 47, 102, 0.08);
}

.search-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
}

.search-shell input::placeholder {
  color: #7f8fa6;
}

.search-icon {
  width: 22px;
  height: 22px;
  fill: var(--blue-700);
  flex: 0 0 auto;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(11, 63, 127, 0.08);
  color: var(--blue-700);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease;
}

.search-chip:hover {
  transform: translateY(-1px);
  background: rgba(11, 63, 127, 0.14);
}

.search-chip-solid {
  background: linear-gradient(135deg, var(--blue-700), var(--green-600));
  color: #fff;
  border: 0;
  cursor: pointer;
}

.apply-button {
  min-height: 56px;
  padding: 0 24px;
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
}

.hero-stat {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-label {
  color: var(--muted);
}

.hero-links,
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.hero-links {
  margin-top: 26px;
  color: var(--blue-700);
  font-weight: 700;
  align-items: center;
}

.hero-link-contact {
  margin-left: auto;
}

.hero-links a,
.top-nav a,
.text-link {
  position: relative;
}

.hero-links a::after,
.top-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.hero-links a:hover::after,
.top-nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 32px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-lockup-small {
  font-size: 1.4rem;
}

.brand-lockup-logo {
  width: 54px;
  border-radius: 16px;
}

.content-stack {
  display: grid;
  gap: 28px;
}

.search-panel,
.map-panel,
.contact-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.search-shell-wide {
  margin-top: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.filter-field {
  display: grid;
  gap: 8px;
  min-width: 220px;
  color: var(--muted);
  font-weight: 600;
}

.filter-field select {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(11, 63, 127, 0.14);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

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

.contact-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(11, 63, 127, 0.14);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 14px 16px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(31, 101, 183, 0.42);
  box-shadow: 0 0 0 4px rgba(31, 101, 183, 0.1);
}

.contact-status {
  margin: 0;
  min-height: 24px;
  color: var(--muted);
  font-weight: 600;
}

.contact-status-success {
  color: var(--green-600);
}

.contact-status-error {
  color: #b42318;
}

.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.results-header h1,
.agency-card h2,
.job-card h2,
.detail-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.results-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.results-grid,
.agency-grid {
  display: grid;
  gap: 18px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 600;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.map-legend-dot-blue {
  background: var(--blue-700);
}

.map-legend-dot-green {
  background: var(--green-600);
}

.section-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.job-card,
.agency-card,
.detail-card,
.empty-state,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
}

.job-card,
.agency-card,
.detail-card,
.empty-state,
.callout {
  padding: 22px;
}

.job-card-topline,
.agency-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pill,
.salary-tag,
.job-date {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.pill {
  background: rgba(11, 63, 127, 0.08);
  color: var(--blue-700);
}

.job-date {
  background: rgba(24, 160, 93, 0.08);
  color: var(--green-600);
}

.salary-tag {
  background: rgba(11, 63, 127, 0.08);
}

.job-card h2 a,
.agency-card h2 {
  color: var(--text);
}

.job-card h2 a:hover {
  color: var(--blue-700);
}

.job-meta,
.job-summary,
.agency-card p,
.detail-card p,
.detail-card li {
  color: var(--muted);
  line-height: 1.65;
}

.job-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.agency-card {
  display: block;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.agency-card:hover,
.map-state:hover {
  box-shadow: 0 20px 40px rgba(8, 47, 102, 0.1);
}

.us-map {
  display: grid;
  grid-template-columns: repeat(13, minmax(92px, 1fr));
  grid-auto-rows: minmax(96px, auto);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.map-state {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 96px;
  padding: 14px 12px 30px;
  border-radius: 18px;
  border: 1px solid rgba(11, 63, 127, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.map-state-populated {
  background: linear-gradient(
    135deg,
    rgba(11, 63, 127, 0.12),
    rgba(24, 160, 93, 0.12)
  );
  border-color: rgba(24, 160, 93, 0.26);
}

.map-state-code {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.map-state-metric {
  position: absolute;
  bottom: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.map-state-agencies {
  left: 10px;
  color: var(--blue-700);
}

.map-state-jobs {
  right: 10px;
  color: var(--green-600);
}

.job-detail {
  padding: 28px;
  border-radius: 36px;
}

.job-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 20px;
  margin-top: 24px;
}

.detail-sidebar,
.detail-content {
  display: grid;
  gap: 18px;
}

.detail-card .text-link {
  display: block;
  width: fit-content;
}

.detail-card .text-link + .text-link {
  margin-top: 10px;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  font-weight: 600;
}

.prose p,
.prose li {
  line-height: 1.7;
}

.empty-state {
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.callout {
  margin-top: 22px;
  background: linear-gradient(
    135deg,
    rgba(11, 63, 127, 0.08),
    rgba(24, 160, 93, 0.08)
  );
}

@media (max-width: 980px) {
  .hero-brand,
  .detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    max-width: 260px;
  }

  .page-header,
  .results-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero-shell,
  .site-shell {
    width: min(100vw - 20px, 100%);
  }

  .hero-card,
  .search-panel,
  .map-panel,
  .job-detail,
  .contact-panel {
    padding: 20px;
  }

  .search-shell {
    min-height: auto;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .search-shell input {
    width: 100%;
    order: 2;
  }

  .search-chip {
    min-height: 44px;
  }

  .job-detail-actions {
    width: 100%;
    justify-content: start;
  }

  .hero-meta {
    gap: 18px;
    margin-top: 32px;
  }

  .hero-link-contact {
    margin-left: 0;
  }

  .us-map {
    grid-template-columns: repeat(13, 80px);
  }

  .map-state {
    min-width: 92px;
  }
}
