:root {
  --bg: #f4efe7;
  --card: #fffaf3;
  --ink: #1d1a17;
  --muted: #655b50;
  --accent: #b34b28;
  --button: #f59d23;
  --line: #dbcdbd;
  --shadow: 0 18px 40px rgba(42, 27, 14, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(179, 75, 40, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f1e6 0%, var(--bg) 100%);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.86);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
}

.lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--muted);
}

.controls {
  margin: 24px 0 18px;
}

.stats-section {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.diagnostics-section {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.stats-section h2,
.diagnostics-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.search-box {
  display: block;
}

.search-box span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.9);
  font: inherit;
  font-size: 16px;
}

.status {
  margin-bottom: 16px;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  gap: 12px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.stat-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.stat-card strong {
  font-size: 26px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.jobs-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.jobs-table th,
.stats-table th {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.jobs-table td,
.stats-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.jobs-table tbody tr:hover {
  background: rgba(179, 75, 40, 0.06);
}

.stats-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
}

.title {
  min-width: 320px;
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.title-link {
  color: inherit;
  text-decoration: none;
}

.title-link:hover {
  text-decoration: underline;
}

.city {
  min-width: 220px;
  line-height: 1.35;
}

.source,
.company,
.region,
.date {
  font-size: 14px;
  line-height: 1.35;
}

.jobs-table td:first-child,
.jobs-table th:first-child {
  width: 38%;
}

.jobs-table td:nth-child(2),
.jobs-table th:nth-child(2) {
  width: 16%;
}

.jobs-table td:nth-child(3),
.jobs-table th:nth-child(3) {
  width: 16%;
}

.jobs-table td:nth-child(4),
.jobs-table th:nth-child(4) {
  width: 12%;
}

.jobs-table td:nth-child(5),
.jobs-table th:nth-child(5) {
  width: 10%;
}

.jobs-table td:nth-child(6),
.jobs-table th:nth-child(6) {
  width: 8%;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero {
    padding: 18px;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .diagnostics-section {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: 15px;
  }
}
