/* ============================================================
   GroundHive – theme + components (Bootstrap 5.3 override layer)
   Light & dark themes are driven by [data-theme] on <html>,
   set before paint by the inline script in layouts/groundhive.
   Built for phones first: big type, big tap targets, high contrast.
   ============================================================ */

/* ── Theme tokens ─────────────────────────────────────────── */
:root {
  /* Dark (default) */
  --gh-bg:            #0b0d10;
  --gh-surface:       #15191e;
  --gh-surface-2:     #1c2128;
  --gh-surface-3:     #252b34;
  --gh-border:        #2c333d;
  --gh-border-strong: #414a57;
  --gh-text:          #f2f4f7;
  --gh-muted:         #b8c0cc;
  --gh-subtle:        #8f99a8;
  --gh-brand:         #f5a800;
  --gh-brand-hover:   #ffbb29;
  --gh-brand-text:    #ffc23d;
  --gh-brand-text-rgb: 255, 194, 61;
  --gh-on-brand:      #141414;
  --gh-brand-soft:    rgba(245, 168, 0, 0.14);
  --gh-brand-border:  rgba(245, 168, 0, 0.45);
  --gh-pay:           #3ddc84;
  --gh-success:       #4ade80;
  --gh-success-soft:  rgba(74, 222, 128, 0.14);
  --gh-info:          #8cbcff;
  --gh-info-soft:     rgba(124, 180, 255, 0.15);
  --gh-danger:        #ff8a8a;
  --gh-danger-soft:   rgba(255, 122, 122, 0.14);
  --gh-input-bg:      #0f1216;
  --gh-topbar-bg:     rgba(11, 13, 16, 0.92);
  --gh-hero-glow:     rgba(245, 168, 0, 0.16);
  --gh-shadow:        0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
  --gh-shadow-up:     0 -6px 24px rgba(0, 0, 0, 0.45);
  --gh-focus:         0 0 0 3px rgba(245, 168, 0, 0.55);

  --gh-radius-sm: 10px;
  --gh-radius:    14px;
  --gh-radius-lg: 20px;
  --gh-font-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gh-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gh-topbar-h:    64px;
  --gh-bottomnav-h: 70px;
  --gh-safe-b: env(safe-area-inset-bottom, 0px);
  /* Space reserved at the bottom of the screen on phones (tab bar). */
  --gh-bottom-offset: calc(var(--gh-bottomnav-h) + var(--gh-safe-b));

  color-scheme: dark;
}

:root[data-theme="light"] {
  --gh-bg:            #f4f2ee;
  --gh-surface:       #ffffff;
  --gh-surface-2:     #f8f6f2;
  --gh-surface-3:     #eeebe5;
  --gh-border:        #dcd6cc;
  --gh-border-strong: #b9b1a4;
  --gh-text:          #16181c;
  --gh-muted:         #454c58;
  --gh-subtle:        #5f6773;
  --gh-brand:         #f5a800;
  --gh-brand-hover:   #e39b00;
  --gh-brand-text:    #8f5400;
  --gh-brand-text-rgb: 143, 84, 0;
  --gh-on-brand:      #141414;
  --gh-brand-soft:    rgba(245, 168, 0, 0.16);
  --gh-brand-border:  rgba(184, 116, 0, 0.55);
  --gh-pay:           #047857;
  --gh-success:       #047857;
  --gh-success-soft:  #e2f4ea;
  --gh-info:          #1d4ed8;
  --gh-info-soft:     #e5edfc;
  --gh-danger:        #b91c1c;
  --gh-danger-soft:   #fde9e9;
  --gh-input-bg:      #ffffff;
  --gh-topbar-bg:     rgba(255, 255, 255, 0.94);
  --gh-hero-glow:     rgba(245, 168, 0, 0.22);
  --gh-shadow:        0 1px 2px rgba(20, 20, 20, 0.06), 0 8px 22px rgba(20, 20, 20, 0.07);
  --gh-shadow-up:     0 -6px 22px rgba(20, 20, 20, 0.08);
  --gh-focus:         0 0 0 3px rgba(214, 140, 0, 0.55);

  color-scheme: light;
}

