/**
 * Header 2026 Draft. Scoped to the draft assignment.
 */

body.ys-header-2026 header.ys-h2026-masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  background: #f4f1ea;
  border-bottom: 1px solid rgba(12, 40, 50, 0.12);
}

body.ys-header-2026 #x-site {
  padding-top: 65px;
}

body.admin-bar.ys-header-2026 header.ys-h2026-masthead {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.ys-header-2026 header.ys-h2026-masthead {
    top: 46px;
  }
}

.ys-h2026 {
  color: #0c2832;
  font-family: "avenir-next-lt-pro", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.ys-h2026__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  height: 64px;
  padding: 0 16px;
  background: #f4f1ea;
}

.ys-h2026__logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 0;
}

.ys-h2026__logo img {
  display: block;
  width: auto;
  height: 24px;
  max-width: 100%;
}

.ys-h2026 a {
  color: #0c2832;
  text-decoration: none;
}

.ys-h2026 a:hover,
.ys-h2026 button:hover {
  color: #005970;
}

.ys-h2026 a:focus-visible,
.ys-h2026 button:focus-visible {
  outline: 2px solid #0c2832;
  outline-offset: 3px;
}

.ys-h2026__nav,
.ys-h2026__actions {
  display: none;
}

.ys-h2026__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0c2832;
  font: inherit;
  cursor: pointer;
}

.ys-h2026__menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.ys-h2026__menu-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
}

.ys-h2026__menu-label {
  font-size: 15px;
  line-height: 1;
}

.ys-h2026__drawer[hidden] {
  display: none;
}

.ys-h2026__drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
}

.ys-h2026__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 40, 50, 0.28);
  color: transparent;
  cursor: pointer;
}

.ys-h2026__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 22rem);
  padding: 16px 20px 28px;
  background: #f4f1ea;
  overflow: auto;
}

.ys-h2026__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 8px;
}

.ys-h2026__panel-title,
.ys-h2026__drawer-label {
  margin: 0;
  color: #243e48;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.ys-h2026__drawer-label {
  margin: 18px 0 4px;
}

.ys-h2026__drawer-close {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(12, 40, 50, 0.2);
  border-radius: 8px;
  background: transparent;
  color: #0c2832;
  font: inherit;
  cursor: pointer;
}

.ys-h2026__drawer-links,
.ys-h2026__nav ul,
.ys-h2026__account-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ys-h2026__drawer-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 17px;
  font-weight: 500;
}

.ys-h2026__drawer-links .ys-h2026__join {
  margin-top: 8px;
}

a.ys-h2026__join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #005970;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

a.ys-h2026__join:hover,
a.ys-h2026__join:focus-visible {
  background: #00485c;
  color: #ffffff;
}

.ys-h2026 a[aria-current="page"] {
  color: #005970;
}

@media (min-width: 980px) {
  body.ys-header-2026 #x-site {
    padding-top: 73px;
  }

  .ys-h2026__bar {
    gap: 28px;
    height: 72px;
    min-height: 72px;
    padding: 0 32px;
  }

  .ys-h2026__logo img {
    height: 28px;
  }

  .ys-h2026__nav,
  .ys-h2026__actions {
    display: flex;
    align-items: center;
  }

  .ys-h2026__nav {
    margin-right: auto;
  }

  .ys-h2026__nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .ys-h2026__nav a,
  .ys-h2026__actions > a:not(.ys-h2026__join),
  .ys-h2026__account-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
  }

  .ys-h2026__actions {
    gap: 4px;
  }

  .ys-h2026__menu,
  .ys-h2026__drawer {
    display: none;
  }

  .ys-h2026__account {
    position: relative;
  }

  .ys-h2026__account-toggle {
    border: 0;
    background: transparent;
    color: #0c2832;
    font: inherit;
    cursor: pointer;
  }

  .ys-h2026__account-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    margin-bottom: 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .ys-h2026__account-toggle[aria-expanded="true"]::after {
    margin-bottom: 0;
    margin-top: 4px;
    transform: rotate(225deg);
  }

  .ys-h2026__account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    min-width: 220px;
    padding: 8px;
    background: #fbfaf6;
    border: 1px solid rgba(12, 40, 50, 0.14);
    border-radius: 10px;
  }

  .ys-h2026__account-menu[hidden] {
    display: none;
  }

  .ys-h2026__account-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 15px;
  }

  .ys-h2026__account-menu a:hover {
    background: rgba(0, 89, 112, 0.08);
  }
}

@media (max-width: 979px) {
  .ys-h2026__menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .ys-h2026__menu {
    position: relative;
    width: 44px;
    padding: 0;
  }

  .ys-h2026__logo {
    max-width: calc(100% - 60px);
  }
}
