/* Additions the Markdown bodies need. site.css stays untouched. */

/* A ship body opens with "On board", which sits directly under the back link
   and therefore needs no top margin; later headings need the 40px the old
   inline styles carried. */
.prose__body > h2 {
  margin-top: 40px;
}
.prose__body > h2:first-child {
  margin-top: 0;
}
.prose__body > h2:first-child + p {
  margin-top: 0;
}

/* Route intros keep the display size `.lede` gave them as a paragraph. */
.prose__body.lede > p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  max-width: none;
}

/* Inline links in running text. The site sets `text-decoration: none` globally
   and uses `.link` for button-like links, which is wrong mid-sentence; without
   an underline a sentence-level link is invisible. */
.note-block a,
.check-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(11, 42, 40, 0.35);
  text-underline-offset: 3px;
}

.note-block a:hover,
.check-list a:hover {
  text-decoration-color: currentColor;
  color: var(--brick);
}
