/* Shared header and CTA controls — scoped to existing navigation and HDS CTA components. */
:root {
  --mw-control-ink: #061b31;
  --mw-control-purple: #533afd;
  --mw-control-purple-hover: #4032c8;
  --mw-control-outline: #d6d9fc;
}
html body .mw-core-header,
html body .mw-core-header .mw-core-nav__trigger,
html body .mw-core-header .mw-core-nav__link,
html body .mw-core-header .mw-core-signin,
html body .mw-core-header .hds-button {
  font-family: sohne-var, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
/* Stripe reference navigation: Sohne, regular 400, compact 14px controls. */
html body .mw-core-header .mw-core-nav__trigger,
html body .mw-core-header .mw-core-nav__link,
html body .mw-core-header .mw-core-signin {
  color: var(--mw-control-ink) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}
html body .mw-core-header .mw-core-nav__trigger {
  min-height: 40px !important;
  padding: 12px 0 !important;
}
html body .mw-core-header .mw-core-signin {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 40px !important;
  padding: 12px 0 !important;
  text-decoration: none !important;
}
/* Header action: compact Stripe-sized 40px primary control. */
html body .mw-core-header .hds-button.hds-button--primary,
html body .mw-core-header .mw-core-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 11.5px 20px 12.5px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--mw-control-purple) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
html body .mw-core-header .hds-button.hds-button--primary:hover,
html body .mw-core-header .mw-core-cta:hover {
  background: var(--mw-control-purple-hover) !important;
  color: #fff !important;
}

html body .mw-core-header .hds-button.hds-button--primary .hds-icon-hover-arrow,
html body .mw-core-header .mw-core-cta .hds-icon-hover-arrow {
  flex: 0 0 auto !important;
}
/* Compact CTA controls: one shared 40px treatment wherever the existing compact HDS variant appears. */
html body .hds-button.hds-button--compact {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 40px !important;
  min-height: 0 !important;
  padding: 0 20px !important;
  border-radius: 4px !important;
  font-family: sohne-var, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
/* Desktop header geometry: align the shared myWork navigation to the Stripe reference. */
@media (min-width: 960px) {
  html body .mw-core-header {
    height: 76px !important;
    min-height: 76px !important;
  }
  /* Preserve each page's original header container width and side margins. */
  html body .mw-core-header .mw-core-header__inner {
    height: 76px !important;
    min-height: 76px !important;
    gap: 28px !important;
  }
  html body .mw-core-header .mw-core-nav {
    align-items: center !important;
    height: 76px !important;
    min-height: 76px !important;
    gap: 24px !important;
  }
  html body .mw-core-header .mw-core-nav__trigger,
  html body .mw-core-header .mw-core-nav__link {
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 12px 0 !important;
  }
  html body .mw-core-header .mw-core-nav__trigger::after {
    content: "" !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    flex: 0 0 8px !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 0 0 4px !important;
    border: 0 !important;
    border-right: 1.75px solid currentColor !important;
    border-bottom: 1.75px solid currentColor !important;
    background: none !important;
    transform: rotate(45deg) !important;
    transform-origin: center !important;
  }
  html body .mw-core-header .mw-core-nav__trigger[aria-expanded="true"]::after {
    transform: rotate(-135deg) !important;
  }
  /* Menus begin at the header edge with a 1px overlap, so pointer travel cannot cross a gap. */
  html body .mw-core-header .mw-core-menu {
    top: calc(100% - 1px) !important;
  }
  html body .mw-core-header .mw-core-actions {
    gap: 8px !important;
  }
  html body .mw-core-header .mw-core-signin {
    box-sizing: border-box !important;
    height: 40px !important;
    min-height: 0 !important;
    padding: 11.5px 20px 12.5px !important;
    border: 1px solid var(--mw-control-outline) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, .96) !important;
    color: var(--mw-control-purple) !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
  html body .mw-core-header .mw-core-signin:hover {
    border-color: #a8a0ff !important;
    background: #f7f6ff !important;
    color: var(--mw-control-purple-hover) !important;
  }
  html body .mw-core-header .hds-button.hds-button--primary,
  html body .mw-core-header .mw-core-cta {
    box-sizing: border-box !important;
    height: 40px !important;
    min-height: 0 !important;
    padding: 11.5px 20px 12.5px !important;
  }
}
/* Page CTA controls: a single 48px treatment for existing primary and secondary HDS actions. */
html body .hds-button.hds-button--primary:not(.hds-button--compact),
html body .hds-button.hds-button--secondary:not(.hds-button--compact),
html body .hds-button.hds-button--secondary-on-quiet:not(.hds-button--compact) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 0 !important;
  padding: 0 24px !important;
  border-radius: 4px !important;
  font-family: sohne-var, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
html body .hds-button.hds-button--primary:not(.hds-button--compact) {
  border: 0 !important;
  background: var(--mw-control-purple) !important;
  color: #fff !important;
}
html body .hds-button.hds-button--primary:not(.hds-button--compact):hover {
  background: var(--mw-control-purple-hover) !important;
  color: #fff !important;
}
html body .hds-button.hds-button--secondary:not(.hds-button--compact),
html body .hds-button.hds-button--secondary-on-quiet:not(.hds-button--compact) {
  border: 1px solid var(--mw-control-outline) !important;
  background: rgba(255, 255, 255, .78) !important;
  color: var(--mw-control-purple) !important;
}
html body .hds-button.hds-button--secondary:not(.hds-button--compact):hover,
html body .hds-button.hds-button--secondary-on-quiet:not(.hds-button--compact):hover {
  border-color: #a8a0ff !important;
  background: #f7f6ff !important;
  color: var(--mw-control-purple-hover) !important;
}
html body .mw-core-header a:focus-visible,
html body .mw-core-header button:focus-visible,
html body .hds-button:focus-visible {
  outline: 2px solid var(--mw-control-purple) !important;
  outline-offset: 3px !important;
}
/* Homepage Sessions banner: preserve the portrait card proportion across phone widths. */
@media (max-width: 767px) {
  html body .sessions-on-demand__wrapper {
    height: auto !important;
    min-height: 0 !important;
  }

  html body .sessions-on-demand-content {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 0.688 !important;
  }
}