/* Bridge our tokens into Bootstrap so its components follow the theme. */
html[data-bs-theme] {
  --bs-body-bg: var(--gh-bg);
  --bs-body-color: var(--gh-text);
  --bs-body-font-family: var(--gh-font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.55;
  --bs-emphasis-color: var(--gh-text);
  --bs-heading-color: var(--gh-text);
  --bs-secondary-color: var(--gh-muted);
  --bs-tertiary-color: var(--gh-subtle);
  --bs-secondary-bg: var(--gh-surface-3);
  --bs-tertiary-bg: var(--gh-surface-2);
  --bs-border-color: var(--gh-border);
  --bs-border-radius: var(--gh-radius-sm);
  --bs-link-color: var(--gh-brand-text);
  --bs-link-color-rgb: var(--gh-brand-text-rgb);
  --bs-link-hover-color: var(--gh-brand-text);
  --bs-link-hover-color-rgb: var(--gh-brand-text-rgb);
  --bs-focus-ring-color: rgba(245, 168, 0, 0.45);
}

/* ── Base ─────────────────────────────────────────────────── */
/* 15px root: every rem-based size (type, spacing) one notch smaller.
   Tap targets use px min-heights, so they keep their size. */
html { font-size: 93.75%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.gh-body {
  background: var(--gh-bg);
  color: var(--gh-text);
  font-family: var(--gh-font-body);
  font-weight: 500;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(245, 168, 0, 0.18);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--gh-font-head);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--gh-text);
}

a { text-underline-offset: 3px; }
strong, b { font-weight: 800; }
hr { border-color: var(--gh-border); opacity: 1; }

:focus-visible { outline: 3px solid var(--gh-brand); outline-offset: 2px; }

.gh-skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 2000;
  background: var(--gh-brand);
  color: var(--gh-on-brand);
  padding: 0.6rem 1rem;
  border-radius: var(--gh-radius-sm);
  font-weight: 800;
  text-decoration: none;
}
.gh-skip:focus { top: 0.75rem; }

.gh-main { min-height: calc(100vh - var(--gh-topbar-h)); }
.gh-page { padding-top: 1.25rem; padding-bottom: 2.5rem; }
.gh-narrow   { max-width: 520px; margin-inline: auto; }
.gh-medium   { max-width: 760px; margin-inline: auto; }
.gh-wide     { max-width: 960px; margin-inline: auto; }

.gh-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.gh-page-title {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  margin: 0;
}
.gh-page-sub { color: var(--gh-muted); margin: 0.25rem 0 0; font-size: 1.05rem; }

/* ============================================================
   TOP BAR
   ============================================================ */
.gh-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--gh-topbar-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--gh-border);
  padding-top: env(safe-area-inset-top, 0px);
}

.gh-topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--gh-topbar-h);
}

.gh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--gh-font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gh-text);
  text-decoration: none;
  flex-shrink: 0;
}
.gh-brand:hover { color: var(--gh-text); }
.gh-brand-accent { color: var(--gh-brand-text); }
.gh-brand-icon { width: 34px; height: 34px; color: var(--gh-brand); flex-shrink: 0; }

.gh-topnav { gap: 0.25rem; margin-left: 1rem; }
.gh-topnav-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gh-muted);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: var(--gh-radius-sm);
}
.gh-topnav-link:hover { color: var(--gh-text); background: var(--gh-surface-2); }
.gh-topnav-link.active { color: var(--gh-text); background: var(--gh-brand-soft); box-shadow: inset 0 -3px 0 var(--gh-brand); }

.gh-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.gh-topbar-user { color: var(--gh-muted); font-weight: 600; font-size: 0.95rem; }

.gh-theme-btn,
.gh-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  min-width: 40px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--gh-border-strong);
  border-radius: 999px;
  background: var(--gh-surface);
  color: var(--gh-text);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}
.gh-icon-btn { padding: 0; }
.gh-theme-btn i, .gh-icon-btn i { font-size: 1.1rem; color: var(--gh-brand-text); }

@media (max-width: 359.98px) {
  .gh-brand { font-size: 1.2rem; }
  .gh-brand-icon { width: 28px; height: 28px; }
  .gh-theme-btn { padding: 0; }
  .gh-theme-btn [data-theme-label] {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.gh-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #e5484d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  border: 2px solid var(--gh-surface);
}

/* ============================================================
   BOTTOM TAB BAR (phones)
   ============================================================ */
.gh-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1035;
  display: flex;
  background: var(--gh-surface);
  border-top: 1px solid var(--gh-border);
  box-shadow: var(--gh-shadow-up);
  padding-bottom: var(--gh-safe-b);
}

