

/* Open-row grid — WL §5. rail | time | body | divers | chevron. */
.hos-open-row {
  display: grid;
  grid-template-columns: 16px 124px 1fr 168px 24px;
  gap: 28px;
  align-items: start;
  padding: 22px 56px 22px 40px;
  border-top: 1px solid var(--hairline);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--t-med) ease;
}
/* The last row closes the list with a bottom hairline. Each .hos-open-row now
   sits in its own [role=listitem] wrapper (#144), so :last-of-type on the <a>
   would match every row — target the last wrapper instead. */
[role="listitem"]:last-child > .hos-open-row { border-bottom: 1px solid var(--hairline); }
/* Kill Bullet Train's global a:hover underline on the whole clickable row. */
.hos-open-row:hover { background: var(--hover-warm); text-decoration: none; }
.hos-open-row:hover, .hos-open-row:hover * { text-decoration: none; }

/* `.hos-full-bleed` retired 2026-07-19 (os-ds consolidation, spec step 2).
   It hardcoded `min(-48px, calc(712px - 50vw))` — sidebar 240 + column 1280 +
   pad 48 (712 = 1280/2 + 240/2 - 48) — which the gem's header_band.css asked us
   to "keep in sync" with .os-page-band. That duplication is gone: full-bleed is
   now the shared --bleed-* system (diveos_shell.css), which .os-page-band and
   every gem band already consume, so there is nothing left to keep in sync.
   The class had zero callsites at removal — verified across app/ lib/ test/. */
.hos-open-row:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: -2px;
}

.hos-open-row__rail {
  width: 3px;
  height: 52px;
  background: var(--bar-pending);
  border-radius: 3px;
  margin-top: 8px;
  transition: background var(--t-med) ease;
}
.hos-open-row[data-status="briefing"]  .hos-open-row__rail { background: var(--bar-briefing); }
.hos-open-row[data-status="in_water"]   .hos-open-row__rail { background: var(--bar-inwater); }
.hos-open-row[data-status="confirmed"] .hos-open-row__rail { background: var(--bar-confirmed); }
.hos-open-row[data-status="cancelled"] .hos-open-row__rail { background: var(--bar-cancelled); }
.hos-open-row[data-status="briefing"]:hover  .hos-open-row__rail { background: var(--status-briefing-fg); }
.hos-open-row[data-status="in_water"]:hover   .hos-open-row__rail { background: var(--status-in-water-fg); }
.hos-open-row[data-status="confirmed"]:hover .hos-open-row__rail { background: var(--status-confirmed-fg); }
.hos-open-row[data-status="cancelled"]:hover .hos-open-row__rail { background: var(--status-cancelled-fg); }

/* Time column */
.hos-open-row__time {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hos-open-row__time-sep { color: var(--muted-2); margin: 0 1px; }
.hos-open-row__time-label {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Body: title + route + guide/vessel */
.hos-open-row__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hos-open-row__stops {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.hos-open-row__stops .sep { color: var(--muted-2); }
.hos-open-row__crew {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--text-xs);
  color: var(--muted);
}
.hos-open-row__crew b { font-weight: 600; color: var(--ink); }
.hos-open-row__vessel {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-left: 14px;
  border-left: 1px solid var(--hairline);
}

/* Divers count column */
.hos-open-row__count {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hos-open-row__count--confirmed { color: var(--status-confirmed-fg); }
.hos-open-row__count--briefing  { color: var(--status-briefing-fg); }
.hos-open-row__count-max { color: var(--muted-2); font-size: var(--text-md); font-weight: 400; }
.hos-open-row__count-label {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Chevron — revealed on row hover */
.hos-open-row__chev {
  align-self: center;
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast) ease, transform var(--t-med) var(--ease-out-quart);
}
.hos-open-row:hover .hos-open-row__chev { opacity: 1; transform: translateX(0); }

/* Cancelled-state row styling (WL page-local <style>, promoted here) */
.hos-open-row[data-status="cancelled"] .hos-open-row__title,
.hos-open-row[data-status="cancelled"] .hos-open-row__time { color: var(--muted); }
.hos-open-row[data-status="cancelled"] .hos-open-row__stops {
  text-decoration: line-through;
  text-decoration-color: var(--hairline);
}

@media (max-width: 720px) {
  .hos-open-row {
    grid-template-columns: 12px 88px 1fr;
    gap: 16px;
    padding: 18px 16px;
  }
  .hos-open-row__count-col { display: none; }
  .hos-open-row__chev { display: none; }
}

