/* Skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 16px;
  background: #343740;
  color: #fff;
  font-family: var(--h1b-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Shared Home 1b header — usable on any page without full home-1b.css */
:root {
  --h1b-ink: #343740;
  --h1b-font: 'Montserrat', 'Public Sans', system-ui, sans-serif;
  --max-width: 1440px;
  --header-height: 72px;
}

@font-face {
  font-family: 'Phosphor-Thin';
  src: url('/assets/home-1b/phosphor-thin.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.ph-thin {
  font-family: 'Phosphor-Thin' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.ph-thin.ph-caret-down::before {
  content: '\e136';
}

/* —— Home 1b header (Phase 1 nav) —— */
.h1b-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #d8d5cf;
  font-family: var(--h1b-font);
}

.h1b-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 1024px) {
  .h1b-header__inner {
    padding: 0 40px;
  }
}

.h1b-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.h1b-header__logo img {
  display: block;
  width: auto;
  height: 22px;
  max-width: 140px;
}

@media (min-width: 960px) {
  .h1b-header__logo img {
    height: 26px;
    max-width: 160px;
  }
}

.h1b-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 960px) {
  .h1b-nav {
    display: flex;
  }
}

.h1b-nav__link,
.h1b-nav__btn {
  font-weight: 500;
  font-size: 0.9375rem;
  color: #4b4f5d;
  padding: 10px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
}

.h1b-nav__link:hover,
.h1b-nav__btn:hover {
  color: var(--h1b-ink);
}

.h1b-nav__item.is-current > .h1b-nav__btn,
.h1b-nav__item.is-current > .h1b-nav__link {
  color: var(--h1b-ink);
  font-weight: 700;
}

.h1b-mobile__label.is-current {
  color: var(--h1b-ink);
}

.h1b-nav__btn .ph-thin {
  font-size: 0.75rem;
  opacity: 0.7;
}

.h1b-nav__item {
  position: relative;
}

.h1b-nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #d8d5cf;
  border-radius: 10px;
  padding: 14px 8px 8px;
  box-shadow: 0 12px 30px rgba(52, 55, 64, 0.12);
  display: none;
  z-index: 30;
}

.h1b-nav__item.is-open > .h1b-nav__menu {
  display: block;
}

.h1b-nav__menu a,
.h1b-nav__menu span {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-family: var(--h1b-font);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #4b4f5d;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
}

.h1b-nav__menu a:hover,
.h1b-nav__menu a:focus,
.h1b-nav__menu a:active,
.h1b-nav__menu a:visited {
  background: #f2f2f2;
  color: var(--h1b-ink);
  text-decoration: none;
}

.h1b-nav__menu .is-muted {
  color: #a8a29a;
  font-weight: 400;
  cursor: default;
}

.h1b-header__actions {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 960px) {
  .h1b-header__actions {
    display: flex;
  }
}

.h1b-header__login {
  padding: 10px 14px;
  border-radius: 8px;
  background: #eff0f2;
  font-weight: 600;
  font-size: 0.875rem;
  color: #4b4f5d;
}

.h1b-mobile__group {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid #eceae6;
}

.h1b-mobile__group:first-of-type {
  border-top: none;
  margin-top: 0;
}

.h1b-mobile__links {
  display: none;
  padding: 0 0 6px 8px;
}

.h1b-mobile__group.is-open .h1b-mobile__links {
  display: block;
}

.h1b-header__contact {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--h1b-ink);
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
}

.h1b-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

@media (min-width: 960px) {
  .h1b-header__menu-btn {
    display: none;
  }
}

.h1b-header__menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--h1b-ink);
  position: relative;
}

.h1b-header__menu-btn span::before,
.h1b-header__menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--h1b-ink);
}

.h1b-header__menu-btn span::before {
  top: -6px;
}

.h1b-header__menu-btn span::after {
  top: 6px;
}

.h1b-header.is-mobile-open .h1b-header__menu-btn span {
  background: transparent;
}

.h1b-header.is-mobile-open .h1b-header__menu-btn span::before,
.h1b-header.is-mobile-open .h1b-header__menu-btn span::after {
  top: 0;
}

.h1b-header.is-mobile-open .h1b-header__menu-btn span::before {
  transform: rotate(45deg);
}

.h1b-header.is-mobile-open .h1b-header__menu-btn span::after {
  transform: rotate(-45deg);
}

.h1b-mobile {
  display: none;
  border-top: 1px solid #d8d5cf;
  background: #fff;
  padding: 8px 20px 24px;
}

.h1b-header.is-mobile-open .h1b-mobile {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  top: var(--header-height) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 199 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  background: #fff !important;
  padding: 8px 20px 24px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body:has(.h1b-header.is-mobile-open) {
  overflow: hidden;
}

@media (min-width: 960px) {
  .h1b-header.is-mobile-open .h1b-mobile {
    display: none !important;
  }

  body:has(.h1b-header.is-mobile-open) {
    overflow: auto;
  }
}

.h1b-mobile a,
.h1b-mobile .h1b-mobile__label {
  display: block;
  padding: 14px 4px;
  font-weight: 500;
  font-size: 1rem;
  color: #4b4f5d;
  border-bottom: 1px solid #eee;
}

.h1b-mobile a[aria-current='page'] {
  color: var(--h1b-ink);
  font-weight: 700;
}

.h1b-mobile__label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--h1b-ink);
  border-bottom: none;
  padding: 16px 4px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.h1b-mobile__label .ph-thin {
  font-size: 0.85rem;
  opacity: 0.55;
  transition: transform 0.15s ease;
}

