/* Vercel Geist Design System Color Variables */
:root {
  --background: #ffffff;
  --foreground: #000000;
  --accent-1: #fafafa;
  --accent-2: #eaeaea;
  --accent-3: #999999;
  --accent-4: #888888;
  --accent-5: #666666;
  --accent-6: #444444;
  --accent-7: #333333;
  --accent-8: #111111;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', sans-serif;
  line-height: 1.7;
  color: var(--accent-5);
  background: var(--background);
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(234, 234, 234, 0.5);
  padding: 14px 0;
  margin-bottom: 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
}

header h1 {
  font-size: 20px;
  margin-bottom: 0;
  font-weight: 600;
  flex-shrink: 0;
}

header h1 a {
  color: var(--accent-8);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

header h1 a:hover {
  opacity: 0.7;
}

header .tagline {
  font-size: 13px;
  color: var(--accent-4);
  margin: 0;
  text-align: right;
  flex-shrink: 0;
}

main {
  min-height: calc(100vh - 200px);
  padding-top: 32px;
}

footer {
  background: var(--background);
  border-top: 1px solid var(--accent-2);
  padding: 24px 0;
  margin-top: 60px;
  text-align: center;
  color: var(--accent-5);
  font-size: 13px;
}

.intro {
  background: var(--accent-1);
  padding: 18px;
  border-radius: 4px;
  margin-top: 20px;
  margin-bottom: 32px;
  border: 1px solid var(--accent-2);
}

.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.filters {
  background: var(--background);
  padding: 24px;
  border-radius: 4px;
  border: 1px solid var(--accent-2);
  height: fit-content;
  position: sticky;
  top: 74px;
}

.filters h2 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--accent-8);
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent-8);
}

.filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--accent-2);
  border-radius: 4px;
  font-size: 14px;
  background: var(--background);
  color: var(--accent-8);
}

.filters button,
.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}

.filters button {
  background: var(--foreground);
  color: var(--background);
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--foreground);
  color: var(--background);
  width: 100%;
  border: 1px solid transparent;
}

.filters button:hover,
.btn-primary:hover {
  background: var(--accent-7);
}

.btn-secondary {
  background: var(--background);
  color: var(--accent-8);
  width: 100%;
  border: 1px solid var(--accent-2);
}

.btn-secondary:hover {
  background: var(--accent-1);
}

.jobs h2 {
  font-size: 20px;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--accent-8);
}

.no-results {
  color: var(--accent-5);
  font-style: italic;
}

.job-list {
  display: grid;
  gap: 16px;
}

.job-card {
  position: relative;
  background: var(--background);
  padding: 24px;
  padding-right: 100px;
  border-radius: 4px;
  border: 1px solid var(--accent-2);
  transition: border-color 0.15s ease;
}

.job-card:hover {
  border-color: var(--accent-3);
}

.job-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.job-card h3 a {
  color: var(--accent-8);
  text-decoration: none;
}

.job-card h3 a:hover {
  text-decoration: underline;
}

.job-card .company {
  font-weight: 600;
  color: var(--accent-6);
  margin-bottom: 6px;
}

.job-card .location {
  font-size: 14px;
  color: var(--accent-4);
  margin-bottom: 12px;
}

.job-card .posted-date {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 12px;
  color: var(--accent-4);
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-1);
  color: var(--accent-6);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--accent-8);
  transition: background 0.15s ease;
}

.pagination a:hover {
  background: var(--accent-1);
}

.pagination span:not(:nth-child(2)) {
  color: var(--accent-3);
}

.job-detail {
  background: var(--background);
  padding: 32px;
  border-radius: 4px;
  border: 1px solid var(--accent-2);
  margin-top: 22px;
}

.job-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--accent-2);
  padding-bottom: 24px;
  padding-right: 120px;
  margin-bottom: 32px;
}

.job-header h1 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--accent-8);
}

.job-header .company {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-6);
  margin-bottom: 8px;
}

.job-header .location,
.job-header .employment-type {
  font-size: 14px;
  color: var(--accent-4);
}

.job-header .posted-date {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 13px;
  color: var(--accent-4);
  margin: 0;
}

.genops-panel {
  background: var(--accent-1);
  border: 1px solid var(--accent-2);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 32px;
}

.genops-panel h2 {
  font-size: 20px;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--accent-8);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--background);
  border-radius: 4px;
  border: 1px solid var(--accent-2);
}

.profile-item .label {
  font-size: 14px;
  color: var(--accent-5);
  font-weight: 500;
}

.profile-item .value {
  font-size: 14px;
  font-weight: 600;
}

.profile-item .value.yes {
  color: var(--accent-8);
}

.profile-item .value.no {
  color: var(--accent-3);
}

.rationale {
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent-5);
  padding: 16px;
  background: var(--background);
  border-radius: 4px;
  border: 1px solid var(--accent-2);
}

.job-description {
  margin-bottom: 32px;
}

.job-description > h2 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--accent-8);
}

.job-description pre {
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.7;
  color: var(--accent-5);
}

/* Greenhouse job description content styling */
.job-description p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--accent-5);
}

.job-description h3,
.job-description h4,
.job-description strong {
  font-weight: 600;
  color: var(--accent-8);
}

.job-description h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 14px;
}

.job-description h4 {
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.job-description ul,
.job-description ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--accent-5);
}

.job-description li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.job-description li ul,
.job-description li ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.job-description a {
  color: var(--accent-8);
  text-decoration: underline;
}

.job-description a:hover {
  color: var(--accent-7);
}

.job-description div {
  margin-bottom: 12px;
}

.job-description .content-intro,
.job-description .content-conclusion {
  margin-bottom: 24px;
}

.job-actions {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--accent-2);
}

.job-actions .btn-primary,
.job-actions .btn-secondary {
  flex: 1;
  width: auto;
  box-sizing: border-box;
  height: 44px;
}

@media (max-width: 768px) {
  header {
    padding: 12px 0;
  }

  header h1 {
    font-size: 18px;
  }

  header .container {
    height: 24px;
  }

  header .tagline {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .job-actions {
    flex-direction: column;
  }

  .job-card {
    padding-right: 24px;
  }

  .job-card .posted-date {
    position: static;
    margin-top: 12px;
    margin-bottom: 12px;
    text-align: right;
    font-size: 12px;
  }

  .job-header {
    padding-right: 0;
  }

  .job-header .posted-date {
    position: static;
    margin-top: 12px;
    text-align: right;
    font-size: 13px;
  }
}
