/* Shared navigation; all selectors stay within the website header. */
.portal-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid #dce3d9;
  background: #fff;
  color: #263c32;
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.portal-header,
.portal-header * {
  box-sizing: border-box;
}
.portal-header a {
  color: #315f48;
  text-decoration: none;
  text-underline-offset: 5px;
}
.portal-header a:focus-visible {
  outline: 3px solid #729660;
  outline-offset: 4px;
  border-radius: 3px;
}
.portal-header .portal-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #263c32;
  font:
    600 21px Georgia,
    serif;
  min-width: 0;
}
.portal-header .portal-brand > span:last-child {
  overflow-wrap: anywhere;
}
.portal-header .portal-brand small {
  display: block;
  margin-top: 4px;
  color: #5d6c63;
  font:
    12px/1.4 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.portal-header .brand-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 46px;
  border: 1px solid #93aa85;
  border-radius: 50% 50% 6px 6px;
  color: #315f48;
  font-size: 28px;
}
.portal-header nav {
  display: flex;
  gap: 7px 18px;
  flex-wrap: wrap;
  margin-left: auto;
}
.portal-header nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 550;
}
.portal-header nav a:hover,
.portal-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.portal-header nav a[aria-current="page"] {
  color: #244c3c;
  font-weight: 700;
}
.portal-header .account-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  max-width: 230px;
  font-size: 14px;
}
.portal-header .account-identity > span:not(.avatar) {
  overflow-wrap: anywhere;
}
.portal-header .account-identity small {
  display: block;
  color: #5d6c63;
  font-size: 11px;
}
.portal-header .avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: cover;
  background: #edf1e6;
  color: #476339;
  border-radius: 50%;
  border: 1px solid #dce3d9;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 1100px) {
  .portal-header nav {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .portal-header .account-identity {
    margin-left: auto;
  }
}
@media (max-width: 620px) {
  .portal-header {
    padding: 16px;
    gap: 14px;
  }
  .portal-header .portal-brand {
    flex: 1;
  }
  .portal-header nav {
    gap: 4px 16px;
  }
  .portal-header nav a {
    font-size: 13px;
    min-height: 40px;
  }
  .portal-header .account-identity > span:not(.avatar) {
    display: none;
  }
}
@media print {
  .portal-header {
    display: none !important;
  }
}
