/* Nav pill */

.hs_cos_wrapper:has(.fd-npill),
.dnd-section:has(.fd-npill),
.dnd-column:has(.fd-npill),
.dnd-row:has(.fd-npill),
.fd-npill-root {
  --fd-npill-h-expanded: 7.6rem;
  --fd-npill-h-compact: 6.9rem;
  position: relative !important;
  transform: none !important;
  overflow: visible !important;
  z-index: 100000 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* HubSpot stores section padding inline. On the header section this shows as a white strip above the pill. */
.dnd-section:has(.fd-npill) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/*
  Nav test leaves an empty Header DnD area above <main>. HubSpot still prints a
  1px wrapper. Body cream (#F7F2E4) shows through the transparent bar as a
  hairline. Hide that slot unless the pill (or live Nav) is actually in it.
*/
.body-wrapper > .container-fluid:first-child:not(:has(.fd-npill)):not(:has(.nav)):not(:has(.header)),
.fd-header-slot:not(:has(.fd-npill)):not(:has(.nav)):not(:has(.header)) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.fd-npill,
.fd-npill * {
  box-sizing: border-box;
}

@property --fd-npill-h {
  syntax: "<length>";
  inherits: true;
  initial-value: 6rem;
}

@property --fd-npill-logo {
  syntax: "<length>";
  inherits: true;
  initial-value: 84px;
}

.fd-npill {
  --fd-npill-bar: #43b02a;
  --fd-npill-panel: #349428;
  --fd-npill-h: var(--fd-npill-h-expanded);
  --fd-npill-logo: 84px;
  --fd-npill-pad-x: clamp(1rem, 3vw, 1.75rem);
  --fd-npill-gap: clamp(0.75rem, 2vw, 1.25rem);
  --fd-npill-panel-pad: clamp(1.1rem, 2.5vw, 1.35rem);
  --fd-npill-panel-gap: 1.4rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100000;
  color: #fff;
  font-family: Inter, sans-serif;
  pointer-events: none;
  background: transparent;
  overflow: visible;
  isolation: isolate;
  transition:
    --fd-npill-h 0.34s cubic-bezier(0.33, 1, 0.68, 1),
    --fd-npill-logo 0.34s cubic-bezier(0.33, 1, 0.68, 1),
    background-color 0.34s ease;
}

.fd-npill--solid {
  --fd-npill-h: var(--fd-npill-h-compact);
  --fd-npill-logo: 78px;
  background: var(--fd-npill-bar);
}

/* Scrolled: no green bar. The glass pill floats over the page. */
.fd-npill.is-scrolled {
  --fd-npill-h: var(--fd-npill-h-compact);
  --fd-npill-logo: 78px;
  background: transparent;
}

.fd-npill-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: var(--fd-npill-gap);
  width: 100%;
  height: var(--fd-npill-h);
  padding: 0 var(--fd-npill-pad-x);
  pointer-events: auto;
  overflow: visible;
  transition: height 0.34s cubic-bezier(0.33, 1, 0.68, 1);
}

.fd-npill-logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.fd-npill-logo img {
  display: block;
  width: var(--fd-npill-logo) !important;
  height: var(--fd-npill-logo) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.7))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
  transition:
    width 0.34s cubic-bezier(0.33, 1, 0.68, 1),
    height 0.34s cubic-bezier(0.33, 1, 0.68, 1);
}

.fd-npill-bar > .fd-npill-links {
  grid-column: 2;
  justify-self: center;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: max-content;
  max-width: min(92vw, 48rem);
  margin: 0;
  padding: 0.5rem 0.65rem;
  color: #1a1612;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 100%),
    rgba(247, 242, 228, 0.14);
  -webkit-backdrop-filter: blur(24px) saturate(1.8) brightness(1.06);
  backdrop-filter: blur(24px) saturate(1.8) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 10px 32px rgba(26, 22, 18, 0.22);
  overflow: visible;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fd-npill-bar > .fd-npill-links {
    background: rgba(247, 242, 228, 0.42);
  }
}

.fd-npill-slide {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  z-index: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  transition:
    left 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    width 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.22s ease;
}

.fd-npill-slide.is-on {
  opacity: 1;
}

.fd-npill-bar > .fd-npill-links > .fd-npill-item {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.fd-npill-bar > .fd-npill-links > .fd-npill-item > .fd-npill-link,
.fd-npill-bar > .fd-npill-links > .fd-npill-link {
  position: relative;
  z-index: 1;
}

.fd-npill-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.fd-npill-link:focus-visible,
.fd-npill-cta:focus-visible,
.fd-npill-burger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.fd-npill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: clamp(0.55rem, 1.3vw, 0.7rem) clamp(0.8rem, 1.9vw, 1.05rem);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1a1612;
  font-family: Fraunces, serif;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.28s ease, color 0.28s ease;
}

