/* Global: hide visible scrollbars while keeping scrolling enabled */
html, body {
  -ms-overflow-style: none; /* IE/old Edge */
  scrollbar-width: none;    /* Firefox */
}

/* Global layout: keep footer at bottom of viewport when short,
   and at end of document when content is long (no overlay). */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* Common "main content" wrappers across the site */
main,
.portal-container,
.users-container,
.profile-container,
.admin-container,
.profile-form-container {
  flex: 1 0 auto;
}

/* Chrome/Safari/Edge */
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Firefox */
* {
  scrollbar-width: none;
}

/* Global footer: compact, in normal flow (scroll to see) */
footer,
.footer {
  position: static !important;
  width: 100%;
  margin: 0;
  margin-top: auto;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)) 0;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer nav,
.footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0 10px;
}

footer nav a,
.footer nav a {
  margin: 0;
  padding: 2px 0;
  font-size: 0.88rem;
}

footer nav p,
.footer nav p {
  margin: 2px 0 0 0;
  font-size: 0.74rem;
  opacity: 0.9;
}

@media (max-width: 700px) {
  footer,
  .footer {
    margin-top: 12px;
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px)) 0;
  }
  footer nav a,
  .footer nav a {
    font-size: 0.84rem;
  }
  footer nav p,
  .footer nav p {
    font-size: 0.7rem;
  }
}

/* Nav "Social" dropdown (works for hover + tap) */
.nav-social {
  position: relative;
  width: 100%;
}

.nav-social-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0.75em 0;
  cursor: pointer;
}

.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.9em;
  display: none;
}

.nav-social:hover .nav-submenu,
.nav-social:focus-within .nav-submenu,
.nav-social.is-open .nav-submenu {
  display: block;
}

.nav-submenu a {
  display: block;
  padding: 0.6em 0;
}

/* Footer social icons row */
.footer-social {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  flex-basis: 100%;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}

.social-icon:hover {
  transform: scale(1.05);
  border-color: rgba(255, 77, 92, 0.6);
  background: rgba(255, 77, 92, 0.10);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

