:root {
  --ac-bg: #f3f7fb;
  --ac-ink: #0f2132;
  --ac-muted: #5f7084;
  --ac-primary: #0c8b8f;
  --ac-primary-dark: #096d79;
  --ac-border: rgba(15, 33, 50, 0.09);
}

.top-nav,
.top-nav *,
.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.public-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 247, 251, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ac-border);
  transition: box-shadow .22s ease;
}

.top-nav.is-scrolled {
  box-shadow: 0 8px 20px rgba(15, 33, 50, 0.08);
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 15px;
}

.public-brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.top-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.top-nav-links form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.nav-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  flex: 0 0 auto;
}

.top-control,
.nav-link-lite {
  min-height: 44px;
  border-radius: 14px;
  box-sizing: border-box;
  line-height: 1;
}

.nav-link-lite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #2f4359;
  font-family: "Manrope", sans-serif;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all .2s ease;
}

.nav-link-lite:hover {
  color: var(--ac-primary);
  background: rgba(12, 139, 143, 0.05);
  text-decoration: none;
}

.nav-link-lite.emphasis {
  color: #0f3147;
  background: rgba(15, 49, 71, 0.04);
  border-color: rgba(15, 49, 71, 0.08);
  box-shadow: none;
}

.nav-link-lite.cta {
  margin-left: 0;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(120deg, #0f8f9a, #0f6f97);
  border-color: transparent;
  box-shadow: none;
}

.nav-link-lite.cta:hover {
  color: #fff;
  filter: brightness(.98);
}

.public-language-switcher {
  position: relative;
  min-width: 182px;
  min-height: 44px;
  border: 1px solid #d8e1ea;
  border-radius: 14px;
  background: #fff;
  color: #2c4158;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.public-language-switcher:hover {
  background: #f8fbfe;
  border-color: #ccd9e6;
}

.public-language-switcher:focus-within {
  border-color: rgba(12, 139, 143, 0.5);
  box-shadow: 0 0 0 3px rgba(12, 139, 143, 0.14);
  background: #fff;
}

.public-language-icon {
  position: absolute;
  left: 13px;
  z-index: 1;
  color: #6d7f92;
  font-size: .9rem;
  line-height: 1;
  pointer-events: none;
}

.public-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.public-language-select {
  position: relative;
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 36px;
  border: 0;
  border-radius: 14px;
  outline: 0;
  background: transparent;
  color: #2c4158;
  font-family: "Manrope", sans-serif;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
}

.public-language-submit {
  min-height: 36px;
  margin-right: 4px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--ac-primary);
  font-weight: 700;
}

.site-footer {
  padding: 18px 0 30px;
  color: #5c6f84;
  font-family: "Manrope", sans-serif;
  font-size: .86rem;
}

.site-footer .container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-footer-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 33, 50, 0.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 251, 0.94));
  box-shadow: 0 16px 34px rgba(15, 33, 50, 0.08);
}

.site-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(12, 139, 143, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #12354d;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.site-footer-links a:hover {
  color: #12354d;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(12, 139, 143, 0.3);
  box-shadow: 0 12px 24px rgba(15, 33, 50, 0.08);
}

.site-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.site-footer-copy {
  color: #4e6479;
  font-weight: 600;
}

.site-footer-copy strong {
  color: #17344d;
  font-weight: 800;
}

.site-footer-tagline {
  color: #6e8194;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.site-footer-note {
  color: #5d7285;
  font-size: .84rem;
  font-weight: 600;
}

.public-main .auth-shell,
.public-main .invite-shell {
  min-height: calc(100vh - 250px) !important;
}

@media (max-width: 760px) {
  .top-nav .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-cta-group {
    margin-left: 0;
  }

  .public-language-switcher {
    min-width: 165px;
  }

  .site-footer-top {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-meta {
    align-items: flex-start;
    text-align: left;
  }

  .site-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .top-nav .container {
    gap: 8px;
  }

  .top-nav-links {
    justify-content: center;
  }

  .mobile-secondary-nav {
    display: none;
  }
}
