/* Colours come from the logo: orange on black. Light by default, dark only when chosen.
   The top bar and footer stay dark in both modes because the logo has white lettering. */
:root {
  --orange: #f47a20;
  --orange-hover: #ff8b36;
  --on-orange: #10141b;
  --night: #0c1118;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --ink: #121821;
  --ink-2: #33404f;
  --muted: #5b6675;
  --line: #e3e6eb;
  --field-line: #cfd5dd;
  --ok: #1f9d55;
  --ok-ink: #157a42;
  --accent-text: #b4530a;
  --bad: #b3261e;
  --bad-bg: #fbeceb;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #0c1118; --surface: #141b25; --surface-2: #1b2430; --ink: #eef1f5; --ink-2: #c6ced9; --muted: #97a3b4; --line: #2a3442; --field-line: #3a4656; --ok: #34c77b; --ok-ink: #7be3a9; --accent-text: #ff9a4d; --bad: #ff8a80; --bad-bg: #3a1b1a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--body); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin: 0 0 .4em; overflow-wrap: anywhere; }
h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.12rem; margin: 1em 0 .35em; letter-spacing: -.01em; }
p { margin: 0 0 .9em; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 16px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.after { margin-top: 14px; }
.crumb { font-size: .92rem; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 16px; background: var(--night); color: #fff; }
.logo { display: block; flex: none; }
.logo img { display: block; width: auto; height: 30px; max-width: 70vw; object-fit: contain; object-position: left; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; font-weight: 500; font-size: .95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--orange); }
.theme-form { display: inline; margin: 0 0 0 auto; order: 2; }
.top nav { order: 3; flex-basis: 100%; }
.theme-toggle { padding: 4px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: none; color: inherit; font: 500 .85rem var(--body); cursor: pointer; }
.theme-toggle:hover { border-color: #fff; }
.to-light { display: none; }
:root[data-theme=dark] .to-dark { display: none; }
:root[data-theme=dark] .to-light { display: inline; }
main { max-width: 760px; margin: 0 auto; padding: 34px 20px 56px; }
main:has(.board-page), main:has(.job-wrap), main:has(.portal) { max-width: 1240px; }
main:has(.with-photo), main:has(.home) { max-width: none; padding: 0; }
.flash { margin: 0; padding: 12px 20px; background: var(--night); color: #fff; font-weight: 500; box-shadow: inset 4px 0 0 var(--orange); }
.alert { padding: 11px 14px; background: var(--bad-bg); border-radius: 6px; color: var(--bad); font-weight: 500; }
.note { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }

.btn { display: inline-block; padding: 13px 24px; min-height: 50px; border: 0; border-radius: 10px; background: var(--orange); color: var(--on-orange); font: 600 1.02rem/24px var(--body); text-align: center; text-decoration: none; cursor: pointer; transition: background .18s var(--ease), transform .18s var(--ease); }
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn-wide { display: block; width: 100%; }
.btn-plain { background: var(--surface); color: var(--ink); min-height: 44px; padding: 10px 18px; font-size: .98rem; box-shadow: inset 0 0 0 1px var(--line); }
.btn-plain:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink-2); }
.link { padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.field { display: block; margin-bottom: 16px; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; padding: 0; }
.field small { display: block; color: var(--muted); margin-top: 4px; font-size: .84rem; }
.field small.err { color: var(--bad); font-weight: 500; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type=file] { max-width: 100%; font: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.two { display: grid; gap: 0 14px; }
.place { display: grid; grid-template-columns: 2fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.check input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--orange); }
.box { padding: 20px; background: var(--surface-2); border-radius: 10px; margin: 0 0 20px; }
.box h2:first-child { margin-top: 0; }
details { margin-bottom: 16px; }
summary { cursor: pointer; padding: 8px 0; font-weight: 500; }

/* Home. The hero and footer stay dark in both modes, like the logo artwork. */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; animation: settle 2.4s var(--ease) both; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,18,.5) 0%, rgba(8,12,18,.04) 26%, rgba(8,12,18,.22) 52%, rgba(8,12,18,.9) 100%); }
.hero-in { position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 96px 20px 26px; animation: rise .9s var(--ease); }
.hero h1 { font: 900 clamp(3.5rem, 9.4vw, 9.6rem)/.92 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 0 0 .16em; max-width: 11em; text-wrap: balance; }
.hero-in > p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin-bottom: 1.1em; }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
/* Movement only, never opacity: the headline and form must show even if this never runs. */
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }

