@font-face {
  font-family: "Foundation Poppins";
  src: url("/brand/foundation/poppins-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Foundation Poppins";
  src: url("/brand/foundation/poppins-extrabold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

.awf-site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  width: 100%;
  background: #fff;
  color: #111;
  border: 0;
  border-bottom: 9px solid #29b3bc;
  box-shadow: none;
  backdrop-filter: none;
  font-family: "Foundation Poppins", sans-serif;
  line-height: 1.5;
}

.awf-site-header * { box-sizing: border-box; }

.awf-header-inner {
  width: min(1290px, 100%);
  min-height: 80px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.awf-brand { display: flex; flex-shrink: 0; min-height: 80px; align-items: center; }
.awf-brand img { display: block; width: 200px; height: auto; }

.awf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1;
}

.awf-site-header a { text-decoration: none; }
.awf-nav-link {
  display: block;
  padding: 12px 19px;
  color: #111;
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  white-space: nowrap;
}
.awf-nav-link:hover { color: #29b3bc; }
.awf-nav-group { position: relative; }
.awf-group-heading { display: flex; align-items: center; }
.awf-group-heading .awf-nav-link { padding-right: 4px; }

.awf-site-header .awf-submenu-toggle,
.awf-site-header .awf-mobile-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  box-shadow: none;
  font: inherit;
  cursor: pointer;
}
.awf-site-header .awf-submenu-toggle { width: 32px; height: 44px; margin-right: 8px; }
.awf-site-header .awf-mobile-toggle { display: none; width: 44px; height: 44px; font-size: 30px; }
.awf-site-header :focus-visible { outline: 2px solid #1598a3; outline-offset: 3px; }

/* Keep the legacy tools' button theme out of the Foundation navigation. */
body.mw-legacy-page .awf-site-header button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  font-family: "Foundation Poppins", sans-serif !important;
}

body.mw-legacy-page .awf-site-header { margin-bottom: 1.5rem; }
body.mw-legacy-page .toolsbar,
body.mw-legacy-page .composer { top: 89px; }

.awf-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  min-width: 200px;
  display: none;
  background: #292929;
  box-shadow: 0 2px 13px #0000001a;
}
.awf-submenu-link {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid #ffffff1a;
  color: #f7faf9;
  font-size: 12px;
  font-weight: 600;
}
.awf-submenu-link:hover { background: #555; color: #fff; }
.awf-nav-group.is-open > .awf-submenu { display: block; }
.awf-nested-group > .awf-submenu { top: 0; left: 100%; }
.awf-nested-group > .awf-group-heading { border-bottom: 1px solid #ffffff1a; }
.awf-nested-group > .awf-group-heading .awf-submenu-link { flex: 1; border-bottom: 0; }
.awf-site-header .awf-nested-group > .awf-group-heading > .awf-submenu-toggle { color: #f7faf9; margin-right: 0; }

.awf-nav .awf-donate {
  margin-left: auto;
  padding: 18px 40px;
  border-radius: 4px;
  background: #29b3bc;
  color: #111;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.awf-nav .awf-donate:hover { background: #292929; color: #29b3bc; }

@media (hover: hover) and (min-width: 1025px) {
  .awf-nav-group:hover > .awf-submenu { display: block; }
}

@media (min-width: 1025px) and (max-width: 1150px) {
  .awf-nav-link { padding-left: 12px; padding-right: 12px; }
  .awf-nav .awf-donate { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 1024px) {
  .awf-header-inner { flex-wrap: wrap; gap: 0; }
  .awf-site-header .awf-mobile-toggle { display: inline-flex; }
  .awf-nav { display: none; flex: 0 0 calc(100% + 48px); margin: 0 -24px; padding: 12px 24px; background: #292929; color: #f7faf9; }
  .awf-nav.is-open { display: block; max-height: calc(100dvh - 89px); overflow-y: auto; }
  .awf-nav-link { color: #f7faf9; font-size: 22px; padding: 18px 0; border-bottom: 1px solid #ffffff1a; }
  .awf-group-heading .awf-nav-link { flex: 1; }
  .awf-site-header .awf-submenu-toggle { color: #f7faf9; width: 44px; margin: 0; }
  .awf-submenu { position: static; box-shadow: none; }
  .awf-nested-group > .awf-submenu { padding-left: 20px; }
  .awf-submenu-link { font-size: 16px; }
  .awf-nav .awf-donate { display: block; margin: 12px 0; text-align: center; }
}

.awf-site-footer { background: #111; font-family: "Foundation Poppins", sans-serif; }
.awf-site-footer .footer-logo { width: 200px; filter: invert(1); }
.awf-footer-nav { display: flex; flex-wrap: wrap; gap: 20px; color: #fff; font-size: 16px; font-weight: 600; }
.awf-footer-nav a:hover { color: #29b3bc; }
.awf-site-footer .footer-copy { width: 100%; color: #fff; font-size: 11px; }

@media print { .awf-site-header { display: none; } }
