/* The Applications page uses the layout from DESIGN/khromik-dev/pages/apps. */
.apps-page {
  padding-top: calc(var(--header-h) + 5rem);
}

.apps-page .catalog-section {
  margin: 0;
}

.apps-page .sec-head--h1 {
  --rule-y: calc(var(--fs-h1) * 1.08 / 2);
}

.apps-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.apps-body > .apps-grid,
.apps-body > .catalog-actions,
.apps-empty {
  align-self: stretch;
}

.apps-empty {
  padding: var(--s-16) var(--s-6);
}

.apps-empty .t-h3 {
  margin: 0;
}

.apps-login-close {
  display: contents;
}

.apps-login-close .dialog-close:focus-visible {
  z-index: 2;
  display: grid;
  place-items: center;
}

@supports not (text-box: trim-both cap alphabetic) {
  .apps-page .app-tile__title {
    margin-bottom: calc(var(--trim-name-b) * -1);
  }
}

@media (min-width: 1024px) {
  html {
    font-size: calc(100vw / 120);
  }

  body[data-page='apps'] {
    --header-h: 4.5rem;
    --bw: 1.2px;
  }

  body[data-page='apps'] .header__inner,
  body[data-page='apps'] .feed-footer {
    max-width: none;
  }
}

@media (max-width: 1023.98px) {
  .apps-page {
    padding-top: calc(var(--header-h) + 2.5rem);
  }

  .apps-filter {
    display: flex;
    width: 100%;
    align-self: stretch;
  }

  .apps-filter .seg__item {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    height: max(40px, 2.5rem);
    padding-inline: .375rem;
    gap: .375rem;
    font-size: max(12px, .75rem);
  }

  .feed-footer .footer__label {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
  }

}

@media (max-width: 374.98px) {
  .apps-filter .seg__count {
    display: none;
  }

  .public-page[data-page='apps'] .feed-footer {
    padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom));
  }
}