.how { max-width: 1400px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) 20px; }
.how h2, .included h2, .moves h2 { margin: 0 0 .8em; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
.how li { padding: 22px 0; border-top: 1px solid var(--line); }
.how-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .95rem; }
.how h3 { font-size: 1.2rem; margin: .8em 0 .3em; }
.how p { margin: 0; font-size: 1.02rem; max-width: 26em; color: var(--ink-2); }

.included, .moves { max-width: 1400px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 20px; }
.perks { display: grid; gap: 0 32px; }
.perks li { padding: 16px 0; border-top: 1px solid var(--line); }
.perks b { display: block; font-weight: 600; }
.perks span { color: var(--muted); }
.moves { padding-bottom: clamp(56px, 9vw, 120px); }
.move-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.move-list a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s var(--ease); }
.move-list a:hover { border-color: var(--ink-2); }
.move-list b { display: block; font-weight: 600; }
.move-list span { color: var(--muted); font-size: .92rem; }


.on-board { background: var(--bg); padding: clamp(40px, 7vw, 90px) 20px; }
.on-board > * { max-width: 1360px; margin-left: auto; margin-right: auto; }
.on-board-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.on-board h2 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.on-board-top a { color: var(--accent-text); font-weight: 500; white-space: nowrap; }

.ops { max-width: 1400px; margin: 0 auto; padding: clamp(56px, 10vw, 130px) 20px; display: grid; gap: 10px 56px; align-items: center; }
.ops-price { font: 900 clamp(5rem, 15vw, 11rem)/.82 var(--display); letter-spacing: -.01em; color: var(--orange); }
.ops h2 { margin: 0 0 .35em; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.ops p { font-size: 1.12rem; max-width: 30em; margin-bottom: 1.3em; color: var(--ink-2); }

.foot { background: var(--night); color: #97a3b4; padding: 34px 20px 14px; overflow: hidden; font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 26px; max-width: 1400px; margin: 0 auto 26px; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { color: var(--orange); }
.foot-links span { margin-left: auto; }
.foot-logo { display: block; width: min(100%, 460px); height: auto; margin: 10px auto 20px; }

/* The board */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.board-head { display: none; }
.jobs > li + li { border-top: 1px solid var(--line); }
.job { position: relative; display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 15px 14px; color: inherit; text-decoration: none; transition: background .18s var(--ease); }
.job:hover { background: var(--surface-2); }
.job-title { font-weight: 600; font-size: 1.04rem; line-height: 1.3; overflow-wrap: anywhere; }
.job:hover .job-title { color: var(--accent-text); }
.job-from, .job-to, .job-when, .job-right { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.job-to::before { content: 'to '; color: var(--muted); }
.job-when, .job-right { color: var(--muted); }
.job-mine { color: var(--accent-text); font-weight: 600; }
.filters { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.filters input[type=search] { grid-column: 1 / -1; padding-right: 112px; }
.filters .btn { position: absolute; top: 5px; right: 5px; min-height: 40px; padding: 6px 16px; font-size: 1rem; }
.pager { display: flex; gap: 18px; margin-top: 16px; }

/* Photo beside a form */
.with-photo { display: grid; min-height: calc(100svh - 62px); }
.with-photo-main { width: 100%; max-width: 620px; margin: 0 auto; padding: 36px 20px 56px; }
.side-photo { display: none; position: relative; overflow: hidden; background: var(--night); }
.side-img { position: sticky; top: 0; width: 100%; height: 100svh; object-fit: cover; object-position: 64% 58%; }

/* Job page */
.job-grid { display: grid; gap: 20px 56px; }
.job-main, .job-side { min-width: 0; }
.summary { background: var(--night); color: #fff; border-radius: 10px; padding: 22px; }
.summary small { display: block; font-size: .9rem; color: #c6ced9; margin-bottom: 2px; }
.summary-figure { font: 800 3.6rem/1 var(--display); color: var(--orange); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.summary-count { color: #c6ced9; }
.summary p { margin: 10px 0 0; }
.summary .btn { margin-top: 12px; }
.facts { display: grid; grid-template-columns: minmax(84px, 26%) 1fr; margin: 0 0 20px; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); padding-right: 14px; }
.facts dd { font-weight: 500; overflow-wrap: anywhere; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.quotes > li, .thread > li { padding: 16px 0; border-top: 1px solid var(--line); }
.quotes p, .thread p { margin: 5px 0 0; }
.quotes form { margin-top: 12px; }
.quote-top { display: flex; justify-content: space-between; gap: 16px; }
.price { font: 800 2rem/1 var(--display); white-space: nowrap; color: var(--accent-text); }
.stars { color: var(--accent-text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.star-pick { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.alerts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.alerts .unread a { font-weight: 700; }

/* Dashboards */
.portal { display: grid; gap: 22px 40px; }
.portal-main { min-width: 0; }
.portal-main h2 { margin-top: 1.2em; }
.portal-nav { display: flex; gap: 4px; overflow-x: auto; margin: -8px -20px 0; padding: 0 20px 10px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.portal-nav a { flex: none; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.portal-nav a:hover { background: var(--surface-2); }
.portal-nav a.on { background: var(--orange); color: var(--on-orange); font-weight: 600; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: .78rem; text-align: center; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-bottom: 8px; }
.head-row h1 { margin: 0; }
.callout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 16px 18px; margin-bottom: 18px; background: var(--night); color: #fff; border-left: 5px solid var(--orange); border-radius: 6px; }
.callout > div { flex: 1 1 280px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .18s var(--ease); }
.stat:hover { border-color: var(--orange); }
.stat b { display: block; font: 900 3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .92rem; }
.works { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.work { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 14px 16px; }
.work + .work { border-top: 1px solid var(--line); }
.work-text { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.work-text > * { display: block; }
.work-title { font-weight: 600; font-size: 1.06rem; line-height: 1.3; text-decoration: none; }
.work-title:hover { color: var(--accent-text); }
.work-side { display: flex; align-items: center; gap: 14px; }
.work-side:empty { display: none; }

.table-wrap { overflow-x: auto; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
td .btn { min-height: 32px; padding: 4px 12px; font-size: 1rem; line-height: 22px; }

/* Header: one menu, the page you're on is marked */
.top nav a.on { color: var(--orange); }
.side-tag { margin-left: -14px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; color: #c6ced9; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.alerts-link .count { background: var(--orange); color: var(--on-orange); }

/* Phones: job rows in three short lines */
@media (max-width: 899px) {
  .only-wide { display: none; }
  .job { display: block; }
  .job-title { display: block; margin-bottom: 3px; }
  .job-to::after { content: '\A'; white-space: pre; }
  .job-right::before { content: ' \00B7  '; color: var(--muted); }

  /* Transporters on a phone: the menu is a tab bar along the bottom */
  .is-t .top nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--night); border-top: 1px solid rgba(255,255,255,.14); }
  .is-t .top nav a { padding: 15px 4px; text-align: center; font-weight: 600; }
  .is-t .top nav a.on { box-shadow: inset 0 3px 0 var(--orange); }
  .is-t { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .is-t .side-tag { display: none; }
}

/* Single column pages with no side menu */
main:has(.solo) { max-width: 1100px; }
.solo > h1 { margin-bottom: .5em; }
.solo h2 { margin-top: 1.3em; }

/* Job page header: photo, title and route */
.job-hero { position: relative; overflow: hidden; margin: -34px -20px 0; min-height: 300px; display: flex; align-items: flex-end; background: var(--night); color: #fff; }
.job-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.job-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,17,24,.15) 0%, rgba(12,17,24,.55) 45%, rgba(12,17,24,.94) 100%); }
.job-hero-in { position: relative; z-index: 1; width: 100%; padding: 70px 20px 22px; }
.job-hero .crumb { margin: 0 0 14px; }
.job-hero .crumb a { color: #fff; }
.job-kind { display: block; color: var(--orange); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.job-hero h1 { margin: 4px 0 18px; color: #fff; font: 800 clamp(2.3rem, 7vw, 4.6rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }

.route { display: flex; align-items: center; gap: 14px; }
.route-end { min-width: 0; }
.route-end small { display: block; color: #c6ced9; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.route-end strong { display: block; font: 800 clamp(1.5rem, 4.6vw, 2.4rem)/1.02 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.route-end span { color: #c6ced9; font-size: .9rem; }
.route-to { text-align: right; }
.route-line { position: relative; flex: 1 1 40px; min-width: 40px; border-top: 3px dashed rgba(255,255,255,.75); }
.route-line::before, .route-line::after { content: ''; position: absolute; top: -8px; width: 13px; height: 13px; border-radius: 50%; }
.route-line::before { left: -4px; border: 3px solid var(--orange); background: var(--night); }
.route-line::after { right: -4px; background: var(--orange); }

.progress { list-style: none; display: flex; margin: 0 -20px 28px; padding: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.progress li { flex: 1; padding: 12px 6px 10px; text-align: center; color: var(--muted); font-size: .86rem; font-weight: 500; border-top: 3px solid transparent; }
.progress li.past { color: var(--ink-2); border-top-color: var(--line); }
.progress li.now { color: var(--ink); font-weight: 700; border-top-color: var(--orange); }

.facts { grid-template-columns: minmax(84px, 30%) 1fr; }
.quote-who { min-width: 0; }
.quote-tag { display: inline-block; margin-bottom: 6px; color: var(--accent-text); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.quote-gear { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
.quote-low .price { font-size: 2.4rem; }

/* Customer side */
.status-go { color: var(--accent-text); font-weight: 600; }
.status-go a { color: inherit; }
details.past { margin-top: 22px; }
details.past > summary, .job-details > summary { font-weight: 600; }
.job-details { margin: 22px 0 8px; padding-top: 6px; border-top: 1px solid var(--line); }

/* Pricing a job from the dark panel */
.quote-quick { margin-top: 14px; }
.price-box { display: flex; align-items: center; gap: 4px; padding: 4px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(255,255,255,.06); transition: border-color .15s; }
.price-box:focus-within { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.price-box b { font: 800 2.6rem/1 var(--display); color: var(--orange); }
.price-box input[type=text] { min-height: 64px; padding: 4px 0; border: 0; background: none; color: #fff; font: 800 2.8rem/1 var(--display); font-variant-numeric: tabular-nums; box-shadow: none; }
.price-box input::placeholder { color: rgba(255,255,255,.3); }
.summary .price-note { margin: 8px 0 4px; color: #c6ced9; font-size: .88rem; }
.summary details { margin: 6px 0 12px; }
.summary summary { color: #c6ced9; font-size: .92rem; }
.summary .field > span, .summary .field small { color: #c6ced9; }
.summary .field input, .summary .field textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: #fff; }
.summary .link { color: #c6ced9; }

/* For transporters */
.for-t .ops-top { padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(30px, 5vw, 60px); }
.for-t .ops h1 { margin: 0 0 .35em; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.steps { list-style: none; max-width: 1400px; margin: 0 auto clamp(40px, 6vw, 80px); padding: 0 20px; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 1.05rem; }
.steps b { font-weight: 700; color: var(--accent-text); }
main:has(.for-t) { max-width: none; padding: 0; }

/* The home page header sits over the photo */
body:has(.home) .top { position: absolute; z-index: 5; left: 0; right: 0; background: none; }
body:has(.home) .flash { position: relative; z-index: 6; }

/* Post a job. One form: the search bar is the first section and the rest opens under it. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-home { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.42); max-width: 1120px; }
.pf .alert { margin: 8px 8px 12px; }
.pf-bar { display: grid; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pf-bar .field { position: relative; margin: 0; padding: 10px 16px 8px; border-bottom: 1px solid var(--line); }
.pf-bar .field > span, .pf-bar .field > label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); margin: 0 0 1px; }
.pf-bar input[type=text] { border: 0; padding: 2px 0 4px; min-height: 34px; border-radius: 0; background: none; font-size: 1.05rem; box-shadow: none; }
.pf-bar input[type=text]:focus { box-shadow: none; }
.pf-bar .field:focus-within { background: var(--surface-2); }
.pf-bar .field:first-child { border-radius: 12px 12px 0 0; }
.pf-bar .field.bad { box-shadow: inset 3px 0 0 var(--bad); }
.pf-go { margin: 8px; }
.pf-started .pf-go { display: none; }
.pf-started .pf-bar .field:nth-child(3) { border-bottom: 0; border-radius: 0 0 12px 12px; }
.pf-list { position: absolute; z-index: 20; left: 0; min-width: 100%; width: max-content; max-width: min(360px, 90vw); top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); max-height: 320px; overflow: auto; }
.pf-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.pf-list li b { color: var(--ink); font-weight: 600; }
.pf-list li[aria-selected=true] { background: var(--surface-2); }
.pf-home:not(.pf-started) .pf-rest { display: none; }
.pf-rest { padding: 4px 8px 8px; }
.pf-step { border-bottom: 1px solid var(--line); }
.pf-step:last-child { border-bottom: 0; }
.pf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; width: 100%; padding: 20px 8px; border: 0; background: none; color: var(--muted); font: inherit; text-align: left; cursor: default; }
.pf-num { flex-basis: 100%; font-size: .8rem; font-weight: 500; color: var(--muted); }
.pf-title { font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
.pf-step.open .pf-head, .pf-step.done .pf-head { color: var(--ink); }
.pf-step.done:not(.open) .pf-head { cursor: pointer; }
.pf-sum { flex: 1; color: var(--muted); }
.pf-edit { display: none; color: var(--accent-text); font-weight: 600; font-size: .92rem; }
.pf-step.done:not(.open) .pf-edit { display: inline; }
.js .pf-step:not(.open) .pf-body { display: none; }
.pf-body { padding: 0 8px 20px; animation: rise .35s var(--ease); }
.pf-body legend { font-weight: 500; font-size: .92rem; margin-bottom: 8px; }
.pf-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.pf-type span b { display: block; font-weight: 600; font-size: .96rem; }
.pf-type span small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; line-height: 1.35; margin-top: 2px; }
.pf-opts { margin-bottom: 20px; }
.pf-opt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-opt-grid .pf-choice span { padding: 11px 16px; }
.pf-drop { display: block; padding: 24px 18px; border: 1.5px dashed var(--field-line); border-radius: 12px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.pf-drop:hover { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 5%, var(--surface)); }
.pf-drop:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.pf-drop b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.pf-drop small { display: block; color: var(--muted); margin-top: 2px; }
.pf-type, .pf-choice { position: relative; cursor: pointer; }
.pf-type input, .pf-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pf-type span, .pf-choice span { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--surface); font-weight: 500; transition: border-color .15s, background .15s; }
.pf-type:hover span, .pf-choice:hover span { border-color: var(--ink-2); }
.pf-type input:checked + span, .pf-choice input:checked + span { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); background: color-mix(in srgb, var(--orange) 9%, var(--surface)); }
.pf-type input:focus-visible + span, .pf-choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.pf-when { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.pf-when .pf-choice span { text-align: center; padding: 14px 8px; }
.pf-next { min-width: 160px; }
.pf-fine { margin: 10px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.hero.going { min-height: 0; }
.hero.going .hero-in { padding-top: 100px; }
.hero.going .hero-in > h1, .hero.going .hero-in > p { display: none; }
.top nav a.nav-t { box-shadow: inset 0 0 0 1px currentColor; border-radius: 999px; padding: 6px 14px; }
@media (min-width: 900px) {
  .pf-home { padding: 10px; }
  .pf-home .pf-bar { grid-template-columns: 1fr 1fr 1.4fr auto; align-items: center; border-radius: 999px; }
  .pf-home .pf-bar .field { border-bottom: 0; padding: 12px 24px 10px; border-radius: 999px; }
  .pf-home .pf-bar .field + .field::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
  .pf-home .pf-bar .field:focus-within::before, .pf-home .pf-bar .field:focus-within + .field::before { opacity: 0; }
  .pf-go { margin: 0 8px 0 0; border-radius: 999px; padding-left: 30px; padding-right: 30px; }
  .pf-home.pf-started .pf-bar { grid-template-columns: 1fr 1fr 1.4fr; }
  .pf-home.pf-started .pf-bar .field:nth-child(3) { border-radius: 999px; }
  .pf-rest { padding: 8px 18px 10px; }
  .pf-types { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

@media (min-width: 560px) {
  .two { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 2fr 1fr 1fr auto; }
  .filters input[type=search] { grid-column: auto; padding-right: 14px; }
  .filters .btn { position: static; order: 4; min-height: 50px; padding: 9px 20px; font-size: 1.1rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .top { padding: 16px 40px; gap: 6px 28px; }
  .top nav { order: 2; flex-basis: auto; margin-left: auto; }
  .theme-form { order: 3; margin: 0; }
  .logo img { height: 44px; }
  .hero-in { padding: 110px 40px 40px; }
  .how, .included, .moves, .ops { padding-left: 40px; padding-right: 40px; }
  .how ol { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(5, 1fr); }
  .on-board { padding-left: 40px; padding-right: 40px; }
  .foot { padding-left: 40px; padding-right: 40px; }
  .ops { grid-template-columns: auto 1fr; }
  main:has(.board-page), main:has(.job-wrap), main:has(.portal) { padding-left: 40px; padding-right: 40px; }
  .board-head, .job { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 150px; gap: 18px; align-items: baseline; }
  .board-head { padding: 10px 14px; color: var(--muted); font-size: .78rem; font-weight: 500; }
  .board-head span:last-child, .job-right { text-align: right; }
  .job-to::before { content: none; }
  .with-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .with-photo-main { padding: 60px 40px 80px; max-width: 640px; }
  .side-photo { display: block; }
  .job-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .job-side { grid-column: 2; grid-row: 1; position: sticky; top: 24px; align-self: start; }
  .job-main { grid-column: 1; grid-row: 1; }
  .portal { grid-template-columns: 210px minmax(0, 1fr); }
  .job-hero { margin: -34px 0 0; min-height: 400px; border-radius: 0 0 12px 12px; }
  .job-hero-in { padding: 90px 36px 30px; }
  .route { max-width: 760px; gap: 22px; }
  .progress { margin: 0 0 34px; border: 0; background: none; }
  .progress li { text-align: left; padding-left: 0; }
  .facts { grid-template-columns: 160px 1fr 160px 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); padding: 0 40px; }
  main:has(.solo) { padding-left: 40px; padding-right: 40px; }
  .portal-nav { flex-direction: column; margin: 0; padding: 0; border: 0; overflow: visible; position: sticky; top: 24px; align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-in { animation: none; }
  .btn, .job, .stat { transition: none; }
}
/* The bar sits at the foot of the photo, so suggestions open upward there. */
.pf-home:not(.pf-started) .pf-list { top: auto; bottom: calc(100% + 4px); }
/* Phones: job types as short tiles, the description shows from tablet up. */
@media (max-width: 559px) {
  .pf-type span small { display: none; }
  .pf-type span { padding: 13px 12px; }
  .perks { grid-template-columns: 1fr; }
}

/* Transporter sign up and checks */
.eyebrow { margin: 0 0 6px; color: var(--accent-text); font-weight: 600; font-size: .9rem; }
main:has(.join) { max-width: 1100px; }
.join { display: grid; gap: 28px 56px; }
.join-form { max-width: 460px; }
.join-side { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); align-self: start; }
.join-side h2 { margin: 0 0 4px; font-size: 1.25rem; }
.need { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; }
.need li { display: flex; gap: 12px; align-items: flex-start; }
.need b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; }
.need strong { display: block; }
.need span { color: var(--muted); font-size: .94rem; }
.join-note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }

.checks { max-width: 760px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0 8px; }
.meter span { height: 6px; border-radius: 3px; background: var(--line); }
.meter .meter-ok { background: var(--ok); }
.meter .meter-wait { background: var(--orange); }
.meter .meter-bad { background: var(--bad); }
.meter-text { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.ck { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ck[open] { border-color: var(--field-line); box-shadow: 0 8px 28px rgba(16, 24, 40, .06); }
.ck > summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 16px 18px; list-style: none; cursor: pointer; }
.ck > summary::-webkit-details-marker { display: none; }
.ck-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-size: .92rem; grid-row: span 2; }
.ck-ok .ck-n { background: var(--ok); color: #fff; }
.ck-head strong { display: block; }
.ck-head span { display: block; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.ck-status { grid-column: 2; font-size: .86rem; font-weight: 600; color: var(--muted); }
.ck-ok .ck-status { color: var(--ok); }
.ck-wait .ck-status { color: var(--accent-text); }
.ck-bad .ck-status { color: var(--bad); }
.ck-body { padding: 4px 18px 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.send { margin: 22px 0 0; padding: 20px; border-radius: 14px; background: var(--surface-2); }
.send .check span { color: var(--ink-2); }
.send-hint { margin: 8px 0 0; text-align: center; font-size: .9rem; }
.send-wait { margin: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.badges { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.badges li { padding-left: 24px; position: relative; }
.badges li::before { content: '\2713'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.checked-mark { display: inline-block; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok-ink); font-size: .8rem; font-weight: 600; }
.review { margin-bottom: 22px; }
.review h3 { margin-top: 0; }
.review-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.review-act form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.review-act input[type=text] { min-height: 36px; padding: 6px 10px; width: 180px; }
@media (min-width: 900px) {
  .join { grid-template-columns: minmax(0, 1fr) 400px; padding-top: 10px; }
  .ck > summary { grid-template-columns: auto 1fr auto; }
  .ck-n { grid-row: auto; }
  .ck-status { grid-column: auto; text-align: right; }
}

/* Two front doors: the customer site and the transporters' own address */
.hero-img-day { object-position: 62% 50%; }
.hero-eyebrow { margin: 0 0 10px; color: var(--orange); font-weight: 600; font-size: 1rem !important; }
.hero-t h1 { max-width: 12em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.t-home .ops { padding-top: clamp(40px, 6vw, 80px); }
/* A bright daytime hero needs more shade behind the white headline. */
.hero:has(.hero-img-day)::after { background: linear-gradient(180deg, rgba(8,12,18,.55) 0%, rgba(8,12,18,.18) 24%, rgba(8,12,18,.5) 48%, rgba(8,12,18,.93) 100%); }
@media (max-width: 899px) {
  .side-t .side-tag { display: none; }
  .hero:has(.hero-img-day)::after { background: linear-gradient(180deg, rgba(8,12,18,.55) 0%, rgba(8,12,18,.3) 20%, rgba(8,12,18,.7) 42%, rgba(8,12,18,.95) 100%); }
}
