/* ============================================================
   Job board
   Destination: public_html/assets/jobs.css

   Loaded only on /jobs/ and /job/, not sitewide - no reason to make
   every news reader download it.

   Uses the variables already declared in site.css. Same palette, same
   fonts: the board should read as part of the paper, not a bolted-on
   third-party widget.
   ============================================================ */

/* ------------------------------------------------------------
   Search bar
   ------------------------------------------------------------ */

.job-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.job-search input[type="search"] {
  flex: 1 1 260px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  background: #fff;
}
.job-search select {
  flex: 0 1 190px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14.5px;
  background: #fff;
}
.job-search input:focus, .job-search select:focus {
  outline: none;
  border-color: var(--accent);
}
.job-search button {
  padding: 12px 26px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.job-search button:hover { background: var(--accent); }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

.job-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 36px;
  align-items: start;
}

.job-single .job-layout { grid-template-columns: 1fr 300px; }

/* ------------------------------------------------------------
   Filter rail
   ------------------------------------------------------------ */

.job-clear {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--breaking);
  margin-bottom: 18px;
}
.job-clear:hover { text-decoration: underline; }

.job-filter-group { margin-bottom: 26px; }

.job-filter-group h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.job-filter-group ul { list-style: none; margin: 0; padding: 0; }
.job-filter-group li { margin-bottom: 2px; }

.job-filter-group a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.35;
}
.job-filter-group a:hover { background: var(--surface); color: var(--accent); }
.job-filter-group a.is-on {
  background: var(--accent-bg);
  color: var(--accent-dk);
  font-weight: 600;
}
.job-filter-group a span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  flex: 0 0 auto;
}
.job-filter-group a.is-on span { color: var(--accent-dk); }

.job-none { font-size: 13px; color: var(--muted-2); padding: 6px 8px; }

/* ------------------------------------------------------------
   Results
   ------------------------------------------------------------ */

.job-resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.job-sort { display: flex; gap: 14px; }
.job-sort a { color: var(--muted); }
.job-sort a.is-on { color: var(--accent); font-weight: 600; }
.job-sort a:hover { color: var(--ink); }

.job-card {
  position: relative;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.job-card.is-featured {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  background: linear-gradient(90deg, var(--accent-bg), transparent 60%);
}

.job-flag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 6px;
}

.job-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.012em;
  margin: 0 0 3px;
}
.job-title a:hover { color: var(--accent); }

.job-company { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 9px; }
.job-company-lg { font-size: 17px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }

/* Fact chips */
.job-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }

.job-fact {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: var(--surface);
}
.job-fact.job-where  { border-color: #d5dde4; color: var(--ink-2); }
.job-fact.job-salary { border-color: #bfe3d0; background: var(--accent-bg); color: var(--accent-dk); }

.job-summary { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0 0 10px; }

.job-foot {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.job-closing { color: var(--muted); }
.job-closing.is-soon { color: var(--breaking); font-weight: 600; }

/* ------------------------------------------------------------
   Single job
   ------------------------------------------------------------ */

.job-single { padding-top: 30px; }

.job-head { padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.job-head h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.job-body { font-size: 16.5px; line-height: 1.7; color: #22282f; }
.job-body p  { margin: 0 0 18px; }
.job-body h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 12px;
}
.job-body ul, .job-body ol { margin: 0 0 18px; padding-left: 22px; }
.job-body li { margin-bottom: 7px; }
.job-body a  { color: var(--accent); text-decoration: underline; }

.job-expired {
  padding: 14px 18px;
  background: var(--breaking-bg);
  border: 1px solid #f0c2c2;
  border-radius: var(--radius);
  color: #8f2020;
  font-size: 14px;
  margin-bottom: 22px;
}
.job-expired a { text-decoration: underline; }

/* Apply block */
.job-apply-block {
  margin-top: 34px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.job-apply-block h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.job-apply-note { font-size: 14.5px; margin: 0 0 16px; color: var(--ink-2); }

.job-apply-btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
}
.job-apply-btn:hover { background: var(--accent-dk); }
.job-apply-sm { display: block; text-align: center; margin-top: 16px; padding: 11px; font-size: 14px; }

.job-apply-to { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* The scam warning. Job boards attract advance-fee fraud, and the
   people most likely to be targeted are the ones who most need the
   work. This stays visible on every listing. */
.job-warning {
  margin: 20px 0 0;
  padding: 13px 15px;
  background: #fdf3e7;
  border: 1px solid #f0d9b5;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.55;
  color: #8a5a08;
}

/* Rail */
.job-rail { position: sticky; top: 20px; }

.job-rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.job-rail-card h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.job-rail-card dl { margin: 0; }
.job-rail-card dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 12px;
}
.job-rail-card dt:first-child { margin-top: 0; }
.job-rail-card dd { margin: 3px 0 0; font-size: 14px; font-weight: 500; }
.job-rail-card dd.is-soon { color: var(--breaking); font-weight: 700; }

.job-similar { list-style: none; margin: 0; padding: 0; }
.job-similar li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.job-similar li:last-child { border-bottom: 0; }
.job-similar a { font-size: 14px; font-weight: 600; line-height: 1.35; display: block; }
.job-similar a:hover { color: var(--accent); }
.job-similar span { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .job-layout, .job-single .job-layout { grid-template-columns: 1fr; gap: 26px; }

  /* Filters move below the results on a phone: someone who arrived
     from Google wants the job, not the filter rail. */
  .job-filters { order: 2; }
  .job-results { order: 1; }
  .job-rail { position: static; }

  .job-filter-group ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .job-filter-group li { margin: 0; }
  .job-filter-group a {
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .job-search input[type="search"],
  .job-search select,
  .job-search button { flex: 1 1 100%; }
  .job-search input[type="search"] { font-size: 16px; }

  .job-title { font-size: 18px; }
  .job-summary { font-size: 14px; }
  .job-apply-btn { display: block; text-align: center; }
}

/* ------------------------------------------------------------
   Ad slots on the board

   .ad-slot itself is styled in site.css. These only adjust spacing so
   an ad sits as a clear break in the list rather than looking like
   another job card - a listing-shaped ad on a job board is exactly
   the kind of ambiguity that wastes a job seeker's click.
   ------------------------------------------------------------ */

.job-results .ad-slot { margin: 8px 0 20px; }
.job-single  .ad-slot { margin: 26px 0; }

/* The bottom slot follows the apply block, which already has a border.
   Drop the doubled-up line. */
.job-apply-block + .ad-slot { border-top: 0; margin-top: 22px; }