/*
 * Ferry timetable (F2): the pieces specific to app/views/ferry/show.html.erb. The next departure is
 * the largest object on the page by design: glanceable at a terminal in bright sun.
 */
.ferry-dates { margin: 20px 0 0; }
.ferry-dates__form { gap: 8px; }
.ferry-dates__form input[type="date"] { width: auto; padding: 8px 12px; font-size: 15px; }
.ferry-block { margin-top: 16px; }

.ferry-next {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 20px 22px; border-radius: var(--r-card); background: var(--deep); color: var(--deep-text);
}
.ferry-next p { margin: 0; }
.ferry-next__label { font-size: 14px; font-weight: 700; color: var(--deep-muted); }
.ferry-next__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ferry-next-time { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ferry-next__countdown { font-size: 17px; font-weight: 700; color: var(--deep-text); }
.ferry-next__meta { margin-top: 6px !important; font-size: 15px; color: var(--deep-muted); }
@media (max-width: 640px) { .ferry-next-time { font-size: 46px; } }

.ferry-day { font-size: 22px; margin: 32px 0 12px; }
.ferry-card { padding: 0; }
.ferry-stamp { margin-top: 12px; }

/* ------------------------------------------------------------- Departures table --- */
.ferry-table { width: 100%; border-collapse: collapse; }
.ferry-table th {
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.ferry-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); font-size: 15px; vertical-align: middle; }
.ferry-table tr:last-child td { border-bottom: 0; }
.ferry-table tr.is-next td { background: var(--spark-tint); }
.ferry-table tr.is-next td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.ferry-table tr.is-cancelled td,
.ferry-table tr.is-departed td { color: var(--muted-2); }
.ferry-table tr.is-cancelled td:first-child,
.ferry-table tr.is-cancelled td:nth-child(2),
.ferry-table tr.is-departed td:first-child,
.ferry-table tr.is-departed td:nth-child(2) { text-decoration: line-through; }
.ferry-table__book { text-align: right; white-space: nowrap; }

.ferry-admin-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--danger);
  border: 1px solid var(--border-input); border-radius: 4px; padding: 1px 6px; margin-left: 6px;
}

/* ------------------------------------------------------------------ Other routes --- */
.ferry-routes { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 10px; }
.ferry-routes li { display: flex; flex-direction: column; font-size: 15px; }
