.entry-route {
  display: flex;
  flex-direction: column;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 0;
}

.article-expand-icon {
  display: grid;
  grid-template-columns: repeat(2, 0.36rem);
  gap: 0.3rem;
}

.article-expand-icon > span {
  inline-size: 0.36rem;
  block-size: 0.36rem;
  border: solid currentColor;
}

.article-expand-icon > span:nth-child(1) { border-width: 2px 0 0 2px; }
.article-expand-icon > span:nth-child(2) { border-width: 2px 2px 0 0; }
.article-expand-icon > span:nth-child(3) { border-width: 0 0 2px 2px; }
.article-expand-icon > span:nth-child(4) { border-width: 0 2px 2px 0; }

[data-mode="expanded"] .article-expand-icon > span {
  transform: rotate(180deg);
}

.entry-route .entry-route-status {
  flex: none;
  margin-block: 0.3rem 0.65rem;
  color: var(--journal-muted);
  font: 500 0.9rem/1.4 var(--journal-sans);
}

.entry-route-frame {
  position: relative;
  display: flex;
  flex: 1;
  min-block-size: 0;
  isolation: isolate;
}

.entry-route-expand {
  position: absolute;
  inset-block-start: 0.625rem;
  inset-inline-end: 0.625rem;
  z-index: 1;
}

.entry-route-view[hidden] + .entry-route-expand {
  display: none;
}

.entry-route-view {
  flex: 1;
  min-inline-size: 0;
  isolation: isolate;
  min-block-size: 0;
  border-radius: var(--rounded-box, 1rem);
  overflow: hidden;
  background: #e7e4dc;
}

.article-tools-dialog:not([data-mode="expanded"]) .entry-route-status {
  display: flex;
  align-items: center;
  min-block-size: 2.75rem;
  margin-block-start: 0;
  padding-inline-end: var(--article-dialog-close-space);
}

.article-tools-dialog:not([data-mode="expanded"]) .entry-route-frame {
  flex: none;
  block-size: clamp(13rem, 55dvh, 31rem);
}

.article-tools-dialog[data-mode="expanded"] .entry-route {
  flex: 1;
}

.entry-route .entry-route-view img {
  margin: 0;
}

.entry-route .entry-route-legend {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-block: 0.75rem 0;
  padding: 0;
  list-style: none;
  color: var(--journal-muted);
  font: 500 0.8rem/1.35 var(--journal-sans);
}

.entry-route-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.entry-route-legend li::before {
  content: "";
  flex: none;
  inline-size: 0.55rem;
  block-size: 0.55rem;
  border-radius: 50%;
  background: #b94620;
}

.entry-route-legend li[data-style="pickup"]::before {
  background: #315e91;
}

.entry-route-legend li[data-style="camp"]::before {
  background: #605343;
}

.entry-route-legend li:is([data-style="hike"], [data-style="hitch"])::before {
  inline-size: 1rem;
  block-size: 0;
  border-top: 3px solid #b94620;
  border-radius: 0;
  background: none;
}

.entry-route-legend li[data-style="hitch"]::before {
  border-top: 3px dashed #315e91;
}

.entry-route-status[data-mileage] {
  text-align: right;
}
