/* ── C5: the port's ⛽ Fuel dock (src/ui/components/fuelDock.js; docs/roadmap/C5-ports-and-lanes.md §10).
   Small on purpose: one calm line under the bills (a <details> summary: the title, the spare fuel's gauge with
   its words, today's price chip), so the job board stays on the first screen. A tap opens the price, the hint,
   the range line and the standard secondary button. The chip uses the shelf palette (cheap cool, dear warm;
   the word always says it, so color is never the only clue). At phone widths the summary wraps and the
   button goes full width. */

.fuel-dock {
  min-width: 0;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-1);
}

.fuel-dock__summary {
  min-height: var(--tap);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-sm);
}

.fuel-dock__summary::-webkit-details-marker {
  display: none;
}

.fuel-dock__summary::after {
  content: '▾';
  margin-left: auto;
  padding-left: var(--sp-2);
  color: var(--sea-600);
  transition: transform var(--dur-2) var(--ease);
}

.fuel-dock[open] .fuel-dock__summary::after {
  transform: rotate(180deg);
}

.fuel-dock__title {
  font-size: var(--fs-md);
  font-weight: 900;
}

.fuel-dock__now {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.fuel-dock__gauge {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  padding: 3px;
  border-radius: var(--r-sm);
  border: 2px solid var(--sand-600);
  background: var(--sand-50);
}

.fuel-dock__cell {
  width: 16px;
  height: 14px;
  border-radius: 2px;
  border: 1.5px dashed var(--line-strong);
  background: transparent;
}

.fuel-dock__cell.is-on {
  border: 1.5px solid var(--sea-600);
  background: var(--sea-400);
}

.fuel-dock__gauge-text {
  font-weight: 800;
}

.fuel-dock__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-1) 0 var(--sp-3);
}

.fuel-dock__price {
  font-weight: 700;
}

.fuel-dock__word {
  display: inline-block;
  padding: 0.05em 0.6em;
  border-radius: var(--r-pill);
  border: 2px solid var(--line);
  background: var(--sea-50);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--ink);
}

.fuel-dock__word.is-cheap {
  background: var(--sea-100);
  border-color: var(--sea-200);
  color: var(--sea-800);
}

.fuel-dock__word.is-dear {
  background: var(--accent-100);
  border-color: var(--accent-200);
  color: var(--accent-700);
}

.fuel-dock__line,
.fuel-dock__range,
.fuel-dock__why {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-soft);
}

.fuel-dock__range {
  color: var(--ink-faint);
}

.fuel-dock__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
}

.fuel-dock__sub {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-faint);
}

.fuel-dock__why {
  flex-basis: 100%;
}

@media (max-width: 35em) {
  .fuel-dock {
    padding: 0 var(--sp-3);
  }

  .fuel-dock__summary {
    gap: 2px var(--sp-2);
  }

  /* The gauge's words say what it is; the title's words stay for screen readers. */
  .fuel-dock__name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .fuel-dock__buy > .btn {
    width: 100%;
  }
}

/* ── C5: 🛶 quick docks (docs/roadmap/C5-ports-and-lanes.md §10): the load screen's stop row note
   (holdView.stops[].dock), the departure leg's dock chip, the Other ports chip and the port card's line.
   Calm sea colors: a quick stop is good news, never a warning. */

.load-stop__dock {
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.3;
  color: var(--sea-700, #1f6f9e);
}

.load-stop__dock.is-tooMany,
.depart-leg__dock.is-tooMany {
  color: var(--ink-soft);
}

.depart-leg__dock {
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: normal;
}

.port-dest__quick {
  background: var(--sea-50);
  color: var(--sea-700, #1f6f9e);
}

.port-info__quick {
  color: var(--sea-700, #1f6f9e);
  font-weight: 700;
}

/* ── C5: 🧤 small ports, slower (CONFIG.SLOW_DOCKS, §2.2): a 2-day stop's note on the load screen's stop row
   and the departure leg's chip. One more day is news, never a warning: soft ink, no red. */

.load-stop__dock.is-byHand,
.load-stop__dock.is-anchor,
.depart-leg__dock.is-byHand,
.depart-leg__dock.is-anchor {
  color: var(--ink-soft);
}
