/* The Truck Jobs - Old Glory navy and red on asphalt; condensed stencil-style type; road and highway-sign details. */
:root {
  --navy: #0a3161;          /* Old Glory Blue */
  --navy-2: #072448;
  --red: #b31942;           /* Old Glory Red */
  --red-dk: #8e1334;
  --asphalt: #11161d;
  --asphalt-2: #1b232e;
  --chrome: #c3cad4;
  --lane: #f2b705;          /* road-paint yellow */

  --concrete: #eceef1;
  --card: #ffffff;
  --ink: #111823;
  --ink-2: #586273;
  --line: #d9dee5;
  --tag: #eef1f5;
  --gutter: 16px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-family: var(--body);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--concrete); line-height: 1.4; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

/* ---------- the red long-hood behind the page ---------- */
/* phones: the whole truck, nose in, across the lower screen, showing through the translucent cards */
.bg-truck { position: fixed; z-index: 0; left: 50%; bottom: 2vh; transform: translateX(-46%); width: 118vw; max-width: 1150px;
  aspect-ratio: 1600 / 1176; background: url("/static/img/truck-red.webp") center / contain no-repeat;
  opacity: .5; filter: saturate(1.4); pointer-events: none; }
.top, .stripes, .wrap, .foot { position: relative; z-index: 1; }
/* desktop: the whole truck in the lower right, clear of the screen edge, under and beside the sidebar */
@media (min-width: 900px) {
  .bg-truck { left: auto; right: 2vw; bottom: 3vh; transform: none; width: min(860px, 48vw); opacity: .4; }
}

