/* CallFirst Jobs. One idea carries the page: every ad ends in a
   tear-off tab with the number to call, like a flyer on a shop notice board. */
:root {
  --board: #E8EDF3;
  --sheet: #FFFFFF;
  --ink: #14233B;
  --soft: #4F5D75;
  --rule: #C9D2DE;
  --call: #0A7A43;
  --call-deep: #075C32;
  --hivis: #F5D90A;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 1.0625rem/1.5 var(--body); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* top */
.top { padding: 22px 0 18px; }
.mark { font: 600 1rem/1 var(--body); text-decoration: none; display: inline-block; padding: 6px 0; }
.top h1 { font: 700 clamp(2.6rem, 10vw, 4.5rem)/0.95 var(--display); letter-spacing: -0.01em; margin: 14px 0 12px; max-width: 12ch; }
.lede { margin: 0; max-width: 52ch; color: var(--soft); }

/* find */
.find { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin: 6px 0 14px; }
.find label { display: block; min-width: 0; }
.find label span { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 4px; }
.find .grow { grid-column: 1 / -1; }
.find select, .find input[type=search] {
  width: 100%; height: 48px; padding: 0 12px; font: inherit; color: var(--ink);
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; appearance: none; -webkit-appearance: none;
}
.find select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314233B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.find select:disabled { color: var(--soft); border-color: var(--rule); }
.find button {
  grid-column: 1 / -1; height: 48px; padding: 0 22px; font: 600 1rem/1 var(--body); color: #fff;
  background: var(--ink); border: 0; border-radius: 4px; cursor: pointer;
}
.find button:hover { background: #0B1627; }

/* kinds of work */
.kinds { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 12px; margin: 0 -16px; scrollbar-width: thin; }
.chip {
  flex: none; padding: 8px 14px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--sheet);
  text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
}
.chip b { font-weight: 400; color: var(--soft); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on b { color: #C9D2DE; }

.tally { font-weight: 600; margin: 6px 0 14px; }
.tally a { font-weight: 400; margin-left: 10px; }

/* where the jobs are */
.places { margin: 0 0 22px; }
.places h2 { font: 700 1.5rem/1.1 var(--display); margin: 0 0 10px; }
.places ul { list-style: none; margin: 0 -16px; padding: 0 16px 6px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.places li { flex: none; width: 220px; background: var(--sheet); border-radius: 6px; padding: 12px 14px; }
.places .state { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; text-decoration: none; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.places .state:hover, .towns a:hover { text-decoration: underline; }
.places span { font-weight: 400; color: var(--soft); font-variant-numeric: tabular-nums; }
.towns { display: grid; gap: 2px; padding-top: 8px; font-size: 0.9375rem; }
.towns a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; padding: 3px 0; }

/* the ads */
.ads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ad { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--sheet); border-radius: 6px; overflow: hidden; }
.ad-body { padding: 16px 16px 14px; min-width: 0; }
.ad h2 { font: 700 1.625rem/1.08 var(--display); margin: 0 0 4px; overflow-wrap: anywhere; }
.who { margin: 0 0 8px; font-weight: 500; }
.facts { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.9375rem; color: var(--soft); }
.facts .pay { color: var(--ink); font-weight: 600; }
.facts .fresh { color: var(--ink); font-weight: 600; background: var(--hivis); padding: 0 6px; border-radius: 2px; }
.text { margin: 0 0 8px; color: var(--soft); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.src { font-size: 0.9375rem; }

/* the tear-off tab */
.call {
  position: relative; display: flex; align-items: baseline; justify-content: center; gap: 10px;
  min-height: 62px; padding: 12px 16px; background: var(--call); color: #fff; text-decoration: none;
  border-top: 2px dashed var(--sheet);
}
.call::before, .call::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--board); top: -10px; }
.call::before { left: -9px; }
.call::after { right: -9px; }
.call:hover, .call:active { background: var(--call-deep); }
.call:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.call-word { font: 600 1.0625rem/1 var(--body); }
.call-num { font: 700 1.75rem/1 var(--display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 0; }
.pager a { font-weight: 600; padding: 10px 0; }
.pager span { color: var(--soft); font-size: 0.9375rem; }

.empty { background: var(--sheet); border-radius: 6px; padding: 26px 18px; margin: 14px 0; }
.empty p { margin: 0 0 6px; }
.empty p:first-child { font: 700 1.5rem/1.15 var(--display); }

.foot { margin-top: 36px; padding: 22px 0 34px; border-top: 1px solid var(--rule); color: var(--soft); font-size: 0.9375rem; }
.foot p { margin: 0 0 10px; max-width: 70ch; }
.foot strong { color: var(--ink); }

@media (min-width: 700px) {
  .top { padding: 34px 0 24px; }
  .find { grid-template-columns: 1fr 1fr 1.4fr auto; }
  .find .grow, .find button { grid-column: auto; }
  .kinds { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 14px; }
  .places ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .places li { width: auto; }
  .ad { grid-template-columns: minmax(0, 1fr) 264px; }
  .ad-body { padding: 18px 22px 16px; }
  .call { flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-top: 0; border-left: 2px dashed var(--sheet); }
  .call::before, .call::after { left: -10px; right: auto; }
  .call::before { top: -9px; }
  .call::after { top: auto; bottom: -9px; }
}

/* ---- version 2: accounts, members-only details, forms, admin ---- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; font-size: 0.9375rem; font-weight: 500; }
.nav a { padding: 6px 0; }
.nav form { margin: 0; }
.nav .nav-join { background: var(--ink); color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 4px; }
.linkish { font: inherit; font-weight: 500; color: inherit; background: none; border: 0; padding: 6px 0; text-decoration: underline; cursor: pointer; }
.top.slim { padding: 14px 0 6px; }
.wrap.narrow { max-width: 760px; }

.ticks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ticks label { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; min-height: 32px; }
.ticks input, .pick input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }

.ad h2 a { text-decoration: none; }
.ad h2 a:hover { text-decoration: underline; }
.tags { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.875rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: #DDF1E5; color: var(--call-deep); }
.tag.plain { background: var(--board); color: var(--soft); font-weight: 500; }

.call.locked { background: var(--ink); flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.call.locked:hover { background: #0B1627; }
.call.locked .call-word { font-weight: 500; }
.call-join { font: 700 1.375rem/1.1 var(--display); text-decoration: underline; text-underline-offset: 3px; }
.call.wide { border-radius: 6px; border: 0; margin: 18px 0 10px; flex-direction: row; align-items: baseline; }
.call.wide.locked { flex-direction: column; align-items: center; }
.call.wide::before, .call.wide::after { display: none; }

.job { background: var(--sheet); border-radius: 6px; padding: 18px 18px 22px; margin: 6px 0 0; }
.job h1 { font: 700 2.125rem/1.05 var(--display); margin: 4px 0 6px; overflow-wrap: anywhere; }
.back { margin: 0 0 8px; font-size: 0.9375rem; }
.fulltext { white-space: pre-line; overflow-wrap: anywhere; margin: 12px 0; }
.rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 10px 0; font-size: 0.9375rem; }
.rows dt { color: var(--soft); }
.rows dd { margin: 0; font-weight: 500; }
.note, .more { color: var(--soft); font-size: 0.9375rem; }

.form-page h1, .admin h1 { font: 700 2.25rem/1.05 var(--display); margin: 8px 0 14px; }
.admin h2, .card h2 { font: 700 1.5rem/1.1 var(--display); margin: 22px 0 10px; }
.card h2 { margin-top: 0; }
.card h3 { font: 700 1.375rem/1.1 var(--display); margin: 0 0 4px; }
.card { background: var(--sheet); border-radius: 6px; padding: 18px; margin: 0 0 14px; }
.card p { margin: 0 0 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.pick { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; line-height: 1.4; }
.pick input { margin-top: 2px; }
.fld { display: block; margin: 0 0 14px; }
.fld > span { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 4px; }
.fld i { font-style: normal; font-weight: 400; color: var(--soft); }
.fld small { display: block; color: var(--soft); margin-top: 4px; font-size: 0.875rem; }
.fld input, .fld select, .fld textarea, .row input {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px;
}
.fld textarea { line-height: 1.45; resize: vertical; }
.two { display: grid; gap: 0 12px; }
.btn {
  display: inline-block; min-height: 48px; padding: 13px 22px; font: 600 1rem/1.3 var(--body); color: #fff; text-decoration: none;
  background: var(--call); border: 0; border-radius: 4px; cursor: pointer;
}
.btn:hover { background: var(--call-deep); }
.btn.quiet { background: none; color: var(--ink); border: 1.5px solid var(--ink); padding: 11px 16px; min-height: 44px; }
.btn.quiet:hover { background: var(--board); }
.aside { color: var(--soft); font-size: 0.9375rem; }
.state { font: 700 1.5rem/1.1 var(--display); }
.state.good { color: var(--call-deep); }
.flash { background: #DDF1E5; border-left: 4px solid var(--call); padding: 10px 14px; border-radius: 3px; margin: 0 0 14px; overflow-wrap: anywhere; }
.flash.bad { background: #FBE9E7; border-left-color: #B3261E; }
.pay-ways, .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row input { flex: 1 1 180px; min-height: 44px; }
.row { margin: 0; }
.list { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: var(--sheet); border-radius: 6px; }
.list th, .list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.list th { color: var(--soft); font-weight: 500; }
.list small { color: var(--soft); }
.admin { overflow-x: auto; }

@media (min-width: 700px) {
  .two { grid-template-columns: 1fr 1fr; }
  .job { padding: 26px 30px 30px; }
  .call.locked { justify-content: center; }
}
.find-user { margin: 0 0 12px; max-width: 520px; }
