/* Linked after the site's styles only on an article that has a route. */

.article-route p {
  margin: 0 0 14px;
  line-height: 1.65;
}

.article-route h2 {
  margin: 0 0 16px;
  font-size: 1.625rem;
  line-height: 1.2;
}

/* The route through the article's places, each leg with its rough length
   and time on foot. */
.article-route ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-route li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 4px;
}

.article-route-leg {
  margin-inline-start: 9px;
  padding-inline-start: 19px;
  border-inline-start: 2px dotted var(--gold-soft);
  color: var(--muted);
  font-size: 0.8125rem;
}

.article-route-stop .article-on-map-number {
  margin-inline-end: 8px;
  vertical-align: 1px;
}

.article-route-stop a {
  color: var(--navy);
  font-weight: 600;
}

.article-route-note {
  color: var(--muted);
}

.article-route-note-all {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* A walk laid along the real path: its whole length and climb sum up the
   legs above, and whose data it is is said as quietly as on a place's page. */
/* A route measured in a straight line tells its time under its legs. */
.article-route .article-route-time {
  margin: 12px 0 0;
  color: var(--navy);
  font-weight: 600;
}

/* How long to stay at a stop, after its name and note in the same line. */
.article-route-stay {
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.article-route-stay::before {
  content: " · ";
}

.article-route .article-route-credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.article-route-credit a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

/* How the ground goes along a laid walk, with its stops marked. */
.article-route-profile {
  margin: 16px 0 0;
  padding-inline: 10px;
}

.article-route-profile-picture {
  display: block;
  width: 100%;
  height: 118px;
  overflow: visible;
}

.article-route-profile-ground {
  fill: rgb(176 138 79 / 25%);
}

.article-route-profile-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.article-route-profile-stop {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.article-route-profile-dot {
  fill: var(--navy);
}

/* On a narrow screen a stop close to the one before it drops to a second
   row, given room below, so their numbers do not touch. */
@media (max-width: 560px) {
  .article-route-profile-picture--rows {
    height: 140px;
  }

  .article-route-profile-mark--low {
    transform: translateY(22px);
  }
}

.article-route-profile-number {
  fill: #fff;
  font-size: 0.75rem;
}


/* A laid walk at a glance, under the intro, a card as the contents below
   it are: how long, how much it climbs, its stairs and its time, each a
   line of its own, and how the ground goes along it. */
.article-glance {
  margin: 0 0 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 6%);
}

.article-glance .article-glance-figures {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--navy);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.article-glance .article-route-total {
  font-weight: 600;
}

/* Pointed along, the profile marks the point and tells it underneath. */
.article-route-profile-picture {
  cursor: crosshair;
  touch-action: none;
}

.article-route-profile-marker {
  stroke: var(--navy);
  stroke-width: 1.5;
}

.article-route-profile .article-route-profile-at {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
}
