/* Shared site header (nav) for auth and other lightweight pages — keep in sync with about.html nav block. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body.forsa-with-site-nav {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fafaf8;
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

nav.forsa-site-nav {
  position: sticky;
  top: 0;
  z-index: 140;
  padding: 20px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
  border-bottom: 1px solid #cdd6d0;
  background: #e8ecea;
  overflow: visible;
}

.forsa-site-nav .logo-link {
  justify-self: start;
  text-decoration: none;
  color: inherit;
}

.forsa-site-nav .logo {
  font-family: "DM Serif Display", serif;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #14532d;
}

.forsa-site-nav .logo-accent {
  color: #14532d;
}

.forsa-site-nav .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  justify-self: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.forsa-site-nav .nav-resources,
.forsa-site-nav .nav-tools {
  position: relative;
}

.forsa-site-nav .nav-resources::after,
.forsa-site-nav .nav-tools::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 10px;
}

.forsa-site-nav .nav-resources-trigger,
.forsa-site-nav .nav-tools-trigger {
  font: inherit;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  user-select: none;
}

.forsa-site-nav .nav-resources:hover .nav-resources-trigger,
.forsa-site-nav .nav-resources:focus-within .nav-resources-trigger,
.forsa-site-nav .nav-resources--active .nav-resources-trigger,
.forsa-site-nav .nav-tools:hover .nav-tools-trigger,
.forsa-site-nav .nav-tools:focus-within .nav-tools-trigger,
.forsa-site-nav .nav-tools--active .nav-tools-trigger {
  color: #1a1a1a;
  background: rgba(26, 26, 26, 0.06);
}

.forsa-site-nav .nav-resources-panel {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
  min-width: 480px;
  max-width: min(600px, calc(100vw - 32px));
  margin: 0;
  padding: 28px 44px 32px;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  box-sizing: border-box;
}

.forsa-site-nav .nav-resources-col {
  flex: 1;
  min-width: 0;
}

.forsa-site-nav .nav-resources-col > .nav-resources-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.forsa-site-nav .nav-resources-heading {
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  letter-spacing: 0.03em;
  margin: 0 0 16px;
  text-align: left;
}

.forsa-site-nav .nav-resources-col .nav-resources-links li + li {
  margin-top: 2px;
}

.forsa-site-nav .nav-resources:hover .nav-resources-panel,
.forsa-site-nav .nav-resources:focus-within .nav-resources-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.forsa-site-nav .nav-tools-panel {
  list-style: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  margin: 0;
  padding: 16px 28px 18px;
  min-width: 300px;
  max-width: min(380px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  box-sizing: border-box;
}

.forsa-site-nav .nav-tools:hover .nav-tools-panel,
.forsa-site-nav .nav-tools:focus-within .nav-tools-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.forsa-site-nav .nav-resources-panel a,
.forsa-site-nav .nav-tools-panel a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  text-align: left;
  border-radius: 0;
}

.forsa-site-nav .nav-resources-panel a:hover,
.forsa-site-nav .nav-tools-panel a:hover {
  background: transparent;
  color: #14532d;
}

.forsa-site-nav .nav-auth {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.forsa-site-nav .nav-auth-link {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.forsa-site-nav .nav-auth-link:hover {
  color: #1a1a1a;
  background: rgba(26, 26, 26, 0.06);
}

.forsa-site-nav .nav-auth-signin {
  font-weight: 500;
  color: #555;
}

.forsa-site-nav .nav-auth-contact {
  font-weight: 500;
  color: #1a1a1a;
}

.forsa-site-nav .nav-auth-signup-bubble {
  font-weight: 600;
  color: #14532d;
  background: rgba(20, 83, 45, 0.12);
  border: 1px solid rgba(20, 83, 45, 0.28);
  border-radius: 999px;
  padding: 8px 16px;
}

.forsa-site-nav .nav-auth-signup-bubble:hover {
  color: #0d381c;
  background: rgba(20, 83, 45, 0.2);
  border-color: rgba(20, 83, 45, 0.42);
}

.forsa-site-nav .nav-auth-link[aria-current="page"] {
  color: #1a1a1a;
  font-weight: 600;
}

.forsa-auth-main {
  flex: 1;
  width: 100%;
}

@media (max-width: 820px) {
  nav.forsa-site-nav {
    padding: 16px 20px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 14px;
    column-gap: 16px;
  }

  .forsa-site-nav .logo-link {
    grid-column: 1;
    grid-row: 1;
  }

  .forsa-site-nav .nav-auth {
    grid-column: 2;
    grid-row: 1;
  }

  .forsa-site-nav .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .forsa-site-nav .nav-resources-panel {
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 40px);
    padding: 22px 28px 26px;
  }

  .forsa-site-nav .nav-tools-panel {
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 40px);
    padding: 18px 24px 20px;
  }
}

