.engine-tour {
  padding-top: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  font: 1.0625rem/1.65 var(--font);
  color: var(--guide-text);
}
.tour-chapters :is(p, li) a {
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-color: #867b70;
}
.engine-tour :is(p, li) a:hover { color: white; text-decoration-color: currentColor; }
.engine-tour h1, .engine-tour h2 { font-family: var(--font-futura); color: white; }
.engine-tour h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.engine-tour header p {
  max-width: 64ch;
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}
.tour-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--guide-rule);
  padding-top: 2.5rem;
}
.tour-layout nav { position: sticky; top: 5rem; }
.tour-layout nav h2 { font-size: 1.5rem; }
.tour-layout nav ol { padding-left: 1.6em; margin-bottom: 0; }
.tour-layout nav li + li { margin-top: .45rem; }
.tour-layout nav li::marker { color: var(--guide-text); font-size: .85em; }
.tour-layout nav a:hover { text-decoration: underline; }
.tour-chapters { min-width: 0; max-width: 76ch; }
.tour-chapters .source-links { justify-content: flex-start; text-align: center; }
.tour-chapters section + section { margin-top: clamp(3rem, 6vw, 5rem); }
.tour-chapters h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.tour-chapters p, .tour-chapters li, .tour-chapters h2 { overflow-wrap: anywhere; }
.tour-chapters :is(p, li, td, th, h2) code { font-size: .91em; }
.tour-chapters ol { padding-left: 1.5em; }
.tour-chapters li + li { margin-top: .65em; }
.tour-chapters .cpp-card { color: white; }
.cpp-card .cpp-comment { color: var(--guide-text); }
.tour-table { overflow-x: auto; }
.tour-table:focus-visible { outline: 2px solid var(--guide-accent); outline-offset: 2px; }
.tour-table table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .94rem; }
.tour-table th, .tour-table td {
  padding: .8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--guide-rule);
}
.tour-table thead { background: var(--guide-panel); color: white; }
@media (max-width: 52rem) {
  .tour-layout { grid-template-columns: minmax(0, 1fr); }
  .tour-layout nav { position: static; }
}
@media (max-width: 26rem) {
  .engine-tour h1 { font-size: 11vw; }
}
@media (max-height: 28rem) {
  .tour-layout nav { position: static; }
}
