/* ============================================================
   salary.fit/jobs — Lightweight CSS (no framework, no web fonts)
   Mobile-first responsive design
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --warning-bg: #fffbeb;
  --warning-text: #92400e;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; margin-top: 8px; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 14px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Header ---------------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.main-nav { display: none; gap: 22px; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; width: 40px; height: 40px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--text); border-radius: 2px; }

.mobile-nav {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 14px 16px; color: var(--text); border-top: 1px solid var(--border); font-weight: 500;
}
.mobile-nav a:hover { background: var(--bg-alt); text-decoration: none; }

@media (min-width: 860px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs { padding: 12px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }

/* ---------------- Hero ---------------- */
.hero { padding: 40px 0 32px; text-align: center; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero h1 { font-size: 1.9rem; max-width: 640px; margin: 0 auto 10px; }
.hero-sub { color: var(--text-muted); max-width: 520px; margin: 0 auto 24px; }

.search-form {
  display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto;
}
.search-form input {
  padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: inherit;
}
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search-form button {
  padding: 13px 20px; background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.search-form button:hover { background: var(--accent-dark); }

@media (min-width: 640px) {
  .search-form { flex-direction: row; }
  .search-form input { flex: 1; }
}

.search-form-page { margin: 0 0 28px; max-width: none; }

/* ---------------- Sections ---------------- */
.section { padding: 36px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px;
}
.see-all { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.listing-sub { color: var(--text-muted); margin-bottom: 20px; }

/* ---------------- Job Grid & Cards ---------------- */
.job-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .job-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .job-grid { grid-template-columns: 1fr 1fr 1fr; } }

.job-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  transition: box-shadow 0.15s, transform 0.15s;
}
.job-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.job-card-link {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; color: inherit; text-decoration: none;
  position: relative;
}
.job-card-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.job-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.job-card-body { flex: 1; min-width: 0; }
.job-card-title { font-size: 1rem; margin: 0 0 3px; color: var(--text); }
.job-card-company { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 8px; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job-card-time { position: absolute; top: 14px; right: 14px; font-size: 0.75rem; color: var(--text-muted); }

.badge {
  font-size: 0.75rem; padding: 3px 9px; border-radius: 100px; font-weight: 500;
  background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border);
}
.badge-location { background: #eff6ff; color: #1e40af; border-color: #dbeafe; }
.badge-type { background: #f5f3ff; color: #6d28d9; border-color: #ede9fe; }
.badge-salary { background: #f0fdf4; color: #15803d; border-color: #dcfce7; }

/* ---------------- Pills (categories/states) ---------------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 9px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.88rem; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 6px;
}
.pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pill-count { color: var(--text-muted); font-size: 0.8rem; }

/* ---------------- Job Detail Page ---------------- */
.job-detail { padding: 28px 0 48px; max-width: 780px; }
.job-detail-head { display: flex; gap: 16px; margin-bottom: 20px; }
.job-detail-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.job-detail-company { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 10px; }
.job-detail-dates { color: var(--text-muted); font-size: 0.85rem; margin: 10px 0 0; }
.job-detail-body { margin: 28px 0; }
.job-detail-body h2, .job-detail-body h3 { margin-top: 22px; }
.job-detail-body ul, .job-detail-body ol { padding-left: 22px; }
.job-detail-source { font-size: 0.85rem; color: var(--text-muted); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

.job-detail-video { margin: 24px 0; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: #000; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-weight: 600;
  font-size: 1rem; cursor: pointer; text-align: center; border: none;
}
.btn-apply { background: var(--accent); color: #fff; margin: 20px 0; }
.btn-apply:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); margin: 20px 8px 20px 0; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------------- Notices ---------------- */
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; }
.notice-warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid #fde68a; }
.notice-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.notice-error { background: var(--error-bg); color: #991b1b; border: 1px solid #fecaca; }
.notice-error ul { margin: 0; padding-left: 20px; }

/* ---------------- Content pages (about/legal) ---------------- */
.content-page { max-width: 740px; padding-top: 28px; padding-bottom: 48px; }
.content-page h2 { margin-top: 26px; }

/* ---------------- Contact Form ---------------- */
.contact-form { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.contact-form button { margin-top: 16px; align-self: flex-start; }
.form-honeypot { position: absolute; left: -9999px; top: -9999px; }
.contact-alt { margin-top: 24px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 32px 0; }
.pagination a { font-weight: 600; }
.pagination-status { color: var(--text-muted); font-size: 0.9rem; }

/* ---------------- Error Pages ---------------- */
.error-page { text-align: center; padding: 60px 0; max-width: 480px; }
.error-page h1 { font-size: 3.5rem; color: var(--border); margin-bottom: 4px; }
.error-lead { font-size: 1.2rem; font-weight: 600; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

.empty-state { color: var(--text-muted); padding: 30px 0; text-align: center; grid-column: 1 / -1; }

/* ---------------- Ad Slots ---------------- */
.ad-slot { margin: 24px auto; text-align: center; overflow: hidden; }
.ad-slot-homepage { max-width: 1100px; }
.ad-slot-listing { margin: 20px 0; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
.footer-logo { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin-bottom: 10px; }
.footer-col a { display: block; padding: 4px 0; color: var(--text); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; font-size: 0.8rem; color: var(--text-muted); }

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------------- Install Prompt Banner ---------------- */
.install-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--text); color: #fff;
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; z-index: 200; box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.install-banner p { margin: 0; font-size: 0.9rem; }
.install-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.install-banner button {
  padding: 8px 16px; border-radius: 8px; border: none; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.install-btn-accept { background: var(--accent); color: #fff; }
.install-btn-dismiss { background: transparent; color: #cbd5e1; }
.job-card-title { min-width: 0; overflow-wrap: anywhere; }
.job-card-header { gap: 8px; min-width: 0; } .job-card-link { gap: 12px; } .job-card-body { min-width: 0; flex: 1; } .job-card-time { flex-shrink: 0; white-space: nowrap; }.job-card-link{display:flex!important;align-items:flex-start;gap:12px}.job-card-body{min-width:0;flex:1 1 auto}.job-card-time{flex:0 0 auto;margin-left:8px;white-space:nowrap}