:root {
  --route-copy-measure: 72ch;
  --route-gap: clamp(16px, 3vw, 36px);
  --route-label-size: 13px;
}

.route-intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--route-gap);
}

.route-intro h1 {
  margin-block: 16px 0;
}

.route-scope {
  display: grid;
  gap: 8px;
  border-inline-start: 3px solid var(--accent);
}

.route-scope-label {
  color: var(--accent-dark);
  font-size: var(--route-label-size);
  font-weight: 700;
}

.route-scope strong {
  font-size: var(--size-lede);
  line-height: 1.4;
}

.route-scope p,
.route-reading p:last-child,
.route-type-copy p:last-child,
.route-use p,
.route-next {
  margin-bottom: 0;
}

.route-reference > .toc-tabs {
  margin-block: 20px 0;
}

.route-reference > .section-band:first-of-type {
  padding-top: calc(var(--section-space) * .65);
}

.route-reference > .section-band:last-child {
  border-bottom: 0;
}

.route-deck,
.route-reading,
.route-next {
  max-width: var(--route-copy-measure);
}

.route-table .data-table {
  table-layout: fixed;
}

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

.route-reading {
  margin-top: 24px;
}

.route-reading,
.route-type-copy,
.route-use {
  line-height: 1.8;
}

.route-types {
  display: grid;
  gap: 16px;
}

.route-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--route-gap);
}

.route-type > * {
  min-width: 0;
}

.route-type-copy p,
.route-use p {
  max-width: var(--route-copy-measure);
}

.route-path {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--route-label-size);
}

.route-path li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.route-path li:not(:last-child)::after {
  content: "";
  inline-size: 12px;
  border-top: 1px dotted var(--accent-dark);
}

.route-path li:last-child {
  color: var(--accent-dark);
  font-weight: 700;
}

.route-use {
  border-top: 1px solid var(--border);
}

.route-use > section {
  display: grid;
  grid-template-columns: minmax(9em, 1fr) minmax(0, 4fr);
  gap: var(--route-gap);
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
}

.route-use h3 {
  margin: 0;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--accent);
  align-self: start;
}

.route-next {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .route-intro,
  .route-type,
  .route-use > section {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-use > section {
    gap: 10px;
  }

  .route-intro .lede {
    font-size: var(--size-body);
  }
}