.tour-btn { width: auto !important; padding: 0 8px; font-size: 14px !important; white-space: nowrap; }
/* fixed height (not max-height): the nav stays at the same place on every stop, it no longer jumps with the text
   length; flex column + nav margin-top auto keeps it at the bottom when the text is short, sticky when it scrolls */
.tour-card { position: fixed; right: 16px; top: 16px; width: 360px; height: min(560px, calc(100vh - 56px)); overflow: auto;
  display: flex; flex-direction: column;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 12px 14px 10px;
  transform: translateX(calc(100% + 40px)); transition: transform .35s steps(6); z-index: 20; }
.tour-card.show { transform: none; }
.tour-card.flying .tc-text, .tour-card.flying .tc-facts, .tour-card.flying .tc-src { opacity: .35; }
.tc-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .8; }
.tc-x { font: inherit; background: none; border: 0; font-size: 16px; cursor: pointer; color: var(--ink); }
.tc-name { margin: 4px 0 2px; font-size: 22px; line-height: 1.1; font-weight: 600; }
.tc-lead { margin: 0 0 8px; color: #6a4a10; font-size: 15px; }
.tc-text { margin: 0 0 8px; font-family: system-ui, sans-serif; font-size: 14px; line-height: 1.45; }
.tc-facts { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
/* system font: at 13 px the pixel font draws 5 like 8 (1954 read as 1984) and the pills are mostly dates */
.tc-facts li { background: var(--accent); border: 2px solid var(--ink); padding: 1px 6px; font-family: system-ui, sans-serif; font-weight: 600; font-size: 13px; }
.tc-src { font-size: 12px; opacity: .75; margin-bottom: 8px; }
.tc-src a { color: var(--ink); }
/* nav pinned to the bottom edge of the (scrolling) card: on phones a long text pushed it below the fold */
.tour-card > * { flex-shrink: 0; }
.tc-nav { display: flex; gap: 6px; align-items: center; position: sticky; bottom: -10px; z-index: 1; margin-top: auto !important;
  margin: 0 -14px -10px; padding: 7px 14px 10px; background: var(--paper); border-top: 2px solid rgba(43, 36, 51, .18); }
.tc-nav button { font: inherit; width: 34px; height: 30px; background: #fff; border: 2px solid var(--ink); cursor: pointer; }
.tc-nav button:disabled { opacity: .35; cursor: default; }
.tc-bar { flex: 1; height: 8px; border: 2px solid var(--ink); background: #fff; }
.tc-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
body.touring #labels { opacity: .55; }
@media (max-width: 600px) {
  .tour-card { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: 46vh; transform: translateY(calc(100% + 30px)); }
  .tc-name { font-size: 19px; }
  .tc-text { font-size: 13.5px; }
  body.touring #credits { display: none; }
}