.gh-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--gh-bottomnav-h);
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--gh-muted);
  text-decoration: none;
  font-family: var(--gh-font-body);
  position: relative;
  cursor: pointer;
}
.gh-tab-icon { position: relative; font-size: 1.5rem; line-height: 1; }
.gh-tab-icon .gh-count { top: -8px; right: -14px; }
.gh-tab-label { font-size: 0.82rem; font-weight: 700; line-height: 1.1; }
.gh-tab:hover { color: var(--gh-text); }
.gh-tab.active { color: var(--gh-text); }
.gh-tab.active .gh-tab-icon { color: var(--gh-brand-text); }
.gh-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--gh-brand);
}

@media (max-width: 991.98px) {
  body.gh-body { padding-bottom: calc(var(--gh-bottom-offset) + 0.5rem); }
}
@media (min-width: 992px) {
  :root { --gh-bottom-offset: 0px; }
}

/* ============================================================
   BOTTOM SHEETS (alerts, filters)
   ============================================================ */
.gh-sheet.offcanvas-bottom {
  height: auto;
  max-height: 85vh;
  max-height: 85dvh;
  background: var(--gh-surface);
  color: var(--gh-text);
  border-top: 0;
  border-radius: var(--gh-radius-lg) var(--gh-radius-lg) 0 0;
  padding-bottom: var(--gh-safe-b);
  max-width: 640px;
  margin-inline: auto;
}
.gh-sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--gh-border-strong);
  margin: 10px auto 0;
}
.gh-sheet .offcanvas-header { padding: 0.9rem 1.25rem 0.5rem; }
.gh-sheet .offcanvas-title { font-size: 1.35rem; font-weight: 700; }
.gh-sheet .offcanvas-body { padding: 0.5rem 1.25rem 1.25rem; }
.gh-sheet .btn-close { width: 1.25em; height: 1.25em; padding: 0.75rem; }

.gh-alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.gh-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  background: var(--gh-surface-2);
  color: var(--gh-text);
  text-decoration: none;
}
a.gh-alert-item:hover { border-color: var(--gh-brand-border); color: var(--gh-text); }
.gh-alert-item i { font-size: 1.35rem; color: var(--gh-brand-text); line-height: 1.2; }
.gh-alert-text { font-weight: 600; line-height: 1.4; }
.gh-alert-text small { display: block; color: var(--gh-muted); font-weight: 600; margin-top: 2px; font-size: 0.9rem; }
.gh-alert-empty { color: var(--gh-muted); text-align: center; padding: 1.5rem 0.5rem; font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gh,
.btn-gh-primary,
.btn-gh-apply,
.btn-gh-submit,
.btn-gh-outline,
.btn-gh-danger {
  --bs-btn-focus-box-shadow: var(--gh-focus);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: var(--gh-radius-sm);
  border: 2px solid transparent;
  font-family: var(--gh-font-body);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-gh,
.btn-gh-primary,
.btn-gh-apply,
.btn-gh-submit {
  --bs-btn-bg: var(--gh-brand);
  --bs-btn-color: var(--gh-on-brand);
  --bs-btn-border-color: var(--gh-brand);
  --bs-btn-hover-bg: var(--gh-brand-hover);
  --bs-btn-hover-color: var(--gh-on-brand);
  --bs-btn-hover-border-color: var(--gh-brand-hover);
  --bs-btn-active-bg: var(--gh-brand-hover);
  --bs-btn-active-color: var(--gh-on-brand);
  --bs-btn-active-border-color: var(--gh-brand-hover);
  --bs-btn-disabled-bg: var(--gh-brand);
  --bs-btn-disabled-color: var(--gh-on-brand);
  --bs-btn-disabled-border-color: var(--gh-brand);
  background: var(--gh-brand);
  border-color: var(--gh-brand);
  color: var(--gh-on-brand);
}
.btn-gh:hover, .btn-gh-primary:hover, .btn-gh-apply:hover, .btn-gh-submit:hover,
.btn-gh:active, .btn-gh-primary:active, .btn-gh-apply:active, .btn-gh-submit:active {
  background: var(--gh-brand-hover);
  border-color: var(--gh-brand-hover);
  color: var(--gh-on-brand);
}

.btn-gh-outline {
  --bs-btn-bg: var(--gh-surface);
  --bs-btn-color: var(--gh-text);
  --bs-btn-border-color: var(--gh-border-strong);
  --bs-btn-hover-bg: var(--gh-brand-soft);
  --bs-btn-hover-color: var(--gh-text);
  --bs-btn-hover-border-color: var(--gh-brand);
  --bs-btn-active-bg: var(--gh-brand-soft);
  --bs-btn-active-color: var(--gh-text);
  --bs-btn-active-border-color: var(--gh-brand);
  background: var(--gh-surface);
  border-color: var(--gh-border-strong);
  color: var(--gh-text);
}
.btn-gh-outline:hover, .btn-gh-outline:active {
  background: var(--gh-brand-soft);
  border-color: var(--gh-brand);
  color: var(--gh-text);
}

.btn-gh-danger {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--gh-danger);
  --bs-btn-border-color: var(--gh-danger);
  --bs-btn-hover-bg: var(--gh-danger-soft);
  --bs-btn-hover-color: var(--gh-danger);
  --bs-btn-hover-border-color: var(--gh-danger);
  background: transparent;
  border-color: var(--gh-danger);
  color: var(--gh-danger);
}
.btn-gh-danger:hover { background: var(--gh-danger-soft); color: var(--gh-danger); border-color: var(--gh-danger); }

.btn-gh-sm { min-height: 36px; padding: 0.3rem 0.8rem; font-size: 0.9rem; }
.btn-gh-lg { min-height: 46px; font-size: 1rem; padding: 0.55rem 1.2rem; }
.btn-gh-submit { width: 100%; }

.gh-link { color: var(--gh-brand-text); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.gh-link:hover { color: var(--gh-brand-text); }

.gh-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--gh-text);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.gh-back i { color: var(--gh-brand-text); font-size: 1.2rem; }
.gh-back:hover { color: var(--gh-brand-text); }

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.gh-card,
.gh-panel {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  box-shadow: var(--gh-shadow);
  color: var(--gh-text);
}
.gh-panel { padding: 1.25rem; }
@media (min-width: 768px) { .gh-panel { padding: 1.75rem; } }

.gh-panel-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.gh-panel-title i { color: var(--gh-brand-text); }

.gh-section + .gh-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gh-border);
}
.gh-section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
}
.gh-section-title i { color: var(--gh-brand-text); font-size: 1.15rem; }