.h1b-mobile__group.is-open .h1b-mobile__label .ph-thin {
  transform: rotate(180deg);
}

.h1b-mobile__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.h1b-mobile__cta a {
  border: none;
  text-align: center;
  justify-content: center;
}

/* —— Isolation: page-level `nav {}` / `* { padding:0 }` / `button {}` must not restyle us —— */
.h1b-header {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  font-family: var(--h1b-font) !important;
  overflow: visible !important;
}

.h1b-header .h1b-nav {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: none;
  align-items: center;
  gap: 8px;
  box-sizing: border-box !important;
}

@media (min-width: 960px) {
  .h1b-header .h1b-nav {
    display: flex !important;
  }
}

.h1b-header button,
.h1b-header .h1b-nav__btn,
.h1b-header .h1b-header__menu-btn {
  font-family: var(--h1b-font) !important;
  box-sizing: border-box !important;
}

.h1b-header .h1b-nav__btn,
.h1b-header .h1b-nav__link {
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  color: #4b4f5d !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  border: none !important;
  background: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.h1b-header .h1b-nav__item.is-current > .h1b-nav__btn,
.h1b-header .h1b-nav__item.is-current > .h1b-nav__link {
  color: var(--h1b-ink) !important;
  font-weight: 700 !important;
}

.h1b-header .h1b-header__login {
  padding: 10px 14px !important;
  border-radius: 8px !important;
  background: #eff0f2 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: #4b4f5d !important;
  margin: 0 !important;
  border: none !important;
  display: inline-flex !important;
  text-decoration: none !important;
}

.h1b-header .h1b-header__contact {
  padding: 10px 14px !important;
  border-radius: 8px !important;
  background: var(--h1b-ink) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: #fff !important;
  margin: 0 !important;
  border: none !important;
  display: inline-flex !important;
  text-decoration: none !important;
}

.h1b-header .h1b-header__actions {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 960px) {
  .h1b-header .h1b-header__actions {
    display: flex !important;
  }
}

.h1b-header .h1b-header__logo img {
  display: block !important;
  width: auto !important;
  height: 22px !important;
  max-width: 140px !important;
}

@media (min-width: 960px) {
  .h1b-header .h1b-header__logo img {
    height: 26px !important;
    max-width: 160px !important;
  }
}

/* —— Dropdown + mobile links: kill page-level underlines/fonts —— */
.h1b-header .h1b-nav__menu a,
.h1b-header .h1b-nav__menu span,
.h1b-header .h1b-mobile a,
.h1b-header .h1b-mobile .h1b-mobile__label {
  font-family: var(--h1b-font) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.h1b-header .h1b-nav__menu a,
.h1b-header .h1b-nav__menu span {
  display: block !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  border: none !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #4b4f5d !important;
  background: transparent !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

.h1b-header .h1b-nav__menu a:hover,
.h1b-header .h1b-nav__menu a:focus,
.h1b-header .h1b-nav__menu a:active,
.h1b-header .h1b-nav__menu a:visited {
  background: #f2f2f2 !important;
  color: var(--h1b-ink) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.h1b-header .h1b-mobile a {
  display: block !important;
  padding: 12px 4px 12px 8px !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  color: #4b4f5d !important;
  border-bottom: none !important;
  background: transparent !important;
}

.h1b-header .h1b-mobile__label {
  border-bottom: none !important;
  margin-top: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: transparent !important;
  padding: 16px 4px !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--h1b-ink) !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 48px !important;
}

.h1b-header .h1b-mobile__cta {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 20px !important;
}

.h1b-header .h1b-mobile__cta a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border: none !important;
}

.h1b-header .h1b-mobile__links {
  display: none;
  padding: 0 0 6px 4px;
}

.h1b-header .h1b-mobile__group.is-open .h1b-mobile__links {
  display: block;
}

.h1b-header .h1b-mobile a:hover,
.h1b-header .h1b-mobile a:visited,
.h1b-header .h1b-mobile a:focus {
  color: var(--h1b-ink) !important;
  text-decoration: none !important;
}

/* —— Force header typography to match Home (Montserrat) —— */
.h1b-header,
.h1b-header *,
.h1b-header button,
.h1b-header a,
.h1b-header span,
.h1b-header .h1b-nav__btn,
.h1b-header .h1b-nav__menu a,
.h1b-header .h1b-header__login,
.h1b-header .h1b-header__contact,
.h1b-header .h1b-mobile a,
.h1b-header .h1b-mobile__label {
  font-family: 'Montserrat', 'Public Sans', system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.h1b-header .ph-thin,
.h1b-header .ph-thin::before {
  font-family: 'Phosphor-Thin' !important;
}
