/* Keep the needle, its transferred bearing and the corrected course on the
   same plotting surface at every width. Object-fit preserves the original ink. */
.fleet.chart .chart-plot {
  aspect-ratio: 1.52;
  background-color: #eef1e8;
  background-image:
    linear-gradient(90deg, rgb(104 136 125 / .11) 1px, transparent 1px),
    linear-gradient(0deg, rgb(104 136 125 / .11) 1px, transparent 1px);
}
.fleet.chart .chart-node:focus-visible {
  outline: 2px dashed var(--graphite);
  outline-offset: -4px;
}
.fleet.chart .chart-plot:has(.chart-plot__light:is(:hover,:focus-visible)) .light-fix,
.fleet.chart .chart-plot:has(.chart-plot__mark:is(:hover,:focus-visible)) .needle-fix,
.fleet.chart .chart-plot:has(.chart-plot__boat:is(:hover,:focus-visible)) .ship-fix {
  stroke-width: 3px;
  fill: #a5353b;
}
.fleet.chart .chart-opening__actions a:not(.chart-main-link):is(:hover,:focus-visible) {
  text-decoration-color: var(--bearing);
  text-decoration-thickness: 2px;
}
.fleet.chart .skip { z-index: 8; }
.fleet.chart .masthead :is(a,button):focus-visible,
.fleet.chart .foot a:focus-visible,
.fleet.chart .contact-note button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.fleet.chart .bar nav a { font-size: .95rem; }
.fleet.chart .course-legs a {
  align-content: start;
  grid-template-rows: 18px auto;
  min-height: 48px;
  padding-top: 5px;
}
.fleet.chart .course-legs a::before { top: 14px; }
.fleet.chart .course-legs a[aria-current="location"] .course-pin {
  color: var(--bearing);
  background: currentColor;
}
.fleet.chart .foot .text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.fleet.chart .telegram-inner { align-items: center; }
.fleet.chart .telegram-inner .return-light { mix-blend-mode: multiply; }
.fleet.chart .telegram-inner .rm-route-end::before {
  /* Terminate the line at the foot of the lighthouse, above the button. */
  top: 3.6rem;
  right: auto;
  left: clamp(-3.25rem, -3.5vw, -1.25rem);
  width: clamp(2rem, 6vw, 5.7rem);
  color: #4c7771;
}
.fleet.chart .contact-note {
  background: #f7faf7;
  color: var(--ink);
  border-color: var(--line);
  border-top: 2px solid var(--graphite);
  box-shadow: 0 12px 48px #132c3c29;
}
.fleet.chart .contact-note::backdrop { background: rgb(19 42 54 / .54); }
.fleet.chart .contact-note h2 { font-family: var(--serif); font-weight: 400; }
.fleet.chart .contact-note .button {
  border: 1px solid var(--ink);
  border-radius: 0;
  color: white;
  background: #19384a;
}
.fleet.chart :is(.chart-main-link,.telegram-action .button,.header-contact .button,.contact-note .button):hover {
  background-color: var(--green);
}
@media (max-width: 52.99rem) {
  /* Give the reader a continuous position signal without covering the
     illustrations or keeping the whole mobile navigation on screen. */
  .fleet.chart .masthead .fleet-reading-course { position: fixed; top: 0; bottom: auto; }
  .fleet.chart .masthead .bar { min-height: 3.7rem; }
  html { scroll-padding-top: 1rem; }
  .fleet.chart .box-contents [id^="rm-meal"] { scroll-margin-block-start: .5rem; }
}
@media (max-width: 42rem) {
  .fleet.chart .bar nav a, .fleet.chart .course-legs a { font-size: .875rem; }
  .fleet.chart .bar nav { column-gap: clamp(.65rem, 3vw, 1rem); }
  .fleet.chart .foot {
    display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem;
    padding-block: 1rem;
  }
  .fleet.chart .foot .wordmark { grid-area: 1/1; justify-self: start; }
  .fleet.chart .foot .text-link { grid-area: 1/2; }
}
@media (max-width: 23rem) {
  .fleet.chart .masthead .bar nav { column-gap: .55rem; }
  .fleet.chart .course-legs a { padding-inline-end: 3px; }
  .fleet.chart .chart-opening__actions { gap: .25rem .8rem; }
}
@media (min-width: 55.01rem) {
  .fleet.chart .chart-opening__spread {
    grid-template-columns: minmax(0,.89fr) minmax(0,1.11fr);
  }
}
@media (max-width: 21rem) {
  .fleet.chart .masthead .bar { column-gap: .25rem; }
  .fleet.chart .masthead .bar nav { column-gap: .3rem; }
  .fleet.chart .chart-opening h1 { font-size: 2.2rem; }
}
.fleet.chart .chart-opening h1 { text-wrap: balance; }
@media (min-width: 42.01rem) and (max-width: 47rem) {
  .fleet.chart .chart-opening__spread { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .fleet.chart .chart-opening h1 { font-size: clamp(2.25rem,5.25vw,2.45rem); }
}
