/* ------------------------------------------------------------------
   Страницы направлений: указатель портов, порт, пара.
   ------------------------------------------------------------------ */

/* Путь по сайту: мелко и тихо, чтобы не спорить с заголовком */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--ink-soft); }
.crumbs > * + *::before { content: '›'; margin-right: 0.5rem; color: var(--panel-deep); }

/* Указатель портов: колонками, пока хватает ширины */
.prose .port-index,
.port-index--home {
  list-style: none;
  padding: 0;
  columns: 3 12rem;
  column-gap: 2rem;
}
.port-index li { break-inside: avoid; margin-bottom: 0.5rem; }
.port-count { display: block; font-size: 0.85rem; color: var(--ink-soft); }

/* Участки пути — та же вертикальная ось, что держит весь сайт */
.prose .direction-legs {
  list-style: none;
  counter-reset: leg;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--water);
  margin: 1rem 0 1.2rem;
}
.direction-legs li { counter-increment: leg; position: relative; margin-bottom: 1rem; }
.direction-legs li::before {
  content: counter(leg);
  position: absolute;
  left: -2.35rem;
  top: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--water);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6rem;
}
.leg-area { display: block; color: var(--ink-soft); }
.leg-note { display: block; font-size: 0.9rem; color: var(--signal); }

.direction-offer th { width: 45%; }
.direction-list th a { font-weight: 600; }

.prose .ship-types,
.prose .direction-related {
  columns: 2 16rem;
  column-gap: 2rem;
}
.ship-types li,
.direction-related li { break-inside: avoid; }

.direction-source { margin-top: 2.5rem; font-size: 0.9rem; color: var(--ink-soft); }

/*
 * На телефоне таблицы нормативов разворачиваются в список, а ячейки без
 * подписи прячутся (mobile.css). Здесь таблицы не нормативов, а «что —
 * какое», и ячейка справа и есть ответ: прятать её нельзя.
 */
@media (max-width: 40rem) {
  table.norms.direction-offer td,
  table.norms.direction-list td {
    display: block;
    padding: 0.1rem 0 0;
    text-align: left;
    color: var(--ink-soft);
  }
}
