:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1a1d23;
  --muted: #5c6570;
  --border: #dde1e6;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.04);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-head h1 {
  margin: 0;
  font-size: 1.6rem;
}

.meta,
.muted {
  color: var(--muted);
}

.banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.banner-empty p:first-child {
  margin-top: 0;
  font-weight: 600;
}

.banner-error {
  background: var(--danger-bg);
  border-color: #fecaca;
  color: var(--danger-text);
}

.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.job-card-link {
  display: block;
  padding: 1rem 1.15rem;
  color: inherit;
  text-decoration: none;
}

.job-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.job-company {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.job-meta,
.job-dates {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.job-meta .provider {
  text-transform: lowercase;
  background: var(--accent-soft);
  color: #1d4ed8;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.back {
  margin: 0 0 1rem;
}

.job-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.job-detail h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem 1rem;
  margin: 1.25rem 0;
}

.facts div {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.facts dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.actions {
  margin: 1rem 0 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.description h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.description-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border);
}

code {
  font-size: 0.9em;
  background: #eef1f5;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-detail {
    padding: 1.1rem;
  }
}