.gh-text-muted, .text-gh-muted { color: var(--gh-muted) !important; }
.text-gh-amber { color: var(--gh-brand-text) !important; }
.text-gh-green { color: var(--gh-pay) !important; }

/* Label / value pairs (profile, job details) */
.gh-kv { display: grid; gap: 0.9rem; margin: 0; }
.gh-kv-2 { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (min-width: 576px) { .gh-kv-2 { gap: 0.9rem; } }
.gh-kv > div {
  background: var(--gh-surface-2);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 0.8rem 1rem;
  min-width: 0;
}
.gh-kv dt { font-size: 0.92rem; font-weight: 700; color: var(--gh-muted); margin-bottom: 2px; }
.gh-kv dd { margin: 0; font-size: 1.08rem; font-weight: 700; overflow-wrap: anywhere; }

/* ============================================================
   TAGS, STATUS BADGES, PILLS
   ============================================================ */
.gh-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--gh-brand-soft);
  border: 1px solid var(--gh-brand-border);
  color: var(--gh-brand-text);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.gh-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}
.gh-status-neutral { background: var(--gh-surface-3); color: var(--gh-text); border-color: var(--gh-border-strong); }
.gh-status-info    { background: var(--gh-info-soft); color: var(--gh-info); border-color: currentColor; }
.gh-status-success { background: var(--gh-success-soft); color: var(--gh-success); border-color: currentColor; }
.gh-status-danger  { background: var(--gh-danger-soft); color: var(--gh-danger); border-color: currentColor; }
.gh-status-warning { background: var(--gh-brand-soft); color: var(--gh-brand-text); border-color: var(--gh-brand-border); }

.gh-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--gh-success-soft);
  color: var(--gh-success);
  font-size: 0.93rem;
  font-weight: 700;
}
.gh-pill i { font-size: 0.9rem; }

.gh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--gh-radius-sm);
  background: var(--gh-surface-2);
  border: 1px solid var(--gh-border);
  color: var(--gh-text);
  font-size: 0.98rem;
  font-weight: 600;
  max-width: 100%;
}
.gh-chip i { color: var(--gh-brand-text); }

/* ============================================================
   HOME: HERO + SEARCH
   ============================================================ */
.gh-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--gh-hero-glow) 0%, transparent 55%),
    var(--gh-surface);
  border-bottom: 1px solid var(--gh-border);
  padding: 1.75rem 0 1.5rem;
}
@media (min-width: 992px) { .gh-hero { padding: 3.25rem 0 2.5rem; } }

