:where(html.klino-web-redesign:not(.klino-native-app)) #discover-view-container {
  width: min(100%, 54rem);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2rem) var(--mobile-gutter, 1.5rem) 1.25rem;
  color: var(--text-main);
  animation: klino-view-in 260ms cubic-bezier(.2, .75, .3, 1);
}

:where(html.klino-web-redesign:not(.klino-native-app)) #discover-view-title {
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.03em;
}

:where(html.klino-web-redesign:not(.klino-native-app)) .discover-view-heading p {
  margin-block: .3rem 1rem;
  color: var(--text-sub);
  font-size: .9rem;
}

:where(html.klino-web-redesign:not(.klino-native-app)) .discover-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

:where(html.klino-web-redesign:not(.klino-native-app)) .discover-category-grid button {
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid var(--border-color);
  border-radius: .9rem;
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 650;
  font-size: .875rem;
  text-align: start;
  overflow-wrap: anywhere;
  transition: background-color 160ms ease, border-color 160ms ease;
}

:where(html.klino-web-redesign:not(.klino-native-app)) .discover-category-grid button:is(:hover, :focus-visible) {
  background: var(--bg-hover);
}

/* The page can fit a typical phone without a footer pushing it below the fold. */
:where(html.klino-web-redesign:not(.klino-native-app)) body:has(#discover-view-container:not(.hidden)) > footer {
  display: none;
}

@media (min-width: 640px) {
  :where(html.klino-web-redesign:not(.klino-native-app)) .discover-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (min-height: 601px), (min-width: 768px) and (pointer: fine) {
  html.klino-web-redesign:not(.klino-native-app):has(#desktop-categories-button[aria-expanded="true"]) {
    overflow: hidden;
    overscroll-behavior: none;
    scrollbar-gutter: stable;
  }

  :where(html.klino-web-redesign:not(.klino-native-app)) #desktop-category-menu {
    inset-inline-start: auto;
    inset-inline-end: 0;
    max-height: calc(100vh - 5.75rem);
    max-height: calc(100dvh - 5.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
