/* The job board's own styling, kept out of child-theme.min.css.
 *
 * That file is the WordPress theme, vendored unchanged so the port can be compared against the
 * site it replaces. Everything here is new design for pages the theme never had anything to show
 * on, and keeping it separate means a diff of the theme is still a diff of WordPress.
 *
 * The colours are the theme's own: #294864 is its blue, #508abf its lighter one, #efefef the grey
 * the listings sit on. Nothing here introduces a colour the site does not already use.
 */

/* The theme lays the listings out as a 16.66%/83.33% grid with a filter column on the left. The
 * filters are the crawlable /uppdrag/ addresses, which are phase 2, so until they exist the column
 * is empty — and an empty 217px column reads as a mistake rather than as a space being kept. */
.job-listings-wrapper .centering-container.no-filters {
  grid-template-columns: 1fr;
}

.jobs-intro {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 0.5rem;
}

.jobs-intro .jobs-count {
  font-family: "Playfair Display", Garamond, Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 113%;
  color: #294864;
  margin: 0;
}

.jobs-intro .jobs-note {
  font-family: Muli, sans-serif;
  font-size: 1rem;
  color: #4a5a6a;
  margin: 0.25rem 0 0;
}

/* A region heading, so 166 assignments read as a handful of lists rather than one wall. */
.jobs-container .region-heading {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 2px solid #508abf;
  padding-bottom: 0.5rem;
  margin: 1.5rem 0 -0.5rem;
}

.jobs-container .region-heading h2 {
  font-family: "Playfair Display", Garamond, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #294864;
  margin: 0;
}

.jobs-container .region-heading .region-count {
  font-family: Muli, sans-serif;
  font-size: 1rem;
  color: #4a5a6a;
}

/* The answer day is the one fact on a card that expires. A date reads as plenty of time; the day
 * it runs out should not look like the other two lines. */
.job-card .closes-today {
  font-weight: 700;
  color: #b3261e;
}

/* The detail page. The theme's single-job grid starts straight at the title with no banner above
 * it, which on every other page is where the blue block sits. */
.job-header {
  width: 100%;
  background-color: #f4fafc;
  padding: 2.5rem 1.75rem 2rem;
}

.job-header .job-header-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.job-header .back-link {
  font-family: Muli, sans-serif;
  font-size: 1rem;
  color: #294864;
  text-decoration: none;
}

.job-header .back-link:hover {
  text-decoration: underline;
}

.job-header h1 {
  font-family: "Playfair Display", Garamond, Georgia, serif;
  font-size: 2.525rem;
  font-weight: 500;
  line-height: 113%;
  color: #294864;
  margin: 0.75rem 0 0;
}

.job-header .job-where {
  font-family: Muli, sans-serif;
  font-size: 1.125rem;
  color: #4a5a6a;
  margin: 0.5rem 0 0;
}

@media (min-width: 768px) {
  .job-header {
    padding: 3rem 3rem 2.5rem;
  }
}

/* ---------------------------------------------------------------------------
 * Uppdragslistan.
 *
 * Samma typsnitt som menyn, och det är inte Muli. Menyn sätter ingen egen
 * font-family, så den ärver `body` -> `--bs-body-font-family` ->
 * `--bs-font-sans-serif`, Bootstraps systemstack. Den variabeln är vad raden
 * nedan pekar på, så listan och menyn kan inte glida isär: byts den ena byts
 * båda. Inget hämtas, så sidan gör fortfarande noll anrop utanför vår domän.
 *
 * Muli vore fel här oavsett. Temat levererar den som TTF och mappar vikt 400
 * till Muli-Light, som är rund och mjuk och går i gröt under 15 px — alltså
 * precis där en tät lista vill ligga.
 *
 * Ingen fet stil. Hierarkin bärs av färg och plats i raden i stället: mörkblå
 * rubrik, grå datum, ljusgrå svarsdag. Halvfet i 13 px gör raden klumpig,
 * vilket var hela invändningen.
 * ------------------------------------------------------------------------- */

