@media (max-width: 1200px) {
  .shell.has-toc {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
  }

  .toc {
    display: none;
  }

  .hero-layout,
  .walk article,
  .walk article:nth-child(even) .copy {
    grid-template-columns: 1fr;
  }

  .walk article:nth-child(even) .copy {
    order: 0;
  }
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .brand-name {
    display: none;
  }

  .shell,
  .shell.has-toc {
    grid-template-columns: 1fr;
  }

  .rail {
    position: fixed;
    z-index: 40;
    top: var(--header-h);
    left: 0;
    width: min(19rem, 88vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow-card);
  }

  body.nav-open .rail {
    transform: none;
  }

  body.nav-open .rail-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 35;
  }

  .search-launch span {
    display: none;
  }

  .platform-cards,
  .cta-band,
  .crosslink,
  .gallery-grid.list .shot-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta-band,
  .crosslink {
    display: block;
  }

  .cta-band .actions,
  .crosslink .actions {
    margin-top: 0.8rem;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 1rem 0.9rem 3rem;
  }

  .search-launch {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    justify-content: center;
  }

  .search-launch span,
  .search-launch kbd {
    display: none;
  }

  .search-launch::after {
    content: "⌕";
    color: var(--text-primary);
    font-size: 1.1rem;
  }

  .platform-switch button {
    padding-inline: 0.45rem;
  }

  .pager {
    flex-direction: column;
  }

  .pager a {
    max-width: none;
  }

  dl.meta {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .rail,
  .toc,
  .rail-backdrop,
  .actions,
  .filter-bar,
  .gallery-tools,
  .marker,
  .menu-toggle,
  .search-launch,
  .platform-switch {
    display: none !important;
  }

  body,
  .content {
    background: #fff;
    color: #111;
  }

  .shell,
  .shell.has-toc {
    display: block;
  }

  a {
    color: #111;
  }

  .card,
  .panel,
  .window,
  .annotated img {
    break-inside: avoid;
    box-shadow: none;
  }
}
