/* =========================================================================
   Truck Service Hub — inner pages (v1)
   Used by: /jobs, /jobs/{slug}, /for-drivers, /for-companies, /company-details
   Same look as the homepage. Everything is scoped under .tsh-page, so the
   old template CSS on other pages is untouched.
   ========================================================================= */

.tsh-page {
  --bg: #05070A;
  --bg-2: #080B10;
  --card: #0F151D;
  --card-2: #0E131A;
  --line: #1F2732;
  --line-2: #1C2430;
  --field: #0B0F14;
  --field-line: #2A3441;
  --orange: #e8540e;
  --orange-hi: #FF8A50;
  --orange-ink: #B23F08;
  --text: #FFFFFF;
  --text-2: #D5DAE0;
  --muted: #B9C0C9;
  --muted-2: #A8B0BA;
  --pad-x: clamp(20px, 4.5vw, 64px);
  --pad-y: clamp(56px, 6vw, 88px);      /* space between sections: moderate (Marko, Nov 23) */
  --max: 1312px;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- low-specificity reset: component classes always win ---- */
:where(.tsh-page) *, :where(.tsh-page) *::before, :where(.tsh-page) *::after { box-sizing: border-box; }
:where(.tsh-page) :where(h1, h2, h3, p, ul) { margin: 0; color: inherit; }
:where(.tsh-page) ul { padding: 0; list-style: none; }
:where(.tsh-page) a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, transform .2s; }
:where(.tsh-page a):hover { color: var(--orange-hi); }
:where(.tsh-page) button, :where(.tsh-page) input, :where(.tsh-page) select, :where(.tsh-page) textarea { font: inherit; }
:where(.tsh-page) :where(img, svg) { display: block; max-width: 100%; }
.tsh-page :focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 6px; }

/* ---- layout ---- */
.tsh-wrap { max-width: var(--max); margin: 0 auto; }
.tsh-section { padding: var(--pad-y) var(--pad-x); }
.tsh-section--alt { background: var(--bg-2); border-top: 1px solid #141A22; }
.tsh-stack { display: flex; flex-direction: column; gap: 40px; }
.tsh-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.tsh-row--top { align-items: flex-start; }
.tsh-col { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tsh-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.tsh-head__text { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

.tsh-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-hi); }
.tsh-h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 88px); line-height: .95; letter-spacing: -.045em; }
.tsh-h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 60px); line-height: 1; letter-spacing: -.04em; }
.tsh-h3 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.tsh-accent { color: var(--orange); }
.tsh-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); max-width: 640px; }
.tsh-small { font-size: 14px; color: var(--muted-2); }
.tsh-crumbs { font-size: 14px; color: var(--muted-2); }
.tsh-crumbs a { color: var(--muted-2); }
.tsh-crumbs span[aria-current] { color: var(--text-2); }