:root {
  --jobb-text: var(--bs-font-sans-serif);
  --jobb-blå: #294864;
  --jobb-grå: #6b7a89;
  --jobb-ljusgrå: #8a97a4;
  --jobb-röd: #b3261e;
}

.jobs-count {
  font-family: var(--jobb-text) !important;
  font-size: 0.8125rem !important;
  color: var(--jobb-grå);
  margin: 0 0 0.5rem;
  padding: 0 !important;
}

.jobs-count .jobs-of {
  color: var(--jobb-ljusgrå);
}

/* Filtren: yrke som knappar, region och ort som fält man skriver i. */
.jobs-filters {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--jobb-text);
}

.jobs-filters .filter-yrke {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.jobs-filters .filter-pill {
  font-family: var(--jobb-text);
  font-size: 0.75rem;
  color: var(--jobb-blå);
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 50px;
  padding: 0.15rem 0.65rem;
  text-decoration: none;
  white-space: nowrap;
}

.jobs-filters .filter-pill:hover {
  border-color: #508abf;
}

.jobs-filters .filter-pill.on {
  background: var(--jobb-blå);
  border-color: var(--jobb-blå);
  color: #fff;
}

.jobs-filters .filter-count {
  color: var(--jobb-ljusgrå);
}

.jobs-filters .filter-pill.on .filter-count {
  color: #c3d3e2;
}

.jobs-filters .filter-falt {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
}

.jobs-filters .filter-falt label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jobb-ljusgrå);
}

.jobs-filters .filter-falt input {
  font-family: var(--jobb-text);
  font-size: 0.8125rem;
  color: var(--jobb-blå);
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  min-width: 13rem;
  text-transform: none;
  letter-spacing: normal;
}

.jobs-filters .filter-falt input:focus {
  outline: 2px solid #508abf;
  outline-offset: -1px;
}

.jobs-filters .filter-visa {
  font-family: var(--jobb-text);
  font-size: 0.8125rem;
  color: #fff;
  background: var(--jobb-blå);
  border: 1px solid var(--jobb-blå);
  border-radius: 5px;
  padding: 0.33rem 1rem;
  cursor: pointer;
}

.jobs-filters .filter-visa:hover {
  background: #315677;
}

.jobs-filters .filter-rensa {
  font-family: var(--jobb-text);
  font-size: 0.8125rem;
  color: var(--jobb-grå);
  padding: 0.33rem 0;
}

.tomt {
  font-family: var(--jobb-text);
  font-size: 0.875rem;
  color: var(--jobb-grå);
}

/* Listan: en rad per uppdrag, hela raden är länken. */
.jobb-1 {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.jobb-1 li + li a {
  border-top: 1px solid #eef1f4;
}

.jobb-1 a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 1rem;
  padding: 0.4rem 0.9rem;
  border-left: 3px solid transparent;
  font-family: var(--jobb-text);
  text-decoration: none;
  line-height: 1.45;
}

.jobb-1 a:hover {
  background: #f4fafc;
  border-left-color: #508abf;
}

.jobb-1 .vad {
  flex: 1 1 24rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--jobb-blå);
}

.jobb-1 .nar {
  font-size: 0.78125rem;
  font-weight: 400;
  color: var(--jobb-grå);
  font-variant-numeric: tabular-nums;
}

.jobb-1 .svar {
  font-size: 0.78125rem;
  font-weight: 400;
  color: var(--jobb-ljusgrå);
  font-variant-numeric: tabular-nums;
}

.svar.idag {
  color: var(--jobb-röd);
}

@media (min-width: 900px) {
  .jobb-1 .nar {
    flex: 0 0 15rem;
  }

  .jobb-1 .svar {
    flex: 0 0 9rem;
    text-align: right;
  }
}