.fd-npill-bar > .fd-npill-links .fd-npill-link {
  color: #1a1612;
}

.fd-npill-chevron {
  display: block;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.fd-npill-item:hover > .fd-npill-link .fd-npill-chevron,
.fd-npill-item:focus-within > .fd-npill-link .fd-npill-chevron,
.fd-npill-item.is-open > .fd-npill-link .fd-npill-chevron {
  transform: rotate(180deg);
}

.fd-npill-cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.72rem, 1.6vw, 0.85rem) clamp(1.25rem, 2.6vw, 1.6rem);
  border-radius: 999px;
  background: var(--orange, #ef9435);
  color: #fff;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(26, 22, 18, 0);
  transition:
    background-color 0.28s ease,
    transform 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.28s ease;
}

@media (hover: hover) {
  .fd-npill-cta:hover,
  .fd-npill-cta:focus-visible {
    background: #e0892f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0.4rem 0.9rem rgba(26, 22, 18, 0.16);
  }
}

/* Desktop dropdown: positioned on the whole pill, not the one link.
   Transparent padding-top is the visual gap and the hover path. */
.fd-npill-bar > .fd-npill-links .fd-npill-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 2;
  display: block;
  width: min(42.5rem, calc(100vw - 2rem));
  padding: var(--fd-npill-panel-gap) 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%) translateY(-0.35rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.34s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.34s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0.34s;
}

.fd-npill-bar > .fd-npill-links .fd-npill-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.85rem, 2vw, 1.1rem);
  padding: var(--fd-npill-panel-pad);
  border-radius: 1.35rem;
  background: var(--fd-npill-panel);
  box-shadow: 0 1.125rem 2.5rem rgba(26, 22, 18, 0.18);
}

.fd-npill-bar > .fd-npill-links .fd-npill-item:hover > .fd-npill-panel,
.fd-npill-bar > .fd-npill-links .fd-npill-item.is-open > .fd-npill-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Solid bar: extra padding clears the green bar, then the same visual gap. */
.fd-npill.is-scrolled .fd-npill-bar > .fd-npill-links .fd-npill-panel,
.fd-npill--solid .fd-npill-bar > .fd-npill-links .fd-npill-panel {
  padding-top: calc((var(--fd-npill-h) / 2) - 1.2rem + var(--fd-npill-panel-gap));
}

.fd-npill-bar > .fd-npill-links .fd-npill-card {
  padding: 0.7rem;
}

.fd-npill-bar > .fd-npill-links .fd-npill-card img {
  border-radius: 0.55rem;
}

.fd-npill-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #1a1612;
  text-decoration: none;
  border-radius: 0.9rem;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(26, 22, 18, 0);
  transition:
    background-color 0.32s ease,
    box-shadow 0.32s ease;
}

.fd-npill-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform-origin: center;
}

@media (hover: hover) {
  .fd-npill-card:hover,
  .fd-npill-card:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0.7rem 1.35rem rgba(26, 22, 18, 0.16);
    color: #1a1612;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fd-npill:not(.fd-npill--js-hover) .fd-npill-card {
    transition:
      transform 0.32s cubic-bezier(0.33, 1, 0.68, 1),
      background-color 0.32s ease,
      box-shadow 0.32s ease;
  }

  .fd-npill:not(.fd-npill--js-hover) .fd-npill-card img {
    transition: transform 0.42s cubic-bezier(0.33, 1, 0.68, 1);
  }

  .fd-npill:not(.fd-npill--js-hover) .fd-npill-bar .fd-npill-card:hover,
  .fd-npill:not(.fd-npill--js-hover) .fd-npill-bar .fd-npill-card:focus-visible {
    transform: translateY(-5px);
  }

  .fd-npill:not(.fd-npill--js-hover) .fd-npill-card:hover img,
  .fd-npill:not(.fd-npill--js-hover) .fd-npill-card:focus-visible img {
    transform: scale(1.045);
  }
}

.fd-npill-card-body {
  display: block;
  padding: 0.7rem 0.3rem 0.2rem;
}

