/* Mobile navigation shared by the static content pages. */
nav.mobile-menu-ready > .mobile-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  nav.mobile-menu-ready {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.25rem 1rem !important;
    width: 100%;
    height: auto !important;
    min-height: 60px;
    padding: 0.45rem 1rem !important;
    overflow: visible !important;
  }

  nav.mobile-menu-ready > .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(0, 255, 213, 0.3);
    border-radius: 10px;
    background: rgba(0, 255, 213, 0.06);
    color: #00ffd5;
    cursor: pointer;
  }

  nav.mobile-menu-ready > .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  nav.mobile-menu-ready.mobile-menu-open > .mobile-menu-toggle span:first-child {
    transform: translateY(6px) rotate(45deg);
  }
  nav.mobile-menu-ready.mobile-menu-open > .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  nav.mobile-menu-ready.mobile-menu-open > .mobile-menu-toggle span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  nav.mobile-menu-ready > .nav-links,
  nav.mobile-menu-ready > .mobile-nav-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    margin: 0 !important;
    padding: 0.45rem 1rem 1rem !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    background: rgba(2, 10, 15, 0.98) !important;
    border-top: 1px solid rgba(0, 255, 213, 0.16);
    border-bottom: 1px solid rgba(0, 255, 213, 0.2);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  nav.mobile-menu-ready.mobile-menu-open > .nav-links,
  nav.mobile-menu-ready.mobile-menu-open > .mobile-nav-links {
    display: flex !important;
  }

  nav.mobile-menu-ready > .nav-links > li {
    width: 100%;
    margin: 0;
  }

  nav.mobile-menu-ready .nav-links a,
  nav.mobile-menu-ready .mobile-nav-links a {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    padding: 0.65rem 0.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    font-size: 0.95rem !important;
    line-height: 1.4;
    white-space: normal;
  }

  nav.mobile-menu-ready .nav-links li:last-child a,
  nav.mobile-menu-ready .mobile-nav-links a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 360px) {
  nav.mobile-menu-ready {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
  }
}

/* Avoid small viewport overflow caused by oversized embedded media. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

nav.mobile-menu-ready > .mobile-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.founder-card > .founder-avatar {
  display: block;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  line-height: 0;
}

.founder-card > .founder-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.trust-owner-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-avatar {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(0, 255, 213, 0.35);
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
}

.trust-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-owner-copy {
  min-width: 0;
}

.trust-owner-copy a {
  color: #00ffd5;
  text-decoration: none;
}

.trust-owner-copy a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .founder-card {
    gap: 1rem !important;
    padding: 1rem !important;
  }

  .founder-card > .founder-avatar {
    flex: 0 0 76px !important;
    width: 76px !important;
    height: 76px !important;
  }

  .founder-card > .founder-copy {
    min-width: 0 !important;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
