:root {
  --ink: #16202e;
  --ink-2: #4a5566;
  --ink-3: #6b7585;
  --line: #e2e5ea;
  --bg: #f6f7f9;
  --card: #ffffff;
  --navy: #0f2a44;
  --accent: #c8701e;
  --accent-ink: #9a520f;
  --land: #2f6b4f;
  --land-bg: #e6f2ec;
  --acct: #2b5797;
  --acct-bg: #e7eef9;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { background: var(--navy); color: #fff; padding: 0 0 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 16px; }
.nav-links { display: flex; gap: 18px; font-size: 14px; }
.nav-links a { color: #cdd6e1; text-decoration: none; }
.brand:hover, .nav-links a:hover { color: #f0b27a; }
.eyebrow { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #f0b27a; font-weight: 600; }
h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; }
.lede { margin: 0; max-width: 680px; color: #cdd6e1; font-size: 16px; }
.meta { margin: 16px 0 0; font-size: 13px; color: #9fb0c3; }

/* Filters */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-top: -18px; position: relative; box-shadow: 0 2px 10px rgba(15,42,68,.06); }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid #cfd4db; border-radius: 8px; }
.search input:focus, select:focus, .chip:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.chip { font: inherit; font-size: 14px; padding: 6px 16px; border-radius: 999px; border: 1px solid #cfd4db; background: #fff; color: var(--ink-2); cursor: pointer; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.selects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.selects label { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; color: var(--ink-3); gap: 4px; }
select { font: inherit; font-size: 14px; padding: 8px; border: 1px solid #cfd4db; border-radius: 8px; background: #fff; color: var(--ink); }

/* Results */
.result-count { margin: 20px 2px 10px; font-size: 14px; color: var(--ink-3); }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.job:hover { border-color: #c4cad3; }
.job h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.job h3 a { color: var(--ink); text-decoration: none; }
.job h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.job .line { grid-column: 1; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.job .company { font-weight: 600; color: var(--ink); }
.job .side { grid-column: 2; grid-row: 1 / span 3; text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.tags { grid-column: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #eef0f3; color: var(--ink-2); }
.tag.land { background: var(--land-bg); color: var(--land); }
.tag.acct { background: var(--acct-bg); color: var(--acct); }
.tag.new { background: #fdf0e3; color: var(--accent-ink); }
.posted { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.apply { display: inline-block; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; white-space: nowrap; }
.apply:hover { background: var(--accent-ink); }
.empty { text-align: center; padding: 40px 20px; background: var(--card); border: 1px dashed #cfd4db; border-radius: var(--radius); color: var(--ink-2); }
.empty button, .error button { font: inherit; margin-top: 6px; padding: 8px 16px; border-radius: 8px; border: 1px solid #cfd4db; background: #fff; cursor: pointer; }

/* About */
.about { margin: 44px 0 0; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; }
.about h2 { font-size: 20px; margin: 0 0 10px; }
.about p { margin: 0 0 12px; color: var(--ink-2); max-width: 720px; }
.about .signoff { margin: 16px 0 0; font-weight: 600; color: var(--ink); }
.about a, .site-footer a { color: var(--accent-ink); }

/* Sources */
.sources { margin: 44px 0 20px; }
.sources h2 { font-size: 18px; margin: 0 0 4px; }
.sources > p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
#sources { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
#sources li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
#sources a { color: var(--ink); text-decoration: none; font-weight: 600; }
#sources a:hover { text-decoration: underline; }
#sources .n { color: var(--ink-3); white-space: nowrap; }
#sources .fail { color: #a33; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0 30px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 720px) {
  .selects { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 1fr; }
  .job .side { grid-column: 1; grid-row: auto; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; margin-top: 4px; }
}