.gh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--gh-brand-soft);
  border: 1px solid var(--gh-brand-border);
  color: var(--gh-brand-text);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.gh-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gh-brand);
  animation: gh-pulse 2s infinite;
}
@keyframes gh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.gh-hero-title {
  font-family: var(--gh-font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 8vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.gh-hero-title .accent { color: var(--gh-brand-text); display: block; }
.gh-hero-sub { font-size: 1.12rem; color: var(--gh-muted); max-width: 560px; margin: 0 0 1.25rem; }

.gh-search {
  background: var(--gh-surface);
  border: 1.5px solid var(--gh-border-strong);
  border-radius: var(--gh-radius-lg);
  padding: 1rem;
  box-shadow: var(--gh-shadow);
  max-width: 680px;
}
.gh-search-label { display: block; font-weight: 800; font-size: 1.05rem; margin-bottom: 0.5rem; }
.gh-search-row { display: flex; flex-direction: column; gap: 0.6rem; }
@media (min-width: 576px) { .gh-search-row { flex-direction: row; } }
.gh-search-field { position: relative; flex: 1; }
.gh-search-field > i {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--gh-brand-text); font-size: 1.2rem; pointer-events: none;
}
.gh-search-field .gh-input { padding-left: 2.75rem; padding-top: 0.5rem; padding-bottom: 0.5rem; min-height: 46px; font-size: max(16px, 1rem); }
.gh-search .btn-gh { min-height: 46px; font-size: 1rem; padding-inline: 1.3rem; }

.gh-trust {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--gh-muted);
  font-weight: 700;
  font-size: 0.98rem;
}
.gh-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.gh-trust i { color: var(--gh-pay); font-size: 1.1rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label, .gh-label {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--gh-text);
  margin-bottom: 0.45rem;
}
.form-text, .gh-help { color: var(--gh-muted); font-size: 0.95rem; }

.form-control,
.form-select,
.gh-input {
  min-height: 52px;
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--gh-font-body);
  font-size: max(16px, 1.0625rem); /* ≥16px stops iPhone zooming in on focus */
  font-weight: 600;
  color: var(--gh-text);
  background-color: var(--gh-input-bg);
  border: 1.5px solid var(--gh-border-strong);
  border-radius: var(--gh-radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.form-control { min-height: 120px; line-height: 1.5; }
.form-control::placeholder, .gh-input::placeholder { color: var(--gh-subtle); opacity: 1; font-weight: 500; }
.form-control:focus, .form-select:focus, .gh-input:focus {
  color: var(--gh-text);
  background-color: var(--gh-input-bg);
  border-color: var(--gh-brand);
  box-shadow: var(--gh-focus);
  outline: none;
}
.form-select { padding-right: 2.75rem; background-position: right 1rem center; background-size: 16px 12px; }

.form-check { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; padding-left: 0; }
.form-check .form-check-input { float: none; margin: 0; }
.form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  background-color: var(--gh-input-bg);
  border: 2px solid var(--gh-border-strong);
  cursor: pointer;
}
.form-check-input:checked { background-color: var(--gh-brand); border-color: var(--gh-brand); }
.form-check-input:focus { border-color: var(--gh-brand); box-shadow: var(--gh-focus); }
.form-check-label { font-weight: 700; cursor: pointer; }

.gh-field-error { color: var(--gh-danger); font-weight: 700; font-size: 0.95rem; margin-top: 0.35rem; }

/* Tap-to-choose tiles (radio/checkbox via .btn-check + label.gh-choice) */
.gh-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--gh-border-strong);
  border-radius: var(--gh-radius-sm);
  background: var(--gh-surface);
  color: var(--gh-text);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s, border-color 0.12s;
}
.btn-check:checked + .gh-choice,
.gh-choice.is-selected {
  background: var(--gh-brand-soft);
  border-color: var(--gh-brand);
  box-shadow: inset 0 0 0 1px var(--gh-brand);
}
.btn-check:checked + .gh-choice::before,
.gh-choice.is-selected::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gh-brand);
  color: var(--gh-on-brand);
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
}
.btn-check:focus-visible + .gh-choice { box-shadow: var(--gh-focus); }
.gh-choice-sm { min-height: 40px; font-size: 0.92rem; padding: 0.35rem; }

.gh-question { margin-bottom: 1.4rem; }
.gh-question:last-child { margin-bottom: 0; }
.gh-question > .form-label { margin-bottom: 0.6rem; }

