/* 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, var(--accent-wash));
    box-shadow: 0 8px 18px rgba(17, 178, 253, .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: var(--accent-wash); }
.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;
}

/* Keep desktop section rhythm independent of browser chrome and viewport
   height. The previous height-gated space-between layout could turn a small
   viewport difference into gaps of more than 120px. */
@media (min-width: 821px) {
  .page--feed .hero__inner { display: block; }
  .page--feed .hero .search-form { margin-top: 26px; }
  .page--feed .hero__meta { margin-top: 18px; }
  .page--feed .hero-guide { margin-top: 26px; }
}

@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; }
}

/* 2026-09-15 — scan-first transport feed. */
.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: inherit;
  padding-bottom: 30px;
}

.page--feed .button--primary {
  border-color: #11b2fd;
  background: #11b2fd;
  box-shadow: 0 8px 20px rgba(17, 178, 253, .2);
}
.page--feed .button--primary:hover { border-color: #1a01cf; background: #1a01cf; }
.page--feed .button--primary:active { border-color: #1802c4; background: #1802c4; }
.page--feed .button--primary:focus-visible { outline-color: #1a01cf; }

.page--feed .task-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid #e0e2e7;
  border-radius: 16px;
  background: #fff;
}
.page--feed .task-list > .task-card,
.page--feed .task-list > .task-card:first-child,
.page--feed .task-list > .task-card:last-child {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e8eaf0;
  border-radius: 0;
  box-shadow: none;
}
.page--feed .task-list > .task-card:last-child { border-bottom: 0; border-radius: 0 0 15px 15px; }
.page--feed .task-list > .task-card:first-child { border-radius: 15px 15px 0 0; }
.page--feed .task-list > .task-card:hover,
.page--feed .task-list > .task-card:focus-within {
  z-index: 1;
  background: #fafafd;
  box-shadow: inset 3px 0 0 var(--accent);
}

@media (min-width: 821px) {
  .page--feed .task-card__route-zone {
    grid-template-columns: 72px minmax(0, 1fr) 40px;
    gap: 14px;
  }
  .page--feed .task-icon,
  .page--feed .task-icon--truck,
  .page--feed .task-icon--van,
  .page--feed .task-icon--crane {
    display: grid;
    box-sizing: border-box;
    place-items: center;
    overflow: hidden;
    width: 72px;
    height: 72px;
    padding: 6px;
    border-radius: 17px;
  }
  .page--feed .task-transport-art,
  .page--feed .task-icon--crane .task-transport-art {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
  }
  .page--feed .task-menu > summary {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .page--feed .task-menu > summary svg { width: 19px; height: 19px; }
  .page--feed .task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 188px;
    grid-template-rows: auto auto auto auto auto;
    gap: 0 26px;
    padding: 24px;
  }
  .page--feed .task-card__route-zone { grid-column: 1; grid-row: 1; }
  .page--feed .task-card__primary-meta {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 13px 0 0 86px;
  }
  .page--feed .task-card__primary-meta > div { display: grid; gap: 3px; min-width: min(190px, 45%); }
  .page--feed .task-card__primary-meta span { color: #707480; font-size: 12px; line-height: 1.3; }
  .page--feed .task-card__primary-meta strong { color: #30333c; font-size: 14px; line-height: 1.35; }
  .page--feed .task-description {
    grid-column: 1;
    grid-row: 3;
    margin: 15px 0 0 86px;
    color: #20222a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
  }
  .page--feed .task-requirement {
    grid-column: 1;
    grid-row: 4;
    margin: 5px 0 0 86px;
  }
  .page--feed .task-requirement .badge { color: #535762; font-size: 14px; font-weight: 500; line-height: 1.45; }
  .page--feed .task-service {
    grid-column: 1;
    grid-row: 5;
    margin: 12px 0 0 86px;
    font-size: 13px;
  }
  .page--feed .task-offer {
    display: grid;
    grid-column: 2;
    grid-row: 1 / 6;
    align-content: start;
    gap: 10px;
    padding-left: 22px;
    border-left: 1px solid #e8eaf0;
  }
  .page--feed .task-offer .task-price { justify-self: start; font-size: 22px; }
  .page--feed .task-offer__actions { width: 100%; margin-top: 2px; }
}

@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: inherit; padding-bottom: 24px; }
  .page--feed .task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 18px 16px;
  }
  .page--feed .task-card__route-zone,
  .page--feed .task-card__primary-meta,
  .page--feed .task-description,
  .page--feed .task-requirement,
  .page--feed .task-service,
  .page--feed .task-offer { grid-column: 1; grid-row: auto; }
  .page--feed .task-card__primary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 14px 0 0 53px;
  }
  .page--feed .task-card__primary-meta > div { display: grid; gap: 2px; min-width: min(155px, 48%); }
  .page--feed .task-card__primary-meta span { color: #747783; font-size: 12px; }
  .page--feed .task-card__primary-meta strong { color: #30333c; font-size: 14px; line-height: 1.35; }
  .page--feed .task-description { margin: 14px 0 0 53px; font-size: 16px; line-height: 1.4; }
  .page--feed .task-requirement { margin: 4px 0 0 53px; }
  .page--feed .task-requirement .badge { font-size: 14px; font-weight: 500; }
  .page--feed .task-service { margin: 11px 0 0 53px; font-size: 13px; }
  .page--feed .task-offer {
    display: grid;
    gap: 10px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #e8eaf0;
  }
  .page--feed .task-offer .task-price { justify-self: start; font-size: 21px; }
  .page--feed .task-offer__actions { grid-template-columns: 1fr 44px; width: 100%; }
}
