.nav.container {
  gap: 12px;
}
.nav-links {
  align-items: center;
  gap: 6px;
}
.nav-links > li > a {
  font-size: 0.72rem;
  white-space: nowrap;
}
.nav-links .dropdown-menu {
  z-index: 100;
}
.nav-links .nav-action-item > a.nav-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.nav-links .nav-action-primary {
  background: #176b45;
  color: #fff;
  border: 1px solid #176b45;
}
.nav-links .nav-action-primary:hover {
  background: #0d4d32;
  color: #fff;
  border-color: #0d4d32;
  transform: translateY(-1px);
}
.nav-links .nav-action-secondary {
  background: #fff;
  color: #14583c;
  border: 1px solid #b9cdbf;
}
.nav-links .nav-action-secondary:hover {
  background: #eef5f0;
  color: #0d4d32;
  border-color: #6d9a7e;
}
.nav-links > li.nav-action-item {
  margin-left: 3px;
}
@media (max-width: 1100px) and (min-width: 901px) {
  .nav.container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-links > li > a {
    font-size: 0.74rem;
  }
}
@media (max-width: 900px) {
  .nav-links {
    align-items: stretch;
  }
  .nav-links > li.nav-action-item {
    margin: 4px 10px;
  }
  .nav-links .nav-action-item > a.nav-action {
    width: 100%;
    padding: 13px 15px;
    font-size: 0.9rem;
  }
  .nav-links .dropdown-menu {
    max-height: 55vh;
    overflow-y: auto;
  }
}
.nav-links .menu-parent {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  background: transparent;
  color: #14583c !important;
  text-align: left;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.nav-links .menu-parent:hover,
.nav-links .menu-parent:focus-visible {
  color: #176b45;
}
.nav-links .dropdown-menu {
  display: none;
}
.nav-links .dropdown:hover > .dropdown-menu,
.nav-links .dropdown:focus-within > .dropdown-menu,
.nav-links .dropdown.open > .dropdown-menu {
  display: block;
}
.footer-social {
  padding: 10px 0;
  text-align: center;
}
.footer-social h4 {
  margin: 6px 0;
}
.footer-social ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social a {
  display: inline-block;
  padding: 5px 8px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .nav-links .menu-parent {
    padding: 12px 11px;
    font-size: 0.9rem;
  }
  .nav-links .dropdown:hover > .dropdown-menu {
    display: none;
  }
  .nav-links .dropdown.open > .dropdown-menu {
    display: block;
  }
}
.portal-card {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #dce8e1;
  border-radius: 12px;
  background: #fff;
}
.profile-review textarea {
  display: block;
  width: min(100%, 600px);
  margin: 6px 0 12px;
  padding: 10px;
  border: 1px solid #b9c9bf;
  border-radius: 8px;
  font: inherit;
}
.profile-review dl {
  display: grid;
  grid-template-columns: minmax(130px, 200px) 1fr;
  gap: 5px 12px;
  width: 100%;
}
.profile-review dt {
  font-weight: 700;
}
.profile-review dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .portal-card {
    padding: 16px;
  }
  .profile-review dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .profile-review dd {
    margin-bottom: 8px;
  }
}

.logo-name {
  display: inline-block;
  white-space: nowrap;
  color: #14583c;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}
.site-logo {
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  header .nav.container {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }
  header .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 120;
    display: none;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 10px 4% 18px;
    background: #fff;
    border-top: 1px solid #e1e8e3;
    box-shadow: 0 12px 22px #00000014;
  }
  header .nav-links.open {
    display: flex;
  }
  header .nav-links > li {
    flex: 0 0 auto;
  }
  header .nav-links > li > a {
    white-space: normal;
  }
  header .nav-links .dropdown-menu {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0 0 4px 16px;
  }
  header .nav-links .dropdown-menu a {
    white-space: normal;
    line-height: 1.35;
  }
  header .nav-links .dropdown.open > .dropdown-menu {
    display: block;
  }
  header .nav-links .dropdown:not(.open) > .dropdown-menu {
    display: none;
  }
  header .nav-links .dropdown:hover > .dropdown-menu {
    display: none;
  }
  header .nav-links .dropdown.open:hover > .dropdown-menu {
    display: block;
  }
}

/* Keep the same type size for every top-level and dropdown navigation item. */
.nav-links a,
.nav-links .menu-parent {
  font-size: 0.84rem !important;
}
.logo-name {
  white-space: normal;
  max-width: 350px;
  line-height: 1.2;
  color: #14583c;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}
.nav-links {
  scrollbar-gutter: stable;
}
@media (max-width: 900px) {
  header .nav.container {
    min-height: 76px;
  }
  header .logo-name {
    max-width: calc(100vw - 150px);
    font-size: 0.76rem;
  }
  header .nav-links a,
  header .nav-links .menu-parent {
    font-size: 0.84rem !important;
  }
  header .nav-links {
    max-height: calc(100dvh - 76px);
    overscroll-behavior-y: contain;
  }
}
@media (max-width: 380px) {
  header .logo-name {
    max-width: calc(100vw - 130px);
    font-size: 0.7rem;
  }
}

/* Shared compact navbar sizing and layout, including the homepage. */
.logo-name {
  display: block;
  max-width: 260px;
  font-size: 0.68rem;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nav-links a,
.nav-links .menu-parent {
  font-size: 0.76rem !important;
}
@media (max-width: 1200px) and (min-width: 901px) {
  header .nav.container {
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 16px;
  }
  header .nav-links {
    width: 100%;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
}
@media (max-width: 900px) {
  header .nav.container {
    position: relative !important;
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 76px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
  }
  header .logo {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
  }
  header .logo-name {
    max-width: calc(100vw - 145px);
    font-size: 0.66rem;
    line-height: 1.15;
  }
  header .menu-btn {
    flex: 0 0 44px;
  }
  header .nav-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1200 !important;
    display: none;
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4% 18px;
    background: #fff;
    border-top: 1px solid #e1e8e3;
    box-shadow: 0 12px 22px #00000014;
  }
  header .nav-links.open {
    display: flex !important;
  }
  header .nav-links > li {
    flex: 0 0 auto;
  }
  header .nav-links a,
  header .nav-links .menu-parent {
    font-size: 0.82rem !important;
    white-space: normal;
  }
  header .nav-links > li > a {
    padding: 12px 11px;
  }
  header .nav-links .dropdown-menu {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0 0 4px 16px;
  }
  header .nav-links .dropdown-menu a {
    line-height: 1.35;
  }
  header .nav-links .dropdown.open > .dropdown-menu {
    display: block;
  }
  header .nav-links .dropdown:not(.open) > .dropdown-menu {
    display: none;
  }
  header .nav-links .dropdown:hover > .dropdown-menu {
    display: none;
  }
  header .nav-links .dropdown.open:hover > .dropdown-menu {
    display: block;
  }
}
@media (max-width: 380px) {
  header .logo-name {
    max-width: calc(100vw - 130px);
    font-size: 0.62rem;
  }
}

/* Keep touch-opened submenus visible on the homepage and interior pages. */
@media (max-width: 900px) {
  header .nav-links .dropdown:not(.open) > .dropdown-menu {
    display: none !important;
  }
  header .nav-links .dropdown.open > .dropdown-menu {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 2px 0 8px 16px !important;
  }
  header .nav-links .dropdown.open > .dropdown-menu > li {
    display: block !important;
  }
  header .nav-links .dropdown.open > .dropdown-menu > li > a {
    display: block !important;
    padding: 10px 12px !important;
    white-space: normal !important;
  }
  header .nav-links .dropdown.open > .menu-parent {
    color: #14583c !important;
  }
}