/* ---- buttons ---- */
.tsh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; text-align: center; }
.tsh-btn--orange { background: var(--orange); color: #fff; }
.tsh-btn--orange:hover { background: #ff6a24; color: #fff; }
.tsh-btn--white { background: #fff; color: var(--bg); }
.tsh-btn--white:hover { background: #ffe3d3; color: var(--bg); }
.tsh-btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; font-weight: 600; }
.tsh-btn--ghost:hover { border-color: #fff; color: #fff; }
.tsh-btn--block { width: 100%; border-radius: 14px; }
/* A form's Submit while it's sending (tsh-pages.js, forms fix Nov 25). */
.tsh-btn:disabled, .tsh-btn:disabled:hover { background: #5b5f66; border-color: transparent; color: #d7d9dc; cursor: wait; }
.tsh-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- hero ---- */
.tsh-hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 64px) var(--pad-x) clamp(56px, 6vw, 88px); border-bottom: 1px solid #141A22; }
.tsh-hero__glow { position: absolute; right: -200px; top: -220px; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, rgba(232,84,14,.20), rgba(232,84,14,0) 65%); pointer-events: none; }
.tsh-hero > .tsh-wrap { position: relative; }
.tsh-stats { display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; color: var(--muted-2); }
.tsh-stat { display: flex; flex-direction: column; gap: 4px; }
.tsh-stat b { font-family: var(--mono); font-weight: 500; font-size: 26px; color: #fff; }

/* ---- video box ---- */
.tsh-video { position: relative; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse at 65% 35%, rgba(232,84,14,.30), rgba(0,0,0,0) 60%), #11161D; border: 1px solid var(--line); }
.tsh-video--wide { aspect-ratio: 16 / 9; }
.tsh-video img, .tsh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.tsh-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 99px; border: none; background: var(--orange); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 14px rgba(232,84,14,.18); cursor: pointer; z-index: 2; transition: transform .25s; }
.tsh-video__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.tsh-video__who { position: absolute; left: 24px; bottom: 20px; display: flex; flex-direction: column; gap: 2px; z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.tsh-video__who b { font-size: 17px; }
.tsh-video__who span { font-size: 14px; color: #C9CFD6; }
.tsh-video.is-playing .tsh-video__play, .tsh-video.is-playing .tsh-video__who { display: none; }

/* ---- job list rows (/jobs) ---- */
.tsh-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tsh-filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field-line); background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.tsh-filter[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0B0F14; font-weight: 700; }
.tsh-joblist { display: flex; flex-direction: column; gap: 16px; }
.tsh-jobrow { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding: 28px 32px; background: linear-gradient(180deg, #11171F, #0B0F14); border: 1px solid var(--line); border-radius: 24px; }
.tsh-jobrow:hover { border-color: #3A4554; color: #fff; transform: translateY(-2px); }
.tsh-jobrow[hidden] { display: none; }
.tsh-jobrow__pay { flex: 0 0 260px; display: flex; flex-direction: column; gap: 4px; }
.tsh-jobrow__pay b { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.tsh-jobrow__pay span { font-size: 13px; color: var(--muted-2); }
.tsh-jobrow__main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tsh-jobrow__title { font-size: 19px; font-weight: 700; color: #fff; }
.tsh-jobrow__meta { font-size: 15px; color: var(--muted); }
.tsh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tsh-tag { font-size: 13px; font-weight: 600; color: var(--text-2); border: 1px solid var(--field-line); border-radius: 999px; padding: 6px 12px; }
.tsh-jobrow__go { flex: 0 0 auto; }
.tsh-empty { padding: 36px 32px; border: 1px dashed #39414C; border-radius: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.tsh-empty[hidden] { display: none; }
.tsh-empty b { display: block; font-size: 22px; margin-bottom: 6px; }

/* ---- job cards (white) ---- */
.tsh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.tsh-jobcard { background: #fff; color: #0B0F14; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tsh-jobcard:hover { color: #0B0F14; transform: translateY(-3px); }
.tsh-jobcard__kind { font-size: 12px; font-weight: 700; color: var(--orange-ink); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsh-jobcard__pay { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tsh-jobcard__meta { font-size: 14px; color: #4B5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- job page ---- */
.tsh-carrier { display: flex; align-items: center; gap: 14px; }
.tsh-carrier__logo { width: 56px; height: 56px; flex: none; border-radius: 14px; background: #fff; object-fit: contain; padding: 6px; }
.tsh-carrier__name { font-size: 17px; font-weight: 700; }
.tsh-job-title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.tsh-bigpay { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 104px); line-height: .92; letter-spacing: -.05em; }
.tsh-bigpay small { font-size: .4em; color: var(--muted-2); letter-spacing: -.02em; }
.tsh-photo { flex: 1 1 520px; min-width: 0; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #11161D; border: 1px solid var(--line); position: relative; }
.tsh-photo__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tsh-photo__track::-webkit-scrollbar { display: none; }
.tsh-photo__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.tsh-photo__count { position: absolute; right: 14px; bottom: 14px; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.6); }
.tsh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; }
.tsh-fact { background: var(--field); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.tsh-fact span { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase; }
.tsh-fact b { font-size: 18px; }
/* the job description from admin, shown as-is */
.tsh-prose { max-width: 860px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.tsh-prose > * + * { margin-top: 16px; }
.tsh-prose h2, .tsh-prose h3, .tsh-prose strong:only-child { color: #fff; }
.tsh-prose h2, .tsh-prose h3 { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 32px; }
.tsh-prose ul { padding-left: 0; list-style: none; }
.tsh-prose ul li { padding-left: 22px; position: relative; margin-top: 8px; }
.tsh-prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--orange); }
.tsh-prose a { color: var(--orange-hi); text-decoration: underline; }
.tsh-me { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.tsh-me img { width: 64px; height: 64px; flex: none; border-radius: 99px; object-fit: cover; }
.tsh-me span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.tsh-me b { font-size: 16px; color: #fff; }

/* sticky Apply/Call bar on phones (job page) */
.tsh-applybar { display: none; }
@media (max-width: 760px) {
  .tsh-applybar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 8px; border-radius: 18px; background: rgba(11,15,20,.94); border: 1px solid var(--line); box-shadow: 0 -10px 40px rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .tsh-applybar .tsh-btn { min-height: 52px; border-radius: 12px; padding: 0 10px; }
  .tsh-page--applybar .tsh-footer { padding-bottom: 110px; }
  .tsh-page--applybar .tsh-totop { bottom: 96px; }
}

/* ---- "sound familiar" ---- */
.tsh-quotes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.4vw, 64px); letter-spacing: -.035em; line-height: 1.05; color: #6B7480; }
.tsh-center { text-align: center; align-items: center; margin: 0 auto; }

/* ---- cards ---- */
.tsh-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.tsh-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.tsh-card { background: linear-gradient(180deg, #131A23 0%, #0A0E13 100%); border: 1px solid var(--line); border-radius: 26px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
a.tsh-card:hover { border-color: #3A4554; color: #fff; transform: translateY(-3px); }
.tsh-card--hot { background: linear-gradient(180deg, #1A130F 0%, #0A0E13 100%); border-color: rgba(232,84,14,.45); }
.tsh-card__title { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.tsh-card__text { font-size: 16px; color: var(--muted); line-height: 1.55; }
.tsh-card__go { margin-top: auto; font-weight: 700; color: var(--orange-hi); }
.tsh-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tsh-label { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--muted-2); text-transform: uppercase; }
.tsh-label--hot { color: var(--orange-hi); }
.tsh-pill { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid #39414C; }
.tsh-pill--hot { border-color: rgba(232,84,14,.5); }

/* glowing border card (Elite, $0 card) */
.tsh-glow { border-radius: 28px; padding: 1px; background: linear-gradient(160deg, var(--orange), rgba(232,84,14,.15) 40%, var(--line-2)); }
.tsh-glow__inner { border-radius: 27px; background: linear-gradient(180deg, #14110F, #0B0E12); padding: 32px; }

/* reasons grid */
.tsh-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden; }
.tsh-reason { background: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.tsh-section--alt .tsh-reason { background: var(--bg-2); }
.tsh-reason__n { font-family: var(--mono); font-size: 14px; color: var(--orange-hi); }
.tsh-reason__title { font-size: 21px; font-weight: 700; }
.tsh-reason__text { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* steps */
.tsh-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.tsh-step { display: flex; flex-direction: column; gap: 14px; }
.tsh-step__n { font-family: var(--display); font-size: clamp(80px, 8vw, 110px); font-weight: 800; line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--orange); }
.tsh-step__line { height: 1px; background: linear-gradient(90deg, var(--orange), rgba(232,84,14,0)); }
.tsh-step__title { font-family: var(--display); font-size: 26px; font-weight: 800; }
.tsh-step__text { font-size: 16px; color: var(--muted); line-height: 1.6; }

/* prices */
.tsh-prices2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tsh-pricebox { background: var(--field); border: 1px solid #262C35; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tsh-pricebox span { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.tsh-pricebox b { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.tsh-pricebox small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tsh-from small { font-size: 15px; font-weight: 600; color: var(--muted-2); }
.tsh-dash li { padding-left: 0; font-size: 15px; color: var(--text-2); line-height: 1.5; margin-top: 8px; }
.tsh-dash li::before { content: "— "; }

/* ---- forms ---- */
.tsh-form { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; flex: 1 1 520px; min-width: 0; }
.tsh-form__full { grid-column: 1 / -1; }
.tsh-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted-2); font-weight: 600; }
.tsh-field input, .tsh-field select, .tsh-field textarea { min-height: 50px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--field); color: #fff; padding: 0 14px; font: 500 16px var(--body); width: 100%; }
.tsh-field textarea { padding: 12px 14px; resize: vertical; }
.tsh-field select option { color: #000; }
.tsh-field input:focus, .tsh-field select:focus, .tsh-field textarea:focus { outline: none; border-color: var(--orange); }
.tsh-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; font-weight: 500; }
.tsh-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--orange); }
.tsh-checkrow { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tsh-checkrow .tsh-check { align-items: center; color: var(--text-2); }
.tsh-checkrow .tsh-check input { margin-top: 0; }
.tsh-form .tsh-btn { min-height: 58px; font-size: 17px; }
.tsh-loginbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(232,84,14,.10); border: 1px solid rgba(232,84,14,.35); font-size: 15px; font-weight: 600; }
.tsh-loginbar .tsh-btns .tsh-btn { min-height: 42px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
@media (max-width: 560px) { .tsh-form { grid-template-columns: 1fr; } }

/* ---- companies directory (was /services/cdl-jobs, removed Nov 24; kept for the shared .tsh-co styles) ---- */
.tsh-elite__body { display: flex; flex-wrap: wrap; gap: 32px; }
.tsh-elite__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tsh-elite__side { flex: 0 1 260px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.tsh-co__logo { width: 52px; height: 52px; flex: none; border-radius: 12px; background: #fff; object-fit: contain; padding: 5px; }
.tsh-co__logo--big { width: 64px; height: 64px; border-radius: 16px; }
.tsh-co__logo--none { background: #1A2028; border: 1px solid var(--field-line); }
.tsh-co__name { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsh-co__name--big { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; white-space: normal; }
.tsh-co__addr { font-size: 14px; color: var(--muted-2); }
.tsh-co__text { font-size: 15px; color: var(--text-2); line-height: 1.6; white-space: pre-line; }
.tsh-cogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.tsh-co { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.tsh-co__head { display: flex; align-items: center; gap: 14px; }
.tsh-co__head > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tsh-co__desc { font-size: 14px; color: var(--muted); line-height: 1.55; white-space: pre-line; }
.tsh-co__desc .tsh-more-rest[hidden] { display: none; }
.tsh-more { border: none; background: none; padding: 0; color: var(--orange-hi); font: 700 14px var(--body); cursor: pointer; }
.tsh-co__actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.tsh-co__btn { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field-line); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: var(--text-2); background: transparent; cursor: pointer; }
.tsh-co__btn--main { flex: 1; background: #fff; color: #0B0F14; border-color: #fff; font-weight: 700; }
.tsh-co__btn--main:hover { color: #0B0F14; background: #ffe3d3; }

/* ---- related strip ---- */
.tsh-related { padding: 40px var(--pad-x); border-top: 1px solid #141A22; }
.tsh-related .tsh-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tsh-related nav { display: flex; flex-wrap: wrap; gap: 10px; }
.tsh-related nav a { border: 1px solid var(--field-line); border-radius: 999px; padding: 10px 16px; font-size: 14px; color: var(--text-2); }

/* ---- footer (same as homepage) ---- */
.tsh-footer { border-top: 1px solid #1A212B; padding: 56px var(--pad-x) 40px; }
.tsh-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; font-size: 15px; }
.tsh-footer__col { display: flex; flex-direction: column; gap: 10px; }
.tsh-footer__col a { color: var(--text-2); }
.tsh-footer .tsh-logo img { height: 44px; width: auto; }
.tsh-footer__label { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted-2); }
.tsh-footer__about { color: var(--muted-2); line-height: 1.5; }
.tsh-footer__bottom { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid #1A212B; font-size: 14px; color: var(--muted-2); }
.tsh-footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.tsh-footer__bottom a { color: var(--text-2); }

/* ---- back-to-top with progress ring (all new pages) ---- */
.tsh-totop { position: fixed; right: 24px; bottom: 24px; z-index: 55; width: 56px; height: 56px; border-radius: 99px; border: none; padding: 0; background: rgba(11,15,20,.92); box-shadow: 0 10px 30px rgba(0,0,0,.5); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
.tsh-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.tsh-totop__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.tsh-totop__ring circle { fill: none; stroke-width: 3; }
.tsh-totop__track { stroke: #263140; }
.tsh-totop__bar { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 157.08; stroke-dashoffset: 157.08; }
.tsh-totop__arrow { position: relative; }
@media (max-width: 760px) { .tsh-totop { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* ---- reveal + reduced motion ---- */
.tsh-js .tsh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.tsh-js .tsh-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tsh-page *, .tsh-page *::before, .tsh-page *::after { animation: none !important; transition: none !important; }
  .tsh-js .tsh-reveal { opacity: 1; transform: none; }
}

/* ---- FAQ (for-drivers) ---- */
.tsh-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-items: start; }
@media (max-width: 860px) { .tsh-faq { grid-template-columns: 1fr; } }
.tsh-faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tsh-faq__item[open] { border-color: var(--line-2); }
.tsh-faq__q { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 600; font-size: 17px; color: #fff; }
.tsh-faq__q::-webkit-details-marker { display: none; }
.tsh-faq__q::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 1; color: var(--orange-hi); }
.tsh-faq__item[open] .tsh-faq__q::after { content: "\2212"; }
.tsh-faq__a { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.6; }

/* ---- Company form: hiring-details sections (Nov 23) ---- */
.tsh-form__sec { grid-column: 1 / -1; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-hi); }
.tsh-loginbar + .tsh-form__sec { margin-top: 0; }
.tsh-form__sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.tsh-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.tsh-fs legend { padding: 0; margin-bottom: 8px; }
.tsh-hint { font-weight: 500; color: var(--muted-2); opacity: .75; }
.tsh-form__range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.tsh-form__range > span { color: var(--muted-2); }
.tsh-form__trio { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 14px; }
@media (max-width: 560px) { .tsh-form { grid-template-columns: 1fr; } .tsh-form__trio { grid-template-columns: 1fr 1fr; } .tsh-form__trio > :last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) { .tsh-col--sticky { position: sticky; top: 96px; align-self: flex-start; } }
.tsh-loginbar--soft { background: var(--field); border-color: var(--line); font-weight: 500; color: var(--text-2); }

/* =========================================================================
   Site additions (install, Nov 24): the real driver form's extra states.
   ========================================================================= */
.tsh-driver-form { flex: 1 1 520px; min-width: 0; display: flex; }
.tsh-driver-form > .tsh-form { flex: 1 1 auto; }
.tsh-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tsh-form__errors { background: rgba(220,53,69,.12); border: 1px solid rgba(220,53,69,.5); color: #FFB3BA; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.tsh-form__note { margin: 0; color: var(--text-2); font-size: 15px; }
.tsh-fieldset { border: 0; padding: 0; margin: 0; }
.tsh-fieldset legend { padding: 0; margin-bottom: 6px; font-size: 13px; float: none; width: auto; }
.tsh-form--done { align-content: start; }
.tsh-form--done .tsh-h3 { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; color: #fff; }
.tsh-form--done .tsh-lead { margin: 0; }
.tsh-upload { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.tsh-upload input[type=file] { padding: 12px 14px; }
.tsh-nowrap { white-space: nowrap; }
@media (max-width: 560px) { .tsh-form { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================================
   Overrides for the old template CSS (README section 5), same approach as
   tsh-home.css. The template styles bare tags (default.css: section
   { background: #fff; padding: 120px 0 }, h1–h6 { color: #0f313a } …) and the
   :where() reset above has zero specificity, so it loses to them. These carry
   one element's specificity and load after the template, so they win there;
   every .tsh-* class rule still wins over them.
   ========================================================================= */
:where(.tsh-page) section { background: transparent; }
:where(.tsh-page) :is(h1, h2, h3, h4, h5, h6) { color: inherit; font-family: inherit; line-height: inherit; margin: 0; }
:where(.tsh-page) :is(p, ul, li, label, legend) { color: inherit; }
:where(.tsh-page) label { margin: 0; }
body:has(.tsh-page) { background: #05070A; }
.tsh-flash { margin: 16px auto 0; max-width: min(720px, calc(100% - 32px)); padding: 14px 18px; border-radius: 14px; font-weight: 600; text-align: center; }
.tsh-flash--success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.45); color: #BBF7D0; }
.tsh-flash--error { background: rgba(220,53,69,.12); border: 1px solid rgba(220,53,69,.5); color: #FFB3BA; }
/* The directory's reveal script puts the number in an <a class="text-white">
   (Bootstrap, !important). Inside the new buttons it takes the button's colour. */
.tsh-page :is(.tsh-btn, .tsh-co__btn) > :is(a, span).text-white { color: inherit !important; }
/* A vendor's own line breaks in their admin text survive, as on the old cards. */
.tsh-page :is(.tsh-co__text, .tsh-co__desc) { white-space: pre-line; }
.tsh-err { color: #FF9AA4; font-size: 13px; font-weight: 600; }
/* Bootstrap's legend { font-size: 1.5rem; float: left; width: 100% } leaks into the form fieldsets. */
.tsh-page :is(.tsh-fs, .tsh-fieldset) legend { font-size: 13px; line-height: 1.4; font-weight: 600; float: none; width: auto; margin: 0 0 6px; padding: 0; color: var(--muted-2); }
/* Sticky columns: overflow:hidden on an ancestor stops position:sticky. The
   template sets it on every section; the page uses clip instead (same
   sideways clipping, no scroll container). */
:where(.tsh-page) section { overflow: visible; }
.tsh-page { overflow-x: clip; }

/* ---- "Driver's Verdict" job card (TSH update Nov 24, section 3) ---------
   Approved design: docs/TSH_Jobs_Update_Nov24/designs/TSH_Job_Cards_DriversVerdict_APPROVED.html
   Desktop: two columns (details | Marko's take). Phones: one column. */
.tsh-verdicts { display: flex; flex-direction: column; gap: 24px; }
.tsh-verdict { background: #10151C; border: 1px solid #1F2732; border-radius: 20px; padding: 30px 34px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; color: #fff; }
.tsh-verdict[hidden] { display: none; }
.tsh-verdict__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tsh-verdict__head { display: flex; flex-direction: column; gap: 8px; }
.tsh-verdict__kicker { font-size: 13px; font-weight: 600; color: #A8B0BA; }
.tsh-verdict__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
.tsh-verdict__title a { color: inherit; text-decoration: none; }
.tsh-verdict__title a:hover { color: #FF8A50; }
.tsh-verdict__desc { margin: 0; font-size: 15px; color: #B9C0C9; }
.tsh-verdict__pay { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.tsh-verdict__paybig { font-family: var(--mono); font-weight: 700; font-size: 38px; color: #e8540e; line-height: 1; }
.tsh-verdict__paysub { font-size: 15px; color: #B9C0C9; }
.tsh-verdict__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tsh-verdict__chip { font-size: 14px; font-weight: 500; background: #0B0F14; border: 1px solid #1F2732; padding: 8px 14px; border-radius: 999px; color: #fff; }
.tsh-verdict__fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tsh-verdict__box { background: #0B0F14; border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.tsh-verdict__boxlabel { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tsh-verdict__boxlabel--good { color: #7CD992; }
.tsh-verdict__boxlabel--skip { color: #FF8A50; }
.tsh-verdict__boxtext { font-size: 15px; color: #D5DAE0; line-height: 1.45; }
.tsh-verdict__side { background: #161B22; border: 1px solid #39414C; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.tsh-verdict__take { display: flex; flex-direction: column; gap: 14px; }
.tsh-verdict__who { display: flex; align-items: center; gap: 12px; }
.tsh-verdict__mc { width: 64px; height: 64px; flex: none; border-radius: 999px; background: #e8540e; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 16px; color: #fff; }
.tsh-verdict__whotext { display: flex; flex-direction: column; }
@media (max-width: 640px) { .tsh-verdict__mc { width: 56px; height: 56px; } }
.tsh-me .tsh-me__mc { width: 56px; height: 56px; flex: none; border-radius: 999px; background: #e8540e; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 16px; color: #fff; }
/* Marko's photo over the "MC" circle (partials/tsh/marko-photo, dev handoff Nov 25, task 3). */
.tsh-mphoto { position: relative; overflow: hidden; box-sizing: border-box; }
.tsh-mphoto img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.tsh-mphoto:has(img) { border: 2px solid #e8540e; }
.tsh-verdict__whotext b { font-weight: 700; font-size: 15px; }
.tsh-verdict__whotext span { font-size: 13px; color: #A8B0BA; }
.tsh-verdict__quote { margin: 0; font-size: 16px; line-height: 1.55; color: #D5DAE0; }
.tsh-verdict__apply { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: #e8540e; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center; transition: background .2s; }
.tsh-verdict__apply:hover { background: #FF6A26; color: #fff; }
@media (max-width: 900px) {
  .tsh-verdict { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; gap: 22px; }
  .tsh-verdict__fit { grid-template-columns: minmax(0, 1fr); }
  .tsh-verdict__paybig { font-size: 32px; }
  .tsh-verdict__title { font-size: 23px; }
}

/* "What it costs" box above Submit on /company-details (Nov 25 forms file, task 3) */
.tsh-costbox { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #1A130F 0%, #0A0E13 100%); border: 1px solid rgba(232,84,14,.45); }
.tsh-costbox__title { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.tsh-costbox__note { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); line-height: 1.5; }
@media (max-width: 420px) { .tsh-costbox .tsh-prices2 { grid-template-columns: 1fr; } }

/* Dec 1 bundle, fix 2: the homepage footer now sits under every page (partials/tsh/site-footer).
   Old light pages keep their white page background; only the footer itself is dark. */
body:has(.tsh-page--site-footer) { background: #fff; }
body:has(.tsh-page--site-footer):has(.tsh-listings, .tsh-dq, .tsh-ct) { background: #05070A; }
.tsh-page--site-footer { overflow-x: clip; }
