/* =================================================================
   Lexnomik Jobs — Design tokens
   Palette:  #0F1E3C (deep navy / ink), #14295A (navy-2), #B08D57 (brass/gold),
             #F7F5F1 (paper), #1A1A1A (charcoal text), #5A6478 (slate/secondary)
   Type:     'Playfair Display' (display serif — legal gravitas),
             'Inter' (body sans), 'IBM Plex Mono' (docket numbers / meta)
   Signature: job postings styled as case-docket entries — each card carries
             a docket number (LXJ-2026-0001) the way a court filing would.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ink: #0F1E3C;
  --ink-2: #14295A;
  --brass: #B08D57;
  --brass-light: #D9BE8F;
  --paper: #F7F5F1;
  --paper-2: #EFEBE2;
  --charcoal: #1A1A1A;
  --slate: #5A6478;
  --line: #DCD6C8;
  --success: #2E6E4E;
  --danger: #A8382D;
  --radius: 3px;
  --shadow: 0 1px 3px rgba(15,30,60,0.08), 0 8px 24px rgba(15,30,60,0.06);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--brass);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--serif); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.01em;
  color: var(--paper);
}
.brand-mark span { color: var(--brass-light); }
.brand-tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-light); opacity: 0.85;
}
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--paper); opacity: 0.85;
  transition: opacity 0.15s;
}
.site-header nav a:hover { opacity: 1; color: var(--brass-light); }
.btn-home {
  border: 1px solid var(--brass); padding: 8px 16px; border-radius: var(--radius);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.btn-home:hover { background: var(--brass); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(176,141,87,0.06) 0 1px, transparent 1px 120px);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-light); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 0 0 12px; max-width: 20ch;
}
.hero p { color: #C7CEDD; max-width: 52ch; font-size: 1.05rem; margin: 0 0 28px; }

/* Search / filter bar */
.filter-bar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px; display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px;
}
.filter-bar input, .filter-bar select {
  font-family: var(--sans); font-size: 0.92rem; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--charcoal);
}
.filter-bar button {
  background: var(--ink); color: var(--paper); border: none; border-radius: var(--radius);
  padding: 11px 22px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.15s;
}
.filter-bar button:hover { background: var(--ink-2); }

/* ---------- Listing ---------- */
.listing-section { padding: 48px 0 80px; }
.listing-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.listing-meta h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.listing-meta .count { font-family: var(--mono); font-size: 0.78rem; color: var(--slate); }

.job-card {
  display: block; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.docket {
  font-family: var(--mono); font-size: 0.72rem; color: var(--brass);
  letter-spacing: 0.04em; margin-bottom: 6px; display: block;
}
.job-card h3 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 4px; color: var(--ink); }
.job-org { color: var(--slate); font-size: 0.92rem; margin: 0 0 12px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.tag {
  font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; background: var(--paper-2);
  color: var(--ink-2); font-weight: 500; white-space: nowrap;
}
.tag.featured { background: var(--brass); color: var(--ink); font-weight: 700; }
.job-meta-row { font-size: 0.82rem; color: var(--slate); margin-top: 10px; }
.job-card .salary { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 0.85rem; text-align: right; white-space: nowrap; }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--slate);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state h3 { font-family: var(--serif); color: var(--ink); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.85rem; font-family: var(--mono);
}
.pagination a:hover { border-color: var(--brass); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Job detail ---------- */
.job-detail { padding: 48px 0 80px; }
.breadcrumb { font-size: 0.82rem; color: var(--slate); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--brass); }
.job-detail-header {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brass);
  border-radius: var(--radius); padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.job-detail-header h1 { font-family: var(--serif); font-size: 1.9rem; margin: 8px 0 6px; color: var(--ink); }
.job-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.job-body h2 {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin: 28px 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.job-body h2:first-child { margin-top: 0; }
.job-body p, .job-body li { color: #2b2b2b; }
.job-body ul { padding-left: 20px; }

.sidebar-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.sidebar-card dl { margin: 0; }
.sidebar-card dt { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-top: 14px; }
.sidebar-card dt:first-child { margin-top: 0; }
.sidebar-card dd { margin: 3px 0 0; font-weight: 600; color: var(--ink); }
.apply-btn {
  display: block; text-align: center; background: var(--brass); color: var(--ink);
  font-weight: 700; padding: 13px; border-radius: var(--radius); margin-top: 20px;
  transition: background 0.15s;
}
.apply-btn:hover { background: var(--brass-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C0D1; padding: 40px 0; margin-top: auto; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.site-footer p { margin: 0; font-size: 0.85rem; }
.site-footer a { color: var(--brass-light); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar button { grid-column: span 2; }
  .job-detail-grid { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
}
@media (max-width: 560px) {
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar button { grid-column: span 1; }
  .job-card-top { flex-direction: column; }
  .job-card .salary { text-align: left; }
}

/* ---------- Admin (shared base, extended in admin.css) ---------- */
.admin-body { background: var(--paper-2); min-height: 100vh; }
