/* B2 navigation is deliberately scoped away from the legacy page/form styles. */
@font-face {
  font-family: "Xstar Brand Serif";
  src: url("../fonts/libre-baskerville-bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Xstar Navigation Sans";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

header.xstar-header-b2 {
  --xstar-b2-navy: #102b4c;
  --xstar-b2-gold: #b99451;
  --xstar-b2-border: #d9c49d;
  --xstar-b2-paper: #fffefb;
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--xstar-b2-border);
  background: var(--xstar-b2-paper);
  color: var(--xstar-b2-navy);
  box-shadow: 0 2px 12px rgb(16 43 76 / 3%);
  font: 500 16px/1.25 "Xstar Navigation Sans", Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  text-shadow: none;
  overflow: visible;
}

.xstar-header-b2 .xstar-nav-b2 {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1320px, calc(100% - 64px));
  min-height: 124px;
  margin: 0 auto;
  padding: 12px 0;
}

.xstar-header-b2 .xstar-brand-b2 {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--xstar-b2-navy);
  font: inherit;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  text-shadow: none;
  white-space: nowrap;
  box-shadow: none;
}

.xstar-header-b2 .xstar-brand-mark-b2 {
  display: block;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
  filter: none;
  box-shadow: none;
}

.xstar-header-b2 .xstar-wordmark-b2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--xstar-b2-navy);
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
}

.xstar-header-b2 .xstar-brand-name-b2,
.xstar-header-b2 .xstar-brand-education-b2 {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--xstar-b2-navy);
  font-family: "Xstar Brand Serif", Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  text-transform: none;
  text-shadow: none;
  white-space: nowrap;
}

.xstar-header-b2 .xstar-brand-name-b2 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.025em;
}

.xstar-header-b2 .xstar-brand-education-b2 {
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: .075em;
}

.xstar-header-b2 .xstar-links-b2 {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--xstar-b2-navy);
  box-shadow: none;
  text-align: center;
  overflow: visible;
}

.xstar-header-b2 .xstar-links-b2 > a {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--xstar-b2-navy);
  font: 500 16px/1.2 "Xstar Navigation Sans", Arial, Helvetica, sans-serif;
  letter-spacing: .005em;
  text-decoration: none;
  text-transform: none;
  text-shadow: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.xstar-header-b2 .xstar-links-b2 > a:not(.xstar-donate-b2):not(.xstar-registration-b2):hover {
  background: #f5f0e6;
  color: #815d27;
}

.xstar-header-b2 .xstar-links-b2 > a:not(.xstar-donate-b2):not(.xstar-registration-b2)[aria-current="page"] {
  background: transparent;
  color: var(--xstar-b2-navy);
  /* Decorating the text keeps the line narrow even in a full-width mobile link. */
  text-decoration-line: underline;
  text-decoration-color: var(--xstar-b2-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.xstar-header-b2 .xstar-links-b2 > a.xstar-donate-b2 {
  gap: 8px;
  padding-right: 16px;
  padding-left: 16px;
  border-color: var(--xstar-b2-gold);
  border-radius: 8px;
  font-weight: 600;
}

.xstar-header-b2 .xstar-links-b2 > a.xstar-donate-b2:hover {
  background: #f6f0e3;
  border-color: #a37a36;
}

.xstar-header-b2 .xstar-heart-b2 {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--xstar-b2-gold);
  font: 600 14px/1 "Xstar Navigation Sans", Arial, Helvetica, sans-serif;
  text-shadow: none;
}

.xstar-header-b2 .xstar-links-b2 > a.xstar-registration-b2 {
  padding-right: 18px;
  padding-left: 18px;
  border-color: var(--xstar-b2-navy);
  border-radius: 8px;
  background: var(--xstar-b2-navy);
  color: #fff;
  font-weight: 600;
}

.xstar-header-b2 .xstar-links-b2 > a.xstar-registration-b2:hover {
  border-color: #20486e;
  background: #20486e;
  color: #fff;
}

.xstar-header-b2 button.xstar-menu-b2 {
  box-sizing: border-box;
  appearance: none;
  display: none;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--xstar-b2-border);
  border-radius: 8px;
  background: transparent;
  color: var(--xstar-b2-navy);
  font: 500 24px/1 "Xstar Navigation Sans", Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
}

.xstar-header-b2 .xstar-menu-b2 > span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.xstar-header-b2 .xstar-menu-b2[aria-expanded="true"] > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.xstar-header-b2 .xstar-menu-b2[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
}

