@media (max-width: 1100px) {
  .search-trigger {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

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

@media (max-width: 980px) {
  .topbar-inner {
    width: min(100% - 32px, var(--content));
  }

  .topnav {
    display: none;
  }

  .docs-shell {
    display: block;
    width: min(100% - 40px, var(--content));
  }

  .sidebar {
    position: static;
    height: auto;
    display: flex;
    gap: 6px;
    margin: 18px 0 0;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }

  .sidebar-title {
    display: none;
  }

  .sidebar a {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }

  .content {
    padding-top: 24px;
  }

  .hero-doc {
    min-height: 440px;
    padding: 48px 34px;
  }

  .info-grid,
  .feature-list,
  .route-grid,
  .credits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    gap: 10px;
    width: calc(100% - 24px);
  }

  .top-actions {
    gap: 6px;
  }

  .language-switch a {
    min-width: 34px;
    padding: 4px 7px;
    font-size: 12px;
  }

  .icon-button,
  .search-trigger {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .content {
    padding-bottom: 64px;
  }

  .hero-doc {
    min-height: 0;
    padding: 38px 24px;
    border-radius: 18px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    justify-content: center;
  }

  th,
  td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  th {
    border-bottom: 0;
  }

  td {
    padding-top: 0;
  }
}
