/*
 * ============================================================================
 *  THE HEADER AND THE FOOTER OF THE APP PAGES
 * ============================================================================
 *
 *  The header is the same on the landing page and on the page of an app:
 *  the name of the site, the button that opens the list of the apps and
 *  the button that opens the list of the languages.
 *
 * ============================================================================
 */

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--app-page-line);
}

.app-topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--app-page-ink);
  font: 700 16px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.app-topbar-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c6cff, #4f9dff);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(124, 108, 255, 0.4);
}

.app-topbar-mark.small {
  width: 24px;
  height: 24px;
  font-size: 12px;
  border-radius: 7px;
}

.app-topbar-text {
  white-space: nowrap;
}

.app-topbar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.app-topbar-home {
  font: 600 13.5px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--app-page-muted);
  text-decoration: none;
  white-space: nowrap;
}

.app-topbar-home:hover {
  color: var(--app-page-ink);
}

/* The box the two buttons of the site live in. */
.app-topbar-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}/*
 * The buttons of the site are meant to sit in the bar. On the landing
 * page the bar is light, so the buttons are dark on it; here the bar is
 * dark, so the buttons are light on it.
 */
.app-topbar-tools .tsite-lang-btn,
.app-topbar-tools .tsite-menu-btn {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

.app-topbar-tools .tsite-lang-btn {
  background: transparent;
  box-shadow: none;
}

.app-topbar-tools .tsite-lang-btn:hover,
.app-topbar-tools .tsite-menu-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* The list of the languages opens downwards from the button. */
.app-topbar-tools .tsite-lang-panel {
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  right: auto;
}

/* ---------------------------------------------------------------- footer */

.app-footer {
  border-top: 1px solid var(--app-page-line);
  background: #0d0d14;
}

.app-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--app-page-max);
  margin: 0 auto;
  padding: 26px 24px;
}

.app-footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 14px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--app-page-ink);
}

.app-footer-note {
  font-size: 13px;
  color: var(--app-page-muted);
}

@media (max-width: 720px) {
  .app-topbar {
    padding: 10px 16px;
    gap: 10px;
  }

  .app-topbar-text {
    display: none;
  }

  .app-topbar-home {
    display: none;
  }

  .app-footer-inner {
    padding: 22px 18px;
  }
}
