:root {
  --bg: #070a0e;
  --bg-elevated: #0e141b;
  --bg-card: #121820;
  --line: rgba(0, 255, 163, 0.12);
  --line-strong: rgba(0, 255, 163, 0.28);
  --text: #d7e0ea;
  --muted: #8090a2;
  --brand: #00ffa3;
  --brand-dim: rgba(0, 255, 163, 0.12);
  --ink: #04140f;
  --danger: #ff6b7a;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(0, 255, 163, 0.12), transparent 60%),
    linear-gradient(180deg, #070a0e 0%, #0a1016 100%);
}

.shell {
  width: min(1080px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #000;
  object-fit: cover;
}
.brand-name {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.live-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero { padding: 1.25rem 0 0.5rem; }
.hero h1, h1 {
  margin: 0;
  font-weight: 650;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f3f7fb;
}
.hero-copy, .crumb {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.crumb a { color: var(--brand); text-decoration: none; }
.hero-actions, .job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.btn, .apply-btn, .share-btn, .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary, .apply-btn {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}
.btn-ghost, .share-btn, .filter-btn {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.share-btn { color: #9ec4ff; border-color: rgba(88, 166, 255, 0.35); }

.controls {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 0.7rem;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 20, 27, 0.94);
  backdrop-filter: blur(10px);
}
.search-wrap { position: relative; }
#search, .field {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f14;
  color: #fff;
  padding: 0.85rem 0.9rem;
  font: inherit;
  min-height: var(--tap);
}
#search:focus, .field:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

#location-filters, .chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#location-filters::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 500;
}
.filter-btn.active {
  color: var(--brand);
  border-color: var(--line-strong);
  background: var(--brand-dim);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

#job-feed { display: grid; gap: 0.7rem; min-height: 40vh; }
.job-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.job-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.job-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.3;
}
.job-title a { color: inherit; text-decoration: none; }
.source-chip, .badge {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid rgba(128, 144, 162, 0.35);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  text-transform: uppercase;
}
.badge.new { color: var(--brand); border-color: var(--line-strong); }
.badge.stale { color: #ffd39a; }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.job-meta .company { color: #e8eef5; font-weight: 600; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.tag-list li {
  font-size: 0.72rem;
  color: #9fb0c2;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}
.job-blurb {
  margin: 0.55rem 0 0;
  color: #93a4b6;
  font-size: 0.9rem;
}
.job-actions { margin-top: 0; }
.sticky-cta {
  position: sticky;
  bottom: 0.75rem;
  margin-top: 1rem;
}
.apply-btn, .share-btn { min-width: 7.5rem; }

.empty-state, .error-state {
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.error-state { color: var(--danger); }

.about, #latest-openings { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.about h2, .about h3, h2 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.15rem;
  color: #fff;
}
.about p, footer, .about li { color: var(--muted); }
.about a, footer a { color: var(--brand); text-decoration: none; }
.alert-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.alert-form .row { display: grid; gap: 0.55rem; }
@media (min-width: 720px) {
  .alert-form .row { grid-template-columns: 1fr 1fr; }
  .job-card { grid-template-columns: 1fr auto; align-items: start; }
  .apply-btn { width: auto; }
}

.facts {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 0;
}
.facts div { display: grid; gap: 0.15rem; }
.facts dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }
.facts dd { margin: 0; }
table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.plain th, table.plain td {
  text-align: left;
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid var(--line);
}

footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-links a { color: #9fb0c2; }

@media (min-width: 760px) {
  #location-filters, .chip-row { flex-wrap: wrap; overflow: visible; }
  footer ul { flex-direction: row; justify-content: space-between; }
  .apply-btn { width: auto; }
}

@media (max-width: 759px) {
  .apply-btn { width: 100%; }
  .job-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
