.vs-week { scroll-margin-top: 5rem; }
.vs-week h2 { margin: 0 0 .5rem; }
.vs-week h2 + p { margin: 0; }
.vs-stations {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  padding: 0;
  margin: 1.5rem 0;
}
.vs-stations :is(a, button) {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 5rem;
  padding: .25rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 600 1rem/1.3 var(--font-text);
  text-decoration: none;
  cursor: pointer;
}
.vs-stations span { flex: none; align-self: flex-start; }
.vs-stations li:nth-child(even) span { align-self: flex-end; }
.vs-stations li:first-child span { margin-right: auto; }
.vs-stations li:last-child span { margin-left: auto; }
.vs-stations :is(a, button)::before,
.vs-stations :is(a, button)::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.vs-stations :is(a, button)::before {
  inset-inline: 0;
  height: var(--line-width);
  background: var(--route);
}
.vs-stations li:first-child :is(a, button)::before { inset-inline-start: 50%; }
.vs-stations li:last-child :is(a, button)::before { inset-inline-end: 50%; }
.vs-stations :is(a, button)::after {
  left: calc(50% - 9px);
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 3px solid var(--route);
  border-radius: 50%;
  background: var(--surface);
}
.vs-stations [aria-pressed="true"]::after { background: var(--route); }
.vs-stations [aria-pressed="true"] span { font-weight: 800; }
.vs-stations :focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.vs-stations button, .vs-week-js .vs-stations a { display: none; }
.vs-week-js .vs-stations button { display: flex; }

.vs-week-documents { display: grid; gap: 1.5rem; }
.vs-week-doc {
  min-width: 0;
  align-self: start;
  scroll-margin-top: 5rem;
  border: 1px solid var(--ink);
  border-top: var(--line-width) solid var(--route);
  background: var(--surface);
}
.vs-week-js .vs-week-doc { grid-area: 1 / 1; }
.vs-week-js .vs-week-doc:not(.is-active) { visibility: hidden; }
.vs-week-doc header, .vs-week-doc footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding: .875rem clamp(1rem, 3vw, 2.5rem);
}
.vs-week-doc header { border-bottom: 1px solid var(--ink); }
.vs-week-doc header > span { font: 400 .875rem/1.5 var(--font-mono); }
.vs-week-doc footer { border-top: 1px solid var(--ink); font-size: .875rem; }
.vs-week-doc footer p { margin: 0; }
.vs-document-body { max-width: 52rem; padding: clamp(1.25rem, 3vw, 2.5rem); }
.vs-document-body .vs-document-kind {
  font-weight: 600;
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8125rem;
}
.vs-document-body h3 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.125rem); line-height: 1.12; }
.vs-document-body p { margin: .75rem 0 0; }
.vs-document-body :is(ol, dl) { margin: 1.25rem 0 0; }
.vs-document-body dl div {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) 3fr;
  gap: .5rem 1rem;
  border-top: 1px solid var(--ink);
  padding: .5rem 0;
}
.vs-document-body dt { font-weight: 600; }
.vs-document-body dd { margin: 0; }
.vs-document-body ol { padding-inline-start: 2rem; }
.vs-document-body ol li { margin-bottom: .5rem; }
.vs-document-body li::marker { font: 600 1rem var(--font-mono); }
.vs-business-card {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--ink);
  border-left: var(--line-width) solid var(--route);
  padding: clamp(1rem, 3vw, 2.5rem);
}
.vs-business-card p { margin: .375rem 0 0; }
.vs-route-events .vs-document-body h3 { padding-bottom: 1rem; border-bottom: 1px solid var(--route); }
.vs-route-uniflo .vs-document-body p:not(.vs-document-kind) { border-left: 3px solid var(--route); padding-left: 1rem; }
:is(.vs-route-syncs, .vs-route-sign) .vs-document-body ol { list-style: none; padding: 0; }
:is(.vs-route-syncs, .vs-route-sign) .vs-document-body li {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) 2fr;
  gap: .25rem 1rem;
  padding: .625rem 0;
  margin: 0;
  border-top: 1px solid var(--ink);
}
:is(.vs-route-syncs, .vs-route-sign) li strong { font: 600 .9375rem/1.5 var(--font-mono); }
/* With the full mobile menu expanded, keep fragment targets in view. */
@media (max-width: 880px) {
  html:not(.vs-js) .vs-suite-header { position: static; }
}
@media (max-width: 879px) {
  .vs-stations { grid-template-columns: 1fr; }
  .vs-stations :is(a, button) { justify-content: flex-start; height: auto; padding-inline-start: 2.25rem; }
  .vs-stations li:nth-child(n) span { align-self: center; margin: 0; }
  .vs-stations li:nth-child(n) :is(a, button)::before {
    inset: 0 auto 0 9px;
    width: var(--line-width);
    height: auto;
    transform: none;
  }
  .vs-stations li:first-child :is(a, button)::before { top: 50%; }
  .vs-stations li:last-child :is(a, button)::before { bottom: 50%; }
  .vs-stations :is(a, button)::after { left: 3px; }
}
@media (max-width: 520px) {
  .vs-document-body dl div, :is(.vs-route-syncs, .vs-route-sign) .vs-document-body li {
    grid-template-columns: 1fr;
    gap: .125rem;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html.vs-lignes .vs-stations :is(button, a)::before { transition: filter 150ms; }
  .vs-stations :is(button, a):hover::before { filter: brightness(1.2); }
}