/* Role switcher (register) */
.gh-segment {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--gh-radius);
  background: var(--gh-surface-3);
  border: 1px solid var(--gh-border);
  margin-bottom: 1.25rem;
}
.gh-segment-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  border: 0;
  border-radius: calc(var(--gh-radius) - 4px);
  background: transparent;
  color: var(--gh-muted);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.gh-segment-btn.active {
  background: var(--gh-surface);
  color: var(--gh-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -3px 0 var(--gh-brand);
}

/* ============================================================
   WIZARDS (questionnaire, job post)
   ============================================================ */
.gh-wizard-progress { margin-bottom: 1.25rem; }
.gh-wizard-step-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.gh-wizard-step-label span:last-child { color: var(--gh-muted); }
.gh-wizard-progress .progress {
  height: 12px;
  border-radius: 999px;
  background: var(--gh-surface-3);
}
.gh-wizard-progress .progress-bar {
  background: var(--gh-brand);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.gh-step-title { font-size: 1.35rem; margin: 0 0 1.1rem; }

.gh-wizard-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.gh-wizard-nav .btn-gh-outline { flex: 0 0 auto; }
.gh-wizard-nav .btn-gh { flex: 1 1 auto; }

@media (max-width: 991.98px) {
  .gh-wizard-nav {
    position: sticky;
    bottom: calc(var(--gh-bottom-offset) + 0.5rem);
    z-index: 5;
    margin-inline: -0.25rem;
    padding: 0.6rem;
    background: var(--gh-surface);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    box-shadow: var(--gh-shadow-up);
  }
}
@media (min-width: 992px) {
  .gh-wizard-nav .btn-gh { flex: 0 0 auto; margin-left: auto; min-width: 180px; }
}

/* ============================================================
   JOB BOARD
   ============================================================ */
.gh-board { padding-top: 1.5rem; padding-bottom: 2.5rem; }

.gh-filter-group + .gh-filter-group { margin-top: 1.25rem; }
.gh-filter-label { display: flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 1.05rem; margin-bottom: 0.6rem; }
.gh-filter-label i { color: var(--gh-brand-text); }
.gh-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

@media (min-width: 992px) {
  .gh-filter-sheet .offcanvas-body { display: block; }
  .gh-filter-panel { position: sticky; top: calc(var(--gh-topbar-h) + 1rem); width: 100%; }
}
@media (max-width: 991.98px) {
  .gh-filter-panel { border: 0; box-shadow: none; padding: 0; background: transparent; }
  .gh-filter-panel .gh-panel-title { display: none; }
}

.gh-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.gh-results-count { font-size: 1.4rem; margin: 0; }
.gh-results-count #job-count { color: var(--gh-brand-text); }
.gh-results-tools { display: flex; gap: 0.6rem; width: 100%; }
.gh-results-tools > * { flex: 1 1 0; }
.gh-results-tools .form-select { min-height: 40px; padding-top: 0.35rem; padding-bottom: 0.35rem; }
@media (min-width: 992px) {
  .gh-results-tools { width: auto; }
  .gh-results-tools .form-select { min-width: 240px; }
}

.gh-job-list { display: grid; gap: 1rem; }

.gh-job-card {
  position: relative;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  box-shadow: var(--gh-shadow);
  padding: 1.15rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
@media (min-width: 768px) { .gh-job-card { padding: 1.5rem; } }

.gh-job-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: transparent;
  transition: background 0.2s;
}
.gh-job-card.is-featured { border-color: var(--gh-brand-border); }
.gh-job-card.is-featured::before { background: var(--gh-brand); }

@media (hover: hover) {
  .gh-job-card:has(.stretched-link):hover { border-color: var(--gh-brand-border); }
  .gh-job-card:has(.stretched-link):hover::before { background: var(--gh-brand); }
  .gh-job-card:hover .gh-job-cta { background: var(--gh-brand-hover); border-color: var(--gh-brand-hover); }
}
.gh-job-card:has(.stretched-link):active { border-color: var(--gh-brand); }

.gh-card-flags { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.gh-flag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 800;
}
.gh-flag-hot { background: var(--gh-danger-soft); color: var(--gh-danger); }
.gh-flag-new { background: var(--gh-success-soft); color: var(--gh-success); }

.gh-job-head { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 576px) {
  .gh-job-head { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 1rem; }
}
.gh-job-titles { min-width: 0; }
.gh-job-title {
  font-family: var(--gh-font-head);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  overflow-wrap: anywhere;
}
.gh-job-title a { color: var(--gh-text); text-decoration: none; }
.gh-job-title a:hover { color: var(--gh-brand-text); }
.gh-job-meta { margin: 0; color: var(--gh-muted); font-weight: 600; font-size: 1.02rem; display: flex; align-items: flex-start; gap: 0.45rem; }
.gh-job-meta + .gh-job-meta { margin-top: 0.2rem; }
.gh-job-meta i { color: var(--gh-brand-text); margin-top: 0.15rem; }

.gh-pay {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  background: var(--gh-success-soft);
  border-radius: var(--gh-radius);
  padding: 0.5rem 0.9rem;
  align-self: flex-start;
}
@media (min-width: 576px) { .gh-pay { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; } }
.gh-pay-amount { font-family: var(--gh-font-head); font-weight: 700; font-size: 1.75rem; line-height: 1.05; color: var(--gh-pay); }
.gh-pay-unit { font-size: 0.95rem; font-weight: 700; color: var(--gh-pay); }

.gh-facts { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gh-facts li { display: inline-flex; }

.gh-benefits { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }

.gh-job-notes {
  margin: 0.85rem 0 0;
  color: var(--gh-muted);
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-job-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--gh-border);
}
.gh-posted { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gh-subtle); font-weight: 600; font-size: 0.95rem; }
.gh-job-cta { width: 100%; margin-top: 0.9rem; }
@media (min-width: 768px) { .gh-job-cta { width: auto; } }

.gh-job-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}
.gh-job-actions > *, .gh-job-actions form > * { width: 100%; }
.gh-job-actions .gh-span-2 { grid-column: 1 / -1; }