.fd-npill-card-title {
  display: block;
  margin: 0 0 0.35rem;
  font-family: Fraunces, serif;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.fd-npill-card-copy {
  display: block;
  color: rgba(26, 22, 18, 0.78);
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-weight: 500;
  line-height: 1.45;
}

.fd-npill-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fd-npill-burger {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.fd-npill-burger-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.fd-npill-burger-line {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  margin: 0;
  background: #fff;
  transition: transform 0.25s ease;
}

.fd-npill-burger-line--a {
  transform: translate(-50%, calc(-50% - 0.28rem));
}

.fd-npill-burger-line--b {
  transform: translate(-50%, calc(-50% + 0.28rem));
}

.fd-npill.is-open .fd-npill-burger-line--a,
.fd-npill-check:checked ~ .fd-npill-bar .fd-npill-burger-line--a {
  transform: translate(-50%, -50%) rotate(45deg);
}

.fd-npill.is-open .fd-npill-burger-line--b,
.fd-npill-check:checked ~ .fd-npill-bar .fd-npill-burger-line--b {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Solid green start only. Scrolled uses the same stronger glass as the top. */
.fd-npill--solid .fd-npill-bar > .fd-npill-links {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

.fd-npill.is-scrolled .fd-npill-slide,
.fd-npill--solid .fd-npill-slide {
  background: rgba(255, 255, 255, 0.2);
}

.fd-npill-spacer {
  height: 0;
}

/* Homepage hero sits under the fixed bar. The editor preview path is not `/`,
   so HubL can still print --inner; zero it whenever the hero is on the page. */
.body-wrapper:has(.fd-ht-hero) .fd-npill-spacer,
.body-wrapper:has(.fd-ht-hero) .fd-npill-spacer--inner {
  height: 0 !important;
}

.fd-npill--solid ~ .fd-npill-spacer,
.fd-npill-spacer--inner,
.fd-site-header--inner .fd-npill-spacer {
  height: calc(var(--fd-npill-h-compact, 6.9rem) + 2.5rem);
}

.fd-npill-sheet {
  display: none;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .hs_cos_wrapper:has(.fd-npill),
  .dnd-section:has(.fd-npill),
  .dnd-column:has(.fd-npill),
  .dnd-row:has(.fd-npill),
  .fd-npill-root {
    --fd-npill-h-expanded: 6.6rem;
    --fd-npill-h-compact: 6.15rem;
  }

  .fd-npill {
    --fd-npill-logo: 72px;
    --fd-npill-pad-x: 1rem;
  }

  .fd-npill--solid,
  .fd-npill.is-scrolled {
    --fd-npill-logo: 68px;
  }

  .fd-npill-bar > .fd-npill-links {
    max-width: min(64vw, 40rem);
    padding: 0.4rem 0.5rem;
    gap: 0.05rem;
  }

  .fd-npill-link {
    padding: 0.5rem 0.55rem;
    font-size: 0.875rem;
  }

  .fd-npill-cta {
    padding: 0.62rem 1.05rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 769px) {
  .fd-npill-sheet,
  .fd-npill-check,
  .fd-npill-burger {
    display: none !important;
  }

  .fd-npill-bar > .fd-npill-links > .fd-npill-link:hover,
  .fd-npill-bar > .fd-npill-links > .fd-npill-link:focus-visible,
  .fd-npill-bar > .fd-npill-links .fd-npill-item:hover > .fd-npill-link,
  .fd-npill-bar > .fd-npill-links .fd-npill-item:focus-within > .fd-npill-link,
  .fd-npill-bar > .fd-npill-links .fd-npill-item.is-open > .fd-npill-link {
    background: rgba(255, 255, 255, 0.16);
  }

  .fd-npill-bar > .fd-npill-links .fd-npill-link > span {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
  }

  @media (hover: hover) {
    .fd-npill-bar > .fd-npill-links .fd-npill-item:hover > .fd-npill-link > span,
    .fd-npill-bar > .fd-npill-links .fd-npill-item:focus-within > .fd-npill-link > span,
    .fd-npill-bar > .fd-npill-links > .fd-npill-link:hover > span,
    .fd-npill-bar > .fd-npill-links > .fd-npill-link:focus-visible > span {
      transform: scale(1.045);
    }
  }
}

@media (max-width: 768px) {
  .fd-npill,
  .fd-npill.is-scrolled {
    background: var(--fd-npill-bar);
    --fd-npill-h: var(--fd-npill-h-compact);
    --fd-npill-logo: 68px;
  }

  .fd-npill-bar {
    grid-template-columns: auto 1fr auto;
  }

  .fd-npill-bar > .fd-npill-links {
    display: none;
  }

  .fd-npill-slide {
    display: none !important;
  }

  .fd-npill-burger {
    display: flex;
  }

  .fd-npill-sheet {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 100001;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    max-height: min(70dvh, calc(100dvh - var(--fd-npill-h)));
    margin: 0;
    padding: 0.35rem clamp(1.1rem, 4vw, 1.4rem) 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--fd-npill-bar);
    pointer-events: auto;
    transform: translateY(-0.4rem);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.34s cubic-bezier(0.33, 1, 0.68, 1),
      transform 0.34s cubic-bezier(0.33, 1, 0.68, 1),
      visibility 0.34s;
  }

  .fd-npill.is-open .fd-npill-sheet,
  .fd-npill-check:checked ~ .fd-npill-sheet {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .fd-npill-sheet > .fd-npill-link,
  .fd-npill-sheet .fd-npill-item > .fd-npill-link {
    justify-content: space-between;
    width: 100%;
    padding: 1.05rem 0.35rem;
    font-size: 1.125rem;
    white-space: normal;
    border-radius: 0.75rem;
  }

  .fd-npill-sheet .fd-npill-link > span {
    display: inline-block;
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
  }

  @media (hover: hover) {
    .fd-npill-sheet .fd-npill-item:hover > .fd-npill-link > span,
    .fd-npill-sheet .fd-npill-item:focus-within > .fd-npill-link > span,
    .fd-npill-sheet > .fd-npill-link:hover > span,
    .fd-npill-sheet > .fd-npill-link:focus-visible > span {
      transform: scale(1.045);
    }
  }

  .fd-npill-sheet .fd-npill-item.is-open > .fd-npill-link > span {
    transform: scale(1.045);
  }

  .fd-npill-sheet .fd-npill-panel {
    display: grid;
    grid-template-rows: 0fr;
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: static;
    overflow: hidden;
    transition:
      grid-template-rows 0.36s cubic-bezier(0.33, 1, 0.68, 1),
      margin 0.36s cubic-bezier(0.33, 1, 0.68, 1),
      opacity 0.28s ease,
      visibility 0.36s;
  }

  .fd-npill-sheet .fd-npill-item:hover > .fd-npill-panel,
  .fd-npill-sheet .fd-npill-item:focus-within > .fd-npill-panel,
  .fd-npill-sheet .fd-npill-item.is-open > .fd-npill-panel {
    grid-template-rows: 1fr;
    margin: 0.15rem 0 0.85rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .fd-npill-sheet .fd-npill-panel-inner {
    min-height: 0;
    overflow: hidden;
    display: grid;
    gap: 0.65rem;
    padding: 0;
  }

  .fd-npill-sheet .fd-npill-panel::before {
    display: none;
  }

  .fd-npill-sheet .fd-npill-card {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: var(--fd-npill-panel);
    overflow: hidden;
  }

  @media (hover: hover) {
    .fd-npill-sheet .fd-npill-card:hover,
    .fd-npill-sheet .fd-npill-card:focus-visible {
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 0.45rem 1.1rem rgba(26, 22, 18, 0.18);
    }
  }

  .fd-npill-sheet .fd-npill-card:not(:has(img)) {
    grid-template-columns: 1fr;
  }

  .fd-npill-sheet .fd-npill-card img {
    width: 5.5rem;
    height: 4.25rem;
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: 0.5rem;
  }

  .fd-npill-sheet .fd-npill-card-body {
    padding: 0;
  }

  .fd-npill-sheet .fd-npill-card-title {
    font-size: 1.05rem;
  }

  .fd-npill-sheet .fd-npill-card-copy {
    font-size: 0.8125rem;
  }

  .fd-npill ~ .fd-npill-spacer {
    height: var(--fd-npill-h-compact, 6.9rem);
  }

  .fd-npill ~ .fd-npill-spacer--inner,
  .fd-site-header--inner .fd-npill-spacer {
    height: calc(var(--fd-npill-h-compact, 6.9rem) + 1.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fd-npill-sheet .fd-npill-panel,
  .fd-npill-bar > .fd-npill-links .fd-npill-panel,
  .fd-npill-chevron,
  .fd-npill-sheet .fd-npill-link > span,
  .fd-npill-bar > .fd-npill-links .fd-npill-link > span,
  .fd-npill-cta,
  .fd-npill-slide {
    transition: none;
  }

  .fd-npill-cta:hover,
  .fd-npill-cta:focus-visible {
    transform: none;
    box-shadow: none;
  }
}
