/* Shared header/footer chrome used by all public web pages */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(19, 41, 68, 0.12);
  border-radius: 0;
  width: auto;
  padding: 12px max(24px, calc((100vw - 1180px) / 2 + 18px));
  z-index: 1000;
  box-shadow: 0 10px 24px rgba(19, 41, 68, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(19, 41, 68, 0.16);
  background: #fff;
  color: #132944;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.nav a:not(.button) {
  color: #132944;
  text-decoration: none;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  opacity: 0.62;
}

.nav a:not(.button)[aria-current] {
  font-weight: 800;
  color: #0f2136;
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: #f9c319;
}

.topbar .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  color: #132944;
  background: #f9c319;
  box-shadow: 0 14px 28px rgba(249, 195, 25, 0.25);
}

.footer {
  margin-top: auto;
  padding: 28px max(24px, calc((100vw - 1180px) / 2 + 18px));
  border-radius: 0;
  background: #10233a;
  color: #fff;
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 0.8fr));
  gap: 24px;
  align-items: start;
}

.footer-brand img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  line-height: 1.7;
}

.footer h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-app-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.footer-app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(19, 41, 68, 0.14);
}

.footer-app-card p {
  margin: 0 0 14px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-chip.secondary {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-list {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand img {
    height: 44px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 240ms ease, opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
  }

  .topbar.nav-open .nav {
    max-height: 480px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a:not(.button) {
    font-size: 0.95rem;
    border: 1px solid rgba(19, 41, 68, 0.12);
    background: #fff;
    opacity: 1;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
  }

  .topbar .button {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
  }
}
