/* The search leads; request creation is a separate navigation action. */
.page--feed .topbar__inner { gap: clamp(24px, 3vw, 40px); }
.page--feed .main-nav { gap: 24px; }
.page--feed .topbar__create {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid #d9dce3;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  white-space: nowrap;
}
.page--feed .topbar__create:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(17, 178, 253, .24);
  transform: none;
}
.page--feed .topbar__create:active { color: #fff; border-color: var(--brand); background: var(--brand); }
.page--feed .topbar__create:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .page--feed .main-nav { display: none; }
  .page--feed .topbar__actions .topbar__create { display: inline-flex !important; }
  .page--feed .menu-button { display: inline-flex; }
  .page--feed .mobile-menu__create {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--brand);
    font-weight: 700;
  }
}

@media (min-width: 821px) {
  .page--feed .task-card__route-zone {
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    gap: 14px;
  }
  .page--feed .task-icon,
  .page--feed .task-icon--truck,
  .page--feed .task-icon--van,
  .page--feed .task-icon--crane {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, #f6fcfe, #e7f8fd);
    box-shadow: 0 8px 18px rgba(8, 167, 215, .12);
  }
  .page--feed .task-transport-art {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
  }
  .page--feed .task-icon--crane .task-transport-art {
    width: 54px;
    height: 54px;
    margin: 5px;
  }
  .page--feed .task-description,
  .page--feed .task-requirement,
  .page--feed .task-service { margin-left: 78px; }
}

@media (min-width: 821px) and (max-width: 980px) {
  .page--feed .task-card__facts { margin-left: 78px; }
}

@media (max-width: 640px) {
  body.is-authenticated.page--feed .topbar__account-actions { display: none !important; }
  .page--feed .topbar__actions { gap: 6px; }
  .page--feed .topbar__create { min-height: 40px; padding-inline: 12px; font-size: 12px; }
}

@media (max-width: 360px) {
  .page--feed .topbar__inner { gap: 8px; }
  .page--feed .brand__logo { width: 104px; }
  .page--feed .topbar__create { padding-inline: 10px; font-size: 11px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .page--feed .mobile-menu { top: calc(80px + env(safe-area-inset-top)); }
}

/* Homepage-only illustrated guide. Shared page styles remain untouched. */
.page--feed .hero {
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px - env(safe-area-inset-top, 0px));
}
.page--feed .hero__inner {
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px - env(safe-area-inset-top, 0px));
  padding-top: 38px;
  padding-bottom: 38px;
}
.page--feed .hero h1 { font-size: clamp(52px, 5.2vw, 72px); }
.page--feed .hero .search-form { margin-top: 26px; }
.page--feed .hero-guide { margin-top: 26px; scroll-margin-top: 100px; }
.hero-guide__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hero-guide__heading h2 { margin: 0; color: #555c69; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
.hero-guide__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border-radius: 20px; }
.hero-guide__card { position: relative; min-width: 0; min-height: 190px; overflow: hidden; padding: 24px 20px; border: 1px solid #edf0f3; border-radius: 20px; background: #f4f6f8; isolation: isolate; }
.hero-guide__text { position: relative; z-index: 1; width: 54%; }
.hero-guide__card h3 { margin: 0; color: #17181b; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
.hero-guide__card p { margin: 10px 0 0; color: #535c69; font-size: 13px; line-height: 1.55; }
.hero-guide__card img { position: absolute; right: -5px; bottom: 0; width: 51%; height: auto; aspect-ratio: 1; object-fit: contain; mask-image: linear-gradient(to right, transparent, #000 13%), linear-gradient(to bottom, transparent, #000 13%); mask-composite: intersect; pointer-events: none; }
.hero-guide__controls { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.hero-guide__controls[hidden] { display: none; }
.hero-guide__position { min-width: 40px; margin-right: 4px; color: #68727f; font-size: 12px; font-variant-numeric: tabular-nums; }
.hero-guide__controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e2e7eb; border-radius: 50%; color: #00759e; background: #fff; cursor: pointer; }
.hero-guide__controls button:hover:not(:disabled) { border-color: #a7d8eb; background: #eef9fe; }
.hero-guide__controls button:disabled { color: #a6aeb7; background: #f7f8fa; cursor: default; }
.hero-guide__controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-guide__controls button:focus-visible, .hero-guide__track:focus-visible { outline: 3px solid #00759e; outline-offset: 3px; }

/* Give every native select a deliberate chevron gutter instead of relying on
   the browser arrow, which sat too close to the control edge. */
.page--feed select:not([multiple]) {
  appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='m4.5 6.75 4.5 4.5 4.5-4.5' stroke='%23565c68' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}

@media (min-width: 821px) and (min-height: 760px) {
  .page--feed .hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    align-content: space-between;
    row-gap: clamp(20px, 2.8vh, 34px);
  }
  .page--feed .hero__copy,
  .page--feed .hero .search-form,
  .page--feed .hero__meta,
  .page--feed .hero-guide { grid-column: 1; margin-top: 0; }
}

@media (max-width: 1100px) {
  .hero-guide__card { padding: 20px 16px; min-height: 176px; }
  .hero-guide__card h3 { font-size: 19px; }
  .hero-guide__card p { font-size: 12px; }
  .hero-guide__text { width: 58%; }
  .hero-guide__card img { width: 48%; }
}
@media (max-width: 1100px) {
  .hero-guide__track { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
  .hero-guide__track::-webkit-scrollbar { display: none; }
  .hero-guide__card { flex: 0 0 min(360px, calc(100% - 24px)); min-height: 168px; scroll-snap-align: start; border-radius: 18px; }
  .hero-guide__text { width: 54%; }
  .hero-guide__card h3 { font-size: 20px; }
  .hero-guide__card p { font-size: 13px; }
  .hero-guide__card img { width: 48%; }
  .hero-guide__heading { margin-bottom: 10px; }
}
@media (max-width: 820px) {
  .page--feed .hero {
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px - env(safe-area-inset-top, 0px));
  }
  .page--feed .hero__inner {
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px - env(safe-area-inset-top, 0px));
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .page--feed .hero h1 { font-size: clamp(40px, 6.3vw, 52px); }
}
@media (max-width: 640px) {
  .page--feed .hero__inner { padding-top: 24px; padding-bottom: 24px; }
  .page--feed .hero h1 { font-size: clamp(34px, 9.5vw, 46px); }
  .page--feed .hero__lead { margin-top: 12px; font-size: 15px; line-height: 1.45; }
  .page--feed .hero .search-form { margin-top: 20px; }
  .page--feed .hero-guide { margin-top: 20px; scroll-margin-top: 84px; }
  .hero-guide__heading h2 { max-width: 185px; font-size: 12px; line-height: 1.4; }
  .hero-guide__position { display: none; }
  .hero-guide__card { min-height: 164px; padding: 20px 16px; }
  .hero-guide__card h3 { font-size: 19px; }
  .hero-guide__card p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-guide__track { scroll-behavior: auto; }
}
