/* Module.Jobs — the little the Jobs pages need beyond Harbour (ModuleDescriptor.Styles, loaded after every Harbour
   stylesheet, so it may use the tokens). Nothing here says left or right, so rtl.css needs no mirror. */

/* The search bar: Harbour's console with one wrapping row of fields, as Real estate's (re-public.css). Its select
   arrows are shown on the end side, since the console drops them. */
.jobs-searchbar { position: relative; z-index: 5; }
.console-form.jobs-console-form { display: flex; flex-wrap: wrap; align-items: stretch; }
.jobs-console-form .console-cell { flex: 1 1 9rem; min-width: 0; }
.jobs-console-form .jobs-cell-wide { flex: 1.6 1 12rem; }
.jobs-console-form > .btn { flex: 0 0 auto; }
@media (max-width: 575.98px) {
  .jobs-console-form > .btn { flex: 1 1 100%; }
}
.jobs-console-form .console-cell .form-select {
  padding-inline-end: 1.25rem;
  background-image: var(--bs-form-select-bg-img); background-repeat: no-repeat;
  background-size: .75rem .5625rem; background-position: right 0 center;
}
[dir=rtl] .jobs-console-form .console-cell .form-select { background-position: left 0 center; }

/* A field that opens a flyout (category, type, level, remote): a button dressed as the console's inputs, as Real
   estate's .re-drop-toggle, its chevron turning while open. */
.jobs-drop-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: .375rem;
  width: 100%; height: 1.5rem; padding: 0; border: 0; background: none;
  color: var(--bs-body-color); font-size: .8438rem; font-weight: 500; text-align: start;
}
.jobs-drop-toggle .bi { flex: none; font-size: .6875rem; color: var(--hb-faint); transition: transform .16s var(--hb-ease); }
.jobs-drop-toggle[aria-expanded=true] .bi { transform: rotate(180deg); }
/* On the card's surface (white in light, the dark card in dark), not Bootstrap's page tint. */
.jobs-drop-menu { --bs-dropdown-bg: var(--hb-surface); min-width: 16rem; max-height: min(26rem, 70vh); overflow-y: auto; margin-top: .75rem; padding: .375rem; }
.jobs-drop-menu-wide { min-width: 19rem; }
.jobs-drop-menu .dropdown-divider { margin: .25rem .375rem; }

/* One choice: Harbour's mega link (theme.css) with a radio in it. The console cell's label rule (small, uppercase)
   is for the cell's own label, so a choice resets it. */
.jobs-drop-menu .jobs-option {
  position: relative; display: flex; align-items: center; gap: .625rem; margin: 0;
  padding: .375rem .5rem; border-radius: var(--bs-border-radius); cursor: pointer;
  color: var(--hb-ink); font-family: inherit; font-size: .8125rem; font-weight: 500; letter-spacing: normal; text-transform: none;
  transition: background .16s var(--hb-ease);
}
.jobs-drop-menu .jobs-option:hover { background: var(--bs-tertiary-bg); }
.jobs-drop-menu .jobs-option:has(:checked) { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.jobs-drop-menu .jobs-option:has(:focus-visible) { box-shadow: inset 0 0 0 .125rem var(--bs-primary); }
/* The radio stays for the form and the keyboard, unseen. */
.jobs-option-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.jobs-option .ico-tile-sm { width: 1.875rem; height: 1.875rem; font-size: .9375rem; }
.jobs-option-text { flex: 1 1 auto; min-width: 0; }
.jobs-option-count {
  padding: .0625rem .4375rem; border-radius: var(--bs-border-radius-pill);
  background: var(--bs-tertiary-bg); color: var(--hb-muted); font-size: .6875rem; font-variant-numeric: tabular-nums;
}
.jobs-option-check { flex: none; visibility: hidden; font-size: 1rem; }
.jobs-option:has(:checked) .jobs-option-check { visibility: visible; }

/* The level's meter: six rising bars, the level's own filled. */
.jobs-meter { display: flex; align-items: flex-end; gap: .0938rem; height: .875rem; }
.jobs-meter i { display: block; width: .1563rem; border-radius: 1px; background: currentColor; opacity: .25; }
.jobs-meter i.on { opacity: 1; }
.jobs-meter i:nth-child(1) { height: 25%; }
.jobs-meter i:nth-child(2) { height: 40%; }
.jobs-meter i:nth-child(3) { height: 55%; }
.jobs-meter i:nth-child(4) { height: 70%; }
.jobs-meter i:nth-child(5) { height: 85%; }
.jobs-meter i:nth-child(6) { height: 100%; }

/* An employer's logo in a card or a page head: whole, on the card's surface. */
.jobs-logo {
  object-fit: contain;
  background: var(--hb-surface);
}

.jobs-logo-lg {
  width: 4rem;
  height: 4rem;
}

/* A flex child that may shrink below its content (a long title wraps). */
.jobs-shrink {
  min-width: 0;
}

/* A cover letter as typed: its line breaks kept. */
.jobs-letter {
  white-space: pre-line;
}

/* The job's facts in the sidebar: an icon, a label and its value per line. */
.jobs-facts li + li {
  border-top: 1px solid var(--bs-border-color);
}
