:root {
  --cm-site-header-height: 84px;
}

.cm-shared-header,
.cm-shared-header * {
  box-sizing: border-box;
}

.cm-shared-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 999;
  width: 100%;
  color: #17171a;
  font: 14px/1.25 Helvetica, Arial, sans-serif;
}

.cm-shared-header[data-overlay] { position: fixed; }
.cm-shared-header.is-menu-open { z-index: 10001; }

.cm-shared-header.header {
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.cm-shared-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: var(--cm-site-header-height);
  padding: 0 18px;
  border-bottom: 1px solid #17171a12;
  background: #fffffff5;
  backdrop-filter: blur(16px);
}

.cm-shared-header a { color: inherit; text-decoration: none; }

.cm-shared-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-shared-header .cm-shared-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 100px;
  background: #f7f7f5;
  color: #17171a;
  white-space: nowrap;
}

.cm-shared-brush {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cm-shared-brush path {
  fill: none;
  stroke: #ffc320;
  stroke-opacity: .24;
  stroke-width: 0;
  stroke-dasharray: 100 101;
  stroke-dashoffset: 100;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset .36s ease-in-out, stroke-width .36s ease-in-out;
}

.cm-shared-link:is(:hover, :focus-visible, :active) .cm-shared-brush path {
  stroke-width: 34;
  stroke-dashoffset: 0;
  transition-duration: .5s;
}

.cm-shared-header .cm-shared-link:is(:hover, :focus-visible, :active) {
  background-color: #17171a;
  color: #fff;
}

.cm-shared-logo {
  display: block;
  justify-self: center;
  width: 185px;
}

.cm-shared-logo img {
  display: block;
  width: 100%;
  height: 45px;
  object-fit: contain;
}

.cm-shared-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.cm-shared-header .cm-shared-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 3px 3px 3px 20px;
  border-radius: 100px;
  background: #17171a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.cm-shared-cta-icon {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #ffc320;
  color: #17171a;
}

.cm-shared-cta-icon svg { width: 10px; height: 10px; transition: transform .2s ease; }
.cm-shared-header .cm-shared-cta:hover { background: #ffc320; color: #17171a; }
.cm-shared-cta:hover svg { transform: rotate(-18deg); }

.cm-shared-header .cm-shared-toggle,
.cm-shared-header .cm-shared-mobile-cta { display: none; }

.cm-shared-header :is(a, button):focus-visible {
  outline: 2px solid #926600;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  :root { --cm-site-header-height: 78px; }
  .cm-shared-logo { width: 170px; }
}

@media (max-width: 767px) {
  :root { --cm-site-header-height: 74px; }

  .cm-shared-menu-open,
  .cm-shared-menu-open .page { overflow: hidden; }

  .cm-shared-bar { grid-template-columns: 1fr auto; }
  .cm-shared-logo { width: 165px; justify-self: start; }
  .cm-shared-logo img { height: 40px; }
  .cm-shared-right { display: none; }

  .cm-shared-header .cm-shared-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 6px;
    place-items: center;
    border: 2px solid #ffc320;
    border-radius: 4px;
    background: #fff;
    color: #17171a;
    cursor: pointer;
  }

  .cm-shared-toggle svg { width: 24px; height: 24px; }
  .cm-shared-toggle .cm-toggle-close,
  .cm-shared-toggle[aria-expanded="true"] .cm-toggle-open { display: none; }
  .cm-shared-toggle[aria-expanded="true"] .cm-toggle-close { display: block; }

  .cm-shared-menu {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    width: 100%;
    height: calc(100svh - var(--cm-site-header-height));
    padding: 32px 18px 56px;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff8e4;
  }

  .cm-shared-header.is-menu-open .cm-shared-menu { display: flex; }
  .cm-shared-header .cm-shared-link { min-height: 48px; padding-inline: 22px; font-size: 22px; }
  .cm-shared-header .cm-shared-mobile-cta { display: inline-flex; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-shared-header .cm-shared-link .cm-shared-brush path,
  .cm-shared-header :is(.cm-shared-cta, .cm-shared-cta-icon svg) { transition: none; }
}