.xstar-header-b2 .xstar-menu-b2[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.xstar-header-b2 a.xstar-brand-b2:focus-visible,
.xstar-header-b2 .xstar-links-b2 > a:focus-visible,
.xstar-header-b2 button.xstar-menu-b2:focus-visible {
  outline: 2px solid #a67c37;
  outline-offset: 4px;
}

header.xstar-header-b2--onboarding {
  position: static;
}

.xstar-header-b2 .xstar-onboarding-label-b2 {
  display: block;
  flex: 0 1 auto;
  max-width: 245px;
  margin: 0;
  padding: 0;
  color: #51667c;
  font: 600 12px/1.45 "Xstar Navigation Sans", Arial, Helvetica, sans-serif;
  letter-spacing: .09em;
  text-align: right;
  text-transform: uppercase;
  text-shadow: none;
}

/* Keep the full desktop menu comfortable near the collapse boundary. */
@media (min-width: 1201px) and (max-width: 1359px) {
  .xstar-header-b2 .xstar-nav-b2 { gap: 20px; }
  .xstar-header-b2 .xstar-brand-b2 { gap: 14px; }
  .xstar-header-b2 .xstar-links-b2 { gap: 4px; }
  .xstar-header-b2 .xstar-links-b2 > a { padding-right: 9px; padding-left: 9px; }
  .xstar-header-b2 .xstar-links-b2 > a.xstar-donate-b2 { padding-right: 13px; padding-left: 13px; }
  .xstar-header-b2 .xstar-links-b2 > a.xstar-registration-b2 { padding-right: 15px; padding-left: 15px; }
}

/* Keep this breakpoint identical to the matchMedia query in the B2 script. */
@media (max-width: 1200px) {
  .xstar-header-b2 .xstar-nav-b2 {
    gap: 20px;
    width: calc(100% - 48px);
    min-height: 104px;
  }
  .xstar-header-b2 .xstar-brand-b2 { gap: 15px; }
  .xstar-header-b2 .xstar-brand-mark-b2 {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
  }
  .xstar-header-b2 .xstar-brand-name-b2 { font-size: 40px; }
  .xstar-header-b2 .xstar-brand-education-b2 { font-size: 13.25px; }
  .xstar-header-b2 button.xstar-menu-b2 { display: inline-flex; }
  .xstar-header-b2 .xstar-links-b2 {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    max-height: calc(100vh - 105px);
    max-height: calc(100dvh - 105px);
    padding: 14px 24px 20px;
    border-top: 1px solid #eee5d6;
    border-bottom: 1px solid var(--xstar-b2-border);
    background: var(--xstar-b2-paper);
    box-shadow: 0 12px 20px rgb(16 43 76 / 8%);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .xstar-header-b2 .xstar-links-b2.is-open { display: flex; }
  .xstar-header-b2 .xstar-links-b2 > a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 11px 16px;
    font-size: 16px;
  }
  .xstar-header-b2 .xstar-links-b2 > a.xstar-donate-b2,
  .xstar-header-b2 .xstar-links-b2 > a.xstar-registration-b2 { margin-top: 4px; }
}

@media (max-width: 600px) {
  .xstar-header-b2 .xstar-nav-b2 {
    gap: 16px;
    width: calc(100% - 32px);
    min-height: 88px;
  }
  .xstar-header-b2 .xstar-brand-b2 { gap: 12px; }
  .xstar-header-b2 .xstar-brand-mark-b2 {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
  .xstar-header-b2 .xstar-wordmark-b2 { gap: 5px; }
  .xstar-header-b2 .xstar-brand-name-b2 { font-size: 32px; }
  .xstar-header-b2 .xstar-brand-education-b2 { font-size: 10.5px; }
  .xstar-header-b2 .xstar-links-b2 {
    max-height: calc(100vh - 89px);
    max-height: calc(100dvh - 89px);
    padding-right: 16px;
    padding-left: 16px;
  }
  .xstar-header-b2 .xstar-onboarding-label-b2 {
    max-width: 115px;
    font-size: 10px;
    letter-spacing: .045em;
    overflow-wrap: normal;
  }
}

@media (max-width: 420px) {
  .xstar-header-b2--onboarding .xstar-onboarding-label-b2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .xstar-header-b2 .xstar-links-b2 > a,
  .xstar-header-b2 .xstar-menu-b2 > span { transition: none; }
}

@media print {
  header.xstar-header-b2 { position: static; box-shadow: none; }
  header.xstar-header-b2--onboarding,
  .xstar-header-b2 .xstar-menu-b2,
  .xstar-header-b2 .xstar-links-b2 { display: none !important; }
}


/* V16 navigation typography: visual refinements only; no registration or HR styles. */
header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-nav-b2 {
  width:min(1720px,calc(100% - 64px));
  min-height:116px;
  gap:22px;
}
header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-mark-b2 {
  width:90px;height:90px;flex-basis:90px;
}
header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-links-b2 {gap:9px; margin-left:auto;}
header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-links-b2 > a {
  font-size:22px;font-weight:650;line-height:1.2;min-height:48px;padding:12px 10px;
}
header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-links-b2 > a.xstar-donate-b2{padding-inline:16px;}
header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-links-b2 > a.xstar-registration-b2{padding-inline:18px;}
@media(min-width:1201px) and (max-width:1439px){
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-nav-b2{width:calc(100% - 48px);gap:14px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-b2{gap:13px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-mark-b2{width:82px;height:82px;flex-basis:82px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-name-b2{font-size:44px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-education-b2{font-size:14.6px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-links-b2{gap:5px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-links-b2>a{font-size:21px;padding-inline:8px;}
}
@media(max-width:1200px){
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-nav-b2{width:calc(100% - 48px);min-height:100px;gap:20px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-mark-b2{width:76px;height:76px;flex-basis:76px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-links-b2{gap:5px;margin:0;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-links-b2>a{font-size:21px;min-height:48px;padding:12px 16px;}
}
@media(max-width:760px){
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-nav-b2{width:calc(100% - 32px);min-height:87px;padding:10px 0;gap:10px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-b2{gap:10px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-mark-b2{width:65px;height:65px;flex-basis:65px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-name-b2{font-size:32px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-education-b2{font-size:10.5px;}
}
@media(max-width:374px){
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-nav-b2{width:calc(100% - 24px);gap:8px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-b2{gap:8px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-mark-b2{width:52px;height:58px;flex-basis:52px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-name-b2{font-size:28px;}
  header.xstar-header-b2:not(.xstar-header-b2--onboarding) .xstar-brand-education-b2{font-size:9.2px;}
}