/* Empty / loading states */
.gh-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--gh-surface);
  border: 1.5px dashed var(--gh-border-strong);
  border-radius: var(--gh-radius-lg);
}
.gh-empty-icon { font-size: 2.6rem; color: var(--gh-brand-text); line-height: 1; margin-bottom: 0.75rem; }
.gh-empty-title { font-size: 1.35rem; margin: 0 0 0.4rem; }
.gh-empty p { color: var(--gh-muted); margin: 0 auto 1.1rem; max-width: 420px; }
.gh-empty p:last-child { margin-bottom: 0; }

.gh-loading { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 2rem; font-weight: 700; color: var(--gh-muted); }
.gh-loading .spinner-border { color: var(--gh-brand); }

/* ============================================================
   JOB DETAIL
   ============================================================ */
.gh-detail-head { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .gh-detail-head { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.gh-detail-title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0 0 0.5rem; overflow-wrap: anywhere; }
.gh-detail-body { white-space: pre-line; font-size: 1.06rem; line-height: 1.6; margin: 0; }

.gh-action-bar {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.gh-action-bar > .btn-gh, .gh-action-bar form { flex: 1 1 auto; }
.gh-action-bar form .btn-gh { width: 100%; }
@media (min-width: 992px) {
  .gh-action-bar > .btn-gh, .gh-action-bar form { flex: 0 0 auto; }
  .gh-action-bar .btn-gh { min-width: 220px; }
}

/* ============================================================
   ALERTS, TOAST, PROGRESS
   ============================================================ */
.alert { border-radius: var(--gh-radius); font-weight: 600; font-size: 1.02rem; }
.gh-flash { display: flex; align-items: flex-start; gap: 0.75rem; }
.gh-flash > i { font-size: 1.3rem; line-height: 1.25; }

.gh-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--gh-bottom-offset) + 0.75rem);
  transform: translateX(-50%);
  z-index: 1090;
  width: min(440px, calc(100% - 1.5rem));
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
  font-weight: 700;
  font-size: 1.02rem;
}
.gh-toast .toast-body { padding: 0.9rem 1rem; }

/* ============================================================
   MISC / A11Y / MOTION
   ============================================================ */
.gh-divider { height: 1px; background: var(--gh-border); margin: 1.25rem 0; }
.bg-gh-card { background: var(--gh-surface) !important; }
.border-gh  { border-color: var(--gh-border) !important; }

.dropdown-menu { --bs-dropdown-bg: var(--gh-surface); --bs-dropdown-border-color: var(--gh-border); }

::selection { background: rgba(245, 168, 0, 0.35); }