/* ---------- header: asphalt, flag, truck ---------- */
.top {
  position: relative; overflow: hidden; color: #fff; padding: 0 var(--gutter) 12px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 7px),
    radial-gradient(120% 90% at 85% 0%, #243042 0%, transparent 60%),
    var(--asphalt);
}
.art-flag {
  position: absolute; top: 0; right: 0; width: min(560px, 78%); height: 100%; opacity: .2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 92%), linear-gradient(to bottom, #000 35%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 15%, transparent 92%), linear-gradient(to bottom, #000 35%, transparent 100%);
  mask-composite: intersect;
}
.art-truck { position: absolute; right: -60px; bottom: 2px; width: min(600px, 120%); color: #fff; opacity: .075; pointer-events: none; }
.top > *:not(svg) { position: relative; z-index: 1; }

.top-in { max-width: 1080px; margin: 0 auto; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 33px; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .6px; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--chrome); margin-bottom: 1px; }
.tagline { display: none; margin: 0; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .5px; text-transform: uppercase; color: var(--chrome); }
.tagline span { color: #fff; }
@media (min-width: 720px) { .tagline { display: block; } }

/* search: one compact row on phones so the first job is above the fold */
.search { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr 48px; gap: 6px; }
.field { display: block; min-width: 0; background: #fff; border-radius: 8px; padding: 0 12px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.field span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field input { width: 100%; height: 46px; border: 0; outline: 0; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: transparent; text-overflow: ellipsis; }
.field:focus-within { box-shadow: 0 0 0 3px var(--red); }
.go { display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--red); color: #fff; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .6px; text-transform: uppercase; box-shadow: 0 2px 0 var(--red-dk); }
.go:hover { background: var(--red-dk); }
.go .ic { width: 22px; height: 22px; }
.go-txt { display: none; }
@media (min-width: 720px) {
  .top { padding-bottom: 16px; }
  .top-in { height: 72px; }
  .search { grid-template-columns: 1.4fr 1fr auto; gap: 8px; }
  .field { padding: 7px 14px 8px; }
  .field span { position: static; width: auto; height: auto; clip: auto; display: block; font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .6px; }
  .field input { height: auto; padding: 1px 0 0; font-size: 17px; }
  .go { display: inline-flex; gap: 8px; align-items: center; padding: 0 26px; }
  .go-txt { display: inline; }
}

/* refine chips, on the asphalt */
.chips { max-width: 1080px; margin: 10px auto 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
@media (min-width: 1112px) { .chips { margin-left: auto; margin-right: auto; padding: 0; } }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #e8ebf0; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.chip:hover { background: rgba(255,255,255,.12); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.chip .ic { width: 14px; height: 14px; }
.chip-select { padding: 0 6px 0 10px; }
.chip-select select { border: 0; background: transparent; color: #e8ebf0; font: inherit; outline: 0; cursor: pointer; }
.chip-select option { color: var(--ink); text-transform: none; }

/* the flag band under the header */
.stripes { height: 9px; background: linear-gradient(90deg, var(--navy) 0 96px, transparent 0), linear-gradient(var(--red) 0 33.3%, #fff 0 66.6%, var(--red) 0); }

/* ---------- results ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) 48px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 11px 14px; border-radius: 8px; background: #fff7d9; border-left: 6px solid var(--lane); font-size: 14.5px; font-weight: 500; }
.notice .ic { width: 20px; height: 20px; color: #9a7300; margin-top: 1px; }
.notice-dev { background: #e9eefa; border-left-color: var(--navy); }
.notice-dev .ic { color: var(--navy); }

.layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 290px; } }

.count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 16px 0 12px; font-family: var(--display); text-transform: uppercase; line-height: 1.1; }
.count .num { font-size: 30px; font-weight: 800; color: var(--red); }
.count .what { font-size: 23px; font-weight: 800; color: var(--navy); letter-spacing: .3px; }
.count .where { display: inline-flex; align-items: center; gap: 4px; font-family: var(--body); text-transform: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.list { display: grid; gap: 14px; }

/* job card */
.job { position: relative; overflow: hidden; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 10px; padding: 16px; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 10px 22px -16px rgba(10,49,97,.45); }
.job-top { border: 2px solid var(--navy); padding-top: 42px; box-shadow: 0 14px 30px -18px rgba(10,49,97,.7); }
.job-top::after { content: ""; position: absolute; top: 0; right: 0; width: 92px; height: 28px; opacity: .9;
  background: linear-gradient(var(--red) 0 33.3%, #fff 0 66.6%, var(--red) 0); -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
.ribbon { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 12px; background: var(--navy); color: #fff; border-bottom-right-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .8px; text-transform: uppercase; }
.ribbon .ic { color: #fff; width: 14px; height: 14px; }

.job-head { display: flex; gap: 12px; align-items: flex-start; }
.logo { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 2px; }
.logo-txt { display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 24px; border: 0; }
.job-id { min-width: 0; }
.job-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.12; letter-spacing: .1px; color: #0c1a2e; }
.job-title a { text-decoration: none; }
.job-title a:hover { color: var(--red); }
.job-co { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14.5px; color: var(--ink-2); }
.job-co .co { font-weight: 700; color: var(--ink); }
.job-co .loc { display: inline-flex; align-items: center; gap: 3px; }
.job-co .loc .ic { color: var(--red); width: 15px; height: 15px; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
/* pay on a license plate */
.plate { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 16px 4px; border: 2px solid var(--navy); border-radius: 6px; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: .3px;
  background: radial-gradient(circle at 6px 50%, #9aa4b1 0 1.6px, transparent 2.2px), radial-gradient(circle at calc(100% - 6px) 50%, #9aa4b1 0 1.6px, transparent 2.2px), linear-gradient(#fff, #edf1f6); }
.plate small { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 1px; text-transform: uppercase; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; padding: 5px 9px; border-radius: 6px; background: var(--tag); color: var(--ink); }
.tag .ic { color: var(--navy); width: 15px; height: 15px; }
.tag-more { color: var(--ink-2); }

.facts { margin: 13px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 7px; font-size: 14.5px; }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.facts dt { display: inline-flex; align-items: center; gap: 6px; align-self: start; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-2); }
.facts dt .ic { color: var(--red); width: 16px; height: 16px; }
.facts dd { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desc { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid transparent; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .8px; text-transform: uppercase; cursor: pointer; transition: background .15s, transform .15s; }
.btn .ic { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-dk); }
.btn-red:hover { background: var(--red-dk); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 3px 0 var(--navy-2); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--asphalt); }
.btn-job { width: 100%; margin-top: 16px; }
@media (min-width: 720px) { .btn-job { width: auto; min-width: 190px; } }

/* "Show more" - a stretch of road */
.more { position: relative; display: flex; justify-content: center; align-items: center; min-height: 56px; margin-top: 18px; border-radius: 8px; background: var(--asphalt); color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 1px; text-transform: uppercase; overflow: hidden; }
.more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 3px; background: repeating-linear-gradient(90deg, var(--lane) 0 22px, transparent 22px 38px); }
.more:hover { background: var(--asphalt-2); }
.more.loading { opacity: .7; pointer-events: none; }

/* CDL-A question, with an interstate-style shield */
.ask { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; padding: 18px 16px; border-radius: 10px; color: #fff;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px), var(--asphalt); }
.ask::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--navy) 0 30%, var(--red) 0 40%, #fff 0 50%, var(--red) 0 60%, #fff 0 70%, var(--red) 0 80%, #fff 0 90%, var(--red) 0); }
.ask-shield { flex: none; width: 58px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; color: #fff;
  background: linear-gradient(var(--red) 0 34%, var(--navy) 0); border-radius: 10px 10px 50% 50% / 10px 10px 38% 38%; box-shadow: 0 0 0 3px #fff; font-family: var(--display); }
.ask-shield span { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; margin-top: 3px; }
.ask-shield b { font-size: 32px; font-weight: 800; line-height: 1; margin-top: 4px; }
.ask-body { flex: 1; min-width: 0; }
.ask-q { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .4px; line-height: 1.1; }
.ask-sub { margin: 3px 0 0; font-size: 14.5px; color: var(--chrome); }
.ask-a { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ask-a .btn { padding: 0 10px; }

.empty { background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 10px; padding: 26px 16px; text-align: center; }
.empty p { margin: 0 0 14px; font-size: 17px; font-weight: 600; }

/* related searches on a road sign: navy like the header, a red band like an interstate shield */
.sign { overflow: hidden; background: var(--navy); color: #fff; border-radius: 12px; padding: 0 18px 10px; box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px rgba(255,255,255,.9), 0 10px 24px -16px rgba(10,49,97,.8); }
.sign h2 { display: flex; align-items: center; gap: 8px; margin: 0 -18px 6px; padding: 14px 18px 11px; background: var(--red); border-bottom: 2px solid rgba(255,255,255,.9); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.sign ul { list-style: none; margin: 0; padding: 0; }
.sign li + li { border-top: 1px solid rgba(255,255,255,.22); }
.sign a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .3px; }
.sign a .ic { opacity: .85; transition: transform .15s; }
.sign a:hover .ic { transform: translateX(3px); }
@media (min-width: 900px) { .side { padding-top: 60px; } .sign { position: sticky; top: 16px; } }

.legal { background: var(--card); border-radius: 10px; padding: 20px; margin-top: 16px; }
.legal h1 { font-family: var(--display); text-transform: uppercase; color: var(--navy); }
.placeholder { background: #fff7d9; border-left: 6px solid var(--lane); padding: 10px 12px; border-radius: 6px; }

/* footer: asphalt with a center line */
.foot { background: var(--asphalt); color: var(--chrome); font-size: 14px; }
.lane { height: 4px; background: repeating-linear-gradient(90deg, var(--lane) 0 30px, transparent 30px 52px); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 20px var(--gutter) 30px; display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-brand { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .6px; text-transform: uppercase; }
.foot-note { margin-left: auto; font-family: var(--display); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #7f8896; }

/* developer price view (/jobs?debug=1 with DEBUG=1) */
.dbg { display: inline-block; margin: 0 0 10px; padding: 3px 8px; border-radius: 6px; background: #fff3b0; border: 1px solid #e0c240; color: #5a4600; font: 700 12px/1.2 ui-monospace, Consolas, monospace; }
