/* Shared, static filing information: visible before authentication and without JavaScript. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body > #root {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-width: 0;
}

#root > .auth-shell {
  flex: 1;
  min-height: 0;
}

.site-filing {
  flex: 0 0 auto;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--foreground, #172b4d);
  font: 14px/1.6 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

.site-filing a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 4px;
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-filing a:hover,
.site-filing a:active {
  color: var(--primary, #1363df);
}

.site-filing a:focus-visible {
  outline: 3px solid var(--primary, #1363df);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 767px) {
  /* Reserve space for the portal's fixed bottom navigation. */
  .site-filing {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  @supports selector(:has(*)) {
    body:not(:has(.mobile-nav)) > .site-filing {
      padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
  }
}
