:root {
  --ink: #1d2733;
  --muted: #5b6774;
  --line: #dde3e9;
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #0f6e5f;
  --accent-dark: #0a5348;
  --sponsor: #fff8e6;
  --sponsor-line: #e6c770;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav a { margin-left: 18px; text-decoration: none; font-weight: 500; }
.site-nav a:first-child { margin-left: 0; }

.intro { padding: 28px 0 8px; }
.intro h1 { margin: 0 0 6px; font-size: 1.7rem; }
.intro p { margin: 0; color: var(--muted); max-width: 680px; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; padding: 20px 0 40px; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }

/* Filters */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; margin-bottom: 14px; }
.filters label { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--muted); gap: 4px; }
.filters select, .filters input[type="search"] { font: inherit; color: var(--ink); padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; min-width: 160px; }
.filters .check { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); padding-bottom: 8px; }
.filters button { font: inherit; background: none; border: none; color: var(--accent); cursor: pointer; padding: 0 0 8px; text-decoration: underline; }

.result-count { font-size: 0.9rem; color: var(--muted); margin: 0 0 10px; }

/* Job cards */
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.job h3 { margin: 0 0 2px; font-size: 1.08rem; }
.job .employer { font-weight: 600; margin: 0; }
.job .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.tag { font-size: 0.78rem; background: #eef2f5; color: var(--ink); border-radius: 999px; padding: 2px 10px; }
.tag.salary { background: #e3f3ee; }
.job .summary { margin: 6px 0 10px; }
.job .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.85rem; color: var(--muted); }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 6px; font-weight: 600; font-size: 0.92rem; border: none; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent-dark); color: #fff; }

/* Sponsored and featured */
.sponsored { background: var(--sponsor); border: 1px solid var(--sponsor-line); }
.sponsored-label { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7a5a00; background: #fde9a8; border-radius: 4px; padding: 1px 8px; margin-bottom: 6px; }
.featured-block { margin-bottom: 14px; }
.featured-block .job-list { gap: 10px; }

/* Sidebar */
.sidebar { display: grid; gap: 16px; align-content: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel h2 { font-size: 1rem; margin: 0 0 6px; }
.panel p { margin: 0 0 10px; font-size: 0.92rem; color: var(--muted); }

/* Forms */
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.form-row .hint { font-size: 0.82rem; color: var(--muted); }
input[type="email"], input[type="text"], input[type="url"], input[type="date"], select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.inline-check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; font-size: 0.92rem; }
.inline-check input { margin-top: 4px; }
.form-note { font-size: 0.88rem; padding: 10px 12px; border-radius: 6px; background: #eef2f5; margin-top: 10px; }
.form-note[hidden] { display: none; }
.hp { position: absolute; left: -5000px; }

.page { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0 40px; }
.page h1 { margin-top: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 24px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.plan h3 { margin: 0 0 4px; }
.plan ul { margin: 6px 0 0; padding-left: 18px; }

.empty, .notice { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); }
.notice code { background: #eef2f5; padding: 1px 5px; border-radius: 4px; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); font-size: 0.86rem; color: var(--muted); }
.site-footer .wrap { padding-top: 18px; padding-bottom: 24px; }
.site-footer p { margin: 0 0 6px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