@media (hover: none) {
  .btn-gh:hover, .btn-gh-primary:hover, .btn-gh-apply:hover, .btn-gh-submit:hover { background: var(--gh-brand); border-color: var(--gh-brand); }
  .btn-gh-outline:hover { background: var(--gh-surface); border-color: var(--gh-border-strong); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.gh-span-all { grid-column: 1 / -1; }
.min-w-0 { min-width: 0; }
.gh-job-card.is-hidden { background: var(--gh-surface-2); }
.gh-panel > .d-flex + .d-grid, .gh-panel > .d-flex + p { margin-top: 1rem; }
[id] { scroll-margin-top: calc(var(--gh-topbar-h) + 0.75rem); }
@media (min-width: 992px) {
  .gh-filter-panel .gh-choice-grid { grid-template-columns: 1fr 1fr; }
}
/* Sign-up spam trap: off screen for people, still in the form for bots. */
.gh-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Admin controls on a posting: Pause / Edit / Delete in one row. */
.gh-admin-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.gh-admin-actions form, .gh-admin-actions > * { margin: 0; }
.gh-admin-actions .btn-gh-outline, .gh-admin-actions .btn-gh-danger { width: 100%; padding-inline: 0.5rem; }
.gh-admin-bar {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1.5px dashed var(--gh-brand-border);
  border-radius: var(--gh-radius);
  background: var(--gh-brand-soft);
}
.gh-admin-bar-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; margin-bottom: 0.6rem; }
.form-control[readonly] { background-color: var(--gh-surface-3); color: var(--gh-muted); }

/* Texted code box: big, spaced digits that are easy to check. */
.gh-code-input { text-align: center; font-size: 1.75rem !important; letter-spacing: 0.5em; font-weight: 800; padding-left: 0.5em; }

/* A button on a card whose whole surface is a link: sits above the link. */
.gh-card-action { position: relative; z-index: 2; margin-top: 0.75rem; display: flex; justify-content: flex-end; }

/* Legal pages: readable long text. */
.gh-legal h2 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.gh-legal h2:first-of-type { margin-top: 1.2rem; }
.gh-legal p, .gh-legal li { line-height: 1.65; }
.gh-legal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.gh-legal li + li { margin-top: 0.35rem; }

/* Site footer (sits above the phone tab bar thanks to the body padding). */
.gh-footer {
  border-top: 1px solid var(--gh-border);
  padding: 1.25rem 0 1.5rem;
  color: var(--gh-muted);
  font-size: 0.95rem;
}
.gh-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.25rem; }
.gh-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.gh-footer a { color: var(--gh-muted); font-weight: 700; text-decoration: none; display: inline-block; padding: 0.35rem 0; }
.gh-footer a:hover { color: var(--gh-brand-text); }

/* Driver info pages (how it works, why cell number, safety, FAQ). */
.gh-info-hero .gh-page-sub { font-size: 1.08rem; line-height: 1.6; }
.gh-info-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.gh-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.gh-steps li { display: flex; gap: 0.9rem; align-items: flex-start; line-height: 1.55; }
.gh-step-num {
  flex-shrink: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--gh-brand); color: var(--gh-on-brand); font-weight: 800;
}
.gh-checklist, .gh-xlist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.7rem; }
.gh-checklist:last-child, .gh-xlist:last-child { margin-bottom: 0; }
.gh-checklist li, .gh-xlist li { position: relative; padding-left: 2rem; line-height: 1.55; }
.gh-checklist li::before, .gh-xlist li::before {
  position: absolute; left: 0; top: 0.1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 900;
}
.gh-checklist li::before { content: '✓'; background: var(--gh-success-soft); color: var(--gh-success); }
.gh-xlist li::before { content: '✕'; background: var(--gh-danger-soft); color: var(--gh-danger); }
.gh-faq details { border-bottom: 1px solid var(--gh-border); padding: 0.9rem 0; }
.gh-faq details:first-child { padding-top: 0; }
.gh-faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.gh-faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; }
.gh-faq summary::-webkit-details-marker { display: none; }
.gh-faq summary::after { content: '+'; color: var(--gh-brand-text); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.gh-faq details[open] summary::after { content: '–'; }
.gh-faq details p { margin-top: 0.5rem; color: var(--gh-muted); line-height: 1.6; }

/* Grid button rows never push past the card edge on small phones. */
.gh-admin-actions > *, .gh-job-actions > * { min-width: 0; }
/* Application review: "Send to company" full width, the other two below. */
.gh-review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.gh-review-actions > * { min-width: 0; margin: 0; }
.gh-review-actions .btn-gh, .gh-review-actions .btn-gh-outline, .gh-review-actions .btn-gh-danger { width: 100%; }
.gh-review-actions .gh-span-2 { grid-column: 1 / -1; }

/* Removable city tags on the job form. */
.gh-tag-removable { background: var(--gh-brand-soft); color: var(--gh-text); padding-right: 0.25rem; }
.gh-tag-removable button {
  border: 0; background: transparent; color: var(--gh-muted); font-size: 1.25rem; line-height: 1;
  min-width: 32px; min-height: 32px; border-radius: 50%; cursor: pointer;
}
.gh-tag-removable button:hover { color: var(--gh-danger); background: var(--gh-danger-soft); }
#extra-city-tags { margin-top: 0.6rem; }
#extra-city-tags:empty { display: none; }
