/* tasks/075 — excursion "build the day" board (Board A spine + Board C grid).
   Board A rides the shared .hos-spine / .hos-runcard family from
   transport_board.css; this sheet only adds the excursion-local chrome:
   the layout shell, the To-place rail, the segmented toggle, and Board C's
   card grid. Tokens only — no raw hex, no dark:. */

/* The Timeline/Cards view switch uses the gem's .os-segmented inside the
   .os-page-tools band (see index.html.erb) — no local toggle component. */

/* Board content column below the page-tools band. */
.hos-exc-body { display: flex; flex-direction: column; gap: 18px; }

/* --- "Fixed schedule — not built" panel (transport parity) --- */
.hos-exc-unbuilt { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.hos-exc-unbuilt__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hos-exc-unbuilt__cta { margin: 0; }
.hos-exc-unbuilt__rows { display: flex; flex-direction: column; gap: 6px; }
.hos-exc-unbuilt__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-md);
  opacity: 0.9;
}
.hos-exc-unbuilt__name { flex: 1; font-weight: 600; color: var(--ink); font-size: var(--text-sm); }

/* --- Board A: spine + sticky To-place rail --- */
.hos-exc-boarda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .hos-exc-boarda { grid-template-columns: 1fr; }
}
.hos-exc-toplace { position: sticky; top: 16px; padding: 16px; }
.hos-exc-toplace__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.hos-exc-toplace__empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.hos-exc-dchip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.hos-exc-dchip + .hos-exc-dchip { margin-top: 8px; }
.hos-exc-dchip__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hos-exc-dchip__name { font-weight: 600; color: var(--ink); font-size: var(--text-sm); }
.hos-exc-dchip__sub { color: var(--muted); font-size: var(--text-xs); }

/* --- Board C: departure card grid --- */
.hos-exc-cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.hos-exc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}
.hos-exc-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hos-exc-card__title { font-weight: 600; color: var(--ink); font-size: var(--text-base); }
.hos-exc-card__meta { color: var(--muted); }
.hos-exc-card__cap { margin-top: 2px; }
.hos-exc-card__crew {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.hos-exc-card--add {
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--hairline-strong, var(--hairline));
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--text-sm);
  min-height: 120px;
  gap: 6px;
}
.hos-exc-card--add:hover { color: var(--accent-strong); border-color: var(--accent); }

/* --- Board C: To-place strip --- */
.hos-exc-strip { margin-top: 18px; padding: 14px 16px; }
.hos-exc-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.hos-exc-strip__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hos-exc-dchip--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
}

/* --- "Add a departure" disclosure (the create-trip valve, below the board) --- */
.hos-exc-addform { padding: 0; }
.hos-exc-addform__summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.hos-exc-addform__summary::-webkit-details-marker { display: none; }
.hos-exc-addform__summary:hover { color: var(--accent-strong); }
.hos-exc-addform[open] .hos-exc-addform__summary {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.hos-exc-addform__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 14px 16px;
}

/* --- Mobile (≤640px). ONLY the board's own components are adjusted here:
   2-col KPIs, the To-place rail full-width below the timeline, single-column
   card grid. The shared .hos-spine / .hos-runcard (transport_board.css) and the
   gem's os-page-head are NOT overridden locally — their mobile treatment is a
   shared/os-ds concern, not a per-page hack (see DECISIONS / tasks/075). --- */
@media (max-width: 640px) {
  .os-stat-card-grid.hos-exc-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .hos-exc-boarda { grid-template-columns: 1fr; gap: 16px; }
  .hos-exc-boarda__spine { min-width: 0; }
  .hos-exc-toplace { position: static; }

  .hos-exc-cardgrid { grid-template-columns: 1fr; }
  .hos-exc-strip__head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
